From 59765cab961847dfd101e69ae6d8d1d501a5284c Mon Sep 17 00:00:00 2001
From: yuxc <yuxc@vci-tech.com>
Date: 星期二, 04 六月 2024 11:10:28 +0800
Subject: [PATCH] 1、ice配置文件上传
---
Source/ProjectWeb/src/components/dynamic-components/dynamic-custom.vue | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/Source/ProjectWeb/src/components/dynamic-components/dynamic-custom.vue b/Source/ProjectWeb/src/components/dynamic-components/dynamic-custom.vue
index 44dbf0e..360191b 100644
--- a/Source/ProjectWeb/src/components/dynamic-components/dynamic-custom.vue
+++ b/Source/ProjectWeb/src/components/dynamic-components/dynamic-custom.vue
@@ -112,11 +112,12 @@
} else {
this.ComponentUrl = this.customClass; // 涓嶅瓨鍦� '?' 鏁存潯璺緞灏辨槸 parts
}
- if(validatenull(this.ComponentUrl) || ['UI', 'ui'].includes(this.ComponentUrl)){
- this.ComponentUrl='base/UIContentViewerInDialog';
- }else {
- this.ComponentUrl='custom-ui/'+this.ComponentUrl;
+ if(validatenull(this.ComponentUrl) || ['ui', 'UI', 'base','bs'].includes(this.ComponentUrl)){
+ this.ComponentUrl='views/base/UIContentViewerInDialog';
+ }else if(this.ComponentUrl.indexOf('views/')===-1){
+ this.ComponentUrl='views/custom-ui/'+this.ComponentUrl;
}
+
if (this.ComponentUrl=='base/UIContentViewerInDialog' && (!urlParams.type || !urlParams.context)) {
this.isError = true;
return;
@@ -133,7 +134,7 @@
methods: {
loadCompoent(){
// 鍔ㄦ�佸鍏ョ粍浠�
- import(`@/views/${this.ComponentUrl}.vue`).then((module) => {
+ import(`@/${this.ComponentUrl}.vue`).then((module) => {
// 鎴愬姛瀵煎叆鍚庯紝灏嗙粍浠舵敞鍐屽埌Vue瀹炰緥涓�
this.currentComponent = module.default;
}).catch((error) => {
--
Gitblit v1.9.3