wanghao hai 1 mes
pai
achega
93efcab9d5
Modificáronse 2 ficheiros con 11 adicións e 3 borrados
  1. 3 1
      src/views/school/addUser.vue
  2. 8 2
      src/views/school/index.vue

+ 3 - 1
src/views/school/addUser.vue

@@ -113,13 +113,15 @@ import type { FormInstance, FormRules } from 'element-plus'
 import { ElMessage } from 'element-plus'
 import { getUserList, addUser, uploadFile, provinceTree, getSchoolInfo, editSchoolInfo } from '@/api/school'
 interface DialogData {
+  isChild: any;
   pageType: string
   id: string
 }
 let showDialog = inject('showDialog')
 let dialogData = inject<DialogData>('dialogData', {
   pageType: 'add',
-  id: ''
+  id: '',
+  isChild: undefined
 })
 const formLabelWidth = '120px'
 // 新增用户表单数据定义

+ 8 - 2
src/views/school/index.vue

@@ -271,6 +271,11 @@ interface UserInfo {
   nickname: string;
 }
 
+interface StatusNodes {
+  status: string;
+  statusName: string;
+}
+
 interface SearchList {
   examTypes: any[]; 
   provinceNode: Province[];
@@ -411,6 +416,7 @@ const showDialog = ref(false)
 const dialogData = reactive({
   id: '',
   pageType: '',
+  isChild: false,
   tenantName: ''
 })
 const subjectShowDialog = ref(false)
@@ -538,7 +544,7 @@ const RefTable = (val: any) => {
   showDialog.value = val
   GetSearchList()
   GetSchoolNumber()
-  // GetSchoolList()
+  GetSchoolList()
 }
 // 改变用户状态
 const ChangeStatus = (row: any, text: String) => {
@@ -556,7 +562,7 @@ const ChangeStatus = (row: any, text: String) => {
         ElMessage.success(res.msg)
         GetSearchList()
         GetSchoolNumber()
-        // GetSchoolList()
+        GetSchoolList()
       }
     })
   })