From ef1b19b1a44b5329751ebc833e67385b4ae24f93 Mon Sep 17 00:00:00 2001 From: "396572590@qq.com" Date: Thu, 4 Aug 2022 16:08:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20There=20is=20no=20way=20the,=20?= =?UTF-8?q?=E2=80=8556904=20=E9=97=AE=E7=AD=94=E5=BA=93-=E8=AE=A2=E9=98=85?= =?UTF-8?q?=20=E7=A8=8B=E5=BA=8F=E5=BC=82=E5=B8=B8=20api/lawss/Subscriptio?= =?UTF-8?q?n/insertSubscription=20=E8=BF=99=E4=B8=AA=E6=8E=A5=E5=8F=A3=20,?= =?UTF-8?q?=20=E6=B7=BB=E5=8A=A0=20=E5=8F=96=E6=B6=88=E8=AE=A2=E9=98=85?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/regulatoryRepository/standQA/index.vue | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/pages/regulatoryRepository/standQA/index.vue b/src/pages/regulatoryRepository/standQA/index.vue index ea47b938a..4bc7cbafe 100644 --- a/src/pages/regulatoryRepository/standQA/index.vue +++ b/src/pages/regulatoryRepository/standQA/index.vue @@ -59,7 +59,8 @@ 查看 - 订阅 + 订阅 + 取消订阅 @@ -673,7 +674,10 @@ export default { this.handleDetail(command[0]) break case '订阅': - this.subscribe(command[0]) + this.subscribe(command[0],'y') + break + case '取消订阅': + this.subscribe(command[0],'n') break } }, @@ -690,14 +694,15 @@ export default { }, e => { }) }, - subscribe(row){ + subscribe(row,subState){ this.$http.postData('lawss/Subscription/insertSubscription',{ askId: row.id, usId: this.$store.getters.userInfo.userId, + subState: subState, },{ _this: this }, res => { - console.log(res); + row.subState = subState }) }, refreshStandMap(){