From bc241197eba989f1db6f06fe6c3a319539959bdd Mon Sep 17 00:00:00 2001 From: lmy1996-11 <1092404103@qq.com> Date: Fri, 6 May 2022 22:38:12 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=9B=9E=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wjnft/feedback/index.vue | 85 ++++++++++++++++++++++-------- 1 file changed, 62 insertions(+), 23 deletions(-) diff --git a/src/views/wjnft/feedback/index.vue b/src/views/wjnft/feedback/index.vue index c229835..0b33bb7 100644 --- a/src/views/wjnft/feedback/index.vue +++ b/src/views/wjnft/feedback/index.vue @@ -85,16 +85,16 @@ - + - - - - - - - - + 新增 @@ -129,23 +129,43 @@ - + - - - + + + - - + + + + + + - + @@ -188,8 +208,21 @@ - - + + + + + + + + @@ -235,7 +268,7 @@ @@ -249,6 +282,8 @@ export default { name: "Feedback", data() { return { + //文本框 + textarea: '', // 遮罩层 loading: true, // 选中数组 @@ -261,6 +296,7 @@ export default { showSearch: true, // 总条数 total: 0, + srcLists: [], // 意见反馈表格数据 feedbackList: [], // 弹出层标题 @@ -298,6 +334,9 @@ export default { this.loading = true; listFeedback(this.queryParams).then(response => { this.feedbackList = response.rows; + response.rows.forEach(item =>{ + this.srcLists.push(item.picture); + }); this.total = response.total; this.loading = false; }); @@ -346,14 +385,14 @@ export default { this.open = true; this.title = "添加意见反馈"; }, - /** 修改按钮操作 */ + /** 回复按钮操作 */ handleUpdate(row) { this.reset(); const id = row.id || this.ids getFeedback(id).then(response => { this.form = response.data; this.open = true; - this.title = "修改意见反馈"; + this.title = "回复意见反馈"; }); }, /** 提交按钮 */ @@ -362,13 +401,13 @@ export default { if (valid) { if (this.form.id != null) { updateFeedback(this.form).then(response => { - this.$modal.msgSuccess("修改成功"); + this.$modal.msgSuccess("回复成功"); this.open = false; this.getList(); }); } else { addFeedback(this.form).then(response => { - this.$modal.msgSuccess("新增成功"); + this.$modal.msgSuccess("回复失败"); this.open = false; this.getList(); }); From f1372eb025b1fd051b1ced0bf251e907cb1420c0 Mon Sep 17 00:00:00 2001 From: "0.0" <1092404103.qq.com> Date: Sat, 7 May 2022 18:05:57 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=88=9B=E4=BD=9C=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wjnft/artist/index.vue | 10 ++-------- src/views/wjnft/collection/index.vue | 14 +++++++------- src/views/wjnft/feedback/index.vue | 27 ++++++++++++++------------- 3 files changed, 23 insertions(+), 28 deletions(-) diff --git a/src/views/wjnft/artist/index.vue b/src/views/wjnft/artist/index.vue index 7d0a505..c88055e 100644 --- a/src/views/wjnft/artist/index.vue +++ b/src/views/wjnft/artist/index.vue @@ -416,10 +416,7 @@ this.$message.error("请填写创作者介绍") return; } - if (this.form.proportion === "" || this.form.proportion === null || this.form.proportion === undefined) { - this.$message.error("请填写比例") - return; - } + if (this.form.artistName === "" || this.form.artistName === null || this.form.artistName === undefined) { this.$message.error("请填写作为创作者的名称") return; @@ -438,10 +435,7 @@ this.$message.error("请填写创作者介绍") return; } - if (this.form.proportion === "" || this.form.proportion === null || this.form.proportion === undefined) { - this.$message.error("请填写比例") - return; - } + if (this.form.artistName === "" || this.form.artistName === null || this.form.artistName === undefined) { this.$message.error("请填写作为创作者的名称") return; diff --git a/src/views/wjnft/collection/index.vue b/src/views/wjnft/collection/index.vue index a09e19e..b1146c2 100644 --- a/src/views/wjnft/collection/index.vue +++ b/src/views/wjnft/collection/index.vue @@ -311,11 +311,11 @@ - - - + + + + + @@ -323,7 +323,7 @@ - + @@ -813,7 +813,7 @@ export default { updatedBy: null, updatedTime: null, reservedA: null, - reservedB: null, + heatValue: null, reservedC: null, reservedD: null }; diff --git a/src/views/wjnft/feedback/index.vue b/src/views/wjnft/feedback/index.vue index 0b33bb7..c049ce8 100644 --- a/src/views/wjnft/feedback/index.vue +++ b/src/views/wjnft/feedback/index.vue @@ -45,15 +45,15 @@ - - - - - - - - - + + + @@ -137,7 +137,8 @@ - + + @@ -165,7 +166,7 @@ {{ parseTime(scope.row.createdTime, '{y}-{m}-{d}') }} - + @@ -184,7 +185,7 @@ type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" - v-hasPermi="['wjnft:feedback:edit']" + v-if="scope.row.admContent==null" >回复 @@ -221,7 +222,7 @@ + v-model="form.admContent">