From 8a8ea5fae6bfaebf1180148644c8312778088cbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=AE=BF=E6=98=95?= Date: Tue, 3 Nov 2020 11:32:43 +0800 Subject: [PATCH] =?UTF-8?q?reason=E6=9A=82=E6=9C=AA=E6=94=B9=E5=AE=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../user/questions-answers/community.vue | 23 +++++++++++-------- src/pages/user/questions-answers/my-qa.vue | 6 ++--- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/src/pages/user/questions-answers/community.vue b/src/pages/user/questions-answers/community.vue index a082710..c7619b1 100644 --- a/src/pages/user/questions-answers/community.vue +++ b/src/pages/user/questions-answers/community.vue @@ -51,7 +51,7 @@ >
- +

删除理由:

{ - if (valid) { - this.diaDel = false; - if (this.now_state == "/qa/questions") { - this.delQ(); - } else if (this.now_state == "/qa/answers") { - this.delA(); - } - } else { - } + console.log(valid) + // if (valid) { + // this.diaDel = false; + // if (this.now_state == "/qa/questions") { + // this.delQ(); + // } else if (this.now_state == "/qa/answers") { + // this.delA(); + // } + // } else { + // } }); }, del_q(val) { @@ -292,6 +293,7 @@ export default { this.table_header = []; if (val == "/qa/questions") { this.form_data[1].label = "发布人搜索"; + this.form_data[1].placeholder = "请输入发布人名称"; this.form_data[2].label = "发布时间"; this.table_header = [ { @@ -355,6 +357,7 @@ export default { this.getQList(); } else if (val == "/qa/answers") { this.form_data[1].label = "回复人搜索"; + this.form_data[1].placeholder = "请输入回复人名称"; this.form_data[2].label = "回复时间"; this.table_header = [ { diff --git a/src/pages/user/questions-answers/my-qa.vue b/src/pages/user/questions-answers/my-qa.vue index eb1b467..f10a761 100644 --- a/src/pages/user/questions-answers/my-qa.vue +++ b/src/pages/user/questions-answers/my-qa.vue @@ -67,8 +67,7 @@
-

- {{ item.answer }} +

{ if (response.data.success == 1) { this.$message({ @@ -336,6 +335,7 @@ export default { }, delA() { let items = [{ id: this.delItem.id }]; + this.diaDelItem = false; this.$api.user.delAnswers(items).then((response) => { if (response.data.success == 1) { this.$message({ -- 2.26.0