From c87c2967f96d7542bf93bf310fb65d24cc4b54c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Tue, 25 Apr 2023 09:24:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/trainingItem/index.vue | 62 +++++++++++++++++++------ 1 file changed, 48 insertions(+), 14 deletions(-) diff --git a/src/views/system/trainingItem/index.vue b/src/views/system/trainingItem/index.vue index 35cee5c..b0664b6 100644 --- a/src/views/system/trainingItem/index.vue +++ b/src/views/system/trainingItem/index.vue @@ -16,7 +16,7 @@ @keyup.enter.native="handleQuery" /> - + - - + + + { + if (obj.trainingShelfFlag == 0) { + this.$modal.msgSuccess("已修改上架状态为未上架"); + } else { + this.$modal.msgSuccess("已修改上架状态为上架"); + } + this.getList(); + }); + }, /** 查询学习培训项目信息列表 */ getList() { this.loading = true; listTrainingItem(this.queryParams).then((response) => { this.trainingItemList = response.rows; + response.rows.forEach((e) => { + if (e.trainingShelfFlag == 1) { + e.trainingShelfFlag = true; + } else if (e.trainingShelfFlag == 0) { + e.trainingShelfFlag = false; + } + }); this.total = response.total; this.loading = false; }); @@ -1117,7 +1151,7 @@ export default { updatePicture(obj).then((res) => {}); } // if (this.imgsurl.pictureUrlList.length > 0) { - updatePicture(this.imgsurl).then((res) => {}); + updatePicture(this.imgsurl).then((res) => {}); // } this.imgsurl = { pictureUrlList: [] }; @@ -1194,7 +1228,7 @@ export default { ], }; this.reset(); - this.open = true; + this.open = true; this.isEditFlag = false; this.title = "添加学习培训项目信息"; },