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/actions/base/BaseAction.js | 15 ++++++---------
1 files changed, 6 insertions(+), 9 deletions(-)
diff --git a/Source/ProjectWeb/src/components/actions/base/BaseAction.js b/Source/ProjectWeb/src/components/actions/base/BaseAction.js
index b560c29..1c336ee 100644
--- a/Source/ProjectWeb/src/components/actions/base/BaseAction.js
+++ b/Source/ProjectWeb/src/components/actions/base/BaseAction.js
@@ -1,6 +1,6 @@
import {validatenull} from "@/util/validate";
import Vue from 'vue';
-import {handlers} from '../handlers';
+import {handlerAction} from '../handlers';
/**
* 鎸夐挳鐨勫熀纭�鏈嶅姟
@@ -61,15 +61,12 @@
}
if (button.url && button.url != 'null') {
//鏈夐厤缃產ction璺緞锛屼娇鐢ㄨ矾寰勫搴旂殑js
- import("../" + button.url + ".js").then(module => {
+ import(`../${button.url}`).then(module => {
module.doAction(options, callback);
})
} else {
- if (handlers[button.actionVO.id.toLowerCase()]) {
- handlers[button.actionVO.id.toLowerCase()]()
- } else {
- Vue.prototype.$message.error('鏈壘鍒板搴攁ction锛岃閲嶆柊閰嶇疆鎸夐挳锛�');
- }
+ //鎵ц閫氱敤action
+ handlerAction(button.actionVO.id.toLowerCase(),options, callback)
}
};
@@ -151,7 +148,7 @@
fnTarget(buttonParse,callback);
}else{
try {
- import("../"+buttonParse.jsPath+".js").then(module => {
+ import(`../${buttonParse.jsPath}.js`).then(module => {
module[buttonParse.methodName](options,callback);
})
} catch (error) {
@@ -179,7 +176,7 @@
fnTarget(buttonParse,callback,actionType);
}else{
try {
- import("../"+buttonParse.jsPath+".js").then(module => {
+ import(`../${buttonParse.jsPath}.js`).then(module => {
module[buttonParse.methodName](options,callback,actionType);
})
} catch (error) {
--
Gitblit v1.9.3