wanghao hai 1 mes
pai
achega
856865e1ab
Modificáronse 2 ficheiros con 9 adicións e 2 borrados
  1. 7 0
      src/api/school.ts
  2. 2 2
      src/views/examination/addSchool.vue

+ 7 - 0
src/api/school.ts

@@ -53,6 +53,13 @@ export const provinceTree = () => {
     method: 'get'
   })
 }
+// 学校管理--省市区树列表
+export const provinceTreeByContain = () => {
+  return request({
+    url: '/adminApi/v1/provinceTreeByContain',
+    method: 'get'
+  })
+}
 // 学校管理--查看详情
 export const getSchoolInfo = (id: any) => {
   return request({

+ 2 - 2
src/views/examination/addSchool.vue

@@ -64,7 +64,7 @@ import { Search } from '@element-plus/icons-vue'
 import { ElMessage, ElTable } from 'element-plus'
 import { ref, inject, onMounted, nextTick } from 'vue'
 import { getSingleExamList, addSingleSchool } from '@/api/examination'
-import { provinceTree } from '@/api/school'
+import { provinceTreeByContain } from '@/api/school'
 interface SchoolData {
   showDialog: boolean
   tenantName: string
@@ -95,7 +95,7 @@ onMounted(() => {
 })
 // 获取省市区树列表
 const GetProvinceTree = async () => {
-  const res = await provinceTree()
+  const res = await provinceTreeByContain()
   if(res.code == 200 && res.data) {
     const { data } = res
     let allObj = {