顾绍勇 vor 5 Jahren
Ursprung
Commit
33289b9f1b

+ 6
- 1
src/pages/customer/customerlist/components/BatchAssistConsultant.jsx Datei anzeigen

@@ -98,7 +98,12 @@ class ModalAttribution extends React.Component {
98 98
     // 网路请求
99 99
     request({ ...apis.customer.batchConsultantAssist, data: { userId: record.userId, customerIds: this.state.visibleData.customerId } }).then(res => {
100 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 107
       this.handleCancel()
103 108
     }).catch(err => {
104 109
       // eslint-disable-next-line no-unused-expressions

+ 0
- 1
src/pages/customer/customerlist/components/assistConsultant.jsx Datei anzeigen

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