|
|
@@ -1761,26 +1761,16 @@ export default {
|
|
|
return this.$message('请选择需要添加标签的客户');
|
|
|
}
|
|
|
|
|
|
- // 重置查询参数
|
|
|
- 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;
|
|
|
- }
|
|
|
- }
|
|
|
+ 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;
|
|
|
}
|
|
|
- }, 100);
|
|
|
- });
|
|
|
+ }
|
|
|
+ }, 200);
|
|
|
|
|
|
this.tagOpen = true;
|
|
|
|
|
|
@@ -1792,26 +1782,15 @@ export default {
|
|
|
return this.$message('请选择需要移除标签的客户');
|
|
|
}
|
|
|
|
|
|
- // 重置查询参数
|
|
|
- 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;
|
|
|
- }
|
|
|
- }
|
|
|
+ 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;
|
|
|
}
|
|
|
- }, 100);
|
|
|
- });
|
|
|
+ }
|
|
|
+ }, 200);
|
|
|
|
|
|
this.tagDelOpen = true;
|
|
|
|
|
|
@@ -2424,6 +2403,9 @@ export default {
|
|
|
if(obj.tagIds !== null && obj.tagIds !== undefined && obj.tagIds !== ''){
|
|
|
obj.tagIds = obj.tagIds.split(",");
|
|
|
}
|
|
|
+ if(obj.outTagIds !== null && obj.outTagIds !== undefined && obj.outTagIds !== ''){
|
|
|
+ obj.outTagIds = obj.outTagIds.split(",");
|
|
|
+ }
|
|
|
batchUpdateExternalContactNotes({
|
|
|
addType: 0,
|
|
|
userIds: this.ids,
|