From b3ad5f81fcf059c9fbd117680ad69e4e1eeebf4e Mon Sep 17 00:00:00 2001
From: zsvg <8680782@qq.com>
Date: Tue, 12 Jul 2022 20:37:00 +0800
Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8Doracle=EF=BC=8C=E6=9B=BF?=
=?UTF-8?q?=E6=8D=A2level=E5=85=B3=E9=94=AE=E5=AD=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/de/supp/main/edit.vue | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
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',
});