| | |
| | | <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> |
| | |
| | | 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) { |
| | |
| | | this.originPermissionCode = target.code |
| | | for (const key in this.form) { |
| | | this.form[key] = row[key] |
| | | } |
| | | if(target.type == 0){ |
| | | this.form.type = 0 |
| | | } |
| | | }) |
| | | }, |
| | |
| | | this.$emit('success') |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | // this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking = false |
| | |
| | | this.$emit('success') |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | // this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking = false |