优化代码

This commit is contained in:
java110 2021-08-16 19:22:01 +08:00
parent 67858c82c4
commit 486f6fdf84
4 changed files with 69 additions and 71 deletions

View File

@ -70,7 +70,6 @@
return;
}
vc.component.addOaWorkflowInfo.communityId = vc.getCurrentCommunity().communityId;
//不提交数据将数据 回调给侦听处理
if (vc.notNull($props.callBackListener)) {
vc.emit($props.callBackListener, $props.callBackFunction, vc.component.addOaWorkflowInfo);
@ -79,7 +78,7 @@
}
vc.http.apiPost(
'oaWorkflow.saveOaWorkflow',
'/oaWorkflow/saveOaWorkflow',
JSON.stringify(vc.component.addOaWorkflowInfo),
{
emulateJSON: true

View File

@ -19,9 +19,8 @@
},
methods: {
deleteOaWorkflow: function () {
vc.component.deleteOaWorkflowInfo.communityId = vc.getCurrentCommunity().communityId;
vc.http.apiPost(
'oaWorkflow.deleteOaWorkflow',
'/oaWorkflow/deleteOaWorkflow',
JSON.stringify(vc.component.deleteOaWorkflowInfo),
{
emulateJSON: true

View File

@ -73,7 +73,7 @@ describle:'',
}
vc.http.apiPost(
'oaWorkflow.updateOaWorkflow',
'/oaWorkflow/updateOaWorkflow',
JSON.stringify(vc.component.editOaWorkflowInfo),
{
emulateJSON: true

View File

@ -41,7 +41,7 @@
};
//发送get请求
vc.http.apiGet('oaWorkflow.listOaWorkflows',
vc.http.apiGet('/oaWorkflow/queryOaWorkflow',
param,
function (json, res) {
var _oaWorkflowManageInfo = JSON.parse(json);