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 = "添加学习培训项目信息"; },