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/AddEditDialog.vue | 34 ++++++++++++++++++++++++++++------
1 files changed, 28 insertions(+), 6 deletions(-)
diff --git a/Source/ProjectWeb/src/components/actions/AddEditDialog.vue b/Source/ProjectWeb/src/components/actions/AddEditDialog.vue
index 7e74447..0ddfd45 100644
--- a/Source/ProjectWeb/src/components/actions/AddEditDialog.vue
+++ b/Source/ProjectWeb/src/components/actions/AddEditDialog.vue
@@ -17,6 +17,7 @@
:formItems="formItems"
:formData="form"
:initValue="paramVOS.initvalue"
+ :uploadattachment="paramVOS.uploadattachment || false"
@getFormData="getFormData">
</basic-form>
<ui-view ref="uiViewRef" v-else-if="paramVOS.context"
@@ -26,6 +27,7 @@
:context="paramVOS.context"
:inDialog="true"
:canEdit="true"
+ :actionType="type"
:sourceData="sourceData"
:dataStore="dataStore"
:paramVOS="paramVOS"
@@ -42,7 +44,7 @@
<script>
import uiView from "@/views/base/UIContentViewerInDialog"
-import {parseEventByUrl} from "@/actions/base/BaseAction"
+import {parseEventByUrl} from "@/components/actions/base/BaseAction"
import {getFormDefineById,dataForm} from "@/api/base/ui";
import {addSave,editSave} from "@/api/base/actions"
import {validatenull} from "@/util/validate"
@@ -175,7 +177,7 @@
this.formDefineId=this.$refs.uiViewRef.data[key].DefineVO.id;
if (this.paramVOS.savebeforeevent) {
var urlobj = parseEventByUrl(this.paramVOS.savebeforeevent,null,null,'doAction');
- import("../"+urlobj.jsPath+".js").then(module => {
+ import(`./${urlobj.jsPath}.js`).then(module => {
module[urlobj.methodName]({
paramVOS: this.paramVOS,
dataStore: this.dataStore,
@@ -196,7 +198,7 @@
this.formDefineId=this.paramVOS.form;
if (this.paramVOS.savebeforeevent) {
var urlobj = parseEventByUrl(this.paramVOS.savebeforeevent,null,null,'doAction');
- import("../"+urlobj.jsPath+".js").then(module => {
+ import(`./${urlobj.jsPath}.js`).then(module => {
module[urlobj.methodName]({
paramVOS: this.paramVOS,
dataStore: this.dataStore,
@@ -234,22 +236,42 @@
addSave(datas,that.paramVOS.url,that.paramVOS.method).then(() => {
that.$message({
type: "success",
- message: "淇濆瓨鎴愬姛!"
+ message: that.paramVOS.successmsg||"淇濆瓨鎴愬姛!"
});
if(that.saveCallback){
that.saveCallback(that.type,that.form);
}
+ if (this.paramVOS.saveafterevent) {
+ let urlobj = parseEventByUrl(this.paramVOS.saveafterevent,null,null,'doAction');
+ import(`./${urlobj.jsPath}.js`).then(module => {
+ module[urlobj.methodName]({
+ paramVOS: this.paramVOS,
+ dataStore: this.dataStore,
+ sourceData:this.sourceData
+ });
+ })
+ }
that.dialogClose();
});
}else{
- editSave(that.form,that.paramVOS.url,that.paramVOS.method).then(() => {
+ editSave(datas,that.paramVOS.url,that.paramVOS.method).then(() => {
that.$message({
type: "success",
- message: "淇敼鎴愬姛!"
+ message: that.paramVOS.successmsg||"淇敼鎴愬姛!"
});
if(that.saveCallback){
that.saveCallback(that.type,that.form);
}
+ if (this.paramVOS.saveafterevent) {
+ let urlobj = parseEventByUrl(this.paramVOS.saveafterevent,null,null,'doAction');
+ import(`./${urlobj.jsPath}.js`).then(module => {
+ module[urlobj.methodName]({
+ paramVOS: this.paramVOS,
+ dataStore: this.dataStore,
+ sourceData:this.sourceData
+ });
+ })
+ }
that.dialogClose();
});
}
--
Gitblit v1.9.3