From aef876fd5e4f26eead249243b1523ec4cf355340 Mon Sep 17 00:00:00 2001 From: feige <791364011@qq.com> Date: 星期一, 10 六月 2024 12:10:09 +0800 Subject: [PATCH] 用户修改,删除,增加进行了修改 --- ruoyi-ui/src/views/meeting/index.vue | 54 +++++++++++++++++++++++++++++++++++++++++------------- 1 files changed, 41 insertions(+), 13 deletions(-) diff --git a/ruoyi-ui/src/views/meeting/index.vue b/ruoyi-ui/src/views/meeting/index.vue index 492f878..abce3f0 100644 --- a/ruoyi-ui/src/views/meeting/index.vue +++ b/ruoyi-ui/src/views/meeting/index.vue @@ -1,5 +1,5 @@ <template> - <div class="app-container"> + <div class="app-container" style="opacity: 1;"> <el-backtop :bottom="150" :right="30"> <el-button type="primary" circle class="el-icon-top"></el-button> @@ -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,8 +418,8 @@ }], isPlacebrand: [{ required: true, - message: '璇烽�夋嫨鏄惁鎷滆姘寸墝', - trigger: 'blur' + message: '璇烽�夋嫨鏄惁鎽嗘斁姘寸墝', + trigger: 'change' }], connPerson: [{ required: true, @@ -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