xiaohaizhao 1 год назад
Родитель
Сommit
1ca5446a26

+ 2 - 1
packageA/achievement/modules/bills.js

@@ -66,7 +66,7 @@ Component({
         },
         getList(init = false) {
             if (init.detail != undefined) init = init.detail;
-            let content = this.data.content;
+            let content = JSON.parse(JSON.stringify(this.data.content));
             if (init) {
                 content.pageNumber = 1;
                 content.pageTotal = 1;
@@ -82,6 +82,7 @@ Component({
                 content
             }).then(res => {
                 console.log(content.dataType + "项目", res)
+                if (this.data.content.dataType != content.dataType) return;
                 this.selectComponent("#ListBox").setHeight(".head", this);
                 this.selectComponent('#ListBox').RefreshToComplete();
                 if (res.msg != '成功') return wx.showToast({

+ 2 - 1
packageA/achievement/modules/client.js

@@ -66,7 +66,7 @@ Component({
         },
         getList(init = false) {
             if (init.detail != undefined) init = init.detail;
-            let content = this.data.content;
+            let content = JSON.parse(JSON.stringify(this.data.content));
             if (init) {
                 content.pageNumber = 1;
                 content.pageTotal = 1;
@@ -82,6 +82,7 @@ Component({
                 content
             }).then(res => {
                 console.log(content.dataType + "客户", res)
+                if (this.data.content.dataType != content.dataType) return;
                 this.selectComponent("#ListBox").setHeight(".head", this);
                 this.selectComponent('#ListBox').RefreshToComplete();
                 if (res.msg != '成功') return wx.showToast({

+ 2 - 1
packageA/achievement/modules/clue.js

@@ -64,7 +64,7 @@ Component({
         },
         getList(init = false) {
             if (init.detail != undefined) init = init.detail;
-            let content = this.data.content;
+            let content = JSON.parse(JSON.stringify(this.data.content));
             if (init) {
                 content.pageNumber = 1;
                 content.pageTotal = 1;
@@ -80,6 +80,7 @@ Component({
                 content
             }).then(res => {
                 console.log(content.dataType + "线索", res)
+                if (this.data.content.dataType != content.dataType) return;
                 this.selectComponent("#ListBox").setHeight(".head", this);
                 this.selectComponent('#ListBox').RefreshToComplete();
                 if (res.msg != '成功') return wx.showToast({

+ 2 - 1
packageA/achievement/modules/project.js

@@ -66,7 +66,7 @@ Component({
         },
         getList(init = false) {
             if (init.detail != undefined) init = init.detail;
-            let content = this.data.content;
+            let content = JSON.parse(JSON.stringify(this.data.content));
             if (init) {
                 content.pageNumber = 1;
                 content.pageTotal = 1;
@@ -83,6 +83,7 @@ Component({
                 content
             }).then(res => {
                 console.log(content.dataType + "项目", res)
+                if (this.data.content.dataType != content.dataType) return;
                 this.selectComponent("#ListBox").setHeight(".head", this);
                 this.selectComponent('#ListBox').RefreshToComplete();
                 if (res.msg != '成功') return wx.showToast({