ZaiZai hai 1 ano
pai
achega
6b791d5608
Modificáronse 2 ficheiros con 3 adicións e 3 borrados
  1. 1 1
      public/version.json
  2. 2 2
      src/views/system/user.vue

+ 1 - 1
public/version.json

@@ -1,3 +1,3 @@
 {
-  "value": "20240613173544"
+  "value": "20240614141939"
 }

+ 2 - 2
src/views/system/user.vue

@@ -75,7 +75,7 @@
                         </el-select>
                     </el-form-item>
                     <el-form-item label="岗位:" prop="postId">
-                        <el-select v-model="formModel.postId" placeholder="选择岗位" style="width: 100%;" clearable :getdata="getpostData(formModel.deptId)">
+                        <el-select v-model="formModel.postId" :disabled="isNullES(formModel.deptId)" placeholder="选择岗位" style="width: 100%;" clearable :getdata="getpostData(formModel.deptId)">
                             <el-option v-for="item in postData" :label="item.deptName" :value="item.id" />
                         </el-select>
                     </el-form-item>
@@ -157,7 +157,7 @@
 import { onMounted, ref } from 'vue'
 import mainApi from '~api/system/user'
 import organizationApi from '~api/system/organization'
-import { arrIndex, arrToId, formValidate, getArrValue, isIdCard, isPhone } from 'js-fast-way'
+import { arrIndex, arrToId, formValidate, getArrValue, isIdCard, isNullES, isPhone } from 'js-fast-way'
 import { useAppStore } from '~src/store'
 import { HcDelMsg } from 'hc-vue3-ui'
 const store = useAppStore()