
@ -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,11 @@ |
|||
# just a flag |
|||
ENV = 'development' |
|||
|
|||
# base api |
|||
VUE_APP_BASE_API = '/api' |
|||
|
|||
## 配置测试和本地开发时的 接口地址 |
|||
##VUE_APP_URL = "http://26077a35f5.wicp.vip" |
|||
VUE_APP_URL = "http://26077a35f5.wicp.vip" |
|||
##VUE_APP_URL = "http://127.0.0.1:8111" |
|||
##VUE_APP_URL = "http://1mn7264414.qicp.vip" |
@ -0,0 +1,9 @@ |
|||
# just a flag |
|||
ENV = 'production' |
|||
|
|||
# base api |
|||
VUE_APP_BASE_API = '/api' |
|||
|
|||
## 配置 正式接口地址 |
|||
VUE_APP_URL = "http://218.11.12.154:8111" |
|||
|
@ -0,0 +1,7 @@ |
|||
NODE_ENV = production |
|||
|
|||
# 测试环境配置 |
|||
ENV = 'staging' |
|||
|
|||
# 若依管理系统/测试环境 |
|||
VUE_APP_BASE_API = '/stage-api' |
@ -0,0 +1,10 @@ |
|||
# 忽略build目录下类型为js的文件的语法检查 |
|||
build/*.js |
|||
# 忽略src/assets目录下文件的语法检查 |
|||
src/assets |
|||
# 忽略public目录下文件的语法检查 |
|||
public |
|||
# 忽略当前目录下为js的文件的语法检查 |
|||
*.js |
|||
# 忽略当前目录下为vue的文件的语法检查 |
|||
*.vue |
@ -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,31 @@ |
|||
## 开发 |
|||
|
|||
```bash |
|||
|
|||
# 进入项目目录 |
|||
cd admin-ui |
|||
|
|||
# 安装依赖 |
|||
npm install |
|||
|
|||
# 使用taobao的服务器,解决下载速度慢的问题 |
|||
npm install --registry=https://registry.npm.taobao.org |
|||
|
|||
# 启动服务 |
|||
npm run dev |
|||
``` |
|||
|
|||
浏览器访问 http://localhost:80 |
|||
- 看运行提示: |
|||
- Local: http://localhost:1024/ |
|||
- Network: http://192.168.0.117:1024/ |
|||
|
|||
## 发布 |
|||
|
|||
```bash |
|||
# 构建测试环境 |
|||
npm run build:stage |
|||
|
|||
# 构建生产环境 |
|||
npm run build:prod |
|||
``` |
@ -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 @@ |
|||
@echo off |
|||
echo. |
|||
echo [信息] 打包Web工程,生成dist文件。 |
|||
echo. |
|||
|
|||
%~d0 |
|||
cd %~dp0 |
|||
|
|||
cd .. |
|||
npm run build:prod |
|||
|
|||
pause |
@ -0,0 +1,12 @@ |
|||
@echo off |
|||
echo. |
|||
echo [信息] 安装Web工程,生成node_modules文件。 |
|||
echo. |
|||
|
|||
%~d0 |
|||
cd %~dp0 |
|||
|
|||
cd .. |
|||
npm install --registry=https://registry.npm.taobao.org |
|||
|
|||
pause |
@ -0,0 +1,12 @@ |
|||
@echo off |
|||
echo. |
|||
echo [信息] 使用 Vue CLI 命令运行 Web 工程。 |
|||
echo. |
|||
|
|||
%~d0 |
|||
cd %~dp0 |
|||
|
|||
cd .. |
|||
npm run dev |
|||
|
|||
pause |
@ -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,90 @@ |
|||
{ |
|||
"name": "projectName", |
|||
"version": "1.0.0", |
|||
"description": "项目中文名", |
|||
"author": "作者", |
|||
"license": "MIT", |
|||
"scripts": { |
|||
"dev": "vue-cli-service serve", |
|||
"build:prod": "vue-cli-service build", |
|||
"build:stage": "vue-cli-service 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/liuzp315/jbase-springboot.git" |
|||
}, |
|||
"dependencies": { |
|||
"@riophae/vue-treeselect": "0.4.0", |
|||
"axios": "0.21.0", |
|||
"babel-polyfill": "^6.26.0", |
|||
"clipboard": "2.0.6", |
|||
"core-js": "^3.19.1", |
|||
"echarts": "4.9.0", |
|||
"element-ui": "2.15.6", |
|||
"file-saver": "2.0.4", |
|||
"fuse.js": "6.4.3", |
|||
"highlight.js": "9.18.5", |
|||
"js-beautify": "1.13.0", |
|||
"js-cookie": "2.2.1", |
|||
"jsencrypt": "3.0.0-rc.1", |
|||
"nprogress": "0.2.0", |
|||
"quill": "1.3.7", |
|||
"screenfull": "5.0.2", |
|||
"sortablejs": "1.10.2", |
|||
"vue": "2.6.12", |
|||
"vue-count-to": "1.0.13", |
|||
"vue-cropper": "0.5.5", |
|||
"vue-meta": "^2.4.0", |
|||
"vue-router": "3.4.9", |
|||
"vuedraggable": "2.24.3", |
|||
"vuex": "3.6.0" |
|||
}, |
|||
"devDependencies": { |
|||
"@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", |
|||
"chalk": "4.1.0", |
|||
"connect": "3.6.6", |
|||
"eslint": "7.15.0", |
|||
"eslint-plugin-vue": "7.2.0", |
|||
"lint-staged": "10.5.3", |
|||
"normalize.css": "^8.0.1", |
|||
"runjs": "4.4.2", |
|||
"sass": "1.32.0", |
|||
"sass-loader": "10.1.0", |
|||
"script-ext-html-webpack-plugin": "2.1.5", |
|||
"svg-sprite-loader": "5.1.1", |
|||
"vue-template-compiler": "2.6.12" |
|||
}, |
|||
"engines": { |
|||
"node": ">=8.9", |
|||
"npm": ">= 3.0.0" |
|||
}, |
|||
"browserslist": [ |
|||
"> 1%", |
|||
"last 2 versions" |
|||
] |
|||
} |
After Width: | Height: | Size: 17 KiB |
@ -0,0 +1,208 @@ |
|||
<!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> |
|||
<!--[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; |
|||
} |
|||
</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,9 @@ |
|||
<template> |
|||
<div id="app"><router-view /></div> |
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
name: 'App' |
|||
} |
|||
</script> |
@ -0,0 +1,10 @@ |
|||
import request from '@/utils/request' |
|||
// 上传图片
|
|||
export function imageUpload(data){ |
|||
return request({ |
|||
url: '/jlcyry/file/upload', |
|||
method: 'post', |
|||
data, |
|||
headers:{'Content-Type':'multipart/form-data'} |
|||
}) |
|||
} |
@ -0,0 +1,25 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
//区域获取省
|
|||
export function getProvince(data) { |
|||
return request({ |
|||
url: '/system/region/getProvince', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
//根据省sid获取该省的所有市
|
|||
export function getCity(data) { |
|||
return request({ |
|||
url: '/system/region/getCity', |
|||
method: 'get', |
|||
params: data |
|||
}) |
|||
} |
|||
//根据市sid获取该市的所有县区
|
|||
export function getCounty(data) { |
|||
return request({ |
|||
url: '/system/region/getCounty', |
|||
method: 'get', |
|||
params: data |
|||
}) |
|||
} |
@ -0,0 +1,36 @@ |
|||
import request from '@/utils/request' |
|||
import qs from 'qs' |
|||
|
|||
class user { |
|||
login(data) { // 登录
|
|||
return request({ |
|||
url: '/system/user/login', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
logout(data) { // 退出
|
|||
return request({ |
|||
url: '/portal/v1/sysuser/signOut', |
|||
method: 'post', |
|||
data: qs.stringify(data) |
|||
}) |
|||
} |
|||
updatePassword(data) { // 退出修改密码
|
|||
return request({ |
|||
url: '/portal/v1/sysuser/updatePassword', |
|||
method: 'post', |
|||
data: qs.stringify(data) |
|||
}) |
|||
} |
|||
reGetPwd(data){ |
|||
return request({ |
|||
url: `/system/user/reGetPwd/${data.userName}/${data.userPhone}`, |
|||
method: 'post', |
|||
data: qs.stringify(data) |
|||
}) |
|||
} |
|||
|
|||
} |
|||
|
|||
export default new user() |
@ -0,0 +1,41 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export default { |
|||
|
|||
list: function() { |
|||
return request({ |
|||
url: '/message/list' |
|||
}) |
|||
}, |
|||
listPage: function(params) { |
|||
return request({ |
|||
url: '/message/listPage', |
|||
method: 'post', |
|||
data: params |
|||
}) |
|||
}, |
|||
listAll: function(params) { |
|||
return request({ |
|||
url: '/message/listAll', |
|||
method: 'post', |
|||
data: params |
|||
}) |
|||
}, |
|||
delete: function(id) { |
|||
return request({ |
|||
url: '/message/del/' + id |
|||
}) |
|||
}, |
|||
fetch: function(id) { |
|||
return request({ |
|||
url: '/message/fetch/' + id |
|||
}) |
|||
}, |
|||
save: function(params) { |
|||
return request({ |
|||
url: '/message/save', |
|||
method: 'post', |
|||
data: params |
|||
}) |
|||
} |
|||
} |
@ -0,0 +1,41 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export default { |
|||
|
|||
list: function() { |
|||
return request({ |
|||
url: '/messagefile/list' |
|||
}) |
|||
}, |
|||
listPage: function(params) { |
|||
return request({ |
|||
url: '/messagefile/listPage', |
|||
method: 'post', |
|||
data: params |
|||
}) |
|||
}, |
|||
listAll: function(params) { |
|||
return request({ |
|||
url: '/messagefile/listAll', |
|||
method: 'post', |
|||
data: params |
|||
}) |
|||
}, |
|||
delete: function(id) { |
|||
return request({ |
|||
url: '/messagefile/del/' + id |
|||
}) |
|||
}, |
|||
fetch: function(id) { |
|||
return request({ |
|||
url: '/messagefile/fetch/' + id |
|||
}) |
|||
}, |
|||
save: function(params) { |
|||
return request({ |
|||
url: '/messagefile/save', |
|||
method: 'post', |
|||
data: params |
|||
}) |
|||
} |
|||
} |
@ -0,0 +1,41 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export default { |
|||
|
|||
list: function() { |
|||
return request({ |
|||
url: '/messageforwardlist/list' |
|||
}) |
|||
}, |
|||
listPage: function(params) { |
|||
return request({ |
|||
url: '/messageforwardlist/listPage', |
|||
method: 'post', |
|||
data: params |
|||
}) |
|||
}, |
|||
listAll: function(params) { |
|||
return request({ |
|||
url: '/messageforwardlist/listAll', |
|||
method: 'post', |
|||
data: params |
|||
}) |
|||
}, |
|||
delete: function(id) { |
|||
return request({ |
|||
url: '/messageforwardlist/del/' + id |
|||
}) |
|||
}, |
|||
fetch: function(id) { |
|||
return request({ |
|||
url: '/messageforwardlist/fetch/' + id |
|||
}) |
|||
}, |
|||
save: function(params) { |
|||
return request({ |
|||
url: '/messageforwardlist/save', |
|||
method: 'post', |
|||
data: params |
|||
}) |
|||
} |
|||
} |
@ -0,0 +1,54 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export default { |
|||
verifyList:function(data){ // 获取未读消息列表
|
|||
return request({ |
|||
url: '/message/v1/messagelist/noreadListPage', |
|||
method: 'post', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json'} |
|||
}) |
|||
}, |
|||
readVerifyList:function(data){ // 获取已读消息列表
|
|||
return request({ |
|||
url: '/message/v1/messagelist/readListPage', |
|||
method: 'post', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json'} |
|||
}) |
|||
}, |
|||
ChangeRead:function(data){ // 未读消息列表批量设为已读
|
|||
return request({ |
|||
url: '/message/v1/messagelist/changeRead?sids='+data, |
|||
method: 'get', |
|||
data: data, |
|||
}) |
|||
}, |
|||
noChangeRead:function(data){ // 已读消息列表批量设为未读
|
|||
return request({ |
|||
url: '/message/v1/messagelist/noChangeRead?sids='+data, |
|||
method: 'get', |
|||
data: data, |
|||
}) |
|||
}, |
|||
delete:function(data){ // 已读消息列表批量设为未读
|
|||
return request({ |
|||
url: '/message/v1/messagelist/deleteBySids?sids='+data, |
|||
method: 'get', |
|||
data: data, |
|||
}) |
|||
}, |
|||
changeAll:function(){ // 未读消息列表全部设为已读
|
|||
return request({ |
|||
url: '/message/v1/messagelist/allChangeRead/', |
|||
method: 'get', |
|||
}) |
|||
}, |
|||
OrgINfo:function(data){ // 获取消息详情
|
|||
return request({ |
|||
url: '/message/v1/messagelist/fetchByMsgSid/'+data.sid, |
|||
method: 'get', |
|||
params: data, |
|||
}) |
|||
}, |
|||
} |
@ -0,0 +1,41 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export default { |
|||
|
|||
list: function() { |
|||
return request({ |
|||
url: '/messageremindrule/list' |
|||
}) |
|||
}, |
|||
listPage: function(params) { |
|||
return request({ |
|||
url: '/messageremindrule/listPage', |
|||
method: 'post', |
|||
data: params |
|||
}) |
|||
}, |
|||
listAll: function(params) { |
|||
return request({ |
|||
url: '/messageremindrule/listAll', |
|||
method: 'post', |
|||
data: params |
|||
}) |
|||
}, |
|||
delete: function(id) { |
|||
return request({ |
|||
url: '/messageremindrule/del/' + id |
|||
}) |
|||
}, |
|||
fetch: function(id) { |
|||
return request({ |
|||
url: '/messageremindrule/fetch/' + id |
|||
}) |
|||
}, |
|||
save: function(params) { |
|||
return request({ |
|||
url: '/messageremindrule/save', |
|||
method: 'post', |
|||
data: params |
|||
}) |
|||
} |
|||
} |
@ -0,0 +1,41 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export default { |
|||
|
|||
list: function() { |
|||
return request({ |
|||
url: '/messagereply/list' |
|||
}) |
|||
}, |
|||
listPage: function(params) { |
|||
return request({ |
|||
url: '/messagereply/listPage', |
|||
method: 'post', |
|||
data: params |
|||
}) |
|||
}, |
|||
listAll: function(params) { |
|||
return request({ |
|||
url: '/messagereply/listAll', |
|||
method: 'post', |
|||
data: params |
|||
}) |
|||
}, |
|||
delete: function(id) { |
|||
return request({ |
|||
url: '/messagereply/del/' + id |
|||
}) |
|||
}, |
|||
fetch: function(id) { |
|||
return request({ |
|||
url: '/messagereply/fetch/' + id |
|||
}) |
|||
}, |
|||
save: function(params) { |
|||
return request({ |
|||
url: '/messagereply/save', |
|||
method: 'post', |
|||
data: params |
|||
}) |
|||
} |
|||
} |
@ -0,0 +1,44 @@ |
|||
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' |
|||
}) |
|||
} |
|||
// 获取路由
|
|||
export const getRouters = () => { |
|||
return request({ |
|||
url: '/getRouters', |
|||
method: 'get' |
|||
}) |
|||
} |
@ -0,0 +1,34 @@ |
|||
import request from '@/utils/request' |
|||
import qs from 'qs' |
|||
let tokens = window.sessionStorage.getItem('token'); |
|||
//
|
|||
export function rolemenus(data) { |
|||
return request({ |
|||
url: '/system/v1/rolemenus/'+data.roleSid, |
|||
method: 'get', |
|||
params: data |
|||
}) |
|||
} |
|||
|
|||
// 获取左侧菜单
|
|||
export function getrolemenus(data) { |
|||
return request({ |
|||
url: '/portal/v1/sysmenu/sourcemenutree', |
|||
method: 'POST', |
|||
async: false, |
|||
// data: {userSid: data.userSid, sourceSid: '000011'},
|
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens} |
|||
}) |
|||
} |
|||
|
|||
// 获取角色的主页菜单
|
|||
export function sourcesofrole(data) { |
|||
return request({ |
|||
url: '/system/v1/rolemenus/sourcesofrole', |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json'} |
|||
}) |
|||
} |
@ -0,0 +1,69 @@ |
|||
import request from '@/utils/request' |
|||
import qs from 'qs' |
|||
|
|||
// 获取角色 不分页列表
|
|||
export function roleList(data) { |
|||
return request({ |
|||
url: '/system/v1/roles/list/', |
|||
method: 'post', |
|||
data: qs.stringify(data) |
|||
}) |
|||
} |
|||
|
|||
|
|||
//获取角色 分页列表
|
|||
export function rolePageList(data) { |
|||
return request({ |
|||
url: '/system/v1/roles/pagelist', |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json'} |
|||
}) |
|||
} |
|||
|
|||
//保存 角色信息
|
|||
export function saveRoleInfo(data) { |
|||
return request({ |
|||
url: '/system/v1/roles', |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json'} |
|||
}) |
|||
} |
|||
|
|||
//根据sid 获取单个角色 信息
|
|||
export function getRoleInfo(data) { |
|||
return request({ |
|||
url: '/system/v1/roles/' + data.sid, |
|||
method: 'GET', |
|||
data: qs.stringify(data) |
|||
}) |
|||
} |
|||
|
|||
//根据sid 修改单个角色 信息
|
|||
export function putRoleInfo(data) { |
|||
return request({ |
|||
url: '/system/v1/roles/' + data.sid, |
|||
method: 'PUT', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json'} |
|||
}) |
|||
} |
|||
|
|||
//根据sid 删除单个角色 信息
|
|||
export function delRole(data) { |
|||
return request({ |
|||
url: '/system/v1/roles/' + data.sid, |
|||
method: 'DELETE', |
|||
data: qs.stringify(data) |
|||
}) |
|||
} |
|||
|
|||
//根据sid 设置单个角色 的状态
|
|||
export function setRoleEnable(data) { |
|||
return request({ |
|||
url: `/system/v1/roles/setIsEnable/${data.sid}/${data.isEnable}`, |
|||
method: 'POST', |
|||
data: qs.stringify(data) |
|||
}) |
|||
} |
@ -0,0 +1,32 @@ |
|||
import request from '@/utils/request' |
|||
import qs from 'qs' |
|||
//获取单位级别
|
|||
export function getDwJb(data) { |
|||
return request({ |
|||
url: '/system/dictCommon/getDwJb', |
|||
method: 'GET', |
|||
}) |
|||
} |
|||
// 获取机构单位类别
|
|||
export function getDwType(data) { |
|||
return request({ |
|||
url: '/system/dictCommon/getDwType', |
|||
method: 'get', |
|||
params: data |
|||
}) |
|||
} |
|||
//获取机构人员类别
|
|||
export function getRylb(data) { |
|||
return request({ |
|||
url: '/system/dictCommon/getRylb', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 根据Type值获取数据对象
|
|||
export function getDicts(typeCode) { |
|||
return request({ |
|||
url: '/system/dictCommon/dicts/'+typeCode, |
|||
method: 'get' |
|||
}) |
|||
} |
@ -0,0 +1,97 @@ |
|||
import request from '@/utils/request' |
|||
import qs from 'qs'; |
|||
|
|||
//let tokens = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTm8iOiI2IiwiaXNzIjoiV0JLIiwiZXhwIjoxNjMwMDI3MDA3fQ.9bEgBzFW2g1CUT7s5VXxhNCa10cyU_WTCFeqpQje0iY'
|
|||
let tokens = window.sessionStorage.getItem('token'); |
|||
//获取菜单 分页列表
|
|||
export function pageList(data) { |
|||
return request({ |
|||
url: '/portal/v1/sysorganization/listPage', |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
// 查询左侧部门列表
|
|||
export function orgList(data){ |
|||
return request({ |
|||
url: '/portal/v1/sysorganization/list', |
|||
method: 'get', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
// 编辑部门信息
|
|||
export function postOrgtree(data){ |
|||
return request({ |
|||
url: '/portal/v1/sysorganization/update/' +data.sid, |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
// 获取 机构分页列表
|
|||
export function putOrgtree(data) { |
|||
return request({ |
|||
url: '/portal/v1/sysorganization/update/' +data.sid, |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens} |
|||
}) |
|||
} |
|||
// 新增部门信息
|
|||
export function addOrgTree(data){ |
|||
return request({ |
|||
url: '/portal/v1/sysorganization/save', |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
// 树 节点名称 删除
|
|||
export function delOrgtree(data) { |
|||
return request({ |
|||
url: `/portal/v1/sysorganization/delBySid/`+data.sid, |
|||
method: 'get', |
|||
data: qs.stringify(data), |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
// 查询主管人员分管人员
|
|||
export function getStaff(data) { |
|||
return request({ |
|||
url: '/portal/v1/sysstafforg/staffinfoList', |
|||
method: 'post', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
// 查看二维码
|
|||
export function getQrCode(data) { |
|||
return request({ |
|||
url: `/system/v1/departments/getQrCode/`+data.sid, |
|||
method: 'POST', |
|||
data: qs.stringify(data) |
|||
}) |
|||
} |
@ -0,0 +1,58 @@ |
|||
import request from '@/utils/request' |
|||
import qs from 'qs' |
|||
let tokens = window.sessionStorage.getItem('token'); |
|||
|
|||
//获取字典子集 分页列表
|
|||
export function dictCommonList(data) { |
|||
return request({ |
|||
url: '/portal/v1/dictcommons/pageList', |
|||
method: 'post', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json'} |
|||
}) |
|||
} |
|||
|
|||
//保存 字典子级
|
|||
export function savedictCommon(data) { |
|||
return request({ |
|||
url: '/portal/v1/dictcommons/save', |
|||
method: 'POST', |
|||
data: data , |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
|
|||
//根据sid 获取单个菜单 信息
|
|||
export function getRoleInfo(data) { |
|||
return request({ |
|||
url: '/system/v1/menus/' + data.sid, |
|||
method: 'GET', |
|||
data: qs.stringify(data) |
|||
}) |
|||
} |
|||
|
|||
//根据sid 修改 数据字典
|
|||
export function putdictCommon(data) { |
|||
return request({ |
|||
url: '/portal/v1/dictcommons/update/' + data.sid, |
|||
method: 'POST', |
|||
data: data , |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
|
|||
//根据sid 删除菜单 信息
|
|||
export function deldictCommon(data) { |
|||
return request({ |
|||
url: '/portal/v1/dictcommons/delete/' + data.sid, |
|||
method: 'DELETE', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
@ -0,0 +1,68 @@ |
|||
import request from '@/utils/request' |
|||
import qs from 'qs' |
|||
//let tokens = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTm8iOiI2IiwiaXNzIjoiV0JLIiwiZXhwIjoxNjMwMDI3MDA3fQ.9bEgBzFW2g1CUT7s5VXxhNCa10cyU_WTCFeqpQje0iY'
|
|||
let tokens = window.sessionStorage.getItem('token'); |
|||
|
|||
//获取菜单 分页列表
|
|||
export function pageList(data) { |
|||
return request({ |
|||
url: '/portal/v1/dicttypes/pageList', |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
//根据sid 修改
|
|||
export function putDictType(data) { |
|||
return request({ |
|||
url: '/portal/v1/dicttypes/update/' + data.sid, |
|||
method: 'POST', |
|||
data: qs.stringify(data) |
|||
}) |
|||
} |
|||
////获取菜单 分页列表
|
|||
//export function dictTypeList(data) {
|
|||
//return request({
|
|||
// url: '/system/dicttype/pageList',
|
|||
// method: 'post',
|
|||
// data: data,
|
|||
// headers: {'Content-Type': 'application/json'}
|
|||
//})
|
|||
//}
|
|||
|
|||
//保存 角色信息
|
|||
export function saveDictType(data) { |
|||
return request({ |
|||
url: '/portal/v1/dicttypes/save', |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
|
|||
//根据sid 获取单个菜单 信息
|
|||
export function getRoleInfo(data) { |
|||
return request({ |
|||
url: '/system/v1/menus/' + data.sid, |
|||
method: 'GET', |
|||
data: qs.stringify(data) |
|||
}) |
|||
} |
|||
|
|||
|
|||
|
|||
//根据sid 删除菜单 信息
|
|||
export function delDictType(data) { |
|||
return request({ |
|||
url: '/portal/v1/dicttypes/delete/' + data.sid, |
|||
method: 'DELETE', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
@ -0,0 +1,84 @@ |
|||
import request from '@/utils/request' |
|||
import qs from 'qs' |
|||
//let tokens = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTm8iOiI2IiwiaXNzIjoiV0JLIiwiZXhwIjoxNjMwMDI3MDA3fQ.9bEgBzFW2g1CUT7s5VXxhNCa10cyU_WTCFeqpQje0iY'
|
|||
let tokens = window.sessionStorage.getItem('token'); |
|||
//获取菜单 分页列表
|
|||
export function pageList(data) { |
|||
return request({ |
|||
url: '/portal/v1/sysfunction/listAllVoForSource', |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
|
|||
//新增
|
|||
export function savePost(data) { |
|||
return request({ |
|||
url: '/portal/v1/sysfunction/save', |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
|
|||
//模块名称
|
|||
export function sourceList(data) { |
|||
return request({ |
|||
url: '/portal/v1/syssource/listAll', |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
// 删除
|
|||
export function delOrgroles(data) { |
|||
return request({ |
|||
url: '/portal/v1/sysfunction/delBySids/'+ data.sid, |
|||
method: 'get', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
|
|||
// 修改
|
|||
export function getSingleData(data){ |
|||
return request({ |
|||
url: '/portal/v1/sysfunction/fetchBySid/'+data.id, |
|||
method: 'get', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
export function putOrgroles(data){ |
|||
return request({ |
|||
url: '/portal/v1/sysfunction/update/' +data.sid, |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
|
|||
// 功能是否可用状态
|
|||
export function IsEnable(data){ |
|||
return request({ |
|||
url: '/portal/v1/sysfunction/updateIsEnable/' +data.sid, |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
@ -0,0 +1,16 @@ |
|||
import request from '@/utils/request' |
|||
import qs from 'qs' |
|||
//let tokens = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTm8iOiI2IiwiaXNzIjoiV0JLIiwiZXhwIjoxNjMwMDI3MDA3fQ.9bEgBzFW2g1CUT7s5VXxhNCa10cyU_WTCFeqpQje0iY'
|
|||
let tokens = window.sessionStorage.getItem('token'); |
|||
//获取菜单 分页列表
|
|||
export function logPageList(data) { |
|||
return request({ |
|||
url: '/portal/v1/systemlog/listPage', |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
|
@ -0,0 +1,115 @@ |
|||
import request from '@/utils/request' |
|||
import qs from 'qs' |
|||
//let tokens = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTm8iOiI2IiwiaXNzIjoiV0JLIiwiZXhwIjoxNjMwMDI3MDA3fQ.9bEgBzFW2g1CUT7s5VXxhNCa10cyU_WTCFeqpQje0iY'
|
|||
|
|||
let tokens = window.sessionStorage.getItem('token'); |
|||
//获取菜单 分页列表
|
|||
export function pageList(data) { |
|||
return request({ |
|||
url: '/portal/v1/sysmenu/listAllVoForSource', |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
// 新增保存 菜单信息
|
|||
export function saveMenusInfo(data) { |
|||
return request({ |
|||
url: '/portal/v1/sysmenu/save', |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json'} |
|||
}) |
|||
} |
|||
// 修改保存 菜单信息
|
|||
export function putMenusInfo(data) { |
|||
return request({ |
|||
url: '/portal/v1/sysmenu/update/'+ data.sid, |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json'} |
|||
}) |
|||
} |
|||
//根据sid 删除单个 资源信息
|
|||
export function delMenus(data) { |
|||
return request({ |
|||
url: '/portal/v1/sysmenu/delBySids/' + data.sid, |
|||
method: 'get', |
|||
data: qs.stringify(data), |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
|
|||
// 修改状态
|
|||
export function IsEnable(data) { |
|||
return request({ |
|||
url: '/portal/v1/sysmenu/updateIsEnable/' + data.sid, |
|||
method: 'POST', |
|||
data: qs.stringify(data), |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
// 获取菜单 不分页列表
|
|||
export function roleList(data) { |
|||
return request({ |
|||
url: '/system/v1/menus/list', |
|||
method: 'post', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json'} |
|||
}) |
|||
} |
|||
|
|||
//获取菜单 分页列表
|
|||
export function menusPageList(data) { |
|||
return request({ |
|||
url: '/system/v1/menus/pagelist', |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json'} |
|||
}) |
|||
} |
|||
|
|||
//获取菜单 树形分页列表
|
|||
export function menusTreelist(data) { |
|||
return request({ |
|||
url: '/system/v1/menus/treelist', |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json'} |
|||
}) |
|||
} |
|||
|
|||
|
|||
|
|||
//根据sid 获取单个菜单 信息
|
|||
export function getRoleInfo(data) { |
|||
return request({ |
|||
url: '/system/v1/menus/' + data.sid, |
|||
method: 'GET', |
|||
data: qs.stringify(data) |
|||
}) |
|||
} |
|||
|
|||
|
|||
|
|||
|
@ -0,0 +1,36 @@ |
|||
import request from '@/utils/request' |
|||
import qs from 'qs' |
|||
let tokens = window.sessionStorage.getItem('token'); |
|||
class user{ |
|||
verifyList(data){ // 获取列表
|
|||
return request({ |
|||
url: '/system/organization/verifyList', |
|||
method: 'post', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json'} |
|||
}) |
|||
} |
|||
orgRegisterDetails(data){ // 单位注册信息详情
|
|||
return request({ |
|||
url: '/system/organization/organizationRegisterDetails/'+data.organizationSid, |
|||
method: 'get', |
|||
params: data |
|||
}) |
|||
} |
|||
verify(data){ // 审核
|
|||
return request({ |
|||
url: '/system/organization/verify', |
|||
method: 'post', |
|||
data: qs.stringify(data) |
|||
}) |
|||
} |
|||
// 删除机构信息
|
|||
del(data) { |
|||
return request({ |
|||
url: '/system/organization/delete/'+data.sid, |
|||
method: 'DELETE', |
|||
data |
|||
}) |
|||
} |
|||
} |
|||
export default new user() |
@ -0,0 +1,61 @@ |
|||
import request from '@/utils/request' |
|||
import qs from 'qs' |
|||
//let tokens = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTm8iOiI2IiwiaXNzIjoiV0JLIiwiZXhwIjoxNjMwMTE1MjUwfQ.gtn_mVsbwH6ztl835rWmIY4DxeNmRe_TOt-Q0TdldIE'
|
|||
let tokens = window.sessionStorage.getItem('token'); |
|||
//获取菜单 分页列表
|
|||
export function pageList(data) { |
|||
return request({ |
|||
url: '/portal/v1/syspost/listPage', |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
|
|||
// 查询部门列表
|
|||
export function orgList(data){ |
|||
return request({ |
|||
url: '/portal/v1/sysorganization/list', |
|||
method: 'get', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
// 新增
|
|||
export function savePost(data){ |
|||
return request({ |
|||
url: '/portal/v1/syspost/save', |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
// 修改
|
|||
export function putOrgroles(data){ |
|||
return request({ |
|||
url: '/portal/v1/syspost/update/' +data.sid, |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
|
|||
// 删除
|
|||
export function delOrgroles(data){ |
|||
return request({ |
|||
url: '/portal/v1/syspost/delBySids/' + data.sids, |
|||
method: 'get', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
@ -0,0 +1,139 @@ |
|||
import request from '@/utils/request' |
|||
import qs from 'qs' |
|||
//let tokens = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTm8iOiI2IiwiaXNzIjoiV0JLIiwiZXhwIjoxNjI5OTQxNjI1fQ.aOFOz0h7c8YQs-ti2GLpqeWu4AE9mifx_043hLJQf8g'
|
|||
let tokens = window.sessionStorage.getItem('token'); |
|||
// 业务角色 列表
|
|||
export function roleOrgList(data){ |
|||
return request({ |
|||
url: '/portal/v1/sysrole/listPage', |
|||
method: 'post', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
|
|||
// 设置是否可用:isEnable:1可用,0不可用
|
|||
export function setRoleEnable(data) { |
|||
return request({ |
|||
url: `/system/v1/orgroles/setIsEnable/${data.sid}/${data.isEnable}`, |
|||
method: 'POST', |
|||
data: qs.stringify(data) |
|||
}) |
|||
} |
|||
|
|||
/** |
|||
* <新增 保存角色> |
|||
* @orgSid 机构SID |
|||
* @remarks 备注 |
|||
* @roleName 角色名称 |
|||
* */ |
|||
export function saveOrgroles(data) { |
|||
return request({ |
|||
url: '/portal/v1/sysrole/save', |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
/** |
|||
* <根据SID 修改角色> |
|||
* @sid 角色SID |
|||
* @orgSid 机构SID |
|||
* @remarks 备注 |
|||
* @roleName 角色名称 |
|||
* */ |
|||
export function putOrgroles(data) { |
|||
return request({ |
|||
url: `/portal/v1/sysrole/update/${data.sid}`, |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
|
|||
/** |
|||
* <根据SID 删除角色> |
|||
* @sid 角色SID |
|||
* */ |
|||
export function delOrgroles(data) { |
|||
return request({ |
|||
url: `/portal/v1/sysrole/delBySids/${data.sid}`, |
|||
method: 'get', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
// 菜单授权
|
|||
export function roleMenuTree(data) { |
|||
return request({ |
|||
url: `/portal/v1/sysmenu/listAllByRoleSid`, |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
// 菜单授权保存
|
|||
export function saveorgrolemenus(data) { |
|||
return request({ |
|||
url: `/portal/v1/sysmenurole/updateRoleAndMenu`, |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
// 资源授权
|
|||
export function sourceMenuTree(data) { |
|||
return request({ |
|||
url: `/portal/v1/syssource/listAllByRoleSid`, |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
// 资源授权保存
|
|||
export function saveSource(data) { |
|||
return request({ |
|||
url: `/portal/v1/syssourcerole/updateRoleAndSource`, |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
// 功能授权
|
|||
export function funMenuTree(data) { |
|||
return request({ |
|||
url: `/portal/v1/sysfunction/listAllByRoleSid`, |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
// 功能授权保存
|
|||
export function savefunMenu(data) { |
|||
return request({ |
|||
url: `/portal/v1/sysrolefunction/updateRoleAndFunction`, |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
@ -0,0 +1,31 @@ |
|||
import request from '@/utils/request' |
|||
import qs from 'qs' |
|||
|
|||
/** |
|||
* < 业务角色授权时菜单列表(拥有的菜单选中)> |
|||
* @orgTypeKeys 单位性质(类别 |
|||
* @roleSid 业务角色sid |
|||
* @userType 用户类型只能为1或2 |
|||
* */ |
|||
export function roleMenuTree(data){ |
|||
return request({ |
|||
url: '/system/v1/orgrolemenus/menutree', |
|||
method: 'post', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json'} |
|||
}) |
|||
} |
|||
|
|||
/** |
|||
* < 保存角色授权的菜单项 > |
|||
* @roleMenus[] 角色权限列表 {menuSid 菜单sid} {orgSid 单位sid} {roleSid 角色sid} |
|||
* @roleSid 业务角色sid |
|||
* */ |
|||
export function saveorgrolemenus(data){ |
|||
return request({ |
|||
url: '/system/v1/orgrolemenus', |
|||
method: 'post', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json'} |
|||
}) |
|||
} |
@ -0,0 +1,21 @@ |
|||
import request from '@/utils/request' |
|||
import qs from 'qs' |
|||
|
|||
//角色授权时菜单列表(拥有的菜单选中)
|
|||
export function getrolemenus(data) { |
|||
return request({ |
|||
url: `/system/v1/rolemenus/${data.roleSid}`, |
|||
method: 'GET', |
|||
params: data |
|||
}) |
|||
} |
|||
|
|||
//保存 角色授权时菜单列表
|
|||
export function saverolemenus(data) { |
|||
return request({ |
|||
url: `/system/v1/rolemenus`, |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json'} |
|||
}) |
|||
} |
@ -0,0 +1,111 @@ |
|||
import request from '@/utils/request' |
|||
import qs from 'qs' |
|||
//let tokens = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTm8iOiI2IiwiaXNzIjoiV0JLIiwiZXhwIjoxNjMwMDI3MDA3fQ.9bEgBzFW2g1CUT7s5VXxhNCa10cyU_WTCFeqpQje0iY'
|
|||
let tokens = window.sessionStorage.getItem('token'); |
|||
//获取菜单 分页列表
|
|||
export function pageList(data) { |
|||
return request({ |
|||
url: '/portal/v1/syssource/listPage', |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
//保存 资源信息
|
|||
export function saveSourcesInfo(data) { |
|||
return request({ |
|||
url: '/portal/v1/syssource/save', |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
// 修改 保存 资源信息
|
|||
export function putSourcesInfo(data) { |
|||
return request({ |
|||
url: '/portal/v1/syssource/update/' + data.sid, |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
//根据sid 删除单个 资源信息
|
|||
export function delSources(data) { |
|||
return request({ |
|||
url: '/portal/v1/syssource/delBySids/' + data.sid, |
|||
method: 'get', |
|||
data: qs.stringify(data), |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
// 获取获取资源类别
|
|||
export function getZzylb(data) { |
|||
return request({ |
|||
url: '/portal/v1/syssource/listAll', |
|||
method: 'post', |
|||
headers: {'Content-Type': 'application/json'} |
|||
}) |
|||
} |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
// 获取资源 不分页列表
|
|||
export function sourcesList(data) { |
|||
return request({ |
|||
url: '/system/v1/sources/list', |
|||
method: 'post', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json'} |
|||
}) |
|||
} |
|||
|
|||
// 获取资源列表 不分页下拉
|
|||
export function getsourceList(data) { |
|||
return request({ |
|||
url: '/system/v1/sources/sourceList', |
|||
method: 'post' |
|||
}) |
|||
} |
|||
|
|||
|
|||
////获取资源 分页列表
|
|||
//export function sourcesPageList(data) {
|
|||
//return request({
|
|||
// url: '/system/v1/sources/pagelist',
|
|||
// method: 'POST',
|
|||
// data: data,
|
|||
// headers: {'Content-Type': 'application/json'}
|
|||
//})
|
|||
//}
|
|||
|
|||
|
|||
|
|||
//根据sid 获取单个 资源信息
|
|||
export function getSourcesInfo(data) { |
|||
return request({ |
|||
url: '/system/v1/sources/' + data.sid, |
|||
method: 'GET', |
|||
data: qs.stringify(data) |
|||
}) |
|||
} |
|||
|
@ -0,0 +1,84 @@ |
|||
import request from '@/utils/request' |
|||
import qs from 'qs' |
|||
|
|||
export function verifyList(data){ // 用户列表
|
|||
return request({ |
|||
url: '/system/user/verifyList', |
|||
method: 'post', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json'} |
|||
}) |
|||
} |
|||
// admin用户列表
|
|||
export function userListByAdmin(data){ |
|||
return request({ |
|||
url: '/system/user/userListByAdmin', |
|||
method: 'post', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json'} |
|||
}) |
|||
} |
|||
|
|||
// 设置角色
|
|||
export function psotUserRole(data){ |
|||
return request({ |
|||
url: '/system/v1/userrole', |
|||
method: 'post', |
|||
data: qs.stringify(data) |
|||
}) |
|||
} |
|||
|
|||
// 用户初始化密码
|
|||
export function initPwd(data){ |
|||
return request({ |
|||
url: 'system/user/initPwd/'+data.sid, |
|||
method: 'POST', |
|||
data: qs.stringify(data) |
|||
}) |
|||
} |
|||
|
|||
// 用户删除接口
|
|||
export function delUser(data){ |
|||
return request({ |
|||
url: '/system/user/delete/'+data.sid, |
|||
method: 'DELETE', |
|||
params: data |
|||
}) |
|||
} |
|||
|
|||
// 初始化设置角色
|
|||
export function initUserRole(data){ |
|||
return request({ |
|||
url: '/system/v1/userroles/initUserRole/'+ data.userSid, |
|||
method: 'get', |
|||
params: data |
|||
}) |
|||
} |
|||
|
|||
// 保存角色
|
|||
export function saveUserRole(data){ |
|||
return request({ |
|||
url: '/system/v1/userroles', |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json'} |
|||
}) |
|||
} |
|||
|
|||
// 用户信息
|
|||
export function getUserINfo(data){ |
|||
return request({ |
|||
url: '/system/user/userRegisterDetails', |
|||
method: 'get', |
|||
params: data |
|||
}) |
|||
} |
|||
|
|||
// 单位信息
|
|||
export function getOrgINfo(data){ |
|||
return request({ |
|||
url: '/system/organization/organizationRegisterDetails/'+ data.organizationSid, |
|||
method: 'get', |
|||
params: data |
|||
}) |
|||
} |
@ -0,0 +1,43 @@ |
|||
import request from '@/utils/request' |
|||
import qs from 'qs' |
|||
|
|||
|
|||
//获取菜单 分页列表
|
|||
export function login1(data) { |
|||
return request({ |
|||
url: '/portal/v1/sysuser/login', |
|||
method: 'POST', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
// 'token':tokens
|
|||
} |
|||
}) |
|||
} |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
class user { |
|||
login(data) { // 登录
|
|||
return request({ |
|||
url: '/portal/v1/sysuser/login', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
logout() { // 退出
|
|||
return request({ |
|||
url: '/vue-admin-template/user/logout', |
|||
method: 'post' |
|||
}) |
|||
} |
|||
updatePassword(data) { // 退出修改密码
|
|||
return request({ |
|||
url: '/system/user/updatePassword', |
|||
method: 'post', |
|||
data: qs.stringify(data) |
|||
}) |
|||
} |
|||
} |
|||
|
@ -0,0 +1,43 @@ |
|||
import request from '@/utils/request' |
|||
import qs from 'qs' |
|||
class user{ |
|||
verifyList(data){ // 请求审核列表
|
|||
return request({ |
|||
url: '/system/user/verifyList', |
|||
method: 'post', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json'} |
|||
}) |
|||
} |
|||
userRegisterDetails(data){ // 获取审核内容
|
|||
console.log(data) |
|||
return request({ |
|||
url: '/system/user/userRegisterDetails', |
|||
method: 'get', |
|||
params: data |
|||
}) |
|||
} |
|||
verify(data){ // 审核通过不通过
|
|||
return request({ |
|||
url: '/system/user/verify', |
|||
method: 'post', |
|||
data: qs.stringify(data) |
|||
}) |
|||
} |
|||
userDelete(data){ // 删除
|
|||
return request({ |
|||
url: '/system/user/delete/{sid}', |
|||
method: 'delete', |
|||
data: qs.stringify(data) |
|||
}) |
|||
} |
|||
userNameDelete(data){ // 删除个人注册审核
|
|||
return request({ |
|||
url: '/system/staffApply/deleteByUserName', |
|||
method: 'delete', |
|||
data: qs.stringify(data) |
|||
}) |
|||
} |
|||
|
|||
} |
|||
export default new user() |
@ -0,0 +1,32 @@ |
|||
import request from '@/utils/request' |
|||
import qs from 'qs' |
|||
|
|||
// 委托人分页列表
|
|||
export function clientList(data){ |
|||
return request({ |
|||
url: '/jlcyry/v1/clientalterrecords/pagerList', |
|||
method: 'post', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json'} |
|||
}) |
|||
} |
|||
|
|||
// 变更选择委托人列表
|
|||
export function setclientList(data){ |
|||
return request({ |
|||
url: '/jlcyry/v1/clientalterrecords/staffClientList', |
|||
method: 'post', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json'} |
|||
}) |
|||
} |
|||
|
|||
// 变更为被委托人
|
|||
export function doClientAlter(data){ |
|||
return request({ |
|||
url: '/jlcyry/v1/clientalterrecords/doClientAlter', |
|||
method: 'post', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json'} |
|||
}) |
|||
} |
@ -0,0 +1,69 @@ |
|||
import request from '@/utils/request' |
|||
import qs from 'qs' |
|||
let tokens = window.sessionStorage.getItem('token'); |
|||
// 单位用户列表
|
|||
export function orgUserList(data){ |
|||
return request({ |
|||
url: '/system/user/userListByOrg', |
|||
method: 'post', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json'} |
|||
}) |
|||
} |
|||
|
|||
|
|||
// 设置角色
|
|||
export function psotUserRole(data){ |
|||
return request({ |
|||
url: '/system/v1/userrole', |
|||
method: 'post', |
|||
data: qs.stringify(data) |
|||
}) |
|||
} |
|||
|
|||
/** |
|||
* 获取角色列表 |
|||
* orgSid 用户SID |
|||
* roleName 角色名称 |
|||
* */ |
|||
export function orgrolesList(data){ |
|||
return request({ |
|||
url: '/system/v1/orgroles/list', |
|||
method: 'post', |
|||
headers: {'Content-Type': 'application/json'}, |
|||
data |
|||
}) |
|||
} |
|||
/** |
|||
* 保存 设置角色 /system/v1/orguserroles |
|||
* */ |
|||
export function saveOrgRole(data){ |
|||
return request({ |
|||
url: '/system/v1/orguserroles', |
|||
method: 'post', |
|||
headers: {'Content-Type': 'application/json'}, |
|||
data |
|||
}) |
|||
} |
|||
|
|||
/** |
|||
* 部门机构列表 /system/v1/departments/departmentOrgList/{organizationSid} |
|||
* */ |
|||
export function getOrgList(organizationSid){ |
|||
return request({ |
|||
url: '/system/v1/departments/departmentOrgList/' + organizationSid, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
/** |
|||
* 保存 设置部门 /system/v1/orguserroles |
|||
* */ |
|||
export function saveDepartment(data){ |
|||
return request({ |
|||
url: '/system/v1/departmentStaffs/setUpDepartment', |
|||
method: 'post', |
|||
headers: {'Content-Type': 'application/json'}, |
|||
data |
|||
}) |
|||
} |
|||
|
@ -0,0 +1,138 @@ |
|||
import request from '@/utils/request' |
|||
import qs from 'qs' |
|||
// 用户列表
|
|||
//let tokens = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTm8iOiI2IiwiaXNzIjoiV0JLIiwiZXhwIjoxNjI5OTQxNjI1fQ.aOFOz0h7c8YQs-ti2GLpqeWu4AE9mifx_043hLJQf8g'
|
|||
let tokens = window.sessionStorage.getItem('token'); |
|||
export function userList(data){ |
|||
return request({ |
|||
url: '/portal/v1/sysuser/listPage', |
|||
method: 'post', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
// 新增
|
|||
export function userAdd(data){ |
|||
return request({ |
|||
url: '/portal/v1/sysuser/save', |
|||
method: 'post', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
// 更新
|
|||
export function userUpdata(data){ |
|||
return request({ |
|||
url: '/portal/v1/sysuser/update/' +data.sid, |
|||
method: 'post', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
|
|||
// 删除
|
|||
export function delUser(data){ |
|||
return request({ |
|||
url: '/portal/v1/sysuser/delBySid/' +data.sid, |
|||
method: 'get', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
// 初始化密码
|
|||
export function initPwd(data){ |
|||
return request({ |
|||
url: '/portal/v1/sysuser/initPwd/' +data.sid, |
|||
method: 'post', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
// 根据sid查询一条信息
|
|||
export function userSingle(data){ |
|||
return request({ |
|||
url: '/portal/v1/sysuser/fetchBySid/' +data.sid, |
|||
method: 'get', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
// 单条用户的角色列表
|
|||
export function setRole(data){ |
|||
return request({ |
|||
url: '/portal/v1/sysrole/listAllByUserSid/' +data.sid, |
|||
method: 'post', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
// 角色列表
|
|||
export function saveOrgRole(data){ |
|||
return request({ |
|||
url: '/portal/v1/sysuserrole/update', |
|||
method: 'post', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
// 查询角色列表
|
|||
export function roleList(data){ |
|||
return request({ |
|||
url: '/portal/v1/sysrole/listAll', |
|||
method: 'post', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
// 查询部门列表
|
|||
export function orgList(data){ |
|||
return request({ |
|||
url: '/portal/v1/sysorganization/list', |
|||
method: 'get', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
// 查询岗位列表
|
|||
export function postList(data){ |
|||
return request({ |
|||
url: '/portal/v1/syspost/fetchByOrgSid/'+data.sid, |
|||
method: 'get', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
|||
|
|||
// 获取验证码
|
|||
export function getCode(data){ |
|||
return request({ |
|||
url: '/portal/v1/sysuser/sendMessageCode/'+data.phone, |
|||
method: 'get', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json', |
|||
'token':tokens |
|||
} |
|||
}) |
|||
} |
@ -0,0 +1,44 @@ |
|||
import request from '@/utils/request' |
|||
import qs from 'qs' |
|||
//登录
|
|||
export function login(data) { |
|||
return request({ |
|||
url: '/portal/v1/sysuser/login', |
|||
method: 'post', |
|||
data: data, |
|||
headers: {'Content-Type': 'application/json'} |
|||
}) |
|||
} |
|||
// 用户注册
|
|||
export function registUser(data) { |
|||
return request({ |
|||
url: '/system/user/save', |
|||
method: 'post', |
|||
data, |
|||
headers:{'Content-Type':'application/x-www-form-urlencoded;'} |
|||
}) |
|||
} |
|||
// 获取手机验证码
|
|||
export function getVerificationCode(data) { |
|||
return request({ |
|||
url: '/system/user/getVerificationCode', |
|||
method: 'get', |
|||
params: data |
|||
}) |
|||
} |
|||
|
|||
// 获取登录验证码
|
|||
export function imgCode() { |
|||
return request({ |
|||
url: '/system/api/defaultBlendCode?temm=' + new Date().getTime(), |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 获取用信息
|
|||
export function getInfo(token) { |
|||
return request({ |
|||
url: '/system/user/loginDetails', |
|||
method: 'post', |
|||
}) |
|||
} |
After Width: | Height: | Size: 160 KiB |
After Width: | Height: | Size: 96 KiB |
After Width: | Height: | Size: 4.7 KiB |
@ -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.3 KiB |
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: 319 B |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 418 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 356 B |
After Width: | Height: | Size: 724 B |
After Width: | Height: | Size: 818 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 347 B |
After Width: | Height: | Size: 497 B |
After Width: | Height: | Size: 459 B |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 944 B |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 421 B |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 320 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 744 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 285 B |
After Width: | Height: | Size: 1017 B |
After Width: | Height: | Size: 444 B |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 669 B |
After Width: | Height: | Size: 335 B |
After Width: | Height: | Size: 883 B |
After Width: | Height: | Size: 821 B |