From 9aac41e15d65828bfdc142f42035bc01d28bd009 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期五, 09 八月 2024 16:02:12 +0800
Subject: [PATCH] 点位导入增加标签
---
src/views/system/point/index.vue | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/src/views/system/point/index.vue b/src/views/system/point/index.vue
index eb8e231..e39645e 100644
--- a/src/views/system/point/index.vue
+++ b/src/views/system/point/index.vue
@@ -41,13 +41,14 @@
</el-select>
</div>
<div class="bottom_">
- <el-select @change="showTimeRange" v-model="contractId" size="small" placeholder="杩愮淮鍚堝悓">
+ <el-select @change="showTimeRange" v-model="contractId" size="small" placeholder="杩愮淮鍚堝悓" :disabled="! importUnitId">
<el-option v-for="(time, index) in timeList" :key="index" :label="time.name" :value="time.id"></el-option>
</el-select>
<span style="margin-left: 10px;color: #8a8989" v-show="importUnitId">璇ュ崟浣嶆湁{{timeList.length}}涓悎鍚�</span>
</div>
<div class="bottom_">
<el-date-picker
+ :disabled="! contractId"
size="small"
v-model="ywTimes"
type="daterange"
@@ -55,6 +56,11 @@
start-placeholder="杩愮淮寮�濮嬫椂闂�"
end-placeholder="杩愮淮缁撴潫鏃堕棿">
</el-date-picker>
+ </div>
+ <div class="bottom_">
+ <el-checkbox v-model="provinceTag">閲嶇偣鐐逛綅</el-checkbox>
+ <el-checkbox v-model="importantTag">鐪佸巺</el-checkbox>
+ <el-checkbox v-model="importantCommandImageTag">閲嶇偣鎸囨尌鍥惧儚</el-checkbox>
</div>
<div class="bottom_">
<el-upload
@@ -215,6 +221,9 @@
dicts: ['point_tag'],
data() {
return {
+ importantTag: false,
+ provinceTag: false,
+ importantCommandImageTag: false,
timeList: [],
timezone: [],
ywTimes: [],
@@ -328,6 +337,9 @@
formData.append("file", this.importFile)
formData.append("startTime", this.ywTimes[0])
formData.append("endTime", this.ywTimes[1])
+ formData.append("provinceTag", this.provinceTag)
+ formData.append("importantTag", this.importantTag)
+ formData.append("importantCommandImageTag", this.importantCommandImageTag)
importData(formData, this.importUnitId).then(res => {
this.$message.success("瀵煎叆鎴愬姛")
this.upload = false
--
Gitblit v1.8.0