From 8ab31157536e116dba27e942a05a20e3caaa4812 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期三, 28 八月 2024 09:22:52 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/dmvisit
---
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