From 10c2ee4be4508c62b5980cc7059b1e8e95f7a3cc Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期二, 04 七月 2023 17:22:11 +0800
Subject: [PATCH] Merge branch 'master' of http://dev.vci-tech.com:1065/r/ubcs
---
Source/UBCS-WEB/src/components/FormTemplate/index.vue | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/Source/UBCS-WEB/src/components/FormTemplate/index.vue b/Source/UBCS-WEB/src/components/FormTemplate/index.vue
index 782a525..45f318e 100644
--- a/Source/UBCS-WEB/src/components/FormTemplate/index.vue
+++ b/Source/UBCS-WEB/src/components/FormTemplate/index.vue
@@ -11,14 +11,12 @@
>
<FormTemplate
v-bind="$attrs"
- :visible="visible"
:type="type"
:rowOid="rowOid"
:templateOid="templateOid"
ref="FormTemplate"
@getFormData="getFormData"
></FormTemplate>
-
<div
class="tab_box"
v-if="
@@ -127,8 +125,8 @@
form: {},
codeApplyForm: {},
activeName: "codeApply",
- showCodeApply: true,
- showResembleQuery: true,
+ showCodeApply: false,
+ showResembleQuery: false,
selfColumnType: {
codefixedsec: "combox",
codeclassifysec: "refer",
@@ -233,7 +231,9 @@
this.activeName = "resembleQuery";
this.showResembleQuery = true;
}
- this.$refs.FormTemplate.templateRender(res.data.formDefineVO.items);
+ this.$nextTick(() => {
+ this.$refs.FormTemplate.templateRender(res.data.formDefineVO.items);
+ })
}
})
.catch(() => {
@@ -251,17 +251,17 @@
"coderefersec",
];
this.secVOList = (res.data.data.secVOList || []).filter((item) =>
- typeList.includes(item.sectype)
+ typeList.includes(item.secType)
);
- this.$nextTick(() => {
if (this.secVOList.length > 0 && this.type === "add") {
this.showCodeApply = true;
this.activeName = "codeApply";
- this.$refs.CodeApply.templateRender(this.secVOList);
+ this.$nextTick(() => {
+ this.$refs.CodeApply.templateRender(this.secVOList);
+ })
} else {
this.showCodeApply = false;
}
- });
}
});
},
@@ -359,11 +359,11 @@
};
},
getType(item) {
- return this.selfColumnType[item.sectype];
+ return this.selfColumnType[item.secType];
},
getReferConfig(item) {
let params = {};
- if (item.sectype == "codeclassifysec") {
+ if (item.secType == "codeclassifysec") {
params = {
isMuti: false,
type: "grid",
@@ -407,13 +407,13 @@
: "",
},
};
- } else if (item.sectype == "coderefersec") {
+ } else if (item.secType == "coderefersec") {
params = JSON.parse(item.referValueInfo);
}
return params;
},
getDisabled(item) {
- if (item.sectype === "codeclassifysec") {
+ if (item.secType === "codeclassifysec") {
if (item.parentClassifySecOid) {
if (!this.codeApplyForm[item.parentClassifySecOid]) {
return true;
--
Gitblit v1.9.3