From 875e26a11e28c1cefc1667bc25985dbb049f91f3 Mon Sep 17 00:00:00 2001
From: zhangxp <zhangxp@chicecm.com>
Date: 星期五, 16 六月 2023 18:34:01 +0800
Subject: [PATCH] 修复
---
Source/UBCS-WEB/src/components/FormTemplate/index.vue | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/Source/UBCS-WEB/src/components/FormTemplate/index.vue b/Source/UBCS-WEB/src/components/FormTemplate/index.vue
index 6009b7e..b910397 100644
--- a/Source/UBCS-WEB/src/components/FormTemplate/index.vue
+++ b/Source/UBCS-WEB/src/components/FormTemplate/index.vue
@@ -1,6 +1,7 @@
<template>
<el-dialog
:visible.sync="dialogVisible"
+ v-if="dialogVisible"
v-dialogDrag
top="0vh"
:title="title"
@@ -14,6 +15,7 @@
:visible="visible"
:type="type"
:rowOid="rowOid"
+ :templateOid="templateOid"
ref="FormTempalte"
@getFormData="getFormData"
></FormTempalte>
@@ -23,7 +25,8 @@
v-if="
type !== 'detail' &&
dialogVisible &&
- (showCodeApply || showResembleQuery)
+ (showCodeApply || showResembleQuery) &&
+ type !== 'preview'
"
>
<el-tabs v-model="activeName" type="border-card" @tab-click="handleClick">
@@ -57,7 +60,7 @@
<div class="avue-dialog__footer" v-if="type !== 'detail'">
<el-button @click="close()">鍙� 娑�</el-button>
<el-button @click="submit()" type="primary" :loading="submitBtnLoading"
- >纭� 瀹�</el-button
+ >{{ submitText }}</el-button
>
<el-button
@click="resembleQuerySubmit"
@@ -102,6 +105,10 @@
type: String,
default: "",
},
+ submitText: {
+ type: String,
+ default: '纭� 瀹�'
+ }
},
data() {
return {
@@ -160,7 +167,9 @@
methods: {
openDialog() {
this.getFormTemplate();
- this.getCodeRule();
+ if (this.type === 'add') {
+ this.getCodeRule();
+ }
},
close() {
this.dialogVisible = false;
--
Gitblit v1.9.3