|
@@ -1761,16 +1761,26 @@ export default {
|
|
|
return this.$message('请选择需要添加标签的客户');
|
|
return this.$message('请选择需要添加标签的客户');
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- this.getPageListTagGroup();
|
|
|
|
|
-
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
-
|
|
|
|
|
- for (let i = 0; i < this.tagGroupList.length; i++) {
|
|
|
|
|
- for (let x = 0; x < this.tagGroupList[i].tag.length; x++) {
|
|
|
|
|
- this.tagGroupList[i].tag[x].isSelected=false;
|
|
|
|
|
|
|
+ // 重置查询参数
|
|
|
|
|
+ this.queryTagParams.name = null;
|
|
|
|
|
+ this.queryTagParams.pageNum = 1;
|
|
|
|
|
+
|
|
|
|
|
+ this.queryTagParams.corpId = this.queryParams.corpId;
|
|
|
|
|
+ allListTagGroup(this.queryTagParams).then(response => {
|
|
|
|
|
+ this.tagGroupList = response.rows;
|
|
|
|
|
+ this.tagTotal = response.total;
|
|
|
|
|
+
|
|
|
|
|
+ // 数据加载完成后,初始化选中状态
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ for (let i = 0; i < this.tagGroupList.length; i++) {
|
|
|
|
|
+ if (this.tagGroupList[i].tag) {
|
|
|
|
|
+ for (let x = 0; x < this.tagGroupList[i].tag.length; x++) {
|
|
|
|
|
+ this.tagGroupList[i].tag[x].isSelected = false;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
- }, 200);
|
|
|
|
|
|
|
+ }, 100);
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
this.tagOpen = true;
|
|
this.tagOpen = true;
|
|
|
|
|
|
|
@@ -1782,15 +1792,26 @@ export default {
|
|
|
return this.$message('请选择需要移除标签的客户');
|
|
return this.$message('请选择需要移除标签的客户');
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- this.getPageListTagGroup();
|
|
|
|
|
-
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- for (let i = 0; i < this.tagGroupList.length; i++) {
|
|
|
|
|
- for (let x = 0; x < this.tagGroupList[i].tag.length; x++) {
|
|
|
|
|
- this.tagGroupList[i].tag[x].isSelected=false;
|
|
|
|
|
|
|
+ // 重置查询参数
|
|
|
|
|
+ this.queryTagParams.name = null;
|
|
|
|
|
+ this.queryTagParams.pageNum = 1;
|
|
|
|
|
+
|
|
|
|
|
+ this.queryTagParams.corpId = this.queryParams.corpId;
|
|
|
|
|
+ allListTagGroup(this.queryTagParams).then(response => {
|
|
|
|
|
+ this.tagGroupList = response.rows;
|
|
|
|
|
+ this.tagTotal = response.total;
|
|
|
|
|
+
|
|
|
|
|
+ // 数据加载完成后,初始化选中状态
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ for (let i = 0; i < this.tagGroupList.length; i++) {
|
|
|
|
|
+ if (this.tagGroupList[i].tag) {
|
|
|
|
|
+ for (let x = 0; x < this.tagGroupList[i].tag.length; x++) {
|
|
|
|
|
+ this.tagGroupList[i].tag[x].isSelected = false;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
- }, 200);
|
|
|
|
|
|
|
+ }, 100);
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
this.tagDelOpen = true;
|
|
this.tagDelOpen = true;
|
|
|
|
|
|