Browse Source

保存名字

zhengnaiwen_citu 4 months ago
parent
commit
dd9722d5f5
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/views/salary/solution/salarySolution/salarySolutionEdit.vue

+ 5 - 0
src/views/salary/solution/salarySolution/salarySolutionEdit.vue

@@ -23,6 +23,7 @@ export default {
         title: null,
         tag: null,
         organizationNo: null,
+        organizationName: null,
         postNames: [],
         rewriteType: 0
       },
@@ -58,6 +59,7 @@ export default {
           prop: 'organizationNo',
           type: 'cascader',
           options: {
+            ref: 'organizationNo',
             filterable: true,
             clearable: true,
             placeholder: '请选择机构',
@@ -102,6 +104,7 @@ export default {
       this.formQuery.title = item?.title ?? null
       this.formQuery.tag = item?.tag ?? null
       this.formQuery.organizationNo = item?.organizationNo ?? null
+      this.formQuery.organizationName = item?.organizationName ?? null
       this.formQuery.postNames = []
       this.itemData = {}
       this.$nextTick(() => {
@@ -125,6 +128,8 @@ export default {
       }
     },
     async onchange (organizationNo) {
+      const nodes = this.$refs.form.$refs.organizationNo.getCheckedNodes()
+      this.formQuery.organizationName = nodes[0].data.organizationName
       this.formQuery.postNames = []
       if (!organizationNo) {
         return