Browse Source

方法名修改

lifanagju_citu 2 months ago
parent
commit
0e9cfe03c1

+ 1 - 0
components.d.ts

@@ -30,6 +30,7 @@ declare module 'vue' {
     CtTextField: typeof import('./src/components/CtVuetify/CtTextField/index.vue')['default']
     DatePicker: typeof import('./src/components/DatePicker/index.vue')['default']
     Echarts: typeof import('./src/components/Echarts/index.vue')['default']
+    ElCascader: typeof import('element-plus/es')['ElCascader']
     ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
     Empty: typeof import('./src/components/Empty/index.vue')['default']
     File: typeof import('./src/components/Upload/file.vue')['default']

+ 3 - 3
src/api/recruit/personal/resume/index.js

@@ -208,7 +208,7 @@ export const enterpriseSearchByName = async (params) => {
 // 学校列表
 export const schoolList = async (data) => {
   return await request.post({
-    url: 'app-api/flames/school/list',
+    url: '/app-api/flames/school/list',
     data
   })
 }
@@ -216,7 +216,7 @@ export const schoolList = async (data) => {
 // 院系列表
 export const departmentList = async (data) => {
   return await request.post({
-    url: 'app-api/flames/school/department/list',
+    url: '/app-api/flames/school/department/list',
     data
   })
 }
@@ -224,7 +224,7 @@ export const departmentList = async (data) => {
 // 获取学生基本信息
 export const getStudentInfo = async (data) => {
   return await request.post({
-    url: 'app-api/menduner/system/person/resume/student/get',
+    url: '/app-api/menduner/system/person/resume/student/get',
     data
   })
 }

+ 3 - 3
src/views/recruit/personal/PersonalCenter/student/information/index.vue

@@ -148,7 +148,7 @@ const getDepartmentList = async (e) => {
 }
 
 // 获取学生基本信息
-const getStudentInfoFun = async () => {
+const studentInfoFun = async () => {
   const data = await getStudentInfo()
   if (data.schoolId) getDepartmentList(data.schoolId)
   // 回显
@@ -156,7 +156,7 @@ const getStudentInfoFun = async () => {
     if (data[e.key]) e.value = data[e.key]
   })
 }
-getStudentInfoFun()
+studentInfoFun()
 
 
 // 提交
@@ -169,7 +169,7 @@ const handleSubmit = async () => {
     params[item.key] = item.value
   })
   await saveStudentSimpleInfo(params)
-  // getStudentInfoFun()
+  // studentInfoFun()
   setTimeout(async () => {
     Snackbar.success(t('common.submittedSuccessfully'))
     overlay.value = false