|
@@ -667,6 +667,7 @@
|
|
|
bId: null,
|
|
bId: null,
|
|
|
env: '',
|
|
env: '',
|
|
|
taskId: null,
|
|
taskId: null,
|
|
|
|
|
+ businessId: null,
|
|
|
type: null,
|
|
type: null,
|
|
|
taskData: {}
|
|
taskData: {}
|
|
|
}
|
|
}
|
|
@@ -675,6 +676,7 @@
|
|
|
this.bId = this.getQueryParam('bId')
|
|
this.bId = this.getQueryParam('bId')
|
|
|
this.env = this.getQueryParam('env')
|
|
this.env = this.getQueryParam('env')
|
|
|
this.taskId = this.getQueryParam('taskId')
|
|
this.taskId = this.getQueryParam('taskId')
|
|
|
|
|
+ this.businessId = this.getQueryParam('businessId')
|
|
|
this.type = this.getQueryParam('type')
|
|
this.type = this.getQueryParam('type')
|
|
|
if (!this.env || this.env === 'prod') {
|
|
if (!this.env || this.env === 'prod') {
|
|
|
this.httpUrl = 'https://wlapi.wefanbot.com'
|
|
this.httpUrl = 'https://wlapi.wefanbot.com'
|
|
@@ -687,7 +689,7 @@
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
toRead() {
|
|
toRead() {
|
|
|
- fetch(this.httpUrl + `/scrm/v1/wxcp-member-todo-task/p/read?taskId=${this.taskId}`)
|
|
|
|
|
|
|
+ fetch(this.httpUrl + `/scrm/v1/wxcp-member-todo-task/p/read?taskId=${this.type === 'CLIENT_SOP' ? this.businessId : this.taskId}`)
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
return res.json()
|
|
return res.json()
|
|
|
}).then(result => {
|
|
}).then(result => {
|