@ -1,22 +1,22 @@ |
|||||
# 告诉EditorConfig插件,这是根文件,不用继续往上查找 |
# 告诉EditorConfig插件,这是根文件,不用继续往上查找 |
||||
root = true |
root = true |
||||
|
|
||||
# 匹配全部文件 |
# 匹配全部文件 |
||||
[*] |
[*] |
||||
# 设置字符集 |
# 设置字符集 |
||||
charset = utf-8 |
charset = utf-8 |
||||
# 缩进风格,可选space、tab |
# 缩进风格,可选space、tab |
||||
indent_style = space |
indent_style = space |
||||
# 缩进的空格数 |
# 缩进的空格数 |
||||
indent_size = 2 |
indent_size = 2 |
||||
# 结尾换行符,可选lf、cr、crlf |
# 结尾换行符,可选lf、cr、crlf |
||||
end_of_line = lf |
end_of_line = lf |
||||
# 在文件结尾插入新行 |
# 在文件结尾插入新行 |
||||
insert_final_newline = true |
insert_final_newline = true |
||||
# 删除一行中的前后空格 |
# 删除一行中的前后空格 |
||||
trim_trailing_whitespace = true |
trim_trailing_whitespace = true |
||||
|
|
||||
# 匹配md结尾的文件 |
# 匹配md结尾的文件 |
||||
[*.md] |
[*.md] |
||||
insert_final_newline = false |
insert_final_newline = false |
||||
trim_trailing_whitespace = false |
trim_trailing_whitespace = false |
@ -1,11 +1,11 @@ |
|||||
# 页面标题 |
# 页面标题 |
||||
VUE_APP_TITLE = 若依管理系统 |
VUE_APP_TITLE = 若依管理系统 |
||||
|
|
||||
# 开发环境配置 |
# 开发环境配置 |
||||
ENV = 'development' |
ENV = 'development' |
||||
|
|
||||
# 若依管理系统/开发环境 |
# 若依管理系统/开发环境 |
||||
VUE_APP_BASE_API = '/dev-api' |
VUE_APP_BASE_API = '/dev-api' |
||||
|
|
||||
# 路由懒加载 |
# 路由懒加载 |
||||
VUE_CLI_BABEL_TRANSPILE_MODULES = true |
VUE_CLI_BABEL_TRANSPILE_MODULES = true |
@ -1,8 +1,8 @@ |
|||||
# 页面标题 |
# 页面标题 |
||||
VUE_APP_TITLE = 若依管理系统 |
VUE_APP_TITLE = 若依管理系统 |
||||
|
|
||||
# 生产环境配置 |
# 生产环境配置 |
||||
ENV = 'production' |
ENV = 'production' |
||||
|
|
||||
# 若依管理系统/生产环境 |
# 若依管理系统/生产环境 |
||||
VUE_APP_BASE_API = '/prod-api' |
VUE_APP_BASE_API = '/prod-api' |
@ -1,12 +1,12 @@ |
|||||
# 页面标题 |
# 页面标题 |
||||
VUE_APP_TITLE = 若依管理系统 |
VUE_APP_TITLE = 若依管理系统 |
||||
|
|
||||
BABEL_ENV = production |
BABEL_ENV = production |
||||
|
|
||||
NODE_ENV = production |
NODE_ENV = production |
||||
|
|
||||
# 测试环境配置 |
# 测试环境配置 |
||||
ENV = 'staging' |
ENV = 'staging' |
||||
|
|
||||
# 若依管理系统/测试环境 |
# 若依管理系统/测试环境 |
||||
VUE_APP_BASE_API = '/stage-api' |
VUE_APP_BASE_API = '/stage-api' |
@ -1,10 +1,10 @@ |
|||||
# 忽略build目录下类型为js的文件的语法检查 |
# 忽略build目录下类型为js的文件的语法检查 |
||||
build/*.js |
build/*.js |
||||
# 忽略src/assets目录下文件的语法检查 |
# 忽略src/assets目录下文件的语法检查 |
||||
src/assets |
src/assets |
||||
# 忽略public目录下文件的语法检查 |
# 忽略public目录下文件的语法检查 |
||||
public |
public |
||||
# 忽略当前目录下为js的文件的语法检查 |
# 忽略当前目录下为js的文件的语法检查 |
||||
*.js |
*.js |
||||
# 忽略当前目录下为vue的文件的语法检查 |
# 忽略当前目录下为vue的文件的语法检查 |
||||
*.vue |
*.vue |
@ -1,199 +1,199 @@ |
|||||
// ESlint 检查配置
|
// ESlint 检查配置
|
||||
module.exports = { |
module.exports = { |
||||
root: true, |
root: true, |
||||
parserOptions: { |
parserOptions: { |
||||
parser: 'babel-eslint', |
parser: 'babel-eslint', |
||||
sourceType: 'module' |
sourceType: 'module' |
||||
}, |
}, |
||||
env: { |
env: { |
||||
browser: true, |
browser: true, |
||||
node: true, |
node: true, |
||||
es6: true, |
es6: true, |
||||
}, |
}, |
||||
extends: ['plugin:vue/recommended', 'eslint:recommended'], |
extends: ['plugin:vue/recommended', 'eslint:recommended'], |
||||
|
|
||||
// add your custom rules here
|
// add your custom rules here
|
||||
//it is base on https://github.com/vuejs/eslint-config-vue
|
//it is base on https://github.com/vuejs/eslint-config-vue
|
||||
rules: { |
rules: { |
||||
"vue/max-attributes-per-line": [2, { |
"vue/max-attributes-per-line": [2, { |
||||
"singleline": 10, |
"singleline": 10, |
||||
"multiline": { |
"multiline": { |
||||
"max": 1, |
"max": 1, |
||||
"allowFirstLine": false |
"allowFirstLine": false |
||||
} |
} |
||||
}], |
}], |
||||
"vue/singleline-html-element-content-newline": "off", |
"vue/singleline-html-element-content-newline": "off", |
||||
"vue/multiline-html-element-content-newline":"off", |
"vue/multiline-html-element-content-newline":"off", |
||||
"vue/name-property-casing": ["error", "PascalCase"], |
"vue/name-property-casing": ["error", "PascalCase"], |
||||
"vue/no-v-html": "off", |
"vue/no-v-html": "off", |
||||
'accessor-pairs': 2, |
'accessor-pairs': 2, |
||||
'arrow-spacing': [2, { |
'arrow-spacing': [2, { |
||||
'before': true, |
'before': true, |
||||
'after': true |
'after': true |
||||
}], |
}], |
||||
'block-spacing': [2, 'always'], |
'block-spacing': [2, 'always'], |
||||
'brace-style': [2, '1tbs', { |
'brace-style': [2, '1tbs', { |
||||
'allowSingleLine': true |
'allowSingleLine': true |
||||
}], |
}], |
||||
'camelcase': [0, { |
'camelcase': [0, { |
||||
'properties': 'always' |
'properties': 'always' |
||||
}], |
}], |
||||
'comma-dangle': [2, 'never'], |
'comma-dangle': [2, 'never'], |
||||
'comma-spacing': [2, { |
'comma-spacing': [2, { |
||||
'before': false, |
'before': false, |
||||
'after': true |
'after': true |
||||
}], |
}], |
||||
'comma-style': [2, 'last'], |
'comma-style': [2, 'last'], |
||||
'constructor-super': 2, |
'constructor-super': 2, |
||||
'curly': [2, 'multi-line'], |
'curly': [2, 'multi-line'], |
||||
'dot-location': [2, 'property'], |
'dot-location': [2, 'property'], |
||||
'eol-last': 2, |
'eol-last': 2, |
||||
'eqeqeq': ["error", "always", {"null": "ignore"}], |
'eqeqeq': ["error", "always", {"null": "ignore"}], |
||||
'generator-star-spacing': [2, { |
'generator-star-spacing': [2, { |
||||
'before': true, |
'before': true, |
||||
'after': true |
'after': true |
||||
}], |
}], |
||||
'handle-callback-err': [2, '^(err|error)$'], |
'handle-callback-err': [2, '^(err|error)$'], |
||||
'indent': [2, 2, { |
'indent': [2, 2, { |
||||
'SwitchCase': 1 |
'SwitchCase': 1 |
||||
}], |
}], |
||||
'jsx-quotes': [2, 'prefer-single'], |
'jsx-quotes': [2, 'prefer-single'], |
||||
'key-spacing': [2, { |
'key-spacing': [2, { |
||||
'beforeColon': false, |
'beforeColon': false, |
||||
'afterColon': true |
'afterColon': true |
||||
}], |
}], |
||||
'keyword-spacing': [2, { |
'keyword-spacing': [2, { |
||||
'before': true, |
'before': true, |
||||
'after': true |
'after': true |
||||
}], |
}], |
||||
'new-cap': [2, { |
'new-cap': [2, { |
||||
'newIsCap': true, |
'newIsCap': true, |
||||
'capIsNew': false |
'capIsNew': false |
||||
}], |
}], |
||||
'new-parens': 2, |
'new-parens': 2, |
||||
'no-array-constructor': 2, |
'no-array-constructor': 2, |
||||
'no-caller': 2, |
'no-caller': 2, |
||||
'no-console': 'off', |
'no-console': 'off', |
||||
'no-class-assign': 2, |
'no-class-assign': 2, |
||||
'no-cond-assign': 2, |
'no-cond-assign': 2, |
||||
'no-const-assign': 2, |
'no-const-assign': 2, |
||||
'no-control-regex': 0, |
'no-control-regex': 0, |
||||
'no-delete-var': 2, |
'no-delete-var': 2, |
||||
'no-dupe-args': 2, |
'no-dupe-args': 2, |
||||
'no-dupe-class-members': 2, |
'no-dupe-class-members': 2, |
||||
'no-dupe-keys': 2, |
'no-dupe-keys': 2, |
||||
'no-duplicate-case': 2, |
'no-duplicate-case': 2, |
||||
'no-empty-character-class': 2, |
'no-empty-character-class': 2, |
||||
'no-empty-pattern': 2, |
'no-empty-pattern': 2, |
||||
'no-eval': 2, |
'no-eval': 2, |
||||
'no-ex-assign': 2, |
'no-ex-assign': 2, |
||||
'no-extend-native': 2, |
'no-extend-native': 2, |
||||
'no-extra-bind': 2, |
'no-extra-bind': 2, |
||||
'no-extra-boolean-cast': 2, |
'no-extra-boolean-cast': 2, |
||||
'no-extra-parens': [2, 'functions'], |
'no-extra-parens': [2, 'functions'], |
||||
'no-fallthrough': 2, |
'no-fallthrough': 2, |
||||
'no-floating-decimal': 2, |
'no-floating-decimal': 2, |
||||
'no-func-assign': 2, |
'no-func-assign': 2, |
||||
'no-implied-eval': 2, |
'no-implied-eval': 2, |
||||
'no-inner-declarations': [2, 'functions'], |
'no-inner-declarations': [2, 'functions'], |
||||
'no-invalid-regexp': 2, |
'no-invalid-regexp': 2, |
||||
'no-irregular-whitespace': 2, |
'no-irregular-whitespace': 2, |
||||
'no-iterator': 2, |
'no-iterator': 2, |
||||
'no-label-var': 2, |
'no-label-var': 2, |
||||
'no-labels': [2, { |
'no-labels': [2, { |
||||
'allowLoop': false, |
'allowLoop': false, |
||||
'allowSwitch': false |
'allowSwitch': false |
||||
}], |
}], |
||||
'no-lone-blocks': 2, |
'no-lone-blocks': 2, |
||||
'no-mixed-spaces-and-tabs': 2, |
'no-mixed-spaces-and-tabs': 2, |
||||
'no-multi-spaces': 2, |
'no-multi-spaces': 2, |
||||
'no-multi-str': 2, |
'no-multi-str': 2, |
||||
'no-multiple-empty-lines': [2, { |
'no-multiple-empty-lines': [2, { |
||||
'max': 1 |
'max': 1 |
||||
}], |
}], |
||||
'no-native-reassign': 2, |
'no-native-reassign': 2, |
||||
'no-negated-in-lhs': 2, |
'no-negated-in-lhs': 2, |
||||
'no-new-object': 2, |
'no-new-object': 2, |
||||
'no-new-require': 2, |
'no-new-require': 2, |
||||
'no-new-symbol': 2, |
'no-new-symbol': 2, |
||||
'no-new-wrappers': 2, |
'no-new-wrappers': 2, |
||||
'no-obj-calls': 2, |
'no-obj-calls': 2, |
||||
'no-octal': 2, |
'no-octal': 2, |
||||
'no-octal-escape': 2, |
'no-octal-escape': 2, |
||||
'no-path-concat': 2, |
'no-path-concat': 2, |
||||
'no-proto': 2, |
'no-proto': 2, |
||||
'no-redeclare': 2, |
'no-redeclare': 2, |
||||
'no-regex-spaces': 2, |
'no-regex-spaces': 2, |
||||
'no-return-assign': [2, 'except-parens'], |
'no-return-assign': [2, 'except-parens'], |
||||
'no-self-assign': 2, |
'no-self-assign': 2, |
||||
'no-self-compare': 2, |
'no-self-compare': 2, |
||||
'no-sequences': 2, |
'no-sequences': 2, |
||||
'no-shadow-restricted-names': 2, |
'no-shadow-restricted-names': 2, |
||||
'no-spaced-func': 2, |
'no-spaced-func': 2, |
||||
'no-sparse-arrays': 2, |
'no-sparse-arrays': 2, |
||||
'no-this-before-super': 2, |
'no-this-before-super': 2, |
||||
'no-throw-literal': 2, |
'no-throw-literal': 2, |
||||
'no-trailing-spaces': 2, |
'no-trailing-spaces': 2, |
||||
'no-undef': 2, |
'no-undef': 2, |
||||
'no-undef-init': 2, |
'no-undef-init': 2, |
||||
'no-unexpected-multiline': 2, |
'no-unexpected-multiline': 2, |
||||
'no-unmodified-loop-condition': 2, |
'no-unmodified-loop-condition': 2, |
||||
'no-unneeded-ternary': [2, { |
'no-unneeded-ternary': [2, { |
||||
'defaultAssignment': false |
'defaultAssignment': false |
||||
}], |
}], |
||||
'no-unreachable': 2, |
'no-unreachable': 2, |
||||
'no-unsafe-finally': 2, |
'no-unsafe-finally': 2, |
||||
'no-unused-vars': [2, { |
'no-unused-vars': [2, { |
||||
'vars': 'all', |
'vars': 'all', |
||||
'args': 'none' |
'args': 'none' |
||||
}], |
}], |
||||
'no-useless-call': 2, |
'no-useless-call': 2, |
||||
'no-useless-computed-key': 2, |
'no-useless-computed-key': 2, |
||||
'no-useless-constructor': 2, |
'no-useless-constructor': 2, |
||||
'no-useless-escape': 0, |
'no-useless-escape': 0, |
||||
'no-whitespace-before-property': 2, |
'no-whitespace-before-property': 2, |
||||
'no-with': 2, |
'no-with': 2, |
||||
'one-var': [2, { |
'one-var': [2, { |
||||
'initialized': 'never' |
'initialized': 'never' |
||||
}], |
}], |
||||
'operator-linebreak': [2, 'after', { |
'operator-linebreak': [2, 'after', { |
||||
'overrides': { |
'overrides': { |
||||
'?': 'before', |
'?': 'before', |
||||
':': 'before' |
':': 'before' |
||||
} |
} |
||||
}], |
}], |
||||
'padded-blocks': [2, 'never'], |
'padded-blocks': [2, 'never'], |
||||
'quotes': [2, 'single', { |
'quotes': [2, 'single', { |
||||
'avoidEscape': true, |
'avoidEscape': true, |
||||
'allowTemplateLiterals': true |
'allowTemplateLiterals': true |
||||
}], |
}], |
||||
'semi': [2, 'never'], |
'semi': [2, 'never'], |
||||
'semi-spacing': [2, { |
'semi-spacing': [2, { |
||||
'before': false, |
'before': false, |
||||
'after': true |
'after': true |
||||
}], |
}], |
||||
'space-before-blocks': [2, 'always'], |
'space-before-blocks': [2, 'always'], |
||||
'space-before-function-paren': [2, 'never'], |
'space-before-function-paren': [2, 'never'], |
||||
'space-in-parens': [2, 'never'], |
'space-in-parens': [2, 'never'], |
||||
'space-infix-ops': 2, |
'space-infix-ops': 2, |
||||
'space-unary-ops': [2, { |
'space-unary-ops': [2, { |
||||
'words': true, |
'words': true, |
||||
'nonwords': false |
'nonwords': false |
||||
}], |
}], |
||||
'spaced-comment': [2, 'always', { |
'spaced-comment': [2, 'always', { |
||||
'markers': ['global', 'globals', 'eslint', 'eslint-disable', '*package', '!', ','] |
'markers': ['global', 'globals', 'eslint', 'eslint-disable', '*package', '!', ','] |
||||
}], |
}], |
||||
'template-curly-spacing': [2, 'never'], |
'template-curly-spacing': [2, 'never'], |
||||
'use-isnan': 2, |
'use-isnan': 2, |
||||
'valid-typeof': 2, |
'valid-typeof': 2, |
||||
'wrap-iife': [2, 'any'], |
'wrap-iife': [2, 'any'], |
||||
'yield-star-spacing': [2, 'both'], |
'yield-star-spacing': [2, 'both'], |
||||
'yoda': [2, 'never'], |
'yoda': [2, 'never'], |
||||
'prefer-const': 2, |
'prefer-const': 2, |
||||
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0, |
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0, |
||||
'object-curly-spacing': [2, 'always', { |
'object-curly-spacing': [2, 'always', { |
||||
objectsInObjects: false |
objectsInObjects: false |
||||
}], |
}], |
||||
'array-bracket-spacing': [2, 'never'] |
'array-bracket-spacing': [2, 'never'] |
||||
} |
} |
||||
} |
} |
@ -1,23 +1,23 @@ |
|||||
.DS_Store |
.DS_Store |
||||
node_modules/ |
node_modules/ |
||||
dist/ |
dist/ |
||||
npm-debug.log* |
npm-debug.log* |
||||
yarn-debug.log* |
yarn-debug.log* |
||||
yarn-error.log* |
yarn-error.log* |
||||
**/*.log |
**/*.log |
||||
|
|
||||
tests/**/coverage/ |
tests/**/coverage/ |
||||
tests/e2e/reports |
tests/e2e/reports |
||||
selenium-debug.log |
selenium-debug.log |
||||
|
|
||||
# Editor directories and files |
# Editor directories and files |
||||
.idea |
.idea |
||||
.vscode |
.vscode |
||||
*.suo |
*.suo |
||||
*.ntvs* |
*.ntvs* |
||||
*.njsproj |
*.njsproj |
||||
*.sln |
*.sln |
||||
*.local |
*.local |
||||
|
|
||||
package-lock.json |
package-lock.json |
||||
yarn.lock |
yarn.lock |
@ -1,13 +1,13 @@ |
|||||
module.exports = { |
module.exports = { |
||||
presets: [ |
presets: [ |
||||
// https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
|
// https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
|
||||
'@vue/cli-plugin-babel/preset' |
'@vue/cli-plugin-babel/preset' |
||||
], |
], |
||||
'env': { |
'env': { |
||||
'development': { |
'development': { |
||||
// babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
|
// 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.
|
// This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
|
||||
'plugins': ['dynamic-import-node'] |
'plugins': ['dynamic-import-node'] |
||||
} |
} |
||||
} |
} |
||||
} |
} |
@ -1,12 +1,12 @@ |
|||||
@echo off |
@echo off |
||||
echo. |
echo. |
||||
echo [信息] 安装Web工程,生成node_modules文件。 |
echo [信息] 安装Web工程,生成node_modules文件。 |
||||
echo. |
echo. |
||||
|
|
||||
%~d0 |
%~d0 |
||||
cd %~dp0 |
cd %~dp0 |
||||
|
|
||||
cd .. |
cd .. |
||||
npm install --registry=https://registry.npmmirror.com |
npm install --registry=https://registry.npmmirror.com |
||||
|
|
||||
pause |
pause |
@ -1,12 +1,12 @@ |
|||||
@echo off |
@echo off |
||||
echo. |
echo. |
||||
echo [信息] 使用 Vue CLI 命令运行 Web 工程。 |
echo [信息] 使用 Vue CLI 命令运行 Web 工程。 |
||||
echo. |
echo. |
||||
|
|
||||
%~d0 |
%~d0 |
||||
cd %~dp0 |
cd %~dp0 |
||||
|
|
||||
cd .. |
cd .. |
||||
npm run dev |
npm run dev |
||||
|
|
||||
pause |
pause |
@ -1,35 +1,35 @@ |
|||||
const { run } = require('runjs') |
const { run } = require('runjs') |
||||
const chalk = require('chalk') |
const chalk = require('chalk') |
||||
const config = require('../vue.config.js') |
const config = require('../vue.config.js') |
||||
const rawArgv = process.argv.slice(2) |
const rawArgv = process.argv.slice(2) |
||||
const args = rawArgv.join(' ') |
const args = rawArgv.join(' ') |
||||
|
|
||||
if (process.env.npm_config_preview || rawArgv.includes('--preview')) { |
if (process.env.npm_config_preview || rawArgv.includes('--preview')) { |
||||
const report = rawArgv.includes('--report') |
const report = rawArgv.includes('--report') |
||||
|
|
||||
run(`vue-cli-service build ${args}`) |
run(`vue-cli-service build ${args}`) |
||||
|
|
||||
const port = 9526 |
const port = 9526 |
||||
const publicPath = config.publicPath |
const publicPath = config.publicPath |
||||
|
|
||||
var connect = require('connect') |
var connect = require('connect') |
||||
var serveStatic = require('serve-static') |
var serveStatic = require('serve-static') |
||||
const app = connect() |
const app = connect() |
||||
|
|
||||
app.use( |
app.use( |
||||
publicPath, |
publicPath, |
||||
serveStatic('./dist', { |
serveStatic('./dist', { |
||||
index: ['index.html', '/'] |
index: ['index.html', '/'] |
||||
}) |
}) |
||||
) |
) |
||||
|
|
||||
app.listen(port, function () { |
app.listen(port, function () { |
||||
console.log(chalk.green(`> Preview at http://localhost:${port}${publicPath}`)) |
console.log(chalk.green(`> Preview at http://localhost:${port}${publicPath}`)) |
||||
if (report) { |
if (report) { |
||||
console.log(chalk.green(`> Report at http://localhost:${port}${publicPath}report.html`)) |
console.log(chalk.green(`> Report at http://localhost:${port}${publicPath}report.html`)) |
||||
} |
} |
||||
|
|
||||
}) |
}) |
||||
} else { |
} else { |
||||
run(`vue-cli-service build ${args}`) |
run(`vue-cli-service build ${args}`) |
||||
} |
} |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
@ -1,208 +1,208 @@ |
|||||
<!DOCTYPE html> |
<!DOCTYPE html> |
||||
<html> |
<html> |
||||
<head> |
<head> |
||||
<meta charset="utf-8"> |
<meta charset="utf-8"> |
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
||||
<meta name="renderer" content="webkit"> |
<meta name="renderer" content="webkit"> |
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> |
||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> |
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> |
||||
<title><%= webpackConfig.name %></title> |
<title><%= webpackConfig.name %></title> |
||||
<!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]--> |
<!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]--> |
||||
<style> |
<style> |
||||
html, |
html, |
||||
body, |
body, |
||||
#app { |
#app { |
||||
height: 100%; |
height: 100%; |
||||
margin: 0px; |
margin: 0px; |
||||
padding: 0px; |
padding: 0px; |
||||
} |
} |
||||
.chromeframe { |
.chromeframe { |
||||
margin: 0.2em 0; |
margin: 0.2em 0; |
||||
background: #ccc; |
background: #ccc; |
||||
color: #000; |
color: #000; |
||||
padding: 0.2em 0; |
padding: 0.2em 0; |
||||
} |
} |
||||
|
|
||||
#loader-wrapper { |
#loader-wrapper { |
||||
position: fixed; |
position: fixed; |
||||
top: 0; |
top: 0; |
||||
left: 0; |
left: 0; |
||||
width: 100%; |
width: 100%; |
||||
height: 100%; |
height: 100%; |
||||
z-index: 999999; |
z-index: 999999; |
||||
} |
} |
||||
|
|
||||
#loader { |
#loader { |
||||
display: block; |
display: block; |
||||
position: relative; |
position: relative; |
||||
left: 50%; |
left: 50%; |
||||
top: 50%; |
top: 50%; |
||||
width: 150px; |
width: 150px; |
||||
height: 150px; |
height: 150px; |
||||
margin: -75px 0 0 -75px; |
margin: -75px 0 0 -75px; |
||||
border-radius: 50%; |
border-radius: 50%; |
||||
border: 3px solid transparent; |
border: 3px solid transparent; |
||||
border-top-color: #FFF; |
border-top-color: #FFF; |
||||
-webkit-animation: spin 2s linear infinite; |
-webkit-animation: spin 2s linear infinite; |
||||
-ms-animation: spin 2s linear infinite; |
-ms-animation: spin 2s linear infinite; |
||||
-moz-animation: spin 2s linear infinite; |
-moz-animation: spin 2s linear infinite; |
||||
-o-animation: spin 2s linear infinite; |
-o-animation: spin 2s linear infinite; |
||||
animation: spin 2s linear infinite; |
animation: spin 2s linear infinite; |
||||
z-index: 1001; |
z-index: 1001; |
||||
} |
} |
||||
|
|
||||
#loader:before { |
#loader:before { |
||||
content: ""; |
content: ""; |
||||
position: absolute; |
position: absolute; |
||||
top: 5px; |
top: 5px; |
||||
left: 5px; |
left: 5px; |
||||
right: 5px; |
right: 5px; |
||||
bottom: 5px; |
bottom: 5px; |
||||
border-radius: 50%; |
border-radius: 50%; |
||||
border: 3px solid transparent; |
border: 3px solid transparent; |
||||
border-top-color: #FFF; |
border-top-color: #FFF; |
||||
-webkit-animation: spin 3s linear infinite; |
-webkit-animation: spin 3s linear infinite; |
||||
-moz-animation: spin 3s linear infinite; |
-moz-animation: spin 3s linear infinite; |
||||
-o-animation: spin 3s linear infinite; |
-o-animation: spin 3s linear infinite; |
||||
-ms-animation: spin 3s linear infinite; |
-ms-animation: spin 3s linear infinite; |
||||
animation: spin 3s linear infinite; |
animation: spin 3s linear infinite; |
||||
} |
} |
||||
|
|
||||
#loader:after { |
#loader:after { |
||||
content: ""; |
content: ""; |
||||
position: absolute; |
position: absolute; |
||||
top: 15px; |
top: 15px; |
||||
left: 15px; |
left: 15px; |
||||
right: 15px; |
right: 15px; |
||||
bottom: 15px; |
bottom: 15px; |
||||
border-radius: 50%; |
border-radius: 50%; |
||||
border: 3px solid transparent; |
border: 3px solid transparent; |
||||
border-top-color: #FFF; |
border-top-color: #FFF; |
||||
-moz-animation: spin 1.5s linear infinite; |
-moz-animation: spin 1.5s linear infinite; |
||||
-o-animation: spin 1.5s linear infinite; |
-o-animation: spin 1.5s linear infinite; |
||||
-ms-animation: spin 1.5s linear infinite; |
-ms-animation: spin 1.5s linear infinite; |
||||
-webkit-animation: spin 1.5s linear infinite; |
-webkit-animation: spin 1.5s linear infinite; |
||||
animation: spin 1.5s linear infinite; |
animation: spin 1.5s linear infinite; |
||||
} |
} |
||||
|
|
||||
|
|
||||
@-webkit-keyframes spin { |
@-webkit-keyframes spin { |
||||
0% { |
0% { |
||||
-webkit-transform: rotate(0deg); |
-webkit-transform: rotate(0deg); |
||||
-ms-transform: rotate(0deg); |
-ms-transform: rotate(0deg); |
||||
transform: rotate(0deg); |
transform: rotate(0deg); |
||||
} |
} |
||||
100% { |
100% { |
||||
-webkit-transform: rotate(360deg); |
-webkit-transform: rotate(360deg); |
||||
-ms-transform: rotate(360deg); |
-ms-transform: rotate(360deg); |
||||
transform: rotate(360deg); |
transform: rotate(360deg); |
||||
} |
} |
||||
} |
} |
||||
|
|
||||
@keyframes spin { |
@keyframes spin { |
||||
0% { |
0% { |
||||
-webkit-transform: rotate(0deg); |
-webkit-transform: rotate(0deg); |
||||
-ms-transform: rotate(0deg); |
-ms-transform: rotate(0deg); |
||||
transform: rotate(0deg); |
transform: rotate(0deg); |
||||
} |
} |
||||
100% { |
100% { |
||||
-webkit-transform: rotate(360deg); |
-webkit-transform: rotate(360deg); |
||||
-ms-transform: rotate(360deg); |
-ms-transform: rotate(360deg); |
||||
transform: rotate(360deg); |
transform: rotate(360deg); |
||||
} |
} |
||||
} |
} |
||||
|
|
||||
|
|
||||
#loader-wrapper .loader-section { |
#loader-wrapper .loader-section { |
||||
position: fixed; |
position: fixed; |
||||
top: 0; |
top: 0; |
||||
width: 51%; |
width: 51%; |
||||
height: 100%; |
height: 100%; |
||||
background: #7171C6; |
background: #7171C6; |
||||
z-index: 1000; |
z-index: 1000; |
||||
-webkit-transform: translateX(0); |
-webkit-transform: translateX(0); |
||||
-ms-transform: translateX(0); |
-ms-transform: translateX(0); |
||||
transform: translateX(0); |
transform: translateX(0); |
||||
} |
} |
||||
|
|
||||
#loader-wrapper .loader-section.section-left { |
#loader-wrapper .loader-section.section-left { |
||||
left: 0; |
left: 0; |
||||
} |
} |
||||
|
|
||||
#loader-wrapper .loader-section.section-right { |
#loader-wrapper .loader-section.section-right { |
||||
right: 0; |
right: 0; |
||||
} |
} |
||||
|
|
||||
|
|
||||
.loaded #loader-wrapper .loader-section.section-left { |
.loaded #loader-wrapper .loader-section.section-left { |
||||
-webkit-transform: translateX(-100%); |
-webkit-transform: translateX(-100%); |
||||
-ms-transform: translateX(-100%); |
-ms-transform: translateX(-100%); |
||||
transform: translateX(-100%); |
transform: translateX(-100%); |
||||
-webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000); |
-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); |
transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000); |
||||
} |
} |
||||
|
|
||||
.loaded #loader-wrapper .loader-section.section-right { |
.loaded #loader-wrapper .loader-section.section-right { |
||||
-webkit-transform: translateX(100%); |
-webkit-transform: translateX(100%); |
||||
-ms-transform: translateX(100%); |
-ms-transform: translateX(100%); |
||||
transform: translateX(100%); |
transform: translateX(100%); |
||||
-webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000); |
-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); |
transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000); |
||||
} |
} |
||||
|
|
||||
.loaded #loader { |
.loaded #loader { |
||||
opacity: 0; |
opacity: 0; |
||||
-webkit-transition: all 0.3s ease-out; |
-webkit-transition: all 0.3s ease-out; |
||||
transition: all 0.3s ease-out; |
transition: all 0.3s ease-out; |
||||
} |
} |
||||
|
|
||||
.loaded #loader-wrapper { |
.loaded #loader-wrapper { |
||||
visibility: hidden; |
visibility: hidden; |
||||
-webkit-transform: translateY(-100%); |
-webkit-transform: translateY(-100%); |
||||
-ms-transform: translateY(-100%); |
-ms-transform: translateY(-100%); |
||||
transform: translateY(-100%); |
transform: translateY(-100%); |
||||
-webkit-transition: all 0.3s 1s ease-out; |
-webkit-transition: all 0.3s 1s ease-out; |
||||
transition: all 0.3s 1s ease-out; |
transition: all 0.3s 1s ease-out; |
||||
} |
} |
||||
|
|
||||
.no-js #loader-wrapper { |
.no-js #loader-wrapper { |
||||
display: none; |
display: none; |
||||
} |
} |
||||
|
|
||||
.no-js h1 { |
.no-js h1 { |
||||
color: #222222; |
color: #222222; |
||||
} |
} |
||||
|
|
||||
#loader-wrapper .load_title { |
#loader-wrapper .load_title { |
||||
font-family: 'Open Sans'; |
font-family: 'Open Sans'; |
||||
color: #FFF; |
color: #FFF; |
||||
font-size: 19px; |
font-size: 19px; |
||||
width: 100%; |
width: 100%; |
||||
text-align: center; |
text-align: center; |
||||
z-index: 9999999999999; |
z-index: 9999999999999; |
||||
position: absolute; |
position: absolute; |
||||
top: 60%; |
top: 60%; |
||||
opacity: 1; |
opacity: 1; |
||||
line-height: 30px; |
line-height: 30px; |
||||
} |
} |
||||
|
|
||||
#loader-wrapper .load_title span { |
#loader-wrapper .load_title span { |
||||
font-weight: normal; |
font-weight: normal; |
||||
font-style: italic; |
font-style: italic; |
||||
font-size: 13px; |
font-size: 13px; |
||||
color: #FFF; |
color: #FFF; |
||||
opacity: 0.5; |
opacity: 0.5; |
||||
} |
} |
||||
</style> |
</style> |
||||
</head> |
</head> |
||||
<body> |
<body> |
||||
<div id="app"> |
<div id="app"> |
||||
<div id="loader-wrapper"> |
<div id="loader-wrapper"> |
||||
<div id="loader"></div> |
<div id="loader"></div> |
||||
<div class="loader-section section-left"></div> |
<div class="loader-section section-left"></div> |
||||
<div class="loader-section section-right"></div> |
<div class="loader-section section-right"></div> |
||||
<div class="load_title">正在加载系统资源,请耐心等待</div> |
<div class="load_title">正在加载系统资源,请耐心等待</div> |
||||
</div> |
</div> |
||||
</div> |
</div> |
||||
</body> |
</body> |
||||
</html> |
</html> |
@ -1,2 +1,2 @@ |
|||||
User-agent: * |
User-agent: * |
||||
Disallow: / |
Disallow: / |
@ -1,28 +1,28 @@ |
|||||
<template> |
<template> |
||||
<div id="app"> |
<div id="app"> |
||||
<router-view /> |
<router-view /> |
||||
<theme-picker /> |
<theme-picker /> |
||||
</div> |
</div> |
||||
</template> |
</template> |
||||
|
|
||||
<script> |
<script> |
||||
import ThemePicker from "@/components/ThemePicker"; |
import ThemePicker from "@/components/ThemePicker"; |
||||
|
|
||||
export default { |
export default { |
||||
name: "App", |
name: "App", |
||||
components: { ThemePicker }, |
components: { ThemePicker }, |
||||
metaInfo() { |
metaInfo() { |
||||
return { |
return { |
||||
title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title, |
title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title, |
||||
titleTemplate: title => { |
titleTemplate: title => { |
||||
return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE |
return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
}; |
}; |
||||
</script> |
</script> |
||||
<style scoped> |
<style scoped> |
||||
#app .theme-picker { |
#app .theme-picker { |
||||
display: none; |
display: none; |
||||
} |
} |
||||
</style> |
</style> |
@ -1,60 +1,60 @@ |
|||||
import request from '@/utils/request' |
import request from '@/utils/request' |
||||
|
|
||||
// 登录方法
|
// 登录方法
|
||||
export function login(username, password, code, uuid) { |
export function login(username, password, code, uuid) { |
||||
const data = { |
const data = { |
||||
username, |
username, |
||||
password, |
password, |
||||
code, |
code, |
||||
uuid |
uuid |
||||
} |
} |
||||
return request({ |
return request({ |
||||
url: '/login', |
url: '/login', |
||||
headers: { |
headers: { |
||||
isToken: false, |
isToken: false, |
||||
repeatSubmit: false |
repeatSubmit: false |
||||
}, |
}, |
||||
method: 'post', |
method: 'post', |
||||
data: data |
data: data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 注册方法
|
// 注册方法
|
||||
export function register(data) { |
export function register(data) { |
||||
return request({ |
return request({ |
||||
url: '/register', |
url: '/register', |
||||
headers: { |
headers: { |
||||
isToken: false |
isToken: false |
||||
}, |
}, |
||||
method: 'post', |
method: 'post', |
||||
data: data |
data: data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 获取用户详细信息
|
// 获取用户详细信息
|
||||
export function getInfo() { |
export function getInfo() { |
||||
return request({ |
return request({ |
||||
url: '/getInfo', |
url: '/getInfo', |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 退出方法
|
// 退出方法
|
||||
export function logout() { |
export function logout() { |
||||
return request({ |
return request({ |
||||
url: '/logout', |
url: '/logout', |
||||
method: 'post' |
method: 'post' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 获取验证码
|
// 获取验证码
|
||||
export function getCodeImg() { |
export function getCodeImg() { |
||||
return request({ |
return request({ |
||||
url: '/captchaImage', |
url: '/captchaImage', |
||||
headers: { |
headers: { |
||||
isToken: false |
isToken: false |
||||
}, |
}, |
||||
method: 'get', |
method: 'get', |
||||
timeout: 20000 |
timeout: 20000 |
||||
}) |
}) |
||||
} |
} |
@ -1,9 +1,9 @@ |
|||||
import request from '@/utils/request' |
import request from '@/utils/request' |
||||
|
|
||||
// 获取路由
|
// 获取路由
|
||||
export const getRouters = () => { |
export const getRouters = () => { |
||||
return request({ |
return request({ |
||||
url: '/getRouters', |
url: '/getRouters', |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
@ -1,57 +1,57 @@ |
|||||
import request from '@/utils/request' |
import request from '@/utils/request' |
||||
|
|
||||
// 查询缓存详细
|
// 查询缓存详细
|
||||
export function getCache() { |
export function getCache() { |
||||
return request({ |
return request({ |
||||
url: '/monitor/cache', |
url: '/monitor/cache', |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 查询缓存名称列表
|
// 查询缓存名称列表
|
||||
export function listCacheName() { |
export function listCacheName() { |
||||
return request({ |
return request({ |
||||
url: '/monitor/cache/getNames', |
url: '/monitor/cache/getNames', |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 查询缓存键名列表
|
// 查询缓存键名列表
|
||||
export function listCacheKey(cacheName) { |
export function listCacheKey(cacheName) { |
||||
return request({ |
return request({ |
||||
url: '/monitor/cache/getKeys/' + cacheName, |
url: '/monitor/cache/getKeys/' + cacheName, |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 查询缓存内容
|
// 查询缓存内容
|
||||
export function getCacheValue(cacheName, cacheKey) { |
export function getCacheValue(cacheName, cacheKey) { |
||||
return request({ |
return request({ |
||||
url: '/monitor/cache/getValue/' + cacheName + '/' + cacheKey, |
url: '/monitor/cache/getValue/' + cacheName + '/' + cacheKey, |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 清理指定名称缓存
|
// 清理指定名称缓存
|
||||
export function clearCacheName(cacheName) { |
export function clearCacheName(cacheName) { |
||||
return request({ |
return request({ |
||||
url: '/monitor/cache/clearCacheName/' + cacheName, |
url: '/monitor/cache/clearCacheName/' + cacheName, |
||||
method: 'delete' |
method: 'delete' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 清理指定键名缓存
|
// 清理指定键名缓存
|
||||
export function clearCacheKey(cacheKey) { |
export function clearCacheKey(cacheKey) { |
||||
return request({ |
return request({ |
||||
url: '/monitor/cache/clearCacheKey/' + cacheKey, |
url: '/monitor/cache/clearCacheKey/' + cacheKey, |
||||
method: 'delete' |
method: 'delete' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 清理全部缓存
|
// 清理全部缓存
|
||||
export function clearCacheAll() { |
export function clearCacheAll() { |
||||
return request({ |
return request({ |
||||
url: '/monitor/cache/clearCacheAll', |
url: '/monitor/cache/clearCacheAll', |
||||
method: 'delete' |
method: 'delete' |
||||
}) |
}) |
||||
} |
} |
@ -1,34 +1,34 @@ |
|||||
import request from '@/utils/request' |
import request from '@/utils/request' |
||||
|
|
||||
// 查询登录日志列表
|
// 查询登录日志列表
|
||||
export function list(query) { |
export function list(query) { |
||||
return request({ |
return request({ |
||||
url: '/monitor/logininfor/list', |
url: '/monitor/logininfor/list', |
||||
method: 'get', |
method: 'get', |
||||
params: query |
params: query |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 删除登录日志
|
// 删除登录日志
|
||||
export function delLogininfor(infoId) { |
export function delLogininfor(infoId) { |
||||
return request({ |
return request({ |
||||
url: '/monitor/logininfor/' + infoId, |
url: '/monitor/logininfor/' + infoId, |
||||
method: 'delete' |
method: 'delete' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 解锁用户登录状态
|
// 解锁用户登录状态
|
||||
export function unlockLogininfor(userName) { |
export function unlockLogininfor(userName) { |
||||
return request({ |
return request({ |
||||
url: '/monitor/logininfor/unlock/' + userName, |
url: '/monitor/logininfor/unlock/' + userName, |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 清空登录日志
|
// 清空登录日志
|
||||
export function cleanLogininfor() { |
export function cleanLogininfor() { |
||||
return request({ |
return request({ |
||||
url: '/monitor/logininfor/clean', |
url: '/monitor/logininfor/clean', |
||||
method: 'delete' |
method: 'delete' |
||||
}) |
}) |
||||
} |
} |
@ -1,18 +1,18 @@ |
|||||
import request from '@/utils/request' |
import request from '@/utils/request' |
||||
|
|
||||
// 查询在线用户列表
|
// 查询在线用户列表
|
||||
export function list(query) { |
export function list(query) { |
||||
return request({ |
return request({ |
||||
url: '/monitor/online/list', |
url: '/monitor/online/list', |
||||
method: 'get', |
method: 'get', |
||||
params: query |
params: query |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 强退用户
|
// 强退用户
|
||||
export function forceLogout(tokenId) { |
export function forceLogout(tokenId) { |
||||
return request({ |
return request({ |
||||
url: '/monitor/online/' + tokenId, |
url: '/monitor/online/' + tokenId, |
||||
method: 'delete' |
method: 'delete' |
||||
}) |
}) |
||||
} |
} |
@ -1,26 +1,26 @@ |
|||||
import request from '@/utils/request' |
import request from '@/utils/request' |
||||
|
|
||||
// 查询操作日志列表
|
// 查询操作日志列表
|
||||
export function list(query) { |
export function list(query) { |
||||
return request({ |
return request({ |
||||
url: '/monitor/operlog/list', |
url: '/monitor/operlog/list', |
||||
method: 'get', |
method: 'get', |
||||
params: query |
params: query |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 删除操作日志
|
// 删除操作日志
|
||||
export function delOperlog(operId) { |
export function delOperlog(operId) { |
||||
return request({ |
return request({ |
||||
url: '/monitor/operlog/' + operId, |
url: '/monitor/operlog/' + operId, |
||||
method: 'delete' |
method: 'delete' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 清空操作日志
|
// 清空操作日志
|
||||
export function cleanOperlog() { |
export function cleanOperlog() { |
||||
return request({ |
return request({ |
||||
url: '/monitor/operlog/clean', |
url: '/monitor/operlog/clean', |
||||
method: 'delete' |
method: 'delete' |
||||
}) |
}) |
||||
} |
} |
@ -1,9 +1,9 @@ |
|||||
import request from '@/utils/request' |
import request from '@/utils/request' |
||||
|
|
||||
// 获取服务信息
|
// 获取服务信息
|
||||
export function getServer() { |
export function getServer() { |
||||
return request({ |
return request({ |
||||
url: '/monitor/server', |
url: '/monitor/server', |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
@ -1,60 +1,60 @@ |
|||||
import request from '@/utils/request' |
import request from '@/utils/request' |
||||
|
|
||||
// 查询参数列表
|
// 查询参数列表
|
||||
export function listConfig(query) { |
export function listConfig(query) { |
||||
return request({ |
return request({ |
||||
url: '/system/config/list', |
url: '/system/config/list', |
||||
method: 'get', |
method: 'get', |
||||
params: query |
params: query |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 查询参数详细
|
// 查询参数详细
|
||||
export function getConfig(configId) { |
export function getConfig(configId) { |
||||
return request({ |
return request({ |
||||
url: '/system/config/' + configId, |
url: '/system/config/' + configId, |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 根据参数键名查询参数值
|
// 根据参数键名查询参数值
|
||||
export function getConfigKey(configKey) { |
export function getConfigKey(configKey) { |
||||
return request({ |
return request({ |
||||
url: '/system/config/configKey/' + configKey, |
url: '/system/config/configKey/' + configKey, |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 新增参数配置
|
// 新增参数配置
|
||||
export function addConfig(data) { |
export function addConfig(data) { |
||||
return request({ |
return request({ |
||||
url: '/system/config', |
url: '/system/config', |
||||
method: 'post', |
method: 'post', |
||||
data: data |
data: data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 修改参数配置
|
// 修改参数配置
|
||||
export function updateConfig(data) { |
export function updateConfig(data) { |
||||
return request({ |
return request({ |
||||
url: '/system/config', |
url: '/system/config', |
||||
method: 'put', |
method: 'put', |
||||
data: data |
data: data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 删除参数配置
|
// 删除参数配置
|
||||
export function delConfig(configId) { |
export function delConfig(configId) { |
||||
return request({ |
return request({ |
||||
url: '/system/config/' + configId, |
url: '/system/config/' + configId, |
||||
method: 'delete' |
method: 'delete' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 刷新参数缓存
|
// 刷新参数缓存
|
||||
export function refreshCache() { |
export function refreshCache() { |
||||
return request({ |
return request({ |
||||
url: '/system/config/refreshCache', |
url: '/system/config/refreshCache', |
||||
method: 'delete' |
method: 'delete' |
||||
}) |
}) |
||||
} |
} |
@ -1,52 +1,52 @@ |
|||||
import request from '@/utils/request' |
import request from '@/utils/request' |
||||
|
|
||||
// 查询部门列表
|
// 查询部门列表
|
||||
export function listDept(query) { |
export function listDept(query) { |
||||
return request({ |
return request({ |
||||
url: '/system/dept/list', |
url: '/system/dept/list', |
||||
method: 'get', |
method: 'get', |
||||
params: query |
params: query |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 查询部门列表(排除节点)
|
// 查询部门列表(排除节点)
|
||||
export function listDeptExcludeChild(deptId) { |
export function listDeptExcludeChild(deptId) { |
||||
return request({ |
return request({ |
||||
url: '/system/dept/list/exclude/' + deptId, |
url: '/system/dept/list/exclude/' + deptId, |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 查询部门详细
|
// 查询部门详细
|
||||
export function getDept(deptId) { |
export function getDept(deptId) { |
||||
return request({ |
return request({ |
||||
url: '/system/dept/' + deptId, |
url: '/system/dept/' + deptId, |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 新增部门
|
// 新增部门
|
||||
export function addDept(data) { |
export function addDept(data) { |
||||
return request({ |
return request({ |
||||
url: '/system/dept', |
url: '/system/dept', |
||||
method: 'post', |
method: 'post', |
||||
data: data |
data: data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 修改部门
|
// 修改部门
|
||||
export function updateDept(data) { |
export function updateDept(data) { |
||||
return request({ |
return request({ |
||||
url: '/system/dept', |
url: '/system/dept', |
||||
method: 'put', |
method: 'put', |
||||
data: data |
data: data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 删除部门
|
// 删除部门
|
||||
export function delDept(deptId) { |
export function delDept(deptId) { |
||||
return request({ |
return request({ |
||||
url: '/system/dept/' + deptId, |
url: '/system/dept/' + deptId, |
||||
method: 'delete' |
method: 'delete' |
||||
}) |
}) |
||||
} |
} |
@ -1,52 +1,52 @@ |
|||||
import request from '@/utils/request' |
import request from '@/utils/request' |
||||
|
|
||||
// 查询字典数据列表
|
// 查询字典数据列表
|
||||
export function listData(query) { |
export function listData(query) { |
||||
return request({ |
return request({ |
||||
url: '/system/dict/data/list', |
url: '/system/dict/data/list', |
||||
method: 'get', |
method: 'get', |
||||
params: query |
params: query |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 查询字典数据详细
|
// 查询字典数据详细
|
||||
export function getData(dictCode) { |
export function getData(dictCode) { |
||||
return request({ |
return request({ |
||||
url: '/system/dict/data/' + dictCode, |
url: '/system/dict/data/' + dictCode, |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 根据字典类型查询字典数据信息
|
// 根据字典类型查询字典数据信息
|
||||
export function getDicts(dictType) { |
export function getDicts(dictType) { |
||||
return request({ |
return request({ |
||||
url: '/system/dict/data/type/' + dictType, |
url: '/system/dict/data/type/' + dictType, |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 新增字典数据
|
// 新增字典数据
|
||||
export function addData(data) { |
export function addData(data) { |
||||
return request({ |
return request({ |
||||
url: '/system/dict/data', |
url: '/system/dict/data', |
||||
method: 'post', |
method: 'post', |
||||
data: data |
data: data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 修改字典数据
|
// 修改字典数据
|
||||
export function updateData(data) { |
export function updateData(data) { |
||||
return request({ |
return request({ |
||||
url: '/system/dict/data', |
url: '/system/dict/data', |
||||
method: 'put', |
method: 'put', |
||||
data: data |
data: data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 删除字典数据
|
// 删除字典数据
|
||||
export function delData(dictCode) { |
export function delData(dictCode) { |
||||
return request({ |
return request({ |
||||
url: '/system/dict/data/' + dictCode, |
url: '/system/dict/data/' + dictCode, |
||||
method: 'delete' |
method: 'delete' |
||||
}) |
}) |
||||
} |
} |
@ -1,60 +1,60 @@ |
|||||
import request from '@/utils/request' |
import request from '@/utils/request' |
||||
|
|
||||
// 查询字典类型列表
|
// 查询字典类型列表
|
||||
export function listType(query) { |
export function listType(query) { |
||||
return request({ |
return request({ |
||||
url: '/system/dict/type/list', |
url: '/system/dict/type/list', |
||||
method: 'get', |
method: 'get', |
||||
params: query |
params: query |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 查询字典类型详细
|
// 查询字典类型详细
|
||||
export function getType(dictId) { |
export function getType(dictId) { |
||||
return request({ |
return request({ |
||||
url: '/system/dict/type/' + dictId, |
url: '/system/dict/type/' + dictId, |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 新增字典类型
|
// 新增字典类型
|
||||
export function addType(data) { |
export function addType(data) { |
||||
return request({ |
return request({ |
||||
url: '/system/dict/type', |
url: '/system/dict/type', |
||||
method: 'post', |
method: 'post', |
||||
data: data |
data: data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 修改字典类型
|
// 修改字典类型
|
||||
export function updateType(data) { |
export function updateType(data) { |
||||
return request({ |
return request({ |
||||
url: '/system/dict/type', |
url: '/system/dict/type', |
||||
method: 'put', |
method: 'put', |
||||
data: data |
data: data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 删除字典类型
|
// 删除字典类型
|
||||
export function delType(dictId) { |
export function delType(dictId) { |
||||
return request({ |
return request({ |
||||
url: '/system/dict/type/' + dictId, |
url: '/system/dict/type/' + dictId, |
||||
method: 'delete' |
method: 'delete' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 刷新字典缓存
|
// 刷新字典缓存
|
||||
export function refreshCache() { |
export function refreshCache() { |
||||
return request({ |
return request({ |
||||
url: '/system/dict/type/refreshCache', |
url: '/system/dict/type/refreshCache', |
||||
method: 'delete' |
method: 'delete' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 获取字典选择框列表
|
// 获取字典选择框列表
|
||||
export function optionselect() { |
export function optionselect() { |
||||
return request({ |
return request({ |
||||
url: '/system/dict/type/optionselect', |
url: '/system/dict/type/optionselect', |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
@ -1,60 +1,60 @@ |
|||||
import request from '@/utils/request' |
import request from '@/utils/request' |
||||
|
|
||||
// 查询菜单列表
|
// 查询菜单列表
|
||||
export function listMenu(query) { |
export function listMenu(query) { |
||||
return request({ |
return request({ |
||||
url: '/system/menu/list', |
url: '/system/menu/list', |
||||
method: 'get', |
method: 'get', |
||||
params: query |
params: query |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 查询菜单详细
|
// 查询菜单详细
|
||||
export function getMenu(menuId) { |
export function getMenu(menuId) { |
||||
return request({ |
return request({ |
||||
url: '/system/menu/' + menuId, |
url: '/system/menu/' + menuId, |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 查询菜单下拉树结构
|
// 查询菜单下拉树结构
|
||||
export function treeselect() { |
export function treeselect() { |
||||
return request({ |
return request({ |
||||
url: '/system/menu/treeselect', |
url: '/system/menu/treeselect', |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 根据角色ID查询菜单下拉树结构
|
// 根据角色ID查询菜单下拉树结构
|
||||
export function roleMenuTreeselect(roleId) { |
export function roleMenuTreeselect(roleId) { |
||||
return request({ |
return request({ |
||||
url: '/system/menu/roleMenuTreeselect/' + roleId, |
url: '/system/menu/roleMenuTreeselect/' + roleId, |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 新增菜单
|
// 新增菜单
|
||||
export function addMenu(data) { |
export function addMenu(data) { |
||||
return request({ |
return request({ |
||||
url: '/system/menu', |
url: '/system/menu', |
||||
method: 'post', |
method: 'post', |
||||
data: data |
data: data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 修改菜单
|
// 修改菜单
|
||||
export function updateMenu(data) { |
export function updateMenu(data) { |
||||
return request({ |
return request({ |
||||
url: '/system/menu', |
url: '/system/menu', |
||||
method: 'put', |
method: 'put', |
||||
data: data |
data: data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 删除菜单
|
// 删除菜单
|
||||
export function delMenu(menuId) { |
export function delMenu(menuId) { |
||||
return request({ |
return request({ |
||||
url: '/system/menu/' + menuId, |
url: '/system/menu/' + menuId, |
||||
method: 'delete' |
method: 'delete' |
||||
}) |
}) |
||||
} |
} |
@ -1,44 +1,44 @@ |
|||||
import request from '@/utils/request' |
import request from '@/utils/request' |
||||
|
|
||||
// 查询公告列表
|
// 查询公告列表
|
||||
export function listNotice(query) { |
export function listNotice(query) { |
||||
return request({ |
return request({ |
||||
url: '/system/notice/list', |
url: '/system/notice/list', |
||||
method: 'get', |
method: 'get', |
||||
params: query |
params: query |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 查询公告详细
|
// 查询公告详细
|
||||
export function getNotice(noticeId) { |
export function getNotice(noticeId) { |
||||
return request({ |
return request({ |
||||
url: '/system/notice/' + noticeId, |
url: '/system/notice/' + noticeId, |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 新增公告
|
// 新增公告
|
||||
export function addNotice(data) { |
export function addNotice(data) { |
||||
return request({ |
return request({ |
||||
url: '/system/notice', |
url: '/system/notice', |
||||
method: 'post', |
method: 'post', |
||||
data: data |
data: data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 修改公告
|
// 修改公告
|
||||
export function updateNotice(data) { |
export function updateNotice(data) { |
||||
return request({ |
return request({ |
||||
url: '/system/notice', |
url: '/system/notice', |
||||
method: 'put', |
method: 'put', |
||||
data: data |
data: data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 删除公告
|
// 删除公告
|
||||
export function delNotice(noticeId) { |
export function delNotice(noticeId) { |
||||
return request({ |
return request({ |
||||
url: '/system/notice/' + noticeId, |
url: '/system/notice/' + noticeId, |
||||
method: 'delete' |
method: 'delete' |
||||
}) |
}) |
||||
} |
} |
@ -1,44 +1,44 @@ |
|||||
import request from '@/utils/request' |
import request from '@/utils/request' |
||||
|
|
||||
// 查询岗位列表
|
// 查询岗位列表
|
||||
export function listPost(query) { |
export function listPost(query) { |
||||
return request({ |
return request({ |
||||
url: '/system/post/list', |
url: '/system/post/list', |
||||
method: 'get', |
method: 'get', |
||||
params: query |
params: query |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 查询岗位详细
|
// 查询岗位详细
|
||||
export function getPost(postId) { |
export function getPost(postId) { |
||||
return request({ |
return request({ |
||||
url: '/system/post/' + postId, |
url: '/system/post/' + postId, |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 新增岗位
|
// 新增岗位
|
||||
export function addPost(data) { |
export function addPost(data) { |
||||
return request({ |
return request({ |
||||
url: '/system/post', |
url: '/system/post', |
||||
method: 'post', |
method: 'post', |
||||
data: data |
data: data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 修改岗位
|
// 修改岗位
|
||||
export function updatePost(data) { |
export function updatePost(data) { |
||||
return request({ |
return request({ |
||||
url: '/system/post', |
url: '/system/post', |
||||
method: 'put', |
method: 'put', |
||||
data: data |
data: data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 删除岗位
|
// 删除岗位
|
||||
export function delPost(postId) { |
export function delPost(postId) { |
||||
return request({ |
return request({ |
||||
url: '/system/post/' + postId, |
url: '/system/post/' + postId, |
||||
method: 'delete' |
method: 'delete' |
||||
}) |
}) |
||||
} |
} |
@ -1,119 +1,119 @@ |
|||||
import request from '@/utils/request' |
import request from '@/utils/request' |
||||
|
|
||||
// 查询角色列表
|
// 查询角色列表
|
||||
export function listRole(query) { |
export function listRole(query) { |
||||
return request({ |
return request({ |
||||
url: '/system/role/list', |
url: '/system/role/list', |
||||
method: 'get', |
method: 'get', |
||||
params: query |
params: query |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 查询角色详细
|
// 查询角色详细
|
||||
export function getRole(roleId) { |
export function getRole(roleId) { |
||||
return request({ |
return request({ |
||||
url: '/system/role/' + roleId, |
url: '/system/role/' + roleId, |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 新增角色
|
// 新增角色
|
||||
export function addRole(data) { |
export function addRole(data) { |
||||
return request({ |
return request({ |
||||
url: '/system/role', |
url: '/system/role', |
||||
method: 'post', |
method: 'post', |
||||
data: data |
data: data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 修改角色
|
// 修改角色
|
||||
export function updateRole(data) { |
export function updateRole(data) { |
||||
return request({ |
return request({ |
||||
url: '/system/role', |
url: '/system/role', |
||||
method: 'put', |
method: 'put', |
||||
data: data |
data: data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 角色数据权限
|
// 角色数据权限
|
||||
export function dataScope(data) { |
export function dataScope(data) { |
||||
return request({ |
return request({ |
||||
url: '/system/role/dataScope', |
url: '/system/role/dataScope', |
||||
method: 'put', |
method: 'put', |
||||
data: data |
data: data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 角色状态修改
|
// 角色状态修改
|
||||
export function changeRoleStatus(roleId, status) { |
export function changeRoleStatus(roleId, status) { |
||||
const data = { |
const data = { |
||||
roleId, |
roleId, |
||||
status |
status |
||||
} |
} |
||||
return request({ |
return request({ |
||||
url: '/system/role/changeStatus', |
url: '/system/role/changeStatus', |
||||
method: 'put', |
method: 'put', |
||||
data: data |
data: data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 删除角色
|
// 删除角色
|
||||
export function delRole(roleId) { |
export function delRole(roleId) { |
||||
return request({ |
return request({ |
||||
url: '/system/role/' + roleId, |
url: '/system/role/' + roleId, |
||||
method: 'delete' |
method: 'delete' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 查询角色已授权用户列表
|
// 查询角色已授权用户列表
|
||||
export function allocatedUserList(query) { |
export function allocatedUserList(query) { |
||||
return request({ |
return request({ |
||||
url: '/system/role/authUser/allocatedList', |
url: '/system/role/authUser/allocatedList', |
||||
method: 'get', |
method: 'get', |
||||
params: query |
params: query |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 查询角色未授权用户列表
|
// 查询角色未授权用户列表
|
||||
export function unallocatedUserList(query) { |
export function unallocatedUserList(query) { |
||||
return request({ |
return request({ |
||||
url: '/system/role/authUser/unallocatedList', |
url: '/system/role/authUser/unallocatedList', |
||||
method: 'get', |
method: 'get', |
||||
params: query |
params: query |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 取消用户授权角色
|
// 取消用户授权角色
|
||||
export function authUserCancel(data) { |
export function authUserCancel(data) { |
||||
return request({ |
return request({ |
||||
url: '/system/role/authUser/cancel', |
url: '/system/role/authUser/cancel', |
||||
method: 'put', |
method: 'put', |
||||
data: data |
data: data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 批量取消用户授权角色
|
// 批量取消用户授权角色
|
||||
export function authUserCancelAll(data) { |
export function authUserCancelAll(data) { |
||||
return request({ |
return request({ |
||||
url: '/system/role/authUser/cancelAll', |
url: '/system/role/authUser/cancelAll', |
||||
method: 'put', |
method: 'put', |
||||
params: data |
params: data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 授权用户选择
|
// 授权用户选择
|
||||
export function authUserSelectAll(data) { |
export function authUserSelectAll(data) { |
||||
return request({ |
return request({ |
||||
url: '/system/role/authUser/selectAll', |
url: '/system/role/authUser/selectAll', |
||||
method: 'put', |
method: 'put', |
||||
params: data |
params: data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 根据角色ID查询部门树结构
|
// 根据角色ID查询部门树结构
|
||||
export function deptTreeSelect(roleId) { |
export function deptTreeSelect(roleId) { |
||||
return request({ |
return request({ |
||||
url: '/system/role/deptTree/' + roleId, |
url: '/system/role/deptTree/' + roleId, |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
@ -1,85 +1,85 @@ |
|||||
import request from '@/utils/request' |
import request from '@/utils/request' |
||||
|
|
||||
// 查询生成表数据
|
// 查询生成表数据
|
||||
export function listTable(query) { |
export function listTable(query) { |
||||
return request({ |
return request({ |
||||
url: '/tool/gen/list', |
url: '/tool/gen/list', |
||||
method: 'get', |
method: 'get', |
||||
params: query |
params: query |
||||
}) |
}) |
||||
} |
} |
||||
// 查询db数据库列表
|
// 查询db数据库列表
|
||||
export function listDbTable(query) { |
export function listDbTable(query) { |
||||
return request({ |
return request({ |
||||
url: '/tool/gen/db/list', |
url: '/tool/gen/db/list', |
||||
method: 'get', |
method: 'get', |
||||
params: query |
params: query |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 查询表详细信息
|
// 查询表详细信息
|
||||
export function getGenTable(tableId) { |
export function getGenTable(tableId) { |
||||
return request({ |
return request({ |
||||
url: '/tool/gen/' + tableId, |
url: '/tool/gen/' + tableId, |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 修改代码生成信息
|
// 修改代码生成信息
|
||||
export function updateGenTable(data) { |
export function updateGenTable(data) { |
||||
return request({ |
return request({ |
||||
url: '/tool/gen', |
url: '/tool/gen', |
||||
method: 'put', |
method: 'put', |
||||
data: data |
data: data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 导入表
|
// 导入表
|
||||
export function importTable(data) { |
export function importTable(data) { |
||||
return request({ |
return request({ |
||||
url: '/tool/gen/importTable', |
url: '/tool/gen/importTable', |
||||
method: 'post', |
method: 'post', |
||||
params: data |
params: data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 创建表
|
// 创建表
|
||||
export function createTable(data) { |
export function createTable(data) { |
||||
return request({ |
return request({ |
||||
url: '/tool/gen/createTable', |
url: '/tool/gen/createTable', |
||||
method: 'post', |
method: 'post', |
||||
params: data |
params: data |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 预览生成代码
|
// 预览生成代码
|
||||
export function previewTable(tableId) { |
export function previewTable(tableId) { |
||||
return request({ |
return request({ |
||||
url: '/tool/gen/preview/' + tableId, |
url: '/tool/gen/preview/' + tableId, |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 删除表数据
|
// 删除表数据
|
||||
export function delTable(tableId) { |
export function delTable(tableId) { |
||||
return request({ |
return request({ |
||||
url: '/tool/gen/' + tableId, |
url: '/tool/gen/' + tableId, |
||||
method: 'delete' |
method: 'delete' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 生成代码(自定义路径)
|
// 生成代码(自定义路径)
|
||||
export function genCode(tableName) { |
export function genCode(tableName) { |
||||
return request({ |
return request({ |
||||
url: '/tool/gen/genCode/' + tableName, |
url: '/tool/gen/genCode/' + tableName, |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
||||
|
|
||||
// 同步数据库
|
// 同步数据库
|
||||
export function synchDb(tableName) { |
export function synchDb(tableName) { |
||||
return request({ |
return request({ |
||||
url: '/tool/gen/synchDb/' + tableName, |
url: '/tool/gen/synchDb/' + tableName, |
||||
method: 'get' |
method: 'get' |
||||
}) |
}) |
||||
} |
} |
Before Width: | Height: | Size: 160 KiB After Width: | Height: | Size: 160 KiB |
Before Width: | Height: | Size: 96 KiB After Width: | Height: | Size: 96 KiB |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
@ -1,9 +1,9 @@ |
|||||
import Vue from 'vue' |
import Vue from 'vue' |
||||
import SvgIcon from '@/components/SvgIcon'// svg component
|
import SvgIcon from '@/components/SvgIcon'// svg component
|
||||
|
|
||||
// register globally
|
// register globally
|
||||
Vue.component('svg-icon', SvgIcon) |
Vue.component('svg-icon', SvgIcon) |
||||
|
|
||||
const req = require.context('./svg', false, /\.svg$/) |
const req = require.context('./svg', false, /\.svg$/) |
||||
const requireAll = requireContext => requireContext.keys().map(requireContext) |
const requireAll = requireContext => requireContext.keys().map(requireContext) |
||||
requireAll(req) |
requireAll(req) |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 954 B After Width: | Height: | Size: 954 B |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 179 B After Width: | Height: | Size: 179 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 971 B After Width: | Height: | Size: 971 B |
Before Width: | Height: | Size: 717 B After Width: | Height: | Size: 717 B |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 418 B After Width: | Height: | Size: 418 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 356 B After Width: | Height: | Size: 356 B |
Before Width: | Height: | Size: 724 B After Width: | Height: | Size: 724 B |
Before Width: | Height: | Size: 818 B After Width: | Height: | Size: 818 B |
Before Width: | Height: | Size: 627 B After Width: | Height: | Size: 627 B |
Before Width: | Height: | Size: 347 B After Width: | Height: | Size: 347 B |
Before Width: | Height: | Size: 497 B After Width: | Height: | Size: 497 B |
Before Width: | Height: | Size: 459 B After Width: | Height: | Size: 459 B |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 944 B After Width: | Height: | Size: 944 B |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 421 B After Width: | Height: | Size: 421 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 320 B After Width: | Height: | Size: 320 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 744 B After Width: | Height: | Size: 744 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 285 B After Width: | Height: | Size: 285 B |
Before Width: | Height: | Size: 1017 B After Width: | Height: | Size: 1017 B |
Before Width: | Height: | Size: 444 B After Width: | Height: | Size: 444 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 669 B After Width: | Height: | Size: 669 B |
Before Width: | Height: | Size: 335 B After Width: | Height: | Size: 335 B |
Before Width: | Height: | Size: 884 B After Width: | Height: | Size: 883 B |
Before Width: | Height: | Size: 821 B After Width: | Height: | Size: 821 B |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 731 B After Width: | Height: | Size: 731 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |