顾绍勇 5 år sedan
förälder
incheckning
33289b9f1b

+ 6
- 1
src/pages/customer/customerlist/components/BatchAssistConsultant.jsx Visa fil

98
     // 网路请求
98
     // 网路请求
99
     request({ ...apis.customer.batchConsultantAssist, data: { userId: record.userId, customerIds: this.state.visibleData.customerId } }).then(res => {
99
     request({ ...apis.customer.batchConsultantAssist, data: { userId: record.userId, customerIds: this.state.visibleData.customerId } }).then(res => {
100
       // eslint-disable-next-line no-unused-expressions
100
       // eslint-disable-next-line no-unused-expressions
101
-      this.openNotificationWithIcon('success', '操作成功')
101
+      debugger
102
+      if(res!= null && res.failNum > 0 ){
103
+        this.openNotificationWithIcon('success', '共'+res.totalNum+'条数据,失败操作'+res.failNum+'条')
104
+      }else{
105
+        this.openNotificationWithIcon('success', '操作成功')
106
+      }
102
       this.handleCancel()
107
       this.handleCancel()
103
     }).catch(err => {
108
     }).catch(err => {
104
       // eslint-disable-next-line no-unused-expressions
109
       // eslint-disable-next-line no-unused-expressions

+ 0
- 1
src/pages/customer/customerlist/components/assistConsultant.jsx Visa fil

95
     // 网路请求
95
     // 网路请求
96
     request({ ...apis.customer.consultantAssist, urlData: { id: this.state.visibleData.customerId }, data: { userId: record.userId } }).then(res => {
96
     request({ ...apis.customer.consultantAssist, urlData: { id: this.state.visibleData.customerId }, data: { userId: record.userId } }).then(res => {
97
       // eslint-disable-next-line no-unused-expressions
97
       // eslint-disable-next-line no-unused-expressions
98
-      debugger
99
       this.openNotificationWithIcon('success', '操作成功')
98
       this.openNotificationWithIcon('success', '操作成功')
100
       this.handleCancel()
99
       this.handleCancel()
101
     }).catch(err => {
100
     }).catch(err => {