From 4278b5f15702bc8e05d090bf8852fafe20608fc8 Mon Sep 17 00:00:00 2001 From: Tcsm <1377977403@qq.com> Date: 星期六, 15 七月 2023 17:05:37 +0800 Subject: [PATCH] 新增功能点击保存后清空窗口内数据(以实现的模块:收藏和荣誉、家庭小医生、通讯录、成长经历阅历除自传部分、百年心愿) --- ruoyi-ui/src/views/self/show.vue | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 54 insertions(+), 3 deletions(-) diff --git a/ruoyi-ui/src/views/self/show.vue b/ruoyi-ui/src/views/self/show.vue index f189f5a..90bbe44 100644 --- a/ruoyi-ui/src/views/self/show.vue +++ b/ruoyi-ui/src/views/self/show.vue @@ -351,6 +351,9 @@ <el-table-column label="璇佷欢鍚嶇О" prop="cerName" sortable width="280" align="center" > <template slot-scope="scope">{{scope.row.cerName? scope.row.cerName: '鈥斺�斺�斺��'}}</template> </el-table-column> + <el-table-column label="璇佷欢绫诲瀷" prop="type" sortable width="280" align="center" > + <template slot-scope="scope">{{ getSrc(scope.row.type) }}</template> + </el-table-column> <el-table-column label="鎸佹湁鎯呭喌" prop="ownStatus" sortable width="280" align="center" > <template slot-scope="scope">{{scope.row.ownStatus? scope.row.ownStatus: '鈥斺�斺�斺��'}}</template> </el-table-column> @@ -547,6 +550,12 @@ <el-form-item label="璇佷欢鍚嶇О" prop="cerName"> <el-input v-model="formDat.cerName" placeholder="璇疯緭鍏ヨ瘉浠跺悕绉�" clearable :style="{width: '100%'}" > </el-input> + </el-form-item> + <el-form-item label="璇佷欢绫诲瀷" prop="type"> + <el-select v-model="formDat.type" placeholder="璇烽�夋嫨绫诲瀷" clearable :style="{width: '100%'}" > + <el-option v-for="(item, index) in typeOption" :key="index" :label="item.label" :value="item.value" + ></el-option> + </el-select> </el-form-item> <el-form-item label="鎸佹湁鎯呭喌" prop="ownStatus"> <el-input v-model="formDat.ownStatus" placeholder="璇疯緭鍏ユ寔鏈夋儏鍐�" clearable :style="{width: '100%'}" > @@ -783,6 +792,7 @@ otherPosition:undefined, otherPolitical:undefined, //鎸佹湁鍑哄叆澧冭瘉浠舵儏鍐� + type:undefined, cerName:undefined, validityDate:undefined, ownStatus:undefined, @@ -892,7 +902,16 @@ }], }, - typeOptions: [], + typeOption: [{ + value:'鎶ょ収', + label:'鎶ょ収' + },{ + value:'閫氳璇�', + label:'閫氳璇�' + },{ + value:'韬唤璇�', + label:'韬唤璇�' + }], }; }, created() { @@ -931,6 +950,18 @@ return "statistics-warning-row1"; } else { return "statistics-warning-row"; + } + }, + //璇佷欢绫诲埆 + getSrc(type) { + if (type === '鎶ょ収'){ + return '鎶ょ収' + }else if(type === '閫氳璇�'){ + return '閫氳璇�' + }else if(type === '韬唤璇�'){ + return '韬唤璇�' + }else { + return '鈥斺�斺�斺�斺�斺��' } }, @@ -1180,6 +1211,10 @@ }); } }); + // 娓呯┖formDat瀵硅薄鐨勬暟鎹� + Object.keys(this.formDat).forEach(key => { + this.formDat[key] = ''; + }); }, submitDataScope2: function() { @@ -1199,6 +1234,10 @@ this.getList(); }); } + }); + // 娓呯┖formDat瀵硅薄鐨勬暟鎹� + Object.keys(this.formDat).forEach(key => { + this.formDat[key] = ''; }); }, submitDataScope4: function() { @@ -1220,6 +1259,10 @@ }); } }); + // 娓呯┖formDat瀵硅薄鐨勬暟鎹� + Object.keys(this.formDat).forEach(key => { + this.formDat[key] = ''; + }); }, submitDataScope5: function() { @@ -1240,6 +1283,10 @@ }); } }); + // 娓呯┖formDat瀵硅薄鐨勬暟鎹� + Object.keys(this.formDat).forEach(key => { + this.formDat[key] = ''; + }); }, submitDataScope6: function() { @@ -1259,6 +1306,10 @@ this.getList(); }); } + }); + // 娓呯┖formDat瀵硅薄鐨勬暟鎹� + Object.keys(this.formDat).forEach(key => { + this.formDat[key] = ''; }); }, @@ -1299,7 +1350,7 @@ /** 鍒犻櫎鎴愬憳鍏崇郴鎸夐挳鎿嶄綔 */ handleRelationDelete(row) { const Ids = row.id || this.ids; - this.$modal.confirm('鏄惁纭鍒犻櫎鏁版嵁椤癸紵'+Ids).then(function() { + this.$modal.confirm('鏄惁纭鍒犻櫎鏁版嵁椤癸紵').then(function() { return delRelation(Ids); }).then(() => { this.getList(); @@ -1319,7 +1370,7 @@ /** 鍒犻櫎鍑哄浗锛堝锛夋儏鍐垫寜閽搷浣� */ handleAbroadDelete(row) { const Ids = row.id || this.ids; - this.$modal.confirm('鏄惁纭鍒犻櫎鏁版嵁椤癸紵'+Ids).then(function() { + this.$modal.confirm('鏄惁纭鍒犻櫎鏁版嵁椤癸紵').then(function() { return delAbroad(Ids); }).then(() => { this.getList(); -- Gitblit v1.9.1