|
@@ -79,12 +79,12 @@ onMounted(async () => {
|
|
|
loading.value = false
|
|
|
})
|
|
|
const fields = [
|
|
|
- { label: t('pages.user.account'), model: 'account', filter: true },
|
|
|
- { label: t('pages.user.nick_name'), model: 'nick_name', filter: true },
|
|
|
- { label: t('pages.user.email'), model: 'email' },
|
|
|
- { label: t('pages.user.phone'), model: 'phone', filter: true },
|
|
|
- { label: t('pages.user.role'), model: 'role', custom: true },
|
|
|
- { label: t('pages.user.status'), model: 'status', format: (i) => getDict(i) }
|
|
|
+ { label: t('pages.teacher.nick_name'), model: 'nick_name', filter: true },
|
|
|
+ { label: t('pages.teacher.gender'), model: 'gender', filter: true },
|
|
|
+ { label: t('pages.teacher.education'), model: 'education' },
|
|
|
+ { label: t('pages.teacher.phone'), model: 'phone', filter: true },
|
|
|
+ { label: t('pages.teacher.role'), model: 'role', custom: true },
|
|
|
+ { label: t('pages.teacher.status'), model: 'status', format: (i) => getDict(i) }
|
|
|
]
|
|
|
const opera = [
|
|
|
{ label: t('common.view'), method: 'view' },
|
|
@@ -97,7 +97,7 @@ const opera = [
|
|
|
}
|
|
|
]
|
|
|
const searchForm = ref({})
|
|
|
-const dialog = ref({ type: '1', show: false, title: t('pages.user.dialogTitle') })
|
|
|
+const dialog = ref({ type: '1', show: false, title: t('pages.teacher.dialogTitle') })
|
|
|
// 查询
|
|
|
const search = async (query = { skip: 0, limit }) => {
|
|
|
const info = { skip: query.skip, limit: query.limit, ...searchForm.value }
|
|
@@ -111,7 +111,7 @@ const search = async (query = { skip: 0, limit }) => {
|
|
|
const ruleFormRef = ref()
|
|
|
const form = ref({})
|
|
|
// 审核
|
|
|
-const examFormFields = [{ label: t('pages.user.status'), model: 'status', type: 'select' }]
|
|
|
+const examFormFields = [{ label: t('pages.teacher.status'), model: 'status', type: 'select' }]
|
|
|
const examRules = reactive({
|
|
|
status: [{ required: true, message: t('common.statusMessage'), trigger: 'blur' }]
|
|
|
})
|
|
@@ -150,12 +150,12 @@ const getDict = (data) => {
|
|
|
// 查看
|
|
|
const toView = async (data) => {
|
|
|
form.value = data
|
|
|
- dialog.value = { type: '1', show: true, title: t('pages.user.dialogTitle') }
|
|
|
+ dialog.value = { type: '1', show: true, title: t('pages.teacher.dialogTitle') }
|
|
|
}
|
|
|
// 审核
|
|
|
const toExam = (data) => {
|
|
|
examForm.value = data
|
|
|
- dialog.value = { type: '2', show: true, title: t('pages.user.examDialogTitle') }
|
|
|
+ dialog.value = { type: '2', show: true, title: t('pages.teacher.examDialogTitle') }
|
|
|
}
|
|
|
// 审核保存
|
|
|
const toExamSave = async () => {
|