diff --git a/.eslintrc.js b/.eslintrc.js index 8a2e69e..3d5c958 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,199 +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'], + 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'] - } + // 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'] + } } diff --git a/babel.config.js b/babel.config.js index c8267b2..073da90 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,13 +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'] + 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'] + } } - } -} \ No newline at end of file +} diff --git a/build/index.js b/build/index.js index c5103f0..f3013bf 100644 --- a/build/index.js +++ b/build/index.js @@ -5,31 +5,31 @@ const rawArgv = process.argv.slice(2) const args = rawArgv.join(' ') 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 publicPath = config.publicPath + const port = 9526 + const publicPath = config.publicPath - var connect = require('connect') - var serveStatic = require('serve-static') - const app = connect() + 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`)) + } - 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}`) + run(`vue-cli-service build ${args}`) } diff --git a/package.json b/package.json index 2ed93d6..f6373e2 100644 --- a/package.json +++ b/package.json @@ -49,6 +49,7 @@ "js-beautify": "1.13.0", "js-cookie": "3.0.1", "jsencrypt": "3.0.0-rc.1", + "moment": "^2.29.4", "nprogress": "0.2.0", "quill": "1.3.7", "screenfull": "5.0.2", diff --git a/public/html/ie.html b/public/html/ie.html index c7264ba..d4311c1 100644 --- a/public/html/ie.html +++ b/public/html/ie.html @@ -1,158 +1,159 @@ - - 请升级您的浏览器 - - - - + .browser .browser-360 { + background-position: 0 -170px; + margin-left: -27px + } +

请升级您的浏览器,以便我们更好的为您提供服务!

您正在使用 Internet Explorer - 的早期版本(IE11以下版本或使用该内核的浏览器)。这意味着在升级浏览器前,您将无法访问此网站。

+ 的早期版本(IE11以下版本或使用该内核的浏览器)。这意味着在升级浏览器前,您将无法访问此网站。


请注意:微软公司对Windows XP 及 Internet Explorer 早期版本的支持已经结束

自 2016 年 1 月 12 日起,Microsoft 不再为 IE 11 - 以下版本提供相应支持和更新。没有关键的浏览器安全更新,您的电脑可能易受有害病毒、间谍软件和其他恶意软件的攻击,它们可以窃取或损害您的业务数据和信息。请参阅 - 微软对 Internet Explorer 早期版本的支持将于 - 2016 年 1 月 12 日结束的说明

+ 以下版本提供相应支持和更新。没有关键的浏览器安全更新,您的电脑可能易受有害病毒、间谍软件和其他恶意软件的攻击,它们可以窃取或损害您的业务数据和信息。请参阅 + 微软对 Internet Explorer 早期版本的支持将于 + 2016 年 1 月 12 日结束的说明


您可以选择更先进的浏览器

推荐使用以下浏览器的最新版本。如果您的电脑已有以下浏览器的最新版本则直接使用该浏览器访问即可。


