From e5fae45afc610c0cbc5620f2e9138e2188dcf243 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期四, 16 一月 2025 12:20:29 +0800
Subject: [PATCH] 资产管理权限、工单故障显示优化

---
 src/views/system/point/index.vue |   52 ++++++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 46 insertions(+), 6 deletions(-)

diff --git a/src/views/system/point/index.vue b/src/views/system/point/index.vue
index 93f2536..edecbc9 100644
--- a/src/views/system/point/index.vue
+++ b/src/views/system/point/index.vue
@@ -76,6 +76,7 @@
               size="small"
               v-model="ywTimes"
               type="daterange"
+              value-format="yyyy-MM-dd"
               range-separator="鑷�"
               start-placeholder="鏇存崲杩愮淮鏃堕棿"
               end-placeholder="鏇存崲杩愮淮鏃堕棿">
@@ -157,7 +158,7 @@
               </el-cascader>
             </el-form-item>
             <el-form-item label="杩愮淮鍗曚綅" prop="unitId">
-              <el-select v-model="form.unitId" placeholder="杩愮淮鍗曚綅">
+              <el-select v-model="form.unitId" placeholder="杩愮淮鍗曚綅" clearable @clear = "clearTime">
                 <el-option v-for="item in unitList" :key="item.id" :label="item.value" :value="item.id">
                 </el-option>
               </el-select>
@@ -171,6 +172,12 @@
                 start-placeholder="杩愮淮寮�濮嬫椂闂�"
                 end-placeholder="杩愮淮缁撴潫鏃堕棿">
               </el-date-picker>
+            </el-form-item>
+            <el-form-item label="鐢ㄦ埛鍚�" prop="remark">
+              <el-input  v-model="form.username"/>
+            </el-form-item>
+            <el-form-item label="瀵嗙爜" prop="remark">
+              <el-input v-model="form.password"/>
             </el-form-item>
             <el-form-item label="鐐逛綅澶囨敞" prop="remark">
               <el-input type="textarea" v-model="form.remark"/>
@@ -188,9 +195,27 @@
                 inactive-text="鏅�氱偣浣�">
               </el-switch>
             </el-form-item>
-            <el-form-item label="鐪佸巺:" prop="provinceTag">
+            <el-form-item label="瑙嗛:" prop="provinceTagVideo">
               <el-switch
-                v-model="form.provinceTag"
+                v-model="form.provinceTagVideo"
+                active-color="#13ce66"
+                inactive-color="gray"
+                active-text="鐪佸巺鐐逛綅"
+                inactive-text="鏅�氱偣浣�">
+              </el-switch>
+            </el-form-item>
+            <el-form-item label="杞﹁締:" prop="provinceTagCar">
+              <el-switch
+                v-model="form.provinceTagCar"
+                active-color="#13ce66"
+                inactive-color="gray"
+                active-text="鐪佸巺鐐逛綅"
+                inactive-text="鏅�氱偣浣�">
+              </el-switch>
+            </el-form-item>
+            <el-form-item label="浜鸿劯:" prop="provinceTagFace">
+              <el-switch
+                v-model="form.provinceTagFace"
                 active-color="#13ce66"
                 inactive-color="gray"
                 active-text="鐪佸巺鐐逛綅"
@@ -272,7 +297,7 @@
       provinceTag: false,
       importantCommandImageTag: false,
       timeList: [],
-      timezone: [],
+      timezone: null,
       ywTimes: [],
       fileList: [],
       importFile: null,
@@ -353,6 +378,10 @@
     this.getDyColumn();
   },
   methods: {
+    clearTime() {
+      console.log("鐢熸晥")
+      this.timezone = '';
+    },
     getDyColumn() {
       // 鏌ヨ鍔ㄦ�佸垪
       let params = {
@@ -373,7 +402,9 @@
 
       // 妫�鏌ユ瘡涓爣绛撅紝濡傛灉涓簍rue锛屽垯娣诲姞鍒皌ext涓�
       if (row.importantTag) text += '閲嶇偣鐐逛綅銆�';
-      if (row.provinceTag) text += '鐪佸巺鐐逛綅銆�';
+      if (row.provinceTagVideo) text += '鐪佸巺瑙嗛銆�';
+      if (row.provinceTagCar) text += '鐪佸巺杞﹁締銆�';
+      if (row.provinceTagFace) text += '鐪佸巺浜鸿劯銆�';
       if (row.importantCommandImageTag) text += '閲嶇偣鎸囨尌鍥惧儚銆�';
       if (row.deptTag) text += '閮ㄧ骇銆�';
       text === '' ? '鏅�氱偣浣�' : text
@@ -505,7 +536,9 @@
         updateTime: null,
         deleted: null,
         importantTag: false,
-        provinceTag: false,
+        provinceTagVideo: false,
+        provinceTagCar: false,
+        provinceTagFace: false,
         deptTag: false,
       };
       this.resetForm("form");
@@ -550,6 +583,13 @@
     submitForm() {
       this.$refs['form'].validate(valid => {
         if (valid) {
+          if (this.timezone && this.timezone.length > 0) {
+            this.form.startTime = this.timezone[0]
+            this.form.endTime = this.timezone[1]
+          } else {
+            this.form.startTime = null
+            this.form.endTime = null
+          }
           if (this.form.deptId && this.form.deptId.length > 0) {
             this.form.deptId = this.form.deptId[this.form.deptId.length - 1]
           }

--
Gitblit v1.8.0