|
@@ -21,25 +21,14 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item label="销售企微昵称" prop="qwUserId">
|
|
|
- <el-select v-model="queryParams.qwUserId" clearable filterable remote
|
|
|
- placeholder="请输入销售企微昵称" :remote-method="loadQwUserOptions"
|
|
|
- v-select-load-more="loadMoreQwUserOptions"
|
|
|
- :loading="qwUserOptionsLoading">
|
|
|
- <el-option
|
|
|
- v-for="item in qwUserOptions"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
-<!-- <el-input-->
|
|
|
-<!-- v-model="queryParams.qwUserName"-->
|
|
|
-<!-- placeholder="请输入销售企微昵称"-->
|
|
|
-<!-- clearable-->
|
|
|
-<!-- size="small"-->
|
|
|
-<!-- @keyup.enter.native="handleQuery"-->
|
|
|
-<!-- />-->
|
|
|
+ <el-form-item label="销售企微昵称" prop="qwUserName">
|
|
|
+ <el-input
|
|
|
+ v-model="queryParams.qwUserName"
|
|
|
+ placeholder="请输入销售企微昵称"
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ @keyup.enter.native="handleQuery"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="用户类别" prop="type">
|
|
|
<el-select v-model="queryParams.type" placeholder="请选择用户类别" clearable size="small">
|
|
@@ -138,13 +127,28 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="标签" prop="tagIds">
|
|
|
- <el-select v-model="selectTags" remote multiple placeholder="请选择" filterable style="width: 100%;">
|
|
|
- <el-option
|
|
|
- v-for="dict in tagList"
|
|
|
- :label="dict.name"
|
|
|
- :value="dict.tagId">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
+<!-- <el-select v-model="selectTags" remote multiple placeholder="请选择" filterable style="width: 100%;">-->
|
|
|
+<!-- <el-option-->
|
|
|
+<!-- v-for="dict in tagList"-->
|
|
|
+<!-- :label="dict.name"-->
|
|
|
+<!-- :value="dict.tagId">-->
|
|
|
+<!-- </el-option>-->
|
|
|
+<!-- </el-select>-->
|
|
|
+
|
|
|
+ <div @click="hangleChangeTags()" style="cursor: pointer; border: 1px solid #e6e6e6; background-color: white; overflow: hidden; flex-grow: 1;width: 250px">
|
|
|
+ <div style="min-height: 35px; max-height: 200px; overflow-y: auto;">
|
|
|
+ <el-tag type="success"
|
|
|
+ closable
|
|
|
+ :disable-transitions="false"
|
|
|
+ v-for="list in this.selectTags"
|
|
|
+ :key="list.tagId"
|
|
|
+ @close="handleCloseTags(list)"
|
|
|
+ style="margin: 3px;"
|
|
|
+ >{{list.name}}
|
|
|
+ </el-tag>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
|
|
|
</el-form-item>
|
|
|
<el-form-item label="备注" prop="remark">
|
|
@@ -259,8 +263,8 @@
|
|
|
|
|
|
<el-tabs type="card" v-model="isBindActiveName" @tab-click="handleClickX">
|
|
|
<el-tab-pane label="全部" name="all"></el-tab-pane>
|
|
|
- <el-tab-pane label="已绑定CRM" name="isBind"></el-tab-pane>
|
|
|
- <el-tab-pane label="未绑定CRM" name="noBind"></el-tab-pane>
|
|
|
+<!-- <el-tab-pane label="已绑定CRM" name="isBind"></el-tab-pane>-->
|
|
|
+<!-- <el-tab-pane label="未绑定CRM" name="noBind"></el-tab-pane>-->
|
|
|
</el-tabs>
|
|
|
|
|
|
<el-table v-loading="loading" :data="externalContactList" @selection-change="handleSelectionChange" border>
|
|
@@ -293,10 +297,10 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="备注" align="center" prop="remark" />
|
|
|
<el-table-column label="描述信息" align="center" prop="description" />
|
|
|
- <el-table-column label="标签" align="center" prop="tagIds" width="250px">
|
|
|
+ <el-table-column label="标签" align="center" prop="tagIdsName" width="250px">
|
|
|
<template slot-scope="scope">
|
|
|
- <div v-for="i in JSON.parse(scope.row.tagIds)" :key="i" style="display: inline;">
|
|
|
- <el-tag type="success" v-for="ii in tagList" :key="ii.id" style="margin: 3px;" v-if="ii.tagId==i">{{ii.name}}</el-tag>
|
|
|
+ <div v-for="name in scope.row.tagIdsName" style="display: inline;">
|
|
|
+ <el-tag type="success">{{ name }}</el-tag>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -364,15 +368,15 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="120px" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-edit-outline"
|
|
|
- @click="handleUpdateCustomer(scope.row)"
|
|
|
- >
|
|
|
- <span v-if="scope.row.customerId">换绑CRM</span>
|
|
|
- <span v-else>绑定CRM</span>
|
|
|
- </el-button>
|
|
|
+<!-- <el-button-->
|
|
|
+<!-- size="mini"-->
|
|
|
+<!-- type="text"-->
|
|
|
+<!-- icon="el-icon-edit-outline"-->
|
|
|
+<!-- @click="handleUpdateCustomer(scope.row)"-->
|
|
|
+<!-- >-->
|
|
|
+<!-- <span v-if="scope.row.customerId">换绑CRM</span>-->
|
|
|
+<!-- <span v-else>绑定CRM</span>-->
|
|
|
+<!-- </el-button>-->
|
|
|
|
|
|
<el-button
|
|
|
size="mini"
|
|
@@ -380,8 +384,8 @@
|
|
|
icon="el-icon-edit-outline"
|
|
|
@click="handleUpdateUser(scope.row)"
|
|
|
>
|
|
|
- <span v-if="scope.row.fsUserId">换绑小程序用户</span>
|
|
|
- <span v-else>绑定小程序用户</span>
|
|
|
+ <span v-if="scope.row.fsUserId">换绑会员</span>
|
|
|
+ <span v-else>绑定会员</span>
|
|
|
</el-button>
|
|
|
|
|
|
<el-button
|
|
@@ -391,22 +395,22 @@
|
|
|
@click="handleUnBindUserId(scope.row)"
|
|
|
v-hasPermi="['qw:externalContact:unBindUserId']"
|
|
|
>
|
|
|
- <span v-if="scope.row.fsUserId">解除小程序用户绑定</span>
|
|
|
+ <span v-if="scope.row.fsUserId">解除会员绑定</span>
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
- <el-button v-if="scope.row.customerId"
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-paperclip"
|
|
|
- @click="handleShow(scope.row)"
|
|
|
- >CRM客户详情</el-button>
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- @click="handledetails(scope.row)"
|
|
|
- >用户信息
|
|
|
- </el-button>
|
|
|
+<!-- <el-button v-if="scope.row.customerId"-->
|
|
|
+<!-- size="mini"-->
|
|
|
+<!-- type="text"-->
|
|
|
+<!-- icon="el-icon-paperclip"-->
|
|
|
+<!-- @click="handleShow(scope.row)"-->
|
|
|
+<!-- >CRM客户详情</el-button>-->
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ @click="handledetails(scope.row)"
|
|
|
+ >AI获取用户信息
|
|
|
+ </el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -423,6 +427,44 @@
|
|
|
<customer-details ref="customerDetails" @refreshList="refreshList"/>
|
|
|
</el-drawer>
|
|
|
|
|
|
+
|
|
|
+ <!-- 搜索标签 -->
|
|
|
+ <el-dialog :title="changeTagDialog.title" :visible.sync="changeTagDialog.open" style="width:100%;height: 100%" append-to-body>
|
|
|
+
|
|
|
+ <div>搜索标签:
|
|
|
+ <el-input v-model="queryTagParams.name" placeholder="请输入标签名称" clearable size="small" style="width: 200px;margin-right: 10px" />
|
|
|
+ <el-button type="primary" icon="el-icon-search" size="mini" @click="handleSearchTags(queryTagParams.name)">搜索</el-button>
|
|
|
+ <el-button type="primary" icon="el-icon-plus" size="mini" @click="cancelSearchTags">重置</el-button>
|
|
|
+ </div>
|
|
|
+ <div v-for="item in tagGroupList" :key="item.id" >
|
|
|
+ <div style="font-size: 20px;margin-top: 20px;margin-bottom: 20px;">
|
|
|
+ <span class="name-background">{{ item.name }}</span>
|
|
|
+ </div>
|
|
|
+ <div class="tag-container">
|
|
|
+ <a
|
|
|
+ v-for="tagItem in item.tag"
|
|
|
+ class="tag-box"
|
|
|
+ @click="tagSelection(tagItem)"
|
|
|
+ :class="{ 'tag-selected': tagItem.isSelected }"
|
|
|
+ >
|
|
|
+ {{ tagItem.name }}
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <pagination
|
|
|
+ v-show="tagTotal>0"
|
|
|
+ :total="tagTotal"
|
|
|
+ :page.sync="queryTagParams.pageNum"
|
|
|
+ :limit.sync="queryTagParams.pageSize"
|
|
|
+ @pagination="getPageListTagGroup"
|
|
|
+ />
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="tagSubmitForm()">确 定</el-button>
|
|
|
+ <el-button @click="tagCancel()">取消</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
<el-dialog title="批量添加标签" :visible.sync="tagOpen" width="800px" append-to-body>
|
|
|
<div>搜索标签:
|
|
|
<el-input v-model="tagChange.tagName" placeholder="请输入标签名称" clearable size="small" style="width: 200px;margin-right: 10px" />
|
|
@@ -446,6 +488,13 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-form>
|
|
|
+ <pagination
|
|
|
+ v-show="tagTotal>0"
|
|
|
+ :total="tagTotal"
|
|
|
+ :page.sync="queryTagParams.pageNum"
|
|
|
+ :limit.sync="queryTagParams.pageSize"
|
|
|
+ @pagination="getPageListTagGroup"
|
|
|
+ />
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="addTagSubmitForm()">确 定</el-button>
|
|
|
<el-button @click="addTagCancel">取 消</el-button>
|
|
@@ -475,11 +524,19 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-form>
|
|
|
+ <pagination
|
|
|
+ v-show="tagTotal>0"
|
|
|
+ :total="tagTotal"
|
|
|
+ :page.sync="queryTagParams.pageNum"
|
|
|
+ :limit.sync="queryTagParams.pageSize"
|
|
|
+ @pagination="getPageListTagGroup"
|
|
|
+ />
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="tagDelSubmitForm()">确 定</el-button>
|
|
|
<el-button @click="DelTagCancel">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
<!-- 添加或修改企业微信客户对话框 -->
|
|
|
<el-dialog :title="title" :visible.sync="open" width="700px" append-to-body>
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
@@ -577,8 +634,8 @@ import {
|
|
|
setCustomerCourseSopList,
|
|
|
unBindUserId, updateExternalContactCall
|
|
|
} from '@/api/qw/externalContact'
|
|
|
-import { getMyQwCompanyList, getQwUserListLikeName} from "@/api/qw/user";
|
|
|
-import {listTag, searchTags,} from "@/api/qw/tag";
|
|
|
+import {getMyQwUserList, getMyQwCompanyList, updateUser} from "@/api/qw/user";
|
|
|
+import {listTag, getTag, searchTags,} from "@/api/qw/tag";
|
|
|
import { allListTagGroup} from "@/api/qw/tagGroup";
|
|
|
import mycustomer from '@/views/qw/externalContact/mycustomer'
|
|
|
import customerDetails from '@/views/qw/externalContact/customerDetails'
|
|
@@ -698,6 +755,23 @@ export default {
|
|
|
},
|
|
|
// 来源字典
|
|
|
addWayOptions: [],
|
|
|
+
|
|
|
+ //标签
|
|
|
+ changeTagDialog:{
|
|
|
+ title:"",
|
|
|
+ open:false,
|
|
|
+ },
|
|
|
+
|
|
|
+ queryTagParams:{
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ total:0,
|
|
|
+ name:null,
|
|
|
+ corpId:null,
|
|
|
+ },
|
|
|
+
|
|
|
+ tagTotal:0,
|
|
|
+
|
|
|
// 查询参数
|
|
|
queryParams: {
|
|
|
pageNum: 1,
|
|
@@ -738,16 +812,7 @@ export default {
|
|
|
statusOptions:[],
|
|
|
// 表单校验
|
|
|
rules: {
|
|
|
- },
|
|
|
- // 企微用户选项
|
|
|
- qwUserOptionsParams: {
|
|
|
- name: undefined,
|
|
|
- hasNextPage: false,
|
|
|
- pageNum: 1,
|
|
|
- pageSize: 10
|
|
|
- },
|
|
|
- qwUserOptionsLoading: false,
|
|
|
- qwUserOptions: [],
|
|
|
+ }
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -768,14 +833,13 @@ export default {
|
|
|
this.myQwCompanyList = response.data;
|
|
|
if(this.myQwCompanyList!=null){
|
|
|
this.queryParams.corpId=this.myQwCompanyList[0].dictValue
|
|
|
+
|
|
|
var listTagFrom={corpId:this.queryParams.corpId}
|
|
|
- allListTagGroup(listTagFrom).then(response => {
|
|
|
- this.tagGroupList = response.rows;
|
|
|
- });
|
|
|
listTag(listTagFrom).then(response => {
|
|
|
this.tagList = response.rows;
|
|
|
});
|
|
|
this.getList();
|
|
|
+
|
|
|
}
|
|
|
});
|
|
|
|
|
@@ -810,9 +874,6 @@ export default {
|
|
|
},
|
|
|
updateCorpId(){
|
|
|
var listTagFrom={corpId:this.queryParams.corpId}
|
|
|
- allListTagGroup(listTagFrom).then(response => {
|
|
|
- this.tagGroupList = response.rows;
|
|
|
- });
|
|
|
listTag(listTagFrom).then(response => {
|
|
|
this.tagList = response.rows;
|
|
|
});
|
|
@@ -892,29 +953,106 @@ export default {
|
|
|
return this.$message('请选择需要添加标签的客户');
|
|
|
}
|
|
|
|
|
|
- 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.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;
|
|
|
|
|
|
},
|
|
|
|
|
|
+
|
|
|
+ getPageListTagGroup(){
|
|
|
+ this.queryTagParams.corpId=this.queryParams.corpId
|
|
|
+ allListTagGroup(this.queryTagParams).then(response => {
|
|
|
+ this.tagGroupList = response.rows;
|
|
|
+ this.tagTotal = response.total;
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
delUserTag(){
|
|
|
|
|
|
if(this.ids==null||this.ids==""){
|
|
|
return this.$message('请选择需要移除标签的客户');
|
|
|
}
|
|
|
- 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.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.tagDelOpen = true;
|
|
|
|
|
|
},
|
|
|
|
|
|
+
|
|
|
+ //搜索的标签
|
|
|
+ hangleChangeTags(){
|
|
|
+
|
|
|
+ this.changeTagDialog.title="搜索的标签"
|
|
|
+ this.changeTagDialog.open=true;
|
|
|
+
|
|
|
+ // 获取 tagListFormIndex 中的所有 tagId,用于快速查找
|
|
|
+ const selectedTagIds = new Set(
|
|
|
+ (this.selectTags || []).map(tagItem => tagItem?.tagId)
|
|
|
+ );
|
|
|
+
|
|
|
+ this.queryTagParams.name=null;
|
|
|
+
|
|
|
+ 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 = selectedTagIds.has(this.tagGroupList[i].tag[x].tagId);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }, 200);
|
|
|
+
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
+ //删除一些选择的标签
|
|
|
+ handleCloseTags(list){
|
|
|
+ const ls = this.selectTags.findIndex(t => t.tagId === list.tagId);
|
|
|
+ if (ls !== -1) {
|
|
|
+ this.selectTags.splice(ls, 1);
|
|
|
+ this.selectTags = [...this.selectTags];
|
|
|
+ }
|
|
|
+
|
|
|
+ if (this.selectTags!=null && this.selectTags.length>0){
|
|
|
+ // 确保 this.form.tags 是数组
|
|
|
+ if (!this.queryParams.tagIds) {
|
|
|
+ this.queryParams.tagIds = []; // 如果未定义,初始化
|
|
|
+ } else {
|
|
|
+ this.queryParams.tagIds = []; // 清空已有数据
|
|
|
+ }
|
|
|
+
|
|
|
+ // 遍历并添加 tagId
|
|
|
+ this.selectTags.forEach(tag => {
|
|
|
+ if (tag.tagId) { // 确保 tagId 存在
|
|
|
+ this.queryParams.tagIds.push(tag.tagId);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ this.queryParams.tagIds=this.queryParams.tagIds.join(",");
|
|
|
+ }else {
|
|
|
+ this.queryParams.tagIds=null;
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
//重新获取页面数据
|
|
|
refreshList(){
|
|
|
this.getList();
|
|
@@ -1085,7 +1223,27 @@ export default {
|
|
|
},
|
|
|
/** 搜索按钮操作 */
|
|
|
handleQuery() {
|
|
|
- this.queryParams.tagIds=this.selectTags.join(',')
|
|
|
+
|
|
|
+ if (this.selectTags!=null && this.selectTags.length>0){
|
|
|
+ // 确保 this.form.tags 是数组
|
|
|
+ if (!this.queryParams.tagIds) {
|
|
|
+ this.queryParams.tagIds = []; // 如果未定义,初始化
|
|
|
+ } else {
|
|
|
+ this.queryParams.tagIds = []; // 清空已有数据
|
|
|
+ }
|
|
|
+
|
|
|
+ // 遍历并添加 tagId
|
|
|
+ this.selectTags.forEach(tag => {
|
|
|
+ if (tag.tagId) { // 确保 tagId 存在
|
|
|
+ this.queryParams.tagIds.push(tag.tagId);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ this.queryParams.tagIds=this.queryParams.tagIds.join(",");
|
|
|
+ }else {
|
|
|
+ this.queryParams.tagIds=null;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
this.queryParams.pageNum = 1;
|
|
|
this.getList();
|
|
|
},
|
|
@@ -1098,7 +1256,54 @@ export default {
|
|
|
},
|
|
|
|
|
|
cancelSearchTags(){
|
|
|
- this.updateCorpId()
|
|
|
+ this.resetSearchQueryTag()
|
|
|
+
|
|
|
+ this.getPageListTagGroup();
|
|
|
+ },
|
|
|
+ //确定选择标签
|
|
|
+ tagSubmitForm(){
|
|
|
+
|
|
|
+ for (let i = 0; i < this.tagGroupList.length; i++) {
|
|
|
+ for (let x = 0; x < this.tagGroupList[i].tag.length; x++) {
|
|
|
+ if (this.tagGroupList[i].tag[x].isSelected === true) {
|
|
|
+
|
|
|
+ if (!this.selectTags) {
|
|
|
+ this.selectTags = [];
|
|
|
+ }
|
|
|
+
|
|
|
+ // 检查当前 tag 是否已经存在于 tagListFormIndex[index] 中
|
|
|
+ let tagExists = this.selectTags.some(
|
|
|
+ tag => tag.id === this.tagGroupList[i].tag[x].id
|
|
|
+ );
|
|
|
+
|
|
|
+ // 如果 tag 不存在于 tagListFormIndex[index] 中,则新增
|
|
|
+ if (!tagExists) {
|
|
|
+ this.selectTags.push(this.tagGroupList[i].tag[x]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (!this.selectTags || this.selectTags.length === 0) {
|
|
|
+ return this.$message('请选择标签');
|
|
|
+ }
|
|
|
+
|
|
|
+ this.changeTagDialog.open = false;
|
|
|
+ },
|
|
|
+
|
|
|
+ //取消选择标签
|
|
|
+ tagCancel(){
|
|
|
+ this.changeTagDialog.open = false;
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
+ resetSearchQueryTag(){
|
|
|
+
|
|
|
+ this.queryTagParams= {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ total:0,
|
|
|
+ name:null,
|
|
|
+ };
|
|
|
},
|
|
|
/** 重置按钮操作 */
|
|
|
resetQuery() {
|
|
@@ -1393,40 +1598,6 @@ export default {
|
|
|
this.download(response.msg);
|
|
|
this.exportLoading = false;
|
|
|
}).catch(() => {});
|
|
|
- },
|
|
|
- /**
|
|
|
- * 加载企业微信用户下拉框数据
|
|
|
- * @param query
|
|
|
- */
|
|
|
- loadQwUserOptions(query) {
|
|
|
- this.qwUserOptions = [];
|
|
|
- if (query === '') {
|
|
|
- return
|
|
|
- }
|
|
|
-
|
|
|
- this.qwUserOptionsParams.pageNum = 1
|
|
|
- this.qwUserOptionsParams.name = query
|
|
|
- this.qwUserOptionsLoading = true
|
|
|
- this.getQwUserListLikeName()
|
|
|
- },
|
|
|
- /**
|
|
|
- * 获取企业微信用户下拉框数据
|
|
|
- */
|
|
|
- getQwUserListLikeName() {
|
|
|
- getQwUserListLikeName(this.qwUserOptionsParams).then(response => {
|
|
|
- this.qwUserOptions = [...this.qwUserOptions, ...response.data.list]
|
|
|
- this.qwUserOptionsParams.hasNextPage = response.data.hasNextPage
|
|
|
- this.qwUserOptionsLoading = false
|
|
|
- })
|
|
|
- },
|
|
|
- /**
|
|
|
- * 加载更多企业微信用户下拉框数据
|
|
|
- */
|
|
|
- loadMoreQwUserOptions() {
|
|
|
- if (this.qwUserOptionsParams.hasNextPage) {
|
|
|
- this.qwUserOptionsParams.pageNum++
|
|
|
- this.getQwUserListLikeName()
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
};
|