From ddf81d93ff5abc2825357fe2810f031e52beeebc Mon Sep 17 00:00:00 2001
From: wang1 <844966816@qq.com>
Date: 星期五, 11 八月 2023 16:15:24 +0800
Subject: [PATCH] mdm流程处理页面,修复按钮显示异常问题
---
Source/UBCS-WEB/src/components/refer/vciWebRefer.vue | 49 ++++++++++++++++++++++++++++++++++++-------------
1 files changed, 36 insertions(+), 13 deletions(-)
diff --git a/Source/UBCS-WEB/src/components/refer/vciWebRefer.vue b/Source/UBCS-WEB/src/components/refer/vciWebRefer.vue
index 90e7944..893ef94 100644
--- a/Source/UBCS-WEB/src/components/refer/vciWebRefer.vue
+++ b/Source/UBCS-WEB/src/components/refer/vciWebRefer.vue
@@ -1,32 +1,55 @@
<template>
- <vciWebReferTree v-if="refertype=='tree'" :value="value" :options="options"></vciWebReferTree>
- <vciWebReferTable v-else-if="refertype=='table'" :value="value" :options="options"></vciWebReferTable>
- <vciWebReferDefalut v-else :value="value" :options="options"></vciWebReferDefalut>
+ <div v-if="display">
+ <vciWebReferTree v-if="refertype=='tree'" @setValue="setValue" :value="value" :text="text" :title="title" :disabled="disabled" :referConfig="referConfig"></vciWebReferTree>
+ <vciWebReferTable v-else-if="refertype=='table'" @setValue="setValue" :value="value" :text="text" :title="title" :disabled="disabled" :referConfig="referConfig"></vciWebReferTable>
+ <vciWebReferDefalut v-else @setValue="setValue" :value="value" :text="text" :title="title" :disabled="disabled" :referConfig="referConfig"></vciWebReferDefalut>
+
+ </div>
</template>
<script>
import vciWebReferTree from "./vciWebReferTree.vue";
import vciWebReferTable from "./vciWebReferTable.vue";
-import vciWebReferDefalut from "./vciWebReferTable.vue";
+import vciWebReferDefalut from "./vciWebReferDefalut.vue";
export default {
name: "vciWebRefer",
- props:["options","value"],
- components: { vciWebReferTree,vciWebReferTable,vciWebReferDefalut},
+ props: ["referConfig","value","text","disabled","display"],
+ components: {vciWebReferTree, vciWebReferTable, vciWebReferDefalut},
data() {
return {
- refertype:this.options.type
+ refertype: this.referConfig.options.type,
+ emitData:{},
+ title:''
};
},
created() {
- console.log(this.refertype)
- if(this.refertype=='tree'){
- console.log('referConfig:')
- console.log(this.options)
+ if (!this.referConfig.options) {
+ this.referConfig.options = {
+ isMuti: false
+ }
}
-
},
mounted() {
-
+ //console.log(this.referConfig.options);
+ var title = this.referConfig.title || '';
+ title = title.replace(":", "");
+ title = title ? ('涓恒��' + title + '銆戦�夊彇鍊�') : ('涓恒��' + this.referConfig.showField + '銆戦�夊彇鍊�');
+ this.title=title;
+ },
+ methods: {
+ setValue(value) {
+ this.emitData = value;
+ }
+ },
+ watch:{
+ // 淇敼鍙嶉鍒扮埗缁勪欢
+ emitData: {
+ deep: true,
+ immediate: true,
+ handler(newV) {
+ this.$emit("setReferValue", newV);
+ },
+ }
}
}
</script>
--
Gitblit v1.9.3