|
|
@@ -310,6 +310,15 @@
|
|
|
v-hasPermi="['qw:externalContact:addTag']"
|
|
|
>批量添加标签</el-button>
|
|
|
</el-col>
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ plain
|
|
|
+ size="mini"
|
|
|
+ @click="addUserTagFilter"
|
|
|
+ v-hasPermi="['qw:externalContact:addTag']"
|
|
|
+ >批量添加标签(筛选条件)</el-button>
|
|
|
+ </el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
@@ -1063,7 +1072,9 @@ export default {
|
|
|
|
|
|
addTagForm:{
|
|
|
userIds:[],
|
|
|
- tagIds:[]
|
|
|
+ tagIds:[],
|
|
|
+ filter: false,
|
|
|
+ addType: 0
|
|
|
},
|
|
|
|
|
|
myQwCompanyList:[],
|
|
|
@@ -1126,7 +1137,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
tagTotal:0,
|
|
|
-
|
|
|
+ tagFilter:false,
|
|
|
// 查询参数
|
|
|
queryParams: {
|
|
|
pageNum: 1,
|
|
|
@@ -1484,7 +1495,29 @@ export default {
|
|
|
|
|
|
|
|
|
this.tagOpen = true;
|
|
|
+ this.tagFilter = false;
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
+ addUserTagFilter(){
|
|
|
+
|
|
|
+ if(this.externalContactList.length == 0){
|
|
|
+ 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;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }, 200);
|
|
|
+
|
|
|
+ this.tagOpen = true;
|
|
|
+ this.tagFilter = true;
|
|
|
},
|
|
|
|
|
|
|
|
|
@@ -1696,7 +1729,12 @@ export default {
|
|
|
|
|
|
this.addTagForm.corpId=this.queryParams.corpId
|
|
|
this.addTagForm.userIds=this.ids;
|
|
|
-
|
|
|
+ this.addTagForm.filter = this.tagFilter;
|
|
|
+ let obj = JSON.parse(JSON.stringify(this.queryParams))
|
|
|
+ if(obj.tagIds !== null && obj.tagIds !== undefined && obj.tagIds !== ''){
|
|
|
+ obj.tagIds = obj.tagIds.split(",");
|
|
|
+ }
|
|
|
+ this.addTagForm.param = obj;
|
|
|
|
|
|
let loadingRock = this.$loading({
|
|
|
lock: true,
|
|
|
@@ -1711,8 +1749,10 @@ export default {
|
|
|
this.tagOpen = false;
|
|
|
loadingRock.close();
|
|
|
this.addTagForm={
|
|
|
- userIds:[],
|
|
|
- tagIds:[]
|
|
|
+ filter: false,
|
|
|
+ addType: 0,
|
|
|
+ userIds:[],
|
|
|
+ tagIds:[]
|
|
|
};
|
|
|
this.getList()
|
|
|
}).finally(res=>{
|