diff --git a/public/index.html b/public/index.html index 99f7ed8..4f99dc9 100644 --- a/public/index.html +++ b/public/index.html @@ -1,210 +1,210 @@ - - - - - - <%= webpackConfig.name %> - - + #loader-wrapper .load_title span { + font-weight: normal; + font-style: italic; + font-size: 13px; + color: #FFF; + opacity: 0.5; + } +
-
-
-
-
-
正在加载系统资源,请耐心等待
-
+
+
+
+
+
正在加载系统资源,请耐心等待
+
diff --git a/src/api/login.js b/src/api/login.js index 3691abe..111a06c 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -2,61 +2,61 @@ import request from '@/utils/request' // 登录方法 export function login(username, password, code, uuid) { - return request({ - url: '/auth/login', - headers: { - isToken: false, - repeatSubmit: false - }, - method: 'post', - data: {username, password, code, uuid} - }) + return request({ + url: '/auth/login', + headers: { + isToken: false, + repeatSubmit: false + }, + method: 'post', + data: {username, password, code, uuid} + }) } // 注册方法 export function register(data) { - return request({ - url: '/auth/register', - headers: { - isToken: false - }, - method: 'post', - data: data - }) + return request({ + url: '/auth/register', + headers: { + isToken: false + }, + method: 'post', + data: data + }) } // 刷新方法 export function refreshToken() { - return request({ - url: '/auth/refresh', - method: 'post' - }) + return request({ + url: '/auth/refresh', + method: 'post' + }) } // 获取用户详细信息 export function getInfo() { - return request({ - url: '/system/user/getInfo', - method: 'get' - }) + return request({ + url: '/system/user/getInfo', + method: 'get' + }) } // 退出方法 export function logout() { - return request({ - url: '/auth/logout', - method: 'delete' - }) + return request({ + url: '/auth/logout', + method: 'delete' + }) } // 获取验证码 export function getCodeImg() { - return request({ - url: '/code', - headers: { - isToken: false - }, - method: 'get', - timeout: 20000 - }) + return request({ + url: '/code', + headers: { + isToken: false + }, + method: 'get', + timeout: 20000 + }) } diff --git a/src/api/menu.js b/src/api/menu.js index 845efd7..84bfa52 100644 --- a/src/api/menu.js +++ b/src/api/menu.js @@ -2,8 +2,8 @@ import request from '@/utils/request' // 获取路由 export const getRouters = () => { - return request({ - url: '/system/menu/getRouters', - method: 'get' - }) -} \ No newline at end of file + return request({ + url: '/system/menu/getRouters', + method: 'get' + }) +} diff --git a/src/api/monitor/job.js b/src/api/monitor/job.js index cb85117..6f79c2e 100644 --- a/src/api/monitor/job.js +++ b/src/api/monitor/job.js @@ -2,70 +2,70 @@ import request from '@/utils/request' // 查询定时任务调度列表 export function listJob(query) { - return request({ - url: '/schedule/job/list', - method: 'get', - params: query - }) + return request({ + url: '/schedule/job/list', + method: 'get', + params: query + }) } // 查询定时任务调度详细 export function getJob(jobId) { - return request({ - url: '/schedule/job/' + jobId, - method: 'get' - }) + return request({ + url: '/schedule/job/' + jobId, + method: 'get' + }) } // 新增定时任务调度 export function addJob(data) { - return request({ - url: '/schedule/job', - method: 'post', - data: data - }) + return request({ + url: '/schedule/job', + method: 'post', + data: data + }) } // 修改定时任务调度 export function updateJob(data) { - return request({ - url: '/schedule/job', - method: 'put', - data: data - }) + return request({ + url: '/schedule/job', + method: 'put', + data: data + }) } // 删除定时任务调度 export function delJob(jobId) { - return request({ - url: '/schedule/job/' + jobId, - method: 'delete' - }) + return request({ + url: '/schedule/job/' + jobId, + method: 'delete' + }) } // 任务状态修改 export function changeJobStatus(jobId, status) { - const data = { - jobId, - status - } - return request({ - url: '/schedule/job/changeStatus', - method: 'put', - data: data - }) + const data = { + jobId, + status + } + return request({ + url: '/schedule/job/changeStatus', + method: 'put', + data: data + }) } // 定时任务立即执行一次 export function runJob(jobId, jobGroup) { - const data = { - jobId, - jobGroup - } - return request({ - url: '/schedule/job/run', - method: 'put', - data: data - }) -} \ No newline at end of file + const data = { + jobId, + jobGroup + } + return request({ + url: '/schedule/job/run', + method: 'put', + data: data + }) +} diff --git a/src/api/monitor/jobLog.js b/src/api/monitor/jobLog.js index eea2666..937644f 100644 --- a/src/api/monitor/jobLog.js +++ b/src/api/monitor/jobLog.js @@ -2,25 +2,25 @@ import request from '@/utils/request' // 查询调度日志列表 export function listJobLog(query) { - return request({ - url: '/schedule/job/log/list', - method: 'get', - params: query - }) + return request({ + url: '/schedule/job/log/list', + method: 'get', + params: query + }) } // 删除调度日志 export function delJobLog(jobLogId) { - return request({ - url: '/schedule/job/log/' + jobLogId, - method: 'delete' - }) + return request({ + url: '/schedule/job/log/' + jobLogId, + method: 'delete' + }) } // 清空调度日志 export function cleanJobLog() { - return request({ - url: '/schedule/job/log/clean', - method: 'delete' - }) + return request({ + url: '/schedule/job/log/clean', + method: 'delete' + }) } diff --git a/src/api/monitor/online.js b/src/api/monitor/online.js index d53df58..4248c0a 100644 --- a/src/api/monitor/online.js +++ b/src/api/monitor/online.js @@ -2,17 +2,17 @@ import request from '@/utils/request' // 查询在线用户列表 export function list(query) { - return request({ - url: '/system/online/list', - method: 'get', - params: query - }) + return request({ + url: '/system/online/list', + method: 'get', + params: query + }) } // 强退用户 export function forceLogout(tokenId) { - return request({ - url: '/system/online/' + tokenId, - method: 'delete' - }) + return request({ + url: '/system/online/' + tokenId, + method: 'delete' + }) } diff --git a/src/api/system/config.js b/src/api/system/config.js index a404d82..d98abfb 100644 --- a/src/api/system/config.js +++ b/src/api/system/config.js @@ -2,59 +2,59 @@ import request from '@/utils/request' // 查询参数列表 export function listConfig(query) { - return request({ - url: '/system/config/list', - method: 'get', - params: query - }) + return request({ + url: '/system/config/list', + method: 'get', + params: query + }) } // 查询参数详细 export function getConfig(configId) { - return request({ - url: '/system/config/' + configId, - method: 'get' - }) + return request({ + url: '/system/config/' + configId, + method: 'get' + }) } // 根据参数键名查询参数值 export function getConfigKey(configKey) { - return request({ - url: '/system/config/configKey/' + configKey, - method: 'get' - }) + return request({ + url: '/system/config/configKey/' + configKey, + method: 'get' + }) } // 新增参数配置 export function addConfig(data) { - return request({ - url: '/system/config', - method: 'post', - data: data - }) + return request({ + url: '/system/config', + method: 'post', + data: data + }) } // 修改参数配置 export function updateConfig(data) { - return request({ - url: '/system/config', - method: 'put', - data: data - }) + return request({ + url: '/system/config', + method: 'put', + data: data + }) } // 删除参数配置 export function delConfig(configId) { - return request({ - url: '/system/config/' + configId, - method: 'delete' - }) + return request({ + url: '/system/config/' + configId, + method: 'delete' + }) } // 刷新参数缓存 export function refreshCache() { - return request({ - url: '/system/config/refreshCache', - method: 'delete' - }) + return request({ + url: '/system/config/refreshCache', + method: 'delete' + }) } diff --git a/src/api/system/dept.js b/src/api/system/dept.js index fc943cd..53211b7 100644 --- a/src/api/system/dept.js +++ b/src/api/system/dept.js @@ -2,51 +2,51 @@ import request from '@/utils/request' // 查询部门列表 export function listDept(query) { - return request({ - url: '/system/dept/list', - method: 'get', - params: query - }) + return request({ + url: '/system/dept/list', + method: 'get', + params: query + }) } // 查询部门列表(排除节点) export function listDeptExcludeChild(deptId) { - return request({ - url: '/system/dept/list/exclude/' + deptId, - method: 'get' - }) + return request({ + url: '/system/dept/list/exclude/' + deptId, + method: 'get' + }) } // 查询部门详细 export function getDept(deptId) { - return request({ - url: '/system/dept/' + deptId, - method: 'get' - }) + return request({ + url: '/system/dept/' + deptId, + method: 'get' + }) } // 新增部门 export function addDept(data) { - return request({ - url: '/system/dept', - method: 'post', - data: data - }) + return request({ + url: '/system/dept', + method: 'post', + data: data + }) } // 修改部门 export function updateDept(data) { - return request({ - url: '/system/dept', - method: 'put', - data: data - }) + return request({ + url: '/system/dept', + method: 'put', + data: data + }) } // 删除部门 export function delDept(deptId) { - return request({ - url: '/system/dept/' + deptId, - method: 'delete' - }) -} \ No newline at end of file + return request({ + url: '/system/dept/' + deptId, + method: 'delete' + }) +} diff --git a/src/api/system/dict/data.js b/src/api/system/dict/data.js index 6c9eb79..119baa3 100644 --- a/src/api/system/dict/data.js +++ b/src/api/system/dict/data.js @@ -2,51 +2,51 @@ import request from '@/utils/request' // 查询字典数据列表 export function listData(query) { - return request({ - url: '/system/dict/data/list', - method: 'get', - params: query - }) + return request({ + url: '/system/dict/data/list', + method: 'get', + params: query + }) } // 查询字典数据详细 export function getData(dictCode) { - return request({ - url: '/system/dict/data/' + dictCode, - method: 'get' - }) + return request({ + url: '/system/dict/data/' + dictCode, + method: 'get' + }) } // 根据字典类型查询字典数据信息 export function getDicts(dictType) { - return request({ - url: '/system/dict/data/type/' + dictType, - method: 'get' - }) + return request({ + url: '/system/dict/data/type/' + dictType, + method: 'get' + }) } // 新增字典数据 export function addData(data) { - return request({ - url: '/system/dict/data', - method: 'post', - data: data - }) + return request({ + url: '/system/dict/data', + method: 'post', + data: data + }) } // 修改字典数据 export function updateData(data) { - return request({ - url: '/system/dict/data', - method: 'put', - data: data - }) + return request({ + url: '/system/dict/data', + method: 'put', + data: data + }) } // 删除字典数据 export function delData(dictCode) { - return request({ - url: '/system/dict/data/' + dictCode, - method: 'delete' - }) + return request({ + url: '/system/dict/data/' + dictCode, + method: 'delete' + }) } diff --git a/src/api/system/dict/type.js b/src/api/system/dict/type.js index a7a6e01..3fb6939 100644 --- a/src/api/system/dict/type.js +++ b/src/api/system/dict/type.js @@ -2,59 +2,59 @@ import request from '@/utils/request' // 查询字典类型列表 export function listType(query) { - return request({ - url: '/system/dict/type/list', - method: 'get', - params: query - }) + return request({ + url: '/system/dict/type/list', + method: 'get', + params: query + }) } // 查询字典类型详细 export function getType(dictId) { - return request({ - url: '/system/dict/type/' + dictId, - method: 'get' - }) + return request({ + url: '/system/dict/type/' + dictId, + method: 'get' + }) } // 新增字典类型 export function addType(data) { - return request({ - url: '/system/dict/type', - method: 'post', - data: data - }) + return request({ + url: '/system/dict/type', + method: 'post', + data: data + }) } // 修改字典类型 export function updateType(data) { - return request({ - url: '/system/dict/type', - method: 'put', - data: data - }) + return request({ + url: '/system/dict/type', + method: 'put', + data: data + }) } // 删除字典类型 export function delType(dictId) { - return request({ - url: '/system/dict/type/' + dictId, - method: 'delete' - }) + return request({ + url: '/system/dict/type/' + dictId, + method: 'delete' + }) } // 刷新字典缓存 export function refreshCache() { - return request({ - url: '/system/dict/type/refreshCache', - method: 'delete' - }) + return request({ + url: '/system/dict/type/refreshCache', + method: 'delete' + }) } // 获取字典选择框列表 export function optionselect() { - return request({ - url: '/system/dict/type/optionselect', - method: 'get' - }) -} \ No newline at end of file + return request({ + url: '/system/dict/type/optionselect', + method: 'get' + }) +} diff --git a/src/api/system/logininfor.js b/src/api/system/logininfor.js index 9cf2a2f..0e9693b 100644 --- a/src/api/system/logininfor.js +++ b/src/api/system/logininfor.js @@ -2,33 +2,33 @@ import request from '@/utils/request' // 查询登录日志列表 export function list(query) { - return request({ - url: '/system/logininfor/list', - method: 'get', - params: query - }) + return request({ + url: '/system/logininfor/list', + method: 'get', + params: query + }) } // 删除登录日志 export function delLogininfor(infoId) { - return request({ - url: '/system/logininfor/' + infoId, - method: 'delete' - }) + return request({ + url: '/system/logininfor/' + infoId, + method: 'delete' + }) } // 解锁用户登录状态 export function unlockLogininfor(userName) { - return request({ - url: '/system/logininfor/unlock/' + userName, - method: 'get' - }) + return request({ + url: '/system/logininfor/unlock/' + userName, + method: 'get' + }) } // 清空登录日志 export function cleanLogininfor() { - return request({ - url: '/system/logininfor/clean', - method: 'delete' - }) + return request({ + url: '/system/logininfor/clean', + method: 'delete' + }) } diff --git a/src/api/system/menu.js b/src/api/system/menu.js index f6415c6..b19322f 100644 --- a/src/api/system/menu.js +++ b/src/api/system/menu.js @@ -2,59 +2,59 @@ import request from '@/utils/request' // 查询菜单列表 export function listMenu(query) { - return request({ - url: '/system/menu/list', - method: 'get', - params: query - }) + return request({ + url: '/system/menu/list', + method: 'get', + params: query + }) } // 查询菜单详细 export function getMenu(menuId) { - return request({ - url: '/system/menu/' + menuId, - method: 'get' - }) + return request({ + url: '/system/menu/' + menuId, + method: 'get' + }) } // 查询菜单下拉树结构 export function treeselect() { - return request({ - url: '/system/menu/treeselect', - method: 'get' - }) + return request({ + url: '/system/menu/treeselect', + method: 'get' + }) } // 根据角色ID查询菜单下拉树结构 export function roleMenuTreeselect(roleId) { - return request({ - url: '/system/menu/roleMenuTreeselect/' + roleId, - method: 'get' - }) + return request({ + url: '/system/menu/roleMenuTreeselect/' + roleId, + method: 'get' + }) } // 新增菜单 export function addMenu(data) { - return request({ - url: '/system/menu', - method: 'post', - data: data - }) + return request({ + url: '/system/menu', + method: 'post', + data: data + }) } // 修改菜单 export function updateMenu(data) { - return request({ - url: '/system/menu', - method: 'put', - data: data - }) + return request({ + url: '/system/menu', + method: 'put', + data: data + }) } // 删除菜单 export function delMenu(menuId) { - return request({ - url: '/system/menu/' + menuId, - method: 'delete' - }) -} \ No newline at end of file + return request({ + url: '/system/menu/' + menuId, + method: 'delete' + }) +} diff --git a/src/api/system/notice.js b/src/api/system/notice.js index c274ea5..c8bebad 100644 --- a/src/api/system/notice.js +++ b/src/api/system/notice.js @@ -2,43 +2,43 @@ import request from '@/utils/request' // 查询公告列表 export function listNotice(query) { - return request({ - url: '/system/notice/list', - method: 'get', - params: query - }) + return request({ + url: '/system/notice/list', + method: 'get', + params: query + }) } // 查询公告详细 export function getNotice(noticeId) { - return request({ - url: '/system/notice/' + noticeId, - method: 'get' - }) + return request({ + url: '/system/notice/' + noticeId, + method: 'get' + }) } // 新增公告 export function addNotice(data) { - return request({ - url: '/system/notice', - method: 'post', - data: data - }) + return request({ + url: '/system/notice', + method: 'post', + data: data + }) } // 修改公告 export function updateNotice(data) { - return request({ - url: '/system/notice', - method: 'put', - data: data - }) + return request({ + url: '/system/notice', + method: 'put', + data: data + }) } // 删除公告 export function delNotice(noticeId) { - return request({ - url: '/system/notice/' + noticeId, - method: 'delete' - }) -} \ No newline at end of file + return request({ + url: '/system/notice/' + noticeId, + method: 'delete' + }) +} diff --git a/src/api/system/operlog.js b/src/api/system/operlog.js index 51a4cc3..0aef6a0 100644 --- a/src/api/system/operlog.js +++ b/src/api/system/operlog.js @@ -2,25 +2,25 @@ import request from '@/utils/request' // 查询操作日志列表 export function list(query) { - return request({ - url: '/system/operlog/list', - method: 'get', - params: query - }) + return request({ + url: '/system/operlog/list', + method: 'get', + params: query + }) } // 删除操作日志 export function delOperlog(operId) { - return request({ - url: '/system/operlog/' + operId, - method: 'delete' - }) + return request({ + url: '/system/operlog/' + operId, + method: 'delete' + }) } // 清空操作日志 export function cleanOperlog() { - return request({ - url: '/system/operlog/clean', - method: 'delete' - }) + return request({ + url: '/system/operlog/clean', + method: 'delete' + }) } diff --git a/src/api/system/post.js b/src/api/system/post.js index 1a8e9ca..802abee 100644 --- a/src/api/system/post.js +++ b/src/api/system/post.js @@ -2,43 +2,43 @@ import request from '@/utils/request' // 查询岗位列表 export function listPost(query) { - return request({ - url: '/system/post/list', - method: 'get', - params: query - }) + return request({ + url: '/system/post/list', + method: 'get', + params: query + }) } // 查询岗位详细 export function getPost(postId) { - return request({ - url: '/system/post/' + postId, - method: 'get' - }) + return request({ + url: '/system/post/' + postId, + method: 'get' + }) } // 新增岗位 export function addPost(data) { - return request({ - url: '/system/post', - method: 'post', - data: data - }) + return request({ + url: '/system/post', + method: 'post', + data: data + }) } // 修改岗位 export function updatePost(data) { - return request({ - url: '/system/post', - method: 'put', - data: data - }) + return request({ + url: '/system/post', + method: 'put', + data: data + }) } // 删除岗位 export function delPost(postId) { - return request({ - url: '/system/post/' + postId, - method: 'delete' - }) + return request({ + url: '/system/post/' + postId, + method: 'delete' + }) } diff --git a/src/api/system/role.js b/src/api/system/role.js index f13e6f4..24d2b27 100644 --- a/src/api/system/role.js +++ b/src/api/system/role.js @@ -2,118 +2,118 @@ import request from '@/utils/request' // 查询角色列表 export function listRole(query) { - return request({ - url: '/system/role/list', - method: 'get', - params: query - }) + return request({ + url: '/system/role/list', + method: 'get', + params: query + }) } // 查询角色详细 export function getRole(roleId) { - return request({ - url: '/system/role/' + roleId, - method: 'get' - }) + return request({ + url: '/system/role/' + roleId, + method: 'get' + }) } // 新增角色 export function addRole(data) { - return request({ - url: '/system/role', - method: 'post', - data: data - }) + return request({ + url: '/system/role', + method: 'post', + data: data + }) } // 修改角色 export function updateRole(data) { - return request({ - url: '/system/role', - method: 'put', - data: data - }) + return request({ + url: '/system/role', + method: 'put', + data: data + }) } // 角色数据权限 export function dataScope(data) { - return request({ - url: '/system/role/dataScope', - method: 'put', - data: data - }) + return request({ + url: '/system/role/dataScope', + method: 'put', + data: data + }) } // 角色状态修改 export function changeRoleStatus(roleId, status) { - const data = { - roleId, - status - } - return request({ - url: '/system/role/changeStatus', - method: 'put', - data: data - }) + const data = { + roleId, + status + } + return request({ + url: '/system/role/changeStatus', + method: 'put', + data: data + }) } // 删除角色 export function delRole(roleId) { - return request({ - url: '/system/role/' + roleId, - method: 'delete' - }) + return request({ + url: '/system/role/' + roleId, + method: 'delete' + }) } // 查询角色已授权用户列表 export function allocatedUserList(query) { - return request({ - url: '/system/role/authUser/allocatedList', - method: 'get', - params: query - }) + return request({ + url: '/system/role/authUser/allocatedList', + method: 'get', + params: query + }) } // 查询角色未授权用户列表 export function unallocatedUserList(query) { - return request({ - url: '/system/role/authUser/unallocatedList', - method: 'get', - params: query - }) + return request({ + url: '/system/role/authUser/unallocatedList', + method: 'get', + params: query + }) } // 取消用户授权角色 export function authUserCancel(data) { - return request({ - url: '/system/role/authUser/cancel', - method: 'put', - data: data - }) + return request({ + url: '/system/role/authUser/cancel', + method: 'put', + data: data + }) } // 批量取消用户授权角色 export function authUserCancelAll(data) { - return request({ - url: '/system/role/authUser/cancelAll', - method: 'put', - params: data - }) + return request({ + url: '/system/role/authUser/cancelAll', + method: 'put', + params: data + }) } // 授权用户选择 export function authUserSelectAll(data) { - return request({ - url: '/system/role/authUser/selectAll', - method: 'put', - params: data - }) + return request({ + url: '/system/role/authUser/selectAll', + method: 'put', + params: data + }) } // 根据角色ID查询部门树结构 export function deptTreeSelect(roleId) { - return request({ - url: '/system/role/deptTree/' + roleId, - method: 'get' - }) + return request({ + url: '/system/role/deptTree/' + roleId, + method: 'get' + }) } diff --git a/src/api/system/user.js b/src/api/system/user.js index 89d3972..d4c32ca 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -3,133 +3,133 @@ import {parseStrEmpty} from "@/utils/muyu"; // 查询用户列表 export function listUser(query) { - return request({ - url: '/system/user/list', - method: 'get', - params: query - }) + return request({ + url: '/system/user/list', + method: 'get', + params: query + }) } // 查询用户详细 export function getUser(userId) { - return request({ - url: '/system/user/' + parseStrEmpty(userId), - method: 'get' - }) + return request({ + url: '/system/user/' + parseStrEmpty(userId), + method: 'get' + }) } // 新增用户 export function addUser(data) { - return request({ - url: '/system/user', - method: 'post', - data: data - }) + return request({ + url: '/system/user', + method: 'post', + data: data + }) } // 修改用户 export function updateUser(data) { - return request({ - url: '/system/user', - method: 'put', - data: data - }) + return request({ + url: '/system/user', + method: 'put', + data: data + }) } // 删除用户 export function delUser(userId) { - return request({ - url: '/system/user/' + userId, - method: 'delete' - }) + return request({ + url: '/system/user/' + userId, + method: 'delete' + }) } // 用户密码重置 export function resetUserPwd(userId, password) { - const data = { - userId, - password - } - return request({ - url: '/system/user/resetPwd', - method: 'put', - data: data - }) + const data = { + userId, + password + } + return request({ + url: '/system/user/resetPwd', + method: 'put', + data: data + }) } // 用户状态修改 export function changeUserStatus(userId, status) { - const data = { - userId, - status - } - return request({ - url: '/system/user/changeStatus', - method: 'put', - data: data - }) + const data = { + userId, + status + } + return request({ + url: '/system/user/changeStatus', + method: 'put', + data: data + }) } // 查询用户个人信息 export function getUserProfile() { - return request({ - url: '/system/user/profile', - method: 'get' - }) + return request({ + url: '/system/user/profile', + method: 'get' + }) } // 修改用户个人信息 export function updateUserProfile(data) { - return request({ - url: '/system/user/profile', - method: 'put', - data: data - }) + return request({ + url: '/system/user/profile', + method: 'put', + data: data + }) } // 用户密码重置 export function updateUserPwd(oldPassword, newPassword) { - const data = { - oldPassword, - newPassword - } - return request({ - url: '/system/user/profile/updatePwd', - method: 'put', - params: data - }) + const data = { + oldPassword, + newPassword + } + return request({ + url: '/system/user/profile/updatePwd', + method: 'put', + params: data + }) } // 用户头像上传 export function uploadAvatar(data) { - return request({ - url: '/system/user/profile/avatar', - method: 'post', - data: data - }) + return request({ + url: '/system/user/profile/avatar', + method: 'post', + data: data + }) } // 查询授权角色 export function getAuthRole(userId) { - return request({ - url: '/system/user/authRole/' + userId, - method: 'get' - }) + return request({ + url: '/system/user/authRole/' + userId, + method: 'get' + }) } // 保存授权角色 export function updateAuthRole(data) { - return request({ - url: '/system/user/authRole', - method: 'put', - params: data - }) + return request({ + url: '/system/user/authRole', + method: 'put', + params: data + }) } // 查询部门下拉树结构 export function deptTreeSelect() { - return request({ - url: '/system/user/deptTree', - method: 'get' - }) + return request({ + url: '/system/user/deptTree', + method: 'get' + }) } diff --git a/src/api/tool/gen.js b/src/api/tool/gen.js index 3a412ac..2575df5 100644 --- a/src/api/tool/gen.js +++ b/src/api/tool/gen.js @@ -2,76 +2,76 @@ import request from '@/utils/request' // 查询生成表数据 export function listTable(query) { - return request({ - url: '/code/gen/list', - method: 'get', - params: query - }) + return request({ + url: '/code/gen/list', + method: 'get', + params: query + }) } // 查询db数据库列表 export function listDbTable(query) { - return request({ - url: '/code/gen/db/list', - method: 'get', - params: query - }) + return request({ + url: '/code/gen/db/list', + method: 'get', + params: query + }) } // 查询表详细信息 export function getGenTable(tableId) { - return request({ - url: '/code/gen/' + tableId, - method: 'get' - }) + return request({ + url: '/code/gen/' + tableId, + method: 'get' + }) } // 修改代码生成信息 export function updateGenTable(data) { - return request({ - url: '/code/gen', - method: 'put', - data: data - }) + return request({ + url: '/code/gen', + method: 'put', + data: data + }) } // 导入表 export function importTable(data) { - return request({ - url: '/code/gen/importTable', - method: 'post', - params: data - }) + return request({ + url: '/code/gen/importTable', + method: 'post', + params: data + }) } // 预览生成代码 export function previewTable(tableId) { - return request({ - url: '/code/gen/preview/' + tableId, - method: 'get' - }) + return request({ + url: '/code/gen/preview/' + tableId, + method: 'get' + }) } // 删除表数据 export function delTable(tableId) { - return request({ - url: '/code/gen/' + tableId, - method: 'delete' - }) + return request({ + url: '/code/gen/' + tableId, + method: 'delete' + }) } // 生成代码(自定义路径) export function genCode(tableName) { - return request({ - url: '/code/gen/genCode/' + tableName, - method: 'get' - }) + return request({ + url: '/code/gen/genCode/' + tableName, + method: 'get' + }) } // 同步数据库 export function synchDb(tableName) { - return request({ - url: '/code/gen/synchDb/' + tableName, - method: 'get' - }) + return request({ + url: '/code/gen/synchDb/' + tableName, + method: 'get' + }) } diff --git a/src/api/trajectory/vehicleType.js b/src/api/trajectory/vehicleType.js new file mode 100644 index 0000000..8ba5946 --- /dev/null +++ b/src/api/trajectory/vehicleType.js @@ -0,0 +1,9 @@ +import request from '@/utils/request' + +// 车辆类型 +export function getVehicleTypeList() { + return request({ + url: '/trajectory/vehicle/vehicleTypeList', + method: 'get' + }) +} diff --git a/src/assets/icons/svg/404.svg b/src/assets/icons/svg/404.svg index 323fab0..94e24e9 100644 --- a/src/assets/icons/svg/404.svg +++ b/src/assets/icons/svg/404.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/icons/svg/bug.svg b/src/assets/icons/svg/bug.svg index 17c9d4d..2d70ba2 100644 --- a/src/assets/icons/svg/bug.svg +++ b/src/assets/icons/svg/bug.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/icons/svg/build.svg b/src/assets/icons/svg/build.svg index 6a2052d..51d717f 100644 --- a/src/assets/icons/svg/build.svg +++ b/src/assets/icons/svg/build.svg @@ -1,11 +1,11 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - + + + + diff --git a/src/assets/icons/svg/button.svg b/src/assets/icons/svg/button.svg index 9d4a2ca..2ba88ad 100644 --- a/src/assets/icons/svg/button.svg +++ b/src/assets/icons/svg/button.svg @@ -1,10 +1,10 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - + + + + diff --git a/src/assets/icons/svg/cascader.svg b/src/assets/icons/svg/cascader.svg index ab50e47..d42748d 100644 --- a/src/assets/icons/svg/cascader.svg +++ b/src/assets/icons/svg/cascader.svg @@ -1,11 +1,11 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - + + + + diff --git a/src/assets/icons/svg/chart.svg b/src/assets/icons/svg/chart.svg index c13fe1f..362958f 100644 --- a/src/assets/icons/svg/chart.svg +++ b/src/assets/icons/svg/chart.svg @@ -1,3 +1,3 @@ - + diff --git a/src/assets/icons/svg/checkbox.svg b/src/assets/icons/svg/checkbox.svg index 4e04af0..c7b90d3 100644 --- a/src/assets/icons/svg/checkbox.svg +++ b/src/assets/icons/svg/checkbox.svg @@ -1,14 +1,14 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - - + + + + + diff --git a/src/assets/icons/svg/client.svg b/src/assets/icons/svg/client.svg index cdb2cfa..cab6480 100644 --- a/src/assets/icons/svg/client.svg +++ b/src/assets/icons/svg/client.svg @@ -1,18 +1,18 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - - - - + + + + + + + diff --git a/src/assets/icons/svg/clipboard.svg b/src/assets/icons/svg/clipboard.svg index fbe9e7f..c1a5d7f 100644 --- a/src/assets/icons/svg/clipboard.svg +++ b/src/assets/icons/svg/clipboard.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/icons/svg/code.svg b/src/assets/icons/svg/code.svg index cc643f2..dcefda6 100644 --- a/src/assets/icons/svg/code.svg +++ b/src/assets/icons/svg/code.svg @@ -1,11 +1,11 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - + + + + diff --git a/src/assets/icons/svg/color.svg b/src/assets/icons/svg/color.svg index 379b22e..2384e16 100644 --- a/src/assets/icons/svg/color.svg +++ b/src/assets/icons/svg/color.svg @@ -1,14 +1,14 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - - + + + + + diff --git a/src/assets/icons/svg/component.svg b/src/assets/icons/svg/component.svg index eac786c..1ae1c9e 100644 --- a/src/assets/icons/svg/component.svg +++ b/src/assets/icons/svg/component.svg @@ -1,11 +1,11 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - + + + + diff --git a/src/assets/icons/svg/dashboard.svg b/src/assets/icons/svg/dashboard.svg index e2486bc..559ec4b 100644 --- a/src/assets/icons/svg/dashboard.svg +++ b/src/assets/icons/svg/dashboard.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/icons/svg/date-range.svg b/src/assets/icons/svg/date-range.svg index ccb4a8f..70afc97 100644 --- a/src/assets/icons/svg/date-range.svg +++ b/src/assets/icons/svg/date-range.svg @@ -1,14 +1,14 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - - + + + + + diff --git a/src/assets/icons/svg/date.svg b/src/assets/icons/svg/date.svg index 296cfc0..df15217 100644 --- a/src/assets/icons/svg/date.svg +++ b/src/assets/icons/svg/date.svg @@ -1,11 +1,11 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - + + + + diff --git a/src/assets/icons/svg/dict.svg b/src/assets/icons/svg/dict.svg index 3a5ba31..4dec937 100644 --- a/src/assets/icons/svg/dict.svg +++ b/src/assets/icons/svg/dict.svg @@ -1,14 +1,14 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - - + + + + + diff --git a/src/assets/icons/svg/documentation.svg b/src/assets/icons/svg/documentation.svg index ae893ac..3f91bde 100644 --- a/src/assets/icons/svg/documentation.svg +++ b/src/assets/icons/svg/documentation.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/icons/svg/download.svg b/src/assets/icons/svg/download.svg index b2d79f7..b7ea5ed 100644 --- a/src/assets/icons/svg/download.svg +++ b/src/assets/icons/svg/download.svg @@ -1,14 +1,14 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - - + + + + + diff --git a/src/assets/icons/svg/drag.svg b/src/assets/icons/svg/drag.svg index 3e822c5..6af403d 100644 --- a/src/assets/icons/svg/drag.svg +++ b/src/assets/icons/svg/drag.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/icons/svg/druid.svg b/src/assets/icons/svg/druid.svg index 0e417f2..80c5fee 100644 --- a/src/assets/icons/svg/druid.svg +++ b/src/assets/icons/svg/druid.svg @@ -1,11 +1,11 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - + + + + diff --git a/src/assets/icons/svg/edit.svg b/src/assets/icons/svg/edit.svg index b86ee40..e36d212 100644 --- a/src/assets/icons/svg/edit.svg +++ b/src/assets/icons/svg/edit.svg @@ -1,6 +1,6 @@ - - + + diff --git a/src/assets/icons/svg/education.svg b/src/assets/icons/svg/education.svg index 5fb9a14..fd3b92d 100644 --- a/src/assets/icons/svg/education.svg +++ b/src/assets/icons/svg/education.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/icons/svg/email.svg b/src/assets/icons/svg/email.svg index d4f9951..0cbab19 100644 --- a/src/assets/icons/svg/email.svg +++ b/src/assets/icons/svg/email.svg @@ -1,5 +1,5 @@ - - + + diff --git a/src/assets/icons/svg/example.svg b/src/assets/icons/svg/example.svg index aec80f6..17db4d5 100644 --- a/src/assets/icons/svg/example.svg +++ b/src/assets/icons/svg/example.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/icons/svg/excel.svg b/src/assets/icons/svg/excel.svg index b0904ac..b49b9f8 100644 --- a/src/assets/icons/svg/excel.svg +++ b/src/assets/icons/svg/excel.svg @@ -1,6 +1,6 @@ - - + + diff --git a/src/assets/icons/svg/exit-fullscreen.svg b/src/assets/icons/svg/exit-fullscreen.svg index 93b97a7..1f7113b 100644 --- a/src/assets/icons/svg/exit-fullscreen.svg +++ b/src/assets/icons/svg/exit-fullscreen.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/icons/svg/eye-open.svg b/src/assets/icons/svg/eye-open.svg index 9d3a641..d70825a 100644 --- a/src/assets/icons/svg/eye-open.svg +++ b/src/assets/icons/svg/eye-open.svg @@ -1,7 +1,7 @@ - - - - + + + + diff --git a/src/assets/icons/svg/eye.svg b/src/assets/icons/svg/eye.svg index 7a852d3..e296996 100644 --- a/src/assets/icons/svg/eye.svg +++ b/src/assets/icons/svg/eye.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/icons/svg/form.svg b/src/assets/icons/svg/form.svg index eda0129..ae370d6 100644 --- a/src/assets/icons/svg/form.svg +++ b/src/assets/icons/svg/form.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/icons/svg/fullscreen.svg b/src/assets/icons/svg/fullscreen.svg index ec32141..d5a749a 100644 --- a/src/assets/icons/svg/fullscreen.svg +++ b/src/assets/icons/svg/fullscreen.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/icons/svg/github.svg b/src/assets/icons/svg/github.svg index 20a4748..cc9b7c4 100644 --- a/src/assets/icons/svg/github.svg +++ b/src/assets/icons/svg/github.svg @@ -1,11 +1,11 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - + + + + diff --git a/src/assets/icons/svg/guide.svg b/src/assets/icons/svg/guide.svg index 438b17c..60f56ef 100644 --- a/src/assets/icons/svg/guide.svg +++ b/src/assets/icons/svg/guide.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/icons/svg/icon.svg b/src/assets/icons/svg/icon.svg index c459f7a..4dab2d1 100644 --- a/src/assets/icons/svg/icon.svg +++ b/src/assets/icons/svg/icon.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/icons/svg/input.svg b/src/assets/icons/svg/input.svg index 73a10ef..e24c436 100644 --- a/src/assets/icons/svg/input.svg +++ b/src/assets/icons/svg/input.svg @@ -1,13 +1,13 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - - + + + + + diff --git a/src/assets/icons/svg/international.svg b/src/assets/icons/svg/international.svg index 7c0c15a..7209075 100644 --- a/src/assets/icons/svg/international.svg +++ b/src/assets/icons/svg/international.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/icons/svg/job.svg b/src/assets/icons/svg/job.svg index 8ae38ad..62686fd 100644 --- a/src/assets/icons/svg/job.svg +++ b/src/assets/icons/svg/job.svg @@ -1,20 +1,20 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - - - - + + + + + + + diff --git a/src/assets/icons/svg/language.svg b/src/assets/icons/svg/language.svg index 8aa086b..baa1738 100644 --- a/src/assets/icons/svg/language.svg +++ b/src/assets/icons/svg/language.svg @@ -1,6 +1,6 @@ - - + + diff --git a/src/assets/icons/svg/link.svg b/src/assets/icons/svg/link.svg index c783b80..4734f5a 100644 --- a/src/assets/icons/svg/link.svg +++ b/src/assets/icons/svg/link.svg @@ -1,5 +1,5 @@ - - - + + + diff --git a/src/assets/icons/svg/list.svg b/src/assets/icons/svg/list.svg index 0fb4626..fc77059 100644 --- a/src/assets/icons/svg/list.svg +++ b/src/assets/icons/svg/list.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/icons/svg/lock.svg b/src/assets/icons/svg/lock.svg index 5eb0814..cb2b18c 100644 --- a/src/assets/icons/svg/lock.svg +++ b/src/assets/icons/svg/lock.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/icons/svg/log.svg b/src/assets/icons/svg/log.svg index 41ce5b9..a710b42 100644 --- a/src/assets/icons/svg/log.svg +++ b/src/assets/icons/svg/log.svg @@ -1,11 +1,11 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - + + + + diff --git a/src/assets/icons/svg/logininfor.svg b/src/assets/icons/svg/logininfor.svg index 5279ad8..ff6fa29 100644 --- a/src/assets/icons/svg/logininfor.svg +++ b/src/assets/icons/svg/logininfor.svg @@ -1,14 +1,14 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - - + + + + + diff --git a/src/assets/icons/svg/message.svg b/src/assets/icons/svg/message.svg index 7a1cd2c..f244bd1 100644 --- a/src/assets/icons/svg/message.svg +++ b/src/assets/icons/svg/message.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/icons/svg/money.svg b/src/assets/icons/svg/money.svg index 911d5a9..34862b7 100644 --- a/src/assets/icons/svg/money.svg +++ b/src/assets/icons/svg/money.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/icons/svg/monitor.svg b/src/assets/icons/svg/monitor.svg index cb16601..ea711e1 100644 --- a/src/assets/icons/svg/monitor.svg +++ b/src/assets/icons/svg/monitor.svg @@ -1,16 +1,16 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - - - + + + + + + diff --git a/src/assets/icons/svg/nacos.svg b/src/assets/icons/svg/nacos.svg index ec2d2b4..9fcc8f7 100644 --- a/src/assets/icons/svg/nacos.svg +++ b/src/assets/icons/svg/nacos.svg @@ -1,13 +1,13 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - - - + + + + + + diff --git a/src/assets/icons/svg/nested.svg b/src/assets/icons/svg/nested.svg index 259a491..a6c5f2a 100644 --- a/src/assets/icons/svg/nested.svg +++ b/src/assets/icons/svg/nested.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/icons/svg/number.svg b/src/assets/icons/svg/number.svg index d7154d4..8b73573 100644 --- a/src/assets/icons/svg/number.svg +++ b/src/assets/icons/svg/number.svg @@ -1,11 +1,11 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - + + + + diff --git a/src/assets/icons/svg/online.svg b/src/assets/icons/svg/online.svg index d455749..a055b27 100644 --- a/src/assets/icons/svg/online.svg +++ b/src/assets/icons/svg/online.svg @@ -1,11 +1,11 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - + + + + diff --git a/src/assets/icons/svg/password.svg b/src/assets/icons/svg/password.svg index 7ad1721..f030788 100644 --- a/src/assets/icons/svg/password.svg +++ b/src/assets/icons/svg/password.svg @@ -1,11 +1,11 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - + + + + diff --git a/src/assets/icons/svg/pdf.svg b/src/assets/icons/svg/pdf.svg index 6ad6481..bff4fd2 100644 --- a/src/assets/icons/svg/pdf.svg +++ b/src/assets/icons/svg/pdf.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/icons/svg/people.svg b/src/assets/icons/svg/people.svg index a1828c5..506def8 100644 --- a/src/assets/icons/svg/people.svg +++ b/src/assets/icons/svg/people.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/icons/svg/peoples.svg b/src/assets/icons/svg/peoples.svg index 1b0aefb..dd943d2 100644 --- a/src/assets/icons/svg/peoples.svg +++ b/src/assets/icons/svg/peoples.svg @@ -1,6 +1,6 @@ - - + + diff --git a/src/assets/icons/svg/phone.svg b/src/assets/icons/svg/phone.svg index 2110974..b982e55 100644 --- a/src/assets/icons/svg/phone.svg +++ b/src/assets/icons/svg/phone.svg @@ -1,11 +1,11 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - + + + + diff --git a/src/assets/icons/svg/post.svg b/src/assets/icons/svg/post.svg index ce2a5a0..02db519 100644 --- a/src/assets/icons/svg/post.svg +++ b/src/assets/icons/svg/post.svg @@ -1,14 +1,14 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - - + + + + + diff --git a/src/assets/icons/svg/qq.svg b/src/assets/icons/svg/qq.svg index f3fee6c..f551415 100644 --- a/src/assets/icons/svg/qq.svg +++ b/src/assets/icons/svg/qq.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/icons/svg/question.svg b/src/assets/icons/svg/question.svg index 52f2a34..0a7a316 100644 --- a/src/assets/icons/svg/question.svg +++ b/src/assets/icons/svg/question.svg @@ -1,11 +1,11 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - + + + + diff --git a/src/assets/icons/svg/radio.svg b/src/assets/icons/svg/radio.svg index 7c06c8f..2f8b15e 100644 --- a/src/assets/icons/svg/radio.svg +++ b/src/assets/icons/svg/radio.svg @@ -1,11 +1,11 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - + + + + diff --git a/src/assets/icons/svg/rate.svg b/src/assets/icons/svg/rate.svg index a20c4a3..35fc95d 100644 --- a/src/assets/icons/svg/rate.svg +++ b/src/assets/icons/svg/rate.svg @@ -1,11 +1,11 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - + + + + diff --git a/src/assets/icons/svg/row.svg b/src/assets/icons/svg/row.svg index 47b2aa7..37b4b07 100644 --- a/src/assets/icons/svg/row.svg +++ b/src/assets/icons/svg/row.svg @@ -1,11 +1,11 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - + + + + diff --git a/src/assets/icons/svg/search.svg b/src/assets/icons/svg/search.svg index d885146..d041413 100644 --- a/src/assets/icons/svg/search.svg +++ b/src/assets/icons/svg/search.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/icons/svg/select.svg b/src/assets/icons/svg/select.svg index 55205fa..3546089 100644 --- a/src/assets/icons/svg/select.svg +++ b/src/assets/icons/svg/select.svg @@ -1,11 +1,11 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - + + + + diff --git a/src/assets/icons/svg/sentinel.svg b/src/assets/icons/svg/sentinel.svg index d82299c..e762fb6 100644 --- a/src/assets/icons/svg/sentinel.svg +++ b/src/assets/icons/svg/sentinel.svg @@ -1,34 +1,34 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - - - - - - - - - + + + + + + + + + + + + diff --git a/src/assets/icons/svg/server.svg b/src/assets/icons/svg/server.svg index 2476705..13dbdec 100644 --- a/src/assets/icons/svg/server.svg +++ b/src/assets/icons/svg/server.svg @@ -1,11 +1,11 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - + + + + diff --git a/src/assets/icons/svg/shopping.svg b/src/assets/icons/svg/shopping.svg index 1c4df93..4ab811b 100644 --- a/src/assets/icons/svg/shopping.svg +++ b/src/assets/icons/svg/shopping.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/icons/svg/size.svg b/src/assets/icons/svg/size.svg index f8c0c31..0b7f384 100644 --- a/src/assets/icons/svg/size.svg +++ b/src/assets/icons/svg/size.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/icons/svg/skill.svg b/src/assets/icons/svg/skill.svg index 8bab00e..e01b182 100644 --- a/src/assets/icons/svg/skill.svg +++ b/src/assets/icons/svg/skill.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/icons/svg/slider.svg b/src/assets/icons/svg/slider.svg index 26e6933..fd13d39 100644 --- a/src/assets/icons/svg/slider.svg +++ b/src/assets/icons/svg/slider.svg @@ -1,11 +1,11 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - + + + + diff --git a/src/assets/icons/svg/star.svg b/src/assets/icons/svg/star.svg index 567cf31..6c9f130 100644 --- a/src/assets/icons/svg/star.svg +++ b/src/assets/icons/svg/star.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/icons/svg/swagger.svg b/src/assets/icons/svg/swagger.svg index dc6a6c7..724fd2f 100644 --- a/src/assets/icons/svg/swagger.svg +++ b/src/assets/icons/svg/swagger.svg @@ -1,11 +1,11 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - + + + + diff --git a/src/assets/icons/svg/switch.svg b/src/assets/icons/svg/switch.svg index feff60e..32c89cc 100644 --- a/src/assets/icons/svg/switch.svg +++ b/src/assets/icons/svg/switch.svg @@ -1,12 +1,12 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - - + + + + + diff --git a/src/assets/icons/svg/system.svg b/src/assets/icons/svg/system.svg index 6132ae4..a9f922a 100644 --- a/src/assets/icons/svg/system.svg +++ b/src/assets/icons/svg/system.svg @@ -1,14 +1,14 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - + + + + diff --git a/src/assets/icons/svg/tab.svg b/src/assets/icons/svg/tab.svg index 9ec0ed7..3f46a9a 100644 --- a/src/assets/icons/svg/tab.svg +++ b/src/assets/icons/svg/tab.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/icons/svg/table.svg b/src/assets/icons/svg/table.svg index bf841c3..d4b8029 100644 --- a/src/assets/icons/svg/table.svg +++ b/src/assets/icons/svg/table.svg @@ -1,6 +1,6 @@ - - + + diff --git a/src/assets/icons/svg/textarea.svg b/src/assets/icons/svg/textarea.svg index b8cea3c..00cc00f 100644 --- a/src/assets/icons/svg/textarea.svg +++ b/src/assets/icons/svg/textarea.svg @@ -1,14 +1,14 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - - + + + + + diff --git a/src/assets/icons/svg/theme.svg b/src/assets/icons/svg/theme.svg index 1ef0e35..c69375b 100644 --- a/src/assets/icons/svg/theme.svg +++ b/src/assets/icons/svg/theme.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/icons/svg/time-range.svg b/src/assets/icons/svg/time-range.svg index 73a331d..e285e32 100644 --- a/src/assets/icons/svg/time-range.svg +++ b/src/assets/icons/svg/time-range.svg @@ -1,26 +1,26 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - - - - - - + + + + + + + + + diff --git a/src/assets/icons/svg/time.svg b/src/assets/icons/svg/time.svg index 618b895..3299ea9 100644 --- a/src/assets/icons/svg/time.svg +++ b/src/assets/icons/svg/time.svg @@ -1,11 +1,11 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - + + + + diff --git a/src/assets/icons/svg/tool.svg b/src/assets/icons/svg/tool.svg index 50aa5ae..8200b3e 100644 --- a/src/assets/icons/svg/tool.svg +++ b/src/assets/icons/svg/tool.svg @@ -1,11 +1,11 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - + + + + diff --git a/src/assets/icons/svg/tree-table.svg b/src/assets/icons/svg/tree-table.svg index 8522bfe..e8bf09f 100644 --- a/src/assets/icons/svg/tree-table.svg +++ b/src/assets/icons/svg/tree-table.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/icons/svg/tree.svg b/src/assets/icons/svg/tree.svg index 83d7146..55fc147 100644 --- a/src/assets/icons/svg/tree.svg +++ b/src/assets/icons/svg/tree.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/icons/svg/upload.svg b/src/assets/icons/svg/upload.svg index 7a80f1e..500daf9 100644 --- a/src/assets/icons/svg/upload.svg +++ b/src/assets/icons/svg/upload.svg @@ -1,11 +1,11 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - + + + + diff --git a/src/assets/icons/svg/user.svg b/src/assets/icons/svg/user.svg index cb70afd..3a0e7fe 100644 --- a/src/assets/icons/svg/user.svg +++ b/src/assets/icons/svg/user.svg @@ -1,5 +1,5 @@ - + diff --git a/src/assets/icons/svg/validCode.svg b/src/assets/icons/svg/validCode.svg index 55ac795..f970d30 100644 --- a/src/assets/icons/svg/validCode.svg +++ b/src/assets/icons/svg/validCode.svg @@ -1,14 +1,14 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - - - + + + + + diff --git a/src/assets/icons/svg/wechat.svg b/src/assets/icons/svg/wechat.svg index 44daf1a..00f797f 100644 --- a/src/assets/icons/svg/wechat.svg +++ b/src/assets/icons/svg/wechat.svg @@ -1,6 +1,6 @@ - - + + diff --git a/src/assets/icons/svg/zip.svg b/src/assets/icons/svg/zip.svg index 47acb70..700b73c 100644 --- a/src/assets/icons/svg/zip.svg +++ b/src/assets/icons/svg/zip.svg @@ -1,4 +1,4 @@ - + diff --git a/src/assets/images/dark.svg b/src/assets/images/dark.svg index 1916807..1730c2d 100644 --- a/src/assets/images/dark.svg +++ b/src/assets/images/dark.svg @@ -2,40 +2,42 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - diff --git a/src/assets/images/light.svg b/src/assets/images/light.svg index da94405..7b3fd55 100644 --- a/src/assets/images/light.svg +++ b/src/assets/images/light.svg @@ -2,40 +2,42 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - diff --git a/src/components/Crontab/index.vue b/src/components/Crontab/index.vue index 56e7a4e..151ff91 100644 --- a/src/components/Crontab/index.vue +++ b/src/components/Crontab/index.vue @@ -3,64 +3,64 @@ @@ -189,8 +189,8 @@ export default { // 赋值到组件 changeRadio(name, value) { let arr = ["second", "min", "hour", "month"], - refName = "cron" + name, - insValue; + refName = "cron" + name, + insValue; if (!this.$refs[refName]) return; @@ -200,15 +200,15 @@ export default { } else if (value.indexOf("-") > -1) { let indexArr = value.split("-"); isNaN(indexArr[0]) - ? (this.$refs[refName].cycle01 = 0) - : (this.$refs[refName].cycle01 = indexArr[0]); + ? (this.$refs[refName].cycle01 = 0) + : (this.$refs[refName].cycle01 = indexArr[0]); this.$refs[refName].cycle02 = indexArr[1]; insValue = 2; } else if (value.indexOf("/") > -1) { let indexArr = value.split("/"); isNaN(indexArr[0]) - ? (this.$refs[refName].average01 = 0) - : (this.$refs[refName].average01 = indexArr[0]); + ? (this.$refs[refName].average01 = 0) + : (this.$refs[refName].average01 = indexArr[0]); this.$refs[refName].average02 = indexArr[1]; insValue = 3; } else { @@ -223,22 +223,22 @@ export default { } else if (value.indexOf("-") > -1) { let indexArr = value.split("-"); isNaN(indexArr[0]) - ? (this.$refs[refName].cycle01 = 0) - : (this.$refs[refName].cycle01 = indexArr[0]); + ? (this.$refs[refName].cycle01 = 0) + : (this.$refs[refName].cycle01 = indexArr[0]); this.$refs[refName].cycle02 = indexArr[1]; insValue = 3; } else if (value.indexOf("/") > -1) { let indexArr = value.split("/"); isNaN(indexArr[0]) - ? (this.$refs[refName].average01 = 0) - : (this.$refs[refName].average01 = indexArr[0]); + ? (this.$refs[refName].average01 = 0) + : (this.$refs[refName].average01 = indexArr[0]); this.$refs[refName].average02 = indexArr[1]; insValue = 4; } else if (value.indexOf("W") > -1) { let indexArr = value.split("W"); isNaN(indexArr[0]) - ? (this.$refs[refName].workday = 0) - : (this.$refs[refName].workday = indexArr[0]); + ? (this.$refs[refName].workday = 0) + : (this.$refs[refName].workday = indexArr[0]); insValue = 5; } else if (value === "L") { insValue = 6; @@ -254,22 +254,22 @@ export default { } else if (value.indexOf("-") > -1) { let indexArr = value.split("-"); isNaN(indexArr[0]) - ? (this.$refs[refName].cycle01 = 0) - : (this.$refs[refName].cycle01 = indexArr[0]); + ? (this.$refs[refName].cycle01 = 0) + : (this.$refs[refName].cycle01 = indexArr[0]); this.$refs[refName].cycle02 = indexArr[1]; insValue = 3; } else if (value.indexOf("#") > -1) { let indexArr = value.split("#"); isNaN(indexArr[0]) - ? (this.$refs[refName].average01 = 1) - : (this.$refs[refName].average01 = indexArr[0]); + ? (this.$refs[refName].average01 = 1) + : (this.$refs[refName].average01 = indexArr[0]); this.$refs[refName].average02 = indexArr[1]; insValue = 4; } else if (value.indexOf("L") > -1) { let indexArr = value.split("L"); isNaN(indexArr[0]) - ? (this.$refs[refName].weekday = 1) - : (this.$refs[refName].weekday = indexArr[0]); + ? (this.$refs[refName].weekday = 1) + : (this.$refs[refName].weekday = indexArr[0]); insValue = 5; } else { this.$refs[refName].checkboxList = value.split(","); @@ -332,18 +332,18 @@ export default { crontabValueString: function () { let obj = this.crontabValueObj; let str = - obj.second + - " " + - obj.min + - " " + - obj.hour + - " " + - obj.day + - " " + - obj.month + - " " + - obj.week + - (obj.year == "" ? "" : " " + obj.year); + obj.second + + " " + + obj.min + + " " + + obj.hour + + " " + + obj.day + + " " + + obj.month + + " " + + obj.week + + (obj.year == "" ? "" : " " + obj.year); return str; }, }, diff --git a/src/components/Crontab/week.vue b/src/components/Crontab/week.vue index 31a8bbc..d473248 100644 --- a/src/components/Crontab/week.vue +++ b/src/components/Crontab/week.vue @@ -17,22 +17,22 @@ 周期从星期 {{ item.value }} - {{ item.value }} diff --git a/src/components/DictData/index.js b/src/components/DictData/index.js index b78235f..3c110d3 100644 --- a/src/components/DictData/index.js +++ b/src/components/DictData/index.js @@ -4,48 +4,48 @@ import DataDict from '@/utils/dict' import {getDicts as getDicts} from '@/api/system/dict/data' function searchDictByKey(dict, key) { - if (key == null && key == "") { - return null - } - try { - for (let i = 0; i < dict.length; i++) { - if (dict[i].key == key) { - return dict[i].value - } + if (key == null && key == "") { + return null + } + try { + for (let i = 0; i < dict.length; i++) { + if (dict[i].key == key) { + return dict[i].value + } + } + } catch (e) { + return null } - } catch (e) { - return null - } } function install() { - Vue.use(DataDict, { - metas: { - '*': { - labelField: 'dictLabel', - valueField: 'dictValue', - request(dictMeta) { - const storeDict = searchDictByKey(store.getters.dict, dictMeta.type) - if (storeDict) { - return new Promise(resolve => { - resolve(storeDict) - }) - } else { - return new Promise((resolve, reject) => { - getDicts(dictMeta.type).then(res => { - store.dispatch('dict/setDict', {key: dictMeta.type, value: res.data}) - resolve(res.data) - }).catch(error => { - reject(error) - }) - }) - } + Vue.use(DataDict, { + metas: { + '*': { + labelField: 'dictLabel', + valueField: 'dictValue', + request(dictMeta) { + const storeDict = searchDictByKey(store.getters.dict, dictMeta.type) + if (storeDict) { + return new Promise(resolve => { + resolve(storeDict) + }) + } else { + return new Promise((resolve, reject) => { + getDicts(dictMeta.type).then(res => { + store.dispatch('dict/setDict', {key: dictMeta.type, value: res.data}) + resolve(res.data) + }).catch(error => { + reject(error) + }) + }) + } + }, + }, }, - }, - }, - }) + }) } export default { - install, + install, } diff --git a/src/components/DictTag/index.vue b/src/components/DictTag/index.vue index 82db444..ba8c05f 100644 --- a/src/components/DictTag/index.vue +++ b/src/components/DictTag/index.vue @@ -3,19 +3,19 @@