@ -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,13 @@ |
|||||
|
# 开发环境配置 |
||||
|
ENV = 'development' |
||||
|
|
||||
|
# 开发环境 |
||||
|
# VUE_APP_BASE_API = 'http://192.168.1.113:8081/data-admin/' |
||||
|
# VUE_APP_BASE_API = 'http://192.168.1.20:19084/data-admin/' |
||||
|
|
||||
|
VUE_APP_BASE_API = '/thinking' |
||||
|
|
||||
|
VUE_APP_FAST_BASE_URL = 'http://192.168.1.20:9080/' |
||||
|
|
||||
|
# 路由懒加载 |
||||
|
VUE_CLI_BABEL_TRANSPILE_MODULES = true |
@ -0,0 +1,6 @@ |
|||||
|
# 生产环境配置 |
||||
|
ENV = 'admin' |
||||
|
|
||||
|
# 若依管理系统/生产环境 |
||||
|
VUE_APP_BASE_API = '/thinking' |
||||
|
VUE_APP_FAST_BASE_URL = 'http://192.168.1.20:9080/' |
@ -0,0 +1,7 @@ |
|||||
|
NODE_ENV = production |
||||
|
|
||||
|
# 测试环境配置 |
||||
|
ENV = 'staging' |
||||
|
|
||||
|
# 若依管理系统/测试环境 |
||||
|
VUE_APP_BASE_API = '/stage-api' |
@ -0,0 +1,12 @@ |
|||||
|
# 忽略build目录下类型为js的文件的语法检查 |
||||
|
build/*.js |
||||
|
# 忽略src/assets目录下文件的语法检查 |
||||
|
src/assets |
||||
|
# 忽略public目录下文件的语法检查 |
||||
|
public |
||||
|
# 忽略当前目录下为js的文件的语法检查 |
||||
|
*.js |
||||
|
# 忽略当前目录下为vue的文件的语法检查 |
||||
|
*.vue |
||||
|
忽略idea的文件 |
||||
|
*.iml |
@ -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 @@ |
|||||
|
.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,3 @@ |
|||||
|
sass_binary_site=https://npm.taobao.org/mirrors/node-sass/ |
||||
|
|
||||
|
registry=https://registry.npm.taobao.org |
@ -0,0 +1,33 @@ |
|||||
|
## 开发 |
||||
|
|
||||
|
# 进入项目目录 |
||||
|
cd ruoyi-ui |
||||
|
#表头修改 src/setting src/layot/components/sidebar/logo |
||||
|
|
||||
|
# 安装依赖 |
||||
|
npm install |
||||
|
|
||||
|
# 建议不要直接使用 cnpm 安装依赖,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题 |
||||
|
npm install --registry=https://registry.npm.taobao.org |
||||
|
|
||||
|
# 启动服务 |
||||
|
npm run dev |
||||
|
``` |
||||
|
|
||||
|
浏览器访问 http://localhost:80 |
||||
|
|
||||
|
## 发布 |
||||
|
npm run build |
||||
|
```bash |
||||
|
# 构建测试环境 |
||||
|
npm run build:stage |
||||
|
|
||||
|
# 构建生产环境 |
||||
|
npm run build |
||||
|
``` |
||||
|
|
||||
|
# 内容编辑器安装 |
||||
|
npm i wangeditor --save |
||||
|
|
||||
|
# 脑图树插件安装: |
||||
|
npm i vue2-org-tree |
@ -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,9 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<module type="JAVA_MODULE" version="4"> |
||||
|
<component name="NewModuleRootManager"> |
||||
|
<output url="file://$MODULE_DIR$/bin" /> |
||||
|
<exclude-output /> |
||||
|
<content url="file://$MODULE_DIR$" /> |
||||
|
<orderEntry type="sourceFolder" forTests="false" /> |
||||
|
</component> |
||||
|
</module> |
@ -0,0 +1,131 @@ |
|||||
|
{ |
||||
|
"name": "ruoyi", |
||||
|
"version": "3.1.0", |
||||
|
"description": "水利", |
||||
|
"author": "无奈de哥", |
||||
|
"license": "MIT", |
||||
|
"scripts": { |
||||
|
"dev": "vue-cli-service serve", |
||||
|
"build": "vue-cli-service build", |
||||
|
"build:stage": "vue-cli-service build --mode staging", |
||||
|
"preview": "node build/index.js --preview", |
||||
|
"lint": "eslint --ext .js,.vue src", |
||||
|
"test:unit": "jest --clearCache && vue-cli-service test:unit", |
||||
|
"test:ci": "npm run lint && npm run test:unit", |
||||
|
"svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml", |
||||
|
"new": "plop" |
||||
|
}, |
||||
|
"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": { |
||||
|
"@antv/x6": "^1.28.1", |
||||
|
"@riophae/vue-treeselect": "0.4.0", |
||||
|
"axios": "0.18.1", |
||||
|
"clipboard": "2.0.4", |
||||
|
"core-js": "3.6.5", |
||||
|
"d3": "^5.0.0", |
||||
|
"d3-flextree": "^2.1.2", |
||||
|
"echarts": "4.2.1", |
||||
|
"element-ui": "^2.15.6", |
||||
|
"file-saver": "2.0.1", |
||||
|
"fuse.js": "3.4.4", |
||||
|
"html2canvas": "^1.4.1", |
||||
|
"jquery": "^3.6.0", |
||||
|
"js-beautify": "1.10.2", |
||||
|
"js-cookie": "2.2.0", |
||||
|
"jsencrypt": "^3.2.0", |
||||
|
"jsplumb": "^2.15.6", |
||||
|
"less": "^4.1.1", |
||||
|
"less-loader": "^7.0.0", |
||||
|
"node-jsencrypt": "^1.0.0", |
||||
|
"node-sass": "^4.12.0", |
||||
|
"normalize.css": "7.0.0", |
||||
|
"nprogress": "0.2.0", |
||||
|
"path-to-regexp": "2.4.0", |
||||
|
"pdfjs-dist": "^3.1.81", |
||||
|
"quill": "^2.0.0-dev.3", |
||||
|
"quill-better-table": "^1.2.10", |
||||
|
"screenfull": "4.2.0", |
||||
|
"sortablejs": "1.8.4", |
||||
|
"spark-md5": "^3.0.2", |
||||
|
"swiper": "^6.8.4", |
||||
|
"v-viewer": "^1.6.4", |
||||
|
"vis": "^4.21.0-EOL", |
||||
|
"vis-network": "^9.1.2", |
||||
|
"vue": "2.6.10", |
||||
|
"vue-awesome-swiper": "^3.1.3", |
||||
|
"vue-count-to": "1.0.13", |
||||
|
"vue-cropper": "0.4.9", |
||||
|
"vue-pdf": "^4.3.0", |
||||
|
"vue-router": "3.0.2", |
||||
|
"vue-simple-uploader": "^0.7.6", |
||||
|
"vue-splitpane": "1.0.4", |
||||
|
"vue-text-highlight": "^2.0.10", |
||||
|
"vue-video-player": "^4.0.6", |
||||
|
"vue2-org-tree": "^1.3.6", |
||||
|
"vuedraggable": "^2.20.0", |
||||
|
"vuex": "3.1.0", |
||||
|
"wangeditor": "^4.7.5", |
||||
|
"xlsx": "^0.18.5" |
||||
|
}, |
||||
|
"devDependencies": { |
||||
|
"@vue/cli-plugin-babel": "4.4.4", |
||||
|
"@vue/cli-plugin-eslint": "4.4.4", |
||||
|
"@vue/cli-plugin-unit-jest": "4.4.4", |
||||
|
"@vue/cli-service": "4.4.4", |
||||
|
"@vue/test-utils": "1.0.0-beta.29", |
||||
|
"autoprefixer": "9.5.1", |
||||
|
"babel-eslint": "10.1.0", |
||||
|
"babel-jest": "23.6.0", |
||||
|
"babel-plugin-dynamic-import-node": "2.3.3", |
||||
|
"chalk": "2.4.2", |
||||
|
"chokidar": "2.1.5", |
||||
|
"connect": "3.6.6", |
||||
|
"docx-preview": "^0.1.14", |
||||
|
"eslint": "6.7.2", |
||||
|
"eslint-plugin-vue": "6.2.2", |
||||
|
"html-webpack-plugin": "3.2.0", |
||||
|
"husky": "1.3.1", |
||||
|
"lint-staged": "8.1.5", |
||||
|
"mockjs": "1.0.1-beta3", |
||||
|
"plop": "2.3.0", |
||||
|
"runjs": "4.3.2", |
||||
|
"sass-loader": "^8.0.2", |
||||
|
"script-ext-html-webpack-plugin": "^2.1.5", |
||||
|
"script-loader": "0.7.2", |
||||
|
"serve-static": "1.13.2", |
||||
|
"svg-sprite-loader": "4.1.3", |
||||
|
"svgo": "1.2.0", |
||||
|
"vue-template-compiler": "2.6.10" |
||||
|
}, |
||||
|
"engines": { |
||||
|
"node": ">=8.9", |
||||
|
"npm": ">= 3.0.0" |
||||
|
}, |
||||
|
"browserslist": [ |
||||
|
"> 1%", |
||||
|
"last 2 versions" |
||||
|
] |
||||
|
} |
@ -0,0 +1,14 @@ |
|||||
|
// module.exports = {
|
||||
|
// baseHttp: "http://192.168.1.31:8081/product-management",
|
||||
|
// }
|
||||
|
|
||||
|
window.g = { |
||||
|
fileUrl: "http://192.168.1.20:9080/" |
||||
|
// fileUrl: "http://106.2.224.58:1033/"
|
||||
|
} |
||||
|
|
||||
|
var docUrl = 'http://106.2.224.58:10002/web-apps/apps/api/documents/api.js' |
||||
|
// var docUrl = 'http://192.168.1.20:8088/web-apps/apps/api/documents/api.js'
|
||||
|
|
||||
|
document.write('<script type="text/javascript" src=' + docUrl + '></script>'); |
||||
|
|
After Width: | Height: | Size: 239 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 2.2 KiB |
@ -0,0 +1,210 @@ |
|||||
|
<!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"> |
||||
|
<script src="./config.js"></script> |
||||
|
<title><%= webpackConfig.name %></title> |
||||
|
|
||||
|
|
||||
|
<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; |
||||
|
} |
||||
|
</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,2 @@ |
|||||
|
User-agent: * |
||||
|
Disallow: / |
@ -0,0 +1,18 @@ |
|||||
|
<template> |
||||
|
<div id="app"> |
||||
|
<router-view /> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
export default { |
||||
|
name: 'App' |
||||
|
} |
||||
|
</script> |
||||
|
<style lang="scss"> |
||||
|
ul,li,div,p,a,ol,span,s{ |
||||
|
margin: 0; |
||||
|
padding: 0; |
||||
|
list-style: none; |
||||
|
} |
||||
|
</style> |
@ -0,0 +1,10 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 上传文件
|
||||
|
export function uploadFile(data) { |
||||
|
return request({ |
||||
|
url: '/upload/uploadFle', |
||||
|
method: 'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
@ -0,0 +1,268 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
import {downloadFileStreamFastDFS, getFileStream} from "@/api/system/upload"; |
||||
|
|
||||
|
//文件上传(只适合小文件)
|
||||
|
export function uploadFile(data){ |
||||
|
return request({ |
||||
|
url: '/common/file', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 获取文件
|
||||
|
export function getFile(url, img, name) { |
||||
|
const data = { url } |
||||
|
request({ |
||||
|
url: '/fastdfs/show?url=' + url, |
||||
|
method: 'post', |
||||
|
data: data, |
||||
|
responseType: "blob" |
||||
|
}).then(res => { |
||||
|
const blob = new Blob([res], { |
||||
|
type: 'application/png;charset=utf-8', |
||||
|
}); |
||||
|
const url1 = window.URL.createObjectURL(blob); |
||||
|
img[name] = url1; |
||||
|
} |
||||
|
); |
||||
|
} |
||||
|
|
||||
|
// 获取文件
|
||||
|
export function showFile(url) { |
||||
|
if (url && url.indexOf("blob:http:") == -1) { |
||||
|
const data = { url } |
||||
|
return request({ |
||||
|
url: '/fastdfs/show?url=' + url, |
||||
|
method: 'post', |
||||
|
data: data, |
||||
|
responseType: "blob" |
||||
|
}).then(res => { |
||||
|
const blob = new Blob([res], { |
||||
|
type: 'application/png;charset=utf-8', |
||||
|
}); |
||||
|
const url1 = window.URL.createObjectURL(blob); |
||||
|
return url1; |
||||
|
} |
||||
|
); |
||||
|
} else { |
||||
|
return new Promise((result, rej) => { |
||||
|
result(false) |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
export function html2Escape(sHtml) { |
||||
|
if (sHtml) { |
||||
|
return sHtml.replace(/[<>&"]/g, function (c) { return { '<': '<', '>': '>', '&': '&', '"': '"' }[c]; }); |
||||
|
} else { |
||||
|
return ""; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
|
||||
|
export function escape2Html(str) { |
||||
|
if (str) { |
||||
|
var arrEntities = { 'lt': '<', 'gt': '>', 'nbsp': ' ', 'amp': '&', 'quot': '"' }; |
||||
|
return str.replace(/&(lt|gt|nbsp|amp|quot);/ig, function (all, t) { return arrEntities[t]; }); |
||||
|
} else { |
||||
|
return ""; |
||||
|
} |
||||
|
} |
||||
|
//转换编辑器的文本图片转为后台需要的格式
|
||||
|
export function changeFormatToBack(content) { |
||||
|
let str = content |
||||
|
if (!str) { |
||||
|
return ""; |
||||
|
} |
||||
|
let imgReg = /<img.*?(?:>|\/>)/gi |
||||
|
let serverReg = /data-server=[\'\"]?([^\'\"]*)[\'\"]?/gi |
||||
|
let arr = str.match(imgReg) |
||||
|
if (arr) { |
||||
|
for (let i = 0; i < arr.length; i++) { |
||||
|
let server = arr[i].match(serverReg) |
||||
|
if (server && server.length > 0) { |
||||
|
let index = server[0].indexOf("group"); |
||||
|
let url = server[0].substring(index, server[0].length - 1); |
||||
|
let res = '<img src="' + url + '" data-server="' + url + '">' |
||||
|
str = str.replace(arr[i], res) |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
let imgReg1 = /<video [^>]*src=['"]([^'"]+)[^>]*>/gi |
||||
|
let serverReg1 = /data-server-video=[\'\"]?([^\'\"]*)[\'\"]?/gi |
||||
|
let arr1 = str.match(imgReg1) |
||||
|
if (arr1) { |
||||
|
for (let i = 0; i < arr1.length; i++) { |
||||
|
let server1 = arr1[i].match(serverReg1) |
||||
|
if (server1 && server1.length > 0) { |
||||
|
|
||||
|
let index1 = server1[0].indexOf("group"); |
||||
|
let url1 = server1[0].substring(index1, server1[0].length - 1); |
||||
|
let res1 = '<video src="' + url1 + '" data-server-video="' + url1 + '" controls="controls" />' |
||||
|
str = str.replace(arr1[i], res1) |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
str = html2Escape(str) |
||||
|
return str |
||||
|
} |
||||
|
|
||||
|
|
||||
|
//转换文本转换为前台需要的格式
|
||||
|
export async function changeFormatToFore(content) { |
||||
|
if (!content) { |
||||
|
return ""; |
||||
|
} |
||||
|
let imgReg = /<img.*?(?:>|\/>)/gi |
||||
|
let srcReg = /src=[\'\"]?([^\'\"]*)[\'\"]?/gi |
||||
|
let str = escape2Html(content) |
||||
|
let arr = str.match(imgReg) |
||||
|
if (arr) { |
||||
|
for (let i = 0; i < arr.length; i++) { |
||||
|
let src = arr[i].match(srcReg) |
||||
|
if (!src) { |
||||
|
break |
||||
|
} |
||||
|
var index = src[0].indexOf("group"); |
||||
|
if (index != -1) { |
||||
|
let url = src[0].substring(index, src[0].length - 1); |
||||
|
await showFile(url).then((res) => { |
||||
|
let newImg = '<img src="' + res + '" data-server="' + url + '">' |
||||
|
str = str.replace(arr[i], newImg) |
||||
|
}); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
let imgReg1 = /<video [^>]*src=['"]([^'"]+)[^>]*>/gi |
||||
|
let srcReg1 = /src=[\'\"]?([^\'\"]*)[\'\"]?/gi |
||||
|
let arr1 = str.match(imgReg1) |
||||
|
if (arr1) { |
||||
|
for (let i = 0; i < arr1.length; i++) { |
||||
|
let src1 = arr1[i].match(srcReg1) |
||||
|
var index1 = src1[0].indexOf("group"); |
||||
|
if (index1 != -1) { |
||||
|
let url1 = src1[0].substring(index1, src1[0].length - 1); |
||||
|
await showFile(url1).then((res) => { |
||||
|
let newImg1 = '<video src="' + res + '" data-server-video="' + url1 + '" controls />' |
||||
|
str = str.replace(arr1[i], newImg1) |
||||
|
}); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
return str |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 公用下载文件方法 |
||||
|
* @param response |
||||
|
* @param deleteFlag 是否删除源文件 |
||||
|
* @param fileName 新的文件名称 |
||||
|
*/ |
||||
|
export function downloadFile(response, deleteFlag, fileName) { |
||||
|
const param = { |
||||
|
'fileName': response.msg, |
||||
|
'delete': deleteFlag |
||||
|
} |
||||
|
getFileStream(param).then(res => { |
||||
|
// 利用a标签自定义下载文件名
|
||||
|
const link = document.createElement('a'); |
||||
|
// 创建Blob对象,设置文件类型
|
||||
|
let blob = new Blob([res]); |
||||
|
link.href = URL.createObjectURL(blob); // 创建URL n
|
||||
|
link.setAttribute('download', fileName); // 设置下载文件名称
|
||||
|
document.body.appendChild(link); |
||||
|
link.click(); // 下载文件
|
||||
|
URL.revokeObjectURL(link.href); // 释放内存
|
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 公用 从fastDfs中下载文件 |
||||
|
*/ |
||||
|
export function downloadFileForFastDFS(fileName, fileUrl) { |
||||
|
downloadFileStreamFastDFS({fileName: fileName, fileUrl: fileUrl}) |
||||
|
.then(res => { |
||||
|
// 利用a标签自定义下载文件名
|
||||
|
const link = document.createElement('a'); |
||||
|
// 创建Blob对象,设置文件类型
|
||||
|
let blob = new Blob([res]); |
||||
|
link.href = URL.createObjectURL(blob); // 创建URL n
|
||||
|
link.setAttribute('download', fileName); // 设置下载文件名称
|
||||
|
document.body.appendChild(link); |
||||
|
link.click(); // 下载文件
|
||||
|
URL.revokeObjectURL(link.href); // 释放内存
|
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
// 详情数据
|
||||
|
export function info(id) { |
||||
|
return request({ |
||||
|
url: '/system/datas/info/' + id, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
//数据新增/修改
|
||||
|
export function saveData(data) { |
||||
|
return request({ |
||||
|
url: '/system/datas/saveData', |
||||
|
method: 'post', |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 数据删除
|
||||
|
export function dataDelete(data) { |
||||
|
return request({ |
||||
|
url: '/system/datas/delete', |
||||
|
method: 'post', |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
// 数据标注
|
||||
|
export function dimension(data) { |
||||
|
return request({ |
||||
|
url: '/system/datas/dimension', |
||||
|
method: 'post', |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
//素材相关实体
|
||||
|
export function relationEntity(id) { |
||||
|
return request({ |
||||
|
url: '/system/datas/relationEntity/' + id, |
||||
|
method: 'post', |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
//实体的关系 实体id 素材id
|
||||
|
export function entityRelation(id, materialId) { |
||||
|
return request({ |
||||
|
url: '/system/datas/entityRelation/' + id +'/'+ materialId, |
||||
|
method: 'post', |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
//素材实体新增
|
||||
|
export function materialEntity(data) { |
||||
|
return request({ |
||||
|
url: '/system/materialEntity', |
||||
|
method: 'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
@ -0,0 +1,9 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询文献列表
|
||||
|
export function indexCount() { |
||||
|
return request({ |
||||
|
url: '/indexCount', |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
@ -0,0 +1,41 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 登录方法
|
||||
|
export function login(username, password, code, uuid) { |
||||
|
const data = { |
||||
|
username, |
||||
|
password, |
||||
|
code, |
||||
|
uuid |
||||
|
} |
||||
|
return request({ |
||||
|
url: '/login', |
||||
|
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', |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
@ -0,0 +1,9 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 获取路由
|
||||
|
export const getRouters = () => { |
||||
|
return request({ |
||||
|
url: '/getRouters', |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
@ -0,0 +1,3 @@ |
|||||
|
export function mergeSimpleUpload() { |
||||
|
return Promise.resolve() |
||||
|
} |
@ -0,0 +1,36 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
// 异常日志
|
||||
|
// 查询操作日志列表
|
||||
|
export function list(query) { |
||||
|
return request({ |
||||
|
url: '/system/exceptionLog/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 删除操作日志
|
||||
|
export function delOperlog(data) { |
||||
|
return request({ |
||||
|
url: '/system/exceptionLog' , |
||||
|
method: 'delete', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 清空操作日志
|
||||
|
export function cleanOperlog() { |
||||
|
return request({ |
||||
|
url: '/system/exceptionLog/clean', |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导出操作日志
|
||||
|
export function exportOperlog(query) { |
||||
|
return request({ |
||||
|
url: '/system/exceptionLog/export', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
@ -0,0 +1,80 @@ |
|||||
|
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 exportJob(query) { |
||||
|
return request({ |
||||
|
url: '/monitor/job/export', |
||||
|
method: 'get', |
||||
|
params: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 任务状态修改
|
||||
|
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,35 @@ |
|||||
|
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' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导出调度日志
|
||||
|
export function exportJobLog(query) { |
||||
|
return request({ |
||||
|
url: '/monitor/jobLog/export', |
||||
|
method: 'get', |
||||
|
params: query |
||||
|
}) |
||||
|
} |
@ -0,0 +1,35 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询登录日志列表
|
||||
|
export function list(query) { |
||||
|
return request({ |
||||
|
url: '/monitor/logininfor/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 删除登录日志
|
||||
|
export function delLogininfor(id) { |
||||
|
return request({ |
||||
|
url: '/monitor/logininfor/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 清空登录日志
|
||||
|
export function cleanLogininfor() { |
||||
|
return request({ |
||||
|
url: '/monitor/logininfor/clean', |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导出登录日志
|
||||
|
export function exportLogininfor(query) { |
||||
|
return request({ |
||||
|
url: '/monitor/logininfor/export', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
@ -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,35 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询操作日志列表
|
||||
|
export function list(query) { |
||||
|
return request({ |
||||
|
url: '/monitor/operlog/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 删除操作日志
|
||||
|
export function delOperlog(id) { |
||||
|
return request({ |
||||
|
url: '/monitor/operlog/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 清空操作日志
|
||||
|
export function cleanOperlog() { |
||||
|
return request({ |
||||
|
url: '/monitor/operlog/clean', |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导出操作日志
|
||||
|
export function exportOperlog(query) { |
||||
|
return request({ |
||||
|
url: '/monitor/operlog/export', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
@ -0,0 +1,9 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询服务器详细
|
||||
|
export function getServer() { |
||||
|
return request({ |
||||
|
url: '/monitor/server', |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
@ -0,0 +1,69 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询参数列表
|
||||
|
export function listConfig(query) { |
||||
|
return request({ |
||||
|
url: '/system/config/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询参数详细
|
||||
|
export function getConfig(id) { |
||||
|
return request({ |
||||
|
url: '/system/config/' + id, |
||||
|
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(id) { |
||||
|
return request({ |
||||
|
url: '/system/config/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 清理参数缓存
|
||||
|
export function clearCache() { |
||||
|
return request({ |
||||
|
url: '/system/config/clearCache', |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导出参数
|
||||
|
export function exportConfig(query) { |
||||
|
return request({ |
||||
|
url: '/system/config/export', |
||||
|
method: 'get', |
||||
|
params: query |
||||
|
}) |
||||
|
} |
@ -0,0 +1,103 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询数据源管理列表
|
||||
|
export function listDataSource(query) { |
||||
|
return request({ |
||||
|
url: '/system/dataSource/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 获取所有的数据源 |
||||
|
* @returns {*} |
||||
|
*/ |
||||
|
export function listAllDataSource() { |
||||
|
return request({ |
||||
|
url: '/system/dataSource/listAll', |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询数据源管理详细
|
||||
|
export function getDataSource(id) { |
||||
|
return request({ |
||||
|
url: '/system/dataSource/' + id, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 新增数据源管理
|
||||
|
export function addDataSource(data) { |
||||
|
return request({ |
||||
|
url: '/system/dataSource', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 修改数据源管理
|
||||
|
export function updateDataSource(data) { |
||||
|
return request({ |
||||
|
url: '/system/dataSource', |
||||
|
method: 'put', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 删除数据源管理
|
||||
|
export function delDataSource(id) { |
||||
|
return request({ |
||||
|
url: '/system/dataSource/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导出数据源管理
|
||||
|
export function exportDataSource(query) { |
||||
|
return request({ |
||||
|
url: '/system/dataSource/export', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出模板 |
||||
|
* @returns {*} |
||||
|
*/ |
||||
|
export function exportTemplate() { |
||||
|
return request({ |
||||
|
url: '/upload/exportTemplate', |
||||
|
method: 'post' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 重复文献列表 |
||||
|
* @returns {*} |
||||
|
*/ |
||||
|
export function repeatPage(query) { |
||||
|
return request({ |
||||
|
url: '/upload/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 删除数据
|
||||
|
export function delDataList(id) { |
||||
|
return request({ |
||||
|
url: '/upload/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 重复数据入库
|
||||
|
export function storage(id) { |
||||
|
return request({ |
||||
|
url: '/upload/storage/' + id, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
@ -0,0 +1,125 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
//数据列表
|
||||
|
export function dataList(data) { |
||||
|
return request({ |
||||
|
url: '/search/search', |
||||
|
method: 'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
// 查询数据管理列表
|
||||
|
export function dupDatas(data) { |
||||
|
return request({ |
||||
|
url: '/system/datas/dupDatas', |
||||
|
method: 'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
//重复数据展示
|
||||
|
export function dupDataList(data) { |
||||
|
return request({ |
||||
|
url: '/system/datas/dupDataList', |
||||
|
method: 'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
export function deleteDupData(data) { |
||||
|
return request({ |
||||
|
url: '/system/datas/dupDataList', |
||||
|
method: 'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
// 自动删除数据管理
|
||||
|
export function delDupDatas(data) { |
||||
|
return request({ |
||||
|
url: '/system/datas/delDupDatas', |
||||
|
method: 'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询数据管理列表
|
||||
|
export function searchList(query) { |
||||
|
return request({ |
||||
|
url: '/system/datas/datas', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
}export function exportData(query) { |
||||
|
return request({ |
||||
|
url: '/system/datas/exportData', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询数据管理详细
|
||||
|
export function getDatas(id) { |
||||
|
return request({ |
||||
|
url: '/system/datas/' + id, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 新增数据管理
|
||||
|
export function addDatas(data) { |
||||
|
return request({ |
||||
|
url: '/system/datas', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 修改数据管理
|
||||
|
export function updateDatas(data) { |
||||
|
return request({ |
||||
|
url: '/system/datas', |
||||
|
method: 'put', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 删除数据管理
|
||||
|
export function delDatas(id) { |
||||
|
return request({ |
||||
|
url: '/system/datas/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
// 导出数据管理
|
||||
|
export function exportDatas(query) { |
||||
|
return request({ |
||||
|
url: '/system/datas/export', |
||||
|
method: 'post', |
||||
|
params: query |
||||
|
}) |
||||
|
} |
||||
|
// 批量添加标签
|
||||
|
export function batchAddTag(query) { |
||||
|
return request({ |
||||
|
url: '/system/datas/batchAddTag', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询批量数据
|
||||
|
export function getList(data) { |
||||
|
return request({ |
||||
|
url: '/system/datas/getList/', |
||||
|
method: 'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
//重复数据查询
|
||||
|
|
@ -0,0 +1,102 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询部门列表
|
||||
|
export function listDept(query) { |
||||
|
return request({ |
||||
|
url: '/system/dept/list', |
||||
|
method: 'get', |
||||
|
params: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询前端菜单列表
|
||||
|
export function listPcMenu(query) { |
||||
|
return request({ |
||||
|
url: '/system/pcMenu/list', |
||||
|
method: 'get', |
||||
|
params: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询部门列表(排除节点)
|
||||
|
export function listDeptExcludeChild(id) { |
||||
|
return request({ |
||||
|
url: '/system/dept/list/exclude/' + id, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询部门详细
|
||||
|
export function getDept(id) { |
||||
|
return request({ |
||||
|
url: '/system/dept/' + id, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询部门下拉树结构
|
||||
|
export function treeselect(query) { |
||||
|
return request({ |
||||
|
url: '/system/dept/treeselect', |
||||
|
method: 'get', |
||||
|
params: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 根据部门ID查询前端菜单下拉树结构
|
||||
|
export function groupPcMenuTreeselect(deptId) { |
||||
|
return request({ |
||||
|
url: '/system/dept/groupPcMenuTreeselect/' + deptId, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 根据角色ID查询部门树结构
|
||||
|
export function roleDeptTreeselect(roleId) { |
||||
|
return request({ |
||||
|
url: '/system/dept/roleDeptTreeselect/' + roleId, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 根据部门ID查询pc菜单
|
||||
|
export function pcMenuDeptTreeselect(roleId) { |
||||
|
return request({ |
||||
|
url: '/system/dept/pcMenuDeptTreeselect/' + roleId, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 新增部门
|
||||
|
export function addDept(data) { |
||||
|
return request({ |
||||
|
url: '/system/dept', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
export function uploadLogo(data) { |
||||
|
return request({ |
||||
|
url: '/system/dept/uploadLogo', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 修改部门
|
||||
|
export function updateDept(data) { |
||||
|
return request({ |
||||
|
url: '/system/dept', |
||||
|
method: 'put', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 删除部门
|
||||
|
export function delDept(id) { |
||||
|
return request({ |
||||
|
url: '/system/dept/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
@ -0,0 +1,61 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询字典数据列表
|
||||
|
export function listData(query) { |
||||
|
return request({ |
||||
|
url: '/system/dict/data/list', |
||||
|
method: 'post', |
||||
|
data: 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' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导出字典数据
|
||||
|
export function exportData(query) { |
||||
|
return request({ |
||||
|
url: '/system/dict/data/export', |
||||
|
method: 'get', |
||||
|
params: query |
||||
|
}) |
||||
|
} |
@ -0,0 +1,76 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询字典类型列表
|
||||
|
export function listType(query) { |
||||
|
return request({ |
||||
|
url: '/system/dict/type/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
export function allTypes() { |
||||
|
return request({ |
||||
|
url: '/system/dict/type/allList', |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询字典类型详细
|
||||
|
export function getType(id) { |
||||
|
return request({ |
||||
|
url: '/system/dict/type/' + id, |
||||
|
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(id) { |
||||
|
return request({ |
||||
|
url: '/system/dict/type/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 清理参数缓存
|
||||
|
export function clearCache() { |
||||
|
return request({ |
||||
|
url: '/system/dict/type/clearCache', |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导出字典类型
|
||||
|
export function exportType(query) { |
||||
|
return request({ |
||||
|
url: '/system/dict/type/export', |
||||
|
method: 'get', |
||||
|
params: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 获取字典选择框列表
|
||||
|
export function optionselect() { |
||||
|
return request({ |
||||
|
url: '/system/dict/type/optionselect', |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
@ -0,0 +1,199 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询实体数据
|
||||
|
export function entities(query) { |
||||
|
return request({ |
||||
|
url: '/cms/entity/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
export function nextRelation (id) { |
||||
|
return request({ |
||||
|
url: '/cms/entity/nextRelation/'+id, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
export function entitiesAll(query) { |
||||
|
return request({ |
||||
|
url: '/cms/entity/listAll', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
export function auditEntities(query) { |
||||
|
return request({ |
||||
|
url: '/cms/entity/auditList', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 审核入库
|
||||
|
export function warehousingEntity(data) { |
||||
|
return request({ |
||||
|
url: '/cms/entity/warehousing', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询实体类别详细
|
||||
|
export function saveEntity(data) { |
||||
|
return request({ |
||||
|
url: '/cms/entity/saveData' , |
||||
|
method: 'POST', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询实体类别详细
|
||||
|
export function entityDelete(data) { |
||||
|
return request({ |
||||
|
url: '/cms/entity/delete' , |
||||
|
method: 'POST', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
// 新增实体类别
|
||||
|
export function entityInfo(data) { |
||||
|
return request({ |
||||
|
url: '/cms/entity/getInfo/'+data, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 修改实体类别
|
||||
|
export function entityRelation(data) { |
||||
|
return request({ |
||||
|
url: '/cms/entity/infoRelation/'+data, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导入模板下载
|
||||
|
export function entityTemplate() { |
||||
|
return request({ |
||||
|
url: '/cms/entity/importTemplate', |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
export function checkLabelName(data) { |
||||
|
return request({ |
||||
|
url: '/system/labels/checkLabelName', |
||||
|
method: 'POST', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
// 导出实体类别
|
||||
|
export function exportLabels(query) { |
||||
|
return request({ |
||||
|
url: '/system/labels/export', |
||||
|
method: 'get', |
||||
|
params: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
//导入模板下载
|
||||
|
export function exportTemplate() { |
||||
|
return request({ |
||||
|
url: '/system/labels/exportTemplate', |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
//审核类别
|
||||
|
|
||||
|
//导入模板下载
|
||||
|
export function auditList(taskId) { |
||||
|
return request({ |
||||
|
url: '/system/sysDupLabels/auditList/' + taskId, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 审核入库
|
||||
|
export function passWarehousing(data) { |
||||
|
return request({ |
||||
|
url: '/system/sysDupLabels/passWarehousing', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
export function refuseWarehousing(taskId) { |
||||
|
return request({ |
||||
|
url: '/system/sysDupLabels/refuseWarehousing/' + taskId, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
export function passWarehousingBatch(data) { |
||||
|
return request({ |
||||
|
url: '/system/sysDupLabels/passWarehousingBatch', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
export function refuseWarehousingBatch(data) { |
||||
|
return request({ |
||||
|
url: '/system/sysDupLabels/refuseWarehousingBatch', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
//删除导入的文件
|
||||
|
export function deletePath(data) { |
||||
|
return request({ |
||||
|
url: '/cms/entity/deletImportFile/', |
||||
|
method: 'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
//数据导入
|
||||
|
export function uploadEntity(data) { |
||||
|
return request({ |
||||
|
url: '/cms/entity/uploadEntity/', |
||||
|
method: 'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
//实体关系删除
|
||||
|
export function deleteRelation(data) { |
||||
|
return request({ |
||||
|
url: '/cms/entity/deleteRelation', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
//实体关系新增
|
||||
|
export function addRelation(data) { |
||||
|
return request({ |
||||
|
url: '/cms/entity/addRelation' , |
||||
|
method: 'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
//实体更新
|
||||
|
export function saveData(data) { |
||||
|
return request({ |
||||
|
url: '/cms/entity/saveData', |
||||
|
method: 'post', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
@ -0,0 +1,61 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询实体关系列表
|
||||
|
export function listEntityRelation(query) { |
||||
|
return request({ |
||||
|
url: '/system/entityRelation/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询实体关系详细
|
||||
|
export function getEntityRelation(id) { |
||||
|
return request({ |
||||
|
url: '/system/entityRelation/' + id, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 新增实体关系
|
||||
|
export function addEntityRelation(data) { |
||||
|
return request({ |
||||
|
url: '/system/entityRelation', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 修改实体关系
|
||||
|
export function updateEntityRelation(data) { |
||||
|
return request({ |
||||
|
url: '/system/entityRelation', |
||||
|
method: 'put', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 删除实体关系
|
||||
|
export function delEntityRelation(id) { |
||||
|
return request({ |
||||
|
url: '/system/entityRelation/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导出实体关系
|
||||
|
export function exportEntityRelation(query) { |
||||
|
return request({ |
||||
|
url: '/system/entityRelation/export', |
||||
|
method: 'get', |
||||
|
params: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 待审核关系
|
||||
|
export function getRelation(id) { |
||||
|
return request({ |
||||
|
url: '/system/entityRelation/relation/' + id, |
||||
|
method: 'post', |
||||
|
}) |
||||
|
} |
@ -0,0 +1,53 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询人物经历表列表
|
||||
|
export function listExperience(query) { |
||||
|
return request({ |
||||
|
url: '/system/experience/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询人物经历表详细
|
||||
|
export function getExperience(id) { |
||||
|
return request({ |
||||
|
url: '/system/experience/' + id, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 新增人物经历表
|
||||
|
export function addExperience(data) { |
||||
|
return request({ |
||||
|
url: '/system/experience', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 修改人物经历表
|
||||
|
export function updateExperience(data) { |
||||
|
return request({ |
||||
|
url: '/system/experience', |
||||
|
method: 'put', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 删除人物经历表
|
||||
|
export function delExperience(id) { |
||||
|
return request({ |
||||
|
url: '/system/experience/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导出人物经历表
|
||||
|
export function exportExperience(query) { |
||||
|
return request({ |
||||
|
url: '/system/experience/export', |
||||
|
method: 'get', |
||||
|
params: query |
||||
|
}) |
||||
|
} |
@ -0,0 +1,29 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
|
||||
|
|
||||
|
export function info() { |
||||
|
return request({ |
||||
|
url: '/system/info/info', |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 修改系统基本信息
|
||||
|
export function updateInfo(data) { |
||||
|
return request({ |
||||
|
url: '/system/info', |
||||
|
method: 'put', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
// 导出系统基本信息
|
||||
|
export function logoUpload(data) { |
||||
|
return request({ |
||||
|
url: '/system/info/logo', |
||||
|
method: 'post', |
||||
|
data: data, |
||||
|
}) |
||||
|
} |
@ -0,0 +1,60 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询类别属性列表
|
||||
|
export function listLabelAttribute(query) { |
||||
|
return request({ |
||||
|
url: '/system/labelAttribute/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询类别属性详细
|
||||
|
export function getLabelAttribute(id) { |
||||
|
return request({ |
||||
|
url: '/system/labelAttribute/' + id, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
export function template() { |
||||
|
return request({ |
||||
|
url: '/system/labelAttribute/template', |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 新增类别属性
|
||||
|
export function addLabelAttribute(data) { |
||||
|
return request({ |
||||
|
url: '/system/labelAttribute', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 修改类别属性
|
||||
|
export function updateLabelAttribute(data) { |
||||
|
return request({ |
||||
|
url: '/system/labelAttribute', |
||||
|
method: 'put', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 删除类别属性
|
||||
|
export function delLabelAttribute(id) { |
||||
|
return request({ |
||||
|
url: '/system/labelAttribute/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导出类别属性
|
||||
|
export function exportLabelAttribute(query) { |
||||
|
return request({ |
||||
|
url: '/system/labelAttribute/export', |
||||
|
method: 'get', |
||||
|
params: query |
||||
|
}) |
||||
|
} |
@ -0,0 +1,61 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询本体属性列表
|
||||
|
export function listLabelRelation(query) { |
||||
|
return request({ |
||||
|
url: '/system/labelRelation/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询本体属性详细
|
||||
|
export function getLabelRelation(id) { |
||||
|
return request({ |
||||
|
url: '/system/labelRelation/' + id, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
export function template() { |
||||
|
return request({ |
||||
|
url: '/system/labelRelation/template', |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 新增本体属性
|
||||
|
export function addLabelRelation(data) { |
||||
|
return request({ |
||||
|
url: '/system/labelRelation', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 修改本体属性
|
||||
|
export function updateLabelRelation(data) { |
||||
|
return request({ |
||||
|
url: '/system/labelRelation', |
||||
|
method: 'put', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 删除本体属性
|
||||
|
export function delLabelRelation(id) { |
||||
|
return request({ |
||||
|
url: '/system/labelRelation/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导出本体属性
|
||||
|
export function exportLabelRelation(query) { |
||||
|
return request({ |
||||
|
url: '/system/labelRelation/export', |
||||
|
method: 'get', |
||||
|
params: query |
||||
|
}) |
||||
|
} |
@ -0,0 +1,133 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
|
||||
|
// 查询实体类别列表
|
||||
|
export function labelColor() { |
||||
|
return request({ |
||||
|
url: '/system/labels/labelColor', |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
// 查询实体类别列表
|
||||
|
export function listLabels(query) { |
||||
|
return request({ |
||||
|
url: '/system/labels/listAll', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询实体类别详细
|
||||
|
export function getLabels(id) { |
||||
|
return request({ |
||||
|
url: '/system/labels/' + id, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询实体类别详细
|
||||
|
export function info(id) { |
||||
|
return request({ |
||||
|
url: '/system/labels/info/' + id, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
// 新增实体类别
|
||||
|
export function addLabels(data) { |
||||
|
return request({ |
||||
|
url: '/system/labels', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 修改实体类别
|
||||
|
export function updateLabels(data) { |
||||
|
return request({ |
||||
|
url: '/system/labels', |
||||
|
method: 'put', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 删除实体类别
|
||||
|
export function delLabels(id) { |
||||
|
return request({ |
||||
|
url: '/system/labels/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
export function checkLabelName(data) { |
||||
|
return request({ |
||||
|
url: '/system/labels/checkLabelName', |
||||
|
method: 'POST', |
||||
|
data:data |
||||
|
}) |
||||
|
} |
||||
|
// 导出实体类别
|
||||
|
export function exportLabels(query) { |
||||
|
return request({ |
||||
|
url: '/system/labels/export', |
||||
|
method: 'get', |
||||
|
params: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
//导入模板下载
|
||||
|
export function exportTemplate() { |
||||
|
return request({ |
||||
|
url: '/system/labels/exportTemplate', |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
//审核类别
|
||||
|
|
||||
|
//导入模板下载
|
||||
|
export function auditList(taskId) { |
||||
|
return request({ |
||||
|
url: '/system/sysDupLabels/auditList/' + taskId, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 审核入库
|
||||
|
export function passWarehousing(data) { |
||||
|
return request({ |
||||
|
url: '/system/sysDupLabels/passWarehousing', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
export function refuseWarehousing(taskId) { |
||||
|
return request({ |
||||
|
url: '/system/sysDupLabels/refuseWarehousing/' + taskId, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
export function passWarehousingBatch(data) { |
||||
|
return request({ |
||||
|
url: '/system/sysDupLabels/passWarehousingBatch', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
export function refuseWarehousingBatch(data) { |
||||
|
return request({ |
||||
|
url: '/system/sysDupLabels/refuseWarehousingBatch', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
|
@ -0,0 +1,53 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询素材实体列表
|
||||
|
export function listMaterialEntity(query) { |
||||
|
return request({ |
||||
|
url: '/system/materialEntity/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询素材实体详细
|
||||
|
export function getMaterialEntity(id) { |
||||
|
return request({ |
||||
|
url: '/system/materialEntity/' + id, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 新增素材实体
|
||||
|
export function addMaterialEntity(data) { |
||||
|
return request({ |
||||
|
url: '/system/materialEntity', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 修改素材实体
|
||||
|
export function updateMaterialEntity(data) { |
||||
|
return request({ |
||||
|
url: '/system/materialEntity', |
||||
|
method: 'put', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 删除素材实体
|
||||
|
export function delMaterialEntity(id) { |
||||
|
return request({ |
||||
|
url: '/system/materialEntity/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导出素材实体
|
||||
|
export function exportMaterialEntity(query) { |
||||
|
return request({ |
||||
|
url: '/system/materialEntity/export', |
||||
|
method: 'get', |
||||
|
params: query |
||||
|
}) |
||||
|
} |
@ -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,53 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询反馈消息列表
|
||||
|
export function listMessage(query) { |
||||
|
return request({ |
||||
|
url: '/system/message/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询反馈消息详细
|
||||
|
export function getMessage(id) { |
||||
|
return request({ |
||||
|
url: '/system/message/' + id, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 新增反馈消息
|
||||
|
export function addMessage(data) { |
||||
|
return request({ |
||||
|
url: '/system/message', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 修改反馈消息
|
||||
|
export function updateMessage(data) { |
||||
|
return request({ |
||||
|
url: '/system/message', |
||||
|
method: 'put', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 删除反馈消息
|
||||
|
export function delMessage(id) { |
||||
|
return request({ |
||||
|
url: '/system/message/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导出反馈消息
|
||||
|
export function exportMessage(query) { |
||||
|
return request({ |
||||
|
url: '/system/message/export', |
||||
|
method: 'get', |
||||
|
params: query |
||||
|
}) |
||||
|
} |
@ -0,0 +1,53 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询前端模块列表
|
||||
|
export function listModule(query) { |
||||
|
return request({ |
||||
|
url: '/system/module/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询前端模块详细
|
||||
|
export function getModule(id) { |
||||
|
return request({ |
||||
|
url: '/system/module/' + id, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 新增前端模块
|
||||
|
export function addModule(data) { |
||||
|
return request({ |
||||
|
url: '/system/module', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 修改前端模块
|
||||
|
export function updateModule(data) { |
||||
|
return request({ |
||||
|
url: '/system/module', |
||||
|
method: 'put', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 删除前端模块
|
||||
|
export function delModule(id) { |
||||
|
return request({ |
||||
|
url: '/system/module/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导出前端模块
|
||||
|
export function exportModule(query) { |
||||
|
return request({ |
||||
|
url: '/system/module/export', |
||||
|
method: 'get', |
||||
|
params: query |
||||
|
}) |
||||
|
} |
@ -0,0 +1,44 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询公告列表
|
||||
|
export function listNotice(query) { |
||||
|
return request({ |
||||
|
url: '/system/notice/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询公告详细
|
||||
|
export function getNotice(id) { |
||||
|
return request({ |
||||
|
url: '/system/notice/' + id, |
||||
|
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(id) { |
||||
|
return request({ |
||||
|
url: '/system/notice/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
@ -0,0 +1,53 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询政党表列表
|
||||
|
export function listOrg(query) { |
||||
|
return request({ |
||||
|
url: '/system/org/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询政党表详细
|
||||
|
export function getOrg(id) { |
||||
|
return request({ |
||||
|
url: '/system/org/' + id, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 新增政党表
|
||||
|
export function addOrg(data) { |
||||
|
return request({ |
||||
|
url: '/system/org', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 修改政党表
|
||||
|
export function updateOrg(data) { |
||||
|
return request({ |
||||
|
url: '/system/org', |
||||
|
method: 'put', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 删除政党表
|
||||
|
export function delOrg(id) { |
||||
|
return request({ |
||||
|
url: '/system/org/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导出政党表
|
||||
|
export function exportOrg(query) { |
||||
|
return request({ |
||||
|
url: '/system/org/export', |
||||
|
method: 'get', |
||||
|
params: query |
||||
|
}) |
||||
|
} |
@ -0,0 +1,53 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询政治人物表列表
|
||||
|
export function listPerson(query) { |
||||
|
return request({ |
||||
|
url: '/system/person/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询政治人物表详细
|
||||
|
export function getPerson(id) { |
||||
|
return request({ |
||||
|
url: '/system/person/' + id, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 新增政治人物表
|
||||
|
export function addPerson(data) { |
||||
|
return request({ |
||||
|
url: '/system/person', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 修改政治人物表
|
||||
|
export function updatePerson(data) { |
||||
|
return request({ |
||||
|
url: '/system/person', |
||||
|
method: 'put', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 删除政治人物表
|
||||
|
export function delPerson(id) { |
||||
|
return request({ |
||||
|
url: '/system/person/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导出政治人物表
|
||||
|
export function exportPerson(query) { |
||||
|
return request({ |
||||
|
url: '/system/person/export', |
||||
|
method: 'get', |
||||
|
params: query |
||||
|
}) |
||||
|
} |
@ -0,0 +1,53 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询人物机构表列表
|
||||
|
export function listOrg(query) { |
||||
|
return request({ |
||||
|
url: '/system/personOrg/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询人物机构表详细
|
||||
|
export function getOrg(id) { |
||||
|
return request({ |
||||
|
url: '/system/personOrg/' + id, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 新增人物机构表
|
||||
|
export function addOrg(data) { |
||||
|
return request({ |
||||
|
url: '/system/personOrg', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 修改人物机构表
|
||||
|
export function updateOrg(data) { |
||||
|
return request({ |
||||
|
url: '/system/personOrg', |
||||
|
method: 'put', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 删除人物机构表
|
||||
|
export function delOrg(id) { |
||||
|
return request({ |
||||
|
url: '/system/personOrg/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导出人物机构表
|
||||
|
export function exportOrg(query) { |
||||
|
return request({ |
||||
|
url: '/system/personOrg/export', |
||||
|
method: 'get', |
||||
|
params: query |
||||
|
}) |
||||
|
} |
@ -0,0 +1,61 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询岗位列表
|
||||
|
export function listPost(query) { |
||||
|
return request({ |
||||
|
url: '/system/post/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询岗位列表
|
||||
|
export function listAll() { |
||||
|
return request({ |
||||
|
url: '/system/post/listAll', |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询岗位详细
|
||||
|
export function getPost(id) { |
||||
|
return request({ |
||||
|
url: '/system/post/' + id, |
||||
|
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(id) { |
||||
|
return request({ |
||||
|
url: '/system/post/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导出岗位
|
||||
|
export function exportPost(query) { |
||||
|
return request({ |
||||
|
url: '/system/post/export', |
||||
|
method: 'get', |
||||
|
params: query |
||||
|
}) |
||||
|
} |
@ -0,0 +1,82 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询角色列表
|
||||
|
export function listRole(query) { |
||||
|
return request({ |
||||
|
url: '/system/role/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询角色详细
|
||||
|
export function getRole(id) { |
||||
|
return request({ |
||||
|
url: '/system/role/' + id, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
export function allRoles() { |
||||
|
return request({ |
||||
|
url: '/system/role/listAll', |
||||
|
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(id, status) { |
||||
|
const data = { |
||||
|
id, |
||||
|
status |
||||
|
} |
||||
|
return request({ |
||||
|
url: '/system/role/changeStatus', |
||||
|
method: 'put', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 删除角色
|
||||
|
export function delRole(id) { |
||||
|
return request({ |
||||
|
url: '/system/role/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导出角色
|
||||
|
export function exportRole(query) { |
||||
|
return request({ |
||||
|
url: '/system/role/export', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
@ -0,0 +1,53 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询专题项目基本信息列表
|
||||
|
export function listInfo(query) { |
||||
|
return request({ |
||||
|
url: '/system/special/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询专题项目基本信息详细
|
||||
|
export function getInfo(id) { |
||||
|
return request({ |
||||
|
url: '/system/special/' + id, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 新增专题项目基本信息
|
||||
|
export function addInfo(data) { |
||||
|
return request({ |
||||
|
url: '/system/special', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 修改专题项目基本信息
|
||||
|
export function updateInfo(data) { |
||||
|
return request({ |
||||
|
url: '/system/special', |
||||
|
method: 'put', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 删除专题项目基本信息
|
||||
|
export function delInfo(id) { |
||||
|
return request({ |
||||
|
url: '/system/special/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导出专题项目基本信息
|
||||
|
export function exportInfo(query) { |
||||
|
return request({ |
||||
|
url: '/system/special/export', |
||||
|
method: 'get', |
||||
|
params: query |
||||
|
}) |
||||
|
} |
@ -0,0 +1,66 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询客户标签列表
|
||||
|
export function listTag(query) { |
||||
|
return request({ |
||||
|
url: '/system/tag/list', |
||||
|
method: 'get', |
||||
|
params: query |
||||
|
}) |
||||
|
}export function listAll() { |
||||
|
return request({ |
||||
|
url: '/system/tag/listAll', |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询客户标签详细
|
||||
|
export function getTag(id) { |
||||
|
return request({ |
||||
|
url: '/system/tag/' + id, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 新增客户标签
|
||||
|
export function addTag(data) { |
||||
|
return request({ |
||||
|
url: '/system/tag', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 修改客户标签
|
||||
|
export function updateTag(data) { |
||||
|
return request({ |
||||
|
url: '/system/tag', |
||||
|
method: 'put', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
export function batchUpdate(data) { |
||||
|
return request({ |
||||
|
url: '/system/tag/batchUpadte', |
||||
|
method: 'put', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 删除客户标签
|
||||
|
export function delTag(id) { |
||||
|
return request({ |
||||
|
url: '/system/tag/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导出客户标签
|
||||
|
export function exportTag(query) { |
||||
|
return request({ |
||||
|
url: '/system/tag/export', |
||||
|
method: 'get', |
||||
|
params: query |
||||
|
}) |
||||
|
} |
@ -0,0 +1,115 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
//素材上传
|
||||
|
export function uploadFileSource(data) { |
||||
|
return request({ |
||||
|
url: '/upload/uploadDatas', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
export function exportTemplate() { |
||||
|
return request({ |
||||
|
url: '/upload/exportTemplate', |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
// 文件上传
|
||||
|
export function uploadFileData(data) { |
||||
|
return request({ |
||||
|
url: '/common/upload', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
// 获取上传进行
|
||||
|
export function getPercent(data) { |
||||
|
return request({ |
||||
|
url: '/getPercent', |
||||
|
method: 'get', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
//重置上传进度 前端调用进度之前调用此接口
|
||||
|
export function resetPercent(data) { |
||||
|
return request({ |
||||
|
url: '/resetPercent', |
||||
|
method: 'get', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 文件上传
|
||||
|
export function uploadFile(data) { |
||||
|
return request({ |
||||
|
url: '/fastdfs/upload', |
||||
|
method: 'post', |
||||
|
timeout: 10000000, |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
export function uploadFileProcess(data, file) { |
||||
|
//自定义上传方法,需要初始化文件进度条和修改文件状态
|
||||
|
file.percentage = 0; |
||||
|
file.status = "uploading"; |
||||
|
return request({ |
||||
|
url: '/fastdfs/upload', |
||||
|
method: 'post', |
||||
|
timeout: 10000000, |
||||
|
data: data, |
||||
|
onUploadProgress: (progressEvent) => { |
||||
|
let percent = |
||||
|
((progressEvent.loaded / progressEvent.total) * 100) | 0; |
||||
|
//调用onProgress方法来显示进度条,需要传递个对象 percent为进度值
|
||||
|
// uploader.onProgress({percent:percent})
|
||||
|
file.percentage = percent; |
||||
|
}, |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 删除文件
|
||||
|
export function deleteFile(data) { |
||||
|
return request({ |
||||
|
url: '/fastdfs/delete', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 预览文件
|
||||
|
export function previewFile(data) { |
||||
|
return request({ |
||||
|
url: '/fastdfs/show', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 获取下载文件流
|
||||
|
export function getFileStream(query) { |
||||
|
return request({ |
||||
|
url: '/common/download', |
||||
|
method: 'get', |
||||
|
params: query, |
||||
|
responseType: "blob" |
||||
|
}) |
||||
|
} |
||||
|
// 从fastDfs下载文件
|
||||
|
export function downloadFileStreamFastDFS(query) { |
||||
|
return request({ |
||||
|
url: '/download/fastDfs', |
||||
|
method: 'get', |
||||
|
params: query, |
||||
|
responseType: "blob" |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
@ -0,0 +1,143 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
import { praseStrEmpty } from "@/utils/ruoyi"; |
||||
|
|
||||
|
|
||||
|
// 修改用户
|
||||
|
export function checkUser(data) { |
||||
|
return request({ |
||||
|
url: '/system/user/checkUser', |
||||
|
method: 'POST', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询用户列表
|
||||
|
export function listUser(query) { |
||||
|
return request({ |
||||
|
url: '/system/user/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询用户详细
|
||||
|
export function getUser(id) { |
||||
|
return request({ |
||||
|
url: '/system/user/' + praseStrEmpty(id), |
||||
|
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(id) { |
||||
|
return request({ |
||||
|
url: '/system/user/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导出用户
|
||||
|
export function exportUser(query) { |
||||
|
return request({ |
||||
|
url: '/system/user/export', |
||||
|
method: 'POST', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 用户密码重置
|
||||
|
export function resetUserPwd(id, password) { |
||||
|
const data = { |
||||
|
id, |
||||
|
password |
||||
|
} |
||||
|
return request({ |
||||
|
url: '/system/user/resetPwd', |
||||
|
method: 'put', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 用户状态修改
|
||||
|
export function changeUserStatus(id, status) { |
||||
|
const data = { |
||||
|
id, |
||||
|
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 importTemplate() { |
||||
|
return request({ |
||||
|
url: '/system/user/importTemplate', |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
export function createIndexApi(){ |
||||
|
return request({ |
||||
|
url: '/createIndex', |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
@ -0,0 +1,69 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询生成表数据
|
||||
|
export function listTable(query) { |
||||
|
return request({ |
||||
|
url: '/tool/gen/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
// 查询db数据库列表
|
||||
|
export function listDbTable(query) { |
||||
|
return request({ |
||||
|
url: '/tool/gen/db/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询表详细信息
|
||||
|
export function getGenTable(id) { |
||||
|
return request({ |
||||
|
url: '/tool/gen/' + id, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 修改代码生成信息
|
||||
|
export function updateGenTable(data) { |
||||
|
return request({ |
||||
|
url: '/tool/gen', |
||||
|
method: 'put', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导入表
|
||||
|
export function importTable(data) { |
||||
|
return request({ |
||||
|
url: '/tool/gen/importTable', |
||||
|
method: 'post', |
||||
|
params: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 预览生成代码
|
||||
|
export function previewTable(id) { |
||||
|
return request({ |
||||
|
url: '/tool/gen/preview/' + id, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 删除表数据
|
||||
|
export function delTable(id) { |
||||
|
return request({ |
||||
|
url: '/tool/gen/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 生成代码(自定义路径)
|
||||
|
export function genCode(tableName) { |
||||
|
return request({ |
||||
|
url: '/tool/gen/genCode/' + tableName, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
After Width: | Height: | Size: 160 KiB |
After Width: | Height: | Size: 96 KiB |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 515 B |
After Width: | Height: | Size: 700 B |
After Width: | Height: | Size: 192 KiB |
After Width: | Height: | Size: 581 KiB |
After Width: | Height: | Size: 315 B |
After Width: | Height: | Size: 309 B |
After Width: | Height: | Size: 530 B |
After Width: | Height: | Size: 141 B |
After Width: | Height: | Size: 291 B |
After Width: | Height: | Size: 441 B |
After Width: | Height: | Size: 397 B |
After Width: | Height: | Size: 411 B |
After Width: | Height: | Size: 476 B |
After Width: | Height: | Size: 137 B |
After Width: | Height: | Size: 637 B |
After Width: | Height: | Size: 5.4 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 405 B |
@ -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.4 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 954 B |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 179 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 971 B |
After Width: | Height: | Size: 732 B |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 2.1 KiB |