Browse Source

科研人员花名册所属二级单位bug修改

ljb 9 months ago
parent
commit
71ef43b8f7

+ 1 - 2
src/components/second-unit-cascader/index.vue

@@ -26,7 +26,7 @@ export default {
   watch: {
     cascaderVal(newVal) {
       this.$emit('input', newVal);
-      this.$emit('change', this.cascaderVal, this.findValName(this.value))
+      this.$emit('change', newVal, this.findValName(newVal[newVal.length - 1]))
     },
     // value(newVal) {
     //   console.log(newVal, this.findValArr(newVal))
@@ -121,7 +121,6 @@ export default {
           this.list = data.data;
           this.treeData = this.loopData(this.buildTree(data.data));
 
-          console.log(this.value)
           this.cascaderVal = this.findValArr(this.value);
         }
       })

+ 1 - 0
src/views/basic-resource/comp-basic-info/technician-roster.vue

@@ -147,6 +147,7 @@ export default window.$crudCommon({
       if (this.form.departmentId && this.form.departmentId instanceof Array) {
         _deptId = this.form.departmentId[this.form.departmentId.length - 1];
       }
+
       return { ...this.form, departmentId: _deptId, department: this.secondUnitNameArr.join('/'), yearAndMonth: this.params.yearAndMonth };
     },
     addBefore(loading, callback) {