demo-web-ui
14
demo-web-ui/src/App.vue
Normal file
@@ -0,0 +1,14 @@
|
||||
<template>
|
||||
<div id="app">
|
||||
<router-view />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'App',
|
||||
mounted() {
|
||||
|
||||
},
|
||||
}
|
||||
</script>
|
||||
30
demo-web-ui/src/api/Common/Upload.js
Normal file
@@ -0,0 +1,30 @@
|
||||
import request from '@/utils/request'
|
||||
// 上传图片
|
||||
export function imageUpload(data){
|
||||
return request({
|
||||
url: '/jlcyry/file/upload',
|
||||
method: 'post',
|
||||
data,
|
||||
headers:{'Content-Type':'multipart/form-data'}
|
||||
})
|
||||
}
|
||||
// 移动端管理--新增上传插件
|
||||
export const uploadFile = '/api/portal/v1/appsubsetversion/save'
|
||||
// 移动端管理--更新上传插件
|
||||
export const upload_UpdateFile = '/api/portal/v1/appsubsetversion/update'
|
||||
// 移动端管理--框架更新上传插件
|
||||
export const upload_frameFile = '/api/portal/v1/appversion/save'
|
||||
// 移动端管理--上传icon(图标)
|
||||
export const uploadFileIcon = '/api/portal/file/upload'
|
||||
|
||||
// 图片上传
|
||||
export const uploadImgFile = '/api/portal/file/upload'
|
||||
|
||||
// 移除图片
|
||||
export function deleteFilesOss(data) {
|
||||
return request({
|
||||
url: '/base/v1/baseVehicleAppendixs/deleteFilesOss', // data,
|
||||
method: 'post',
|
||||
params: { fullPath: data }
|
||||
})
|
||||
}
|
||||
25
demo-web-ui/src/api/Common/areaPicker.js
Normal file
@@ -0,0 +1,25 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
//区域获取省
|
||||
export function getProvince(data) {
|
||||
return request({
|
||||
url: '/system/region/getProvince',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
//根据省sid获取该省的所有市
|
||||
export function getCity(data) {
|
||||
return request({
|
||||
url: '/system/region/getCity',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
//根据市sid获取该市的所有县区
|
||||
export function getCounty(data) {
|
||||
return request({
|
||||
url: '/system/region/getCounty',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
54
demo-web-ui/src/api/User/login.js
Normal file
@@ -0,0 +1,54 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs'
|
||||
|
||||
class user {
|
||||
login(data) { // 登录
|
||||
return request({
|
||||
url: '/system/user/login',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
logout(data) { // 退出
|
||||
return request({
|
||||
url: '/portal/v1/sysuser/signOut',
|
||||
method: 'post',
|
||||
data: qs.stringify(data)
|
||||
})
|
||||
}
|
||||
|
||||
updatePassword(data) { // 退出修改密码
|
||||
return request({
|
||||
url: '/portal/v1/sysuser/updatePassword',
|
||||
method: 'post',
|
||||
data: qs.stringify(data)
|
||||
})
|
||||
}
|
||||
|
||||
reGetPwd(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysuser/reGetPwd',
|
||||
method: 'post',
|
||||
params: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded'
|
||||
}
|
||||
})
|
||||
}
|
||||
selectPasswordByUserSid(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysuser/selectPasswordByUserSid/' + data,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
getOrgListByUserSid(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysuser/getOrgListByUserSid',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
export default new user()
|
||||
37
demo-web-ui/src/api/flow/read.js
Normal file
@@ -0,0 +1,37 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查看待阅和已阅列表
|
||||
export function pagerList(data) {
|
||||
return request({
|
||||
url: '/message/v1/messagelist/todoAllReadList',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 待阅列表--修改为已阅
|
||||
export function changeRead(data) {
|
||||
return request({
|
||||
url: '/message/v1/messagelist/changeRead?sids=' + data,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 待阅列表--修改为已阅
|
||||
export function getToBeReadNum(data) {
|
||||
return request({
|
||||
url: '/message/v1/messagelist/getTodoNum/' + data,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 待办已办待阅已阅获取人员
|
||||
export function sysstaffinfo() {
|
||||
return request({
|
||||
url: '/portal/v1/sysstaffinfo/v1/sysstaffinfo/selectStaffLists',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
133
demo-web-ui/src/api/flow/todo.js
Normal file
@@ -0,0 +1,133 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 读取xml文件
|
||||
export function readXml(deployId, token) {
|
||||
return request({
|
||||
url: '/portal/v1/flow/readXml/' + deployId,
|
||||
method: 'get',
|
||||
params: token
|
||||
})
|
||||
}
|
||||
// 读取image文件
|
||||
export function getFlowViewer(procInsId, token) {
|
||||
return request({
|
||||
url: '/portal/v1/flow/flowViewer/' + procInsId,
|
||||
method: 'get',
|
||||
params: token
|
||||
})
|
||||
}
|
||||
// 查看总代办列表
|
||||
export function pagerList(params) {
|
||||
return request({
|
||||
url: '/portal/v1/flow/todoAllTaskList/' + params.params.userSid,
|
||||
method: 'post',
|
||||
data: params,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 查看总已办列表
|
||||
export function getList(params) {
|
||||
return request({
|
||||
url: '/portal/v1/flow/doneAllTaskList/' + params.params.userSid,
|
||||
method: 'post',
|
||||
data: params,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 待办已办待阅已阅获取人员
|
||||
export function sysstaffinfo() {
|
||||
return request({
|
||||
url: '/portal/v1/sysstaffinfo/selectStaffLists',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 代办任务同意办理
|
||||
export function businessAgree(params) {
|
||||
return request({
|
||||
url: '/portal/v1/flow/complete',
|
||||
method: 'post',
|
||||
data: params,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 代办任务驳回任务
|
||||
export function rejectTask(params) {
|
||||
return request({
|
||||
url: '/portal/v1/flow/reject/' + params.businessSid,
|
||||
method: 'post',
|
||||
data: params,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 代办任务终止任务
|
||||
export function breakTask(params) {
|
||||
return request({
|
||||
url: '/portal/v1/flow/breakProcess/' + params.businessSid,
|
||||
method: 'post',
|
||||
data: params,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 代办任务撤回任务
|
||||
export function revokeTask(params) {
|
||||
return request({
|
||||
url: '/portal/v1/flow/revokeProcess/' + params.userSid + '/' + params.businessSid,
|
||||
method: 'post',
|
||||
data: params,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 已办任务列表--终止
|
||||
export function breakProcess(params) {
|
||||
return request({
|
||||
url: '/flowable/v1/flow/breakProcess',
|
||||
method: 'post',
|
||||
data: params,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 审批记录--保存评论
|
||||
export function commentSave(data) {
|
||||
return request({
|
||||
url: '/flowable/v1/processcomment/save',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 根据流程定义id,节点id,终端及类型查询流程与业务表单url
|
||||
export function selectUrl(params) {
|
||||
return request({
|
||||
url: '/flowable/v1/flowable/proUrl/selectPcUrlByTaskDefKey',
|
||||
method: 'post',
|
||||
data: params,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
}
|
||||
24
demo-web-ui/src/api/flow/todoForBusiness.js
Normal file
@@ -0,0 +1,24 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs'
|
||||
// 读取xml文件
|
||||
export function readXml (deployId) {
|
||||
return request({
|
||||
url: '/portal/v1/flow/readXml/' + deployId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
// 读取image文件
|
||||
export function getFlowViewer (procInsId) {
|
||||
return request({
|
||||
url: '/portal/v1/flow/flowViewer/' + procInsId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
// 任务流转记录
|
||||
export function flowRecord(query) {
|
||||
return request({
|
||||
url: '/portal/v1/flow/task/flowRecord/' + query.procInsId + "/" + query.deployId,
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
42
demo-web-ui/src/api/jlcyry/staffOrg/staffOrg.js
Normal file
@@ -0,0 +1,42 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs';
|
||||
class staffOrg {
|
||||
staffBingingList(data) { // 人员绑定审核列表
|
||||
return request({
|
||||
url: '/jlcyry/staffOrg/staffBingingList',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token' : "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTm8iOiIxOCIsImlzcyI6IldCSyIsImV4cCI6MTYwMjg5ODM0NH0.VBtcZcQm_1eLqThHXPM6YZrIHQFy3_LJtBkEONgcoos"
|
||||
}
|
||||
})
|
||||
}
|
||||
staffOrgBingingDetails(data) { //人员绑定列表点击审核的初始化页面数据
|
||||
return request({
|
||||
url: '/jlcyry/staffOrg/staffOrgBingingDetails/'+ data.userName,
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
verify(data) { //人员绑定审核
|
||||
return request({
|
||||
url: '/jlcyry/staffOrg/verifyStaffOrg',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json'}
|
||||
})
|
||||
}
|
||||
|
||||
setUpDepartment(data) { //人员绑定部门
|
||||
return request({
|
||||
url: '/system/v1/departmentStaffs/setUpDepartment',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json'}
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export default new staffOrg()
|
||||
60
demo-web-ui/src/api/orgRegist/index.js
Normal file
@@ -0,0 +1,60 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs';
|
||||
// 获取机构的单位类别
|
||||
export function getDwType(data) {
|
||||
return request({
|
||||
url: '/system/dictCommon/getDwType',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
//获取机构的人员类别
|
||||
export function getRylb(data) {
|
||||
return request({
|
||||
url: '/system/dictCommon/getRylb',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
//获取验证码(注册)
|
||||
export function getVerificationCode(data) {
|
||||
return request({
|
||||
url: '/system/organization/getVerificationCode',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
//获取机构信息列表
|
||||
export function verifyList(data) {
|
||||
return request({
|
||||
url: '/system/organization/verifyList',
|
||||
method: 'post',
|
||||
data: qs.stringify(data),
|
||||
headers: {'Content-Type': 'application/json'}
|
||||
})
|
||||
}
|
||||
|
||||
//机构信息保存
|
||||
export function saveOrg(data) {
|
||||
return request({
|
||||
url: '/system/organization/save',
|
||||
method: 'post',
|
||||
data: qs.stringify(data),
|
||||
})
|
||||
}
|
||||
|
||||
//入职单位下拉框
|
||||
export function inductionUnitList(data) {
|
||||
return request({
|
||||
url: '/system/organization/inductionUnitList',
|
||||
method: 'post',
|
||||
data: qs.stringify(data),
|
||||
})
|
||||
}
|
||||
|
||||
export function download(data) { // 下载授权证书
|
||||
return request({
|
||||
url: 'system/organization/download',
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
22
demo-web-ui/src/api/orgRegist/organization.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs';
|
||||
class organization{
|
||||
inductionUnitList(data) { // 绑定单位 入职单位下拉框
|
||||
return request({
|
||||
url: '/system/organization/inductionUnitList',
|
||||
method: 'post',
|
||||
data: qs.stringify(data),
|
||||
})
|
||||
}
|
||||
save(data) { // 人员机构关系保存
|
||||
return request({
|
||||
url: '/jlcyry/staffOrg/save',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json'}
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export default new organization()
|
||||
33
demo-web-ui/src/api/system/Role/role.js
Normal file
@@ -0,0 +1,33 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs'
|
||||
let tokens = window.sessionStorage.getItem('token');
|
||||
//
|
||||
export function rolemenus(data) {
|
||||
return request({
|
||||
url: '/system/v1/rolemenus/'+data.roleSid,
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 获取左侧菜单
|
||||
export function getrolemenus(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysmenu/sourcemenutree',
|
||||
method: 'POST',
|
||||
async: false,
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens}
|
||||
})
|
||||
}
|
||||
|
||||
// 获取角色的主页菜单
|
||||
export function sourcesofrole(data) {
|
||||
return request({
|
||||
url: '/system/v1/rolemenus/sourcesofrole',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json'}
|
||||
})
|
||||
}
|
||||
69
demo-web-ui/src/api/system/Role/roleManage.js
Normal file
@@ -0,0 +1,69 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs'
|
||||
|
||||
// 获取角色 不分页列表
|
||||
export function roleList(data) {
|
||||
return request({
|
||||
url: '/system/v1/roles/list/',
|
||||
method: 'post',
|
||||
data: qs.stringify(data)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//获取角色 分页列表
|
||||
export function rolePageList(data) {
|
||||
return request({
|
||||
url: '/system/v1/roles/pagelist',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json'}
|
||||
})
|
||||
}
|
||||
|
||||
//保存 角色信息
|
||||
export function saveRoleInfo(data) {
|
||||
return request({
|
||||
url: '/system/v1/roles',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json'}
|
||||
})
|
||||
}
|
||||
|
||||
//根据sid 获取单个角色 信息
|
||||
export function getRoleInfo(data) {
|
||||
return request({
|
||||
url: '/system/v1/roles/' + data.sid,
|
||||
method: 'GET',
|
||||
data: qs.stringify(data)
|
||||
})
|
||||
}
|
||||
|
||||
//根据sid 修改单个角色 信息
|
||||
export function putRoleInfo(data) {
|
||||
return request({
|
||||
url: '/system/v1/roles/' + data.sid,
|
||||
method: 'PUT',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json'}
|
||||
})
|
||||
}
|
||||
|
||||
//根据sid 删除单个角色 信息
|
||||
export function delRole(data) {
|
||||
return request({
|
||||
url: '/system/v1/roles/' + data.sid,
|
||||
method: 'DELETE',
|
||||
data: qs.stringify(data)
|
||||
})
|
||||
}
|
||||
|
||||
//根据sid 设置单个角色 的状态
|
||||
export function setRoleEnable(data) {
|
||||
return request({
|
||||
url: `/system/v1/roles/setIsEnable/${data.sid}/${data.isEnable}`,
|
||||
method: 'POST',
|
||||
data: qs.stringify(data)
|
||||
})
|
||||
}
|
||||
32
demo-web-ui/src/api/system/dataDict/dataDict.js
Normal file
@@ -0,0 +1,32 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs'
|
||||
//获取单位级别
|
||||
export function getDwJb(data) {
|
||||
return request({
|
||||
url: '/system/dictCommon/getDwJb',
|
||||
method: 'GET',
|
||||
})
|
||||
}
|
||||
// 获取机构单位类别
|
||||
export function getDwType(data) {
|
||||
return request({
|
||||
url: '/system/dictCommon/getDwType',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
//获取机构人员类别
|
||||
export function getRylb(data) {
|
||||
return request({
|
||||
url: '/system/dictCommon/getRylb',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 根据Type值获取数据对象
|
||||
export function getDicts(typeCode) {
|
||||
return request({
|
||||
url: '/system/dictCommon/dicts/'+typeCode,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
10
demo-web-ui/src/api/system/datamapping/datamapping.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function listPage(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysmapping/listPage',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: { 'Content-Type': 'application/json' }
|
||||
})
|
||||
}
|
||||
125
demo-web-ui/src/api/system/departments/departments.js
Normal file
@@ -0,0 +1,125 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs'
|
||||
|
||||
// let tokens = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTm8iOiI2IiwiaXNzIjoiV0JLIiwiZXhwIjoxNjMwMDI3MDA3fQ.9bEgBzFW2g1CUT7s5VXxhNCa10cyU_WTCFeqpQje0iY'
|
||||
let tokens = window.sessionStorage.getItem('token')
|
||||
// 获取菜单 分页列表
|
||||
export function pageList(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysorganization/listPage',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 查询左侧部门列表
|
||||
export function orgList(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysorganization/list',
|
||||
method: 'get',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 编辑部门信息
|
||||
export function postOrgtree(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysorganization/update/' + data.sid,
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 获取 机构分页列表(编辑部门信息)
|
||||
export function putOrgtree(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysorganization/update/' + data.sid,
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 新增部门信息
|
||||
export function addOrgTree(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysorganization/save',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 回显
|
||||
export function selectBySid(data) {
|
||||
return request({
|
||||
url: 'portal/v1/sysorganization/fetchBySid/' + data,
|
||||
method: 'get',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 树 节点名称 删除
|
||||
export function delOrgtree(data) {
|
||||
return request({
|
||||
url: `/portal/v1/sysorganization/delBySid/` + data.sid,
|
||||
method: 'get',
|
||||
data: qs.stringify(data),
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 查询主管人员 旧的:/portal/v1/sysstafforg/staffinfoList
|
||||
export function getStaff(data) {
|
||||
return request({
|
||||
url: 'portal/v1/sysstaffinfo/getStaffNameByDeptSid',
|
||||
method: 'get',
|
||||
params: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 查询分管人员
|
||||
export function getStaffName(params) {
|
||||
return request({
|
||||
url: '/portal/v1/sysstaffinfo/getStaffName',
|
||||
method: 'get',
|
||||
params: params,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 查看二维码
|
||||
export function getQrCode(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysorganization/getQrCode/' + data.sid,
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
}
|
||||
58
demo-web-ui/src/api/system/dictType/dictCommon.js
Normal file
@@ -0,0 +1,58 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs'
|
||||
let tokens = window.sessionStorage.getItem('token');
|
||||
|
||||
//获取字典子集 分页列表
|
||||
export function dictCommonList(data) {
|
||||
return request({
|
||||
url: '/portal/v1/dictcommons/pageList',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json'}
|
||||
})
|
||||
}
|
||||
|
||||
//保存 字典子级
|
||||
export function savedictCommon(data) {
|
||||
return request({
|
||||
url: '/portal/v1/dictcommons/save',
|
||||
method: 'POST',
|
||||
data: data ,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
//根据sid 获取单个菜单 信息
|
||||
export function getRoleInfo(data) {
|
||||
return request({
|
||||
url: '/system/v1/menus/' + data.sid,
|
||||
method: 'GET',
|
||||
data: qs.stringify(data)
|
||||
})
|
||||
}
|
||||
|
||||
//根据sid 修改 数据字典
|
||||
export function putdictCommon(data) {
|
||||
return request({
|
||||
url: '/portal/v1/dictcommons/update/' + data.sid,
|
||||
method: 'POST',
|
||||
data: data ,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
//根据sid 删除菜单 信息
|
||||
export function deldictCommon(data) {
|
||||
return request({
|
||||
url: '/portal/v1/dictcommons/delete/' + data.sid,
|
||||
method: 'DELETE',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
74
demo-web-ui/src/api/system/dictType/index.js
Normal file
@@ -0,0 +1,74 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs'
|
||||
let tokens = window.sessionStorage.getItem('token')
|
||||
|
||||
// 获取菜单 分页列表
|
||||
export function pageList(data) {
|
||||
return request({
|
||||
url: '/portal/v1/dicttypes/pageList',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 根据sid 修改
|
||||
export function putDictType(data) {
|
||||
return request({
|
||||
url: '/portal/v1/dicttypes/update/' + data.sid,
|
||||
method: 'POST',
|
||||
data: qs.stringify(data)
|
||||
})
|
||||
}
|
||||
|
||||
// 保存 角色信息
|
||||
export function saveDictType(data) {
|
||||
return request({
|
||||
url: '/portal/v1/dicttypes/save',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: { 'Content-Type': 'application/json', 'token': tokens }
|
||||
})
|
||||
}
|
||||
|
||||
// 根据sid 获取单个菜单 信息
|
||||
export function getRoleInfo(data) {
|
||||
return request({
|
||||
url: '/system/v1/menus/' + data.sid,
|
||||
method: 'GET',
|
||||
data: qs.stringify(data)
|
||||
})
|
||||
}
|
||||
|
||||
// 数据字段--映射管理保存
|
||||
export function saveMappingList(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysmapping/saveMappingList',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: { 'Content-Type': 'application/json', 'token': tokens }
|
||||
})
|
||||
}
|
||||
|
||||
// 数据字段--映射管理保存
|
||||
export function selectMappingListInfo(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysmapping/selectMappingListInfo',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: { 'Content-Type': 'application/json', 'token': tokens }
|
||||
})
|
||||
}
|
||||
|
||||
// 根据sid 删除菜单 信息
|
||||
export function delDictType(data) {
|
||||
return request({
|
||||
url: '/portal/v1/dicttypes/delete/' + data.sid,
|
||||
method: 'DELETE',
|
||||
data: data,
|
||||
headers: { 'Content-Type': 'application/json', 'token': tokens }
|
||||
})
|
||||
}
|
||||
125
demo-web-ui/src/api/system/flowable/definition.js
Normal file
@@ -0,0 +1,125 @@
|
||||
import request from "@/utils/request";
|
||||
|
||||
// 查询流程定义列表
|
||||
export function listDefinition(query) {
|
||||
console.log(query);
|
||||
return request({
|
||||
// url: '/flowable/definition/list',
|
||||
url: "/flowable/definition/pagerList",
|
||||
method: "post",
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
// 读取xml文件
|
||||
export function readXml(deployId) {
|
||||
return request({
|
||||
url: "/v1/flowable/definition/readXml/" + deployId,
|
||||
method: "get"
|
||||
});
|
||||
}
|
||||
|
||||
// 保存模型
|
||||
export function saveXml(data) {
|
||||
return request({
|
||||
url: "/v1/flowable/definition/save",
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
// 部署流程实例
|
||||
export function definitionStart(procDefId, data) {
|
||||
return request({
|
||||
url: "/v1/flowable/definition/start/" + procDefId,
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
// 获取流程变量
|
||||
export function getProcessVariables(taskId) {
|
||||
return request({
|
||||
url: "/v1/flowable/task/processVariables/" + taskId,
|
||||
method: "get"
|
||||
});
|
||||
}
|
||||
|
||||
// 激活/挂起流程
|
||||
export function updateState(params) {
|
||||
return request({
|
||||
url: "/flowable/definition/updateState",
|
||||
method: "put",
|
||||
params: params
|
||||
});
|
||||
}
|
||||
|
||||
// 指定流程办理人员列表
|
||||
export function userList(query) {
|
||||
return request({
|
||||
url: "/v1/flowable/definition/userList",
|
||||
method: "get",
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
// 指定流程办理组列表
|
||||
export function roleList(query) {
|
||||
return request({
|
||||
url: "/flowable/definition/roleList",
|
||||
method: "get",
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
// 读取image文件
|
||||
export function readImage(deployId) {
|
||||
return request({
|
||||
url: "/flowable/definition/readImage/" + deployId,
|
||||
method: "get"
|
||||
});
|
||||
}
|
||||
|
||||
// 读取image文件
|
||||
export function getFlowViewer(procInsId) {
|
||||
return request({
|
||||
url: "/v1/flowable/task/flowViewer/" + procInsId,
|
||||
method: "get"
|
||||
});
|
||||
}
|
||||
|
||||
// 新增流程定义
|
||||
export function addDeployment(data) {
|
||||
return request({
|
||||
url: "/system/deployment",
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
// 修改流程定义
|
||||
export function updateDeployment(data) {
|
||||
return request({
|
||||
url: "/system/deployment",
|
||||
method: "put",
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
// 删除流程定义
|
||||
export function delDeployment(query) {
|
||||
return request({
|
||||
url: "/v1/flowable/definition/delete",
|
||||
method: "delete",
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
// 导出流程定义
|
||||
export function exportDeployment(query) {
|
||||
return request({
|
||||
url: "/system/deployment/export",
|
||||
method: "get",
|
||||
params: query
|
||||
});
|
||||
}
|
||||
80
demo-web-ui/src/api/system/flowable/finished.js
Normal file
@@ -0,0 +1,80 @@
|
||||
import request from '@/utils/request'
|
||||
import da from "element-ui/src/locale/lang/da";
|
||||
|
||||
// 查询已办任务列表
|
||||
export function finishedList(data) {
|
||||
return request({
|
||||
url: '/v1/flowable/task/doneList',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 任务流转记录
|
||||
export function flowRecord(data) {
|
||||
return request({
|
||||
url: '/v1/flowable/task/flowRecord',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 撤回任务
|
||||
export function revokeProcess(data) {
|
||||
return request({
|
||||
url: '/flowable/task/revokeProcess',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 部署流程实例
|
||||
export function deployStart(deployId) {
|
||||
return request({
|
||||
url: '/flowable/process/startFlow/' + deployId,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
// 查询流程定义详细
|
||||
export function getDeployment(id) {
|
||||
return request({
|
||||
url: '/system/deployment/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增流程定义
|
||||
export function addDeployment(data) {
|
||||
return request({
|
||||
url: '/system/deployment',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改流程定义
|
||||
export function updateDeployment(data) {
|
||||
return request({
|
||||
url: '/system/deployment',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除流程定义
|
||||
export function delDeployment(id) {
|
||||
return request({
|
||||
url: '/system/deployment/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出流程定义
|
||||
export function exportDeployment(query) {
|
||||
return request({
|
||||
url: '/system/deployment/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
64
demo-web-ui/src/api/system/flowable/form.js
Normal file
@@ -0,0 +1,64 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询流程表单列表
|
||||
export function listForm(query) {
|
||||
return request({
|
||||
url: '/v1/flowable/form/list',
|
||||
method: 'post',
|
||||
data: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询流程表单详细
|
||||
export function getForm(formId) {
|
||||
return request({
|
||||
url: '/v1/flowable/form/' + formId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增流程表单
|
||||
export function addForm(data) {
|
||||
return request({
|
||||
url: '/v1/flowable/form/add',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':1
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 修改流程表单
|
||||
export function updateForm(data) {
|
||||
return request({
|
||||
url: '/v1/flowable/form',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 挂载表单
|
||||
export function addDeployForm(data) {
|
||||
return request({
|
||||
url: '/v1/flowable/form/addDeployForm',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除流程表单
|
||||
export function delForm(formId) {
|
||||
return request({
|
||||
url: '/v1/flowable/form/' + formId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出流程表单
|
||||
export function exportForm(query) {
|
||||
return request({
|
||||
url: '/v1/flowable/form/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
98
demo-web-ui/src/api/system/flowable/process.js
Normal file
@@ -0,0 +1,98 @@
|
||||
import request from '@/utils/request'
|
||||
import da from "element-ui/src/locale/lang/da";
|
||||
|
||||
// 我的发起的流程
|
||||
export function myProcessList(data) {
|
||||
return request({
|
||||
url: '/v1/flowable/task/myprocess',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 完成任务
|
||||
export function complete(data) {
|
||||
return request({
|
||||
url: '/flowable/task/complete',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 取消申请
|
||||
export function stopProcess(data) {
|
||||
return request({
|
||||
url: '/v1/flowable/task/stopProcess',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 驳回任务
|
||||
export function rejectTask(data) {
|
||||
return request({
|
||||
url: '/v1/flowable/task/reject',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 可退回任务列表
|
||||
export function returnList(data) {
|
||||
return request({
|
||||
url: '/v1/flowable/task/returnList',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 部署流程实例
|
||||
export function deployStart(deployId) {
|
||||
return request({
|
||||
url: '/flowable/process/startFlow/' + deployId,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
// 查询流程定义详细
|
||||
export function getDeployment(id) {
|
||||
return request({
|
||||
url: '/system/deployment/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增流程定义
|
||||
export function addDeployment(data) {
|
||||
return request({
|
||||
url: '/system/deployment',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改流程定义
|
||||
export function updateDeployment(data) {
|
||||
return request({
|
||||
url: '/system/deployment',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除流程定义
|
||||
export function delDeployment(id) {
|
||||
return request({
|
||||
url: '/system/deployment/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出流程定义
|
||||
export function exportDeployment(query) {
|
||||
return request({
|
||||
url: '/system/deployment/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
116
demo-web-ui/src/api/system/flowable/todo.js
Normal file
@@ -0,0 +1,116 @@
|
||||
import request from '@/utils/request'
|
||||
import da from "element-ui/src/locale/lang/da";
|
||||
|
||||
// 查询待办任务列表
|
||||
export function todoList(data) {
|
||||
return request({
|
||||
url: '/v1/flowable/task/todoList',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 完成任务
|
||||
export function complete(data) {
|
||||
return request({
|
||||
url: '/v1/flowable/task/complete',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 委派任务
|
||||
export function delegate(data) {
|
||||
return request({
|
||||
url: '/flowable/task/delegate',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 退回任务
|
||||
export function returnTask(data) {
|
||||
return request({
|
||||
url: '/v1/flowable/task/return',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 驳回任务
|
||||
export function rejectTask(data) {
|
||||
return request({
|
||||
url: '/v1/flowable/task/reject',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 可退回任务列表
|
||||
export function returnList(data) {
|
||||
return request({
|
||||
url: '/v1/flowable/task/returnList',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 下一节点
|
||||
export function getNextFlowNode(data) {
|
||||
return request({
|
||||
url: '/v1/flowable/task/nextFlowNode',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 部署流程实例
|
||||
export function deployStart(deployId) {
|
||||
return request({
|
||||
url: '/flowable/process/startFlow/' + deployId,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
// 查询流程定义详细
|
||||
export function getDeployment(id) {
|
||||
return request({
|
||||
url: '/system/deployment/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增流程定义
|
||||
export function addDeployment(data) {
|
||||
return request({
|
||||
url: '/system/deployment',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改流程定义
|
||||
export function updateDeployment(data) {
|
||||
return request({
|
||||
url: '/system/deployment',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除流程定义
|
||||
export function delDeployment(id) {
|
||||
return request({
|
||||
url: '/system/deployment/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出流程定义
|
||||
export function exportDeployment(query) {
|
||||
return request({
|
||||
url: '/system/deployment/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
104
demo-web-ui/src/api/system/functional/functional.js
Normal file
@@ -0,0 +1,104 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
let tokens = window.sessionStorage.getItem('token')
|
||||
|
||||
// 获取菜单 分页列表
|
||||
export function pageList(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysfunction/listAllVoForSource',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 新增
|
||||
export function savePost(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysfunction/save',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 模块名称
|
||||
export function sourceList(data) {
|
||||
return request({
|
||||
url: '/portal/v1/syssource/listAll',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 删除
|
||||
export function delOrgroles(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysfunction/delBySids/' + data.sid,
|
||||
method: 'get',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 修改
|
||||
export function getSingleData(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysfunction/fetchBySid/' + data.id,
|
||||
method: 'get',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
export function putOrgroles(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysfunction/update/' + data.sid,
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 功能是否可用状态
|
||||
export function IsEnable(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysfunction/updateIsEnable/' + data.sid + '/' + data.isEnable,
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 获取模块下的菜单
|
||||
export function getMenusForFunction(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysmenu/getMenusForFunction',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: { 'Content-Type': 'application/json' }
|
||||
})
|
||||
}
|
||||
|
||||
9
demo-web-ui/src/api/system/home/home.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 获取当前用户的待办数量
|
||||
export function getTodoNum(data) {
|
||||
return request({
|
||||
url: '/portal/v1/flow/getTodoNum/' + data,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 获取菜单 分页列表
|
||||
export function pageList(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysflowcc/listPage',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: { 'Content-Type': 'application/json' }
|
||||
})
|
||||
}
|
||||
|
||||
// 新增
|
||||
export function save(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysflowcc/save',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: { 'Content-Type': 'application/json' }
|
||||
})
|
||||
}
|
||||
|
||||
// 初始化应用
|
||||
export function fetchSid(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysflowcc/fetchDetailsBySid/' + data,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 删除
|
||||
export function delBySids(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysflowcc/delBySids',
|
||||
method: 'DELETE',
|
||||
data: data,
|
||||
headers: { 'Content-Type': 'application/json' }
|
||||
})
|
||||
}
|
||||
|
||||
// 查询角色列表
|
||||
export function roleList(data){
|
||||
return request({
|
||||
url: '/portal/v1/sysrole/listAll',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: { 'Content-Type': 'application/json' }
|
||||
})
|
||||
}
|
||||
16
demo-web-ui/src/api/system/log/index.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs'
|
||||
//let tokens = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTm8iOiI2IiwiaXNzIjoiV0JLIiwiZXhwIjoxNjMwMDI3MDA3fQ.9bEgBzFW2g1CUT7s5VXxhNCa10cyU_WTCFeqpQje0iY'
|
||||
let tokens = window.sessionStorage.getItem('token');
|
||||
//获取菜单 分页列表
|
||||
export function logPageList(data) {
|
||||
return request({
|
||||
url: '/portal/v1/systemlog/listPage',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
109
demo-web-ui/src/api/system/menu/index.js
Normal file
@@ -0,0 +1,109 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs'
|
||||
//let tokens = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTm8iOiI2IiwiaXNzIjoiV0JLIiwiZXhwIjoxNjMwMDI3MDA3fQ.9bEgBzFW2g1CUT7s5VXxhNCa10cyU_WTCFeqpQje0iY'
|
||||
|
||||
let tokens = window.sessionStorage.getItem('token');
|
||||
|
||||
//获取菜单 分页列表
|
||||
export function pageList(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysmenu/listAllVoForSource',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 新增保存 菜单信息
|
||||
export function saveMenusInfo(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysmenu/save',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json'}
|
||||
})
|
||||
}
|
||||
|
||||
// 修改保存 菜单信息
|
||||
export function putMenusInfo(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysmenu/update/' + data.sid,
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json'}
|
||||
})
|
||||
}
|
||||
|
||||
//根据sid 删除单个 资源信息
|
||||
export function delMenus(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysmenu/delBySids/' + data.sid,
|
||||
method: 'get',
|
||||
data: qs.stringify(data),
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 修改状态
|
||||
export function IsEnable(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysmenu/updateIsEnable/' + data.sid + '/' + data.isEnable,
|
||||
method: 'POST',
|
||||
/* data: qs.stringify(data),*/
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 获取菜单 不分页列表
|
||||
export function roleList(data) {
|
||||
return request({
|
||||
url: '/system/v1/menus/list',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json'}
|
||||
})
|
||||
}
|
||||
|
||||
//获取菜单 分页列表
|
||||
export function menusPageList(data) {
|
||||
return request({
|
||||
url: '/system/v1/menus/pagelist',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json'}
|
||||
})
|
||||
}
|
||||
|
||||
//获取菜单 树形分页列表
|
||||
export function menusTreelist(data) {
|
||||
return request({
|
||||
url: '/system/v1/menus/treelist',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json'}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//根据sid 获取单个菜单 信息
|
||||
export function getRoleInfo(data) {
|
||||
return request({
|
||||
url: '/system/v1/menus/' + data.sid,
|
||||
method: 'GET',
|
||||
data: qs.stringify(data)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
59
demo-web-ui/src/api/system/mobileterminal/mobileterminal.js
Normal file
@@ -0,0 +1,59 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs'
|
||||
|
||||
// 获取菜单 分页列表
|
||||
export function pageList(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysmobilemenu/list',
|
||||
method: 'get',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 新增插件
|
||||
export function save(data) {
|
||||
return request({
|
||||
url: '/portal/v1/appsubsetversion/save',
|
||||
method: 'get',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新插件
|
||||
export function putMenusInfo(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysmenu/update/' + data.sid,
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: { 'Content-Type': 'application/json' }
|
||||
})
|
||||
}
|
||||
|
||||
// 新增/编辑应用
|
||||
export function saveOrUpdate(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysmobilemenu/saveOrUpdate',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: { 'Content-Type': 'application/json' }
|
||||
})
|
||||
}
|
||||
|
||||
// 初始化应用
|
||||
export function details(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysmobilemenu/details',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 根据sid应用
|
||||
export function deleteMenu(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysmobilemenu/deleteMenu',
|
||||
method: 'DELETE',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
36
demo-web-ui/src/api/system/organization/organization.js
Normal file
@@ -0,0 +1,36 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs'
|
||||
let tokens = window.sessionStorage.getItem('token');
|
||||
class user{
|
||||
verifyList(data){ // 获取列表
|
||||
return request({
|
||||
url: '/system/organization/verifyList',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json'}
|
||||
})
|
||||
}
|
||||
orgRegisterDetails(data){ // 单位注册信息详情
|
||||
return request({
|
||||
url: '/system/organization/organizationRegisterDetails/'+data.organizationSid,
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
verify(data){ // 审核
|
||||
return request({
|
||||
url: '/system/organization/verify',
|
||||
method: 'post',
|
||||
data: qs.stringify(data)
|
||||
})
|
||||
}
|
||||
// 删除机构信息
|
||||
del(data) {
|
||||
return request({
|
||||
url: '/system/organization/delete/'+data.sid,
|
||||
method: 'DELETE',
|
||||
data
|
||||
})
|
||||
}
|
||||
}
|
||||
export default new user()
|
||||
@@ -0,0 +1,20 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 获取菜单 分页列表
|
||||
export function getList(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysuserdefaultorg/getList',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 新增插件
|
||||
export function saveOrUpdate(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysuserdefaultorg/saveOrUpdate',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: { 'Content-Type': 'application/json' }
|
||||
})
|
||||
}
|
||||
87
demo-web-ui/src/api/system/postManage/index.js
Normal file
@@ -0,0 +1,87 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs'
|
||||
//let tokens = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTm8iOiI2IiwiaXNzIjoiV0JLIiwiZXhwIjoxNjMwMTE1MjUwfQ.gtn_mVsbwH6ztl835rWmIY4DxeNmRe_TOt-Q0TdldIE'
|
||||
let tokens = window.sessionStorage.getItem('token');
|
||||
//获取菜单 分页列表
|
||||
export function pageList(data) {
|
||||
return request({
|
||||
url: '/portal/v1/syspost/listPage',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 查询部门列表
|
||||
export function orgList(data){
|
||||
return request({
|
||||
url: '/portal/v1/sysorganization/list',
|
||||
method: 'get',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 新增
|
||||
export function savePost(data){
|
||||
return request({
|
||||
url: '/portal/v1/syspost/save',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 修改
|
||||
export function putOrgroles(data){
|
||||
return request({
|
||||
url: '/portal/v1/syspost/update/' +data.sid,
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 删除
|
||||
export function delOrgroles(data){
|
||||
return request({
|
||||
url: '/portal/v1/syspost/delBySids/' + data.sids,
|
||||
method: 'get',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
export function pullDown(data){
|
||||
return request({
|
||||
url: '/portal/v1/dictcommons/typeValues',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 查询岗位列表
|
||||
export function selectList(data){
|
||||
return request({
|
||||
url: '/portal/v1/syspost/selectList',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 查询所有流程名称
|
||||
export function selectFlowList(){
|
||||
return request({
|
||||
url: '/flowable/v1/flow/selectFlowList',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
83
demo-web-ui/src/api/system/region/region.js
Normal file
@@ -0,0 +1,83 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export default {
|
||||
|
||||
// 分页列表
|
||||
pagerList: function (params) {
|
||||
return request({
|
||||
url: '/portal/v1/regions/pagerList',
|
||||
method: 'post',
|
||||
data: params,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 新增保存
|
||||
save: function (regionDto) {
|
||||
return request({
|
||||
url: '/portal/v1/regions/save',
|
||||
method: 'post',
|
||||
data: regionDto,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// // 根据省sid获取该省的所有市
|
||||
// getCity: function (sid) {
|
||||
// return request({
|
||||
// url: '/portal/v1/regions/getCity',
|
||||
// method: 'get',
|
||||
// params: {
|
||||
// sid
|
||||
// }
|
||||
// })
|
||||
// },
|
||||
//
|
||||
// // 根据市sid获取该省的所有县区
|
||||
// getCounty: function (sid) {
|
||||
// return request({
|
||||
// url: '/portal/v1/regions/getCounty',
|
||||
// method: 'get',
|
||||
// params: {
|
||||
// sid
|
||||
// }
|
||||
// })
|
||||
// },
|
||||
|
||||
// 删除
|
||||
delete: function (sid) {
|
||||
return request({
|
||||
url: '/portal/v1/regions/delete/' + sid,
|
||||
method: 'delete',
|
||||
data: sid
|
||||
})
|
||||
},
|
||||
|
||||
//点击修改回显数据
|
||||
updateEcho: function (sid) {
|
||||
return request({
|
||||
url: '/portal/v1/regions/getOne/' + sid,
|
||||
method: 'post',
|
||||
params: {
|
||||
sid
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 区域修改保存
|
||||
// system/region/update/{sid}
|
||||
update: function (params,sid) {
|
||||
return request({
|
||||
url: '/portal/v1/regions/update/' + sid,
|
||||
method: 'post',
|
||||
data: params,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
178
demo-web-ui/src/api/system/roleAdminister/index.js
Normal file
@@ -0,0 +1,178 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs'
|
||||
//let tokens = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTm8iOiI2IiwiaXNzIjoiV0JLIiwiZXhwIjoxNjI5OTQxNjI1fQ.aOFOz0h7c8YQs-ti2GLpqeWu4AE9mifx_043hLJQf8g'
|
||||
let tokens = window.sessionStorage.getItem('token');
|
||||
// 业务角色 列表
|
||||
export function roleOrgList(data){
|
||||
return request({
|
||||
url: '/portal/v1/sysrole/listPage',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
export function postList(data){
|
||||
return request({
|
||||
url: '/portal/v1/syspost/list',
|
||||
method: 'get',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json'}
|
||||
})
|
||||
}
|
||||
|
||||
// 获取数据字典下拉列表
|
||||
export function typeValues(data) {
|
||||
return request({
|
||||
url: '/portal/v1/dictcommons/typeValues',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 设置是否可用:isEnable:1可用,0不可用
|
||||
export function setRoleEnable(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysrole/setIsEnable/' + data.sid + '/' + data.isEnable,
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* <新增 保存角色>
|
||||
* @orgSid 机构SID
|
||||
* @remarks 备注
|
||||
* @roleName 角色名称
|
||||
* */
|
||||
export function saveOrgroles(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysrole/save',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
/**
|
||||
* <根据SID 修改角色>
|
||||
* @sid 角色SID
|
||||
* @orgSid 机构SID
|
||||
* @remarks 备注
|
||||
* @roleName 角色名称
|
||||
* */
|
||||
export function putOrgroles(data) {
|
||||
return request({
|
||||
url: `/portal/v1/sysrole/update/${data.sid}`,
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* <根据SID 删除角色>
|
||||
* @sid 角色SID
|
||||
* */
|
||||
export function delOrgroles(data) {
|
||||
return request({
|
||||
url: `/portal/v1/sysrole/delBySids/${data.sid}`,
|
||||
method: 'get',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 移动端授权
|
||||
export function getRoleMenuList(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysmobilemenurole/getRoleMenuList',
|
||||
method: 'post',
|
||||
params: { roleSid: data }
|
||||
})
|
||||
}
|
||||
|
||||
// 菜单授权保存
|
||||
export function saveRoleMenuList(data) {
|
||||
return request({
|
||||
url: `/portal/v1/sysmobilemenurole/saveRoleMenuList`,
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 菜单授权
|
||||
export function roleMenuTree(data) {
|
||||
return request({
|
||||
url: `/portal/v1/sysmenu/listAllByRoleSid`,
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 菜单授权保存
|
||||
export function saveorgrolemenus(data) {
|
||||
return request({
|
||||
url: `/portal/v1/sysmenurole/updateRoleAndMenu`,
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 资源授权
|
||||
export function sourceMenuTree(data) {
|
||||
return request({
|
||||
url: `/portal/v1/syssource/listAllByRoleSid`,
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 资源授权保存
|
||||
export function saveSource(data) {
|
||||
return request({
|
||||
url: `/portal/v1/syssourcerole/updateRoleAndSource`,
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 功能授权
|
||||
export function funMenuTree(data) {
|
||||
return request({
|
||||
url: `/portal/v1/sysfunction/getFunctionAuthorization/` + data.roleSid,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
// 功能授权保存
|
||||
export function savefunMenu(data) {
|
||||
return request({
|
||||
url: `/portal/v1/sysrolefunction/updateRoleAndFunction`,
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
31
demo-web-ui/src/api/system/roleAdminister/rolemenus.js
Normal file
@@ -0,0 +1,31 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs'
|
||||
|
||||
/**
|
||||
* < 业务角色授权时菜单列表(拥有的菜单选中)>
|
||||
* @orgTypeKeys 单位性质(类别
|
||||
* @roleSid 业务角色sid
|
||||
* @userType 用户类型只能为1或2
|
||||
* */
|
||||
export function roleMenuTree(data){
|
||||
return request({
|
||||
url: '/system/v1/orgrolemenus/menutree',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json'}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* < 保存角色授权的菜单项 >
|
||||
* @roleMenus[] 角色权限列表 {menuSid 菜单sid} {orgSid 单位sid} {roleSid 角色sid}
|
||||
* @roleSid 业务角色sid
|
||||
* */
|
||||
export function saveorgrolemenus(data){
|
||||
return request({
|
||||
url: '/system/v1/orgrolemenus',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json'}
|
||||
})
|
||||
}
|
||||
21
demo-web-ui/src/api/system/roleMenus/index.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs'
|
||||
|
||||
//角色授权时菜单列表(拥有的菜单选中)
|
||||
export function getrolemenus(data) {
|
||||
return request({
|
||||
url: `/system/v1/rolemenus/${data.roleSid}`,
|
||||
method: 'GET',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
//保存 角色授权时菜单列表
|
||||
export function saverolemenus(data) {
|
||||
return request({
|
||||
url: `/system/v1/rolemenus`,
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json'}
|
||||
})
|
||||
}
|
||||
111
demo-web-ui/src/api/system/sources/index.js
Normal file
@@ -0,0 +1,111 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs'
|
||||
//let tokens = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTm8iOiI2IiwiaXNzIjoiV0JLIiwiZXhwIjoxNjMwMDI3MDA3fQ.9bEgBzFW2g1CUT7s5VXxhNCa10cyU_WTCFeqpQje0iY'
|
||||
let tokens = window.sessionStorage.getItem('token');
|
||||
//获取菜单 分页列表
|
||||
export function pageList(data) {
|
||||
return request({
|
||||
url: '/portal/v1/syssource/listPage',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
//保存 资源信息
|
||||
export function saveSourcesInfo(data) {
|
||||
return request({
|
||||
url: '/portal/v1/syssource/save',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 修改 保存 资源信息
|
||||
export function putSourcesInfo(data) {
|
||||
return request({
|
||||
url: '/portal/v1/syssource/update/' + data.sid,
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
//根据sid 删除单个 资源信息
|
||||
export function delSources(data) {
|
||||
return request({
|
||||
url: '/portal/v1/syssource/delBySids/' + data.sid,
|
||||
method: 'get',
|
||||
data: qs.stringify(data),
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 获取获取资源类别
|
||||
export function getZzylb(data) {
|
||||
return request({
|
||||
url: '/portal/v1/syssource/listAll',
|
||||
method: 'post',
|
||||
headers: {'Content-Type': 'application/json'}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// 获取资源 不分页列表
|
||||
export function sourcesList(data) {
|
||||
return request({
|
||||
url: '/system/v1/sources/list',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json'}
|
||||
})
|
||||
}
|
||||
|
||||
// 获取资源列表 不分页下拉
|
||||
export function getsourceList(data) {
|
||||
return request({
|
||||
url: '/system/v1/sources/sourceList',
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
////获取资源 分页列表
|
||||
//export function sourcesPageList(data) {
|
||||
//return request({
|
||||
// url: '/system/v1/sources/pagelist',
|
||||
// method: 'POST',
|
||||
// data: data,
|
||||
// headers: {'Content-Type': 'application/json'}
|
||||
//})
|
||||
//}
|
||||
|
||||
|
||||
|
||||
//根据sid 获取单个 资源信息
|
||||
export function getSourcesInfo(data) {
|
||||
return request({
|
||||
url: '/system/v1/sources/' + data.sid,
|
||||
method: 'GET',
|
||||
data: qs.stringify(data)
|
||||
})
|
||||
}
|
||||
|
||||
84
demo-web-ui/src/api/system/user/Auser.js
Normal file
@@ -0,0 +1,84 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs'
|
||||
|
||||
export function verifyList(data){ // 用户列表
|
||||
return request({
|
||||
url: '/system/user/verifyList',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json'}
|
||||
})
|
||||
}
|
||||
// admin用户列表
|
||||
export function userListByAdmin(data){
|
||||
return request({
|
||||
url: '/system/user/userListByAdmin',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json'}
|
||||
})
|
||||
}
|
||||
|
||||
// 设置角色
|
||||
export function psotUserRole(data){
|
||||
return request({
|
||||
url: '/system/v1/userrole',
|
||||
method: 'post',
|
||||
data: qs.stringify(data)
|
||||
})
|
||||
}
|
||||
|
||||
// 用户初始化密码
|
||||
export function initPwd(data){
|
||||
return request({
|
||||
url: 'system/user/initPwd/'+data.sid,
|
||||
method: 'POST',
|
||||
data: qs.stringify(data)
|
||||
})
|
||||
}
|
||||
|
||||
// 用户删除接口
|
||||
export function delUser(data){
|
||||
return request({
|
||||
url: '/system/user/delete/'+data.sid,
|
||||
method: 'DELETE',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 初始化设置角色
|
||||
export function initUserRole(data){
|
||||
return request({
|
||||
url: '/system/v1/userroles/initUserRole/'+ data.userSid,
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 保存角色
|
||||
export function saveUserRole(data){
|
||||
return request({
|
||||
url: '/system/v1/userroles',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json'}
|
||||
})
|
||||
}
|
||||
|
||||
// 用户信息
|
||||
export function getUserINfo(data){
|
||||
return request({
|
||||
url: '/system/user/userRegisterDetails',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 单位信息
|
||||
export function getOrgINfo(data){
|
||||
return request({
|
||||
url: '/system/organization/organizationRegisterDetails/'+ data.organizationSid,
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
43
demo-web-ui/src/api/system/user/login.js
Normal file
@@ -0,0 +1,43 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs'
|
||||
|
||||
|
||||
//获取菜单 分页列表
|
||||
export function login1(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysuser/login',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
// 'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class user {
|
||||
login(data) { // 登录
|
||||
return request({
|
||||
url: '/portal/v1/sysuser/login',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
logout() { // 退出
|
||||
return request({
|
||||
url: '/vue-admin-template/user/logout',
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
updatePassword(data) { // 退出修改密码
|
||||
return request({
|
||||
url: '/system/user/updatePassword',
|
||||
method: 'post',
|
||||
data: qs.stringify(data)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
43
demo-web-ui/src/api/system/user/user.js
Normal file
@@ -0,0 +1,43 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs'
|
||||
class user{
|
||||
verifyList(data){ // 请求审核列表
|
||||
return request({
|
||||
url: '/system/user/verifyList',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json'}
|
||||
})
|
||||
}
|
||||
userRegisterDetails(data){ // 获取审核内容
|
||||
console.log(data)
|
||||
return request({
|
||||
url: '/system/user/userRegisterDetails',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
verify(data){ // 审核通过不通过
|
||||
return request({
|
||||
url: '/system/user/verify',
|
||||
method: 'post',
|
||||
data: qs.stringify(data)
|
||||
})
|
||||
}
|
||||
userDelete(data){ // 删除
|
||||
return request({
|
||||
url: '/system/user/delete/{sid}',
|
||||
method: 'delete',
|
||||
data: qs.stringify(data)
|
||||
})
|
||||
}
|
||||
userNameDelete(data){ // 删除个人注册审核
|
||||
return request({
|
||||
url: '/system/staffApply/deleteByUserName',
|
||||
method: 'delete',
|
||||
data: qs.stringify(data)
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
export default new user()
|
||||
32
demo-web-ui/src/api/system/userAdminister/client.js
Normal file
@@ -0,0 +1,32 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs'
|
||||
|
||||
// 委托人分页列表
|
||||
export function clientList(data){
|
||||
return request({
|
||||
url: '/jlcyry/v1/clientalterrecords/pagerList',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json'}
|
||||
})
|
||||
}
|
||||
|
||||
// 变更选择委托人列表
|
||||
export function setclientList(data){
|
||||
return request({
|
||||
url: '/jlcyry/v1/clientalterrecords/staffClientList',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json'}
|
||||
})
|
||||
}
|
||||
|
||||
// 变更为被委托人
|
||||
export function doClientAlter(data){
|
||||
return request({
|
||||
url: '/jlcyry/v1/clientalterrecords/doClientAlter',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json'}
|
||||
})
|
||||
}
|
||||
69
demo-web-ui/src/api/system/userAdminister/index.js
Normal file
@@ -0,0 +1,69 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs'
|
||||
let tokens = window.sessionStorage.getItem('token');
|
||||
// 单位用户列表
|
||||
export function orgUserList(data){
|
||||
return request({
|
||||
url: '/system/user/userListByOrg',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json'}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 设置角色
|
||||
export function psotUserRole(data){
|
||||
return request({
|
||||
url: '/system/v1/userrole',
|
||||
method: 'post',
|
||||
data: qs.stringify(data)
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取角色列表
|
||||
* orgSid 用户SID
|
||||
* roleName 角色名称
|
||||
* */
|
||||
export function orgrolesList(data){
|
||||
return request({
|
||||
url: '/system/v1/orgroles/list',
|
||||
method: 'post',
|
||||
headers: {'Content-Type': 'application/json'},
|
||||
data
|
||||
})
|
||||
}
|
||||
/**
|
||||
* 保存 设置角色 /system/v1/orguserroles
|
||||
* */
|
||||
export function saveOrgRole(data){
|
||||
return request({
|
||||
url: '/system/v1/orguserroles',
|
||||
method: 'post',
|
||||
headers: {'Content-Type': 'application/json'},
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 部门机构列表 /system/v1/departments/departmentOrgList/{organizationSid}
|
||||
* */
|
||||
export function getOrgList(organizationSid){
|
||||
return request({
|
||||
url: '/system/v1/departments/departmentOrgList/' + organizationSid,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
/**
|
||||
* 保存 设置部门 /system/v1/orguserroles
|
||||
* */
|
||||
export function saveDepartment(data){
|
||||
return request({
|
||||
url: '/system/v1/departmentStaffs/setUpDepartment',
|
||||
method: 'post',
|
||||
headers: {'Content-Type': 'application/json'},
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
150
demo-web-ui/src/api/system/userManage/index.js
Normal file
@@ -0,0 +1,150 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs'
|
||||
// 用户列表
|
||||
//let tokens = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTm8iOiI2IiwiaXNzIjoiV0JLIiwiZXhwIjoxNjI5OTQxNjI1fQ.aOFOz0h7c8YQs-ti2GLpqeWu4AE9mifx_043hLJQf8g'
|
||||
let tokens = window.sessionStorage.getItem('token');
|
||||
export function userList(data){
|
||||
return request({
|
||||
url: '/portal/v1/sysuser/listPage',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 新增
|
||||
export function userAdd(data){
|
||||
return request({
|
||||
url: '/portal/v1/sysuser/save',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 更新
|
||||
export function userUpdata(data){
|
||||
return request({
|
||||
url: '/portal/v1/sysuser/update/' +data.sid,
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 删除
|
||||
export function delUser(data){
|
||||
return request({
|
||||
url: '/portal/v1/sysuser/delBySid/' +data.sid,
|
||||
method: 'get',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 初始化密码
|
||||
export function initPwd(data){
|
||||
return request({
|
||||
url: '/portal/v1/sysuser/initPwd/' +data.sid,
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 根据sid查询一条信息
|
||||
export function userSingle(data){
|
||||
return request({
|
||||
url: '/portal/v1/sysuser/fetchBySid/' +data.sid,
|
||||
method: 'get',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 单条用户的角色列表
|
||||
export function setRole(data){
|
||||
return request({
|
||||
url: '/portal/v1/sysrole/listAllByUserSid/' +data.sid,
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 角色列表
|
||||
export function saveOrgRole(data){
|
||||
return request({
|
||||
url: '/portal/v1/sysuserrole/update',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 查询角色列表
|
||||
export function roleList(data){
|
||||
return request({
|
||||
url: '/portal/v1/sysrole/listAll',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 查询部门列表
|
||||
export function orgList(data){
|
||||
return request({
|
||||
url: '/portal/v1/sysorganization/list',
|
||||
method: 'get',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
// 查询岗位列表
|
||||
export function postList(data){
|
||||
return request({
|
||||
url: '/portal/v1/syspost/fetchByOrgSid/'+data.sid,
|
||||
method: 'get',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 获取验证码
|
||||
export function getCode(data){
|
||||
return request({
|
||||
url: '/portal/v1/sysuser/sendMessageCode/'+data.phone,
|
||||
method: 'get',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 设置是否可用:isEnable:1可用,0不可用
|
||||
export function setRoleEnable(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysuser/setIsEnable/' + data.sid + '/' + data.isEnable,
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
}
|
||||
56
demo-web-ui/src/api/user.js
Normal file
@@ -0,0 +1,56 @@
|
||||
import request from '@/utils/request'
|
||||
import qs from 'qs'
|
||||
//登录
|
||||
export function login(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysuser/login',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json'}
|
||||
})
|
||||
}
|
||||
// 用户注册
|
||||
export function registUser(data) {
|
||||
return request({
|
||||
url: '/system/user/save',
|
||||
method: 'post',
|
||||
data,
|
||||
headers:{'Content-Type':'application/x-www-form-urlencoded;'}
|
||||
})
|
||||
}
|
||||
// 获取手机验证码
|
||||
export function getVerificationCode(data) {
|
||||
return request({
|
||||
url: '/system/user/getVerificationCode',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 获取登录验证码
|
||||
export function imgCode() {
|
||||
return request({
|
||||
url: '/system/api/defaultBlendCode?temm=' + new Date().getTime(),
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取用信息
|
||||
export function getInfo(token) {
|
||||
return request({
|
||||
url: '/system/user/loginDetails',
|
||||
method: 'post',
|
||||
})
|
||||
}
|
||||
|
||||
// 根据token值获取登录后的用户信息
|
||||
export function loginDetails(data) {
|
||||
return request({
|
||||
url: '/portal/v1/sysuser/loginDetails',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
}
|
||||
87
demo-web-ui/src/api/workflow/finished.js
Normal file
@@ -0,0 +1,87 @@
|
||||
import request from '@/utils/request'
|
||||
import da from "element-ui/src/locale/lang/da";
|
||||
|
||||
const tokens = window.sessionStorage.getItem('token')
|
||||
|
||||
// 查询已办任务列表
|
||||
export function finishedList(query) {
|
||||
return request({
|
||||
url: '/flowable/task/finishedList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 任务流转记录
|
||||
export function flowRecord(query) {
|
||||
return request({
|
||||
url: '/portal/v1/flow/task/flowRecordAndComment/' + query.procInsId + '/' + query.deployId,
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 撤回任务
|
||||
export function revokeProcess(data) {
|
||||
const userSid = data.userSid
|
||||
return request({
|
||||
url: '/portal/v1/flow/task/revokeProcess/' + userSid,
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 部署流程实例
|
||||
export function deployStart(deployId) {
|
||||
return request({
|
||||
url: '/flowable/process/startFlow/' + deployId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询流程定义详细
|
||||
export function getDeployment(id) {
|
||||
return request({
|
||||
url: '/system/deployment/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增流程定义
|
||||
export function addDeployment(data) {
|
||||
return request({
|
||||
url: '/system/deployment',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改流程定义
|
||||
export function updateDeployment(data) {
|
||||
return request({
|
||||
url: '/system/deployment',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除流程定义
|
||||
export function delDeployment(id) {
|
||||
return request({
|
||||
url: '/system/deployment/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出流程定义
|
||||
export function exportDeployment(query) {
|
||||
return request({
|
||||
url: '/system/deployment/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
92
demo-web-ui/src/api/workflow/flow.js
Normal file
@@ -0,0 +1,92 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
const tokens = window.sessionStorage.getItem('token')
|
||||
|
||||
export default {
|
||||
// 查询待办任务列表
|
||||
getNextNodes: function (query) {
|
||||
return request({
|
||||
url: '/portal/v1/flow/getNextTasks/'+query.taskId,
|
||||
method: 'post',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
},
|
||||
businessStart: function(params) {
|
||||
const procDefId = params.procDefId
|
||||
const userSid = params.userSid
|
||||
const variables = params.variables
|
||||
return request({
|
||||
url: '/portal/v1/flow/businessStart/' + procDefId + '/' + userSid,
|
||||
method: 'POST',
|
||||
data: variables,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
},
|
||||
processPagerList: function(params) {
|
||||
const pageNum = params.current
|
||||
const pageSize = params.size
|
||||
return request({
|
||||
url: '/portal/v1/flow/processPagerList',
|
||||
method: 'POST',
|
||||
data: {
|
||||
pageNum: pageNum,
|
||||
pageSize: pageSize
|
||||
}
|
||||
})
|
||||
},
|
||||
myProcessList: function(params) {
|
||||
let userSid=params.params.userSid;
|
||||
return request({
|
||||
url: '/portal/v1/flow/myprocess/'+userSid,
|
||||
method: 'POST',
|
||||
data: params,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
},
|
||||
todoTaskList: function(params) {
|
||||
let userSid=params.params.userSid;
|
||||
return request({
|
||||
url: '/portal/v1/flow/todoTaskList/'+userSid,
|
||||
method: 'POST',
|
||||
data: params,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
},
|
||||
doneTaskList: function(params) {
|
||||
let userSid=params.params.userSid;
|
||||
return request({
|
||||
url: '/portal/v1/flow/doneTaskList/'+userSid,
|
||||
method: 'POST',
|
||||
data: params,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
// 任务流转记录
|
||||
export function complete(data) {
|
||||
return request({
|
||||
url: '/portal/v1/flow/complete',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'token': tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
64
demo-web-ui/src/api/workflow/form.js
Normal file
@@ -0,0 +1,64 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询流程表单列表
|
||||
export function listForm(query) {
|
||||
return request({
|
||||
url: '/v1/flowable/form/list',
|
||||
method: 'post',
|
||||
data: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询流程表单详细
|
||||
export function getForm(formId) {
|
||||
return request({
|
||||
url: '/v1/flowable/form/' + formId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增流程表单
|
||||
export function addForm(data) {
|
||||
return request({
|
||||
url: '/v1/flowable/form/add',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':1
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 修改流程表单
|
||||
export function updateForm(data) {
|
||||
return request({
|
||||
url: '/v1/flowable/form',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 挂载表单
|
||||
export function addDeployForm(data) {
|
||||
return request({
|
||||
url: '/v1/flowable/form/addDeployForm',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除流程表单
|
||||
export function delForm(formId) {
|
||||
return request({
|
||||
url: '/v1/flowable/form/' + formId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出流程表单
|
||||
export function exportForm(query) {
|
||||
return request({
|
||||
url: '/v1/flowable/form/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
29
demo-web-ui/src/api/workflow/info.js
Normal file
@@ -0,0 +1,29 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 代办、已办基础信息页面
|
||||
// 详情编辑回显(订金收取) 已改
|
||||
export function fetchSid(data) {
|
||||
return request({
|
||||
url: '/buscenter/v1/busmaindeposit/selectDepositBySid/' + data,
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 详细编辑回显(预定车辆) 已改
|
||||
export function selectSid(data) {
|
||||
return request({
|
||||
url: '/buscenter/v1/busmaindeposit/selectDepositVehBySid/' + data,
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
//合同管理编辑回显
|
||||
export function getOneContract(data) {
|
||||
return request({
|
||||
url: "/base/v1/commoncontract/fetchSid/" + data,
|
||||
method: "get"
|
||||
});
|
||||
}
|
||||
|
||||
101
demo-web-ui/src/api/workflow/process.js
Normal file
@@ -0,0 +1,101 @@
|
||||
import request from '@/utils/request'
|
||||
import da from "element-ui/src/locale/lang/da";
|
||||
|
||||
// 我的发起的流程
|
||||
export function myProcessList(data) {
|
||||
return request({
|
||||
url: '/v1/flowable/task/myprocess',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 完成任务
|
||||
export function complete(data) {
|
||||
return request({
|
||||
url: '/flowable/task/complete',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 取消申请
|
||||
export function stopProcess(data) {
|
||||
return request({
|
||||
url: '/portal/v1/flow/task/stopProcess',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 驳回任务
|
||||
export function rejectTask(data) {
|
||||
return request({
|
||||
url: '/v1/flowable/task/reject',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 可退回任务列表
|
||||
export function returnList(data) {
|
||||
return request({
|
||||
url: '/v1/flowable/task/returnList',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 部署流程实例
|
||||
export function deployStart(deployId) {
|
||||
return request({
|
||||
url: '/flowable/process/startFlow/' + deployId,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
// 查询流程定义详细
|
||||
export function getDeployment(id) {
|
||||
return request({
|
||||
url: '/system/deployment/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增流程定义
|
||||
export function addDeployment(data) {
|
||||
return request({
|
||||
url: '/system/deployment',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改流程定义
|
||||
export function updateDeployment(data) {
|
||||
return request({
|
||||
url: '/system/deployment',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除流程定义
|
||||
export function delDeployment(id) {
|
||||
return request({
|
||||
url: '/portal/v1/flow/deleteProcess/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出流程定义
|
||||
export function exportDeployment(query) {
|
||||
return request({
|
||||
url: '/system/deployment/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
129
demo-web-ui/src/api/workflow/todo.js
Normal file
@@ -0,0 +1,129 @@
|
||||
import request from '@/utils/request'
|
||||
import da from "element-ui/src/locale/lang/da";
|
||||
|
||||
// 查询待办任务列表
|
||||
export function todoList(query) {
|
||||
return request({
|
||||
url: '/flowable/task/todoList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 完成任务
|
||||
export function complete(data) {
|
||||
return request({
|
||||
url: '/flowable/task/complete',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 委派任务
|
||||
export function delegate(data) {
|
||||
return request({
|
||||
url: '/flowable/task/delegate',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 退回任务
|
||||
export function returnTask(data) {
|
||||
return request({
|
||||
url: '/flowable/task/return',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 驳回任务
|
||||
export function rejectTask(data) {
|
||||
return request({
|
||||
url: '/portal/v1/flow/task/reject',
|
||||
method: 'post',
|
||||
data: data,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 可退回任务列表
|
||||
export function returnList(data) {
|
||||
return request({
|
||||
url: '/flowable/task/returnList',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 下一节点
|
||||
export function getNextFlowNode(data) {
|
||||
return request({
|
||||
url: '/flowable/task/nextFlowNode',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 部署流程实例
|
||||
export function deployStart(deployId) {
|
||||
return request({
|
||||
url: '/flowable/process/startFlow/' + deployId,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
// 查询流程定义详细
|
||||
export function getDeployment(id) {
|
||||
return request({
|
||||
url: '/system/deployment/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增流程定义
|
||||
export function addDeployment(data) {
|
||||
return request({
|
||||
url: '/system/deployment',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改流程定义
|
||||
export function updateDeployment(data) {
|
||||
return request({
|
||||
url: '/system/deployment',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除流程定义
|
||||
export function delDeployment(id) {
|
||||
return request({
|
||||
url: '/system/deployment/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出流程定义
|
||||
export function exportDeployment(query) {
|
||||
return request({
|
||||
url: '/system/deployment/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查看总代办列表
|
||||
export function taskList (data) {
|
||||
return request({
|
||||
url: '/portal/v1/flow/todoAllTaskList/' + data,
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
BIN
demo-web-ui/src/assets/11-10测试.pdf
Normal file
BIN
demo-web-ui/src/assets/404_images/404.png
Normal file
|
After Width: | Height: | Size: 96 KiB |
BIN
demo-web-ui/src/assets/404_images/404_cloud.png
Normal file
|
After Width: | Height: | Size: 4.7 KiB |
BIN
demo-web-ui/src/assets/home/anrui.png
Normal file
|
After Width: | Height: | Size: 97 KiB |
BIN
demo-web-ui/src/assets/home/bIcon1.png
Normal file
|
After Width: | Height: | Size: 5.5 KiB |
BIN
demo-web-ui/src/assets/home/bIcon2.png
Normal file
|
After Width: | Height: | Size: 8.4 KiB |
BIN
demo-web-ui/src/assets/home/bIcon3.png
Normal file
|
After Width: | Height: | Size: 7.4 KiB |
BIN
demo-web-ui/src/assets/home/bIcon4.png
Normal file
|
After Width: | Height: | Size: 5.7 KiB |
BIN
demo-web-ui/src/assets/home/bIcon5.png
Normal file
|
After Width: | Height: | Size: 8.4 KiB |
BIN
demo-web-ui/src/assets/home/bIcon6.png
Normal file
|
After Width: | Height: | Size: 8.2 KiB |
BIN
demo-web-ui/src/assets/home/bIcon7.png
Normal file
|
After Width: | Height: | Size: 3.8 KiB |
BIN
demo-web-ui/src/assets/home/bIcon8.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
demo-web-ui/src/assets/home/bottomBg.png
Normal file
|
After Width: | Height: | Size: 43 KiB |
BIN
demo-web-ui/src/assets/home/line.png
Normal file
|
After Width: | Height: | Size: 91 B |
BIN
demo-web-ui/src/assets/home/ltBg.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
demo-web-ui/src/assets/home/ltIcon1.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
demo-web-ui/src/assets/home/ltIcon2.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
demo-web-ui/src/assets/home/ltIcon3.png
Normal file
|
After Width: | Height: | Size: 4.3 KiB |
BIN
demo-web-ui/src/assets/home/ltIcon4.png
Normal file
|
After Width: | Height: | Size: 4.1 KiB |
BIN
demo-web-ui/src/assets/home/notice.png
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
demo-web-ui/src/assets/home/rtBg.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
demo-web-ui/src/assets/home/scm.png
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
BIN
demo-web-ui/src/assets/images/arrow.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
demo-web-ui/src/assets/images/bdrysh.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
demo-web-ui/src/assets/images/btn.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
demo-web-ui/src/assets/images/cdgl.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
demo-web-ui/src/assets/images/cxjl.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
demo-web-ui/src/assets/images/czsc.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
demo-web-ui/src/assets/images/dwrysh.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
demo-web-ui/src/assets/images/dwxxgl.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
demo-web-ui/src/assets/images/dy.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
demo-web-ui/src/assets/images/head.png
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
demo-web-ui/src/assets/images/info.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
demo-web-ui/src/assets/images/jcxx.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
demo-web-ui/src/assets/images/jggl.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
demo-web-ui/src/assets/images/jlsc.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
demo-web-ui/src/assets/images/jsgl.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
demo-web-ui/src/assets/images/jsxd.png
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
demo-web-ui/src/assets/images/login/OAKQ.png
Normal file
|
After Width: | Height: | Size: 4.9 KiB |
BIN
demo-web-ui/src/assets/images/login/bg2-img.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
demo-web-ui/src/assets/images/login/bgimg.jpg
Normal file
|
After Width: | Height: | Size: 206 KiB |
BIN
demo-web-ui/src/assets/images/login/nose.png
Normal file
|
After Width: | Height: | Size: 640 B |
BIN
demo-web-ui/src/assets/images/login/pasw.png
Normal file
|
After Width: | Height: | Size: 4.9 KiB |
BIN
demo-web-ui/src/assets/images/login/user.png
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
BIN
demo-web-ui/src/assets/images/lzrysh.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
demo-web-ui/src/assets/images/org/headerimg.png
Normal file
|
After Width: | Height: | Size: 9.9 KiB |
BIN
demo-web-ui/src/assets/images/org/jian.png
Normal file
|
After Width: | Height: | Size: 57 KiB |
BIN
demo-web-ui/src/assets/images/org/sfz.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
demo-web-ui/src/assets/images/org/sqs.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
demo-web-ui/src/assets/images/org/success.png
Normal file
|
After Width: | Height: | Size: 4.1 KiB |
BIN
demo-web-ui/src/assets/images/org/yyzz.png
Normal file
|
After Width: | Height: | Size: 30 KiB |