commit
83317be00f
392 changed files with 37743 additions and 0 deletions
@ -0,0 +1,22 @@
@@ -0,0 +1,22 @@
|
||||
# 告诉EditorConfig插件,这是根文件,不用继续往上查找 |
||||
root = true |
||||
|
||||
# 匹配全部文件 |
||||
[*] |
||||
# 设置字符集 |
||||
charset = utf-8 |
||||
# 缩进风格,可选space、tab |
||||
indent_style = space |
||||
# 缩进的空格数 |
||||
indent_size = 2 |
||||
# 结尾换行符,可选lf、cr、crlf |
||||
end_of_line = lf |
||||
# 在文件结尾插入新行 |
||||
insert_final_newline = true |
||||
# 删除一行中的前后空格 |
||||
trim_trailing_whitespace = true |
||||
|
||||
# 匹配md结尾的文件 |
||||
[*.md] |
||||
insert_final_newline = false |
||||
trim_trailing_whitespace = false |
||||
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
# 页面标题 |
||||
VUE_APP_TITLE = 积分管理系统 |
||||
|
||||
# 开发环境配置 |
||||
ENV = 'development' |
||||
|
||||
# 路由懒加载 |
||||
VUE_CLI_BABEL_TRANSPILE_MODULES = true |
||||
@ -0,0 +1,5 @@
@@ -0,0 +1,5 @@
|
||||
# 页面标题 |
||||
VUE_APP_TITLE = 陈山智慧油库 |
||||
|
||||
# 生产环境配置 |
||||
ENV = 'production' |
||||
@ -0,0 +1,10 @@
@@ -0,0 +1,10 @@
|
||||
# 页面标题 |
||||
VUE_APP_TITLE = 若依管理系统 |
||||
|
||||
NODE_ENV = production |
||||
|
||||
# 测试环境配置 |
||||
ENV = 'staging' |
||||
|
||||
# 若依管理系统/测试环境 |
||||
VUE_APP_BASE_API = '/stage-api' |
||||
@ -0,0 +1,10 @@
@@ -0,0 +1,10 @@
|
||||
# 忽略build目录下类型为js的文件的语法检查 |
||||
build/*.js |
||||
# 忽略src/assets目录下文件的语法检查 |
||||
src/assets |
||||
# 忽略public目录下文件的语法检查 |
||||
public |
||||
# 忽略当前目录下为js的文件的语法检查 |
||||
*.js |
||||
# 忽略当前目录下为vue的文件的语法检查 |
||||
*.vue |
||||
@ -0,0 +1,199 @@
@@ -0,0 +1,199 @@
|
||||
// ESlint 检查配置
|
||||
module.exports = { |
||||
root: true, |
||||
parserOptions: { |
||||
parser: 'babel-eslint', |
||||
sourceType: 'module' |
||||
}, |
||||
env: { |
||||
browser: true, |
||||
node: true, |
||||
es6: true, |
||||
}, |
||||
extends: ['plugin:vue/recommended', 'eslint:recommended'], |
||||
|
||||
// add your custom rules here
|
||||
//it is base on https://github.com/vuejs/eslint-config-vue
|
||||
rules: { |
||||
"vue/max-attributes-per-line": [2, { |
||||
"singleline": 10, |
||||
"multiline": { |
||||
"max": 1, |
||||
"allowFirstLine": false |
||||
} |
||||
}], |
||||
"vue/singleline-html-element-content-newline": "off", |
||||
"vue/multiline-html-element-content-newline":"off", |
||||
"vue/name-property-casing": ["error", "PascalCase"], |
||||
"vue/no-v-html": "off", |
||||
'accessor-pairs': 2, |
||||
'arrow-spacing': [2, { |
||||
'before': true, |
||||
'after': true |
||||
}], |
||||
'block-spacing': [2, 'always'], |
||||
'brace-style': [2, '1tbs', { |
||||
'allowSingleLine': true |
||||
}], |
||||
'camelcase': [0, { |
||||
'properties': 'always' |
||||
}], |
||||
'comma-dangle': [2, 'never'], |
||||
'comma-spacing': [2, { |
||||
'before': false, |
||||
'after': true |
||||
}], |
||||
'comma-style': [2, 'last'], |
||||
'constructor-super': 2, |
||||
'curly': [2, 'multi-line'], |
||||
'dot-location': [2, 'property'], |
||||
'eol-last': 2, |
||||
'eqeqeq': ["error", "always", {"null": "ignore"}], |
||||
'generator-star-spacing': [2, { |
||||
'before': true, |
||||
'after': true |
||||
}], |
||||
'handle-callback-err': [2, '^(err|error)$'], |
||||
'indent': [2, 2, { |
||||
'SwitchCase': 1 |
||||
}], |
||||
'jsx-quotes': [2, 'prefer-single'], |
||||
'key-spacing': [2, { |
||||
'beforeColon': false, |
||||
'afterColon': true |
||||
}], |
||||
'keyword-spacing': [2, { |
||||
'before': true, |
||||
'after': true |
||||
}], |
||||
'new-cap': [2, { |
||||
'newIsCap': true, |
||||
'capIsNew': false |
||||
}], |
||||
'new-parens': 2, |
||||
'no-array-constructor': 2, |
||||
'no-caller': 2, |
||||
'no-console': 'off', |
||||
'no-class-assign': 2, |
||||
'no-cond-assign': 2, |
||||
'no-const-assign': 2, |
||||
'no-control-regex': 0, |
||||
'no-delete-var': 2, |
||||
'no-dupe-args': 2, |
||||
'no-dupe-class-members': 2, |
||||
'no-dupe-keys': 2, |
||||
'no-duplicate-case': 2, |
||||
'no-empty-character-class': 2, |
||||
'no-empty-pattern': 2, |
||||
'no-eval': 2, |
||||
'no-ex-assign': 2, |
||||
'no-extend-native': 2, |
||||
'no-extra-bind': 2, |
||||
'no-extra-boolean-cast': 2, |
||||
'no-extra-parens': [2, 'functions'], |
||||
'no-fallthrough': 2, |
||||
'no-floating-decimal': 2, |
||||
'no-func-assign': 2, |
||||
'no-implied-eval': 2, |
||||
'no-inner-declarations': [2, 'functions'], |
||||
'no-invalid-regexp': 2, |
||||
'no-irregular-whitespace': 2, |
||||
'no-iterator': 2, |
||||
'no-label-var': 2, |
||||
'no-labels': [2, { |
||||
'allowLoop': false, |
||||
'allowSwitch': false |
||||
}], |
||||
'no-lone-blocks': 2, |
||||
'no-mixed-spaces-and-tabs': 2, |
||||
'no-multi-spaces': 2, |
||||
'no-multi-str': 2, |
||||
'no-multiple-empty-lines': [2, { |
||||
'max': 1 |
||||
}], |
||||
'no-native-reassign': 2, |
||||
'no-negated-in-lhs': 2, |
||||
'no-new-object': 2, |
||||
'no-new-require': 2, |
||||
'no-new-symbol': 2, |
||||
'no-new-wrappers': 2, |
||||
'no-obj-calls': 2, |
||||
'no-octal': 2, |
||||
'no-octal-escape': 2, |
||||
'no-path-concat': 2, |
||||
'no-proto': 2, |
||||
'no-redeclare': 2, |
||||
'no-regex-spaces': 2, |
||||
'no-return-assign': [2, 'except-parens'], |
||||
'no-self-assign': 2, |
||||
'no-self-compare': 2, |
||||
'no-sequences': 2, |
||||
'no-shadow-restricted-names': 2, |
||||
'no-spaced-func': 2, |
||||
'no-sparse-arrays': 2, |
||||
'no-this-before-super': 2, |
||||
'no-throw-literal': 2, |
||||
'no-trailing-spaces': 2, |
||||
'no-undef': 2, |
||||
'no-undef-init': 2, |
||||
'no-unexpected-multiline': 2, |
||||
'no-unmodified-loop-condition': 2, |
||||
'no-unneeded-ternary': [2, { |
||||
'defaultAssignment': false |
||||
}], |
||||
'no-unreachable': 2, |
||||
'no-unsafe-finally': 2, |
||||
'no-unused-vars': [2, { |
||||
'vars': 'all', |
||||
'args': 'none' |
||||
}], |
||||
'no-useless-call': 2, |
||||
'no-useless-computed-key': 2, |
||||
'no-useless-constructor': 2, |
||||
'no-useless-escape': 0, |
||||
'no-whitespace-before-property': 2, |
||||
'no-with': 2, |
||||
'one-var': [2, { |
||||
'initialized': 'never' |
||||
}], |
||||
'operator-linebreak': [2, 'after', { |
||||
'overrides': { |
||||
'?': 'before', |
||||
':': 'before' |
||||
} |
||||
}], |
||||
'padded-blocks': [2, 'never'], |
||||
'quotes': [2, 'single', { |
||||
'avoidEscape': true, |
||||
'allowTemplateLiterals': true |
||||
}], |
||||
'semi': [2, 'never'], |
||||
'semi-spacing': [2, { |
||||
'before': false, |
||||
'after': true |
||||
}], |
||||
'space-before-blocks': [2, 'always'], |
||||
'space-before-function-paren': [2, 'never'], |
||||
'space-in-parens': [2, 'never'], |
||||
'space-infix-ops': 2, |
||||
'space-unary-ops': [2, { |
||||
'words': true, |
||||
'nonwords': false |
||||
}], |
||||
'spaced-comment': [2, 'always', { |
||||
'markers': ['global', 'globals', 'eslint', 'eslint-disable', '*package', '!', ','] |
||||
}], |
||||
'template-curly-spacing': [2, 'never'], |
||||
'use-isnan': 2, |
||||
'valid-typeof': 2, |
||||
'wrap-iife': [2, 'any'], |
||||
'yield-star-spacing': [2, 'both'], |
||||
'yoda': [2, 'never'], |
||||
'prefer-const': 2, |
||||
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0, |
||||
'object-curly-spacing': [2, 'always', { |
||||
objectsInObjects: false |
||||
}], |
||||
'array-bracket-spacing': [2, 'never'] |
||||
} |
||||
} |
||||
@ -0,0 +1,23 @@
@@ -0,0 +1,23 @@
|
||||
.DS_Store |
||||
node_modules/ |
||||
dist/ |
||||
npm-debug.log* |
||||
yarn-debug.log* |
||||
yarn-error.log* |
||||
**/*.log |
||||
|
||||
tests/**/coverage/ |
||||
tests/e2e/reports |
||||
selenium-debug.log |
||||
|
||||
# Editor directories and files |
||||
.idea |
||||
.vscode |
||||
*.suo |
||||
*.ntvs* |
||||
*.njsproj |
||||
*.sln |
||||
*.local |
||||
|
||||
package-lock.json |
||||
yarn.lock |
||||
@ -0,0 +1,30 @@
@@ -0,0 +1,30 @@
|
||||
## 开发 |
||||
|
||||
```bash |
||||
# 克隆项目 |
||||
git clone https://gitee.com/y_project/RuoYi-Vue |
||||
|
||||
# 进入项目目录 |
||||
cd ruoyi-ui |
||||
|
||||
# 安装依赖 |
||||
npm install |
||||
|
||||
# 建议不要直接使用 cnpm 安装依赖,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题 |
||||
npm install --registry=https://registry.npmmirror.com |
||||
|
||||
# 启动服务 |
||||
npm run dev |
||||
``` |
||||
|
||||
浏览器访问 http://localhost:80 |
||||
|
||||
## 发布 |
||||
|
||||
```bash |
||||
# 构建测试环境 |
||||
npm run build:stage |
||||
|
||||
# 构建生产环境 |
||||
npm run build:prod |
||||
``` |
||||
@ -0,0 +1,13 @@
@@ -0,0 +1,13 @@
|
||||
module.exports = { |
||||
presets: [ |
||||
// https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
|
||||
'@vue/cli-plugin-babel/preset' |
||||
], |
||||
'env': { |
||||
'development': { |
||||
// babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
|
||||
// This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
|
||||
'plugins': ['dynamic-import-node'] |
||||
} |
||||
} |
||||
} |
||||
@ -0,0 +1,12 @@
@@ -0,0 +1,12 @@
|
||||
@echo off |
||||
echo. |
||||
echo [信息] 打包Web工程,生成dist文件。 |
||||
echo. |
||||
|
||||
%~d0 |
||||
cd %~dp0 |
||||
|
||||
cd .. |
||||
npm run build:prod |
||||
|
||||
pause |
||||
@ -0,0 +1,12 @@
@@ -0,0 +1,12 @@
|
||||
@echo off |
||||
echo. |
||||
echo [信息] 安装Web工程,生成node_modules文件。 |
||||
echo. |
||||
|
||||
%~d0 |
||||
cd %~dp0 |
||||
|
||||
cd .. |
||||
npm install --registry=https://registry.npmmirror.com |
||||
|
||||
pause |
||||
@ -0,0 +1,12 @@
@@ -0,0 +1,12 @@
|
||||
@echo off |
||||
echo. |
||||
echo [信息] 使用 Vue CLI 命令运行 Web 工程。 |
||||
echo. |
||||
|
||||
%~d0 |
||||
cd %~dp0 |
||||
|
||||
cd .. |
||||
npm run dev |
||||
|
||||
pause |
||||
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
node_modules |
||||
@ -0,0 +1,39 @@
@@ -0,0 +1,39 @@
|
||||
# bpmnlint-plugin-local |
||||
|
||||
A bpmlint plug-in based on the [bpmnlint plug-in example](https://github.com/bpmn-io/bpmnlint-plugin-example). |
||||
|
||||
|
||||
## About |
||||
|
||||
This plugin contributes [rules](#add-rules) and [configuration](#add-configuration) under the `local` prefix to bpmnlint. |
||||
|
||||
|
||||
## Add Rules |
||||
|
||||
The [`./rules`](./rules) folder contains rules that are made available via |
||||
this plug-in. Configure them with the `local` prefix in your `.bpmnlintrc`: |
||||
|
||||
```json |
||||
{ |
||||
"rules": { |
||||
"local/no-manual-task": "warn" |
||||
} |
||||
} |
||||
``` |
||||
|
||||
Checkout [`./test.js`](./test.js) to learn how to test your rules. |
||||
|
||||
|
||||
## Add Configuration |
||||
|
||||
As part of the [`./index.js`](./index.js) the plug-in exposes configurations |
||||
to extend from using `extends` in the bpmnlint configuration: |
||||
|
||||
```json |
||||
{ |
||||
"extends": [ |
||||
"bpmnlint:recommended", |
||||
"plugin:local/recommended" |
||||
] |
||||
} |
||||
``` |
||||
@ -0,0 +1,13 @@
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="sid-38422fae-e03e-43a3-bef4-bd33b32041b2" targetNamespace="http://bpmn.io/bpmn" exporter="bpmn-js (https://demo.bpmn.io)" exporterVersion="5.0.4"> |
||||
<process id="Process_1" isExecutable="false"> |
||||
<userTask id="Task_14wqr7n" /> |
||||
</process> |
||||
<bpmndi:BPMNDiagram id="BpmnDiagram_1"> |
||||
<bpmndi:BPMNPlane id="BpmnPlane_1" bpmnElement="Process_1"> |
||||
<bpmndi:BPMNShape id="UserTask_0xvet6g_di" bpmnElement="Task_14wqr7n"> |
||||
<omgdc:Bounds x="160" y="80" width="100" height="80" /> |
||||
</bpmndi:BPMNShape> |
||||
</bpmndi:BPMNPlane> |
||||
</bpmndi:BPMNDiagram> |
||||
</definitions> |
||||
@ -0,0 +1,13 @@
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="sid-38422fae-e03e-43a3-bef4-bd33b32041b2" targetNamespace="http://bpmn.io/bpmn" exporter="bpmn-js (https://demo.bpmn.io)" exporterVersion="5.0.4"> |
||||
<process id="Process_1" isExecutable="false"> |
||||
<manualTask id="Task_14wqr7n" /> |
||||
</process> |
||||
<bpmndi:BPMNDiagram id="BpmnDiagram_1"> |
||||
<bpmndi:BPMNPlane id="BpmnPlane_1" bpmnElement="Process_1"> |
||||
<bpmndi:BPMNShape id="ManualTask_0jr4uio_di" bpmnElement="Task_14wqr7n"> |
||||
<omgdc:Bounds x="160" y="80" width="100" height="80" /> |
||||
</bpmndi:BPMNShape> |
||||
</bpmndi:BPMNPlane> |
||||
</bpmndi:BPMNDiagram> |
||||
</definitions> |
||||
@ -0,0 +1,16 @@
@@ -0,0 +1,16 @@
|
||||
# No Manual Task (no-manual-task) |
||||
|
||||
Checks that the diagram does not contain manual tasks that have no execution semantics. |
||||
|
||||
Example of __incorrect__ usage of this rule: |
||||
|
||||
 |
||||
|
||||
Cf. [`no-manual-task-incorrect.bpmn`](./examples/no-manual-task-incorrect.bpmn). |
||||
|
||||
|
||||
Example of __correct__ usage of this rule: |
||||
|
||||
 |
||||
|
||||
Cf. [`no-manual-task-correct.bpmn`](./examples/no-manual-task-correct.bpmn). |
||||
@ -0,0 +1,15 @@
@@ -0,0 +1,15 @@
|
||||
module.exports = { |
||||
configs: { |
||||
recommended: { |
||||
rules: { |
||||
'target-namespace': 'error' |
||||
} |
||||
}, |
||||
all: { |
||||
rules: { |
||||
'target-namespace': 'warn', |
||||
'no-manual-task': 'warn' |
||||
} |
||||
} |
||||
} |
||||
} |
||||
@ -0,0 +1,26 @@
@@ -0,0 +1,26 @@
|
||||
{ |
||||
"name": "bpmnlint-plugin-local", |
||||
"version": "0.0.0", |
||||
"description": "The bpmnlint local plug-in", |
||||
"main": "index.js", |
||||
"scripts": { |
||||
"all": "npm test", |
||||
"test": "mocha test.js" |
||||
}, |
||||
"keywords": [ |
||||
"bpmnlint", |
||||
"plugin" |
||||
], |
||||
"devDependencies": { |
||||
"bpmnlint": "^7.2.1", |
||||
"chai": "^4.2.0", |
||||
"mocha": "^9.1.3" |
||||
}, |
||||
"dependencies": { |
||||
"bpmnlint-utils": "^1.0.2" |
||||
}, |
||||
"files": [ |
||||
"rules", |
||||
"index.js" |
||||
] |
||||
} |
||||
@ -0,0 +1,20 @@
@@ -0,0 +1,20 @@
|
||||
const { |
||||
is |
||||
} = require('bpmnlint-utils'); |
||||
|
||||
|
||||
/** |
||||
* Rule that reports manual tasks being used. |
||||
*/ |
||||
module.exports = function() { |
||||
|
||||
function check(node, reporter) { |
||||
if (is(node, 'bpmn:ManualTask')) { |
||||
reporter.report(node.id, 'Element has disallowed type bpmn:ManualTask'); |
||||
} |
||||
} |
||||
|
||||
return { |
||||
check: check |
||||
}; |
||||
}; |
||||
@ -0,0 +1,20 @@
@@ -0,0 +1,20 @@
|
||||
const { |
||||
is |
||||
} = require('bpmnlint-utils'); |
||||
|
||||
|
||||
/** |
||||
* Rule that reports missing targetNamespace on bpmn:Definitions. |
||||
*/ |
||||
module.exports = function() { |
||||
|
||||
function check(node, reporter) { |
||||
if (is(node, 'bpmn:Definitions') && !node.targetNamespace) { |
||||
reporter.report(node.id, 'Element is missing targetNamespace'); |
||||
} |
||||
} |
||||
|
||||
return { |
||||
check: check |
||||
}; |
||||
}; |
||||
@ -0,0 +1,55 @@
@@ -0,0 +1,55 @@
|
||||
const { expect } = require('chai'); |
||||
|
||||
const { createModdle } = require('bpmnlint/lib/testers/helper'); |
||||
|
||||
const RuleTester = require('bpmnlint/lib/testers/rule-tester'); |
||||
|
||||
const manualTaskRule = require('./rules/no-manual-task'); |
||||
const targetNamespaceRule = require('./rules/target-namespace'); |
||||
|
||||
|
||||
RuleTester.verify('no-manual-task', manualTaskRule, { |
||||
valid: [ |
||||
{ |
||||
moddleElement: createModdle( |
||||
'<startEvent xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" id="startEvent" />', |
||||
'bpmn:StartEvent' |
||||
) |
||||
} |
||||
], |
||||
invalid: [ |
||||
{ |
||||
moddleElement: createModdle( |
||||
'<manualTask xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" id="manualTask" />', |
||||
'bpmn:ManualTask' |
||||
), |
||||
report: { |
||||
id: 'manualTask', |
||||
message: 'Element has disallowed type bpmn:ManualTask' |
||||
} |
||||
} |
||||
] |
||||
}); |
||||
|
||||
|
||||
RuleTester.verify('target-namespace', targetNamespaceRule, { |
||||
valid: [ |
||||
{ |
||||
moddleElement: createModdle( |
||||
'<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" id="definitions" targetNamespace="http://foo" />', |
||||
) |
||||
} |
||||
], |
||||
invalid: [ |
||||
{ |
||||
moddleElement: createModdle( |
||||
'<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" id="definitions" />', |
||||
), |
||||
report: { |
||||
id: 'definitions', |
||||
message: 'Element is missing targetNamespace' |
||||
} |
||||
} |
||||
] |
||||
}); |
||||
|
||||
@ -0,0 +1,35 @@
@@ -0,0 +1,35 @@
|
||||
const { run } = require('runjs') |
||||
const chalk = require('chalk') |
||||
const config = require('../vue.config.js') |
||||
const rawArgv = process.argv.slice(2) |
||||
const args = rawArgv.join(' ') |
||||
|
||||
if (process.env.npm_config_preview || rawArgv.includes('--preview')) { |
||||
const report = rawArgv.includes('--report') |
||||
|
||||
run(`vue-cli-service build ${args}`) |
||||
|
||||
const port = 9526 |
||||
const publicPath = config.publicPath |
||||
|
||||
var connect = require('connect') |
||||
var serveStatic = require('serve-static') |
||||
const app = connect() |
||||
|
||||
app.use( |
||||
publicPath, |
||||
serveStatic('./dist', { |
||||
index: ['index.html', '/'] |
||||
}) |
||||
) |
||||
|
||||
app.listen(port, function () { |
||||
console.log(chalk.green(`> Preview at http://localhost:${port}${publicPath}`)) |
||||
if (report) { |
||||
console.log(chalk.green(`> Report at http://localhost:${port}${publicPath}report.html`)) |
||||
} |
||||
|
||||
}) |
||||
} else { |
||||
run(`vue-cli-service build ${args}`) |
||||
} |
||||
@ -0,0 +1,102 @@
@@ -0,0 +1,102 @@
|
||||
{ |
||||
"name": "chenshan", |
||||
"version": "3.8.7", |
||||
"scripts": { |
||||
"dev": "vue-cli-service serve", |
||||
"build:prod": "node --openssl-legacy-provider node_modules/@vue/cli-service/bin/vue-cli-service.js build", |
||||
"build:stage": "node --openssl-legacy-provider node_modules/@vue/cli-service/bin/vue-cli-service.js build --mode staging", |
||||
"preview": "node build/index.js --preview", |
||||
"lint": "eslint --ext .js,.vue src" |
||||
}, |
||||
"husky": { |
||||
"hooks": { |
||||
"pre-commit": "lint-staged" |
||||
} |
||||
}, |
||||
"lint-staged": { |
||||
"src/**/*.{js,vue}": [ |
||||
"eslint --fix", |
||||
"git add" |
||||
] |
||||
}, |
||||
"keywords": [ |
||||
"vue", |
||||
"admin", |
||||
"dashboard", |
||||
"element-ui", |
||||
"boilerplate", |
||||
"admin-template", |
||||
"management-system" |
||||
], |
||||
"repository": { |
||||
"type": "git", |
||||
"url": "https://gitee.com/y_project/RuoYi-Vue.git" |
||||
}, |
||||
"dependencies": { |
||||
"@riophae/vue-treeselect": "0.4.0", |
||||
"axios": "0.24.0", |
||||
"bpmn-js": "^11.1.0", |
||||
"bpmn-js-bpmnlint": "^0.15.0", |
||||
"bpmnlint": "^6.4.0", |
||||
"bpmnlint-loader": "^0.1.4", |
||||
"clipboard": "2.0.8", |
||||
"core-js": "3.25.3", |
||||
"diagram-js": "^11.4.1", |
||||
"echarts": "^5.4.0", |
||||
"element-ui": "2.15.14", |
||||
"file-drops": "^0.4.0", |
||||
"file-saver": "^2.0.5", |
||||
"fuse.js": "6.4.3", |
||||
"highlight.js": "9.18.5", |
||||
"js-beautify": "1.13.0", |
||||
"js-cookie": "3.0.1", |
||||
"jsencrypt": "3.0.0-rc.1", |
||||
"mqtt": "^5.13.0", |
||||
"nprogress": "0.2.0", |
||||
"quill": "1.3.7", |
||||
"screenfull": "5.0.2", |
||||
"sortablejs": "1.10.2", |
||||
"vkbeautify": "^0.99.3", |
||||
"vue": "2.6.12", |
||||
"vue-contextmenujs": "^1.4.11", |
||||
"vue-count-to": "1.0.13", |
||||
"vue-cropper": "0.5.5", |
||||
"vue-meta": "2.4.0", |
||||
"vue-qr": "^4.0.9", |
||||
"vue-router": "3.4.9", |
||||
"vue2-scale-box": "^0.1.7", |
||||
"vuedraggable": "2.24.3", |
||||
"vuex": "3.6.0", |
||||
"xcrud": "^0.4.19", |
||||
"xlsx": "^0.18.5" |
||||
}, |
||||
"devDependencies": { |
||||
"@babel/parser": "^7.20.5", |
||||
"@vue/cli-plugin-babel": "4.4.6", |
||||
"@vue/cli-plugin-eslint": "4.4.6", |
||||
"@vue/cli-service": "4.4.6", |
||||
"babel-eslint": "10.1.0", |
||||
"babel-plugin-dynamic-import-node": "2.3.3", |
||||
"chalk": "4.1.0", |
||||
"compression-webpack-plugin": "5.0.2", |
||||
"connect": "3.6.6", |
||||
"eslint": "7.15.0", |
||||
"eslint-plugin-vue": "7.2.0", |
||||
"lint-staged": "10.5.3", |
||||
"runjs": "4.4.2", |
||||
"sass": "1.32.13", |
||||
"sass-loader": "10.1.1", |
||||
"script-ext-html-webpack-plugin": "2.1.5", |
||||
"svg-sprite-loader": "5.1.1", |
||||
"useless-files-webpack-plugin": "^1.0.1", |
||||
"vue-template-compiler": "2.6.12" |
||||
}, |
||||
"engines": { |
||||
"node": ">=8.9", |
||||
"npm": ">= 3.0.0" |
||||
}, |
||||
"browserslist": [ |
||||
"> 1%", |
||||
"last 2 versions" |
||||
] |
||||
} |
||||
|
After Width: | Height: | Size: 5.5 KiB |
File diff suppressed because one or more lines are too long
@ -0,0 +1,227 @@
@@ -0,0 +1,227 @@
|
||||
<!DOCTYPE html> |
||||
<html> |
||||
|
||||
<head> |
||||
<meta charset="utf-8"> |
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
||||
<meta name="renderer" content="webkit"> |
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> |
||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> |
||||
<title> |
||||
<%= webpackConfig.name %> |
||||
</title> |
||||
<script src="/static/config.js"></script> |
||||
<!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]--> |
||||
<style> |
||||
html, |
||||
body, |
||||
#app { |
||||
height: 100%; |
||||
margin: 0px; |
||||
padding: 0px; |
||||
} |
||||
|
||||
.chromeframe { |
||||
margin: 0.2em 0; |
||||
background: #ccc; |
||||
color: #000; |
||||
padding: 0.2em 0; |
||||
} |
||||
|
||||
#loader-wrapper { |
||||
position: fixed; |
||||
top: 0; |
||||
left: 0; |
||||
width: 100%; |
||||
height: 100%; |
||||
z-index: 999999; |
||||
} |
||||
|
||||
#loader { |
||||
display: block; |
||||
position: relative; |
||||
left: 50%; |
||||
top: 50%; |
||||
width: 150px; |
||||
height: 150px; |
||||
margin: -75px 0 0 -75px; |
||||
border-radius: 50%; |
||||
border: 3px solid transparent; |
||||
border-top-color: #FFF; |
||||
-webkit-animation: spin 2s linear infinite; |
||||
-ms-animation: spin 2s linear infinite; |
||||
-moz-animation: spin 2s linear infinite; |
||||
-o-animation: spin 2s linear infinite; |
||||
animation: spin 2s linear infinite; |
||||
z-index: 1001; |
||||
} |
||||
|
||||
#loader:before { |
||||
content: ""; |
||||
position: absolute; |
||||
top: 5px; |
||||
left: 5px; |
||||
right: 5px; |
||||
bottom: 5px; |
||||
border-radius: 50%; |
||||
border: 3px solid transparent; |
||||
border-top-color: #FFF; |
||||
-webkit-animation: spin 3s linear infinite; |
||||
-moz-animation: spin 3s linear infinite; |
||||
-o-animation: spin 3s linear infinite; |
||||
-ms-animation: spin 3s linear infinite; |
||||
animation: spin 3s linear infinite; |
||||
} |
||||
|
||||
#loader:after { |
||||
content: ""; |
||||
position: absolute; |
||||
top: 15px; |
||||
left: 15px; |
||||
right: 15px; |
||||
bottom: 15px; |
||||
border-radius: 50%; |
||||
border: 3px solid transparent; |
||||
border-top-color: #FFF; |
||||
-moz-animation: spin 1.5s linear infinite; |
||||
-o-animation: spin 1.5s linear infinite; |
||||
-ms-animation: spin 1.5s linear infinite; |
||||
-webkit-animation: spin 1.5s linear infinite; |
||||
animation: spin 1.5s linear infinite; |
||||
} |
||||
|
||||
|
||||
@-webkit-keyframes spin { |
||||
0% { |
||||
-webkit-transform: rotate(0deg); |
||||
-ms-transform: rotate(0deg); |
||||
transform: rotate(0deg); |
||||
} |
||||
|
||||
100% { |
||||
-webkit-transform: rotate(360deg); |
||||
-ms-transform: rotate(360deg); |
||||
transform: rotate(360deg); |
||||
} |
||||
} |
||||
|
||||
@keyframes spin { |
||||
0% { |
||||
-webkit-transform: rotate(0deg); |
||||
-ms-transform: rotate(0deg); |
||||
transform: rotate(0deg); |
||||
} |
||||
|
||||
100% { |
||||
-webkit-transform: rotate(360deg); |
||||
-ms-transform: rotate(360deg); |
||||
transform: rotate(360deg); |
||||
} |
||||
} |
||||
|
||||
|
||||
#loader-wrapper .loader-section { |
||||
position: fixed; |
||||
top: 0; |
||||
width: 51%; |
||||
height: 100%; |
||||
background: #7171C6; |
||||
z-index: 1000; |
||||
-webkit-transform: translateX(0); |
||||
-ms-transform: translateX(0); |
||||
transform: translateX(0); |
||||
} |
||||
|
||||
#loader-wrapper .loader-section.section-left { |
||||
left: 0; |
||||
} |
||||
|
||||
#loader-wrapper .loader-section.section-right { |
||||
right: 0; |
||||
} |
||||
|
||||
|
||||
.loaded #loader-wrapper .loader-section.section-left { |
||||
-webkit-transform: translateX(-100%); |
||||
-ms-transform: translateX(-100%); |
||||
transform: translateX(-100%); |
||||
-webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000); |
||||
transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000); |
||||
} |
||||
|
||||
.loaded #loader-wrapper .loader-section.section-right { |
||||
-webkit-transform: translateX(100%); |
||||
-ms-transform: translateX(100%); |
||||
transform: translateX(100%); |
||||
-webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000); |
||||
transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000); |
||||
} |
||||
|
||||
.loaded #loader { |
||||
opacity: 0; |
||||
-webkit-transition: all 0.3s ease-out; |
||||
transition: all 0.3s ease-out; |
||||
} |
||||
|
||||
.loaded #loader-wrapper { |
||||
visibility: hidden; |
||||
-webkit-transform: translateY(-100%); |
||||
-ms-transform: translateY(-100%); |
||||
transform: translateY(-100%); |
||||
-webkit-transition: all 0.3s 1s ease-out; |
||||
transition: all 0.3s 1s ease-out; |
||||
} |
||||
|
||||
.no-js #loader-wrapper { |
||||
display: none; |
||||
} |
||||
|
||||
.no-js h1 { |
||||
color: #222222; |
||||
} |
||||
|
||||
#loader-wrapper .load_title { |
||||
font-family: 'Open Sans'; |
||||
color: #FFF; |
||||
font-size: 19px; |
||||
width: 100%; |
||||
text-align: center; |
||||
z-index: 9999999999999; |
||||
position: absolute; |
||||
top: 60%; |
||||
opacity: 1; |
||||
line-height: 30px; |
||||
} |
||||
|
||||
#loader-wrapper .load_title span { |
||||
font-weight: normal; |
||||
font-style: italic; |
||||
font-size: 13px; |
||||
color: #FFF; |
||||
opacity: 0.5; |
||||
} |
||||
|
||||
/* COLOR PICKER */ |
||||
.djs-popup.color-picker .entry { |
||||
margin: 0; |
||||
} |
||||
|
||||
.djs-popup.color-picker .djs-popup-group { |
||||
display: grid; |
||||
grid: auto-flow / 1fr 1fr 1fr; |
||||
} |
||||
</style> |
||||
</head> |
||||
|
||||
<body> |
||||
<div id="app"> |
||||
<div id="loader-wrapper"> |
||||
<div id="loader"></div> |
||||
<div class="loader-section section-left"></div> |
||||
<div class="loader-section section-right"></div> |
||||
<div class="load_title">正在加载系统资源,请耐心等待</div> |
||||
</div> |
||||
</div> |
||||
</body> |
||||
|
||||
</html> |
||||
@ -0,0 +1,37 @@
@@ -0,0 +1,37 @@
|
||||
<!DOCTYPE html> |
||||
<html> |
||||
<head> |
||||
<meta charset="utf-8"> |
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> |
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0"> |
||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> |
||||
<title>form-generator-preview</title> |
||||
<link href="https://lib.baomitu.com/element-ui/2.13.2/theme-chalk/index.css" rel="stylesheet"> |
||||
<script src="https://lib.baomitu.com/vue/2.6.11/vue.min.js"></script> |
||||
<script src="https://lib.baomitu.com/vue-router/3.1.3/vue-router.min.js"></script> |
||||
<script src="https://lib.baomitu.com/element-ui/2.13.2/index.js"></script> |
||||
<style> |
||||
body{ |
||||
margin: 0; |
||||
padding: 0; |
||||
overflow-x: hidden; |
||||
-moz-osx-font-smoothing: grayscale; |
||||
-webkit-font-smoothing: antialiased; |
||||
text-rendering: optimizeLegibility; |
||||
height: calc(100vh - 33px); |
||||
padding: 12px; |
||||
box-sizing: border-box; |
||||
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji; |
||||
} |
||||
input, textarea{ |
||||
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji; |
||||
} |
||||
</style> |
||||
</head> |
||||
<body> |
||||
<noscript> |
||||
<strong>抱歉,javascript被禁用,请开启后重试。</strong> |
||||
</noscript> |
||||
<div id="previewApp"></div> |
||||
</body> |
||||
</html> |
||||
@ -0,0 +1,24 @@
@@ -0,0 +1,24 @@
|
||||
const MyConfig = { |
||||
// BASE_API: 'http://192.168.1.18:8050/gd_dataserver',
|
||||
//BASE_API: 'http://bjsdqc.cn:8090/gd_dataserver',
|
||||
BASE_API: 'http://www.bjsdqc.cn:10090/gd_dataserver', |
||||
// BASE_API: 'http://localhost:8050/gd_dataserver',
|
||||
|
||||
// FILE_BASE_URL: 'http://192.168.1.18:8050/gd_dataserver',
|
||||
FILE_BASE_URL: 'http://localhost:8050/gd_dataserver', |
||||
// FILE_BASE_URL: 'http://localhost:9978/gd_dataserver',
|
||||
|
||||
TEMPLATE_FILE_URL: 'http://localhost:9527/asset/template', |
||||
// TEMPLATE_FILE_URL: 'http://localhost:9978/map/template/',
|
||||
|
||||
MQTTconnection: { |
||||
host: "bjsdqc.cn", |
||||
port: "8083", |
||||
endpoint: "/mqtt", |
||||
}, |
||||
|
||||
// app地址
|
||||
apk_url: "http://bjsdqc.cn:9527/asset/apk/gd_v1.7.2.apk", |
||||
|
||||
isFlat: false, // isFlat是否启用拉伸模式 默认 false
|
||||
} |
||||
@ -0,0 +1,38 @@
@@ -0,0 +1,38 @@
|
||||
<template> |
||||
<!-- |
||||
width 宽度 默认 1920 |
||||
height 高度 默认 1080 |
||||
bgc 背景颜色 默认 "transparent" |
||||
delay自适应缩放防抖延迟时间(ms) 默认 100 |
||||
isFlat是否启用拉伸模式 默认 false |
||||
--> |
||||
<ScaleBox :width="1920" :height="1080" :delay="100" :isFlat="true"> |
||||
<div id="app"> |
||||
<router-view /> |
||||
<theme-picker /> |
||||
</div> |
||||
</ScaleBox> |
||||
</template> |
||||
|
||||
<script> |
||||
import ScaleBox from 'vue2-scale-box' |
||||
import ThemePicker from "@/components/ThemePicker"; |
||||
|
||||
export default { |
||||
name: "App", |
||||
components: { ThemePicker, ScaleBox }, |
||||
metaInfo() { |
||||
return { |
||||
title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title, |
||||
titleTemplate: title => { |
||||
return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE |
||||
} |
||||
} |
||||
} |
||||
}; |
||||
</script> |
||||
<style scoped> |
||||
#app .theme-picker { |
||||
display: none; |
||||
} |
||||
</style> |
||||
@ -0,0 +1,15 @@
@@ -0,0 +1,15 @@
|
||||
import request, { axios } from '@/utils/request' |
||||
import { getCompanyId } from '@/utils/config' |
||||
|
||||
// 获取数据统一方法
|
||||
export function getActionByDS(parameter, data) { |
||||
if (parameter !== null && parameter !== undefined) { |
||||
parameter.org_Id = getCompanyId() |
||||
} |
||||
return request({ |
||||
url: 'DataProc/getData', |
||||
method: 'post', |
||||
data: data, |
||||
params: parameter |
||||
}) |
||||
} |
||||
@ -0,0 +1,57 @@
@@ -0,0 +1,57 @@
|
||||
/** 审批相关 */ |
||||
import request from '@/utils/request' |
||||
|
||||
// 审批
|
||||
export function busiTaskList(data, params) { |
||||
return request({ |
||||
url: '/flowable/busiTask/complete', |
||||
method: 'post', |
||||
data, |
||||
params |
||||
}) |
||||
} |
||||
|
||||
// 代办
|
||||
export function deviceChangeTodoList(params) { |
||||
return request({ |
||||
url: '/flowable/task/todoList', |
||||
method: 'get', |
||||
params |
||||
}) |
||||
} |
||||
|
||||
// 已办
|
||||
export function deviceChangeFinishedList(params) { |
||||
return request({ |
||||
url: '/flowable/task/finishedList', |
||||
method: 'get', |
||||
params |
||||
}) |
||||
} |
||||
|
||||
// 流转记录
|
||||
export function deviceChangeFlowRecord(params) { |
||||
return request({ |
||||
url: '/flowable/task/flowRecord', |
||||
method: 'get', |
||||
params |
||||
}) |
||||
} |
||||
|
||||
// 所有流程列表
|
||||
export function deviceChangeMyProcess(params) { |
||||
return request({ |
||||
url: '/flowable/task/myProcess', |
||||
method: 'get', |
||||
params |
||||
}) |
||||
} |
||||
|
||||
// 获取签字信息
|
||||
export function getSignInfo(params) { |
||||
return request({ |
||||
url: '/business/equip-qz/getQzList', |
||||
method: 'get', |
||||
params |
||||
}) |
||||
} |
||||
@ -0,0 +1,140 @@
@@ -0,0 +1,140 @@
|
||||
import request from '@/utils/request' |
||||
|
||||
// 查询流程定义列表
|
||||
export function listDefinition(query) { |
||||
return request({ |
||||
url: '/flowable/definition/list', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
|
||||
// 部署流程实例
|
||||
export function definitionStart(procDefId, data) { |
||||
return request({ |
||||
url: '/flowable/definition/start/' + procDefId, |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 获取流程变量
|
||||
export function getProcessVariables(taskId) { |
||||
return request({ |
||||
url: '/flowable/task/processVariables/' + taskId, |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
// 激活/挂起流程
|
||||
export function updateState(params) { |
||||
return request({ |
||||
url: '/flowable/definition/updateState', |
||||
method: 'put', |
||||
params: params |
||||
}) |
||||
} |
||||
|
||||
// 指定流程办理人员列表
|
||||
export function userList(query) { |
||||
return request({ |
||||
url: '/flowable/definition/userList', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
|
||||
// 指定流程办理组列表
|
||||
export function roleList(query) { |
||||
return request({ |
||||
url: '/flowable/definition/roleList', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
|
||||
// 指定流程表达式
|
||||
export function expList(query) { |
||||
return request({ |
||||
url: '/flowable/definition/expList', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
|
||||
// 读取xml文件
|
||||
export function readXml(deployId) { |
||||
return request({ |
||||
url: '/flowable/definition/readXml/' + deployId, |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
// 读取image文件
|
||||
export function readImage(deployId) { |
||||
return request({ |
||||
url: '/flowable/definition/readImage/' + deployId, |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
// 获取流程执行节点
|
||||
export function getFlowViewer(procInsId, executionId) { |
||||
return request({ |
||||
url: '/flowable/task/flowViewer/' + procInsId + '/' + executionId, |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
// 流程节点数据
|
||||
export function flowXmlAndNode(query) { |
||||
return request({ |
||||
url: '/flowable/task/flowXmlAndNode', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
|
||||
// 读取xml文件
|
||||
export function saveXml(data) { |
||||
return request({ |
||||
url: '/flowable/definition/save', |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 新增流程定义
|
||||
export function addDeployment(data) { |
||||
return request({ |
||||
url: '/system/deployment', |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 修改流程定义
|
||||
export function updateDeployment(data) { |
||||
return request({ |
||||
url: '/system/deployment', |
||||
method: 'put', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 删除流程定义
|
||||
export function delDeployment(deployId) { |
||||
return request({ |
||||
url: '/flowable/definition/' + deployId, |
||||
method: 'delete', |
||||
}) |
||||
} |
||||
|
||||
// 导出流程定义
|
||||
export function exportDeployment(query) { |
||||
return request({ |
||||
url: '/system/deployment/export', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
@ -0,0 +1,80 @@
@@ -0,0 +1,80 @@
|
||||
import request from '@/utils/request' |
||||
import da from "element-ui/src/locale/lang/da"; |
||||
|
||||
// 查询已办任务列表
|
||||
export function finishedList(query) { |
||||
return request({ |
||||
url: '/flowable/task/finishedList', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
|
||||
// 任务流转记录
|
||||
export function flowRecord(query) { |
||||
return request({ |
||||
url: '/flowable/task/flowRecord', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
|
||||
// 撤回任务
|
||||
export function revokeProcess(data) { |
||||
return request({ |
||||
url: '/flowable/task/revokeProcess', |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 部署流程实例
|
||||
export function deployStart(deployId) { |
||||
return request({ |
||||
url: '/flowable/process/startFlow/' + deployId, |
||||
method: 'get', |
||||
}) |
||||
} |
||||
|
||||
// 查询流程定义详细
|
||||
export function getDeployment(id) { |
||||
return request({ |
||||
url: '/system/deployment/' + id, |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
// 新增流程定义
|
||||
export function addDeployment(data) { |
||||
return request({ |
||||
url: '/system/deployment', |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 修改流程定义
|
||||
export function updateDeployment(data) { |
||||
return request({ |
||||
url: '/system/deployment', |
||||
method: 'put', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 删除流程定义
|
||||
export function delDeployment(id) { |
||||
return request({ |
||||
url: '/flowable/instance/delete/' + id, |
||||
method: 'delete' |
||||
}) |
||||
} |
||||
|
||||
// 导出流程定义
|
||||
export function exportDeployment(query) { |
||||
return request({ |
||||
url: '/system/deployment/export', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
@ -0,0 +1,68 @@
@@ -0,0 +1,68 @@
|
||||
import request from '@/utils/request' |
||||
|
||||
// 查询流程表单列表
|
||||
export function listForm(query) { |
||||
return request({ |
||||
url: '/flowable/form/list', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
export function listAllForm(query) { |
||||
return request({ |
||||
url: '/flowable/form/formList', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
|
||||
// 查询流程表单详细
|
||||
export function getForm(formId) { |
||||
return request({ |
||||
url: '/flowable/form/' + formId, |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
// 新增流程表单
|
||||
export function addForm(data) { |
||||
return request({ |
||||
url: '/flowable/form', |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 修改流程表单
|
||||
export function updateForm(data) { |
||||
return request({ |
||||
url: '/flowable/form', |
||||
method: 'put', |
||||
data: data |
||||
}) |
||||
} |
||||
// 挂载表单
|
||||
export function addDeployForm(data) { |
||||
return request({ |
||||
url: '/flowable/form/addDeployForm', |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 删除流程表单
|
||||
export function delForm(formId) { |
||||
return request({ |
||||
url: '/flowable/form/' + formId, |
||||
method: 'delete' |
||||
}) |
||||
} |
||||
|
||||
// 导出流程表单
|
||||
export function exportForm(query) { |
||||
return request({ |
||||
url: '/flowable/form/export', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
@ -0,0 +1,106 @@
@@ -0,0 +1,106 @@
|
||||
import request from '@/utils/request' |
||||
import da from "element-ui/src/locale/lang/da"; |
||||
|
||||
// 我的发起的流程
|
||||
export function myProcessList(query) { |
||||
return request({ |
||||
url: '/flowable/task/myProcess', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
|
||||
export function flowFormData(query) { |
||||
return request({ |
||||
url: '/flowable/task/flowFormData', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
|
||||
// 完成任务
|
||||
export function complete(data) { |
||||
return request({ |
||||
url: '/flowable/task/complete', |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 取消申请
|
||||
export function stopProcess(data) { |
||||
return request({ |
||||
url: '/flowable/task/stopProcess', |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 驳回任务
|
||||
export function rejectTask(data) { |
||||
return request({ |
||||
url: '/flowable/task/reject', |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 可退回任务列表
|
||||
export function returnList(data) { |
||||
return request({ |
||||
url: '/flowable/task/returnList', |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 部署流程实例
|
||||
export function deployStart(deployId) { |
||||
return request({ |
||||
url: '/flowable/process/startFlow/' + deployId, |
||||
method: 'get', |
||||
}) |
||||
} |
||||
|
||||
// 查询流程定义详细
|
||||
export function getDeployment(id) { |
||||
return request({ |
||||
url: '/system/deployment/' + id, |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
// 新增流程定义
|
||||
export function addDeployment(data) { |
||||
return request({ |
||||
url: '/system/deployment', |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 修改流程定义
|
||||
export function updateDeployment(data) { |
||||
return request({ |
||||
url: '/system/deployment', |
||||
method: 'put', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 删除流程定义
|
||||
export function delDeployment(id) { |
||||
return request({ |
||||
url: '/system/deployment/' + id, |
||||
method: 'delete' |
||||
}) |
||||
} |
||||
|
||||
// 导出流程定义
|
||||
export function exportDeployment(query) { |
||||
return request({ |
||||
url: '/system/deployment/export', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
@ -0,0 +1,133 @@
@@ -0,0 +1,133 @@
|
||||
import request from '@/utils/request' |
||||
import da from "element-ui/src/locale/lang/da"; |
||||
|
||||
// 查询待办任务列表
|
||||
export function todoList(query) { |
||||
return request({ |
||||
url: '/flowable/task/todoList', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
|
||||
// 完成任务
|
||||
export function complete(data) { |
||||
return request({ |
||||
url: '/flowable/task/complete', |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 委派任务
|
||||
export function delegate(data) { |
||||
return request({ |
||||
url: '/flowable/task/delegate', |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 退回任务
|
||||
export function returnTask(data) { |
||||
return request({ |
||||
url: '/flowable/task/return', |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 驳回任务
|
||||
export function rejectTask(data) { |
||||
return request({ |
||||
url: '/flowable/task/reject', |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 可退回任务列表
|
||||
export function returnList(data) { |
||||
return request({ |
||||
url: '/flowable/task/returnList', |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 下一节点
|
||||
export function getNextFlowNode(data) { |
||||
return request({ |
||||
url: '/flowable/task/nextFlowNode', |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 下一节点
|
||||
export function getNextFlowNodeByStart(data) { |
||||
return request({ |
||||
url: '/flowable/task/nextFlowNodeByStart', |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 部署流程实例
|
||||
export function deployStart(deployId) { |
||||
return request({ |
||||
url: '/flowable/process/startFlow/' + deployId, |
||||
method: 'get', |
||||
}) |
||||
} |
||||
|
||||
// 查询流程定义详细
|
||||
export function getDeployment(id) { |
||||
return request({ |
||||
url: '/system/deployment/' + id, |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
// 新增流程定义
|
||||
export function addDeployment(data) { |
||||
return request({ |
||||
url: '/system/deployment', |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 修改流程定义
|
||||
export function updateDeployment(data) { |
||||
return request({ |
||||
url: '/system/deployment', |
||||
method: 'put', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 删除流程定义
|
||||
export function delDeployment(id) { |
||||
return request({ |
||||
url: '/system/deployment/' + id, |
||||
method: 'delete' |
||||
}) |
||||
} |
||||
|
||||
// 导出流程定义
|
||||
export function exportDeployment(query) { |
||||
return request({ |
||||
url: '/system/deployment/export', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
// 流程节点表单
|
||||
export function flowTaskForm(query) { |
||||
return request({ |
||||
url: '/flowable/task/flowTaskForm', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
@ -0,0 +1,26 @@
@@ -0,0 +1,26 @@
|
||||
// 通用接口
|
||||
import request from '@/utils/request' |
||||
|
||||
// 单个文件上传
|
||||
export function fileUpload(data) { |
||||
return request({ |
||||
url: '/common/upload', |
||||
method: 'post', |
||||
headers: { |
||||
'repeatSubmit': false |
||||
}, |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 批量文件上传
|
||||
export function fileUploads(data) { |
||||
return request({ |
||||
url: '/common/uploads', |
||||
method: 'post', |
||||
headers: { |
||||
'repeatSubmit': false |
||||
}, |
||||
data: data |
||||
}) |
||||
} |
||||
@ -0,0 +1,60 @@
@@ -0,0 +1,60 @@
|
||||
import request from '@/utils/request' |
||||
|
||||
// 登录方法
|
||||
export function login(username, password, code, uuid) { |
||||
const data = { |
||||
username, |
||||
password, |
||||
code, |
||||
uuid |
||||
} |
||||
return request({ |
||||
url: '/login', |
||||
headers: { |
||||
isToken: false, |
||||
repeatSubmit: false |
||||
}, |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 注册方法
|
||||
export function register(data) { |
||||
return request({ |
||||
url: '/register', |
||||
headers: { |
||||
isToken: false |
||||
}, |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 获取用户详细信息
|
||||
export function getInfo() { |
||||
return request({ |
||||
url: '/getInfo', |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
// 退出方法
|
||||
export function logout() { |
||||
return request({ |
||||
url: '/logout', |
||||
method: 'post' |
||||
}) |
||||
} |
||||
|
||||
// 获取验证码
|
||||
export function getCodeImg() { |
||||
return request({ |
||||
url: '/captchaImage', |
||||
headers: { |
||||
isToken: false |
||||
}, |
||||
method: 'get', |
||||
timeout: 20000 |
||||
}) |
||||
} |
||||
@ -0,0 +1,9 @@
@@ -0,0 +1,9 @@
|
||||
import request from '@/utils/request' |
||||
|
||||
// 获取路由
|
||||
export const getRouters = () => { |
||||
return request({ |
||||
url: '/getRouters', |
||||
method: 'get' |
||||
}) |
||||
} |
||||
@ -0,0 +1,57 @@
@@ -0,0 +1,57 @@
|
||||
import request from '@/utils/request' |
||||
|
||||
// 查询缓存详细
|
||||
export function getCache() { |
||||
return request({ |
||||
url: '/monitor/cache', |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
// 查询缓存名称列表
|
||||
export function listCacheName() { |
||||
return request({ |
||||
url: '/monitor/cache/getNames', |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
// 查询缓存键名列表
|
||||
export function listCacheKey(cacheName) { |
||||
return request({ |
||||
url: '/monitor/cache/getKeys/' + cacheName, |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
// 查询缓存内容
|
||||
export function getCacheValue(cacheName, cacheKey) { |
||||
return request({ |
||||
url: '/monitor/cache/getValue/' + cacheName + '/' + cacheKey, |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
// 清理指定名称缓存
|
||||
export function clearCacheName(cacheName) { |
||||
return request({ |
||||
url: '/monitor/cache/clearCacheName/' + cacheName, |
||||
method: 'delete' |
||||
}) |
||||
} |
||||
|
||||
// 清理指定键名缓存
|
||||
export function clearCacheKey(cacheKey) { |
||||
return request({ |
||||
url: '/monitor/cache/clearCacheKey/' + cacheKey, |
||||
method: 'delete' |
||||
}) |
||||
} |
||||
|
||||
// 清理全部缓存
|
||||
export function clearCacheAll() { |
||||
return request({ |
||||
url: '/monitor/cache/clearCacheAll', |
||||
method: 'delete' |
||||
}) |
||||
} |
||||
@ -0,0 +1,71 @@
@@ -0,0 +1,71 @@
|
||||
import request from '@/utils/request' |
||||
|
||||
// 查询定时任务调度列表
|
||||
export function listJob(query) { |
||||
return request({ |
||||
url: '/monitor/job/list', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
|
||||
// 查询定时任务调度详细
|
||||
export function getJob(jobId) { |
||||
return request({ |
||||
url: '/monitor/job/' + jobId, |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
// 新增定时任务调度
|
||||
export function addJob(data) { |
||||
return request({ |
||||
url: '/monitor/job', |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 修改定时任务调度
|
||||
export function updateJob(data) { |
||||
return request({ |
||||
url: '/monitor/job', |
||||
method: 'put', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 删除定时任务调度
|
||||
export function delJob(jobId) { |
||||
return request({ |
||||
url: '/monitor/job/' + jobId, |
||||
method: 'delete' |
||||
}) |
||||
} |
||||
|
||||
// 任务状态修改
|
||||
export function changeJobStatus(jobId, status) { |
||||
const data = { |
||||
jobId, |
||||
status |
||||
} |
||||
return request({ |
||||
url: '/monitor/job/changeStatus', |
||||
method: 'put', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
|
||||
// 定时任务立即执行一次
|
||||
export function runJob(jobId, jobGroup) { |
||||
const data = { |
||||
jobId, |
||||
jobGroup |
||||
} |
||||
return request({ |
||||
url: '/monitor/job/run', |
||||
method: 'put', |
||||
data: data |
||||
}) |
||||
} |
||||
@ -0,0 +1,26 @@
@@ -0,0 +1,26 @@
|
||||
import request from '@/utils/request' |
||||
|
||||
// 查询调度日志列表
|
||||
export function listJobLog(query) { |
||||
return request({ |
||||
url: '/monitor/jobLog/list', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
|
||||
// 删除调度日志
|
||||
export function delJobLog(jobLogId) { |
||||
return request({ |
||||
url: '/monitor/jobLog/' + jobLogId, |
||||
method: 'delete' |
||||
}) |
||||
} |
||||
|
||||
// 清空调度日志
|
||||
export function cleanJobLog() { |
||||
return request({ |
||||
url: '/monitor/jobLog/clean', |
||||
method: 'delete' |
||||
}) |
||||
} |
||||
@ -0,0 +1,34 @@
@@ -0,0 +1,34 @@
|
||||
import request from '@/utils/request' |
||||
|
||||
// 查询登录日志列表
|
||||
export function list(query) { |
||||
return request({ |
||||
url: '/monitor/logininfor/list', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
|
||||
// 删除登录日志
|
||||
export function delLogininfor(infoId) { |
||||
return request({ |
||||
url: '/monitor/logininfor/' + infoId, |
||||
method: 'delete' |
||||
}) |
||||
} |
||||
|
||||
// 解锁用户登录状态
|
||||
export function unlockLogininfor(userName) { |
||||
return request({ |
||||
url: '/monitor/logininfor/unlock/' + userName, |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
// 清空登录日志
|
||||
export function cleanLogininfor() { |
||||
return request({ |
||||
url: '/monitor/logininfor/clean', |
||||
method: 'delete' |
||||
}) |
||||
} |
||||
@ -0,0 +1,18 @@
@@ -0,0 +1,18 @@
|
||||
import request from '@/utils/request' |
||||
|
||||
// 查询在线用户列表
|
||||
export function list(query) { |
||||
return request({ |
||||
url: '/monitor/online/list', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
|
||||
// 强退用户
|
||||
export function forceLogout(tokenId) { |
||||
return request({ |
||||
url: '/monitor/online/' + tokenId, |
||||
method: 'delete' |
||||
}) |
||||
} |
||||
@ -0,0 +1,26 @@
@@ -0,0 +1,26 @@
|
||||
import request from '@/utils/request' |
||||
|
||||
// 查询操作日志列表
|
||||
export function list(query) { |
||||
return request({ |
||||
url: '/monitor/operlog/list', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
|
||||
// 删除操作日志
|
||||
export function delOperlog(operId) { |
||||
return request({ |
||||
url: '/monitor/operlog/' + operId, |
||||
method: 'delete' |
||||
}) |
||||
} |
||||
|
||||
// 清空操作日志
|
||||
export function cleanOperlog() { |
||||
return request({ |
||||
url: '/monitor/operlog/clean', |
||||
method: 'delete' |
||||
}) |
||||
} |
||||
@ -0,0 +1,9 @@
@@ -0,0 +1,9 @@
|
||||
import request from '@/utils/request' |
||||
|
||||
// 获取服务信息
|
||||
export function getServer() { |
||||
return request({ |
||||
url: '/monitor/server', |
||||
method: 'get' |
||||
}) |
||||
} |
||||
@ -0,0 +1,60 @@
@@ -0,0 +1,60 @@
|
||||
import request from '@/utils/request' |
||||
|
||||
// 查询参数列表
|
||||
export function listConfig(query) { |
||||
return request({ |
||||
url: '/system/config/list', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
|
||||
// 查询参数详细
|
||||
export function getConfig(configId) { |
||||
return request({ |
||||
url: '/system/config/' + configId, |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
// 根据参数键名查询参数值
|
||||
export function getConfigKey(configKey) { |
||||
return request({ |
||||
url: '/system/config/configKey/' + configKey, |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
// 新增参数配置
|
||||
export function addConfig(data) { |
||||
return request({ |
||||
url: '/system/config', |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 修改参数配置
|
||||
export function updateConfig(data) { |
||||
return request({ |
||||
url: '/system/config', |
||||
method: 'put', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 删除参数配置
|
||||
export function delConfig(configId) { |
||||
return request({ |
||||
url: '/system/config/' + configId, |
||||
method: 'delete' |
||||
}) |
||||
} |
||||
|
||||
// 刷新参数缓存
|
||||
export function refreshCache() { |
||||
return request({ |
||||
url: '/system/config/refreshCache', |
||||
method: 'delete' |
||||
}) |
||||
} |
||||
@ -0,0 +1,60 @@
@@ -0,0 +1,60 @@
|
||||
import request from '@/utils/request' |
||||
|
||||
// 查询部门列表
|
||||
export function listDept(query) { |
||||
return request({ |
||||
url: '/system/dept/list', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
|
||||
// 查询部门下拉树结构
|
||||
export function treeselect() { |
||||
return request({ |
||||
url: '/system/dept/treeselect', |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
// 查询部门列表(排除节点)
|
||||
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' |
||||
}) |
||||
} |
||||
@ -0,0 +1,52 @@
@@ -0,0 +1,52 @@
|
||||
import request from '@/utils/request' |
||||
|
||||
// 查询字典数据列表
|
||||
export function listData(query) { |
||||
return request({ |
||||
url: '/system/dict/data/list', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
|
||||
// 查询字典数据详细
|
||||
export function getData(dictCode) { |
||||
return request({ |
||||
url: '/system/dict/data/' + dictCode, |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
// 根据字典类型查询字典数据信息
|
||||
export function getDicts(dictType) { |
||||
return request({ |
||||
url: '/system/dict/data/type/' + dictType, |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
// 新增字典数据
|
||||
export function addData(data) { |
||||
return request({ |
||||
url: '/system/dict/data', |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 修改字典数据
|
||||
export function updateData(data) { |
||||
return request({ |
||||
url: '/system/dict/data', |
||||
method: 'put', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 删除字典数据
|
||||
export function delData(dictCode) { |
||||
return request({ |
||||
url: '/system/dict/data/' + dictCode, |
||||
method: 'delete' |
||||
}) |
||||
} |
||||
@ -0,0 +1,60 @@
@@ -0,0 +1,60 @@
|
||||
import request from '@/utils/request' |
||||
|
||||
// 查询字典类型列表
|
||||
export function listType(query) { |
||||
return request({ |
||||
url: '/system/dict/type/list', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
|
||||
// 查询字典类型详细
|
||||
export function getType(dictId) { |
||||
return request({ |
||||
url: '/system/dict/type/' + dictId, |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
// 新增字典类型
|
||||
export function addType(data) { |
||||
return request({ |
||||
url: '/system/dict/type', |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 修改字典类型
|
||||
export function updateType(data) { |
||||
return request({ |
||||
url: '/system/dict/type', |
||||
method: 'put', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 删除字典类型
|
||||
export function delType(dictId) { |
||||
return request({ |
||||
url: '/system/dict/type/' + dictId, |
||||
method: 'delete' |
||||
}) |
||||
} |
||||
|
||||
// 刷新字典缓存
|
||||
export function refreshCache() { |
||||
return request({ |
||||
url: '/system/dict/type/refreshCache', |
||||
method: 'delete' |
||||
}) |
||||
} |
||||
|
||||
// 获取字典选择框列表
|
||||
export function optionselect() { |
||||
return request({ |
||||
url: '/system/dict/type/optionselect', |
||||
method: 'get' |
||||
}) |
||||
} |
||||
@ -0,0 +1,44 @@
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request' |
||||
|
||||
// 查询流程达式列表
|
||||
export function listExpression(query) { |
||||
return request({ |
||||
url: '/system/expression/list', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
|
||||
// 查询流程达式详细
|
||||
export function getExpression(id) { |
||||
return request({ |
||||
url: '/system/expression/' + id, |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
// 新增流程达式
|
||||
export function addExpression(data) { |
||||
return request({ |
||||
url: '/system/expression', |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 修改流程达式
|
||||
export function updateExpression(data) { |
||||
return request({ |
||||
url: '/system/expression', |
||||
method: 'put', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 删除流程达式
|
||||
export function delExpression(id) { |
||||
return request({ |
||||
url: '/system/expression/' + id, |
||||
method: 'delete' |
||||
}) |
||||
} |
||||
@ -0,0 +1,44 @@
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request' |
||||
|
||||
// 查询流程监听列表
|
||||
export function listListener(query) { |
||||
return request({ |
||||
url: '/system/listener/list', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
|
||||
// 查询流程监听详细
|
||||
export function getListener(id) { |
||||
return request({ |
||||
url: '/system/listener/' + id, |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
// 新增流程监听
|
||||
export function addListener(data) { |
||||
return request({ |
||||
url: '/system/listener', |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 修改流程监听
|
||||
export function updateListener(data) { |
||||
return request({ |
||||
url: '/system/listener', |
||||
method: 'put', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 删除流程监听
|
||||
export function delListener(id) { |
||||
return request({ |
||||
url: '/system/listener/' + id, |
||||
method: 'delete' |
||||
}) |
||||
} |
||||
@ -0,0 +1,60 @@
@@ -0,0 +1,60 @@
|
||||
import request from '@/utils/request' |
||||
|
||||
// 查询菜单列表
|
||||
export function listMenu(query) { |
||||
return request({ |
||||
url: '/system/menu/list', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
|
||||
// 查询菜单详细
|
||||
export function getMenu(menuId) { |
||||
return request({ |
||||
url: '/system/menu/' + menuId, |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
// 查询菜单下拉树结构
|
||||
export function treeselect() { |
||||
return request({ |
||||
url: '/system/menu/treeselect', |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
// 根据角色ID查询菜单下拉树结构
|
||||
export function roleMenuTreeselect(roleId) { |
||||
return request({ |
||||
url: '/system/menu/roleMenuTreeselect/' + roleId, |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
// 新增菜单
|
||||
export function addMenu(data) { |
||||
return request({ |
||||
url: '/system/menu', |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 修改菜单
|
||||
export function updateMenu(data) { |
||||
return request({ |
||||
url: '/system/menu', |
||||
method: 'put', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 删除菜单
|
||||
export function delMenu(menuId) { |
||||
return request({ |
||||
url: '/system/menu/' + menuId, |
||||
method: 'delete' |
||||
}) |
||||
} |
||||
@ -0,0 +1,44 @@
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request' |
||||
|
||||
// 查询公告列表
|
||||
export function listNotice(query) { |
||||
return request({ |
||||
url: '/system/notice/list', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
|
||||
// 查询公告详细
|
||||
export function getNotice(noticeId) { |
||||
return request({ |
||||
url: '/system/notice/' + noticeId, |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
// 新增公告
|
||||
export function addNotice(data) { |
||||
return request({ |
||||
url: '/system/notice', |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 修改公告
|
||||
export function updateNotice(data) { |
||||
return request({ |
||||
url: '/system/notice', |
||||
method: 'put', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 删除公告
|
||||
export function delNotice(noticeId) { |
||||
return request({ |
||||
url: '/system/notice/' + noticeId, |
||||
method: 'delete' |
||||
}) |
||||
} |
||||
@ -0,0 +1,44 @@
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request' |
||||
|
||||
// 查询岗位列表
|
||||
export function listPost(query) { |
||||
return request({ |
||||
url: '/system/post/list', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
|
||||
// 查询岗位详细
|
||||
export function getPost(postId) { |
||||
return request({ |
||||
url: '/system/post/' + postId, |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
// 新增岗位
|
||||
export function addPost(data) { |
||||
return request({ |
||||
url: '/system/post', |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 修改岗位
|
||||
export function updatePost(data) { |
||||
return request({ |
||||
url: '/system/post', |
||||
method: 'put', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 删除岗位
|
||||
export function delPost(postId) { |
||||
return request({ |
||||
url: '/system/post/' + postId, |
||||
method: 'delete' |
||||
}) |
||||
} |
||||
@ -0,0 +1,119 @@
@@ -0,0 +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' |
||||
}) |
||||
} |
||||
@ -0,0 +1,171 @@
@@ -0,0 +1,171 @@
|
||||
import request from '@/utils/request' |
||||
import { parseStrEmpty } from "@/utils/ruoyi"; |
||||
|
||||
// 查询用户列表
|
||||
export function listUser(query) { |
||||
return request({ |
||||
url: '/system/user/list', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
|
||||
// 查询用户列表全部不分页
|
||||
export function listUserall(query) { |
||||
return request({ |
||||
url: '/system/user/getAll', |
||||
method: 'get', |
||||
params: query |
||||
}) |
||||
} |
||||
|
||||
// 查询用户详细
|
||||
export function getUser(userId) { |
||||
return request({ |
||||
url: '/system/user/' + parseStrEmpty(userId), |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
// 新增用户
|
||||
export function addUser(data) { |
||||
return request({ |
||||
url: '/system/user', |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 修改用户
|
||||
export function updateUser(data) { |
||||
return request({ |
||||
url: '/system/user', |
||||
method: 'put', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 删除用户
|
||||
export function delUser(userId) { |
||||
return request({ |
||||
url: '/system/user/' + userId, |
||||
method: 'delete' |
||||
}) |
||||
} |
||||
|
||||
// 用户密码重置
|
||||
export function resetUserPwd(userId, password) { |
||||
const data = { |
||||
userId, |
||||
password |
||||
} |
||||
return request({ |
||||
url: '/system/user/resetPwd', |
||||
method: 'put', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 用户状态修改
|
||||
export function changeUserStatus(userId, status) { |
||||
const data = { |
||||
userId, |
||||
status |
||||
} |
||||
return request({ |
||||
url: '/system/user/changeStatus', |
||||
method: 'put', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 查询用户个人信息
|
||||
export function getUserProfile() { |
||||
return request({ |
||||
url: '/system/user/profile', |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
// 修改用户个人信息
|
||||
export function updateUserProfile(data) { |
||||
return request({ |
||||
url: '/system/user/profile', |
||||
method: 'put', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 用户密码重置
|
||||
export function updateUserPwd(oldPassword, newPassword) { |
||||
const data = { |
||||
oldPassword, |
||||
newPassword |
||||
} |
||||
return request({ |
||||
url: '/system/user/profile/updatePwd', |
||||
method: 'put', |
||||
params: data |
||||
}) |
||||
} |
||||
|
||||
// 用户头像上传
|
||||
export function uploadAvatar(data) { |
||||
return request({ |
||||
url: '/system/user/profile/avatar', |
||||
method: 'post', |
||||
data: data |
||||
}) |
||||
} |
||||
|
||||
// 查询授权角色
|
||||
export function getAuthRole(userId) { |
||||
return request({ |
||||
url: '/system/user/authRole/' + userId, |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
// 保存授权角色
|
||||
export function updateAuthRole(data) { |
||||
return request({ |
||||
url: '/system/user/authRole', |
||||
method: 'put', |
||||
params: data |
||||
}) |
||||
} |
||||
|
||||
// 查询部门下拉树结构
|
||||
export function deptTreeSelect() { |
||||
return request({ |
||||
url: '/system/user/deptTree', |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
// 获取树状结构的人员数据
|
||||
export function getOrgUsers() { |
||||
return request({ |
||||
url: '/system/getOrgUsers', |
||||
method: 'get' |
||||
}) |
||||
} |
||||
|
||||
|
||||
// 获取人员 通过岗位id
|
||||
export function getUsersByPostId(params) { |
||||
return request({ |
||||
url: '/system/user/getUsersByPostId', |
||||
method: 'get', |
||||
params |
||||
}) |
||||
} |
||||
|
||||
// 获取人员 通过部门id
|
||||
export function getUsersByDeptId(params) { |
||||
return request({ |
||||
url: '/system/user/getUsersByDeptId', |
||||
method: 'get', |
||||
params |
||||
}) |
||||
} |
||||
|
After Width: | Height: | Size: 160 KiB |
|
After Width: | Height: | Size: 96 KiB |
|
After Width: | Height: | Size: 4.7 KiB |
@ -0,0 +1,9 @@
@@ -0,0 +1,9 @@
|
||||
import Vue from 'vue' |
||||
import SvgIcon from '@/components/SvgIcon'// svg component
|
||||
|
||||
// register globally
|
||||
Vue.component('svg-icon', SvgIcon) |
||||
|
||||
const req = require.context('./svg', false, /\.svg$/) |
||||
const requireAll = requireContext => requireContext.keys().map(requireContext) |
||||
requireAll(req) |
||||
|
After Width: | Height: | Size: 1.8 KiB |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue