|
@@ -6,7 +6,7 @@
|
|
<cSearch :is_title="false" :is_search="true" :fields="fields" @search="toSearch"> </cSearch>
|
|
<cSearch :is_title="false" :is_search="true" :fields="fields" @search="toSearch"> </cSearch>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="24" class="two">
|
|
<el-col :span="24" class="two">
|
|
- <cTable :fields="fields" :opera="opera" :list="list" @query="search" :total="total" @view="toView" @exam="toExam" @del="toDel"> </cTable>
|
|
|
|
|
|
+ <cTable :fields="fields" :opera="opera" :list="list" @query="search" :total="total" @edit="toEdit" @exam="toExam" @del="toDel"> </cTable>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -58,7 +58,7 @@ let fields: Ref<any[]> = ref([
|
|
]);
|
|
]);
|
|
// 操作
|
|
// 操作
|
|
let opera: Ref<any[]> = ref([
|
|
let opera: Ref<any[]> = ref([
|
|
- { label: '查看', method: 'view', tpye: 'Info' },
|
|
|
|
|
|
+ { label: '修改', method: 'edit' },
|
|
{ label: '审核', method: 'exam', type: 'warning' },
|
|
{ label: '审核', method: 'exam', type: 'warning' },
|
|
{ label: '删除', method: 'del', confirm: true, type: 'danger' }
|
|
{ label: '删除', method: 'del', confirm: true, type: 'danger' }
|
|
]);
|
|
]);
|
|
@@ -104,7 +104,7 @@ const getDict = (e, model) => {
|
|
}
|
|
}
|
|
};
|
|
};
|
|
// 查看
|
|
// 查看
|
|
-const toView = (data) => {
|
|
|
|
|
|
+const toEdit = (data) => {
|
|
router.push({ path: '/team/examine/detail', query: { id: data._id } });
|
|
router.push({ path: '/team/examine/detail', query: { id: data._id } });
|
|
};
|
|
};
|
|
// 审核
|
|
// 审核
|
|
@@ -151,7 +151,7 @@ const searchOther = async () => {
|
|
res = await dictAxios.query({ type: 'type' });
|
|
res = await dictAxios.query({ type: 'type' });
|
|
if (res.errcode == '0') typeList.value = res.data;
|
|
if (res.errcode == '0') typeList.value = res.data;
|
|
// 状态
|
|
// 状态
|
|
- res = await dictAxios.query({ type: 'ststus' });
|
|
|
|
|
|
+ res = await dictAxios.query({ type: 'status' });
|
|
if (res.errcode == '0') statusList.value = res.data;
|
|
if (res.errcode == '0') statusList.value = res.data;
|
|
// 管理员
|
|
// 管理员
|
|
res = await userAxios.query({ status: '1' });
|
|
res = await userAxios.query({ status: '1' });
|