From a0a1c206612de9a3e9d64f3d45564c0ff03f93f6 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期四, 02 一月 2025 15:22:13 +0800
Subject: [PATCH] 环境

---
 admin/src/views/workorder/components/OperaYwWorkorderWindow.vue |   57 ++++++++++++++++++++++++++++++++++++++++++---------------
 1 files changed, 42 insertions(+), 15 deletions(-)

diff --git a/admin/src/views/workorder/components/OperaYwWorkorderWindow.vue b/admin/src/views/workorder/components/OperaYwWorkorderWindow.vue
index 8542213..4f8ce99 100644
--- a/admin/src/views/workorder/components/OperaYwWorkorderWindow.vue
+++ b/admin/src/views/workorder/components/OperaYwWorkorderWindow.vue
@@ -1,5 +1,6 @@
 <template>
-  <GlobalWindow width="800px" :title="title" :visible.sync="visible" @close="close" :confirm-working="isWorking" @confirm="confirm">
+  <GlobalWindow width="800px" :title="title" :visible.sync="visible" @close="close" :confirm-working="isWorking"
+    @confirm="confirm">
     <el-form :model="form" ref="form" :rules="rules">
       <el-form-item label="浣嶇疆绫诲瀷" prop="areaType">
         <el-select v-model="form.areaType">
@@ -28,8 +29,8 @@
           <el-option v-for="item in roomList" :label="item.roomNum" :value="item.id" />
         </el-select>
       </el-form-item>
-      <el-form-item label="鍒嗙被" prop="cateId">
-        <el-cascader v-model="form.areaIds" @change="changeSel" placeholder="璇烽�夋嫨宸℃鍖哄煙" clearable :options="cateList"
+      <el-form-item label="宸ュ崟鍒嗙被" prop="cateId">
+        <el-cascader v-model="form.areaIds" @change="changeSel" placeholder="璇烽�夋嫨鍒嗙被" clearable :options="cateList"
           :props="{
             label: 'name',
             value: 'id',
@@ -86,12 +87,8 @@
       // 琛ㄥ崟鏁版嵁
       form: {
         id: null,
-        creator: '',
-        createDate: '',
-        editor: '',
         editDate: '',
         floor: '',
-        isdeleted: '',
         title: '',
         remark: '',
         status: '',
@@ -103,7 +100,6 @@
         floorId: '',
         roomId: '',
         userId: '',
-        phone: '',
         submitDate: '',
         cateId: '',
         areaType: '0',
@@ -146,7 +142,38 @@
       this.getCate()
       // 鏂板缓
       if (target == null) {
+        this.form = {
+          id: null,
+          editDate: '',
+          floor: '',
+          title: '',
+          remark: '',
+          status: '',
+          sortnum: '',
+          content: '',
+          getDate: '',
+          projectId: '',
+          buildingId: '',
+          floorId: '',
+          roomId: '',
+          userId: '',
+          submitDate: '',
+          cateId: '',
+          areaType: '0',
+          code: '',
+          dealStatus: '',
+          dispatchUserId: '',
+          dispatchDate: '',
+          dispatchInfo: '',
+          dealUserId: '',
+          dealDate: '',
+          dealInfo: '',
+          dealType: ''
+        }
         this.$nextTick(() => {
+          this.buildList = []
+          this.roomList = []
+          this.levelList = []
           this.$refs.form.resetFields()
           this.form[this.configData['field.id']] = null
         })
@@ -179,16 +206,16 @@
     changeBuild(e) {
       this.$set(this.form, 'floorId', '')
       this.$set(this.form, 'roomId', '')
-      if(this.form.areaType == 1){
+      if (this.form.areaType == 1) {
         this.getLevel(e)
-      }else{
+      } else {
         this.getRoom(e)
       }
-      
-      
+
+
     },
     getLevel(buildingId) {
-      getFloorList({ buildingId}).then(res => {
+      getFloorList({ buildingId }).then(res => {
         this.levelList = res
       })
     },
@@ -199,9 +226,9 @@
       })
     },
     changeSel(e) {
-      if(e && e.length == 2){
+      if (e && e.length == 2) {
         this.$set(this.form, 'cateId', e[1])
-      }else{
+      } else {
         this.$set(this.form, 'cateId', '')
       }
     },

--
Gitblit v1.9.3