duanshenglang il y a 1 semaine
Parent
commit
65992c9704
2 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 3 1
      lottery/qw/taskDetail.html
  2. 1 1
      lottery/qw/toDoTask.html

+ 3 - 1
lottery/qw/taskDetail.html

@@ -667,6 +667,7 @@
         bId: null,
         env: '',
         taskId: null,
+        businessId: null,
         type: null,
         taskData: {}
       }
@@ -675,6 +676,7 @@
       this.bId = this.getQueryParam('bId')
       this.env = this.getQueryParam('env')
       this.taskId = this.getQueryParam('taskId')
+      this.businessId = this.getQueryParam('businessId')
       this.type = this.getQueryParam('type')
       if (!this.env || this.env === 'prod') {
         this.httpUrl = 'https://wlapi.wefanbot.com'
@@ -687,7 +689,7 @@
     },
     methods: {
       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 => {
             return res.json()
           }).then(result => {

+ 1 - 1
lottery/qw/toDoTask.html

@@ -295,7 +295,7 @@
             }
           });
         } else if (this.taskType === 'CLIENT_SOP') {
-          window.location.href = `taskDetail.html?taskId=${item.businessId}&type=${item.type}&env=${this.env}&bId=${this.bId}`
+          window.location.href = `taskDetail.html?taskId=${item.businessId}&businessId=${item.todoTaskId}&type=${item.type}&env=${this.env}&bId=${this.bId}`
         } else {
           window.location.href = `taskDetail.html?taskId=${item.todoTaskId}&type=${item.type}&env=${this.env}&bId=${this.bId}`
         }