瀏覽代碼

职务选择

zhengnaiwen_citu 5 月之前
父節點
當前提交
afbfd66bc6
共有 1 個文件被更改,包括 24 次插入21 次删除
  1. 24 21
      src/views/salary/solution/salarySolution/salarySolutionEdit.vue

+ 24 - 21
src/views/salary/solution/salarySolution/salarySolutionEdit.vue

@@ -84,6 +84,7 @@ export default {
           type: 'select',
           options: {
             placeholder: '请选择绩效职务',
+            filterable: true,
             collapseTags: true,
             multiple: true,
             items: this.postNamesItems
@@ -91,27 +92,27 @@ export default {
           rules: [
             { required: true, message: '请选择绩效职务', trigger: 'change' }
           ]
-        },
-        {
-          label: '下级自定义',
-          prop: 'rewriteType',
-          type: 'radioGroup',
-          options: {
-            items: [
-              {
-                text: '允许',
-                label: 0
-              },
-              {
-                text: '不允许',
-                label: 1
-              }
-            ]
-          },
-          rules: [
-            { required: true, message: '请选择下级自定义', trigger: 'change' }
-          ]
         }
+        // {
+        //   label: '下级自定义',
+        //   prop: 'rewriteType',
+        //   type: 'radioGroup',
+        //   options: {
+        //     items: [
+        //       {
+        //         text: '允许',
+        //         label: 0
+        //       },
+        //       {
+        //         text: '不允许',
+        //         label: 1
+        //       }
+        //     ]
+        //   },
+        //   rules: [
+        //     { required: true, message: '请选择下级自定义', trigger: 'change' }
+        //   ]
+        // }
       ]
     }
   },
@@ -121,7 +122,7 @@ export default {
       this.formQuery.title = item?.title ?? null
       this.formQuery.tag = item?.tag ?? null
       this.formQuery.organizationNo = item?.organizationNo ?? null
-      this.formQuery.postNames = item?.postNames ?? []
+      this.formQuery.postNames = []
       this.itemData = {}
       this.$nextTick(() => {
         this.$refs.form.clearValidate()
@@ -135,6 +136,8 @@ export default {
           performanceSolutionId: item.performanceSolutionId
         })
         this.itemData = data
+        this.onchange(this.formQuery.organizationNo)
+        this.formQuery.postNames = item.postNames
       } catch (error) {
         this.$message.error(error)
       } finally {