Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz-Vue-R7
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
22
议题
22
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7前端标准模板
iBiz-Vue-R7
提交
53086051
提交
53086051
编写于
8月 21, 2020
作者:
Shine-zwj
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev' of
http://demo.ibizlab.cn/ibizr7pfstdtempl/ibizvuer7
into dev
上级
3c714e1c
fda41d48
变更
8
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
55 行增加
和
11 行删除
+55
-11
FORM.ts.ftl
@CONTROL/@MACRO/SERVICE/FORM.ts.ftl
+16
-6
CONTROL-BASE.vue.ftl
@CONTROL/表单/CONTROL-BASE.vue.ftl
+9
-4
EDITOR.less.ftl
@EDITOR/下拉列表框(cron表达式)/EDITOR.less.ftl
+0
-0
EDITOR.vue.ftl
@EDITOR/下拉列表框(cron表达式)/EDITOR.vue.ftl
+5
-0
GRIDEIDTOR.vue.ftl
@EDITOR/下拉列表框(cron表达式)/GRIDEIDTOR.vue.ftl
+15
-0
PANELEDITOR.vue.ftl
@EDITOR/下拉列表框(cron表达式)/PANELEDITOR.vue.ftl
+2
-0
template.properties
@EDITOR/下拉列表框(cron表达式)/template.properties
+2
-0
ROUTER.ts.ftl
@VIEW/应用首页视图/ROUTER.ts.ftl
+6
-1
未找到文件。
@CONTROL/@MACRO/SERVICE/FORM.ts.ftl
浏览文件 @
53086051
...
@@ -164,11 +164,12 @@ import ${srfclassname('${_appde.getCodeName()}')}Service from '@/service/${srffi
...
@@ -164,11 +164,12 @@ import ${srfclassname('${_appde.getCodeName()}')}Service from '@/service/${srffi
* @param {*} [context={}]
* @param {*} [context={}]
* @param {*} [data={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @param {boolean} [isloading]
* @param {boolean} [isWorkflow] 是否在工作流中添加数据
* @returns {Promise<any>}
* @returns {Promise<any>}
* @memberof ${srfclassname('${ctrl.codeName}')}Service
* @memberof ${srfclassname('${ctrl.codeName}')}Service
*/
*/
@Errorlog
@Errorlog
public add(action: string, context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
public add(action: string, context: any = {},data: any = {}, isloading?: boolean
,isWorkflow?:boolean
): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data);
const {data:Data,context:Context} = this.handleRequestData(action,context,data);
<#-- 手动修改数据主键的情况start -->
<#-- 手动修改数据主键的情况start -->
<#list ctrl.getPSDEFormItems() as formitem>
<#list ctrl.getPSDEFormItems() as formitem>
...
@@ -188,8 +189,12 @@ import ${srfclassname('${_appde.getCodeName()}')}Service from '@/service/${srffi
...
@@ -188,8 +189,12 @@ import ${srfclassname('${_appde.getCodeName()}')}Service from '@/service/${srffi
result = this.appEntityService.Create(Context,Data, isloading);
result = this.appEntityService.Create(Context,Data, isloading);
}
}
result.then((response) => {
result.then((response) => {
this.handleResponse(action, response);
if(isWorkflow){
resolve(response);
resolve(response);
}else{
this.handleResponse(action, response);
resolve(response);
}
}).catch(response => {
}).catch(response => {
reject(response);
reject(response);
});
});
...
@@ -232,11 +237,12 @@ import ${srfclassname('${_appde.getCodeName()}')}Service from '@/service/${srffi
...
@@ -232,11 +237,12 @@ import ${srfclassname('${_appde.getCodeName()}')}Service from '@/service/${srffi
* @param {*} [context={}]
* @param {*} [context={}]
* @param {*} [data={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @param {boolean} [isloading]
* @param {boolean} [isWorkflow] 是否在工作流中修改数据
* @returns {Promise<any>}
* @returns {Promise<any>}
* @memberof ${srfclassname('${ctrl.codeName}')}Service
* @memberof ${srfclassname('${ctrl.codeName}')}Service
*/
*/
@Errorlog
@Errorlog
public update(action: string, context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
public update(action: string, context: any = {},data: any = {}, isloading?: boolean
,isWorkflow?:boolean
): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data);
const {data:Data,context:Context} = this.handleRequestData(action,context,data);
return new Promise((resolve: any, reject: any) => {
return new Promise((resolve: any, reject: any) => {
let result: Promise<any>;
let result: Promise<any>;
...
@@ -247,8 +253,12 @@ import ${srfclassname('${_appde.getCodeName()}')}Service from '@/service/${srffi
...
@@ -247,8 +253,12 @@ import ${srfclassname('${_appde.getCodeName()}')}Service from '@/service/${srffi
result = this.appEntityService.Update(Context,Data, isloading);
result = this.appEntityService.Update(Context,Data, isloading);
}
}
result.then((response) => {
result.then((response) => {
this.handleResponse(action, response);
if(isWorkflow){
resolve(response);
resolve(response);
}else{
this.handleResponse(action, response);
resolve(response);
}
}).catch(response => {
}).catch(response => {
reject(response);
reject(response);
});
});
...
...
@CONTROL/表单/CONTROL-BASE.vue.ftl
浏览文件 @
53086051
...
@@ -1387,13 +1387,17 @@ import schema from 'async-validator';
...
@@ -1387,13 +1387,17 @@ import schema from 'async-validator';
return new Promise((resolve: any, reject: any) => {
return new Promise((resolve: any, reject: any) => {
const _this: any = this;
const _this: any = this;
const arg: any = data[0];
const arg: any = data[0];
const copyData:any = Util.deepCopy(arg);
Object.assign(arg,{viewparams:this.viewparams});
Object.assign(arg,{viewparams:this.viewparams});
if (!arg.${ctrl.getPSAppDataEntity().getCodeName()?lower_case} || Object.is(arg.${ctrl.getPSAppDataEntity().getCodeName()?lower_case}, '')) {
if (!arg.${ctrl.getPSAppDataEntity().getCodeName()?lower_case} || Object.is(arg.${ctrl.getPSAppDataEntity().getCodeName()?lower_case}, '')) {
return;
return;
}
}
const post: Promise<any> = Object.is(arg.srfuf, '1')?this.service.update(this.updateAction, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator
):this.service.add(this.createAction,JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator
);
const post: Promise<any> = Object.is(arg.srfuf, '1')?this.service.update(this.updateAction, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator
,true):this.service.add(this.createAction,JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator,true
);
post.then((response:any) =>{
post.then((response:any) =>{
const arg:any = response.data;
const responseData:any = response.data;
let tempResponseData:any = Util.deepCopy(response);
this.service.handleResponse('save', tempResponseData);
const arg:any = tempResponseData.data;
// 保存完成UI处理
// 保存完成UI处理
this.onFormLoad(arg,'save');
this.onFormLoad(arg,'save');
this.$emit('save', arg);
this.$emit('save', arg);
...
@@ -1404,11 +1408,12 @@ import schema from 'async-validator';
...
@@ -1404,11 +1408,12 @@ import schema from 'async-validator';
this.formState.next({ type: 'save', data: arg });
this.formState.next({ type: 'save', data: arg });
});
});
// 准备工作流数据,填充未存库数据
// 准备工作流数据,填充未存库数据
Object.assign(arg,
this.getData()
);
Object.assign(arg,
copyData
);
// 准备提交参数
// 准备提交参数
if(this.viewparams){
if(this.viewparams){
Object.assign(
arg,{viewparams:this.viewparams}
);
Object.assign(
responseData,this.viewparams
);
}
}
Object.assign(arg,{viewparams:responseData});
// 强制补充srfwfmemo
// 强制补充srfwfmemo
if(this.srfwfmemo){
if(this.srfwfmemo){
Object.assign(arg,{srfwfmemo:this.srfwfmemo});
Object.assign(arg,{srfwfmemo:this.srfwfmemo});
...
...
@EDITOR/下拉列表框(cron表达式)/EDITOR.less.ftl
0 → 100644
浏览文件 @
53086051
@EDITOR/下拉列表框(cron表达式)/EDITOR.vue.ftl
0 → 100644
浏览文件 @
53086051
<#ibizinclude>../@MACRO/FUNC/PUBLIC.vue.ftl</#ibizinclude>
<cron-editor
:disabled="detailsModel.${editor.name}.disabled"
placeholder=<#if item.getPlaceHolder()??>'${item.getPlaceHolder()}'<#else>'请选择...'</#if> />
\ No newline at end of file
@EDITOR/下拉列表框(cron表达式)/GRIDEIDTOR.vue.ftl
0 → 100644
浏览文件 @
53086051
<dropdown-list-mpicker
v-model="row[column.property]"
:itemParam="<#if item.getEditorParam('ITEMPARAM','') != ''>${item.getEditorParam('ITEMPARAM','')}<#else>{}</#if>"
:disabled="row.srfuf === 1 ? (${item.getEnableCond()?c} & 2) !== 2 : (${item.getEnableCond()?c} & 1) !== 1"
<#if item.getPSCodeList()??>
<#assign codelist=editor.getPSCodeList()>
tag='${codelist.codeName}'
codelistType='${codelist.getCodeListType()}'
<#if codelist.valueSeparator?has_content>valueSeparator="${codelist.valueSeparator}"</#if>
</#if>
placeholder=<#if item.getPlaceHolder()??>'${item.getPlaceHolder()}'<#else>'请选择...'</#if>
@change="($event)=>{gridEditItemChange(row, column.property, $event, $index)}"
style="${item.getEditorCssStyle()}">
</dropdown-list-mpicker>
\ No newline at end of file
@EDITOR/下拉列表框(cron表达式)/PANELEDITOR.vue.ftl
0 → 100644
浏览文件 @
53086051
<#ibizinclude>../@MACRO/PANEL/DEFAULT.vue.ftl</#ibizinclude>
\ No newline at end of file
@EDITOR/下拉列表框(cron表达式)/template.properties
0 → 100644
浏览文件 @
53086051
EDITORTYPE
=
MDROPDOWNLIST#CRONEDITOR
\ No newline at end of file
@VIEW/应用首页视图/ROUTER.ts.ftl
浏览文件 @
53086051
...
@@ -362,5 +362,10 @@ const router = new Router({
...
@@ -362,5 +362,10 @@ const router = new Router({
},
},
],
],
});
});
// 解决路由跳转路由重复时报错
const originalPush = Router.prototype.push
Router.prototype.push = function push(location: any) {
let result: any = originalPush.call(this, location);
return result.catch((err: any) => err);
}
export default router;
export default router;
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录