Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz-Vue-R7
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
22
议题
22
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7前端标准模板
iBiz-Vue-R7
提交
26ff9073
提交
26ff9073
编写于
5月 07, 2020
作者:
tony001
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zpc --- 完善开始流程关闭页面和错误提示
上级
0169ed16
变更
2
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
33 行增加
和
26 行删除
+33
-26
CONTROL-BASE.vue.ftl
@CONTROL/表单/CONTROL-BASE.vue.ftl
+30
-26
LOGIC.vue.ftl
@LOGIC/@UIACTION/系统预置/sys/开始流程/LOGIC.vue.ftl
+3
-0
未找到文件。
@CONTROL/表单/CONTROL-BASE.vue.ftl
浏览文件 @
26ff9073
...
@@ -850,8 +850,8 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
...
@@ -850,8 +850,8 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
});
});
}
}
}).catch((response: any) => {
}).catch((response: any) => {
if (response && response.status) {
if (response && response.status
&& response.data
) {
this.$Notice.error({ title: '错误', desc: response.message });
this.$Notice.error({ title: '错误', desc: response.
data.
message });
return;
return;
}
}
if (!response || !response.status || !response.data) {
if (!response || !response.status || !response.data) {
...
@@ -877,8 +877,8 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
...
@@ -877,8 +877,8 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
let post: Promise<any> = this.service.loadDraft(this.loaddraftAction,JSON.parse(JSON.stringify(this.context)),{viewparams:viewparamResult}, this.showBusyIndicator);
let post: Promise<any> = this.service.loadDraft(this.loaddraftAction,JSON.parse(JSON.stringify(this.context)),{viewparams:viewparamResult}, this.showBusyIndicator);
post.then((response: any) => {
post.then((response: any) => {
if (!response.status || response.status !== 200) {
if (!response.status || response.status !== 200) {
if (response.
errorMessage
) {
if (response.
data
) {
this.$Notice.error({ title: '错误', desc: response.
errorM
essage });
this.$Notice.error({ title: '错误', desc: response.
data.m
essage });
}
}
return;
return;
}
}
...
@@ -906,8 +906,8 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
...
@@ -906,8 +906,8 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
}
}
});
});
}).catch((response: any) => {
}).catch((response: any) => {
if (response && response.status) {
if (response && response.status
&& response.data
) {
this.$Notice.error({ title: '错误', desc: response.message });
this.$Notice.error({ title: '错误', desc: response.
data.
message });
return;
return;
}
}
if (!response || !response.status || !response.data) {
if (!response || !response.status || !response.data) {
...
@@ -940,8 +940,8 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
...
@@ -940,8 +940,8 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
const post: Promise<any> = this.service.add(action, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator);
const post: Promise<any> = this.service.add(action, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator);
post.then((response: any) => {
post.then((response: any) => {
if (!response.status || response.status !== 200) {
if (!response.status || response.status !== 200) {
if (response.
errorMessage
) {
if (response.
data
) {
this.$Notice.error({ title: '错误', desc: response.
errorM
essage });
this.$Notice.error({ title: '错误', desc: response.
data.m
essage });
}
}
return;
return;
}
}
...
@@ -956,8 +956,8 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
...
@@ -956,8 +956,8 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
this.formState.next({ type: 'save', data: data });
this.formState.next({ type: 'save', data: data });
});
});
}).catch((response: any) => {
}).catch((response: any) => {
if (response && response.status) {
if (response && response.status
&& response.data
) {
this.$Notice.error({ title: '错误', desc: response.message });
this.$Notice.error({ title: '错误', desc: response.
data.
message });
return;
return;
}
}
if (!response || !response.status || !response.data) {
if (!response || !response.status || !response.data) {
...
@@ -1012,8 +1012,8 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
...
@@ -1012,8 +1012,8 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
const post: Promise<any> = Object.is(data.srfuf, '1')?this.service.update(action, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator):this.service.add(action,JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator);
const post: Promise<any> = Object.is(data.srfuf, '1')?this.service.update(action, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator):this.service.add(action,JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator);
post.then((response: any) => {
post.then((response: any) => {
if (!response.status || response.status !== 200) {
if (!response.status || response.status !== 200) {
if (response.
errorMessage
) {
if (response.
data
) {
this.$Notice.error({ title: '错误', desc: response.
errorM
essage });
this.$Notice.error({ title: '错误', desc: response.
data.m
essage });
}
}
return;
return;
}
}
...
@@ -1034,8 +1034,8 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
...
@@ -1034,8 +1034,8 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
</#if>
</#if>
resolve(response);
resolve(response);
}).catch((response: any) => {
}).catch((response: any) => {
if (response && response.status) {
if (response && response.status
&& response.data
) {
this.$Notice.error({ title: '错误', desc: response.message });
this.$Notice.error({ title: '错误', desc: response.
data.
message });
reject(response);
reject(response);
return;
return;
}
}
...
@@ -1109,14 +1109,16 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
...
@@ -1109,14 +1109,16 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
const result: Promise<any> = this.service.wfstart(_this.WFStartAction, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator,localdata);
const result: Promise<any> = this.service.wfstart(_this.WFStartAction, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator,localdata);
result.then((response: any) => {
result.then((response: any) => {
if (!response || response.status !== 200) {
if (!response || response.status !== 200) {
this.$Notice.error({ title: '', desc: '工作流启动失败, ' + response.info });
if(response.data){
this.$Notice.error({ title: '', desc: '工作流启动失败, ' + response.data.message });
}
return;
return;
}
}
this.$Notice.info({ title: '', desc: '工作流启动成功' });
this.$Notice.info({ title: '', desc: '工作流启动成功' });
resolve(response);
resolve(response);
}).catch((response: any) => {
}).catch((response: any) => {
if (response && response.status) {
if (response && response.status
&& response.data
) {
this.$Notice.error({ title: '错误', desc: response.message });
this.$Notice.error({ title: '错误', desc: response.
data.
message });
reject(response);
reject(response);
return;
return;
}
}
...
@@ -1128,8 +1130,8 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
...
@@ -1128,8 +1130,8 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
reject(response);
reject(response);
});
});
}).catch((response: any) => {
}).catch((response: any) => {
if (response && response.status) {
if (response && response.status
&& response.data
) {
this.$Notice.error({ title: '错误', desc: response.message });
this.$Notice.error({ title: '错误', desc: response.
data.
message });
reject(response);
reject(response);
return;
return;
}
}
...
@@ -1172,14 +1174,16 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
...
@@ -1172,14 +1174,16 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
const result: Promise<any> = this.service.wfsubmit(_this.WFSubmitAction, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator,localdata);
const result: Promise<any> = this.service.wfsubmit(_this.WFSubmitAction, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator,localdata);
result.then((response: any) => {
result.then((response: any) => {
if (!response || response.status !== 200) {
if (!response || response.status !== 200) {
this.$Notice.error({ title: '', desc: '工作流提交失败, ' + response.info });
if(response.data){
this.$Notice.error({ title: '', desc: '工作流提交失败, ' + response.data.message });
}
return;
return;
}
}
this.$Notice.info({ title: '', desc: '工作流提交成功' });
this.$Notice.info({ title: '', desc: '工作流提交成功' });
resolve(response);
resolve(response);
}).catch((response: any) => {
}).catch((response: any) => {
if (response && response.status) {
if (response && response.status
&& response.data
) {
this.$Notice.error({ title: '错误', desc: response.message });
this.$Notice.error({ title: '错误', desc: response.
data.
message });
reject(response);
reject(response);
return;
return;
}
}
...
@@ -1191,8 +1195,8 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
...
@@ -1191,8 +1195,8 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
reject(response);
reject(response);
});
});
}).catch((response: any) => {
}).catch((response: any) => {
if (response && response.status) {
if (response && response.status
&& response.data
) {
this.$Notice.error({ title: '错误', desc: response.message });
this.$Notice.error({ title: '错误', desc: response.
data.
message });
reject(response);
reject(response);
return;
return;
}
}
...
@@ -1245,8 +1249,8 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
...
@@ -1245,8 +1249,8 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
this.formState.next({ type: 'updateformitem', ufimode: arg.srfufimode, data: _data });
this.formState.next({ type: 'updateformitem', ufimode: arg.srfufimode, data: _data });
});
});
}).catch((response: any) => {
}).catch((response: any) => {
if (response && response.status) {
if (response && response.status
&& response.data
) {
this.$Notice.error({ title: '错误', desc: response.message });
this.$Notice.error({ title: '错误', desc: response.
data.
message });
return;
return;
}
}
if (!response || !response.status || !response.data) {
if (!response || !response.status || !response.data) {
...
...
@LOGIC/@UIACTION/系统预置/sys/开始流程/LOGIC.vue.ftl
浏览文件 @
26ff9073
...
@@ -36,6 +36,8 @@
...
@@ -36,6 +36,8 @@
if (_this.viewdata) {
if (_this.viewdata) {
_this.$emit('viewdataschange', [{ ..._data }]);
_this.$emit('viewdataschange', [{ ..._data }]);
_this.$emit('close');
_this.$emit('close');
}else if (this.$tabPageExp) {
this.$tabPageExp.onClose(this.$route.fullPath);
}
}
});
});
}
}
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录