diff --git a/src/pages/user/questions-answers/community.vue b/src/pages/user/questions-answers/community.vue index a08271028ab510634cc6e954efb9773e812fc610..c7619b16849eadc70cc32a1fd63ff17127b8ce34 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 eb1b4678059a68e40ffe0fa471826407f41ee347..f10a76190ba91f5d060020a2afc43063a5966e17 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({