| | |
| | | <template> |
| | | <el-dialog v-model="params.visible" :title="params.data?.dictValue || '人员选择'" destroy-on-close @close="dialogClose" @open="dialogOpen"> |
| | | <div class="container"> |
| | | <div class="container" v-loading="isLoading" element-loading-text="数据加载中,请稍后。。。"> |
| | | <el-transfer v-model="value" :data="userList" :props="{ label: 'realName', key: 'id' }" filterable filter-placeholder="请输入人员姓名" |
| | | :titles="['参与投票人员', '不参与投票人员']" /> |
| | | </div> |
| | | <template #footer> |
| | | <el-button @click="params.visible = false">取消</el-button> |
| | | <el-button type="primary" @click="submit">确认选择</el-button> |
| | | <el-button type="primary" @click="submit" :loading="isLoading">确认选择</el-button> |
| | | </template> |
| | | </el-dialog> |
| | | </template> |
| | |
| | | userList: [], |
| | | value: [], |
| | | notParticipateIn: [], |
| | | participateIn: [] |
| | | participateIn: [], |
| | | isLoading: true, |
| | | } |
| | | }, |
| | | watch: { |
| | |
| | | dialogOpen() { |
| | | const { dictKey } = this.params.data |
| | | getEmployeeLevelList(dictKey).then(res => { |
| | | if (res.data.code !== 200) return this.$message.error('数据加载失败,请关闭窗口后重试!!') |
| | | this.userList = res.data.data |
| | | this.isLoading = false |
| | | }) |
| | | }, |
| | | submit() { |