2213980799@qq.com 1 год назад
Родитель
Сommit
b4e97519d3
2 измененных файлов с 18 добавлено и 3 удалено
  1. 1 0
      src/enum/dict.js
  2. 17 3
      src/views/system/organization/components/org-user-edit.vue

+ 1 - 0
src/enum/dict.js

@@ -46,6 +46,7 @@ export default {
   区域等级: 'main_area_level',
   区域类型: 'main_area_type',
   工种类型: 'work_type',
+  岗位: 'GW_user',
   '客户/供应商资质类型': 'contact_qc_type',
   版本规则分类: 'version_rule_type',
   生产类型: 'productionType',

+ 17 - 3
src/views/system/organization/components/org-user-edit.vue

@@ -90,12 +90,19 @@
           </el-form-item>
 
           <el-form-item label="岗位:" prop="postName">
-            <el-input
+            <!-- <el-input
               clearable
               :maxlength="100"
               v-model="form.postName"
               placeholder="请输入岗位"
-            />
+            /> -->
+            <DictSelection
+              dictName="岗位"
+              clearable
+              filterable
+              v-model="form.postName"
+            >
+            </DictSelection>
           </el-form-item>
 
           <el-form-item label="工种:" prop="workTypeId">
@@ -1052,7 +1059,12 @@
 
     <template v-slot:footer>
       <el-button @click="updateVisible(false)">取消</el-button>
-      <el-button type="primary" :loading="loading" @click="save" v-if="!disabled">
+      <el-button
+        type="primary"
+        :loading="loading"
+        @click="save"
+        v-if="!disabled"
+      >
         保存
       </el-button>
     </template>
@@ -1858,6 +1870,8 @@ export default {
             // if (this.form.deptTree) {
             //   this.deptTree = JSON.parse(this.form.deptTree)
             // }
+            // this.form.workTypeId = this.form.workTypeId + '';
+            // this.form.postName = this.form.postName + '';
 
             this.city = res.addressId ? res.addressId.toString() : null;
             this.isUpdate = true;