| | |
| | | <div class="search-item"> |
| | | <span>状态:</span> |
| | | <div class="option"> |
| | | <el-input v-model="searchStatus" placeholder="选择状态"></el-input> |
| | | <el-select v-model="searchStatus" placeholder="选择状态"> |
| | | <el-option v-for="{ label, value } in statusOptions" :key="value" :label="label" :value="value"></el-option> |
| | | </el-select> |
| | | </div> |
| | | </div> |
| | | <div class="findBtn"> |
| | |
| | | import updateUser from "./updateUser"; |
| | | import detailUser from "./detailUser"; |
| | | import { deleteTeam, exportTeamInfo, importTeamInfo, searchTeamInfo } from "@/api/system/portal/teamConstruction"; |
| | | import {SUCCESS_CODE} from "@/utils"; |
| | | import { SUCCESS_CODE } from "@/utils"; |
| | | import {downloadFile} from "@/utils/helper"; |
| | | |
| | | export default { |
| | |
| | | myIdx: 0, |
| | | preMyIdx: 0, |
| | | file: null, |
| | | statusOptions: [ |
| | | { |
| | | value: 2, |
| | | label: '全部' |
| | | }, |
| | | { |
| | | value: 1, |
| | | label: '启用' |
| | | }, |
| | | { |
| | | value: 0, |
| | | label: '禁用' |
| | | } |
| | | ], |
| | | options: [ |
| | | { |
| | | value: 0, |
| | |
| | | this.updateDepartmentData = data; |
| | | }, |
| | | |
| | | // 查看 |
| | | showViewDialog() { |
| | | this.dialogcheck = true; |
| | | }, |
| | | |
| | | // 添加界面 |
| | | showAddDialog() { |
| | | this.dialogAdd = true; |
| | |
| | | |
| | | // 导出 |
| | | exportTable() { |
| | | exportTeamInfo({ current: this.currentPage, size: this.pageSize, departName: this.searchDepartment, status: this.searchStatus }) |
| | | const status = this.searchStatus === 2 ? null : this.searchStatus; |
| | | exportTeamInfo({ current: this.currentPage, size: this.pageSize, departName: this.searchDepartment, status }) |
| | | .then(res => { |
| | | downloadFile(res); |
| | | this.$message({ type: 'success', message: '操作成功' }); |
| | |
| | | |
| | | // 获取用户列表 |
| | | getDepartmentList() { |
| | | const status = this.searchStatus === 2 ? null : this.searchStatus; |
| | | const searchInfo = { |
| | | current: this.currentPage, size: this.pageSize, departName: this.searchDepartment, status: this.searchStatus |
| | | current: this.currentPage, size: this.pageSize, departName: this.searchDepartment, status |
| | | }; |
| | | searchTeamInfo(searchInfo) |
| | | .then(({ records, total }) => { |