Prechádzať zdrojové kódy

feat:项目会员管理-所属销售改成多选

caoliqin 1 deň pred
rodič
commit
a119a30101
1 zmenil súbory, kde vykonal 8 pridanie a 2 odobranie
  1. 8 2
      src/views/his/user/indexProject.vue

+ 8 - 2
src/views/his/user/indexProject.vue

@@ -74,7 +74,9 @@
       <el-form-item label="所属销售" prop="companyUserNickName">
 
         <el-select
-          v-model="queryParams.companyUserId"
+          v-model="queryParams.companyUserIds"
+          multiple
+          collapse-tags
           placeholder="请选择所属销售"
           clearable
           filterable
@@ -472,7 +474,9 @@ export default {
         endCreateTime: null,
         companyId: null,
         companyUserNickName: null,
-        userId: null
+        userId: null,
+        companyUserIds: [], //销售id 多选数组
+        companyUserIdMulti: null, //销售id 用于传到后端
       },
       // 表单参数
       form: {},
@@ -562,6 +566,7 @@ export default {
     /** 查询用户列表 */
     getList() {
       this.loading = true;
+      this.queryParams.companyUserIdMulti =this.queryParams.companyUserIds.join(",");
       listUserByProject(this.queryParams).then(response => {
         this.userList = response.rows;
         this.total = response.total;
@@ -796,6 +801,7 @@ export default {
       if (!this.changeCompanyUserForm.companyId) {
         this.$message.warning('请先选择公司');
         this.changeCompanyUserForm.companyUserId = null;
+
         return;
       }
     },