mirror of
https://gitee.com/orangeform/orange-admin.git
synced 2026-01-18 02:56:30 +08:00
commit:同步2.1版本
This commit is contained in:
@@ -1,6 +1,17 @@
|
||||
import * as staticDict from '@/staticDict'
|
||||
|
||||
export default class DictionaryController {
|
||||
static dictSysRole (sender, params, axiosOption, httpOption) {
|
||||
return new Promise((resolve, reject) => {
|
||||
sender.doUrl('/admin/upms/sysRole/listDict', 'get', params, axiosOption, httpOption).then(res => {
|
||||
let dictData = new staticDict.DictionaryBase('角色字典');
|
||||
dictData.setList(res.data);
|
||||
resolve(dictData);
|
||||
}).catch(err => {
|
||||
reject(err);
|
||||
});
|
||||
});
|
||||
}
|
||||
static dictSysUserStatus () {
|
||||
return new Promise((resolve) => {
|
||||
resolve(staticDict.SysUserStatus);
|
||||
@@ -81,4 +92,15 @@ export default class DictionaryController {
|
||||
});
|
||||
});
|
||||
}
|
||||
static dictSysPost (sender, params, axiosOption, httpOption) {
|
||||
return new Promise((resolve, reject) => {
|
||||
sender.doUrl('/admin/upms/sysPost/listDict', 'get', params, axiosOption, httpOption).then(res => {
|
||||
let dictData = new staticDict.DictionaryBase('岗位字典');
|
||||
dictData.setList(res.data);
|
||||
resolve(dictData);
|
||||
}).catch(err => {
|
||||
reject(err);
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -95,4 +95,20 @@ export default class FlowOperationController {
|
||||
static deleteProcessInstance (sender, params, axiosOption, httpOption) {
|
||||
return sender.doUrl('/admin/flow/flowOperation/deleteProcessInstance', 'post', params, axiosOption, httpOption);
|
||||
}
|
||||
// 催办
|
||||
static remindRuntimeTask (sender, params, axiosOption, httpOption) {
|
||||
return sender.doUrl('/admin/flow/flowOperation/remindRuntimeTask', 'post', params, axiosOption, httpOption);
|
||||
}
|
||||
// 催办消息列表
|
||||
static listRemindingTask (sender, params, axiosOption, httpOption) {
|
||||
return sender.doUrl('/admin/flow/flowMessage/listRemindingTask', 'post', params, axiosOption, httpOption);
|
||||
}
|
||||
// 驳回
|
||||
static rejectRuntimeTask (sender, params, axiosOption, httpOption) {
|
||||
return sender.doUrl('/admin/flow/flowOperation/rejectRuntimeTask', 'post', params, axiosOption, httpOption);
|
||||
}
|
||||
// 撤销
|
||||
static revokeHistoricTask (sender, params, axiosOption, httpOption) {
|
||||
return sender.doUrl('/admin/flow/flowOperation/revokeHistoricTask', 'post', params, axiosOption, httpOption);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user