diff --git a/ruoyi-ui/src/api/demo/demo.js b/ruoyi-ui/src/api/demo/demo.js deleted file mode 100644 index 04d40256..00000000 --- a/ruoyi-ui/src/api/demo/demo.js +++ /dev/null @@ -1,54 +0,0 @@ -import request from '@/utils/request' - -// 查询测试单表列表 -export function listDemo(query) { - return request({ - url: '/demo/demo/list', - method: 'get', - params: query - }) -} - -// 自定义分页接口 -export function pageDemo(query) { - return request({ - url: '/demo/demo/page', - method: 'get', - params: query - }) -} - -// 查询测试单表详细 -export function getDemo(id) { - return request({ - url: '/demo/demo/' + id, - method: 'get' - }) -} - -// 新增测试单表 -export function addDemo(data) { - return request({ - url: '/demo/demo', - method: 'post', - data: data - }) -} - -// 修改测试单表 -export function updateDemo(data) { - return request({ - url: '/demo/demo', - method: 'put', - data: data - }) -} - -// 删除测试单表 -export function delDemo(id) { - return request({ - url: '/demo/demo/' + id, - method: 'delete' - }) -} - diff --git a/ruoyi-ui/src/api/demo/leave.js b/ruoyi-ui/src/api/demo/leave.js deleted file mode 100644 index aba149c3..00000000 --- a/ruoyi-ui/src/api/demo/leave.js +++ /dev/null @@ -1,44 +0,0 @@ -import request from '@/utils/request' - -// 查询请假业务列表 -export function listLeave(query) { - return request({ - url: '/demo/leave/list', - method: 'get', - params: query - }) -} - -// 查询请假业务详细 -export function getLeave(id) { - return request({ - url: '/demo/leave/' + id, - method: 'get' - }) -} - -// 新增请假业务 -export function addLeave(data) { - return request({ - url: '/demo/leave', - method: 'post', - data: data - }) -} - -// 修改请假业务 -export function updateLeave(data) { - return request({ - url: '/demo/leave', - method: 'put', - data: data - }) -} - -// 删除请假业务 -export function delLeave(id) { - return request({ - url: '/demo/leave/' + id, - method: 'delete' - }) -} diff --git a/ruoyi-ui/src/api/demo/tree.js b/ruoyi-ui/src/api/demo/tree.js deleted file mode 100644 index 4c7ebc07..00000000 --- a/ruoyi-ui/src/api/demo/tree.js +++ /dev/null @@ -1,44 +0,0 @@ -import request from '@/utils/request' - -// 查询测试树表列表 -export function listTree(query) { - return request({ - url: '/demo/tree/list', - method: 'get', - params: query - }) -} - -// 查询测试树表详细 -export function getTree(id) { - return request({ - url: '/demo/tree/' + id, - method: 'get' - }) -} - -// 新增测试树表 -export function addTree(data) { - return request({ - url: '/demo/tree', - method: 'post', - data: data - }) -} - -// 修改测试树表 -export function updateTree(data) { - return request({ - url: '/demo/tree', - method: 'put', - data: data - }) -} - -// 删除测试树表 -export function delTree(id) { - return request({ - url: '/demo/tree/' + id, - method: 'delete' - }) -} diff --git a/ruoyi-ui/src/api/system/dept.js b/ruoyi-ui/src/api/system/dept.js deleted file mode 100644 index 9ca69663..00000000 --- a/ruoyi-ui/src/api/system/dept.js +++ /dev/null @@ -1,52 +0,0 @@ -import request from '@/utils/request' - -// 查询部门列表 -export function listDept(query) { - return request({ - url: '/system/dept/list', - method: 'get', - params: query - }) -} - -// 查询部门列表(排除节点) -export function listDeptExcludeChild(deptId) { - return request({ - url: '/system/dept/list/exclude/' + deptId, - method: 'get' - }) -} - -// 查询部门详细 -export function getDept(deptId) { - return request({ - url: '/system/dept/' + deptId, - method: 'get' - }) -} - -// 新增部门 -export function addDept(data) { - return request({ - url: '/system/dept', - method: 'post', - data: data - }) -} - -// 修改部门 -export function updateDept(data) { - return request({ - url: '/system/dept', - method: 'put', - data: data - }) -} - -// 删除部门 -export function delDept(deptId) { - return request({ - url: '/system/dept/' + deptId, - method: 'delete' - }) -} \ No newline at end of file diff --git a/ruoyi-ui/src/api/system/org.js b/ruoyi-ui/src/api/system/org.js new file mode 100644 index 00000000..5d46f57b --- /dev/null +++ b/ruoyi-ui/src/api/system/org.js @@ -0,0 +1,52 @@ +import request from '@/utils/request' + +// 查询机构列表 +export function listSysOrg(query) { + return request({ + url: '/system/org/list', + method: 'get', + params: query + }) +} + +// 查询机构列表(排除节点) +export function listSysOrgExcludeChild(orgId) { + return request({ + url: '/system/org/list/exclude/' + orgId, + method: 'get' + }) +} + +// 查询机构详细 +export function getSysOrg(orgId) { + return request({ + url: '/system/org/' + orgId, + method: 'get' + }) +} + +// 新增机构 +export function addSysOrg(data) { + return request({ + url: '/system/org', + method: 'post', + data: data + }) +} + +// 修改机构 +export function updateSysOrg(data) { + return request({ + url: '/system/org', + method: 'put', + data: data + }) +} + +// 删除机构 +export function delSysOrg(orgId) { + return request({ + url: '/system/org/' + orgId, + method: 'delete' + }) +} diff --git a/ruoyi-ui/src/api/system/role.js b/ruoyi-ui/src/api/system/role.js index 528cd186..44bb5bd3 100644 --- a/ruoyi-ui/src/api/system/role.js +++ b/ruoyi-ui/src/api/system/role.js @@ -1,119 +1,119 @@ -import request from '@/utils/request' - -// 查询角色列表 -export function listRole(query) { - return request({ - url: '/system/role/list', - method: 'get', - params: query - }) -} - -// 查询角色详细 -export function getRole(roleId) { - return request({ - url: '/system/role/' + roleId, - method: 'get' - }) -} - -// 新增角色 -export function addRole(data) { - return request({ - url: '/system/role', - method: 'post', - data: data - }) -} - -// 修改角色 -export function updateRole(data) { - return request({ - url: '/system/role', - method: 'put', - data: data - }) -} - -// 角色数据权限 -export function dataScope(data) { - return request({ - url: '/system/role/dataScope', - method: 'put', - data: data - }) -} - -// 角色状态修改 -export function changeRoleStatus(roleId, status) { - const data = { - roleId, - status - } - return request({ - url: '/system/role/changeStatus', - method: 'put', - data: data - }) -} - -// 删除角色 -export function delRole(roleId) { - return request({ - url: '/system/role/' + roleId, - method: 'delete' - }) -} - -// 查询角色已授权用户列表 -export function allocatedUserList(query) { - return request({ - url: '/system/role/authUser/allocatedList', - method: 'get', - params: query - }) -} - -// 查询角色未授权用户列表 -export function unallocatedUserList(query) { - return request({ - url: '/system/role/authUser/unallocatedList', - method: 'get', - params: query - }) -} - -// 取消用户授权角色 -export function authUserCancel(data) { - return request({ - url: '/system/role/authUser/cancel', - method: 'put', - data: data - }) -} - -// 批量取消用户授权角色 -export function authUserCancelAll(data) { - return request({ - url: '/system/role/authUser/cancelAll', - method: 'put', - params: data - }) -} - -// 授权用户选择 -export function authUserSelectAll(data) { - return request({ - url: '/system/role/authUser/selectAll', - method: 'put', - params: data - }) -} - -// 根据角色ID查询部门树结构 -export function deptTreeSelect(roleId) { - return request({ - url: '/system/role/deptTree/' + roleId, - method: 'get' - }) -} +import request from '@/utils/request' + +// 查询角色列表 +export function listRole(query) { + return request({ + url: '/system/role/list', + method: 'get', + params: query + }) +} + +// 查询角色详细 +export function getRole(roleId) { + return request({ + url: '/system/role/' + roleId, + method: 'get' + }) +} + +// 新增角色 +export function addRole(data) { + return request({ + url: '/system/role', + method: 'post', + data: data + }) +} + +// 修改角色 +export function updateRole(data) { + return request({ + url: '/system/role', + method: 'put', + data: data + }) +} + +// 角色数据权限 +export function dataScope(data) { + return request({ + url: '/system/role/dataScope', + method: 'put', + data: data + }) +} + +// 角色状态修改 +export function changeRoleStatus(roleId, status) { + const data = { + roleId, + status + } + return request({ + url: '/system/role/changeStatus', + method: 'put', + data: data + }) +} + +// 删除角色 +export function delRole(roleId) { + return request({ + url: '/system/role/' + roleId, + method: 'delete' + }) +} + +// 查询角色已授权用户列表 +export function allocatedUserList(query) { + return request({ + url: '/system/role/authUser/allocatedList', + method: 'get', + params: query + }) +} + +// 查询角色未授权用户列表 +export function unallocatedUserList(query) { + return request({ + url: '/system/role/authUser/unallocatedList', + method: 'get', + params: query + }) +} + +// 取消用户授权角色 +export function authUserCancel(data) { + return request({ + url: '/system/role/authUser/cancel', + method: 'put', + data: data + }) +} + +// 批量取消用户授权角色 +export function authUserCancelAll(data) { + return request({ + url: '/system/role/authUser/cancelAll', + method: 'put', + params: data + }) +} + +// 授权用户选择 +export function authUserSelectAll(data) { + return request({ + url: '/system/role/authUser/selectAll', + method: 'put', + params: data + }) +} + +// 根据角色ID查询机构树结构 +export function sysOrgTreeSelect(roleId) { + return request({ + url: '/system/role/orgTree/' + roleId, + method: 'get' + }) +} diff --git a/ruoyi-ui/src/api/system/user.js b/ruoyi-ui/src/api/system/user.js index f2f76ef9..e6495c4e 100644 --- a/ruoyi-ui/src/api/system/user.js +++ b/ruoyi-ui/src/api/system/user.js @@ -126,10 +126,10 @@ export function updateAuthRole(data) { }) } -// 查询部门下拉树结构 -export function deptTreeSelect() { +// 查询机构下拉树结构 +export function sysOrgTreeSelect() { return request({ - url: '/system/user/deptTree', + url: '/system/user/orgTree', method: 'get' }) } diff --git a/ruoyi-ui/src/api/workflow/actNodeAssginee.js b/ruoyi-ui/src/api/workflow/actNodeAssginee.js deleted file mode 100644 index 304bdec2..00000000 --- a/ruoyi-ui/src/api/workflow/actNodeAssginee.js +++ /dev/null @@ -1,31 +0,0 @@ -import request from "@/utils/request"; - -export function add(data) { - return request({ - url: '/workflow/actNodeAssignee', - method: 'post', - data: data - }) -} - -export function del(id) { - return request({ - url: '/workflow/actNodeAssignee/'+id, - method: 'delete' - }) -} - -export function getInfoSetting(processDefinitionId,nodeId) { - return request({ - url: `/workflow/actNodeAssignee/${processDefinitionId}/${nodeId}`, - method: 'get' - }) -} - -export function copy(processDefinitionId,key) { - return request({ - url: `/workflow/actNodeAssignee/copy/${processDefinitionId}/${key}`, - method: 'post' - }) -} - diff --git a/ruoyi-ui/src/api/workflow/businessForm.js b/ruoyi-ui/src/api/workflow/businessForm.js deleted file mode 100644 index 071b0b5b..00000000 --- a/ruoyi-ui/src/api/workflow/businessForm.js +++ /dev/null @@ -1,44 +0,0 @@ -import request from '@/utils/request' - -// 查询业务表单列表 -export function listBusinessForm(query) { - return request({ - url: '/workflow/businessForm/list', - method: 'get', - params: query - }) -} - -// 查询业务表单详细 -export function getBusinessForm(id) { - return request({ - url: '/workflow/businessForm/' + id, - method: 'get' - }) -} - -// 新增业务表单 -export function addBusinessForm(data) { - return request({ - url: '/workflow/businessForm', - method: 'post', - data: data - }) -} - -// 修改业务表单 -export function updateBusinessForm(data) { - return request({ - url: '/workflow/businessForm', - method: 'put', - data: data - }) -} - -// 删除业务表单 -export function delBusinessForm(id) { - return request({ - url: '/workflow/businessForm/' + id, - method: 'delete' - }) -} diff --git a/ruoyi-ui/src/api/workflow/businessRule.js b/ruoyi-ui/src/api/workflow/businessRule.js deleted file mode 100644 index 4a6a8974..00000000 --- a/ruoyi-ui/src/api/workflow/businessRule.js +++ /dev/null @@ -1,44 +0,0 @@ -import request from '@/utils/request' - -// 查询业务规则列表 -export function listBusinessRule(query) { - return request({ - url: '/workflow/businessRule/list', - method: 'get', - params: query - }) -} - -// 查询业务规则详细 -export function getBusinessRule(id) { - return request({ - url: '/workflow/businessRule/' + id, - method: 'get' - }) -} - -// 新增业务规则 -export function addbusinessRule(data) { - return request({ - url: '/workflow/businessRule', - method: 'post', - data: data - }) -} - -// 修改业务规则 -export function updateBusinessRule(data) { - return request({ - url: '/workflow/businessRule', - method: 'put', - data: data - }) -} - -// 删除业务规则 -export function delBusinessRule(id) { - return request({ - url: '/workflow/businessRule/' + id, - method: 'delete' - }) -} diff --git a/ruoyi-ui/src/api/workflow/definition.js b/ruoyi-ui/src/api/workflow/definition.js deleted file mode 100644 index 8f404a77..00000000 --- a/ruoyi-ui/src/api/workflow/definition.js +++ /dev/null @@ -1,90 +0,0 @@ -import request from "@/utils/request"; -/** - * 分页查询 - * @param {条件} query - * @returns - */ -export function list(query) { - return request({ - url: '/workflow/definition/list', - method: 'get', - params: query - }) -} - -/** - * 分页查询 - * @param {条件} query - * @returns - */ - export function hisList(query) { - return request({ - url: '/workflow/definition/hisList', - method: 'get', - params: query - }) -} - -/** - * - * @param {参数} data - * @returns - */ -export function updateProcDefState(data) { - return request({ - url: '/workflow/definition/updateProcDefState', - method: 'put', - data: data - }) -} - -/** - * 按流程部署id删除 - * @param {流程部署id} deploymentId - * @returns - */ - export function del(deploymentId,definitionId) { - return request({ - url: `/workflow/definition/${deploymentId}/${definitionId}`, - method: 'delete' - }) -} - -/** - * 通过zip或xml部署流程定义 - * @returns - */ -export function deployProcessFile(data) { - return request({ - url: '/workflow/definition/deployByFile', - method: 'post', - data: data - }) -} - -/** - * - * @param {流程定义设置} definitionId - * @returns - */ -export function setting(definitionId) { - return request({ - url: '/workflow/definition/setting/'+definitionId, - method: 'get' - }) -} - -/** - * - * @param {查看xml} definitionId - * @returns - */ -export function getXml(definitionId) { - return request({ - url: '/workflow/definition/getXml/'+definitionId, - method: 'get' - }) -} - - - diff --git a/ruoyi-ui/src/api/workflow/dynamicForm.js b/ruoyi-ui/src/api/workflow/dynamicForm.js deleted file mode 100644 index c95bff15..00000000 --- a/ruoyi-ui/src/api/workflow/dynamicForm.js +++ /dev/null @@ -1,62 +0,0 @@ -import request from '@/utils/request' - -// 查询流程单列表 -export function listDynamicForm(query) { - return request({ - url: '/workflow/dynamicForm/list', - method: 'get', - params: query - }) -} - -// 查询启用流程单列表 -export function listDynamicFormEnable(query) { - return request({ - url: '/workflow/dynamicForm/enableList', - method: 'get', - params: query - }) -} - -// 查询流程单详细 -export function getDynamicForm(id) { - return request({ - url: '/workflow/dynamicForm/' + id, - method: 'get' - }) -} - -// 新增流程单 -export function addDynamicForm(data) { - return request({ - url: '/workflow/dynamicForm', - method: 'post', - data: data - }) -} - -// 修改流程单 -export function updateDynamicForm(data) { - return request({ - url: '/workflow/dynamicForm', - method: 'put', - data: data - }) -} - -// 修改流程单 -export function editForm(data) { - return request({ - url: '/workflow/dynamicForm/editForm', - method: 'put', - data: data - }) -} - -// 删除流程单 -export function delDynamicForm(id) { - return request({ - url: '/workflow/dynamicForm/' + id, - method: 'delete' - }) -} diff --git a/ruoyi-ui/src/api/workflow/message.js b/ruoyi-ui/src/api/workflow/message.js deleted file mode 100644 index 167d1a1d..00000000 --- a/ruoyi-ui/src/api/workflow/message.js +++ /dev/null @@ -1,68 +0,0 @@ -import request from '@/utils/request' - -// 查询消息通知列表 -export function listMessage(query) { - return request({ - url: '/workflow/message/list', - method: 'get', - params: query - }) -} - -// 获取个人站内信 -export function listWaitingMessage() { - return request({ - url: '/workflow/message/waitingMessage', - method: 'get' - }) -} - -// 查询消息通知详细 -export function getMessage(id) { - return request({ - url: '/workflow/message/' + id, - method: 'get' - }) -} - -// 新增消息通知 -export function addMessage(data) { - return request({ - url: '/workflow/message', - method: 'post', - data: data - }) -} - -// 修改消息通知 -export function updateMessage(data) { - return request({ - url: '/workflow/message', - method: 'put', - data: data - }) -} - -// 删除消息通知 -export function delMessage(id) { - return request({ - url: '/workflow/message/' + id, - method: 'delete' - }) -} - -// 阅读消息 -export function readMessage(id) { - return request({ - url: '/workflow/message/readMessage/' + id, - method: 'get' - }) -} - -// 批量阅读消息 -export function batchReadMessage(id) { - return request({ - url: '/workflow/message/batchReadMessage', - method: 'get' - }) -} diff --git a/ruoyi-ui/src/api/workflow/model.js b/ruoyi-ui/src/api/workflow/model.js deleted file mode 100644 index ea605f1e..00000000 --- a/ruoyi-ui/src/api/workflow/model.js +++ /dev/null @@ -1,110 +0,0 @@ -import request from "@/utils/request"; -/** - * 分页查询 - * @param {条件} query - * @returns - */ -export function list(query) { - return request({ - url: '/workflow/model/list', - method: 'get', - params: query - }) -} - -/** - * 新增模型定义 - * @param {传输的数据}} data - * @returns - */ -export function add(data) { - return request({ - url: '/workflow/model', - method: 'post', - data: data - }) -} - -/** - * 按id删除模型 - * @param {模型id} id - * @returns - */ -export function del(id) { - return request({ - url: '/workflow/model/' + id, - method: 'delete' - }) -} - -/** - * 流程部署 - * @param {模型id} id - * @returns - */ -export function deploy(id) { - return request({ - url: '/workflow/model/deploy/' + id, - method: 'post' - }) -} -/** - * 将流程定义转换为模型 - * @param {流程定义id} processDefinitionId - * @returns - */ - export function convertToModel(processDefinitionId) { - return request({ - url: '/workflow/model/convertToModel/' + processDefinitionId, - method: 'put' - }) -} - -/** - * 查询模型xml - * @param {模型id} modelId - * @returns - */ -export function getEditorXml(modelId) { - return request({ - url: `workflow/model/getInfo/${modelId}/xml`, - method: 'get' - }) -} - -/** - * 保存模型 - * @param {参数} data - * @returns - */ -export function saveModelXml(data) { - return request({ - url: `workflow/model`, - method: 'put', - data: data - }) -} - - -export function getModelInfo(modelId) { - return request({ - url: `model/${modelId}/json`, - method: 'get' - }) -} - -export function newModel(data) { - return request({ - url: `model/newModel`, - method: 'post', - data: data - }) -} - -export function editModelInfo(modelId,data) { - return request({ - url: `/model/${modelId}/save`, - method: 'put', - data: data - }) -} diff --git a/ruoyi-ui/src/api/workflow/processDefSetting.js b/ruoyi-ui/src/api/workflow/processDefSetting.js deleted file mode 100644 index d1fb241b..00000000 --- a/ruoyi-ui/src/api/workflow/processDefSetting.js +++ /dev/null @@ -1,60 +0,0 @@ -import request from '@/utils/request' - -// 查询流程定义与单配置列表 -export function listProcessDefSetting(query) { - return request({ - url: '/workflow/processDefSetting/list', - method: 'get', - params: query - }) -} - -// 查询流程定义与单配置详细 -export function getProcessDefSetting(id) { - return request({ - url: '/workflow/processDefSetting/' + id, - method: 'get' - }) -} - -// 按流程定义id查询流程定义与单配置详细 -export function getProcessDefSettingByDefId(id) { - return request({ - url: '/workflow/processDefSetting/getProcessDefSettingByDefId/' + id, - method: 'get' - }) -} - -// 校验表单是否关联 -export function checkProcessDefSetting(defId,param,businessType) { - return request({ - url: `/workflow/processDefSetting/checkProcessDefSetting/${defId}/${param}/${businessType}` , - method: 'get' - }) -} - -// 新增流程定义与单配置 -export function addProcessDefSetting(data) { - return request({ - url: '/workflow/processDefSetting', - method: 'post', - data: data - }) -} - -// 修改流程定义与单配置 -export function updateProcessDefSetting(data) { - return request({ - url: '/workflow/processDefSetting', - method: 'put', - data: data - }) -} - -// 删除流程定义与单配置 -export function delProcessDefSetting(id) { - return request({ - url: '/workflow/processDefSetting/' + id, - method: 'delete' - }) -} diff --git a/ruoyi-ui/src/api/workflow/processInst.js b/ruoyi-ui/src/api/workflow/processInst.js deleted file mode 100644 index bd733b6c..00000000 --- a/ruoyi-ui/src/api/workflow/processInst.js +++ /dev/null @@ -1,92 +0,0 @@ -import request from '@/utils/request' - -export default { - // 提交申请 ,启动流程申请 - startProcessApply(data) { - return request({ - url: '/workflow/processInstance/startWorkFlow', - method: 'post', - data: data - }) - }, - - // 通过流程实例id查询流程审批记录 - getHistoryInfoList(processInstId) { - return request({ - url: '/workflow/processInstance/getHistoryInfoList/'+processInstId, - method: 'get' - }) - }, - - // 通过流程实例id获取历史流程图 - getHistoryProcessImage(processInstId) { - return process.env.VUE_APP_BASE_API+`/workflow/processInstance/getHistoryProcessImage?processInstId=${processInstId}&t=` + Math.random() - }, - - // 通过业务id查询流程实例 - getInfoByBusinessKey(businessKey) { - return request({ - url: '/workflow/actBusiness/getInfoByBusinessKey/'+businessKey, - method: 'get' - }) - }, - - // 查询正在运行的流程实例 - getProcessInstRunningByPage(query) { - return request({ - url: '/workflow/processInstance/getProcessInstRunningByPage', - method: 'get', - params: query - }) - }, - - // 挂起或激活流程实例 - state(data) { - return request({ - url: '/workflow/processInstance/state', - method: 'put', - data: data - }) - }, - - // 作废流程实例,不会删除历史记录 - deleteRuntimeProcessInst(processInstId) { - return request({ - url: '/workflow/processInstance/deleteRuntimeProcessInst/'+processInstId, - method: 'delete' - }) - }, - - // 删除运行中的实例,删除历史记录,删除业务与流程关联信息 - deleteRuntimeProcessAndHisInst(processInstId) { - return request({ - url: '/workflow/processInstance/deleteRuntimeProcessAndHisInst/'+processInstId, - method: 'delete' - }) - }, - - // 删除已完成的实例,删除历史记录,删除业务与流程关联信息 - deleteFinishProcessAndHisInst(processInstId) { - return request({ - url: '/workflow/processInstance/deleteFinishProcessAndHisInst/'+processInstId, - method: 'delete' - }) - }, - - // 撤销申请 - cancelProcessApply(processInstanceId) { - return request({ - url: '/workflow/processInstance/cancelProcessApply/'+processInstanceId, - method: 'get' - }) - }, - - // 查询已完成的流程实例 - getProcessInstFinishByPage(query) { - return request({ - url: '/workflow/processInstance/getProcessInstFinishByPage', - method: 'get', - params: query - }) - } -} diff --git a/ruoyi-ui/src/api/workflow/task.js b/ruoyi-ui/src/api/workflow/task.js deleted file mode 100644 index 68e522bb..00000000 --- a/ruoyi-ui/src/api/workflow/task.js +++ /dev/null @@ -1,151 +0,0 @@ -import request from '@/utils/request' - -export default { - - // 查询当前用户的待办任务 - getTaskWaitByPage(query) { - return request({ - url: '/workflow/task/getTaskWaitByPage', - method: 'get', - params: query - }) - }, - - // 查询当前用户的已办任务 - getTaskFinishByPage(query) { - return request({ - url: '/workflow/task/getTaskFinishByPage', - method: 'get', - params: query - }) - }, - - // 查询所有用户的待办任务 - getAllTaskWaitByPage(query) { - return request({ - url: '/workflow/task/getAllTaskWaitByPage', - method: 'get', - params: query - }) - }, - - // 查询所有用户的已办任务 - getAllTaskFinishByPage(query) { - return request({ - url: '/workflow/task/getAllTaskFinishByPage', - method: 'get', - params: query - }) - }, - - // 完成任务 - completeTask(data) { - return request({ - url: '/workflow/task/completeTask', - method: 'post', - data: data - }) - }, - - // 获取目标节点(下一个节点) - getNextNodeInfo(data) { - return request({ - url: '/workflow/task/getNextNodeInfo', - method: 'post', - data: data - }) - }, - - // 获取历史任务节点,用于驳回功能 - getBackNodes(processInstId) { - return request({ - url: '/workflow/task/getBackNodes/'+processInstId, - method: 'get' - }) - }, - - // 驳回审批 - backProcess(data) { - return request({ - url: '/workflow/task/backProcess', - method: 'post', - data: data - }) - }, - // 删除执行后的节点 - deleteByNodeIds(data) { - return request({ - url: '/workflow/task/deleteByNodeIds', - method: 'post', - data: data - }) - }, - // 签收任务 - claim(taskId) { - return request({ - url: '/workflow/task/claim/'+taskId, - method: 'post' - }) - }, - // 归还任务 - returnTask(taskId) { - return request({ - url: '/workflow/task/returnTask/'+taskId, - method: 'post' - }) - }, - // 委托任务 - delegateTask(data) { - return request({ - url: '/workflow/task/delegateTask', - method: 'post', - data: data - }) - }, - // 转办任务 - transmitTask(data) { - return request({ - url: '/workflow/task/transmitTask', - method: 'post', - data: data - }) - }, - // 会签任务加签 - addMultiInstanceExecution(data) { - return request({ - url: '/workflow/task/addMultiInstanceExecution', - method: 'post', - data: data - }) - }, - // 会签任务减签 - deleteMultiInstanceExecution(data) { - return request({ - url: '/workflow/task/deleteMultiInstanceExecution', - method: 'post', - data: data - }) - }, - // 会签任务减签 - updateAssignee(data) { - return request({ - url: '/workflow/task/updateAssignee', - method: 'post', - data: data - }) - }, - //查询流程变量 - getProcessInstVariable(taskId) { - return request({ - url: '/workflow/task/getProcessInstVariable/'+taskId, - method: 'get' - }) - }, - //修改审批意见 - editComment(commentId,comment) { - return request({ - url: `/workflow/task/editComment/${commentId}/${comment}`, - method: 'put' - }) - } -} diff --git a/ruoyi-ui/src/api/workflow/workflowUser.js b/ruoyi-ui/src/api/workflow/workflowUser.js deleted file mode 100644 index 3131802c..00000000 --- a/ruoyi-ui/src/api/workflow/workflowUser.js +++ /dev/null @@ -1,18 +0,0 @@ -import request from '@/utils/request' - -// 查询工作流接口用户 -export function getWorkflowUserListByPage(data) { - return request({ - url: '/workflow/user/getWorkflowUserListByPage', - method: 'post', - data: data - }) -} -// 分页查询工作流选择加签人员 -export function getWorkflowAddMultiListByPage(data) { - return request({ - url: '/workflow/user/getWorkflowAddMultiListByPage', - method: 'post', - data: data - }) -} diff --git a/ruoyi-ui/src/assets/img/home/home_bg.png b/ruoyi-ui/src/assets/img/home/home_bg.png deleted file mode 100644 index d0edd455..00000000 Binary files a/ruoyi-ui/src/assets/img/home/home_bg.png and /dev/null differ diff --git a/ruoyi-ui/src/assets/img/work/custInfo/module_header_left.png b/ruoyi-ui/src/assets/img/work/custInfo/module_header_left.png deleted file mode 100644 index 20054cef..00000000 Binary files a/ruoyi-ui/src/assets/img/work/custInfo/module_header_left.png and /dev/null differ diff --git a/ruoyi-ui/src/assets/img/work/custInfo/module_header_share.png b/ruoyi-ui/src/assets/img/work/custInfo/module_header_share.png deleted file mode 100644 index 4d0c2017..00000000 Binary files a/ruoyi-ui/src/assets/img/work/custInfo/module_header_share.png and /dev/null differ diff --git a/ruoyi-ui/src/assets/img/work/custInfo/riskOverviewBground.png b/ruoyi-ui/src/assets/img/work/custInfo/riskOverviewBground.png deleted file mode 100644 index 59b31c07..00000000 Binary files a/ruoyi-ui/src/assets/img/work/custInfo/riskOverviewBground.png and /dev/null differ diff --git a/ruoyi-ui/src/assets/img/work/custInfo/riskOverviewBgroundSigle.png b/ruoyi-ui/src/assets/img/work/custInfo/riskOverviewBgroundSigle.png deleted file mode 100644 index 8ff31dde..00000000 Binary files a/ruoyi-ui/src/assets/img/work/custInfo/riskOverviewBgroundSigle.png and /dev/null differ diff --git a/ruoyi-ui/src/assets/img/work/custInfo/riskOverview_iconRisk1.png b/ruoyi-ui/src/assets/img/work/custInfo/riskOverview_iconRisk1.png deleted file mode 100644 index e7b52009..00000000 Binary files a/ruoyi-ui/src/assets/img/work/custInfo/riskOverview_iconRisk1.png and /dev/null differ diff --git a/ruoyi-ui/src/assets/img/work/custInfo/riskOverview_iconRisk2.png b/ruoyi-ui/src/assets/img/work/custInfo/riskOverview_iconRisk2.png deleted file mode 100644 index a5264b16..00000000 Binary files a/ruoyi-ui/src/assets/img/work/custInfo/riskOverview_iconRisk2.png and /dev/null differ diff --git a/ruoyi-ui/src/assets/img/work/custInfo/riskOverview_iconRisk3.png b/ruoyi-ui/src/assets/img/work/custInfo/riskOverview_iconRisk3.png deleted file mode 100644 index a4fc9532..00000000 Binary files a/ruoyi-ui/src/assets/img/work/custInfo/riskOverview_iconRisk3.png and /dev/null differ diff --git a/ruoyi-ui/src/assets/img/work/custInfo/riskOverview_iconRisk4.png b/ruoyi-ui/src/assets/img/work/custInfo/riskOverview_iconRisk4.png deleted file mode 100644 index 726f1a84..00000000 Binary files a/ruoyi-ui/src/assets/img/work/custInfo/riskOverview_iconRisk4.png and /dev/null differ diff --git a/ruoyi-ui/src/assets/img/work/custInfo/riskOverview_sigh.png b/ruoyi-ui/src/assets/img/work/custInfo/riskOverview_sigh.png deleted file mode 100644 index 10c6cff3..00000000 Binary files a/ruoyi-ui/src/assets/img/work/custInfo/riskOverview_sigh.png and /dev/null differ diff --git a/ruoyi-ui/src/assets/img/work/custInfo/warning.png b/ruoyi-ui/src/assets/img/work/custInfo/warning.png deleted file mode 100644 index 1afe0773..00000000 Binary files a/ruoyi-ui/src/assets/img/work/custInfo/warning.png and /dev/null differ diff --git a/ruoyi-ui/src/assets/img/work/duty/warning.png b/ruoyi-ui/src/assets/img/work/duty/warning.png deleted file mode 100644 index 1afe0773..00000000 Binary files a/ruoyi-ui/src/assets/img/work/duty/warning.png and /dev/null differ diff --git a/ruoyi-ui/src/assets/img/work/loan/warning.png b/ruoyi-ui/src/assets/img/work/loan/warning.png deleted file mode 100644 index 1afe0773..00000000 Binary files a/ruoyi-ui/src/assets/img/work/loan/warning.png and /dev/null differ diff --git a/ruoyi-ui/src/assets/img/work/process/warning.png b/ruoyi-ui/src/assets/img/work/process/warning.png deleted file mode 100644 index 1afe0773..00000000 Binary files a/ruoyi-ui/src/assets/img/work/process/warning.png and /dev/null differ diff --git a/ruoyi-ui/src/assets/img/work/product/warning.png b/ruoyi-ui/src/assets/img/work/product/warning.png deleted file mode 100644 index 1afe0773..00000000 Binary files a/ruoyi-ui/src/assets/img/work/product/warning.png and /dev/null differ diff --git a/ruoyi-ui/src/assets/img/work/risk/warning.png b/ruoyi-ui/src/assets/img/work/risk/warning.png deleted file mode 100644 index 1afe0773..00000000 Binary files a/ruoyi-ui/src/assets/img/work/risk/warning.png and /dev/null differ diff --git a/ruoyi-ui/src/assets/img/work/touch/warning.png b/ruoyi-ui/src/assets/img/work/touch/warning.png deleted file mode 100644 index 1afe0773..00000000 Binary files a/ruoyi-ui/src/assets/img/work/touch/warning.png and /dev/null differ diff --git a/ruoyi-ui/src/components/Bpmn/package/BpmData.js b/ruoyi-ui/src/components/Bpmn/package/BpmData.js deleted file mode 100644 index 672ca449..00000000 --- a/ruoyi-ui/src/components/Bpmn/package/BpmData.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * 存储流程设计相关参数 - */ -export default class BpmData { - constructor() { - this.controls = [] // 设计器控件 - this.init() - } - - init() { - this.controls = [ - { - action: 'create.start-event', - title: '开始' - }, - { - action: 'create.intermediate-event', - title: '中间' - }, - { - action: 'create.end-event', - title: '结束' - }, - { - action: 'create.exclusive-gateway', - title: '网关' - }, - { - action: 'create.task', - title: '任务' - }, - { - action: 'create.user-task', - title: '用户任务' - }, - { - action: 'create.user-sign-task', - title: '会签任务' - }, - { - action: 'create.subprocess-expanded', - title: '子流程' - }, - { - action: 'create.data-object', - title: '数据对象' - }, - { - action: 'create.data-store', - title: '数据存储' - }, - { - action: 'create.participant-expanded', - title: '扩展流程' - }, - { - action: 'create.group', - title: '分组' - } - ] - } - - // 获取控件配置信息 - getControl(action) { - const result = this.controls.filter(item => item.action === action) - return result[0] || {} - } -} diff --git a/ruoyi-ui/src/components/Bpmn/package/PropertyPanel.vue b/ruoyi-ui/src/components/Bpmn/package/PropertyPanel.vue deleted file mode 100644 index 3ca31a53..00000000 --- a/ruoyi-ui/src/components/Bpmn/package/PropertyPanel.vue +++ /dev/null @@ -1,164 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/components/Bpmn/package/common/customTranslate.js b/ruoyi-ui/src/components/Bpmn/package/common/customTranslate.js deleted file mode 100644 index fa05f9d6..00000000 --- a/ruoyi-ui/src/components/Bpmn/package/common/customTranslate.js +++ /dev/null @@ -1,20 +0,0 @@ -import translations from '../lang/zh' - -export default function customTranslate(template, replacements) { - replacements = replacements || {} - - // Translate - template = translations[template] || template - - // Replace - return template.replace(/{([^}]+)}/g, function(_, key) { - var str = replacements[key] - if ( - translations[replacements[key]] !== null && - translations[replacements[key]] !== 'undefined' - ) { - str = translations[replacements[key]] - } - return str || '{' + key + '}' - }) -} diff --git a/ruoyi-ui/src/components/Bpmn/package/common/mixinExecutionListener.js b/ruoyi-ui/src/components/Bpmn/package/common/mixinExecutionListener.js deleted file mode 100644 index 23295b00..00000000 --- a/ruoyi-ui/src/components/Bpmn/package/common/mixinExecutionListener.js +++ /dev/null @@ -1,24 +0,0 @@ - -import executionListenerDialog from '../components/nodePanel/property/executionListener' -export default { - components: { - executionListenerDialog - }, - data() { - return { - executionListenerLength: 0, - dialogName: null - } - }, - methods: { - computedExecutionListenerLength() { - this.executionListenerLength = this.element.businessObject.extensionElements?.values?.length ?? 0 - }, - finishExecutionListener() { - if (this.dialogName === 'executionListenerDialog') { - this.computedExecutionListenerLength() - } - this.dialogName = '' - } - } -} diff --git a/ruoyi-ui/src/components/Bpmn/package/common/mixinPanel.js b/ruoyi-ui/src/components/Bpmn/package/common/mixinPanel.js deleted file mode 100644 index 8686b983..00000000 --- a/ruoyi-ui/src/components/Bpmn/package/common/mixinPanel.js +++ /dev/null @@ -1,70 +0,0 @@ -import xcrud from 'xcrud' -import golbalConfig from 'xcrud/package/common/config' -import showConfig from '../flowable/showConfig' -golbalConfig.set({ - input: { - // size: 'mini' - }, - select: { - // size: 'mini' - }, - colorPicker: { - showAlpha: true - }, - xform: { - form: { - labelWidth: 'auto' - // size: 'mini' - } - } -}) -export default { - components: { xForm: xcrud.xForm }, - props: { - modeler: { - type: Object, - required: true - }, - element: { - type: Object, - required: true - }, - categorys: { - type: Array, - default: () => [] - } - }, - watch: { - 'formData.id': function(val) { - this.updateProperties({ id: val }) - }, - 'formData.name': function(val) { - this.updateProperties({ name: val }) - }, - 'formData.documentation': function(val) { - if (!val) { - this.updateProperties({ documentation: [] }) - return - } - const documentationElement = this.modeler.get('moddle').create('bpmn:Documentation', { text: val }) - this.updateProperties({ documentation: [documentationElement] }) - } - }, - methods: { - updateProperties(properties) { - const modeling = this.modeler.get('modeling') - modeling.updateProperties(this.element, properties) - } - }, - computed: { - elementType() { - const bizObj = this.element.businessObject - return bizObj.eventDefinitions - ? bizObj.eventDefinitions[0].$type - : bizObj.$type - }, - showConfig() { - return showConfig[this.elementType] || {} - } - } -} diff --git a/ruoyi-ui/src/components/Bpmn/package/common/mixinXcrud.js b/ruoyi-ui/src/components/Bpmn/package/common/mixinXcrud.js deleted file mode 100644 index 1f7ee5b5..00000000 --- a/ruoyi-ui/src/components/Bpmn/package/common/mixinXcrud.js +++ /dev/null @@ -1,22 +0,0 @@ -import xcrud from 'xcrud' -import golbalConfig from 'xcrud/package/common/config' -golbalConfig.set({ - input: { - // size: 'mini' - }, - select: { - // size: 'mini' - }, - colorPicker: { - showAlpha: true - }, - xform: { - form: { - labelWidth: 'auto' - // size: 'mini' - } - } -}) -export default { - components: { xForm: xcrud.xForm } -} diff --git a/ruoyi-ui/src/components/Bpmn/package/common/parseElement.js b/ruoyi-ui/src/components/Bpmn/package/common/parseElement.js deleted file mode 100644 index 63cf336e..00000000 --- a/ruoyi-ui/src/components/Bpmn/package/common/parseElement.js +++ /dev/null @@ -1,53 +0,0 @@ -export function commonParse(element) { - const result = { - ...element.businessObject, - ...element.businessObject.$attrs - } - return formatJsonKeyValue(result) -} - -export function formatJsonKeyValue(result) { - // 移除flowable前缀,格式化数组 - for (const key in result) { - if (key.indexOf('flowable:') === 0) { - const newKey = key.replace('flowable:', '') - result[newKey] = result[key] - delete result[key] - } - } - result = documentationParse(result) - return result -} - -export function documentationParse(obj) { - if ('documentation' in obj) { - let str = '' - obj.documentation.forEach(item => { - str += item.text - }) - obj.documentation = str - } - return obj -} - -export function conditionExpressionParse(obj) { - if ('conditionExpression' in obj) { - obj.conditionExpression = obj.conditionExpression.body - } - return obj -} - -export function userTaskParse(obj) { - for (const key in obj) { - if (key === 'candidateUsers') { - obj.userType = 'candidateUsers' - obj[key] = obj[key]?.split(',') || [] - } else if (key === 'candidateGroups') { - obj.userType = 'candidateGroups' - obj[key] = obj[key]?.split(',') || [] - } else if (key === 'assignee') { - obj.userType = 'assignee' - } - } - return obj -} diff --git a/ruoyi-ui/src/components/Bpmn/package/components/custom/customContextPad.vue b/ruoyi-ui/src/components/Bpmn/package/components/custom/customContextPad.vue deleted file mode 100644 index 89c2f684..00000000 --- a/ruoyi-ui/src/components/Bpmn/package/components/custom/customContextPad.vue +++ /dev/null @@ -1,24 +0,0 @@ -export default class CustomContextPad { - constructor(config, contextPad, create, elementFactory, injector, translate) { - this.create = create; - this.elementFactory = elementFactory; - this.translate = translate; - - if (config.autoPlace !== false) { - this.autoPlace = injector.get('autoPlace', false); - } - - contextPad.registerProvider(this); // 定义这是一个contextPad - } - - getContextPadEntries(element) {} -} - -CustomContextPad.$inject = [ - 'config', - 'contextPad', - 'create', - 'elementFactory', - 'injector', - 'translate' -]; diff --git a/ruoyi-ui/src/components/Bpmn/package/components/nodePanel/gateway.vue b/ruoyi-ui/src/components/Bpmn/package/components/nodePanel/gateway.vue deleted file mode 100644 index db181531..00000000 --- a/ruoyi-ui/src/components/Bpmn/package/components/nodePanel/gateway.vue +++ /dev/null @@ -1,81 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/components/Bpmn/package/components/nodePanel/process.vue b/ruoyi-ui/src/components/Bpmn/package/components/nodePanel/process.vue deleted file mode 100644 index 6498d481..00000000 --- a/ruoyi-ui/src/components/Bpmn/package/components/nodePanel/process.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/components/Bpmn/package/components/nodePanel/property/executionListener.vue b/ruoyi-ui/src/components/Bpmn/package/components/nodePanel/property/executionListener.vue deleted file mode 100644 index df105f93..00000000 --- a/ruoyi-ui/src/components/Bpmn/package/components/nodePanel/property/executionListener.vue +++ /dev/null @@ -1,195 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/components/Bpmn/package/components/nodePanel/property/listenerParam.vue b/ruoyi-ui/src/components/Bpmn/package/components/nodePanel/property/listenerParam.vue deleted file mode 100644 index 2e0f8b10..00000000 --- a/ruoyi-ui/src/components/Bpmn/package/components/nodePanel/property/listenerParam.vue +++ /dev/null @@ -1,97 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/components/Bpmn/package/components/nodePanel/property/multiInstance.vue b/ruoyi-ui/src/components/Bpmn/package/components/nodePanel/property/multiInstance.vue deleted file mode 100644 index 49eb06c3..00000000 --- a/ruoyi-ui/src/components/Bpmn/package/components/nodePanel/property/multiInstance.vue +++ /dev/null @@ -1,118 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/components/Bpmn/package/components/nodePanel/property/signal.vue b/ruoyi-ui/src/components/Bpmn/package/components/nodePanel/property/signal.vue deleted file mode 100644 index 781c24d2..00000000 --- a/ruoyi-ui/src/components/Bpmn/package/components/nodePanel/property/signal.vue +++ /dev/null @@ -1,125 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/components/Bpmn/package/components/nodePanel/property/taskListener.vue b/ruoyi-ui/src/components/Bpmn/package/components/nodePanel/property/taskListener.vue deleted file mode 100644 index 7f1b56e7..00000000 --- a/ruoyi-ui/src/components/Bpmn/package/components/nodePanel/property/taskListener.vue +++ /dev/null @@ -1,197 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/components/Bpmn/package/components/nodePanel/sequenceFlow.vue b/ruoyi-ui/src/components/Bpmn/package/components/nodePanel/sequenceFlow.vue deleted file mode 100644 index 178cd7d4..00000000 --- a/ruoyi-ui/src/components/Bpmn/package/components/nodePanel/sequenceFlow.vue +++ /dev/null @@ -1,92 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/components/Bpmn/package/components/nodePanel/startEnd.vue b/ruoyi-ui/src/components/Bpmn/package/components/nodePanel/startEnd.vue deleted file mode 100644 index f16fe226..00000000 --- a/ruoyi-ui/src/components/Bpmn/package/components/nodePanel/startEnd.vue +++ /dev/null @@ -1,91 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/components/Bpmn/package/components/nodePanel/task.vue b/ruoyi-ui/src/components/Bpmn/package/components/nodePanel/task.vue deleted file mode 100644 index 053fe673..00000000 --- a/ruoyi-ui/src/components/Bpmn/package/components/nodePanel/task.vue +++ /dev/null @@ -1,376 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/components/Bpmn/package/flowable/flowable.json b/ruoyi-ui/src/components/Bpmn/package/flowable/flowable.json deleted file mode 100644 index bffad659..00000000 --- a/ruoyi-ui/src/components/Bpmn/package/flowable/flowable.json +++ /dev/null @@ -1,1194 +0,0 @@ -{ - "name": "Flowable", - "uri": "http://flowable.org/bpmn", - "prefix": "flowable", - "xml": { - "tagAlias": "lowerCase" - }, - "associations": [], - "types": [ - { - "name": "InOutBinding", - "superClass": ["Element"], - "isAbstract": true, - "properties": [ - { - "name": "source", - "isAttr": true, - "type": "String" - }, - { - "name": "sourceExpression", - "isAttr": true, - "type": "String" - }, - { - "name": "target", - "isAttr": true, - "type": "String" - }, - { - "name": "businessKey", - "isAttr": true, - "type": "String" - }, - { - "name": "local", - "isAttr": true, - "type": "Boolean", - "default": false - }, - { - "name": "variables", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "In", - "superClass": ["InOutBinding"], - "meta": { - "allowedIn": ["bpmn:CallActivity"] - } - }, - { - "name": "Out", - "superClass": ["InOutBinding"], - "meta": { - "allowedIn": ["bpmn:CallActivity"] - } - }, - { - "name": "AsyncCapable", - "isAbstract": true, - "extends": ["bpmn:Activity", "bpmn:Gateway", "bpmn:Event"], - "properties": [ - { - "name": "async", - "isAttr": true, - "type": "Boolean", - "default": false - }, - { - "name": "asyncBefore", - "isAttr": true, - "type": "Boolean", - "default": false - }, - { - "name": "asyncAfter", - "isAttr": true, - "type": "Boolean", - "default": false - }, - { - "name": "exclusive", - "isAttr": true, - "type": "Boolean", - "default": true - } - ] - }, - { - "name": "flowable:in", - "superClass": ["Element"], - "properties": [ - { - "name": "source", - "type": "string", - "isAttr": true - }, - { - "name": "target", - "type": "string", - "isAttr": true - } - ] - }, - { - "name": "flowable:out", - "superClass": ["Element"], - "properties": [ - { - "name": "source", - "type": "string", - "isAttr": true - }, - { - "name": "target", - "type": "string", - "isAttr": true - } - ] - }, - { - "name": "BoundaryEvent", - "superClass": ["CatchEvent"], - "properties": [ - { - "name": "cancelActivity", - "default": true, - "isAttr": true, - "type": "Boolean" - }, - { - "name": "attachedToRef", - "type": "Activity", - "isAttr": true, - "isReference": true - } - ] - }, - { - "name": "JobPriorized", - "isAbstract": true, - "extends": ["bpmn:Process", "flowable:AsyncCapable"], - "properties": [ - { - "name": "jobPriority", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "SignalEventDefinition", - "isAbstract": true, - "extends": ["bpmn:SignalEventDefinition"], - "properties": [ - { - "name": "async", - "isAttr": true, - "type": "Boolean", - "default": false - } - ] - }, - { - "name": "ErrorEventDefinition", - "isAbstract": true, - "extends": ["bpmn:ErrorEventDefinition"], - "properties": [ - { - "name": "errorCodeVariable", - "isAttr": true, - "type": "String" - }, - { - "name": "errorMessageVariable", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "Error", - "isAbstract": true, - "extends": ["bpmn:Error"], - "properties": [ - { - "name": "flowable:errorMessage", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "PotentialStarter", - "superClass": ["Element"], - "properties": [ - { - "name": "resourceAssignmentExpression", - "type": "bpmn:ResourceAssignmentExpression" - } - ] - }, - { - "name": "UserTask", - "isAbstract": true, - "extends": ["bpmn:UserTask"], - "properties": [ - { - "name": "timerEventDefinition", - "type": "Expression" - }, - { - "name": "multiInstanceLoopCharacteristics", - "type": "MultiInstanceLoopCharacteristics" - } - ] - }, - { - "name": "StartEvent", - "isAbstract": true, - "extends": ["bpmn:StartEvent"], - "properties": [ - { - "name": "timerEventDefinition", - "type": "Expression" - } - ] - }, - { - "name": "FormSupported", - "isAbstract": true, - "extends": ["bpmn:StartEvent", "bpmn:UserTask"], - "properties": [ - { - "name": "formHandlerClass", - "isAttr": true, - "type": "String" - }, - { - "name": "formKey", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "TemplateSupported", - "isAbstract": true, - "extends": ["bpmn:Process", "bpmn:FlowElement"], - "properties": [ - { - "name": "modelerTemplate", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "Initiator", - "isAbstract": true, - "extends": ["bpmn:StartEvent"], - "properties": [ - { - "name": "initiator", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "ScriptTask", - "isAbstract": true, - "extends": ["bpmn:ScriptTask"], - "properties": [ - { - "name": "resultVariable", - "isAttr": true, - "type": "String" - }, - { - "name": "resource", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "Process", - "isAbstract": true, - "extends": ["bpmn:Process"], - "properties": [ - { - "name": "candidateStarterGroups", - "isAttr": true, - "type": "String" - }, - { - "name": "candidateStarterUsers", - "isAttr": true, - "type": "String" - }, - { - "name": "versionTag", - "isAttr": true, - "type": "String" - }, - { - "name": "historyTimeToLive", - "isAttr": true, - "type": "String" - }, - { - "name": "isStartableInTasklist", - "isAttr": true, - "type": "Boolean", - "default": true - } - ] - }, - { - "name": "EscalationEventDefinition", - "isAbstract": true, - "extends": ["bpmn:EscalationEventDefinition"], - "properties": [ - { - "name": "escalationCodeVariable", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "FormalExpression", - "isAbstract": true, - "extends": ["bpmn:FormalExpression"], - "properties": [ - { - "name": "resource", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "Assignable", - "extends": ["bpmn:UserTask"], - "properties": [ - { - "name": "candidateGroups", - "isAttr": true, - "type": "String" - }, - { - "name": "dueDate", - "isAttr": true, - "type": "String" - }, - { - "name": "followUpDate", - "isAttr": true, - "type": "String" - }, - { - "name": "priority", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "CallActivity", - "extends": ["bpmn:CallActivity"], - "properties": [ - { - "name": "calledElementBinding", - "isAttr": true, - "type": "String", - "default": "latest" - }, - { - "name": "calledElementVersion", - "isAttr": true, - "type": "String" - }, - { - "name": "calledElementVersionTag", - "isAttr": true, - "type": "String" - }, - { - "name": "calledElementTenantId", - "isAttr": true, - "type": "String" - }, - { - "name": "caseRef", - "isAttr": true, - "type": "String" - }, - { - "name": "caseBinding", - "isAttr": true, - "type": "String", - "default": "latest" - }, - { - "name": "caseVersion", - "isAttr": true, - "type": "String" - }, - { - "name": "caseTenantId", - "isAttr": true, - "type": "String" - }, - { - "name": "variableMappingClass", - "isAttr": true, - "type": "String" - }, - { - "name": "variableMappingDelegateExpression", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "ServiceTaskLike", - "extends": [ - "bpmn:ServiceTask", - "bpmn:BusinessRuleTask", - "bpmn:SendTask", - "bpmn:MessageEventDefinition" - ], - "properties": [ - { - "name": "expression", - "isAttr": true, - "type": "String" - }, - { - "name": "class", - "isAttr": true, - "type": "String" - }, - { - "name": "delegateExpression", - "isAttr": true, - "type": "String" - }, - { - "name": "resultVariable", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "ExclusiveGateway", - "isAbstract": true, - "extends": ["bpmn:ExclusiveGateway"], - "properties": [ - { - "name": "serviceClass", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "DmnCapable", - "extends": ["bpmn:BusinessRuleTask"], - "properties": [ - { - "name": "decisionRef", - "isAttr": true, - "type": "String" - }, - { - "name": "decisionRefBinding", - "isAttr": true, - "type": "String", - "default": "latest" - }, - { - "name": "decisionRefVersion", - "isAttr": true, - "type": "String" - }, - { - "name": "mapDecisionResult", - "isAttr": true, - "type": "String", - "default": "resultList" - }, - { - "name": "decisionRefTenantId", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "ExternalCapable", - "extends": ["flowable:ServiceTaskLike"], - "properties": [ - { - "name": "type", - "isAttr": true, - "type": "String" - }, - { - "name": "topic", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "TaskPriorized", - "extends": ["bpmn:Process", "flowable:ExternalCapable"], - "properties": [ - { - "name": "taskPriority", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "Properties", - "superClass": ["Element"], - "meta": { - "allowedIn": ["*"] - }, - "properties": [ - { - "name": "values", - "type": "Property", - "isMany": true - } - ] - }, - { - "name": "Property", - "superClass": ["Element"], - "properties": [ - { - "name": "id", - "type": "String", - "isAttr": true - }, - { - "name": "name", - "type": "String", - "isAttr": true - }, - { - "name": "value", - "type": "String", - "isAttr": true - } - ] - }, - { - "name": "Connector", - "superClass": ["Element"], - "meta": { - "allowedIn": ["flowable:ServiceTaskLike"] - }, - "properties": [ - { - "name": "inputOutput", - "type": "InputOutput" - }, - { - "name": "connectorId", - "type": "String" - } - ] - }, - { - "name": "InputOutput", - "superClass": ["Element"], - "meta": { - "allowedIn": ["bpmn:FlowNode", "flowable:Connector"] - }, - "properties": [ - { - "name": "inputOutput", - "type": "InputOutput" - }, - { - "name": "connectorId", - "type": "String" - }, - { - "name": "inputParameters", - "isMany": true, - "type": "InputParameter" - }, - { - "name": "outputParameters", - "isMany": true, - "type": "OutputParameter" - } - ] - }, - { - "name": "InputOutputParameter", - "properties": [ - { - "name": "name", - "isAttr": true, - "type": "String" - }, - { - "name": "value", - "isBody": true, - "type": "String" - }, - { - "name": "definition", - "type": "InputOutputParameterDefinition" - } - ] - }, - { - "name": "InputOutputParameterDefinition", - "isAbstract": true - }, - { - "name": "List", - "superClass": ["InputOutputParameterDefinition"], - "properties": [ - { - "name": "items", - "isMany": true, - "type": "InputOutputParameterDefinition" - } - ] - }, - { - "name": "Map", - "superClass": ["InputOutputParameterDefinition"], - "properties": [ - { - "name": "entries", - "isMany": true, - "type": "Entry" - } - ] - }, - { - "name": "Entry", - "properties": [ - { - "name": "key", - "isAttr": true, - "type": "String" - }, - { - "name": "value", - "isBody": true, - "type": "String" - }, - { - "name": "definition", - "type": "InputOutputParameterDefinition" - } - ] - }, - { - "name": "Value", - "superClass": ["InputOutputParameterDefinition"], - "properties": [ - { - "name": "id", - "isAttr": true, - "type": "String" - }, - { - "name": "name", - "isAttr": true, - "type": "String" - }, - { - "name": "value", - "isBody": true, - "type": "String" - } - ] - }, - { - "name": "Script", - "superClass": ["InputOutputParameterDefinition"], - "properties": [ - { - "name": "scriptFormat", - "isAttr": true, - "type": "String" - }, - { - "name": "resource", - "isAttr": true, - "type": "String" - }, - { - "name": "value", - "isBody": true, - "type": "String" - } - ] - }, - { - "name": "Field", - "superClass": ["Element"], - "meta": { - "allowedIn": [ - "flowable:ServiceTaskLike", - "flowable:ExecutionListener", - "flowable:TaskListener" - ] - }, - "properties": [ - { - "name": "name", - "isAttr": true, - "type": "String" - }, - { - "name": "expression", - "isAttr": true, - "type": "expression" - }, - { - "name": "string", - "type": "string" - }, - { - "name": "stringValue", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "string", - "superClass": ["Element"], - "meta": { - "allowedIn": [ - "flowable:Field" - ] - }, - "properties": [ - { - "name": "body", - "isBody": true, - "type": "String" - } - ] - }, - { - "name": "expression", - "superClass": ["Element"], - "meta": { - "allowedIn": [ - "flowable:Field" - ] - }, - "properties": [ - { - "name": "body", - "isBody": true, - "type": "String" - } - ] - }, - { - "name": "InputParameter", - "superClass": ["InputOutputParameter"] - }, - { - "name": "OutputParameter", - "superClass": ["InputOutputParameter"] - }, - { - "name": "Collectable", - "isAbstract": true, - "extends": ["bpmn:MultiInstanceLoopCharacteristics"], - "superClass": ["flowable:AsyncCapable"], - "properties": [ - { - "name": "collection", - "isAttr": true, - "type": "String" - }, - { - "name": "elementVariable", - "isAttr": true, - "type": "String" - } - ] - }, - { - "name": "SequenceFlow", - "superClass": ["FlowElement"], - "properties": [ - { - "name": "isImmediate", - "isAttr": true, - "type": "Boolean" - }, - { - "name": "conditionExpression", - "type": "Expression" - }, - { - "name": "sourceRef", - "type": "FlowNode", - "isAttr": true, - "isReference": true - }, - { - "name": "targetRef", - "type": "FlowNode", - "isAttr": true, - "isReference": true - } - ] - }, - { - "name": "MultiInstanceLoopCharacteristics", - "superClass": ["LoopCharacteristics"], - "properties": [ - { - "name": "isSequential", - "default": false, - "isAttr": true, - "type": "Boolean" - }, - { - "name": "behavior", - "type": "MultiInstanceBehavior", - "default": "All", - "isAttr": true - }, - { - "name": "loopCardinality", - "type": "Expression", - "xml": { - "serialize": "xsi:type" - } - }, - { - "name": "loopDataInputRef", - "type": "ItemAwareElement", - "isReference": true - }, - { - "name": "loopDataOutputRef", - "type": "ItemAwareElement", - "isReference": true - }, - { - "name": "inputDataItem", - "type": "DataInput", - "xml": { - "serialize": "property" - } - }, - { - "name": "outputDataItem", - "type": "DataOutput", - "xml": { - "serialize": "property" - } - }, - { - "name": "complexBehaviorDefinition", - "type": "ComplexBehaviorDefinition", - "isMany": true - }, - { - "name": "completionCondition", - "type": "Expression", - "xml": { - "serialize": "xsi:type" - } - }, - { - "name": "oneBehaviorEventRef", - "type": "EventDefinition", - "isAttr": true, - "isReference": true - }, - { - "name": "noneBehaviorEventRef", - "type": "EventDefinition", - "isAttr": true, - "isReference": true - } - ] - }, - { - "name": "FailedJobRetryTimeCycle", - "superClass": ["Element"], - "meta": { - "allowedIn": ["flowable:AsyncCapable", "bpmn:MultiInstanceLoopCharacteristics"] - }, - "properties": [ - { - "name": "body", - "isBody": true, - "type": "String" - } - ] - }, - { - "name": "ExecutionListener", - "superClass": ["Element"], - "meta": { - "allowedIn": [ - "bpmn:Task", - "bpmn:ServiceTask", - "bpmn:UserTask", - "bpmn:BusinessRuleTask", - "bpmn:ScriptTask", - "bpmn:ReceiveTask", - "bpmn:ManualTask", - "bpmn:ExclusiveGateway", - "bpmn:SequenceFlow", - "bpmn:ParallelGateway", - "bpmn:InclusiveGateway", - "bpmn:EventBasedGateway", - "bpmn:StartEvent", - "bpmn:IntermediateCatchEvent", - "bpmn:IntermediateThrowEvent", - "bpmn:EndEvent", - "bpmn:BoundaryEvent", - "bpmn:CallActivity", - "bpmn:SubProcess", - "bpmn:Process" - ] - }, - "properties": [ - { - "name": "expression", - "isAttr": true, - "type": "String" - }, - { - "name": "class", - "isAttr": true, - "type": "String" - }, - { - "name": "delegateExpression", - "isAttr": true, - "type": "String" - }, - { - "name": "event", - "isAttr": true, - "type": "String" - }, - { - "name": "script", - "type": "Script" - }, - { - "name": "fields", - "type": "Field", - "isMany": true - } - ] - }, - { - "name": "TaskListener", - "superClass": ["Element"], - "meta": { - "allowedIn": ["bpmn:UserTask"] - }, - "properties": [ - { - "name": "expression", - "isAttr": true, - "type": "String" - }, - { - "name": "class", - "isAttr": true, - "type": "String" - }, - { - "name": "delegateExpression", - "isAttr": true, - "type": "String" - }, - { - "name": "event", - "isAttr": true, - "type": "String" - }, - { - "name": "script", - "type": "Script" - }, - { - "name": "fields", - "type": "Field", - "isMany": true - } - ] - }, - { - "name": "FormProperty", - "superClass": ["Element"], - "meta": { - "allowedIn": ["bpmn:StartEvent", "bpmn:UserTask"] - }, - "properties": [ - { - "name": "id", - "type": "String", - "isAttr": true - }, - { - "name": "name", - "type": "String", - "isAttr": true - }, - { - "name": "type", - "type": "String", - "isAttr": true - }, - { - "name": "required", - "type": "String", - "isAttr": true - }, - { - "name": "readable", - "type": "String", - "isAttr": true - }, - { - "name": "writable", - "type": "String", - "isAttr": true - }, - { - "name": "variable", - "type": "String", - "isAttr": true - }, - { - "name": "expression", - "type": "String", - "isAttr": true - }, - { - "name": "datePattern", - "type": "String", - "isAttr": true - }, - { - "name": "default", - "type": "String", - "isAttr": true - }, - { - "name": "values", - "type": "Value", - "isMany": true - } - ] - }, - { - "name": "FormData", - "superClass": ["Element"], - "meta": { - "allowedIn": ["bpmn:StartEvent", "bpmn:UserTask"] - }, - "properties": [ - { - "name": "fields", - "type": "FormField", - "isMany": true - }, - { - "name": "businessKey", - "type": "String", - "isAttr": true - } - ] - }, - { - "name": "FormField", - "superClass": ["Element"], - "properties": [ - { - "name": "id", - "type": "String", - "isAttr": true - }, - { - "name": "label", - "type": "String", - "isAttr": true - }, - { - "name": "type", - "type": "String", - "isAttr": true - }, - { - "name": "datePattern", - "type": "String", - "isAttr": true - }, - { - "name": "defaultValue", - "type": "String", - "isAttr": true - }, - { - "name": "properties", - "type": "Properties" - }, - { - "name": "validation", - "type": "Validation" - }, - { - "name": "values", - "type": "Value", - "isMany": true - } - ] - }, - { - "name": "Validation", - "superClass": ["Element"], - "properties": [ - { - "name": "constraints", - "type": "Constraint", - "isMany": true - } - ] - }, - { - "name": "Constraint", - "superClass": ["Element"], - "properties": [ - { - "name": "name", - "type": "String", - "isAttr": true - }, - { - "name": "config", - "type": "String", - "isAttr": true - } - ] - }, - { - "name": "ConditionalEventDefinition", - "isAbstract": true, - "extends": ["bpmn:ConditionalEventDefinition"], - "properties": [ - { - "name": "variableName", - "isAttr": true, - "type": "String" - }, - { - "name": "variableEvent", - "isAttr": true, - "type": "String" - } - ] - } - ], - "emumerations": [] - } \ No newline at end of file diff --git a/ruoyi-ui/src/components/Bpmn/package/flowable/init.js b/ruoyi-ui/src/components/Bpmn/package/flowable/init.js deleted file mode 100644 index ec9e282d..00000000 --- a/ruoyi-ui/src/components/Bpmn/package/flowable/init.js +++ /dev/null @@ -1,24 +0,0 @@ - -function randomStr() { - return Math.random().toString(36).slice(-8) -} - -export default function() { - return ` - - - - - - - - - - - - - - - - ` -} diff --git a/ruoyi-ui/src/components/Bpmn/package/flowable/showConfig.js b/ruoyi-ui/src/components/Bpmn/package/flowable/showConfig.js deleted file mode 100644 index 45a752b7..00000000 --- a/ruoyi-ui/src/components/Bpmn/package/flowable/showConfig.js +++ /dev/null @@ -1,51 +0,0 @@ -export default { - 'bpmn:EndEvent': {}, - 'bpmn:StartEvent': { - initiator: true, - formKey: true - }, - 'bpmn:UserTask': { - userType: true, - assignee: true, - candidateUsers: true, - candidateGroups: true, - async: true, - priority: true, - formKey: true, - skipExpression: true, - dueDate: true, - taskListener: true - }, - 'bpmn:ServiceTask': { - async: true, - skipExpression: true, - isForCompensation: true, - triggerable: true, - class: true - }, - 'bpmn:ScriptTask': { - async: true, - isForCompensation: true, - autoStoreVariables: true - }, - 'bpmn:ManualTask': { - async: true, - isForCompensation: true - }, - 'bpmn:ReceiveTask': { - async: true, - isForCompensation: true - }, - 'bpmn:SendTask': { - async: true, - isForCompensation: true - }, - 'bpmn:BusinessRuleTask': { - async: true, - isForCompensation: true, - ruleVariablesInput: true, - rules: true, - resultVariable: true, - exclude: true - } -} diff --git a/ruoyi-ui/src/components/Bpmn/package/index.js b/ruoyi-ui/src/components/Bpmn/package/index.js deleted file mode 100644 index f78489d2..00000000 --- a/ruoyi-ui/src/components/Bpmn/package/index.js +++ /dev/null @@ -1,5 +0,0 @@ -import workflowBpmnModeler from './index.vue' - -workflowBpmnModeler.install = Vue => Vue.component(workflowBpmnModeler.name, workflowBpmnModeler) // 给组件配置install方法 - -export default workflowBpmnModeler diff --git a/ruoyi-ui/src/components/Bpmn/package/index.vue b/ruoyi-ui/src/components/Bpmn/package/index.vue deleted file mode 100644 index 13e8f916..00000000 --- a/ruoyi-ui/src/components/Bpmn/package/index.vue +++ /dev/null @@ -1,422 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/components/Bpmn/package/lang/zh.js b/ruoyi-ui/src/components/Bpmn/package/lang/zh.js deleted file mode 100644 index 003c0cc5..00000000 --- a/ruoyi-ui/src/components/Bpmn/package/lang/zh.js +++ /dev/null @@ -1,227 +0,0 @@ -export default { - // Labels - 'Activate the global connect tool': '激活全局连接工具', - 'Append {type}': '添加 {type}', - 'Add Lane above': '在上面添加道', - 'Divide into two Lanes': '分割成两个道', - 'Divide into three Lanes': '分割成三个道', - 'Add Lane below': '在下面添加道', - 'Append compensation activity': '追加补偿活动', - 'Change type': '修改类型', - 'Connect using Association': '使用关联连接', - 'Connect using Sequence/MessageFlow or Association': '使用顺序/消息流或者关联连接', - 'Connect using DataInputAssociation': '使用数据输入关联连接', - 'Remove': '移除', - 'Activate the hand tool': '激活抓手工具', - 'Activate the lasso tool': '激活套索工具', - 'Activate the create/remove space tool': '激活创建/删除空间工具', - 'Create expanded SubProcess': '创建扩展子过程', - 'Create IntermediateThrowEvent/BoundaryEvent': '创建中间抛出事件/边界事件', - 'Create Pool/Participant': '创建池/参与者', - 'Parallel Multi Instance': '并行多重事件', - 'Sequential Multi Instance': '时序多重事件', - 'DataObjectReference': '数据对象参考', - 'DataStoreReference': '数据存储参考', - 'Loop': '循环', - 'Ad-hoc': '即席', - 'Create {type}': '创建 {type}', - 'Task': '任务', - 'Send Task': '发送任务', - 'Receive Task': '接收任务', - 'User Task': '用户任务', - 'Manual Task': '手工任务', - 'Business Rule Task': '业务规则任务', - 'Service Task': '服务任务', - 'Script Task': '脚本任务', - 'Call Activity': '调用活动', - 'Sub Process (collapsed)': '子流程(折叠的)', - 'Sub Process (expanded)': '子流程(展开的)', - 'Start Event': '开始事件', - 'StartEvent': '开始事件', - 'Intermediate Throw Event': '中间事件', - 'End Event': '结束事件', - 'EndEvent': '结束事件', - 'Create Gateway': '创建网关', - 'Create Intermediate/Boundary Event': '创建中间/边界事件', - 'Message Start Event': '消息开始事件', - 'Timer Start Event': '定时开始事件', - 'Conditional Start Event': '条件开始事件', - 'Signal Start Event': '信号开始事件', - 'Error Start Event': '错误开始事件', - 'Escalation Start Event': '升级开始事件', - 'Compensation Start Event': '补偿开始事件', - 'Message Start Event (non-interrupting)': '消息开始事件(非中断)', - 'Timer Start Event (non-interrupting)': '定时开始事件(非中断)', - 'Conditional Start Event (non-interrupting)': '条件开始事件(非中断)', - 'Signal Start Event (non-interrupting)': '信号开始事件(非中断)', - 'Escalation Start Event (non-interrupting)': '升级开始事件(非中断)', - 'Message Intermediate Catch Event': '消息中间捕获事件', - 'Message Intermediate Throw Event': '消息中间抛出事件', - 'Timer Intermediate Catch Event': '定时中间捕获事件', - 'Escalation Intermediate Throw Event': '升级中间抛出事件', - 'Conditional Intermediate Catch Event': '条件中间捕获事件', - 'Link Intermediate Catch Event': '链接中间捕获事件', - 'Link Intermediate Throw Event': '链接中间抛出事件', - 'Compensation Intermediate Throw Event': '补偿中间抛出事件', - 'Signal Intermediate Catch Event': '信号中间捕获事件', - 'Signal Intermediate Throw Event': '信号中间抛出事件', - 'Message End Event': '消息结束事件', - 'Escalation End Event': '定时结束事件', - 'Error End Event': '错误结束事件', - 'Cancel End Event': '取消结束事件', - 'Compensation End Event': '补偿结束事件', - 'Signal End Event': '信号结束事件', - 'Terminate End Event': '终止结束事件', - 'Message Boundary Event': '消息边界事件', - 'Message Boundary Event (non-interrupting)': '消息边界事件(非中断)', - 'Timer Boundary Event': '定时边界事件', - 'Timer Boundary Event (non-interrupting)': '定时边界事件(非中断)', - 'Escalation Boundary Event': '升级边界事件', - 'Escalation Boundary Event (non-interrupting)': '升级边界事件(非中断)', - 'Conditional Boundary Event': '条件边界事件', - 'Conditional Boundary Event (non-interrupting)': '条件边界事件(非中断)', - 'Error Boundary Event': '错误边界事件', - 'Cancel Boundary Event': '取消边界事件', - 'Signal Boundary Event': '信号边界事件', - 'Signal Boundary Event (non-interrupting)': '信号边界事件(非中断)', - 'Compensation Boundary Event': '补偿边界事件', - 'Exclusive Gateway': '互斥网关', - 'Parallel Gateway': '并行网关', - 'Inclusive Gateway': '相容网关', - 'Complex Gateway': '复杂网关', - 'Event based Gateway': '事件网关', - 'Transaction': '转运', - 'Sub Process': '子流程', - 'Event Sub Process': '事件子流程', - 'Collapsed Pool': '折叠池', - 'Expanded Pool': '展开池', - // Errors - 'no parent for {element} in {parent}': '在{parent}里,{element}没有父类', - 'no shape type specified': '没有指定的形状类型', - 'flow elements must be children of pools/participants': '流元素必须是池/参与者的子类', - 'out of bounds release': 'out of bounds release', - 'more than {count} child lanes': '子道大于{count} ', - 'element required': '元素不能为空', - 'diagram not part of bpmn:Definitions': '流程图不符合bpmn规范', - 'no diagram to display': '没有可展示的流程图', - 'no process or collaboration to display': '没有可展示的流程/协作', - 'element {element} referenced by {referenced}#{property} not yet drawn': '由{referenced}#{property}引用的{element}元素仍未绘制', - 'already rendered {element}': '{element} 已被渲染', - 'failed to import {element}': '导入{element}失败', - // 属性面板的参数 - 'Id': '标识', - 'Name': '名称', - 'General': '常规', - 'Details': '详情', - 'Message Name': '消息名称', - 'Message': '消息', - 'Initiator': '创建者', - 'Asynchronous Continuations': '持续异步', - 'Asynchronous Before': '异步前', - 'Asynchronous After': '异步后', - 'Job Configuration': '工作配置', - 'Exclusive': '排除', - 'Job Priority': '工作优先级', - 'Retry Time Cycle': '重试时间周期', - 'Documentation': '文档', - 'Element Documentation': '元素文档', - 'History Configuration': '历史配置', - 'History Time To Live': '历史的生存时间', - 'Forms': '表单', - 'Form Key': '表单key', - 'Form Fields': '表单字段', - 'Business Key': '业务key', - 'Form Field': '表单字段', - 'ID': '编号', - 'Type': '类型', - 'Label': '名称', - 'Default Value': '默认值', - 'Validation': '校验', - 'Add Constraint': '添加约束', - 'Config': '配置', - 'Properties': '属性', - 'Add Property': '添加属性', - 'Value': '值', - 'Listeners': '监听器', - 'Execution Listener': '执行监听', - 'Event Type': '事件类型', - 'Listener Type': '监听器类型', - 'Java Class': 'Java类', - 'Expression': '表达式', - 'Must provide a value': '必须提供一个值', - 'Delegate Expression': '代理表达式', - 'Script': '脚本', - 'Script Format': '脚本格式', - 'Script Type': '脚本类型', - 'Inline Script': '内联脚本', - 'External Script': '外部脚本', - 'Resource': '资源', - 'Field Injection': '字段注入', - 'Extensions': '扩展', - 'Input/Output': '输入/输出', - 'Input Parameters': '输入参数', - 'Output Parameters': '输出参数', - 'Parameters': '参数', - 'Output Parameter': '输出参数', - 'Timer Definition Type': '定时器定义类型', - 'Timer Definition': '定时器定义', - 'Date': '日期', - 'Duration': '持续', - 'Cycle': '循环', - 'Signal': '信号', - 'Signal Name': '信号名称', - 'Escalation': '升级', - 'Error': '错误', - 'Link Name': '链接名称', - 'Condition': '条件名称', - 'Variable Name': '变量名称', - 'Variable Event': '变量事件', - 'Specify more than one variable change event as a comma separated list.': '多个变量事件以逗号隔开', - 'Wait for Completion': '等待完成', - 'Activity Ref': '活动参考', - 'Version Tag': '版本标签', - 'Executable': '可执行文件', - 'External Task Configuration': '扩展任务配置', - 'Task Priority': '任务优先级', - 'External': '外部', - 'Connector': '连接器', - 'Must configure Connector': '必须配置连接器', - 'Connector Id': '连接器编号', - 'Implementation': '实现方式', - 'Field Injections': '字段注入', - 'Fields': '字段', - 'Result Variable': '结果变量', - 'Topic': '主题', - 'Configure Connector': '配置连接器', - 'Input Parameter': '输入参数', - 'Assignee': '代理人', - 'Candidate Users': '候选用户', - 'Candidate Groups': '候选组', - 'Due Date': '到期时间', - 'Follow Up Date': '跟踪日期', - 'Priority': '优先级', - 'The follow up date as an EL expression (e.g. ${someDate} or an ISO date (e.g. 2015-06-26T09:54:00)': '跟踪日期必须符合EL表达式,如: ${someDate} ,或者一个ISO标准日期,如:2015-06-26T09:54:00', - 'The due date as an EL expression (e.g. ${someDate} or an ISO date (e.g. 2015-06-26T09:54:00)': '跟踪日期必须符合EL表达式,如: ${someDate} ,或者一个ISO标准日期,如:2015-06-26T09:54:00', - 'Variables': '变量' -} - -export const NodeName = { - 'bpmn:Process': '流程', - 'bpmn:StartEvent': '开始事件', - 'bpmn:IntermediateThrowEvent': '中间事件', - 'bpmn:Task': '任务', - 'bpmn:SendTask': '发送任务', - 'bpmn:ReceiveTask': '接收任务', - 'bpmn:UserTask': '用户任务', - 'bpmn:ManualTask': '手工任务', - 'bpmn:BusinessRuleTask': '业务规则任务', - 'bpmn:ServiceTask': '服务任务', - 'bpmn:ScriptTask': '脚本任务', - 'bpmn:EndEvent': '结束事件', - 'bpmn:SequenceFlow': '流程线', - 'bpmn:ExclusiveGateway': '互斥网关', - 'bpmn:ParallelGateway': '并行网关', - 'bpmn:InclusiveGateway': '相容网关', - 'bpmn:ComplexGateway': '复杂网关', - 'bpmn:EventBasedGateway': '事件网关' -} diff --git a/ruoyi-ui/src/components/FormDesigner/configPanel.vue b/ruoyi-ui/src/components/FormDesigner/configPanel.vue deleted file mode 100644 index fd659efe..00000000 --- a/ruoyi-ui/src/components/FormDesigner/configPanel.vue +++ /dev/null @@ -1,76 +0,0 @@ - - - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/configs/Switch.vue b/ruoyi-ui/src/components/FormDesigner/custom/configs/Switch.vue deleted file mode 100644 index 0b4b74c3..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/configs/Switch.vue +++ /dev/null @@ -1,74 +0,0 @@ - - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/configs/alert.vue b/ruoyi-ui/src/components/FormDesigner/custom/configs/alert.vue deleted file mode 100644 index c193d7fd..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/configs/alert.vue +++ /dev/null @@ -1,72 +0,0 @@ - - diff --git a/ruoyi-ui/src/components/FormDesigner/custom/configs/barCode.vue b/ruoyi-ui/src/components/FormDesigner/custom/configs/barCode.vue deleted file mode 100644 index d03b3e06..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/configs/barCode.vue +++ /dev/null @@ -1,81 +0,0 @@ - - diff --git a/ruoyi-ui/src/components/FormDesigner/custom/configs/button.vue b/ruoyi-ui/src/components/FormDesigner/custom/configs/button.vue deleted file mode 100644 index 1118db11..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/configs/button.vue +++ /dev/null @@ -1,93 +0,0 @@ - - diff --git a/ruoyi-ui/src/components/FormDesigner/custom/configs/cascader.vue b/ruoyi-ui/src/components/FormDesigner/custom/configs/cascader.vue deleted file mode 100644 index 1cc5a1d9..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/configs/cascader.vue +++ /dev/null @@ -1,192 +0,0 @@ - - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/configs/checkbox.vue b/ruoyi-ui/src/components/FormDesigner/custom/configs/checkbox.vue deleted file mode 100644 index 44adc348..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/configs/checkbox.vue +++ /dev/null @@ -1,203 +0,0 @@ - - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/configs/colorPicker.vue b/ruoyi-ui/src/components/FormDesigner/custom/configs/colorPicker.vue deleted file mode 100644 index 3ef564df..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/configs/colorPicker.vue +++ /dev/null @@ -1,91 +0,0 @@ - - - diff --git a/ruoyi-ui/src/components/FormDesigner/custom/configs/date.vue b/ruoyi-ui/src/components/FormDesigner/custom/configs/date.vue deleted file mode 100644 index 82dd498c..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/configs/date.vue +++ /dev/null @@ -1,127 +0,0 @@ - - - diff --git a/ruoyi-ui/src/components/FormDesigner/custom/configs/dialogList.vue b/ruoyi-ui/src/components/FormDesigner/custom/configs/dialogList.vue deleted file mode 100644 index 46021052..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/configs/dialogList.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/configs/divider.vue b/ruoyi-ui/src/components/FormDesigner/custom/configs/divider.vue deleted file mode 100644 index df2dd4b6..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/configs/divider.vue +++ /dev/null @@ -1,39 +0,0 @@ - - diff --git a/ruoyi-ui/src/components/FormDesigner/custom/configs/dynamicTable.vue b/ruoyi-ui/src/components/FormDesigner/custom/configs/dynamicTable.vue deleted file mode 100644 index 10ce5369..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/configs/dynamicTable.vue +++ /dev/null @@ -1,44 +0,0 @@ - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/configs/editor.vue b/ruoyi-ui/src/components/FormDesigner/custom/configs/editor.vue deleted file mode 100644 index 8c1acfbe..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/configs/editor.vue +++ /dev/null @@ -1,47 +0,0 @@ - - diff --git a/ruoyi-ui/src/components/FormDesigner/custom/configs/html.vue b/ruoyi-ui/src/components/FormDesigner/custom/configs/html.vue deleted file mode 100644 index 42e97726..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/configs/html.vue +++ /dev/null @@ -1,54 +0,0 @@ - - - diff --git a/ruoyi-ui/src/components/FormDesigner/custom/configs/input.vue b/ruoyi-ui/src/components/FormDesigner/custom/configs/input.vue deleted file mode 100644 index b3217cd8..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/configs/input.vue +++ /dev/null @@ -1,174 +0,0 @@ - - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/configs/inputNumber.vue b/ruoyi-ui/src/components/FormDesigner/custom/configs/inputNumber.vue deleted file mode 100644 index 3dc357f2..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/configs/inputNumber.vue +++ /dev/null @@ -1,83 +0,0 @@ - - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/configs/link.vue b/ruoyi-ui/src/components/FormDesigner/custom/configs/link.vue deleted file mode 100644 index 65135315..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/configs/link.vue +++ /dev/null @@ -1,68 +0,0 @@ - - diff --git a/ruoyi-ui/src/components/FormDesigner/custom/configs/radio.vue b/ruoyi-ui/src/components/FormDesigner/custom/configs/radio.vue deleted file mode 100644 index 38fd474f..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/configs/radio.vue +++ /dev/null @@ -1,198 +0,0 @@ - - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/configs/rate.vue b/ruoyi-ui/src/components/FormDesigner/custom/configs/rate.vue deleted file mode 100644 index fae0cbd4..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/configs/rate.vue +++ /dev/null @@ -1,68 +0,0 @@ - - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/configs/row.vue b/ruoyi-ui/src/components/FormDesigner/custom/configs/row.vue deleted file mode 100644 index 8bbb5f02..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/configs/row.vue +++ /dev/null @@ -1,55 +0,0 @@ - - - diff --git a/ruoyi-ui/src/components/FormDesigner/custom/configs/select.vue b/ruoyi-ui/src/components/FormDesigner/custom/configs/select.vue deleted file mode 100644 index 365532d9..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/configs/select.vue +++ /dev/null @@ -1,179 +0,0 @@ - - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/configs/slider.vue b/ruoyi-ui/src/components/FormDesigner/custom/configs/slider.vue deleted file mode 100644 index da501e25..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/configs/slider.vue +++ /dev/null @@ -1,78 +0,0 @@ - - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/configs/table.vue b/ruoyi-ui/src/components/FormDesigner/custom/configs/table.vue deleted file mode 100644 index 1041fcb2..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/configs/table.vue +++ /dev/null @@ -1,40 +0,0 @@ - - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/configs/tdItem.vue b/ruoyi-ui/src/components/FormDesigner/custom/configs/tdItem.vue deleted file mode 100644 index ef098849..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/configs/tdItem.vue +++ /dev/null @@ -1,28 +0,0 @@ - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/configs/text.vue b/ruoyi-ui/src/components/FormDesigner/custom/configs/text.vue deleted file mode 100644 index 7b4b48dd..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/configs/text.vue +++ /dev/null @@ -1,51 +0,0 @@ - - diff --git a/ruoyi-ui/src/components/FormDesigner/custom/configs/textarea.vue b/ruoyi-ui/src/components/FormDesigner/custom/configs/textarea.vue deleted file mode 100644 index 277316ab..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/configs/textarea.vue +++ /dev/null @@ -1,83 +0,0 @@ - - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/configs/time.vue b/ruoyi-ui/src/components/FormDesigner/custom/configs/time.vue deleted file mode 100644 index a0ef6893..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/configs/time.vue +++ /dev/null @@ -1,74 +0,0 @@ - - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/configs/upload.vue b/ruoyi-ui/src/components/FormDesigner/custom/configs/upload.vue deleted file mode 100644 index 9223a282..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/configs/upload.vue +++ /dev/null @@ -1,95 +0,0 @@ - - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/formConf.js b/ruoyi-ui/src/components/FormDesigner/custom/formConf.js deleted file mode 100644 index 9c56adbf..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/formConf.js +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 表单配置 - */ -const formConf = { - version:'1.10', - formRef: 'elForm', - formModel: 'form', - rules: 'rules', - size: 'medium', - labelPosition: 'right', - labelWidth: 80, - formRules: 'rules', - gutter: 15, - disabled: false, - dynamicTableAllowed:true -}; -export default formConf; - -//动态表单允许放入的组件 -export const dynamicTableAllowedItems = [ - 'input', - 'select', - 'radio', - 'checkbox', - 'Switch', - 'inputNumber', - 'textarea', - 'slider', - 'rate', - 'date', - 'time' -]; - -//row允许放入的items -export const rowAllowedItems = [ - 'input', - 'input', - 'select', - 'radio', - 'checkbox', - 'Switch', - 'inputNumber', - 'textarea', - 'slider', - 'rate', - 'date', - 'time' -] -//table允许放入的items -export const tableAllowedItems = [ - 'row','dynamicTable' -] \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/formDraw.js b/ruoyi-ui/src/components/FormDesigner/custom/formDraw.js deleted file mode 100644 index 972cd7cd..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/formDraw.js +++ /dev/null @@ -1,106 +0,0 @@ -//初始化data里面的数据(1、默认为空,2、之前存在的数据。。) -let itemDatas = {} -export function datas(){ - itemDatas = {}; - let self = this; - this.itemList.forEach(val => { - if(val.layout === 'rowItem'){ //row布局 - dataResolveRowItem(val); //解析row布局 - }else if(val.layout === 'dynamicItem'){ //动态表单布局 - let obj =dataResolveDynamicItem(val); - let array = []; - array.push(obj); - itemDatas[val.id] = array; - }else if(val.layout === 'tableItem'){ //表格布局 - dataResolveTableItem(val); - }else{ //表单 - dataResolveColItem(val); - } - }) - Object.keys(itemDatas).forEach(key =>{ - this.$set(this.form, key, itemDatas[key]); - }) -} - -function dataResolveRowItem(val){ - const columns = val.columns; - columns.forEach(v =>{ - v.list.forEach(item =>{ - if(item.layout==='dynamicItem'){ - let obj =dataResolveDynamicItem(item); - let array = []; - array.push(obj); - itemDatas[item.id] = array; - }else{ - dataResolveColItem(item); - } - }) - }) -} -function dataResolveDynamicItem(val){ - const columns = val.columns; - - let obj ={}; - columns.forEach(v =>{ - const key = v.id; - obj[key] = v.value; - }) - return obj; -} - -/* -遍历表格实现组件渲染 -*/ -function dataResolveTableItem(val){ - val.layoutArray.map((tr)=>{ - tr.map((td)=>{ - td.columns.map(item=>dataResolveColItem(item)); - }) - }) -} - -function dataResolveColItem(val){ - itemDatas[val.id] = val.value; -} - -export function fillDatas(jsonValue){ - const self = this; - Object.keys(jsonValue).forEach(key =>{ - - if(typeof(self.form[key]) === 'string'||typeof(self.form[key]) === 'number'){ - self.$set(self.form, key,jsonValue[key]); - }else if(self.form[key] instanceof Array){//有可能是多选或者是明细表 - //判断是否数组中为对象 - if(jsonValue[key].length>0){ - const firsValue = jsonValue[key][0];//获取第一个对象判断是什么类型 - if(typeof(firsValue) === 'string'||typeof(firsValue) === 'number'){ - self.$set(self.form, key,jsonValue[key]); - }else{ //明细表数组 - const arrayData = jsonValue[key]; - //self.form[key] = []; - arrayData.forEach((v,index)=>{ - const newV = JSON.parse(JSON.stringify(v)); - self.$set(self.form[key],index,newV); - }) - } - } - } - }) - //console.log(this.form); - } - -export function addRow(element){ - let obj =dataResolveDynamicItem(element); - this.form[element.id].push(obj); -} - -export function deleteRow(scope,element){ - this.form[element.id].splice(scope.$index,1); -} - -export function batchDeleteRow(indexs,element){ - for(let i =0;i { -// return [ -// h("Input", {}) -// ]; -// }; - -export let checkbox = { - id:'', - _id:'', - compType: 'checkbox', - //控件名称 - compName:'复选框', - //element标签 - ele: 'el-checkbox-group', - //图标 - compIcon:'checkbox', - //展示表单的模式 - viewType:'component', - // 是否可配置 - config: true, - // 控件左侧label内容 - label: '复选框', - placeholder: '请选择', - // 最大长度 - maxLength: 50, - //表单栅格 - span:24, - //栅格间隔 - gutter:'15', - //标签宽度 - labelWidth:80, - //显示标签 - showLabel:true, - //必填 - required:false, - //禁用 - disabled:false, - //是否有边框 - border:false, - //选项是否垂直 - vertical:false, - //选项大小 - size:'medium', - //是否是按钮 - optionType:'default', - //选项列表 - options:[{ - label: '选项一', - value: 1 - }, { - label: '选项二', - value: 2 - }], - //数据类型 static,dynamic - dataType:'static', - //默认渲染的数据 - action:'https://www.fastmock.site/mock/51715c0157535b99010bde55f2df33c8/formDesigner/api/options', - value: [], - rules:[], - // 验证错误提示信息 - ruleError: '该字段不能为空' -} diff --git a/ruoyi-ui/src/components/FormDesigner/custom/items/colorPicker.js b/ruoyi-ui/src/components/FormDesigner/custom/items/colorPicker.js deleted file mode 100644 index 53048494..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/items/colorPicker.js +++ /dev/null @@ -1,37 +0,0 @@ -/** - * 单行&多行输入框 - */ -export let colorPicker = { - id:'', - _id:'', - compType: 'colorPicker', - ele: 'el-color-picker', - //控件名称(左侧显示) - compName:'颜色选择器', - //图标 - compIcon:'colorpicker', - //展示表单的模式 - viewType:'component', - - //暂时默认为true,无法更改,后期考虑某些时候无法配置 - config: true, - // 控件左侧label内容 - showLabel:false, - label: '单行文本', - labelWidth: 0, - //是否可以禁用 - disabled:false, - //大小,medium / small / mini - size:'medium', - //primary / success / warning / danger / info / text - type:'primary', - span:24, - //选择透明度 - 'show-alpha':false, - //格式 - 'color-format':'hex', - //预定义颜色 - predefine:[], - value:'#409EFF' - } - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/items/date.js b/ruoyi-ui/src/components/FormDesigner/custom/items/date.js deleted file mode 100644 index 9dc443bd..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/items/date.js +++ /dev/null @@ -1,44 +0,0 @@ -/** - * 单行&多行输入框 - */ -export let date = { - id:'', - _id:'', - compType: 'date', - ele: 'el-date-picker', - //控件名称(左侧显示) - compName:'日期', - //图标 - compIcon:'date', - //展示表单的模式 - viewType:'text', - // 是否可配置 - //暂时默认为true,无法更改,后期考虑某些时候无法配置 - config: true, - // 控件左侧label内容 - showLabel:true, - label: '日期', - labelWidth: '80', - placeholder: '请选择', - // 是否必填 - required: false, - // 最大长度 - maxLength: 50, - //栅格间隔 - gutter:15, - //默认栅格 - span:24, - //是否可清空 - clearable:true, - disabled:false, - readonly:false, - value: '', - rules:[], - //时间类型 - type:'date', - format:'yyyy-MM-dd', - 'value-format':'yyyy-MM-dd', - 'range-separator':'-', - 'start-placeholder':'开始日期', - 'end-placeholder':'结束日期' -} diff --git a/ruoyi-ui/src/components/FormDesigner/custom/items/dialogList.js b/ruoyi-ui/src/components/FormDesigner/custom/items/dialogList.js deleted file mode 100644 index 0f67dca8..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/items/dialogList.js +++ /dev/null @@ -1,50 +0,0 @@ -/** - * dialogList - */ - export let dialogList = { - id:'', - _id:'', - compType: 'dialogList', - ele: 'fancy-dialog-list', - //控件名称(左侧显示) - compName:'选择列表', - //图标 - compIcon:'dialog', - //展示表单的模式 - viewType:'component', - - // 是否可配置 - //暂时默认为true,无法更改,后期考虑某些时候无法配置 - config: true, - // 控件左侧label内容 - showLabel:true, - label: '选择列表', - labelWidth: '80', - showLabel: true, - labelWidth: 80, - // 是否必填 - required: false, - //栅格间隔 - gutter:15, - //默认栅格 - span:24, - //禁用 - disabled:false, - //标题 - title:'请选择', - //多选 - multi:false, - //显示序号 - showIndex:false, - //请求地址 - action:'https://www.fastmock.site/mock/51715c0157535b99010bde55f2df33c8/formDesigner/api/dialogListData', - //字段配置 - colConf:'[{"index":0,"label":"姓名","property":"name","width":"250","show":true},{"index":1,"label":"日期","property":"date","width":"150","show":true},{"index":2,"label":"地址","property":"address","width":"","show":true}]', - // //值 - dval:'id', - //字段 - dlabel:'name', - height:500, - value: '' - } - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/items/divider.js b/ruoyi-ui/src/components/FormDesigner/custom/items/divider.js deleted file mode 100644 index 825a2ba1..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/items/divider.js +++ /dev/null @@ -1,21 +0,0 @@ -/** - * 分割线 - */ -export let divider = { - id:'', - _id:'', - compType: 'divider', - ele: 'el-divider', - compName:'分割线', - compIcon:'divider', - //展示表单的模式 - viewType:'component', - config: true, - form:false, - //内容坐标 left|center|right - 'content-position':'left', - text:'', - // 控件左侧label内容 - showLabel:false, - labelWidth: '0' -} diff --git a/ruoyi-ui/src/components/FormDesigner/custom/items/dynamicTable.js b/ruoyi-ui/src/components/FormDesigner/custom/items/dynamicTable.js deleted file mode 100644 index 7be10e8c..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/items/dynamicTable.js +++ /dev/null @@ -1,34 +0,0 @@ -/** - * 动态表单 - */ -export let dynamicTable = { - id:'', - _id:'', - compType: 'dynamicTable', - ele: 'dynamic-table', - //控件名称(左侧显示) - compName:'动态表格', - layout:'dynamicItem', - //图标 - compIcon:'table', - // 是否可配置 - //暂时默认为true,无法更改,后期考虑某些时候无法配置 - //显示标签 - labelWidth:0, - showLabel:false, - config: true, - //显示新增按钮 - buttonAdd:true, - //显示删除按钮 - buttonDel:true, - //显示行号 - showIndex:true, - visible:true, - multiCheck:false, - //合计行 - 'show-summary':false, - 'sum-text':'合计', - 'summary-text':'元', - columns:[ - ] -} diff --git a/ruoyi-ui/src/components/FormDesigner/custom/items/editor.js b/ruoyi-ui/src/components/FormDesigner/custom/items/editor.js deleted file mode 100644 index 546965dd..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/items/editor.js +++ /dev/null @@ -1,27 +0,0 @@ -/** - * 富文本编辑器 - */ -export let editor = { - id:'', - _id:'', - compType: 'editor', - ele: 'fancy-editor', - compName:'编辑器', - compIcon:'editor', - //展示表单的模式 - viewType:'html', - config: true, - form:true, - // 控件左侧label内容 - showLabel:true, - labelWidth: '80', - label:'文本编辑器', - value:'', - required:false, - validateMaxText:false, - //最大长度 - max:2000, - //自定义rules - customRules:[] - } - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/items/html.js b/ruoyi-ui/src/components/FormDesigner/custom/items/html.js deleted file mode 100644 index 8e2ff76b..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/items/html.js +++ /dev/null @@ -1,21 +0,0 @@ -/**废弃 */ -/** - * html - */ -export let html = { - id:'', - _id:'', - compType: 'html', - ele: 'fancy-html', - compName:'HTML', - compIcon:'html', - //展示表单的模式 - viewType:'component', - config: true, - form:false, - text:'html', - // 控件左侧label内容 - showLabel:false, - label:'', - labelWidth: '0' -} diff --git a/ruoyi-ui/src/components/FormDesigner/custom/items/input.js b/ruoyi-ui/src/components/FormDesigner/custom/items/input.js deleted file mode 100644 index 201877e4..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/items/input.js +++ /dev/null @@ -1,53 +0,0 @@ -/** - * 单行&多行输入框 - */ -export let input = { - id:'', - _id:'', - compType: 'input', - ele: 'el-input', - //控件名称(左侧显示) - compName:'单行文本', - //图标 - compIcon:'input', - //展示表单的模式 - viewType:'text', - - // 是否可配置 - //暂时默认为true,无法更改,后期考虑某些时候无法配置 - config: true, - // 控件左侧label内容 - showLabel:true, - label: '单行文本', - labelWidth: '80', - placeholder: '请输入文本', - // 是否必填 - required: false, - // 最大长度 - maxLength: 50, - //栅格间隔 - gutter:15, - //默认栅格 - span:24, - //组件长度 - width: '100%', - //是否可清空 - clearable:true, - disabled:false, - readonly:false, - //状态,正常,只读,禁用 - status:'normal', - //前置图标 - 'prefix-icon':'', - //后置图标 - 'suffix-icon':'', - value: '', - //验证规则(字符,phone,email,number) - rules:[], - //验证规则 - rulesType:'default', - //前缀 - prepend:'', - //后缀 - append:'' -} diff --git a/ruoyi-ui/src/components/FormDesigner/custom/items/inputNumber.js b/ruoyi-ui/src/components/FormDesigner/custom/items/inputNumber.js deleted file mode 100644 index 58b72f71..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/items/inputNumber.js +++ /dev/null @@ -1,36 +0,0 @@ -/** - * 计数器 - */ -export let inputNumber = { - id:'', - _id:'', - compType: 'inputNumber', - ele: 'el-inputNumber', - //控件名称(左侧显示) - compName:'计数器', - label: '计数器', - //图标 - compIcon:'inputNumber', - //展示表单的模式 - viewType:'text', - //暂时默认为true,无法更改,后期考虑某些时候无法配置 - config: true, - // 控件左侧label内容 - showLabel:true, - //栅格间隔 - gutter:15, - labelWidth: '80', - value: 0, - rules:[], - span: 24, - min: 0, - max: 100, - step: 1, - 'step-strictly': false, - precision: 0, - 'controls-position': 'default', - disabled: false, - readonly: false, - required: false, - regList: [] -} diff --git a/ruoyi-ui/src/components/FormDesigner/custom/items/link.js b/ruoyi-ui/src/components/FormDesigner/custom/items/link.js deleted file mode 100644 index c9bafdda..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/items/link.js +++ /dev/null @@ -1,32 +0,0 @@ -/** - * 文字链接 - */ -export let link = { - id:'', - _id:'', - compType: 'link', - ele: 'el-link', - compName:'文字链接', - compIcon:'link', - //展示表单的模式 - viewType:'component', - config: true, - - form:false, //是否表单组件 - // 控件左侧label内容 - showLabel:false, - labelWidth: '0', - span:24, - - //主题 - type:'primary', - //链接地址 - href:'http://www.baidu.com', - //是否下划线 - underline:true, - //是否禁用 - disabled:false, - text:'链接', - target:'_blank' - } - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/items/radio.js b/ruoyi-ui/src/components/FormDesigner/custom/items/radio.js deleted file mode 100644 index 6cde4fc9..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/items/radio.js +++ /dev/null @@ -1,62 +0,0 @@ -// export default (_self, h) => { -// return [ -// h("Input", {}) -// ]; -// }; - -export let radio = { - id:'', - _id:'', - compType: 'radio', - //控件名称 - compName:'单选框', - //element标签 - ele: 'el-radio-group', - //图标 - compIcon:'radio', - //展示表单的模式 - viewType:'component', - // 是否可配置 - config: true, - // 控件左侧label内容 - label: '单选框', - placeholder: '请选择', - // 最大长度 - maxLength: 50, - //表单栅格 - span:24, - //栅格间隔 - gutter:'15', - //标签宽度 - labelWidth:80, - //显示标签 - showLabel:true, - //必填 - required:false, - //禁用 - disabled:false, - //是否有边框 - border:false, - //选项是否垂直 - vertical:false, - //选项大小 - size:'medium', - //是否是按钮 - optionType:'default', - //选项列表 - options:[{ - label: '选项一', - value: 1 - }, { - label: '选项二', - value: 2 - }], - //数据类型 static,dynamic - dataType:'static', - //默认渲染的数据 - action:'https://www.fastmock.site/mock/51715c0157535b99010bde55f2df33c8/formDesigner/api/options', - value: '', - rules:[], - // 验证错误提示信息 - ruleError: '该字段不能为空' -} diff --git a/ruoyi-ui/src/components/FormDesigner/custom/items/rate.js b/ruoyi-ui/src/components/FormDesigner/custom/items/rate.js deleted file mode 100644 index 8f9d1e88..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/items/rate.js +++ /dev/null @@ -1,31 +0,0 @@ -/** - * 评分 - */ -export let rate = { - id:'', - _id:'', - compType: 'rate', - ele: 'el-rate', - //控件名称(左侧显示) - compName:'评分', - label: '评分', - //图标 - compIcon:'rate', - //展示表单的模式 - viewType:'component', - //暂时默认为true,无法更改,后期考虑某些时候无法配置 - config: true, - // 控件左侧label内容 - showLabel:true, - //栅格间隔 - gutter:15, - labelWidth: '80', - value: 1, - rules:[], - span: 24, - disabled: false, - required: false, - max: 5, - 'allow-half': false, - 'show-score': false -} \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/items/row.js b/ruoyi-ui/src/components/FormDesigner/custom/items/row.js deleted file mode 100644 index 43fbbe41..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/items/row.js +++ /dev/null @@ -1,43 +0,0 @@ -/** - * 栅格布局 - */ - - // export default (_self, h) => { -// return [ -// h("Input", {}) -// ]; -// }; - -export let row = { - id:'', - _id:'', - compType: 'row', - //控件名称 - compName:'栅格布局', - //element标签 - ele: 'el-row', - //图标 - compIcon:'col', - layout:'rowItem', - // 是否可配置 - config: true, - // - flex:'default', - justify:'start', - align:'top', - gutter:0, - columns:[ - { - index:0, - span:12, - list:[] - }, - { - index:1, - span:12, - list:[] - } - ], - - -} diff --git a/ruoyi-ui/src/components/FormDesigner/custom/items/select.js b/ruoyi-ui/src/components/FormDesigner/custom/items/select.js deleted file mode 100644 index f66bece4..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/items/select.js +++ /dev/null @@ -1,56 +0,0 @@ -export let select = { - id:'', - _id:'', - compType: 'select', - //控件名称 - compName:'下拉框', - //element标签 - ele: 'el-select', - //图标 - compIcon:'select', - //展示表单的模式 - viewType:'component', - // 是否可配置 - config: true, - // 控件左侧label内容 - label: '下拉框', - placeholder: '请选择', - // 最大长度 - maxLength: 50, - //表单栅格 - span:24, - //栅格间隔 - gutter:'15', - //标签宽度 - labelWidth:80, - //显示标签 - showLabel:true, - //必填 - required:false, - //多选 - multiple:false, - 'collapse-tags':false, - //禁用 - disabled:false, - //搜索 - filterable:false, - - //选项列表 - options:[{ - label: '选项一', - value: 1 - }, { - label: '选项二', - value: 2 - }], - //数据类型 static,dynamic - dataType:'static', - //默认渲染的数据 - action:'https://www.fastmock.site/mock/51715c0157535b99010bde55f2df33c8/formDesigner/api/options', - //是否可以清空 - clearable:false, - value: '', - rules:[], - // 验证错误提示信息 - ruleError: '该字段不能为空' -} diff --git a/ruoyi-ui/src/components/FormDesigner/custom/items/slider.js b/ruoyi-ui/src/components/FormDesigner/custom/items/slider.js deleted file mode 100644 index dada6c18..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/items/slider.js +++ /dev/null @@ -1,40 +0,0 @@ -/** - * 单行&多行输入框 - */ -export let slider = { - id:'', - _id:'', - compType: 'slider', - ele: 'el-slider', - //控件名称(左侧显示) - compName:'滑块', - label: '滑块', - //图标 - compIcon:'slider', - //展示表单的模式 - viewType:'component', - //暂时默认为true,无法更改,后期考虑某些时候无法配置 - config: true, - // 控件左侧label内容 - showLabel:true, - //栅格间隔 - gutter:15, - labelWidth: '80', - value: 0, - rules:[], - span: 24, - disabled: false, - required: false, - //最小值 - min: 0, - //最大值 - max: 20, - //步长 - step: 1, - //是否显示断点 - 'show-stops': true, - //是否显示tooltip - 'show-tooltip': true, - //范围选择 1,50 - range: false -} \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/items/table.js b/ruoyi-ui/src/components/FormDesigner/custom/items/table.js deleted file mode 100644 index 4741a7aa..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/items/table.js +++ /dev/null @@ -1,24 +0,0 @@ -/** - * 表格布局 - */ -import {getDefaultTrs} from '../../table/table' -let trs = getDefaultTrs(); - export let table = { - id:'', - _id:'', - compType: 'table', - ele: 'fancy-table', - //控件名称(左侧显示) - compName:'表格布局', - //图标 - compIcon:'table_layout', - layout:'tableItem', - // 是否可配置 - //暂时默认为true,无法更改,后期考虑某些时候无法配置 - config: true, - layoutArray:trs, - //单元格样式 - tdStyle:'', - width:100, - height:50 - } \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/items/text.js b/ruoyi-ui/src/components/FormDesigner/custom/items/text.js deleted file mode 100644 index 9fddbb45..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/items/text.js +++ /dev/null @@ -1,25 +0,0 @@ -/** - * 文本 - */ -export let text = { - id:'', - _id:'', - compType: 'text', - ele: 'fancy-text', - compName:'文本', - compIcon:'text', - //展示表单的模式 - viewType:'component', - config: true, - form:false, - show:true, - text:'文本', - align:'left', - color:'#000000', - size:'14', - bold:'400', - // 控件左侧label内容 - showLabel:false, - labelWidth: '0' - } - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/items/textarea.js b/ruoyi-ui/src/components/FormDesigner/custom/items/textarea.js deleted file mode 100644 index fad6bdf9..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/items/textarea.js +++ /dev/null @@ -1,45 +0,0 @@ -/** - * 单行&多行输入框 - */ -export let textarea = { - id:'', - _id:'', - compType: 'textarea', - ele: 'el-input', - //控件名称(左侧显示) - compName:'多行文本', - //图标 - compIcon:'textarea', - //展示表单的模式 - viewType:'text', - // 是否可配置 - //暂时默认为true,无法更改,后期考虑某些时候无法配置 - config: true, - // 控件左侧label内容 - showLabel:true, - label: '多行文本', - labelWidth: '80', - placeholder: '请输入文本', - type:'textarea', - // 是否必填 - required: false, - // 最大长度 - maxlength: 50, - //输入统计 - 'show-word-limit':false, - //栅格间隔 - gutter:15, - //默认栅格 - span:24, - //是否可清空 - clearable:true, - disabled:false, - readonly:false, - rows:4, - //状态,正常,只读,禁用 - status:'normal', - value: '', - rules:[], - // 验证错误提示信息 - ruleError: '该字段不能为空' -} diff --git a/ruoyi-ui/src/components/FormDesigner/custom/items/time.js b/ruoyi-ui/src/components/FormDesigner/custom/items/time.js deleted file mode 100644 index 8a8cf4b2..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/items/time.js +++ /dev/null @@ -1,46 +0,0 @@ -/** - * 单行&多行输入框 - */ -export let time = { - id:'', - _id:'', - compType: 'time', - ele: 'el-time-picker', - //控件名称(左侧显示) - compName:'时间', - //图标 - compIcon:'time', - //展示表单的模式 - viewType:'text', - // 是否可配置 - //暂时默认为true,无法更改,后期考虑某些时候无法配置 - config: true, - // 控件左侧label内容 - showLabel:true, - label: '时间', - labelWidth: '80', - placeholder: '请选择', - // 是否必填 - required: false, - // 最大长度 - maxLength: 50, - //栅格间隔 - gutter:15, - //默认栅格 - span:24, - //是否可清空 - clearable:true, - disabled:false, - readonly:false, - value: '', - rules:[], - 'picker-options': { - selectableRange: '00:00:00-23:59:59' - }, - 'arrow-control':true, - align:'left', - format: 'HH:mm:ss', - 'value-format': 'HH:mm:ss', - 'is-range':false, - 'range-separator':'-' -} diff --git a/ruoyi-ui/src/components/FormDesigner/custom/items/upload.js b/ruoyi-ui/src/components/FormDesigner/custom/items/upload.js deleted file mode 100644 index 3a1e9f40..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/items/upload.js +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 上传组件 - */ -export let upload = { - id:'', - _id:'', - compType: 'upload', - ele: 'el-upload', - //控件名称(左侧显示) - compName:'附件', - //图标 - compIcon:'att', - //展示表单的模式 - viewType:'component', - - // 是否可配置 - //暂时默认为true,无法更改,后期考虑某些时候无法配置 - config: true, - // 控件左侧label内容 - showLabel:true, - label: '附件上传', - labelWidth: '80', - //栅格间隔 - gutter:15, - //默认栅格 - span:24, - // 是否必填 - required: false, - //上传地址 - action:'https://jsonplaceholder.typicode.com/posts/', - //多选上传 - multiple:false, - name:'file', - //显示上传文件列表 - 'show-file-list':true, - //文件列表类型 - 'list-type':'text', - value:'', - width:100, - //按钮文字 - buttonText:'请上传附件', - //是否显示描述 - showTip:false, - //描述内容 - tips:'点击按钮上传附件', - //允许文件类型 - accept:'.pdf, .doc, .docx, .xls, .xlsx', - //文件大小MB - fileSize:10, - headers:{'X-Access-Token':'token'}, -} diff --git a/ruoyi-ui/src/components/FormDesigner/custom/mixin/index.js b/ruoyi-ui/src/components/FormDesigner/custom/mixin/index.js deleted file mode 100644 index 36214d28..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/mixin/index.js +++ /dev/null @@ -1,30 +0,0 @@ -// 模态框 -export const remoteData = { - methods: { - getRemoteData(){ - //动态数据 - if(this.conf.dataType === 'dynamic'){ - this.$axios.get(this.conf.action).then(res => { - if(this.conf.options.length===0){ - this.conf.options = this.conf.options.concat(res.data); - } - }) - } - } - } -} - -export const changeId = { - methods: { - handlerChangeId(val){ - let idArray = this.getFormId(this.props._id); - console.log(idArray); - if(idArray.includes(val)){ //如果存在id相等,则提示 - this.$message.error('该ID已经存在,请修改'); - this.props.id=this.props._id; - }else{ - this.props._id=val; - } - } - } -} diff --git a/ruoyi-ui/src/components/FormDesigner/custom/previewRender.js b/ruoyi-ui/src/components/FormDesigner/custom/previewRender.js deleted file mode 100644 index 9ed5f04b..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/previewRender.js +++ /dev/null @@ -1,115 +0,0 @@ -import { isAttr,jsonClone } from '../utils'; -import childrenItem from './slot/index'; -import {remoteData} from './mixin'; -import Vue from 'vue' -import { getToken } from "@/utils/auth"; -import { Message } from 'element-ui' -import download from "@/plugins/download" -//先修改在这里,后续需要优化 -function vModel(self, dataObject) { - dataObject.props.value = self.value; - dataObject.on.input = val => { - self.$emit('input', val) - } - //判断是否为上传组件 - if(self.conf.compType === 'upload'){ - dataObject.attrs['headers'] = {"Authorization":"Bearer " + getToken()}; - console.log("dataObject.props.value",dataObject.props.value) - if(dataObject.props.value!==undefined && dataObject.props.value !==''){ - const filevalue = JSON.parse(dataObject.props.value); - dataObject.props['file-list'] = filevalue; - } - - dataObject.attrs['before-upload'] = file=>{ - //非限定后缀不允许上传 - const fileName = file.name; - const suffixName = fileName.split('.').pop(); - - if(!self.conf.accept.includes(suffixName)){ - self.$message.error('该后缀文件不允许上传'); - return false; - } - const fileSize = file.size; - if(fileSize>dataObject.props.fileSize*1024*1024){ - self.$message.error('文件大小超出限制,请检查!'); - return false; - } - } - dataObject.attrs['on-success'] = file=>{ - if(file.code === 500){ - Message({ message: file.msg,type: 'error' }) - return false - } - console.log("on-success",file) - //获取文件名称 - var filename=file.data.fileName.substring(file.data.fileName.lastIndexOf('/')+1) - //获取文件路径 - var url=file.data.url - // ossId - var ossId = file.data.ossId - let fileObj = {name: filename, url: url,ossId: ossId} - let oldValue = []; - if(dataObject.props.value) { - oldValue = JSON.parse(dataObject.props.value); - }else { - oldValue = []; - } - if (oldValue) { - oldValue.push(fileObj) - } else { - oldValue = [fileObj] - } - self.$emit('input',JSON.stringify(oldValue)); - } - dataObject.attrs['on-remove'] = (file, fileList) => { - let oldValue = JSON.parse(dataObject.props.value); - //file 删除的文件 - //过滤掉删除的文件 - let newValue = oldValue.filter(item => item.name !== file.name) - self.$emit('input',JSON.stringify(newValue)); - } - - dataObject.attrs['on-error'] = (file) => { - console.log("on-error file",file); - } - - dataObject.attrs['on-preview'] = (file) => { - console.log("on-preview file==",file); - download.oss(file.ossId); - } - } -} - -export default { - render(h) { - let dataObject = { - attrs: {}, - props: {}, - on: {}, - style: {} - } - //远程获取数据 - this.getRemoteData(); - const confClone = jsonClone(this.conf); - const children = childrenItem(h,confClone); - Object.keys(confClone).forEach(key => { - const val = confClone[key] - if (dataObject[key]) { - dataObject[key] = val - } else if(key ==='width'){ - dataObject.style= 'width:'+val; - } else if (!isAttr(key)) { - dataObject.props[key] = val - }else { - if(key !== 'value'){ - dataObject.attrs[key] = val - } - } - }) - /*调整赋值模式,规避cascader组件赋值props会出现覆盖预制参数的bug */ - vModel(this, dataObject); - return h(confClone.ele, dataObject, children) - }, - props: ['conf','value'], - mixins:[remoteData] -} diff --git a/ruoyi-ui/src/components/FormDesigner/custom/register.js b/ruoyi-ui/src/components/FormDesigner/custom/register.js deleted file mode 100644 index 4fe26a3b..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/register.js +++ /dev/null @@ -1,41 +0,0 @@ -//在此注册组件 -const components = [ - 'input', - 'select', - 'radio', - 'checkbox', - 'Switch', - 'inputNumber', - 'textarea', - 'slider', - 'rate', - 'date', - 'time', - 'editor', - 'colorPicker', - 'cascader', - 'upload', - 'button', - 'divider', - 'alert', - 'link', - 'dialogList', - 'barCode', - 'text', - 'html', - 'row', - 'dynamicTable', - 'table', - 'tdItem' -]; - - -let comps = []; -for (let i in components) { - const comp = { - name: components[i], - content : null - } - comps.push(comp); -} -export default comps; \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/render.js b/ruoyi-ui/src/components/FormDesigner/custom/render.js deleted file mode 100644 index 95e68d6f..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/render.js +++ /dev/null @@ -1,41 +0,0 @@ -import {isAttr,jsonClone} from '../utils/index'; -import childrenItem from './slot/index'; -import {remoteData} from './mixin'; -function vModel(self, dataObject) { - dataObject.on.input = val => { - self.$emit('input', val) - } -} - -export default { - render(h) { - let dataObject = { - attrs: {}, - props: {}, - on: {}, - style: {} - } - - //远程获取数据 - this.getRemoteData(); - const confClone = jsonClone(this.conf); - const children = childrenItem(h,confClone); - Object.keys(confClone).forEach(key => { - const val = confClone[key] - if (dataObject[key]) { - dataObject[key] = val - } else if (!isAttr(key)) { - dataObject.props[key] = val - } else if(key ==='width'){ - dataObject.style= 'width:'+val; - }else { - dataObject.attrs[key] = val - } - }) - /*调整赋值模式,规避cascader组件赋值props会出现覆盖预制参数的bug */ - vModel(this, dataObject); - return h(confClone.ele, dataObject, children) - }, - props: ['conf'], - mixins:[remoteData] -} diff --git a/ruoyi-ui/src/components/FormDesigner/custom/rule/index.js b/ruoyi-ui/src/components/FormDesigner/custom/rule/index.js deleted file mode 100644 index a659f2c9..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/rule/index.js +++ /dev/null @@ -1,21 +0,0 @@ -export default function checkRules(element) { - let r = []; - const _trigger = ['blur','change']; - if(element.required){ - r.push({required: true, message: element.label+'不能为空', trigger:_trigger}); - } - //判断是否有规则 - if(element.rules){ - element.rules.forEach(obj=>{ - r.push({pattern:new RegExp(obj.rule),message:obj.msg, trigger:_trigger}); - }); - } - //编辑器最大字数验证 - if(typeof element.validateMaxText !== 'undefined'&&element.validateMaxText){ - const maxRules = { - max: element.max, message: element.label+'超出最大字数限制', trigger:_trigger - } - r.push(maxRules); - } - return r; -}; \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/slot/el-button.js b/ruoyi-ui/src/components/FormDesigner/custom/slot/el-button.js deleted file mode 100644 index a9ed0c15..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/slot/el-button.js +++ /dev/null @@ -1,5 +0,0 @@ -export default { - slot(h,conf) { - return conf.text; - } -} \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/slot/el-checkbox-group.js b/ruoyi-ui/src/components/FormDesigner/custom/slot/el-checkbox-group.js deleted file mode 100644 index e399f512..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/slot/el-checkbox-group.js +++ /dev/null @@ -1,11 +0,0 @@ -export default { - slot(h,conf) { - const list = [] - const vertical = conf.vertical?'display:block;':''; - conf.options.forEach(item => { - if (conf.optionType === 'button') list.push({item.label}) - else list.push({item.label}) - }) - return list - } -} \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/slot/el-divider.js b/ruoyi-ui/src/components/FormDesigner/custom/slot/el-divider.js deleted file mode 100644 index af75bf57..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/slot/el-divider.js +++ /dev/null @@ -1,2 +0,0 @@ -import text from './el-button'; -export default text; \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/slot/el-input.js b/ruoyi-ui/src/components/FormDesigner/custom/slot/el-input.js deleted file mode 100644 index ad1d2864..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/slot/el-input.js +++ /dev/null @@ -1,12 +0,0 @@ -export default { - slot(h,conf) { - const slotText = [] - if(conf.prepend!==''){ - slotText.push(); - } - if(conf.append!==''){ - slotText.push(); - } - return slotText; - } -} \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/slot/el-link.js b/ruoyi-ui/src/components/FormDesigner/custom/slot/el-link.js deleted file mode 100644 index af75bf57..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/slot/el-link.js +++ /dev/null @@ -1,2 +0,0 @@ -import text from './el-button'; -export default text; \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/slot/el-radio-group.js b/ruoyi-ui/src/components/FormDesigner/custom/slot/el-radio-group.js deleted file mode 100644 index 8f3f9986..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/slot/el-radio-group.js +++ /dev/null @@ -1,11 +0,0 @@ -export default { - slot(h,conf) { - const list = []; - const vertical = conf.vertical?'display:block;':''; - conf.options.forEach(item => { - if (conf.optionType === 'button') list.push({item.label}) - else list.push({item.label}) - }) - return list - } -} \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/slot/el-select.js b/ruoyi-ui/src/components/FormDesigner/custom/slot/el-select.js deleted file mode 100644 index 534a9bc5..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/slot/el-select.js +++ /dev/null @@ -1,9 +0,0 @@ -export default { - slot(h,conf) { - const list = [] - conf.options.forEach(item => { - list.push() - }) - return list; - } -} \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/slot/el-upload.js b/ruoyi-ui/src/components/FormDesigner/custom/slot/el-upload.js deleted file mode 100644 index af4bdf58..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/slot/el-upload.js +++ /dev/null @@ -1,14 +0,0 @@ -export default { - slot(h,conf) { - const list = []; - if (conf['list-type'] === 'picture-card') { - list.push() - } else { - list.push({conf.buttonText}) - } - if (conf.showTip) { - list.push(
{conf.tips}
) - } - return list - } -} \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/slot/index.js b/ruoyi-ui/src/components/FormDesigner/custom/slot/index.js deleted file mode 100644 index b560f62d..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/slot/index.js +++ /dev/null @@ -1,21 +0,0 @@ -const slots = require.context('./', false, /\.js$/); -const componentChild = {}; -slots.keys().forEach(obj=>{ - const tag = obj.replace('./','').replace('.js',''); - if(tag !=='index'){ - componentChild[tag] = slots(obj).default; - } -}); - - -export default function childrenItem(h,confClone) { - let children = []; - const childObjs = componentChild[confClone.ele] - if (childObjs&&childObjs.slot) { - Object.keys(childObjs).forEach(key => { - const childFunc = childObjs[key] - children.push(childFunc(h,confClone)) - }) - } - return children; -}; \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/custom/viewRender.js b/ruoyi-ui/src/components/FormDesigner/custom/viewRender.js deleted file mode 100644 index 95036948..00000000 --- a/ruoyi-ui/src/components/FormDesigner/custom/viewRender.js +++ /dev/null @@ -1,60 +0,0 @@ -import { isAttr,jsonClone } from '../utils'; -import childrenItem from './slot/index'; -import {remoteData} from './mixin'; -import Vue from 'vue' -import { getToken } from "@/utils/auth"; -import download from "@/plugins/download" - -function vModel(self, dataObject) { - dataObject.props.value=self.value; - dataObject.on.input = val => { - self.$emit('input', val) - } - //判断是否为上传组件 - if(self.conf.compType === 'upload'){ - // add by nbacheng 2022-09-09 - dataObject.attrs['headers'] = {"Authorization":"Bearer " + getToken()}; - if(dataObject.props.value!==undefined && dataObject.props.value !==''){ - const filevalue = JSON.parse(dataObject.props.value); - dataObject.props['file-list'] = filevalue; - } - dataObject.attrs['on-preview'] = (file) => { - console.log("on-preview file",file); - //download(file); - download.oss(file.ossId); - } - } -} - -export default { - render(h) { - let dataObject = { - attrs: {}, - props: {}, - on: {}, - style: {} - } - - //远程获取数据 - this.getRemoteData(); - const confClone = jsonClone(this.conf); - const children = childrenItem(h,confClone); - Object.keys(confClone).forEach(key => { - const val = confClone[key] - if (dataObject[key]) { - dataObject[key] = val - } else if(key ==='width'){ - dataObject.style= 'width:'+val+'%'; - } else if (!isAttr(key)) { - dataObject.props[key] = val - } else { - dataObject.attrs[key] = val - } - }) - /*调整赋值模式,规避cascader组件赋值props会出现覆盖预制参数的bug */ - vModel(this, dataObject); - return h(confClone.ele, dataObject, children) - }, - props: ['conf','value'], - mixins:[remoteData] -} diff --git a/ruoyi-ui/src/components/FormDesigner/designItem.vue b/ruoyi-ui/src/components/FormDesigner/designItem.vue deleted file mode 100644 index 68f88fd8..00000000 --- a/ruoyi-ui/src/components/FormDesigner/designItem.vue +++ /dev/null @@ -1,255 +0,0 @@ - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/designer.vue b/ruoyi-ui/src/components/FormDesigner/designer.vue deleted file mode 100644 index 56900cfd..00000000 --- a/ruoyi-ui/src/components/FormDesigner/designer.vue +++ /dev/null @@ -1,394 +0,0 @@ - - - - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/dynamic/dynamicTable.vue b/ruoyi-ui/src/components/FormDesigner/dynamic/dynamicTable.vue deleted file mode 100644 index 3311e696..00000000 --- a/ruoyi-ui/src/components/FormDesigner/dynamic/dynamicTable.vue +++ /dev/null @@ -1,28 +0,0 @@ - - - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/dynamic/dynamicTableItem.vue b/ruoyi-ui/src/components/FormDesigner/dynamic/dynamicTableItem.vue deleted file mode 100644 index bca64757..00000000 --- a/ruoyi-ui/src/components/FormDesigner/dynamic/dynamicTableItem.vue +++ /dev/null @@ -1,112 +0,0 @@ - - - diff --git a/ruoyi-ui/src/components/FormDesigner/dynamic/dynamicTableOptButton.vue b/ruoyi-ui/src/components/FormDesigner/dynamic/dynamicTableOptButton.vue deleted file mode 100644 index a048c5b7..00000000 --- a/ruoyi-ui/src/components/FormDesigner/dynamic/dynamicTableOptButton.vue +++ /dev/null @@ -1,29 +0,0 @@ - - - - diff --git a/ruoyi-ui/src/components/FormDesigner/dynamic/fancyDynamicTable.vue b/ruoyi-ui/src/components/FormDesigner/dynamic/fancyDynamicTable.vue deleted file mode 100644 index 03397844..00000000 --- a/ruoyi-ui/src/components/FormDesigner/dynamic/fancyDynamicTable.vue +++ /dev/null @@ -1,147 +0,0 @@ - - - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/dynamic/fancyDynamicTableItem.vue b/ruoyi-ui/src/components/FormDesigner/dynamic/fancyDynamicTableItem.vue deleted file mode 100644 index 2ef42d4d..00000000 --- a/ruoyi-ui/src/components/FormDesigner/dynamic/fancyDynamicTableItem.vue +++ /dev/null @@ -1,55 +0,0 @@ - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/dynamic/fancyDynamicTableViewItem.vue b/ruoyi-ui/src/components/FormDesigner/dynamic/fancyDynamicTableViewItem.vue deleted file mode 100644 index a8df2ea1..00000000 --- a/ruoyi-ui/src/components/FormDesigner/dynamic/fancyDynamicTableViewItem.vue +++ /dev/null @@ -1,45 +0,0 @@ - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/dynamic/fancyDynamicViewTable.vue b/ruoyi-ui/src/components/FormDesigner/dynamic/fancyDynamicViewTable.vue deleted file mode 100644 index 732bdab9..00000000 --- a/ruoyi-ui/src/components/FormDesigner/dynamic/fancyDynamicViewTable.vue +++ /dev/null @@ -1,88 +0,0 @@ - - - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/extend/fancyDialogList.vue b/ruoyi-ui/src/components/FormDesigner/extend/fancyDialogList.vue deleted file mode 100644 index ae26df13..00000000 --- a/ruoyi-ui/src/components/FormDesigner/extend/fancyDialogList.vue +++ /dev/null @@ -1,259 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/extend/fancyEditor.vue b/ruoyi-ui/src/components/FormDesigner/extend/fancyEditor.vue deleted file mode 100644 index ae8155a0..00000000 --- a/ruoyi-ui/src/components/FormDesigner/extend/fancyEditor.vue +++ /dev/null @@ -1,102 +0,0 @@ - - - - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/extend/fancyHtml.vue b/ruoyi-ui/src/components/FormDesigner/extend/fancyHtml.vue deleted file mode 100644 index 80141ea5..00000000 --- a/ruoyi-ui/src/components/FormDesigner/extend/fancyHtml.vue +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/components/FormDesigner/extend/fancyText.vue b/ruoyi-ui/src/components/FormDesigner/extend/fancyText.vue deleted file mode 100644 index 0222e095..00000000 --- a/ruoyi-ui/src/components/FormDesigner/extend/fancyText.vue +++ /dev/null @@ -1,51 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/components/FormDesigner/formBuilder.vue b/ruoyi-ui/src/components/FormDesigner/formBuilder.vue deleted file mode 100644 index db80cb70..00000000 --- a/ruoyi-ui/src/components/FormDesigner/formBuilder.vue +++ /dev/null @@ -1,217 +0,0 @@ - - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/formDesigner.vue b/ruoyi-ui/src/components/FormDesigner/formDesigner.vue deleted file mode 100644 index 457b2a89..00000000 --- a/ruoyi-ui/src/components/FormDesigner/formDesigner.vue +++ /dev/null @@ -1,213 +0,0 @@ - - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/formViewItem.vue b/ruoyi-ui/src/components/FormDesigner/formViewItem.vue deleted file mode 100644 index 8c22510b..00000000 --- a/ruoyi-ui/src/components/FormDesigner/formViewItem.vue +++ /dev/null @@ -1,67 +0,0 @@ - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/formViewer.vue b/ruoyi-ui/src/components/FormDesigner/formViewer.vue deleted file mode 100644 index a8ec8f96..00000000 --- a/ruoyi-ui/src/components/FormDesigner/formViewer.vue +++ /dev/null @@ -1,149 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/generator/html.js b/ruoyi-ui/src/components/FormDesigner/generator/html.js deleted file mode 100644 index 07c05418..00000000 --- a/ruoyi-ui/src/components/FormDesigner/generator/html.js +++ /dev/null @@ -1,104 +0,0 @@ -/** - * 生成html的核心js函数 - */ -let globalConfig - - -export function vueTemplate(str) { - return `` -} - -export function vueScript(str) { - return `` -} - -export function cssStyle(cssStr) { - return `` -} - -const items = { - 'input':el =>{ - const { - disabled, vModel, clearable, placeholder, width - } = attrBuilder(el) - const maxlength = el.maxlength ? `:maxlength="${el.maxlength}"` : '' - //const showWordLimit = el['show-word-limit'] ? 'show-word-limit' : '' - const readonly = el.readonly ? 'readonly' : '' - return `<${el.ele} ${vModel} ${placeholder} ${maxlength} ${readonly} ${disabled} ${clearable} />` - }, - 'textarea':el =>{ - const { - disabled, vModel, clearable, placeholder, width - } = attrBuilder(el) - const maxlength = el.maxlength ? `:maxlength="${el.maxlength}"` : '' - //const showWordLimit = el['show-word-limit'] ? 'show-word-limit' : '' - const readonly = el.readonly ? 'readonly' : '' - const type = el.type ? `type="${el.type}"` : '' - return `<${el.ele} ${vModel} ${type} ${placeholder} ${maxlength} ${readonly} ${disabled} ${clearable} />` - } -} - - -function colWrapper(element,str){ - if (element.span) { - return ` - ${str} - ` - } - return str -} - -function attrBuilder(el) { - return { - vModel: `v-model="${globalConfig.formModel}.${el.id}"`, - clearable: el.clearable ? 'clearable' : '', - placeholder: el.placeholder ? `placeholder="${el.placeholder}"` : '', - //width: el.style && el.style.width ? ':style="{width: \'100%\'}"' : '', - disabled: el.disabled ? ':disabled=\'true\'' : '' - } -} - - -const layout = { - colFormItem(element) { - let labelWidth = `label-width="${globalConfig.labelWidth}px"` - let label = `label="${element.label}"` - if (element.labelWidth && element.labelWidth !== globalConfig.labelWidth) { - labelWidth = `label-width="${element.labelWidth}px"` - } - if (element.showLabel === false) { - labelWidth = 'label-width="0"' - label = '' - } - const required = element.required ? 'required' : '' - const itemDom = items[element.compType] ? items[element.compType](element) : null - let str = ` - ${itemDom} - ` - str = colWrapper(element,str); - return str; - } -} - - -/** - * 生成html源码 - * 表单配置和组件列表 - */ -export function buildHtmlSource(itemList,formConf){ - globalConfig = formConf; - const htmlCode = [] - itemList.forEach(el => { - htmlCode.push(layout['colFormItem'](el)) - }) - const htmlStr = htmlCode.join('\n') - //console.log(htmlStr) -} \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/generator/js.js b/ruoyi-ui/src/components/FormDesigner/generator/js.js deleted file mode 100644 index 7da257ca..00000000 --- a/ruoyi-ui/src/components/FormDesigner/generator/js.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * 生成js的核心js函数 - */ -let globalConfig - -export function buildJsSource(itemList,formConf){ - globalConfig = JSON.parse(JSON.stringify(formConf)) - const dataList = [] - const optionsList = [] - const propsList = [] - itemList.forEach(el =>{ - buildAttributes(el, dataList, optionsList, propsList) - }) - - const script = buildexport( - formConf, - dataList.join('\n'), - optionsList.join('\n'), - propsList.join('\n'), - ) - globalConfig = null; - console.log(script); - return script; -} - -function buildAttributes(el, dataList, optionsList, propsList) { - buildData(el, dataList) - - if (el.options && el.options.length) { - buildOptions(el, optionsList) - } - - if (el.props && el.props.props) { - buildProps(el, propsList) - } - - // if (el.children) { - // el.children.forEach(el2 => { - // buildAttributes(el2, dataList, ruleList, optionsList, methodList, propsList, uploadVarList) - // }) - // } -} - -function buildData(conf, dataList) { - let value - if (typeof (conf.value) === 'string' && !conf.multiple) { - value = `'${conf.value}'` - } else { - value = `${JSON.stringify(conf.value)}` - } - if(typeof(value) === 'undefined'||value === 'undefined') value = `''`; - console.log(value); - dataList.push(`${conf.id}: ${value},`) -} - -function buildOptions(conf, optionsList) { - const str = `${conf.id}Options: ${JSON.stringify(conf.options)},` - optionsList.push(str) -} - -function buildProps(conf, propsList) { - const str = `${conf.id}Props: ${JSON.stringify(conf.props.props)},` - propsList.push(str) -} - -function buildexport(conf, data, props) { - const str = `export default { - components: {}, - props: [], - data () { - return { - ${conf.formModel}: { - ${data} - } - } - }, - computed: {}, - watch: {}, - created () {}, - mounted () {}, -}` - return str -} \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/icon.vue b/ruoyi-ui/src/components/FormDesigner/icon.vue deleted file mode 100644 index 57e7a335..00000000 --- a/ruoyi-ui/src/components/FormDesigner/icon.vue +++ /dev/null @@ -1,26 +0,0 @@ - - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/iconDialog.vue b/ruoyi-ui/src/components/FormDesigner/iconDialog.vue deleted file mode 100644 index 8c5cfdb4..00000000 --- a/ruoyi-ui/src/components/FormDesigner/iconDialog.vue +++ /dev/null @@ -1,106 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/index.js b/ruoyi-ui/src/components/FormDesigner/index.js deleted file mode 100644 index 16e84e15..00000000 --- a/ruoyi-ui/src/components/FormDesigner/index.js +++ /dev/null @@ -1,23 +0,0 @@ -import formDesigner from './formDesigner'; -import fancyEditor from './extend/fancyEditor'; -import fancyHtml from './extend/fancyHtml'; -import fancyText from './extend/fancyText'; -import fancyBarCode from 'vue-barcode'; -import fancyDialogList from './extend/fancyDialogList'; -import iconDialog from './iconDialog'; -const plugins = { - install : function (Vue) { - Vue.component('form-designer',formDesigner); - Vue.component('fancy-editor',fancyEditor); - Vue.component('fancy-html',fancyHtml); - Vue.component('fancy-text',fancyText); - Vue.component('fancy-bar-code',fancyBarCode); - Vue.component('fancy-dialog-list',fancyDialogList); - Vue.component('icon-dialog',iconDialog); - } -}; -// 这一步判断window.Vue是否存在,因为直接引用vue.min.js, 它会把Vue绑到Window上,我们直接引用打包好的js才能正常跑起来。 -if (typeof window !== 'undefined' && window.Vue) { - window.Vue.use(plugins); -} -export default plugins; \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/preview.vue b/ruoyi-ui/src/components/FormDesigner/preview.vue deleted file mode 100644 index a5b9bcab..00000000 --- a/ruoyi-ui/src/components/FormDesigner/preview.vue +++ /dev/null @@ -1,183 +0,0 @@ - - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/previewItem.vue b/ruoyi-ui/src/components/FormDesigner/previewItem.vue deleted file mode 100644 index 30530e6e..00000000 --- a/ruoyi-ui/src/components/FormDesigner/previewItem.vue +++ /dev/null @@ -1,49 +0,0 @@ - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/previewRowItem.vue b/ruoyi-ui/src/components/FormDesigner/previewRowItem.vue deleted file mode 100644 index 3181114e..00000000 --- a/ruoyi-ui/src/components/FormDesigner/previewRowItem.vue +++ /dev/null @@ -1,27 +0,0 @@ - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/processFormView.vue b/ruoyi-ui/src/components/FormDesigner/processFormView.vue deleted file mode 100644 index 18e1e985..00000000 --- a/ruoyi-ui/src/components/FormDesigner/processFormView.vue +++ /dev/null @@ -1,147 +0,0 @@ - - - - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/style/designer.css b/ruoyi-ui/src/components/FormDesigner/style/designer.css deleted file mode 100644 index b42ac2fe..00000000 --- a/ruoyi-ui/src/components/FormDesigner/style/designer.css +++ /dev/null @@ -1,197 +0,0 @@ - -body{ - margin:0px; -} -.container { - position: relative; - width: 100%; - height: 100%; -} -.left-board { - width: 260px; - position: absolute; - left: 0; - top: 0; - height: 100vh; -} -.d-logo-wrapper{ - position: relative; - height: 42px; - background: #ffffff; - border-bottom: 1px solid #f1e8e8; - box-sizing: border-box; -} -.d-logo{ - position: absolute; - left: 12px; - top: 6px; - line-height: 30px; - color: #409eff; - font-weight: 600; - font-size: 17px; - white-space: nowrap; -} -.d-logo img{ - width: 30px; - height: 30px; - vertical-align: top; -} -.components-title{ - font-size: 14px; - color: #222; - margin: 6px 6px; - font-weight:700 -} -.components-draggable{ - padding-bottom: 20px; -} -.components-list { - padding: 8px; - box-sizing: border-box; - height: 100%; -} -.components-list .components-item { - display: inline-block; - width: 48%; - margin: 1%; - transition: transform 0ms !important; -} -.components-body { - padding: 8px 10px; - background: #f4f6fc; - font-size: 12px; - margin-left: 5px; - padding-top: 5px; - cursor: move; - border: 1px solid #409eff; - border-radius: 3px; -} -.components-body:hover { - border: 1px dashed #f56c6c; - color: #f56c6c; -} -.center-board { - height: 100vh; - width: auto; - margin: 0 350px 0 260px; - box-sizing: border-box; -} -.empty-info{ - position: absolute; - top: 30%; - left: 0; - right: 0; - text-align: center; - font-size: 18px; - letter-spacing: 4px; -} -.action-bar{ - position: relative; - height: 42px; - text-align: right; - padding: 0 15px; - box-sizing: border-box;; - border: 1px solid #f1e8e8; - border-top: none; - border-left: none; - background: #ffffff; -} -.action-bar .el-button{ - font-size: 18px; - vertical-align: middle; - position: relative; - top: -1px; - color:#409EFF -} -.action-bar .delete-btn{ - color: #F56C6C; -} -.center-scrollbar { - height: calc(100vh - 42px); - overflow: hidden; - border-left: 1px solid #f1e8e8; - border-right: 1px solid #f1e8e8; - box-sizing: border-box; -} - -.center-board-row { - padding: 10px 12px 100px 12px; - box-sizing: border-box; -} -.center-board-row .el-form { - height: calc(100vh - 69px); -} - -.dynamic-table{ - margin: 0px; - height: auto; - min-height: 120px; - padding: 10px 0px; -} -.dynamic-table__content{ - width:100%; - height:100%; - display: flex; - overflow-y: hidden; - outline: 1px dashed #ccc; - outline-offset: -1px; - min-height: 100px; - float:left -} -.dynamic-table__item { - margin:1px; - padding-top:5px; - border: 1px solid #EBEEF5; - background:#f2f6fc; - border-radius: 2px; -} -.dynamic-table__item:hover { - border: 1px solid #409EFF; -} -.dynamic-table__item_title{ - width:100%; - padding-top:8px; - line-height: 23px; - text-align: center; - border-bottom: 1px solid #EBEEF5; - font-size: 14px; - color:#606266; - height:30px; -} -.dynamic-table__item_body{ - padding:10px; - text-align: center; -} -.table__content{ - width:100%; - height:100%; - overflow-y: hidden; - outline: 1px dashed #ccc; - outline-offset: -1px; - min-height: 100px; - float:left -} -.el-radio:last-child { - margin-right:30px; -} -.el-checkbox:last-of-type{ - margin-right:30px; -} -.el-rate{ - margin-top:10px; -} - -.component-id{ - position: absolute; - top: 0; - left: 0; - font-size: 12px; - color: #bbb; - display: inline-block; - margin: 0 6px; -} - -/* .dynamic-table.active{ - border-left: 3px solid #409eff; - background:#ecf5ff -} */ \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/style/designer.scss b/ruoyi-ui/src/components/FormDesigner/style/designer.scss deleted file mode 100644 index 4b4f50a7..00000000 --- a/ruoyi-ui/src/components/FormDesigner/style/designer.scss +++ /dev/null @@ -1,304 +0,0 @@ -$selectedColor: #e6f2ff; -$lighterBlue: #409EFF; -.drawing-board { - height: 100%; - position: relative; - border:1px dashed #ccc; - .components-body { - padding: 0; - margin: 0; - font-size: 0; - } - .sortable-ghost { - position: relative; - display: block; - overflow: hidden; - &::before { - content: " "; - position: absolute; - left: 0; - right: 0; - top: 0; - height: 3px; - background: #409EFF; - z-index: 2; - } - } - .components-item.sortable-ghost { - width: 100%; - height: 5px; - background-color: $selectedColor; - } - .drawing-item.sortable-ghost { - width: 100%; - height: 5px; - background-color: $selectedColor; - } - .active-from-item { - & > .el-form-item{ - background: $selectedColor; - border-radius:6px; - margin-top:15px; - } - & > .dynamic-table{ - background: $selectedColor; - border-radius:6px; - } - & > .drawing-item-copy, & > .drawing-item-delete{ - display: initial; - } - & > .component-name{ - color: $lighterBlue; - } - } - - .el-form-item{ - margin-bottom: 5px; - } -} -.drawing-item{ - position: relative; - cursor: move; - &.unfocus-bordered:not(.active-from-item) > div:first-child { - border: 1px dashed #ccc; - } - .el-form-item{ - padding: 12px 10px; - margin-top:15px; - } -} -.drawing-item{ - position: relative; - border: 1px dashed #ccc; - cursor: move; - .dynamic-table{ - padding: 12px 5px; - - } -} -.drawing-row-item{ - position: relative; - cursor: move; - box-sizing: border-box; - border: 1px dashed #ccc; - border-radius: 3px; - padding: 0 2px; - margin-bottom: 15px; - .el-col{ - margin-top: 15px; - } - .el-form-item{ - margin-bottom: 15px; - } - .drag-wrapper{ - min-height: 80px; - } - .drag-col-wrapper{ - height: auto; - border: 1px dashed #ccc; - } - &.active-from-item{ - border: 2px solid #e6a23c; - - } - .component-name{ - position: absolute; - top: 0; - left: 0; - font-size: 12px; - color: #bbb; - display: inline-block; - padding: 0 6px; - } -} -.drawing-item, .drawing-row-item{ - &:hover { - & > .el-form-item{ - background: #ebeef5; - } - & > .drawing-item-copy, & > .drawing-item-delete{ - display: initial; - } - } - & > .drawing-item-copy, & > .drawing-item-delete{ - display: none; - position: absolute; - top: -10px; - width: 22px; - height: 22px; - line-height: 22px; - text-align: center; - border-radius: 50%; - font-size: 12px; - border: 1px solid; - cursor: pointer; - z-index: 1; - } - & > .drawing-item-copy{ - right: 56px; - border-color: $lighterBlue; - color: $lighterBlue; - background: #fff; - &:hover{ - background: $lighterBlue; - color: #fff; - } - } - & > .drawing-item-delete{ - right: 24px; - border-color: #F56C6C; - color: #F56C6C; - background: #fff; - &:hover{ - background: #F56C6C; - color: #fff; - } - } -} -.drawing-item, .drawing-form-item{ - &:hover { - & > .el-form-item{ - background: #ebeef5; - } - & > .drawing-item-copy, & > .drawing-item-delete{ - display: initial; - } - } - & > .drawing-item-copy, & > .drawing-item-delete{ - display: none; - position: absolute; - top: -10px; - width: 22px; - height: 22px; - line-height: 22px; - text-align: center; - border-radius: 50%; - font-size: 12px; - border: 1px solid; - cursor: pointer; - z-index: 1; - } - & > .drawing-item-copy{ - right: 56px; - border-color: $lighterBlue; - color: $lighterBlue; - background: #fff; - &:hover{ - background: $lighterBlue; - color: #fff; - } - } - & > .drawing-item-delete{ - right: 24px; - border-color: #F56C6C; - color: #F56C6C; - background: #fff; - &:hover{ - background: #F56C6C; - color: #fff; - } - } -} -.right-board { - width: 350px; - position: absolute; - right: 0; - top: 0; - padding-top: 3px; - .field-box { - position: relative; - height: calc(100vh - 42px); - box-sizing: border-box; - overflow: hidden; - } - .el-scrollbar { - height: 100%; - } -} -.select-item { - display: flex; - border: 1px dashed #fff; - box-sizing: border-box; - & .close-btn { - cursor: pointer; - color: #f56c6c; - } - & .el-input + .el-input { - margin-left: 4px; - } -} -.select-item + .select-item { - margin-top: 4px; -} -.select-item.sortable-chosen { - border: 1px dashed #409eff; -} -.select-line-icon { - line-height: 32px; - font-size: 22px; - padding: 0 4px; - color: #777; -} -.option-drag { - cursor: move; -} -.time-range { - .el-date-editor { - width: 227px; - } - ::v-deep .el-icon-time { - display: none; - } -} -.document-link { - position: absolute; - display: block; - width: 26px; - height: 26px; - top: 0; - left: 0; - cursor: pointer; - background: #409eff; - z-index: 1; - border-radius: 0 0 6px 0; - text-align: center; - line-height: 26px; - color: #fff; - font-size: 18px; -} -.node-label{ - font-size: 14px; -} -.node-icon{ - color: #bebfc3; -} -.center-tabs{ - .el-tabs__header{ - margin-bottom: 0!important; - } - .el-tabs__item{ - width: 100%; - text-align: center; - } - .el-tabs__nav{ - width: 100%; - } -} -.right-scrollbar { - .el-scrollbar__view { - padding: 12px 18px 15px 15px; - } -} -.drawing-row-item .el-col{ - margin-bottom:5px; -} -.components-item.dynamicGhost { - width: 5px; - height: 120px; - background-color: #409EFF; -} -.dynamic-table_item.dynamicGhost { - width: 5px; - height: 120px; - background-color: #409EFF; -} diff --git a/ruoyi-ui/src/components/FormDesigner/table/fancyEditTable.vue b/ruoyi-ui/src/components/FormDesigner/table/fancyEditTable.vue deleted file mode 100644 index 79dd03b1..00000000 --- a/ruoyi-ui/src/components/FormDesigner/table/fancyEditTable.vue +++ /dev/null @@ -1,138 +0,0 @@ - - - - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/table/fancyEditTableItem.vue b/ruoyi-ui/src/components/FormDesigner/table/fancyEditTableItem.vue deleted file mode 100644 index 83383026..00000000 --- a/ruoyi-ui/src/components/FormDesigner/table/fancyEditTableItem.vue +++ /dev/null @@ -1,65 +0,0 @@ - - - - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/table/fancyTable.vue b/ruoyi-ui/src/components/FormDesigner/table/fancyTable.vue deleted file mode 100644 index bcdcd2cc..00000000 --- a/ruoyi-ui/src/components/FormDesigner/table/fancyTable.vue +++ /dev/null @@ -1,265 +0,0 @@ - - - - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/table/fancyTableItem.vue b/ruoyi-ui/src/components/FormDesigner/table/fancyTableItem.vue deleted file mode 100644 index f3238543..00000000 --- a/ruoyi-ui/src/components/FormDesigner/table/fancyTableItem.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - - - \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/table/table.js b/ruoyi-ui/src/components/FormDesigner/table/table.js deleted file mode 100644 index cd568d53..00000000 --- a/ruoyi-ui/src/components/FormDesigner/table/table.js +++ /dev/null @@ -1,44 +0,0 @@ -import {getSimpleId} from "../utils/IdGenerate"; -import constant from '../utils/constants' -import {jsonClone} from "../utils"; - -let tdItemObj = { - id:'', - col:1, - row:1, - hide:false, - compType:'tdItem', - style:{ - background:constant.defaultTdBackgroundColor, - width:35 - }, - columns:[] - } - -export function getTdItem(){ - let tdItem = cloneObj(tdItemObj); - tdItem.id = getSimpleId(); - return tdItem; -} -export function getTitleTdItem(){ - let tdItem = cloneObj(tdItemObj); - tdItem.style.background = constant.defaultTitleTdBackgroundColor; - tdItem.style.width = 15; - tdItem.id = getSimpleId(); - return tdItem; -} - -function cloneObj(source){ - let target = jsonClone(source); - target.id = getSimpleId(); - return target; -} - -export function getTrItem(){ - let trItem= [getTitleTdItem(),getTdItem(),getTitleTdItem(),getTdItem()]; - return trItem; -} -export function getDefaultTrs(){ - let trs = [getTrItem(),getTrItem()]; - return trs; -} \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/utils/IdGenerate.js b/ruoyi-ui/src/components/FormDesigner/utils/IdGenerate.js deleted file mode 100644 index 5474624d..00000000 --- a/ruoyi-ui/src/components/FormDesigner/utils/IdGenerate.js +++ /dev/null @@ -1,17 +0,0 @@ -export function getSimpleId(){ - sleep(10); //主要为了延时工作 - return new Date().getTime(); -} - -const sleep = function(time) { - const startTime = new Date().getTime() + parseInt(time, 10); - while(new Date().getTime() < startTime) {} -}; - -export function setTableId(table){ - table.layoutArray.map((tr,trIndex)=>{ - tr[0].id=getSimpleId(); - tr[1].id=getSimpleId(); - }) - return table; -} \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/utils/chinaAreaData.js b/ruoyi-ui/src/components/FormDesigner/utils/chinaAreaData.js deleted file mode 100644 index e648d099..00000000 --- a/ruoyi-ui/src/components/FormDesigner/utils/chinaAreaData.js +++ /dev/null @@ -1,33 +0,0 @@ -import allData from 'china-area-data/v5/data'; - -export function areaData(){ - let options = []; - const allProvinceData = allData['86']; //得到全中国的省 - Object.keys(allProvinceData).forEach(key=>{ - let provinceObj={}; - provinceObj.label= allProvinceData[key]; - provinceObj.value= key; - const cityData = allData[key]; //市 - provinceObj.children = []; - Object.keys(cityData).forEach(ckey=>{ - let cityObj = {}; - cityObj.label = cityData[ckey]; - cityObj.value = ckey; - const areaData = allData[ckey]; //区 - if(typeof areaData !== 'undefined'){ - cityObj.children = []; - Object.keys(areaData).forEach(akey=>{ - let areaObj = {}; - areaObj.label = areaData[akey]; - areaObj.value = akey; - cityObj.children.push(areaObj); - }); - } - - provinceObj.children.push(cityObj); - }) - options.push(provinceObj); - }); - return options; -} - diff --git a/ruoyi-ui/src/components/FormDesigner/utils/constants.js b/ruoyi-ui/src/components/FormDesigner/utils/constants.js deleted file mode 100644 index 9a5c87df..00000000 --- a/ruoyi-ui/src/components/FormDesigner/utils/constants.js +++ /dev/null @@ -1,7 +0,0 @@ -/** - * js的常量就在这里 - */ -export default { - defaultTdBackgroundColor:'#FFFFFF', - defaultTitleTdBackgroundColor:'#F6F6F6' -} \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/utils/icon.json b/ruoyi-ui/src/components/FormDesigner/utils/icon.json deleted file mode 100644 index 07a240e8..00000000 --- a/ruoyi-ui/src/components/FormDesigner/utils/icon.json +++ /dev/null @@ -1,282 +0,0 @@ -[ -"el-icon-platform-eleme", -"el-icon-eleme", -"el-icon-delete-solid", -"el-icon-delete", -"el-icon-s-tools", -"el-icon-setting", -"el-icon-user-solid", -"el-icon-user", -"el-icon-phone", -"el-icon-phone-outline", -"el-icon-more", -"el-icon-more-outline", -"el-icon-star-on", -"el-icon-star-off", -"el-icon-s-goods", -"el-icon-goods", -"el-icon-warning", -"el-icon-warning-outline", -"el-icon-question", -"el-icon-info", -"el-icon-remove", -"el-icon-circle-plus", -"el-icon-success", -"el-icon-error", -"el-icon-zoom-in", -"el-icon-zoom-out", -"el-icon-remove-outline", -"el-icon-circle-plus-outline", -"el-icon-circle-check", -"el-icon-circle-close", -"el-icon-s-help", -"el-icon-help", -"el-icon-minus", -"el-icon-plus", -"el-icon-check", -"el-icon-close", -"el-icon-picture", -"el-icon-picture-outline", -"el-icon-picture-outline-round", -"el-icon-upload", -"el-icon-upload2", -"el-icon-download", -"el-icon-camera-solid", -"el-icon-camera", -"el-icon-video-camera-solid", -"el-icon-video-camera", -"el-icon-message-solid", -"el-icon-bell", -"el-icon-s-cooperation", -"el-icon-s-order", -"el-icon-s-platform", -"el-icon-s-fold", -"el-icon-s-unfold", -"el-icon-s-operation", -"el-icon-s-promotion", -"el-icon-s-home", -"el-icon-s-release", -"el-icon-s-ticket", -"el-icon-s-management", -"el-icon-s-open", -"el-icon-s-shop", -"el-icon-s-marketing", -"el-icon-s-flag", -"el-icon-s-comment", -"el-icon-s-finance", -"el-icon-s-claim", -"el-icon-s-custom", -"el-icon-s-opportunity", -"el-icon-s-data", -"el-icon-s-check", -"el-icon-s-grid", -"el-icon-menu", -"el-icon-share", -"el-icon-d-caret", -"el-icon-caret-left", -"el-icon-caret-right", -"el-icon-caret-bottom", -"el-icon-caret-top", -"el-icon-bottom-left", -"el-icon-bottom-right", -"el-icon-back", -"el-icon-right", -"el-icon-bottom", -"el-icon-top", -"el-icon-top-left", -"el-icon-top-right", -"el-icon-arrow-left", -"el-icon-arrow-right", -"el-icon-arrow-down", -"el-icon-arrow-up", -"el-icon-d-arrow-left", -"el-icon-d-arrow-right", -"el-icon-video-pause", -"el-icon-video-play", -"el-icon-refresh", -"el-icon-refresh-right", -"el-icon-refresh-left", -"el-icon-finished", -"el-icon-sort", -"el-icon-sort-up", -"el-icon-sort-down", -"el-icon-rank", -"el-icon-loading", -"el-icon-view", -"el-icon-c-scale-to-original", -"el-icon-date", -"el-icon-edit", -"el-icon-edit-outline", -"el-icon-folder", -"el-icon-folder-opened", -"el-icon-folder-add", -"el-icon-folder-remove", -"el-icon-folder-delete", -"el-icon-folder-checked", -"el-icon-tickets", -"el-icon-document-remove", -"el-icon-document-delete", -"el-icon-document-copy", -"el-icon-document-checked", -"el-icon-document", -"el-icon-document-add", -"el-icon-printer", -"el-icon-paperclip", -"el-icon-takeaway-box", -"el-icon-search", -"el-icon-monitor", -"el-icon-attract", -"el-icon-mobile", -"el-icon-scissors", -"el-icon-umbrella", -"el-icon-headset", -"el-icon-brush", -"el-icon-mouse", -"el-icon-coordinate", -"el-icon-magic-stick", -"el-icon-reading", -"el-icon-data-line", -"el-icon-data-board", -"el-icon-pie-chart", -"el-icon-data-analysis", -"el-icon-collection-tag", -"el-icon-film", -"el-icon-suitcase", -"el-icon-suitcase-1", -"el-icon-receiving", -"el-icon-collection", -"el-icon-files", -"el-icon-notebook-1", -"el-icon-notebook-2", -"el-icon-toilet-paper", -"el-icon-office-building", -"el-icon-school", -"el-icon-table-lamp", -"el-icon-house", -"el-icon-no-smoking", -"el-icon-smoking", -"el-icon-shopping-cart-full", -"el-icon-shopping-cart-1", -"el-icon-shopping-cart-2", -"el-icon-shopping-bag-1", -"el-icon-shopping-bag-2", -"el-icon-sold-out", -"el-icon-sell", -"el-icon-present", -"el-icon-box", -"el-icon-bank-card", -"el-icon-money", -"el-icon-coin", -"el-icon-wallet", -"el-icon-discount", -"el-icon-price-tag", -"el-icon-news", -"el-icon-guide", -"el-icon-male", -"el-icon-female", -"el-icon-thumb", -"el-icon-cpu", -"el-icon-link", -"el-icon-connection", -"el-icon-open", -"el-icon-turn-off", -"el-icon-set-up", -"el-icon-chat-round", -"el-icon-chat-line-round", -"el-icon-chat-square", -"el-icon-chat-dot-round", -"el-icon-chat-dot-square", -"el-icon-chat-line-square", -"el-icon-message", -"el-icon-postcard", -"el-icon-position", -"el-icon-turn-off-microphone", -"el-icon-microphone", -"el-icon-close-notification", -"el-icon-bangzhu", -"el-icon-time", -"el-icon-odometer", -"el-icon-crop", -"el-icon-aim", -"el-icon-switch-button", -"el-icon-full-screen", -"el-icon-copy-document", -"el-icon-mic", -"el-icon-stopwatch", -"el-icon-medal-1", -"el-icon-medal", -"el-icon-trophy", -"el-icon-trophy-1", -"el-icon-first-aid-kit", -"el-icon-discover", -"el-icon-place", -"el-icon-location", -"el-icon-location-outline", -"el-icon-location-information", -"el-icon-add-location", -"el-icon-delete-location", -"el-icon-map-location", -"el-icon-alarm-clock", -"el-icon-timer", -"el-icon-watch-1", -"el-icon-watch", -"el-icon-lock", -"el-icon-unlock", -"el-icon-key", -"el-icon-service", -"el-icon-mobile-phone", -"el-icon-bicycle", -"el-icon-truck", -"el-icon-ship", -"el-icon-basketball", -"el-icon-football", -"el-icon-soccer", -"el-icon-baseball", -"el-icon-wind-power", -"el-icon-light-rain", -"el-icon-lightning", -"el-icon-heavy-rain", -"el-icon-sunrise", -"el-icon-sunrise-1", -"el-icon-sunset", -"el-icon-sunny", -"el-icon-cloudy", -"el-icon-partly-cloudy", -"el-icon-cloudy-and-sunny", -"el-icon-moon", -"el-icon-moon-night", -"el-icon-dish", -"el-icon-dish-1", -"el-icon-food", -"el-icon-chicken", -"el-icon-fork-spoon", -"el-icon-knife-fork", -"el-icon-burger", -"el-icon-tableware", -"el-icon-sugar", -"el-icon-dessert", -"el-icon-ice-cream", -"el-icon-hot-water", -"el-icon-water-cup", -"el-icon-coffee-cup", -"el-icon-cold-drink", -"el-icon-goblet", -"el-icon-goblet-full", -"el-icon-goblet-square", -"el-icon-goblet-square-full", -"el-icon-refrigerator", -"el-icon-grape", -"el-icon-watermelon", -"el-icon-cherry", -"el-icon-apple", -"el-icon-pear", -"el-icon-orange", -"el-icon-coffee", -"el-icon-ice-tea", -"el-icon-ice-drink", -"el-icon-milk-tea", -"el-icon-potato-strips", -"el-icon-lollipop", -"el-icon-ice-cream-square", -"el-icon-ice-cream-round" -] \ No newline at end of file diff --git a/ruoyi-ui/src/components/FormDesigner/utils/index.js b/ruoyi-ui/src/components/FormDesigner/utils/index.js deleted file mode 100644 index d900a9ef..00000000 --- a/ruoyi-ui/src/components/FormDesigner/utils/index.js +++ /dev/null @@ -1,138 +0,0 @@ -export function makeMap(str, expectsLowerCase) { - const map = Object.create(null) - const list = str.split(',') - for (let i = 0; i < list.length; i++) { - map[list[i]] = true - } - return expectsLowerCase - ? val => map[val.toLowerCase()] - : val => map[val] -} - -/** - * num 小于0,左缩进num*2个空格; 大于0,右缩进num*2个空格。 - * @param {string} str 代码 - * @param {number} num 缩进次数 - * @param {number} len 【可选】缩进单位,空格数 - */ -export function indent(str, num, len = 2) { - if (num === 0) return str - const isLeft = num < 0; const result = []; let reg; let - spaces = '' - if (isLeft) { - num *= -1 - reg = new RegExp(`(^\\s{0,${num * len}})`, 'g') - } else { - for (let i = 0; i < num * len; i++) spaces += ' ' - } - - str.split('\n').forEach(line => { - line = isLeft ? line.replace(reg, '') : spaces + line - result.push(line) - }) - return result.join('\n') -} - -// 首字母大小 -export function titleCase(str) { - return str.replace(/( |^)[a-z]/g, L => L.toUpperCase()) -} - -// 下划转驼峰 -export function camelCase(str) { - return str.replace(/-[a-z]/g, str1 => str1.substr(-1).toUpperCase()) -} - -export function isNumberStr(str) { - return /^[+-]?(0|([1-9]\d*))(\.\d+)?$/g.test(str) -} - - -export const beautifierConf = { - html: { - indent_size: '2', - indent_char: ' ', - max_preserve_newlines: '-1', - preserve_newlines: false, - keep_array_indentation: false, - break_chained_methods: false, - indent_scripts: 'separate', - brace_style: 'end-expand', - space_before_conditional: true, - unescape_strings: false, - jslint_happy: false, - end_with_newline: true, - wrap_line_length: '110', - indent_inner_html: true, - comma_first: false, - e4x: true, - indent_empty_lines: true - }, - js: { - indent_size: '2', - indent_char: ' ', - max_preserve_newlines: '-1', - preserve_newlines: false, - keep_array_indentation: false, - break_chained_methods: false, - indent_scripts: 'normal', - brace_style: 'end-expand', - space_before_conditional: true, - unescape_strings: false, - jslint_happy: true, - end_with_newline: true, - wrap_line_length: '110', - indent_inner_html: true, - comma_first: false, - e4x: true, - indent_empty_lines: true - } -} - -function stringify(obj) { - return JSON.stringify(obj, (key, val) => { - if (typeof val === 'function') { - return `${val}` - } - return val - }) -} - -function parse(str) { - return JSON.parse(str, (k, v) => { - if (v!==null&&v.indexOf && v.indexOf('function') > -1) { - return eval(`(${v})`) - } - return v - }) -} - -export function jsonClone(obj) { - return parse(stringify(obj)); -} - -export function isLayout(obj) { - return obj.compType === 'row'; -} -export function isTable(obj) { - return obj.compType === 'table'; -} -export function inTable(obj) { - return obj.col&&obj.row; -} - -export const isAttr = makeMap( - 'accept,accept-charset,accesskey,action,align,alt,async,autocomplete,' - + 'autofocus,autoplay,autosave,bgcolor,border,buffered,challenge,charset,' - + 'checked,cite,class,code,codebase,color,cols,colspan,content,http-equiv,' - + 'name,contenteditable,contextmenu,controls,coords,data,datetime,default,' - + 'defer,dir,dirname,disabled,download,draggable,dropzone,enctype,method,for,' - + 'form,formaction,headers,height,hidden,high,href,hreflang,http-equiv,' - + 'icon,id,ismap,itemprop,keytype,kind,label,lang,language,list,loop,low,' - + 'manifest,max,maxlength,media,method,GET,POST,min,multiple,email,file,' - + 'muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,' - + 'preload,radiogroup,readonly,rel,required,reversed,rows,rowspan,sandbox,' - + 'scope,scoped,seamless,selected,shape,size,type,text,password,sizes,span,' - + 'spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,' - + 'target,title,type,usemap,value,width,wrap' -) \ No newline at end of file diff --git a/ruoyi-ui/src/components/Process/Back.vue b/ruoyi-ui/src/components/Process/Back.vue deleted file mode 100644 index dc7f0304..00000000 --- a/ruoyi-ui/src/components/Process/Back.vue +++ /dev/null @@ -1,99 +0,0 @@ - - diff --git a/ruoyi-ui/src/components/Process/History.vue b/ruoyi-ui/src/components/Process/History.vue deleted file mode 100644 index 6f691194..00000000 --- a/ruoyi-ui/src/components/Process/History.vue +++ /dev/null @@ -1,117 +0,0 @@ - - - - diff --git a/ruoyi-ui/src/components/Process/Verify.vue b/ruoyi-ui/src/components/Process/Verify.vue deleted file mode 100644 index 8bf936e5..00000000 --- a/ruoyi-ui/src/components/Process/Verify.vue +++ /dev/null @@ -1,546 +0,0 @@ - - diff --git a/ruoyi-ui/src/views/components/approvalForm.vue b/ruoyi-ui/src/views/components/approvalForm.vue deleted file mode 100644 index 664cd9de..00000000 --- a/ruoyi-ui/src/views/components/approvalForm.vue +++ /dev/null @@ -1,96 +0,0 @@ - - - - diff --git a/ruoyi-ui/src/views/components/dept/sys-dept.vue b/ruoyi-ui/src/views/components/dept/sys-dept.vue deleted file mode 100644 index ba5d6817..00000000 --- a/ruoyi-ui/src/views/components/dept/sys-dept.vue +++ /dev/null @@ -1,115 +0,0 @@ - - - diff --git a/ruoyi-ui/src/views/components/echarts-3d.vue b/ruoyi-ui/src/views/components/echarts-3d.vue deleted file mode 100644 index 93b79eca..00000000 --- a/ruoyi-ui/src/views/components/echarts-3d.vue +++ /dev/null @@ -1,236 +0,0 @@ - - - \ No newline at end of file diff --git a/ruoyi-ui/src/views/components/form/dynamicFormEdit.vue b/ruoyi-ui/src/views/components/form/dynamicFormEdit.vue deleted file mode 100644 index 3e8f8f4a..00000000 --- a/ruoyi-ui/src/views/components/form/dynamicFormEdit.vue +++ /dev/null @@ -1,282 +0,0 @@ - - - \ No newline at end of file diff --git a/ruoyi-ui/src/views/components/form/leaveForm.vue b/ruoyi-ui/src/views/components/form/leaveForm.vue deleted file mode 100644 index e61b8900..00000000 --- a/ruoyi-ui/src/views/components/form/leaveForm.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - diff --git a/ruoyi-ui/src/views/components/role/sys-role.vue b/ruoyi-ui/src/views/components/role/sys-role.vue deleted file mode 100644 index 9d31f7cc..00000000 --- a/ruoyi-ui/src/views/components/role/sys-role.vue +++ /dev/null @@ -1,202 +0,0 @@ - - - diff --git a/ruoyi-ui/src/views/components/user/choose-workflow-user .vue b/ruoyi-ui/src/views/components/user/choose-workflow-user .vue deleted file mode 100644 index 6db5afe7..00000000 --- a/ruoyi-ui/src/views/components/user/choose-workflow-user .vue +++ /dev/null @@ -1,243 +0,0 @@ - - - - diff --git a/ruoyi-ui/src/views/components/user/multi-user.vue b/ruoyi-ui/src/views/components/user/multi-user.vue deleted file mode 100644 index d674646a..00000000 --- a/ruoyi-ui/src/views/components/user/multi-user.vue +++ /dev/null @@ -1,275 +0,0 @@ - - - diff --git a/ruoyi-ui/src/views/components/user/sys-dept-user.vue b/ruoyi-ui/src/views/components/user/sys-dept-user.vue deleted file mode 100644 index 115d24a9..00000000 --- a/ruoyi-ui/src/views/components/user/sys-dept-user.vue +++ /dev/null @@ -1,272 +0,0 @@ - - - diff --git a/ruoyi-ui/src/views/components/user/sys-user.vue b/ruoyi-ui/src/views/components/user/sys-user.vue deleted file mode 100644 index cfed5fd9..00000000 --- a/ruoyi-ui/src/views/components/user/sys-user.vue +++ /dev/null @@ -1,267 +0,0 @@ - - - - diff --git a/ruoyi-ui/src/views/login.vue b/ruoyi-ui/src/views/login.vue index 84eb9806..b19d81eb 100644 --- a/ruoyi-ui/src/views/login.vue +++ b/ruoyi-ui/src/views/login.vue @@ -1,7 +1,7 @@ diff --git a/ruoyi-ui/src/views/register.vue b/ruoyi-ui/src/views/register.vue index 762d97f6..b6f752b9 100644 --- a/ruoyi-ui/src/views/register.vue +++ b/ruoyi-ui/src/views/register.vue @@ -1,7 +1,7 @@ diff --git a/ruoyi-ui/src/views/system/dept/index.vue b/ruoyi-ui/src/views/system/org/index.vue similarity index 75% rename from ruoyi-ui/src/views/system/dept/index.vue rename to ruoyi-ui/src/views/system/org/index.vue index 486c56cc..585a7f93 100644 --- a/ruoyi-ui/src/views/system/dept/index.vue +++ b/ruoyi-ui/src/views/system/org/index.vue @@ -1,336 +1,336 @@ - - - + + + diff --git a/ruoyi-ui/src/views/system/role/index.vue b/ruoyi-ui/src/views/system/role/index.vue index 0681d3d2..65efa569 100644 --- a/ruoyi-ui/src/views/system/role/index.vue +++ b/ruoyi-ui/src/views/system/role/index.vue @@ -1,607 +1,607 @@ - - - \ No newline at end of file + + + diff --git a/ruoyi-ui/src/views/system/user/index.vue b/ruoyi-ui/src/views/system/user/index.vue index 2494fa24..04bc0f06 100644 --- a/ruoyi-ui/src/views/system/user/index.vue +++ b/ruoyi-ui/src/views/system/user/index.vue @@ -1,669 +1,669 @@ - - - \ No newline at end of file + + + diff --git a/ruoyi-ui/src/views/system/user/profile/index.vue b/ruoyi-ui/src/views/system/user/profile/index.vue index ad530f9a..5683d4dd 100644 --- a/ruoyi-ui/src/views/system/user/profile/index.vue +++ b/ruoyi-ui/src/views/system/user/profile/index.vue @@ -24,8 +24,8 @@
{{ user.email }}
  • - 所属部门 -
    {{ user.dept.deptName }} / {{ postGroup }}
    + 所属机构 +
    {{ user.sysOrg.orgName }} / {{ postGroup }}
  • 所属角色 diff --git a/ruoyi-ui/src/views/tool/gen/genInfoForm.vue b/ruoyi-ui/src/views/tool/gen/genInfoForm.vue index bf6382d3..d97e675c 100644 --- a/ruoyi-ui/src/views/tool/gen/genInfoForm.vue +++ b/ruoyi-ui/src/views/tool/gen/genInfoForm.vue @@ -1,299 +1,299 @@ - - - + + + diff --git a/ruoyi-ui/src/views/work/components/custInfo/components/bg.png b/ruoyi-ui/src/views/work/components/custInfo/components/bg.png deleted file mode 100644 index ddfb0d52..00000000 Binary files a/ruoyi-ui/src/views/work/components/custInfo/components/bg.png and /dev/null differ diff --git a/ruoyi-ui/src/views/work/components/custInfo/components/headerName.vue b/ruoyi-ui/src/views/work/components/custInfo/components/headerName.vue deleted file mode 100644 index 2a0e2d1b..00000000 --- a/ruoyi-ui/src/views/work/components/custInfo/components/headerName.vue +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - - diff --git a/ruoyi-ui/src/views/work/components/custInfo/components/index.vue b/ruoyi-ui/src/views/work/components/custInfo/components/index.vue deleted file mode 100644 index 1c066b6f..00000000 --- a/ruoyi-ui/src/views/work/components/custInfo/components/index.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/views/work/components/custInfo/components/property-analysis.vue b/ruoyi-ui/src/views/work/components/custInfo/components/property-analysis.vue deleted file mode 100644 index 46ee948e..00000000 --- a/ruoyi-ui/src/views/work/components/custInfo/components/property-analysis.vue +++ /dev/null @@ -1,350 +0,0 @@ - - - \ No newline at end of file diff --git a/ruoyi-ui/src/views/work/components/custInfo/components/riskOverview.vue b/ruoyi-ui/src/views/work/components/custInfo/components/riskOverview.vue deleted file mode 100644 index a86a290c..00000000 --- a/ruoyi-ui/src/views/work/components/custInfo/components/riskOverview.vue +++ /dev/null @@ -1,350 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/views/work/components/custInfo/custInfo.vue b/ruoyi-ui/src/views/work/components/custInfo/custInfo.vue deleted file mode 100644 index 1c066b6f..00000000 --- a/ruoyi-ui/src/views/work/components/custInfo/custInfo.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/views/work/components/duty/components/index.vue b/ruoyi-ui/src/views/work/components/duty/components/index.vue deleted file mode 100644 index 1c066b6f..00000000 --- a/ruoyi-ui/src/views/work/components/duty/components/index.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/views/work/components/duty/index.vue b/ruoyi-ui/src/views/work/components/duty/index.vue deleted file mode 100644 index 1c066b6f..00000000 --- a/ruoyi-ui/src/views/work/components/duty/index.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/views/work/components/loan/components/index.vue b/ruoyi-ui/src/views/work/components/loan/components/index.vue deleted file mode 100644 index 1c066b6f..00000000 --- a/ruoyi-ui/src/views/work/components/loan/components/index.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/views/work/components/loan/loanSurvey.vue b/ruoyi-ui/src/views/work/components/loan/loanSurvey.vue deleted file mode 100644 index 1c066b6f..00000000 --- a/ruoyi-ui/src/views/work/components/loan/loanSurvey.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/views/work/components/process/components/index.vue b/ruoyi-ui/src/views/work/components/process/components/index.vue deleted file mode 100644 index 1c066b6f..00000000 --- a/ruoyi-ui/src/views/work/components/process/components/index.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/views/work/components/process/processShow.vue b/ruoyi-ui/src/views/work/components/process/processShow.vue deleted file mode 100644 index 1c066b6f..00000000 --- a/ruoyi-ui/src/views/work/components/process/processShow.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/views/work/components/product/components/index.vue b/ruoyi-ui/src/views/work/components/product/components/index.vue deleted file mode 100644 index 1c066b6f..00000000 --- a/ruoyi-ui/src/views/work/components/product/components/index.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/views/work/components/product/productDesign.vue b/ruoyi-ui/src/views/work/components/product/productDesign.vue deleted file mode 100644 index 1c066b6f..00000000 --- a/ruoyi-ui/src/views/work/components/product/productDesign.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/views/work/components/risk/components/index.vue b/ruoyi-ui/src/views/work/components/risk/components/index.vue deleted file mode 100644 index 1c066b6f..00000000 --- a/ruoyi-ui/src/views/work/components/risk/components/index.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/views/work/components/risk/riskSurvey.vue b/ruoyi-ui/src/views/work/components/risk/riskSurvey.vue deleted file mode 100644 index 1c066b6f..00000000 --- a/ruoyi-ui/src/views/work/components/risk/riskSurvey.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/views/work/components/touch/components/index.vue b/ruoyi-ui/src/views/work/components/touch/components/index.vue deleted file mode 100644 index 1c066b6f..00000000 --- a/ruoyi-ui/src/views/work/components/touch/components/index.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/views/work/components/touch/touchCust.vue b/ruoyi-ui/src/views/work/components/touch/touchCust.vue deleted file mode 100644 index 1c066b6f..00000000 --- a/ruoyi-ui/src/views/work/components/touch/touchCust.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/views/work/index.vue b/ruoyi-ui/src/views/work/index.vue deleted file mode 100644 index 999e9678..00000000 --- a/ruoyi-ui/src/views/work/index.vue +++ /dev/null @@ -1,80 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/views/workflow/businessForm/dynamicFormEdit.vue b/ruoyi-ui/src/views/workflow/businessForm/dynamicFormEdit.vue deleted file mode 100644 index caccf1d3..00000000 --- a/ruoyi-ui/src/views/workflow/businessForm/dynamicFormEdit.vue +++ /dev/null @@ -1,255 +0,0 @@ - - - \ No newline at end of file diff --git a/ruoyi-ui/src/views/workflow/businessForm/dynamicFormView.vue b/ruoyi-ui/src/views/workflow/businessForm/dynamicFormView.vue deleted file mode 100644 index bf63561d..00000000 --- a/ruoyi-ui/src/views/workflow/businessForm/dynamicFormView.vue +++ /dev/null @@ -1,149 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/ruoyi-ui/src/views/workflow/businessForm/index.vue b/ruoyi-ui/src/views/workflow/businessForm/index.vue deleted file mode 100644 index 40931705..00000000 --- a/ruoyi-ui/src/views/workflow/businessForm/index.vue +++ /dev/null @@ -1,419 +0,0 @@ - - - - diff --git a/ruoyi-ui/src/views/workflow/businessRule/index.vue b/ruoyi-ui/src/views/workflow/businessRule/index.vue deleted file mode 100644 index 41e2d867..00000000 --- a/ruoyi-ui/src/views/workflow/businessRule/index.vue +++ /dev/null @@ -1,370 +0,0 @@ - - - diff --git a/ruoyi-ui/src/views/workflow/definition/components/processDeploy.vue b/ruoyi-ui/src/views/workflow/definition/components/processDeploy.vue deleted file mode 100644 index bd10c36b..00000000 --- a/ruoyi-ui/src/views/workflow/definition/components/processDeploy.vue +++ /dev/null @@ -1,34 +0,0 @@ - - diff --git a/ruoyi-ui/src/views/workflow/definition/components/processFormList.vue b/ruoyi-ui/src/views/workflow/definition/components/processFormList.vue deleted file mode 100644 index 8324abdd..00000000 --- a/ruoyi-ui/src/views/workflow/definition/components/processFormList.vue +++ /dev/null @@ -1,249 +0,0 @@ - - - - diff --git a/ruoyi-ui/src/views/workflow/definition/components/processHisList.vue b/ruoyi-ui/src/views/workflow/definition/components/processHisList.vue deleted file mode 100644 index 4ea4a8a8..00000000 --- a/ruoyi-ui/src/views/workflow/definition/components/processHisList.vue +++ /dev/null @@ -1,276 +0,0 @@ - - - diff --git a/ruoyi-ui/src/views/workflow/definition/components/processPreview.vue b/ruoyi-ui/src/views/workflow/definition/components/processPreview.vue deleted file mode 100644 index 059f7f0e..00000000 --- a/ruoyi-ui/src/views/workflow/definition/components/processPreview.vue +++ /dev/null @@ -1,79 +0,0 @@ - - - - diff --git a/ruoyi-ui/src/views/workflow/definition/components/processRule.vue b/ruoyi-ui/src/views/workflow/definition/components/processRule.vue deleted file mode 100644 index 67fa8bd8..00000000 --- a/ruoyi-ui/src/views/workflow/definition/components/processRule.vue +++ /dev/null @@ -1,129 +0,0 @@ - - - diff --git a/ruoyi-ui/src/views/workflow/definition/components/processSetting.vue b/ruoyi-ui/src/views/workflow/definition/components/processSetting.vue deleted file mode 100644 index 57e3e244..00000000 --- a/ruoyi-ui/src/views/workflow/definition/components/processSetting.vue +++ /dev/null @@ -1,412 +0,0 @@ - - - - - - - diff --git a/ruoyi-ui/src/views/workflow/definition/index.vue b/ruoyi-ui/src/views/workflow/definition/index.vue deleted file mode 100644 index 6c48822c..00000000 --- a/ruoyi-ui/src/views/workflow/definition/index.vue +++ /dev/null @@ -1,382 +0,0 @@ - - - diff --git a/ruoyi-ui/src/views/workflow/dynamicForm/dynamicFormDesigner.vue b/ruoyi-ui/src/views/workflow/dynamicForm/dynamicFormDesigner.vue deleted file mode 100644 index be870c0e..00000000 --- a/ruoyi-ui/src/views/workflow/dynamicForm/dynamicFormDesigner.vue +++ /dev/null @@ -1,28 +0,0 @@ - - - - - \ No newline at end of file diff --git a/ruoyi-ui/src/views/workflow/dynamicForm/dynamicFormEnableList.vue b/ruoyi-ui/src/views/workflow/dynamicForm/dynamicFormEnableList.vue deleted file mode 100644 index e55e5712..00000000 --- a/ruoyi-ui/src/views/workflow/dynamicForm/dynamicFormEnableList.vue +++ /dev/null @@ -1,262 +0,0 @@ - - - - diff --git a/ruoyi-ui/src/views/workflow/dynamicForm/index.vue b/ruoyi-ui/src/views/workflow/dynamicForm/index.vue deleted file mode 100644 index b04a6e60..00000000 --- a/ruoyi-ui/src/views/workflow/dynamicForm/index.vue +++ /dev/null @@ -1,303 +0,0 @@ - - - diff --git a/ruoyi-ui/src/views/workflow/instance/finish.vue b/ruoyi-ui/src/views/workflow/instance/finish.vue deleted file mode 100644 index 3cde7ba8..00000000 --- a/ruoyi-ui/src/views/workflow/instance/finish.vue +++ /dev/null @@ -1,137 +0,0 @@ - - - diff --git a/ruoyi-ui/src/views/workflow/instance/running.vue b/ruoyi-ui/src/views/workflow/instance/running.vue deleted file mode 100644 index 1d824038..00000000 --- a/ruoyi-ui/src/views/workflow/instance/running.vue +++ /dev/null @@ -1,233 +0,0 @@ - - - diff --git a/ruoyi-ui/src/views/workflow/message/index.vue b/ruoyi-ui/src/views/workflow/message/index.vue deleted file mode 100644 index 538dde00..00000000 --- a/ruoyi-ui/src/views/workflow/message/index.vue +++ /dev/null @@ -1,392 +0,0 @@ - - - diff --git a/ruoyi-ui/src/views/workflow/model/bpmnJs.vue b/ruoyi-ui/src/views/workflow/model/bpmnJs.vue deleted file mode 100644 index e2c4215c..00000000 --- a/ruoyi-ui/src/views/workflow/model/bpmnJs.vue +++ /dev/null @@ -1,92 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/views/workflow/model/design.vue b/ruoyi-ui/src/views/workflow/model/design.vue deleted file mode 100644 index 8bd1c046..00000000 --- a/ruoyi-ui/src/views/workflow/model/design.vue +++ /dev/null @@ -1,63 +0,0 @@ - - - - - diff --git a/ruoyi-ui/src/views/workflow/model/index.vue b/ruoyi-ui/src/views/workflow/model/index.vue deleted file mode 100644 index a6bf1779..00000000 --- a/ruoyi-ui/src/views/workflow/model/index.vue +++ /dev/null @@ -1,266 +0,0 @@ - - - diff --git a/ruoyi-ui/src/views/workflow/model/index2.vue b/ruoyi-ui/src/views/workflow/model/index2.vue deleted file mode 100644 index f41ce97c..00000000 --- a/ruoyi-ui/src/views/workflow/model/index2.vue +++ /dev/null @@ -1,255 +0,0 @@ - - - diff --git a/ruoyi-ui/src/views/workflow/task/finish.vue b/ruoyi-ui/src/views/workflow/task/finish.vue deleted file mode 100644 index bf7a89db..00000000 --- a/ruoyi-ui/src/views/workflow/task/finish.vue +++ /dev/null @@ -1,111 +0,0 @@ - - - diff --git a/ruoyi-ui/src/views/workflow/task/personalFinish.vue b/ruoyi-ui/src/views/workflow/task/personalFinish.vue deleted file mode 100644 index 05e9945a..00000000 --- a/ruoyi-ui/src/views/workflow/task/personalFinish.vue +++ /dev/null @@ -1,111 +0,0 @@ - - - diff --git a/ruoyi-ui/src/views/workflow/task/personalWaiting.vue b/ruoyi-ui/src/views/workflow/task/personalWaiting.vue deleted file mode 100644 index b994341f..00000000 --- a/ruoyi-ui/src/views/workflow/task/personalWaiting.vue +++ /dev/null @@ -1,222 +0,0 @@ - - - - \ No newline at end of file diff --git a/ruoyi-ui/src/views/workflow/task/waiting.vue b/ruoyi-ui/src/views/workflow/task/waiting.vue deleted file mode 100644 index a25f89e3..00000000 --- a/ruoyi-ui/src/views/workflow/task/waiting.vue +++ /dev/null @@ -1,385 +0,0 @@ - - - - diff --git a/ruoyi-ui/vue.config.js b/ruoyi-ui/vue.config.js index b39246a0..3b1bbe12 100644 --- a/ruoyi-ui/vue.config.js +++ b/ruoyi-ui/vue.config.js @@ -35,7 +35,7 @@ module.exports = { proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { - target: `http://14.10.8.153:9999`, + target: `http://localhost:9998`, changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: ''