|
@@ -18,7 +18,7 @@
|
|
|
<div class="box-shadow">
|
|
|
<by-form :propConfig="addConfig" ref="addFormId">
|
|
|
<template v-slot:organizationCode="{value}" class="clearfix">
|
|
|
- <vxe-input v-model="value.organizationCode" :disabled="value.organizationCode&&popTitle=='编辑'" style="width: 100%;"></vxe-input>
|
|
|
+ <vxe-input v-model="value.organizationCode" :disabled="isOrganizationCode" style="width: 100%;"></vxe-input>
|
|
|
</template>
|
|
|
<template v-slot:k3ServerUrl="{value}" class="clearfix">
|
|
|
<!-- <i class="el-icon-question" title="私有云必须配置金蝶云星空产品地址,K3Cloud/结尾,若为公有云则必须置空"></i> -->
|
|
@@ -51,6 +51,7 @@
|
|
|
radio : any = 0
|
|
|
dialogFormVisible : boolean = false
|
|
|
categoryIds : any = '';
|
|
|
+ isOrganizationCode : boolean = true
|
|
|
toolConfig = {
|
|
|
tools: {
|
|
|
return: true,
|
|
@@ -531,6 +532,7 @@
|
|
|
this.popTitle = '新增'
|
|
|
this.dialogFormVisible = true;
|
|
|
this.radio = 0
|
|
|
+ this.isOrganizationCode = false
|
|
|
this.$nextTick(() => (this as any).$refs.addFormId.setValue());
|
|
|
}
|
|
|
// 打开编辑
|
|
@@ -544,6 +546,11 @@
|
|
|
let data = res.data;
|
|
|
this.radio = data.status;
|
|
|
this.dialogFormVisible = true;
|
|
|
+ if(res.data.organizationCode){
|
|
|
+ this.isOrganizationCode = true
|
|
|
+ }else{
|
|
|
+ this.isOrganizationCode = false
|
|
|
+ }
|
|
|
this.$nextTick(() => (this as any).$refs.addFormId.setValue(data));
|
|
|
loading.close();
|
|
|
} else loading.close();
|