|
@@ -3,7 +3,14 @@
|
|
|
<el-row>
|
|
|
<el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
|
|
|
<el-col :span="24" class="one">
|
|
|
- <cSearch :is_title="false" :is_search="true" :fields="fields" @search="toSearch"> </cSearch>
|
|
|
+ <cSearch :is_title="false" :is_search="true" :fields="fields" @search="toSearch">
|
|
|
+ <template #area>
|
|
|
+ <el-option v-for="i in areaList" :key="i.value" :label="i.label" :value="i.value"></el-option>
|
|
|
+ </template>
|
|
|
+ <template #status>
|
|
|
+ <el-option v-for="i in statusList" :key="i.value" :label="i.label" :value="i.value"></el-option>
|
|
|
+ </template>
|
|
|
+ </cSearch>
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="two">
|
|
|
<cButton @toAdd="toAdd()"> </cButton>
|
|
@@ -62,8 +69,8 @@ let fields: Ref<any[]> = ref([
|
|
|
{ label: '账号', model: 'account', isSearch: true },
|
|
|
{ label: '姓名', model: 'name', isSearch: true },
|
|
|
{ label: '手机号', model: 'phone', isSearch: true },
|
|
|
- { label: '所属辖区', model: 'area', format: (i) => getDict(i, 'area') },
|
|
|
- { label: '状态', model: 'status', format: (i) => getDict(i, 'status') }
|
|
|
+ { label: '所属辖区', model: 'area', format: (i) => getDict(i, 'area'), isSearch: true, type: 'select' },
|
|
|
+ { label: '审核状态', model: 'status', format: (i) => getDict(i, 'status'), isSearch: true, type: 'select' }
|
|
|
]);
|
|
|
// 操作
|
|
|
let opera: Ref<any[]> = ref([
|
|
@@ -117,7 +124,7 @@ const toAdd = () => {
|
|
|
router.push({ path: '/user/expert/detail' });
|
|
|
};
|
|
|
const toView = (data) => {
|
|
|
- router.push({ path: '/user/expert/detail', query: { id: data._id, isdisabled: 'true' } });
|
|
|
+ router.push({ path: '/user/expert/detail', query: { id: data._id, isdisabled: `${true}` } });
|
|
|
};
|
|
|
// 修改
|
|
|
const toEdit = async (data) => {
|