From ce09e7d8c54d1868fe9a589caec577ddb0aeaf52 Mon Sep 17 00:00:00 2001
From: yz3456 <2753272399@qq.com>
Date: 星期一, 27 五月 2024 17:38:43 +0800
Subject: [PATCH] 修改了bug

---
 ruoyi-ui/src/views/meeting/index.vue |   50 +++++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 39 insertions(+), 11 deletions(-)

diff --git a/ruoyi-ui/src/views/meeting/index.vue b/ruoyi-ui/src/views/meeting/index.vue
index 492f878..4687ece 100644
--- a/ruoyi-ui/src/views/meeting/index.vue
+++ b/ruoyi-ui/src/views/meeting/index.vue
@@ -222,7 +222,9 @@
       </el-table-column>
 
       <el-table-column label="鐘舵��" prop="statu" sortable align="center">
-        <template slot-scope="scope">{{scope.row.statu===1? '鍚屾剰': '鎷掔粷'}}</template>
+        <!-- <template slot-scope="scope">{{scope.row.statu===1? '鍚屾剰': '鎷掔粷'}}</template> -->
+        <template slot-scope="scope">{{scope.row.statu ===3 ? '寰呭鎵�' : (scope.row.statu===1? '鍚屾剰': '鎷掔粷')}}</template>
+        <!-- scope.row.statu ==='寰呭鎵�' ? '寰呭鎵�' : (scope.row.statu===1? '鍚屾剰': '鎷掔粷') -->
       </el-table-column>
 
       <el-table-column label="鎿嶄綔" align="center" width="200" class-name="small-padding fixed-width">
@@ -287,7 +289,7 @@
           <el-input v-model="formDat.applyApart" placeholder="璇疯緭鍏ョ敵璇峰搴垨閮ㄩ棬" clearable :style="{width: '100%'}">
           </el-input>
         </el-form-item>
-        <el-form-item label="鏄惁鎷滆姘寸墝" prop="isPlacebrand">
+        <el-form-item label="鏄惁鎽嗘斁姘寸墝" prop="isPlacebrand">
           <el-select v-model="formDat.isPlacebrand" placeholder="璇烽�夋嫨" clearable :style="{width: '100%'}">
             <el-option v-for="(item, index) in typeOptions" :key="index" :label="item.label" :value="item.value"
             ></el-option>
@@ -301,10 +303,11 @@
           <el-input v-model="formDat.connPhone" placeholder="璇疯緭鍏ヨ仈绯荤數璇�" clearable :style="{width: '100%'}"></el-input>
         </el-form-item>
         <el-form-item label="鐘舵��" prop="statu">
-          <el-select v-model="formDat.statu" placeholder="璇烽�夋嫨" clearable :style="{width: '100%'}">
+          <!-- <el-select v-model="formDat.statu" placeholder="璇烽�夋嫨" clearable :style="{width: '100%'}">
             <el-option v-for="(item, index) in typeOptions2" :key="index" :label="item.label" :value="item.value"
             ></el-option>
-          </el-select>
+          </el-select> -->
+          <el-input placeholder="寰呭鏍�" :disabled='true'></el-input>
         </el-form-item>
 
       </el-form>
@@ -415,7 +418,7 @@
         }],
         isPlacebrand: [{
           required: true,
-          message: '璇烽�夋嫨鏄惁鎷滆姘寸墝',
+          message: '璇烽�夋嫨鏄惁鎽嗘斁姘寸墝',
           trigger: 'blur'
         }],
         connPerson: [{
@@ -428,11 +431,11 @@
           message: '璇疯緭鍏ヨ仈绯荤數璇�',
           trigger: 'blur'
         }],
-        statu: [{
-          required: true,
-          message: '璇烽�夋嫨鐘舵��',
-          trigger: 'blur'
-        }],
+        // statu: [{
+        //   // required: true,
+        //   message: '璇烽�夋嫨鐘舵��',
+        //   trigger: 'blur'
+        // }],
 
       },
         typeOptions: [
@@ -487,6 +490,28 @@
         this.queryParams.pageNum = 1;
         this.getList();
       },
+      reset() {
+        if (this.$refs.menu != undefined) {
+          this.$refs.menu.setCheckedKeys([]);
+        }
+        this.menuExpand = false,
+          this.menuNodeAll = false,
+          this.deptExpand = true,
+          this.deptNodeAll = false,
+          this.form = {
+            roleId: undefined,
+            roleName: undefined,
+            roleKey: undefined,
+            roleSort: 0,
+            status: "0",
+            menuIds: [],
+            deptIds: [],
+            menuCheckStrictly: true,
+            deptCheckStrictly: true,
+            remark: undefined
+          };
+        this.resetForm("elForm");
+      },
       /** 閲嶇疆鎸夐挳鎿嶄綔 */
       resetQuery() {
         this.dateRange = [];
@@ -496,17 +521,20 @@
 
 
       newRequest(){
+        this.reset();
         this.open = true;
         this.title = "鏂扮敵璇�"
       },
       cancel() {
         this.open = false;
-        // this.reset();
+        this.reset();
       },
 submitDataScope: function() {
       this.$refs["elForm"].validate(valid => {
         // alert(valid)
         if (valid) {
+          // console.log(this.formDat,'formDat')
+          this.formDat.statu = 3
           addMeeting(this.formDat).then(response => {
             this.$modal.msgSuccess("鏂板鎴愬姛");
             this.open = false;

--
Gitblit v1.9.1