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(){