diff --git a/src/pages/de/supp/main/edit.vue b/src/pages/de/supp/main/edit.vue index 5f8b31e..1f0a961 100644 --- a/src/pages/de/supp/main/edit.vue +++ b/src/pages/de/supp/main/edit.vue @@ -31,8 +31,8 @@ - - + + @@ -158,7 +158,7 @@ const { proxy } = getCurrentInstance() as any; const activeName = ref('tab1'); const state = reactive({ - url: '/de/supp/main', cates: [] as any, levels: [] as any, + url: '/de/supp/main', cates: [] as any, grades: [] as any, params: { path: '', query: '' }, form: { avtag: true, contacts: [] as any, atts: [] as any } as any, uploadUrl: '', headers: {} as any, @@ -170,7 +170,7 @@ const { form } = toRefs(state); onMounted(async () => { await editInit({ state, route }); await catesInit(); - await levelsInit(); + await gradesInit(); state.uploadUrl = `${import.meta.env.VITE_API_URL}gen/att/up`; state.headers = { 'Authorization': Session.get('token') }; }); @@ -319,9 +319,9 @@ const handlePreview: UploadProps['onPreview'] = (uploadFile) => { const handleSuccess = (a: any, b: any, c: any) => { c[c.length - 1] = { ...a }; c[c.length - 1].name = a.pname + '.' + a.sname; - if(form.value.id){ - c[c.length - 1].maiid=form.value.id; - } + if(form.value.id){ + c[c.length - 1].maiid=form.value.id; + } }; const handleExceed: UploadProps['onExceed'] = (files, uploadFiles) => { @@ -342,8 +342,8 @@ const catesInit = async () => { }); }; -const levelsInit = async () => { - state.levels = await request({ +const gradesInit = async () => { + state.grades = await request({ url: '/ass/dict/data/list?maiid=SU_LEVEL', method: 'get', });