k94314517
2024-10-16 17efddc6a667670dca682bf36b51a43e99615e6d
admin/src/components/business/OperaInternalCompanyWindow.vue
@@ -16,7 +16,7 @@
                <el-input v-model="form.name" placeholder="请输入组织名称" v-trim/>
            </el-form-item>
          <el-form-item label="组织类型" prop="type">
            <el-radio-group v-model="form.type" >
            <el-radio-group v-model="form.type" :disabled="form.parentType == 0">
              <el-radio :label="0">相关方组织</el-radio>
              <el-radio :label="1">内部组织</el-radio>
            </el-radio-group>
@@ -63,7 +63,7 @@
  },
  created () {
    this.config({
      api: '/business/company',
      api: '/business/company.js',
      'field.id': 'id'
    })
  },
@@ -78,11 +78,14 @@
        name: '',
        parentId: null,
        disable: false,
        parentName: ''
        parentName: '',
        parentType:null
      }
      if (target != null) {
        this.form.parentId = target.id
        this.form.parentName = target.companyPath
        this.form.parentType = target.type
        this.form.parentName = target.companyNamePath
      }
      // 新建组织
      if (row == null) {
@@ -97,6 +100,9 @@
        this.originPermissionCode = target.code
        for (const key in this.form) {
          this.form[key] = row[key]
        }
        if(target.type == 0){
          this.form.type = 0
        }
      })
    },
@@ -120,7 +126,7 @@
              this.$emit('success')
            })
            .catch(e => {
              this.$tip.apiFailed(e)
             //  this.$tip.apiFailed(e)
            })
            .finally(() => {
              this.isWorking = false
@@ -138,7 +144,7 @@
              this.$emit('success')
            })
            .catch(e => {
              this.$tip.apiFailed(e)
              // this.$tip.apiFailed(e)
            })
            .finally(() => {
              this.isWorking = false