From 2d1f7bd9e68a2ee60bbd1adcc9cd43c94db08c0d Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期三, 24 七月 2024 15:05:37 +0800
Subject: [PATCH] feat:选人增加姓名

---
 src/views/exam/personalRandomTemplate/edit.vue |   23 +++++++++++++++++------
 1 files changed, 17 insertions(+), 6 deletions(-)

diff --git a/src/views/exam/personalRandomTemplate/edit.vue b/src/views/exam/personalRandomTemplate/edit.vue
index 7fc5262..b6d8537 100644
--- a/src/views/exam/personalRandomTemplate/edit.vue
+++ b/src/views/exam/personalRandomTemplate/edit.vue
@@ -143,21 +143,23 @@
 
     <el-dialog :visible.sync="studentDialog" width="70%">
       <el-form :model="student" ref="queryForm" :inline="true">
-        <el-form-item label="鏍囩锛�">
-          <el-select v-model="student.tagIds" clearable multiple>
+        <el-form-item>
+          <el-select v-model="student.tagIds" clearable multiple placeholder="鏍囩">
             <el-option v-for="item in tags" :key="item.id" :value="item.id" :label="item.name"></el-option>
           </el-select>
         </el-form-item>
-        <el-form-item label="鎺掗櫎鏍囩锛�">
-          <el-select v-model="student.excludeTagIds" clearable multiple>
+        <el-form-item>
+          <el-select v-model="student.excludeTagIds" clearable multiple placeholder="鎺掗櫎鏍囩">
             <el-option v-for="item in tags" :key="item.id" :value="item.id" :label="item.name"></el-option>
           </el-select>
         </el-form-item>
-        <el-form-item label="閮ㄩ棬锛�">
+        <el-form-item>
           <!-- <el-select v-model="student.deptIds" clearable multiple>
             <el-option v-for="item in depts" :key="item.id" :value="item.id" :label="item.name"></el-option>
           </el-select> -->
           <el-cascader
+          filterable
+          placeholder="璇烽�夋嫨閮ㄩ棬"
           clearable
           collapse-tags
           v-model="student.deptIds"
@@ -166,10 +168,13 @@
           ></el-cascader>
         </el-form-item>
         <el-form-item>
+          <el-input v-model="student.realName" clearable placeholder="璇疯緭鍏ュ鍚�"></el-input>
+        </el-form-item>
+        <el-form-item>
           <el-button type="primary" @click="selectStudent">鏌ヨ</el-button>
         </el-form-item>
       </el-form>
-      <el-button type="primary" @click="selectAllBoolean ? selectAll() : unselectAll()">{{ selectAllBoolean ? '鍏ㄩ��' : '鍙栨秷鍏ㄩ��' }}</el-button>
+      <el-button type="danger" @click="selectAllBoolean ? selectAll() : unselectAll()" size="small" style="margin-bottom: 3px">{{ selectAllBoolean ? '鍏ㄩ��' : '鍙栨秷鍏ㄩ��' }}</el-button>
       <el-table ref="multipleTable" v-loading="student.listLoading" :data="tableData" border fit highlight-current-row
         style="width: 100%" @selection-change="handleSelection" row-key="id">
         <el-table-column type="selection" :reserve-selection="true"></el-table-column>
@@ -239,6 +244,7 @@
       },
       subjectIdList: [],
       form: {
+        deptId: '',
         aggregateSource: '100',
         id: null,
         departmentIds: [],
@@ -309,6 +315,11 @@
     });
   },
   async mounted() {
+    departmentApi.getCurrentDeptId().then(res => {
+      if (res.response && res.response[0]) {
+        this.form.deptId = res.response[0];
+      }
+    });
 
     let id = this.$route.query.id;
     let _this = this;

--
Gitblit v1.8.0