靓号-后台-查询-分区

This commit is contained in:
khalil
2024-10-12 14:57:48 +08:00
parent 097dea0693
commit 2c64fc1443

View File

@@ -29,6 +29,17 @@
<el-input v-model.trim="searchForm.sid" <el-input v-model.trim="searchForm.sid"
placeholder="Please enter"></el-input> placeholder="Please enter"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="Region"
prop="partitionId">
<el-select v-model="searchForm.partitionId">
<el-option label="全部"
value=""></el-option>
<el-option v-for="item in partitionInfoList"
:key="item.id"
:label="item.desc"
:value="item.id"></el-option>
</el-select>
</el-form-item>
<el-form-item label-width="40px"> <el-form-item label-width="40px">
<el-button type="primary" <el-button type="primary"
@click="handSearch">Search</el-button> @click="handSearch">Search</el-button>
@@ -84,6 +95,10 @@
prop="nick" prop="nick"
label="Nickname"> label="Nickname">
</el-table-column> </el-table-column>
<el-table-column align="center"
prop="partitionInfo"
label="Region">
</el-table-column>
<el-table-column align="center" <el-table-column align="center"
prop="createTime" prop="createTime"
label="Apply time"> label="Apply time">
@@ -155,6 +170,7 @@ import {
prettyNumberExamineReject, prettyNumberExamineReject,
erbanUpload, erbanUpload,
} from "@/api/relPrivilegeManage/relPrivilegeManage.js"; } from "@/api/relPrivilegeManage/relPrivilegeManage.js";
import { getPartitionInfoList } from '@/api/partition/partitionInfo';
import TablePagination from "@/components/common/TablePagination"; import TablePagination from "@/components/common/TablePagination";
import { formatDate } from "@/utils/relDate"; import { formatDate } from "@/utils/relDate";
import { ElMessageBox, ElMessage } from "element-plus"; // 正确引入 ElM import { ElMessageBox, ElMessage } from "element-plus"; // 正确引入 ElM
@@ -167,14 +183,15 @@ export default {
components: { TablePagination }, components: { TablePagination },
data () { data () {
return { return {
partitionInfoList: [],
tableLoading: false, // 表格是否加载中 tableLoading: false, // 表格是否加载中
tableData: [], // 接口返回的表格数据 tableData: [], // 接口返回的表格数据
// 搜索表单相关 // 搜索表单相关
searchForm: { searchForm: {
erbanNo: null, erbanNo: null,
uid: null, uid: null,
level: null, sid: null,
region: null, partitionId: null,
}, },
pageTotal: 0, // 接口返回的表格总条数 pageTotal: 0, // 接口返回的表格总条数
pageParams: { pageParams: {
@@ -184,6 +201,7 @@ export default {
}; };
}, },
created () { created () {
this.initPartition();
this.getData(); this.getData();
}, },
methods: { methods: {
@@ -329,7 +347,6 @@ export default {
this.pageParams.pageNo = 1; this.pageParams.pageNo = 1;
this.getData(); this.getData();
}, },
// 分页导航 // 分页导航
handleSizeChange (val) { handleSizeChange (val) {
this.pageParams.pageNo = val; this.pageParams.pageNo = val;
@@ -342,6 +359,12 @@ export default {
headerCopy (column, e) { headerCopy (column, e) {
this.$copy(column.label); this.$copy(column.label);
}, },
initPartition () {
getPartitionInfoList().then(res => {
let data = res.data;
this.partitionInfoList = data;
});
},
}, },
computed: { computed: {
applyStateTag () { applyStateTag () {