From 17efddc6a667670dca682bf36b51a43e99615e6d Mon Sep 17 00:00:00 2001 From: k94314517 <8417338+k94314517@user.noreply.gitee.com> Date: 星期三, 16 十月 2024 15:59:38 +0800 Subject: [PATCH] 代码初始化 --- admin/src/components/business/OperaInternalCompanyWindow.vue | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/admin/src/components/business/OperaInternalCompanyWindow.vue b/admin/src/components/business/OperaInternalCompanyWindow.vue index 6445653..ad001b2 100644 --- a/admin/src/components/business/OperaInternalCompanyWindow.vue +++ b/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> @@ -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 -- Gitblit v1.9.3