|
|
@@ -11,6 +11,13 @@
|
|
|
<el-option v-for="dict in approval_query_type" :value="dict.value" :label="dict.label"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="是否有管理员" prop="hasAdmin">
|
|
|
+ <el-select v-model="queryParams.hasAdmin" clearable>
|
|
|
+ <el-option label="全部" value="" />
|
|
|
+ <el-option label="是" value="1" />
|
|
|
+ <el-option label="否" value="0" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
|
|
|
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
|
|
@@ -47,6 +54,11 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column label="是否有管理员" align="center" prop="hasAdmin" width="90">
|
|
|
+ <template #default="{ row }">
|
|
|
+ <dict-tag :options="yes_no" :value="row.hasAdmin"></dict-tag>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="统一社会信用代码" align="center" prop="cpyName" width="250">
|
|
|
<template #default="scope">
|
|
|
<div style="margin-left: 10px;">{{ scope.row.cpyInfo.creditCode }}</div>
|
|
|
@@ -79,16 +91,15 @@ import { bindInfoApproval } from '@/api/settled';
|
|
|
import { BindInfoCpyListVo, QueryUserBindInfoBo } from '@/api/enterprise/recordCompany/types';
|
|
|
import { listUserBindInfo } from '@/api/enterprise/recordCompany';
|
|
|
import { CircleCheck, CircleClose } from '@element-plus/icons-vue';
|
|
|
-
|
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
|
const userList = ref<BindInfoCpyListVo[]>([]);
|
|
|
const loading = ref(true);
|
|
|
const total = ref(0);
|
|
|
|
|
|
const queryFormRef = ref<ElFormInstance>();
|
|
|
-const { approval_query_type } = toRefs<any>(proxy?.useDict('approval_query_type'));
|
|
|
+const { approval_query_type, yes_no } = toRefs<any>(proxy?.useDict('approval_query_type', 'yes_no'));
|
|
|
|
|
|
-const data = reactive<PageData<any, QueryUserBindInfoBo>>({
|
|
|
+const data = reactive<PageData<any, any>>({
|
|
|
form: {},
|
|
|
queryParams: {
|
|
|
pageNum: 1,
|
|
|
@@ -96,6 +107,7 @@ const data = reactive<PageData<any, QueryUserBindInfoBo>>({
|
|
|
cpyName: undefined,
|
|
|
userName: undefined,
|
|
|
keywords: undefined,
|
|
|
+ hasAdmin: undefined,
|
|
|
status: '0',
|
|
|
params: {}
|
|
|
},
|
|
|
@@ -138,9 +150,9 @@ const handleApproval = async (row: any, res: string) => {
|
|
|
})
|
|
|
.then(() => {
|
|
|
const params = {
|
|
|
- approvalType: '2',
|
|
|
+ approvalType: +row.hasAdmin ? '0' : '1',
|
|
|
targetId: row.id,
|
|
|
- res
|
|
|
+ res: res,
|
|
|
};
|
|
|
approvalAjax(params);
|
|
|
})
|