From 4ead3f1a8571b3536daedbd4a0268aebdfb86517 Mon Sep 17 00:00:00 2001
From: yuxc <653031404@qq.com>
Date: 星期三, 31 五月 2023 10:31:14 +0800
Subject: [PATCH] 1、对MDM服务的Feign进行改动
---
Source/UBCS-WEB/src/components/FormTemplate/index.vue | 19 +++++++++++++++----
1 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/Source/UBCS-WEB/src/components/FormTemplate/index.vue b/Source/UBCS-WEB/src/components/FormTemplate/index.vue
index 6dc2619..38a9f73 100644
--- a/Source/UBCS-WEB/src/components/FormTemplate/index.vue
+++ b/Source/UBCS-WEB/src/components/FormTemplate/index.vue
@@ -3,10 +3,11 @@
:visible.sync="dialogVisible"
v-dialogDrag
top="0vh"
- title="鎻愮ず"
+ :title="title"
class="avue-dialog avue-dialog--top"
:width="dialogOptions.width"
append-to-body
+ v-if="dialogVisible"
>
<avue-form
v-model="form"
@@ -38,8 +39,11 @@
</el-tooltip>
</span>
</template>
+ <template :slot="item.prop + ''" v-for="item in option.column">
+ <vciWebRefer v-if="item.type=='refer'" :options="item.originalItem"></vciWebRefer>
+ </template>
</avue-form>
- <FindLike ref="findLike" v-if="dialogVisible"></FindLike>
+ <FindLike ref="findLike"></FindLike>
<div class="avue-dialog__footer" v-if="type !== 'detail'">
<el-button @click="close()">鍙� 娑�</el-button>
<el-button @click="close()" type="primary" :loading="submitBtnLoading">纭� 瀹�</el-button>
@@ -52,9 +56,10 @@
import { getFormTemplate, executeCode, findLike } from "@/api/formTemplate";
import { getDictionary } from "../../api/system/dict";
import FindLike from "./FindLike.vue";
+import vciWebRefer from "../refer/vciWebRefer.vue";
export default {
name: "FormTemplate",
- components: { FindLike },
+ components: { FindLike ,vciWebRefer},
props: {
visible: {
type: Boolean,
@@ -75,6 +80,10 @@
type: {
type: String,
default: 'add'
+ },
+ title: {
+ type: String,
+ default: '琛ㄥ崟妯℃澘'
}
},
data() {
@@ -99,7 +108,8 @@
number: "number",
textarea: "textarea",
datetime: "datetime",
- date: "date"
+ date: "date",
+ refer:'refer'
},
// 鍋囨暟鎹�
testItems: [
@@ -642,6 +652,7 @@
value: item.defaultValue,
tip: item.tip,
comboxKey: item.comboxKey,
+ originalItem:item,
change: () => {
this.changeFun(item.displayExtension, item.prop);
},
--
Gitblit v1.10.0