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/honor/index.vue | 4 ++ ruoyi-ui/src/views/self/show.vue | 57 +++++++++++++++++++++++++++- ruoyi-ui/src/views/contacts/index.vue | 4 ++ ruoyi-ui/src/views/economy/index.vue | 2 ruoyi-ui/src/views/wish/index.vue | 4 ++ ruoyi-ui/src/views/collection/index.vue | 4 ++ ruoyi-ui/src/views/doctor/index.vue | 4 ++ 7 files changed, 75 insertions(+), 4 deletions(-) diff --git a/ruoyi-ui/src/views/collection/index.vue b/ruoyi-ui/src/views/collection/index.vue index b9a8e8e..9f60459 100644 --- a/ruoyi-ui/src/views/collection/index.vue +++ b/ruoyi-ui/src/views/collection/index.vue @@ -745,6 +745,10 @@ }); } }); + // 娓呯┖formDat瀵硅薄鐨勬暟鎹� + Object.keys(this.formDat).forEach(key => { + this.formDat[key] = ''; + }); }, requestUpload(params) { diff --git a/ruoyi-ui/src/views/contacts/index.vue b/ruoyi-ui/src/views/contacts/index.vue index 4c77d5a..daf6e45 100644 --- a/ruoyi-ui/src/views/contacts/index.vue +++ b/ruoyi-ui/src/views/contacts/index.vue @@ -690,6 +690,10 @@ }); } }); + // 娓呯┖formDat瀵硅薄鐨勬暟鎹� + Object.keys(this.formDat).forEach(key => { + this.formDat[key] = ''; + }); }, requestUpload(params) { diff --git a/ruoyi-ui/src/views/doctor/index.vue b/ruoyi-ui/src/views/doctor/index.vue index d0dc034..e6913f2 100644 --- a/ruoyi-ui/src/views/doctor/index.vue +++ b/ruoyi-ui/src/views/doctor/index.vue @@ -717,6 +717,10 @@ }); } }); + // 娓呯┖formDat瀵硅薄鐨勬暟鎹� + Object.keys(this.formDat).forEach(key => { + this.formDat[key] = ''; + }); }, requestUpload(params) { diff --git a/ruoyi-ui/src/views/economy/index.vue b/ruoyi-ui/src/views/economy/index.vue index b394e60..f074277 100644 --- a/ruoyi-ui/src/views/economy/index.vue +++ b/ruoyi-ui/src/views/economy/index.vue @@ -109,7 +109,7 @@ <!-- 杩欓噷鏈変釜familyList鏁扮粍 鏄湪data()涓畾涔夌殑 --> <el-table v-loading="loading" :data="economyList" @selection-change="handleSelectionChange" @row-click="handleCheck" :row-class-name="tableRowClassName" style="background: #FFEFF2; border-radius: 14px 14px 14px 14px;"> <el-table-column type="selection" width="55" align="center" /> - <el-table-column label="搴忓彿" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="120"/> + <el-table-column fixed label="搴忓彿" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="120"/> <el-table-column label="鍙戠敓鏃堕棿" prop="createTime" sortable width="100" align="center"> <template slot-scope="scope">{{scope.row.createTime? scope.row.createTime: '鈥斺�斺�斺��'}}</template> diff --git a/ruoyi-ui/src/views/honor/index.vue b/ruoyi-ui/src/views/honor/index.vue index 8c175f8..080cc80 100644 --- a/ruoyi-ui/src/views/honor/index.vue +++ b/ruoyi-ui/src/views/honor/index.vue @@ -720,6 +720,10 @@ }); } }); + // 娓呯┖formDat瀵硅薄鐨勬暟鎹� + Object.keys(this.formDat).forEach(key => { + this.formDat[key] = ''; + }); }, requestUpload(params) { 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(); diff --git a/ruoyi-ui/src/views/wish/index.vue b/ruoyi-ui/src/views/wish/index.vue index d9099f8..bf9e2ff 100644 --- a/ruoyi-ui/src/views/wish/index.vue +++ b/ruoyi-ui/src/views/wish/index.vue @@ -726,6 +726,10 @@ }); } }); + // 娓呯┖formDat瀵硅薄鐨勬暟鎹� + Object.keys(this.formDat).forEach(key => { + this.formDat[key] = ''; + }); }, requestUpload(params) { -- Gitblit v1.9.1