diff --git a/.gitee/ISSUE_TEMPLATE.zh-CN.md b/.gitee/ISSUE_TEMPLATE.zh-CN.md deleted file mode 100644 index 2c87cb9e..00000000 --- a/.gitee/ISSUE_TEMPLATE.zh-CN.md +++ /dev/null @@ -1,22 +0,0 @@ -### 该问题是怎么引起的? - - - -### 浏览器类型 - - - -### Vue版本 - - - -### .NetCore版本 - - - -### 报错信息 - - - - -### 拉取代码时间 diff --git a/ZR.Admin.WebApi/Controllers/mes/pro/ProWorkplanController.cs b/ZR.Admin.WebApi/Controllers/mes/pro/ProWorkplanController.cs index b2b883c8..89a0027b 100644 --- a/ZR.Admin.WebApi/Controllers/mes/pro/ProWorkplanController.cs +++ b/ZR.Admin.WebApi/Controllers/mes/pro/ProWorkplanController.cs @@ -21,7 +21,7 @@ namespace ZR.Admin.WebApi.Controllers.MES.pro } [HttpGet("list")] - public IActionResult List(int pageNum, int pageSize, int year, int week, string partNumber = "", string color = "") + public IActionResult List(int pageNum, int pageSize, int year=-1, int week=-1, string partNumber = "", string color = "") { (List,int) data = proWorkplanService.GetAllData(pageNum, pageSize, year, week, partNumber, color); diff --git a/ZR.Vue/.editorconfig b/ZR.Vue/.editorconfig deleted file mode 100644 index 7034f9bf..00000000 --- a/ZR.Vue/.editorconfig +++ /dev/null @@ -1,22 +0,0 @@ -# 鍛婅瘔EditorConfig鎻掍欢锛岃繖鏄牴鏂囦欢锛屼笉鐢ㄧ户缁線涓婃煡鎵 -root = true - -# 鍖归厤鍏ㄩ儴鏂囦欢 -[*] -# 璁剧疆瀛楃闆 -charset = utf-8 -# 缂╄繘椋庢牸锛屽彲閫塻pace銆乼ab -indent_style = space -# 缂╄繘鐨勭┖鏍兼暟 -indent_size = 2 -# 缁撳熬鎹㈣绗︼紝鍙塴f銆乧r銆乧rlf -end_of_line = lf -# 鍦ㄦ枃浠剁粨灏炬彃鍏ユ柊琛 -insert_final_newline = true -# 鍒犻櫎涓琛屼腑鐨勫墠鍚庣┖鏍 -trim_trailing_whitespace = true - -# 鍖归厤md缁撳熬鐨勬枃浠 -[*.md] -insert_final_newline = false -trim_trailing_whitespace = false diff --git a/ZR.Vue/.env.development b/ZR.Vue/.env.development deleted file mode 100644 index 3b7d6996..00000000 --- a/ZR.Vue/.env.development +++ /dev/null @@ -1,18 +0,0 @@ -# 寮鍙戠幆澧冮厤缃 -ENV = 'development' - -# 椤甸潰鏍囬 -VUE_APP_TITLE = '涓婃捣骞插贩MES' - -# 寮鍙戠幆澧 -VUE_APP_BASE_API = '/dev-api' - -#socket API -VUE_APP_SOCKET_API = '/msgHub' - - -# 璺敱鍓嶇紑 -VUE_APP_ROUTER_PREFIX = '/' - -# 榛樿涓婁紶鍦板潃 -VUE_APP_UPLOAD_URL = '/Common/UploadFile' \ No newline at end of file diff --git a/ZR.Vue/.env.production b/ZR.Vue/.env.production deleted file mode 100644 index 43309609..00000000 --- a/ZR.Vue/.env.production +++ /dev/null @@ -1,17 +0,0 @@ -# 鐢熶骇鐜閰嶇疆 -ENV = 'production' - -# 椤甸潰鏍囬 -VUE_APP_TITLE = '涓婃捣骞插贩MES' - -# 鐢熶骇鐜 -VUE_APP_BASE_API = '/prod-api' - -#socket API -VUE_APP_SOCKET_API = '/msgHub' - -# 璺敱鍓嶇紑 -VUE_APP_ROUTER_PREFIX = '/' - -# 榛樿涓婁紶鍦板潃 -VUE_APP_UPLOAD_URL = '/Common/UploadFile' \ No newline at end of file diff --git a/ZR.Vue/.env.staging b/ZR.Vue/.env.staging deleted file mode 100644 index ef9eee6e..00000000 --- a/ZR.Vue/.env.staging +++ /dev/null @@ -1,17 +0,0 @@ -# 娴嬭瘯鐜閰嶇疆 -ENV = 'staging' - -# 椤甸潰鏍囬 -VUE_APP_TITLE = '涓婃捣骞插贩MES' - -# 娴嬭瘯鐜 -VUE_APP_BASE_API = '/stage-api' - -#socket API -VUE_APP_SOCKET_API = '/msgHub' - -# 璺敱鍓嶇紑 -VUE_APP_ROUTER_PREFIX = '/' - -# 榛樿涓婁紶鍦板潃 -VUE_APP_UPLOAD_URL = '/Common/UploadFile' \ No newline at end of file diff --git a/ZR.Vue/.eslintignore b/ZR.Vue/.eslintignore deleted file mode 100644 index 89be6f65..00000000 --- a/ZR.Vue/.eslintignore +++ /dev/null @@ -1,10 +0,0 @@ -# 蹇界暐build鐩綍涓嬬被鍨嬩负js鐨勬枃浠剁殑璇硶妫鏌 -build/*.js -# 蹇界暐src/assets鐩綍涓嬫枃浠剁殑璇硶妫鏌 -src/assets -# 蹇界暐public鐩綍涓嬫枃浠剁殑璇硶妫鏌 -public -# 蹇界暐褰撳墠鐩綍涓嬩负js鐨勬枃浠剁殑璇硶妫鏌 -*.js -# 蹇界暐褰撳墠鐩綍涓嬩负vue鐨勬枃浠剁殑璇硶妫鏌 -*.vue \ No newline at end of file diff --git a/ZR.Vue/.eslintrc.js b/ZR.Vue/.eslintrc.js deleted file mode 100644 index 82bbdeea..00000000 --- a/ZR.Vue/.eslintrc.js +++ /dev/null @@ -1,199 +0,0 @@ -// ESlint 妫鏌ラ厤缃 -module.exports = { - root: true, - parserOptions: { - parser: 'babel-eslint', - sourceType: 'module' - }, - env: { - browser: true, - node: true, - es6: true, - }, - extends: ['plugin:vue/recommended', 'eslint:recommended'], - - // add your custom rules here - //it is base on https://github.com/vuejs/eslint-config-vue - rules: { - "vue/max-attributes-per-line": [2, { - "singleline": 10, - "multiline": { - "max": 1, - "allowFirstLine": false - } - }], - "vue/singleline-html-element-content-newline": "off", - "vue/multiline-html-element-content-newline":"off", - "vue/name-property-casing": ["error", "PascalCase"], - "vue/no-v-html": "off", - 'accessor-pairs': 2, - 'arrow-spacing': [2, { - 'before': true, - 'after': true - }], - 'block-spacing': [2, 'always'], - 'brace-style': [2, '1tbs', { - 'allowSingleLine': true - }], - 'camelcase': [0, { - 'properties': 'always' - }], - 'comma-dangle': [2, 'never'], - 'comma-spacing': [2, { - 'before': false, - 'after': true - }], - 'comma-style': [2, 'last'], - 'constructor-super': 2, - 'curly': [2, 'multi-line'], - 'dot-location': [2, 'property'], - 'eol-last': 2, - 'eqeqeq': ["error", "always", {"null": "ignore"}], - 'generator-star-spacing': [2, { - 'before': true, - 'after': true - }], - 'handle-callback-err': [2, '^(err|error)$'], - 'indent': [2, 2, { - 'SwitchCase': 1 - }], - 'jsx-quotes': [2, 'prefer-single'], - 'key-spacing': [2, { - 'beforeColon': false, - 'afterColon': true - }], - 'keyword-spacing': [2, { - 'before': true, - 'after': true - }], - 'new-cap': [2, { - 'newIsCap': true, - 'capIsNew': false - }], - 'new-parens': 2, - 'no-array-constructor': 2, - 'no-caller': 2, - 'no-console': 'off', - 'no-class-assign': 2, - 'no-cond-assign': 2, - 'no-const-assign': 2, - 'no-control-regex': 0, - 'no-delete-var': 2, - 'no-dupe-args': 2, - 'no-dupe-class-members': 2, - 'no-dupe-keys': 2, - 'no-duplicate-case': 2, - 'no-empty-character-class': 2, - 'no-empty-pattern': 2, - 'no-eval': 2, - 'no-ex-assign': 2, - 'no-extend-native': 2, - 'no-extra-bind': 2, - 'no-extra-boolean-cast': 2, - 'no-extra-parens': [2, 'functions'], - 'no-fallthrough': 2, - 'no-floating-decimal': 2, - 'no-func-assign': 2, - 'no-implied-eval': 2, - 'no-inner-declarations': [2, 'functions'], - 'no-invalid-regexp': 2, - 'no-irregular-whitespace': 2, - 'no-iterator': 2, - 'no-label-var': 2, - 'no-labels': [2, { - 'allowLoop': false, - 'allowSwitch': false - }], - 'no-lone-blocks': 2, - 'no-mixed-spaces-and-tabs': 2, - 'no-multi-spaces': 2, - 'no-multi-str': 2, - 'no-multiple-empty-lines': [2, { - 'max': 1 - }], - 'no-native-reassign': 2, - 'no-negated-in-lhs': 2, - 'no-new-object': 2, - 'no-new-require': 2, - 'no-new-symbol': 2, - 'no-new-wrappers': 2, - 'no-obj-calls': 2, - 'no-octal': 2, - 'no-octal-escape': 2, - 'no-path-concat': 2, - 'no-proto': 2, - 'no-redeclare': 2, - 'no-regex-spaces': 2, - 'no-return-assign': [2, 'except-parens'], - 'no-self-assign': 2, - 'no-self-compare': 2, - 'no-sequences': 2, - 'no-shadow-restricted-names': 2, - 'no-spaced-func': 2, - 'no-sparse-arrays': 2, - 'no-this-before-super': 2, - 'no-throw-literal': 2, - 'no-trailing-spaces': 2, - 'no-undef': 2, - 'no-undef-init': 2, - 'no-unexpected-multiline': 2, - 'no-unmodified-loop-condition': 2, - 'no-unneeded-ternary': [2, { - 'defaultAssignment': false - }], - 'no-unreachable': 2, - 'no-unsafe-finally': 2, - 'no-unused-vars': [2, { - 'vars': 'all', - 'args': 'none' - }], - 'no-useless-call': 2, - 'no-useless-computed-key': 2, - 'no-useless-constructor': 2, - 'no-useless-escape': 0, - 'no-whitespace-before-property': 2, - 'no-with': 2, - 'one-var': [2, { - 'initialized': 'never' - }], - 'operator-linebreak': [2, 'after', { - 'overrides': { - '?': 'before', - ':': 'before' - } - }], - 'padded-blocks': [2, 'never'], - 'quotes': [2, 'single', { - 'avoidEscape': true, - 'allowTemplateLiterals': true - }], - 'semi': [2, 'never'], - 'semi-spacing': [2, { - 'before': false, - 'after': true - }], - 'space-before-blocks': [2, 'always'], - 'space-before-function-paren': [2, 'never'], - 'space-in-parens': [2, 'never'], - 'space-infix-ops': 2, - 'space-unary-ops': [2, { - 'words': true, - 'nonwords': false - }], - 'spaced-comment': [2, 'always', { - 'markers': ['global', 'globals', 'eslint', 'eslint-disable', '*package', '!', ','] - }], - 'template-curly-spacing': [2, 'never'], - 'use-isnan': 2, - 'valid-typeof': 2, - 'wrap-iife': [2, 'any'], - 'yield-star-spacing': [2, 'both'], - 'yoda': [2, 'never'], - 'prefer-const': 2, - 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0, - 'object-curly-spacing': [2, 'always', { - objectsInObjects: false - }], - 'array-bracket-spacing': [2, 'never'] - } -} diff --git a/ZR.Vue/.gitignore b/ZR.Vue/.gitignore deleted file mode 100644 index 78a752d8..00000000 --- a/ZR.Vue/.gitignore +++ /dev/null @@ -1,23 +0,0 @@ -.DS_Store -node_modules/ -dist/ -npm-debug.log* -yarn-debug.log* -yarn-error.log* -**/*.log - -tests/**/coverage/ -tests/e2e/reports -selenium-debug.log - -# Editor directories and files -.idea -.vscode -*.suo -*.ntvs* -*.njsproj -*.sln -*.local - -package-lock.json -yarn.lock diff --git a/ZR.Vue/.jsbeautifyrc b/ZR.Vue/.jsbeautifyrc deleted file mode 100644 index d79fae65..00000000 --- a/ZR.Vue/.jsbeautifyrc +++ /dev/null @@ -1,12 +0,0 @@ -{ - "brace_style": "none,preserve-inline", - "indent_size": 2, - "indent_char": " ", - "jslint_happy": true, - "unformatted": [ - "" - ], - "css": { - "indent_size": 2 - } -} \ No newline at end of file diff --git a/ZR.Vue/.prettierrc.js b/ZR.Vue/.prettierrc.js deleted file mode 100644 index 1728a06d..00000000 --- a/ZR.Vue/.prettierrc.js +++ /dev/null @@ -1,37 +0,0 @@ -module.exports = { - // 涓琛屾渶澶 180 瀛楃 - printWidth: 148, - // 浣跨敤 2 涓┖鏍肩缉杩 - tabWidth: 2, - // 涓嶄娇鐢ㄧ缉杩涚锛岃屼娇鐢ㄧ┖鏍 - useTabs: false, - // 琛屽熬涓嶉渶瑕佹湁鍒嗗彿 - semi: false, - // 浣跨敤鍗曞紩鍙 - singleQuote: true, - // 瀵硅薄鐨 key 浠呭湪蹇呰鏃剁敤寮曞彿 - quoteProps: 'as-needed', - // jsx 涓嶄娇鐢ㄥ崟寮曞彿锛岃屼娇鐢ㄥ弻寮曞彿 - jsxSingleQuote: false, - // 鏈熬涓嶉渶瑕侀楀彿 - trailingComma: 'all', - // 澶ф嫭鍙峰唴鐨勯灏鹃渶瑕佺┖鏍 - bracketSpacing: true, - // jsx 鏍囩鐨勫弽灏栨嫭鍙烽渶瑕佹崲琛 - jsxBracketSameLine: true, - // 绠ご鍑芥暟锛屽彧鏈変竴涓弬鏁扮殑鏃跺欙紝涔熼渶瑕佹嫭鍙 - arrowParens: 'always', - // 姣忎釜鏂囦欢鏍煎紡鍖栫殑鑼冨洿鏄枃浠剁殑鍏ㄩ儴鍐呭 - rangeStart: 0, - rangeEnd: Infinity, - // 涓嶉渶瑕佸啓鏂囦欢寮澶寸殑 @prettier - requirePragma: false, - // 涓嶉渶瑕佽嚜鍔ㄥ湪鏂囦欢寮澶存彃鍏 @prettier - insertPragma: false, - // 浣跨敤榛樿鐨勬姌琛屾爣鍑 - proseWrap: 'preserve', - // 鏍规嵁鏄剧ず鏍峰紡鍐冲畾 html 瑕佷笉瑕佹姌琛 - htmlWhitespaceSensitivity: 'css', - // 鎹㈣绗︿娇鐢 lf - endOfLine: 'auto', -}; \ No newline at end of file diff --git a/ZR.Vue/README.md b/ZR.Vue/README.md deleted file mode 100644 index 6508c901..00000000 --- a/ZR.Vue/README.md +++ /dev/null @@ -1,47 +0,0 @@ -## 寮鍙 - -```bash -# 鍏嬮殕椤圭洰 -git clone https://gitee.com/izory/ZrAdminNetCore - -# 杩涘叆椤圭洰鐩綍 -cd ZR.Vue - -# 瀹夎渚濊禆 -npm install - -# 寤鸿涓嶈鐩存帴浣跨敤 cnpm 瀹夎渚濊禆锛屼細鏈夊悇绉嶈寮傜殑 bug銆傚彲浠ラ氳繃濡備笅鎿嶄綔瑙e喅 npm 涓嬭浇閫熷害鎱㈢殑闂 -npm install --registry=https://registry.npm.taobao.org - -# 鍚姩鏈嶅姟 -npm run dev -``` - -娴忚鍣ㄨ闂 http://localhost:8887 - -## 鍙戝竷 - -```bash -# 鏋勫缓娴嬭瘯鐜 -npm run build:stage - -# 鏋勫缓鐢熶骇鐜 -npm run build:prod -``` - -# 鎻掍欢璇存槑 -### Autoprefixer 锛堝凡鍒犻櫎锛 -娴忚鍣ㄨ嚜鍔ㄨˉ鍏ㄥ墠缂 -渚嬪锛 -``` -a{ - transition :transform 1s -} - -灏嗕細琛ュ叏濡備笅 -a{ - -webkit-transition :-webkit-transform 1s; - transition :-ms-transform 1s; - transition :transform 1s -} -``` \ No newline at end of file diff --git a/ZR.Vue/babel.config.js b/ZR.Vue/babel.config.js deleted file mode 100644 index b99f0014..00000000 --- a/ZR.Vue/babel.config.js +++ /dev/null @@ -1,13 +0,0 @@ -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'] - } - } -} diff --git a/ZR.Vue/bat/build.bat b/ZR.Vue/bat/build.bat deleted file mode 100644 index dda590d2..00000000 --- a/ZR.Vue/bat/build.bat +++ /dev/null @@ -1,12 +0,0 @@ -@echo off -echo. -echo [信息] 打包Web工程,生成dist文件。 -echo. - -%~d0 -cd %~dp0 - -cd .. -npm run build:prod - -pause \ No newline at end of file diff --git a/ZR.Vue/bat/package.bat b/ZR.Vue/bat/package.bat deleted file mode 100644 index 82817497..00000000 --- a/ZR.Vue/bat/package.bat +++ /dev/null @@ -1,12 +0,0 @@ -@echo off -echo. -echo [信息] 安装Web工程,生成node_modules文件。 -echo. - -%~d0 -cd %~dp0 - -cd .. -npm install --registry=https://registry.npm.taobao.org - -pause \ No newline at end of file diff --git a/ZR.Vue/bat/run-web.bat b/ZR.Vue/bat/run-web.bat deleted file mode 100644 index a938e892..00000000 --- a/ZR.Vue/bat/run-web.bat +++ /dev/null @@ -1,12 +0,0 @@ -@echo off -echo. -echo [信息] 使用 Vue 运行 Web 工程。 -echo. - -%~d0 -cd %~dp0 - -cd .. -npm run dev - -pause \ No newline at end of file diff --git a/ZR.Vue/package.json b/ZR.Vue/package.json deleted file mode 100644 index d49c412b..00000000 --- a/ZR.Vue/package.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "name": "zradmin", - "description": "ZrAdmnin.NET鍚庡彴绠$悊", - "author": "ZR", - "scripts": { - "dev": "vue-cli-service serve", - "build:prod": "vue-cli-service build", - "build:stage": "vue-cli-service build --mode staging" - }, - "husky": { - "hooks": { - "pre-commit": "lint-staged" - } - }, - "lint-staged": { - "src/**/*.{js,vue}": [ - "eslint --fix", - "git add" - ] - }, - "dependencies": { - "@aspnet/signalr": "^1.0.27", - "@jiaminghi/data-view": "^2.10.0", - "@microsoft/signalr": "^6.0.23", - "@riophae/vue-treeselect": "0.4.0", - "af-table-column": "^1.0.3", - "axios": "^0.21.4", - "clipboard": "2.0.8", - "core-js": "3.6.5", - "echarts": "^5.4.3", - "echarts-gl": "^2.0.8", - "echarts-wordcloud": "^2.0.0", - "element-ui": "2.15.6", - "file-saver": "2.0.1", - "fuse.js": "3.4.4", - "highlight.js": "^11.2.0", - "js-beautify": "1.10.2", - "js-cookie": "2.2.0", - "jsencrypt": "3.0.0-rc.1", - "less-loader": "^6.0.0", - "mavon-editor": "^2.9.1", - "normalize.css": "7.0.0", - "nprogress": "0.2.0", - "path-to-regexp": "2.4.0", - "quill": "1.3.7", - "save": "^2.9.0", - "screenfull": "4.2.0", - "sortablejs": "1.8.4", - "vue": "2.6.12", - "vue-count-to": "1.0.13", - "vue-cropper": "0.4.9", - "vue-router": "3.4.9", - "vue-seamless-scroll": "^1.1.23", - "vuedraggable": "2.20.0", - "vuex": "3.6.0", - "vxe-table": "^3.6.13", - "xe-utils": "^3.5.11" - }, - "devDependencies": { - "@vue/cli-plugin-babel": "4.4.4", - "@vue/cli-plugin-eslint": "4.4.4", - "@vue/cli-service": "4.4.4", - "babel-eslint": "10.1.0", - "babel-plugin-dynamic-import-node": "2.3.3", - "chalk": "4.1.0", - "connect": "3.6.6", - "eslint": "6.7.2", - "eslint-plugin-vue": "6.2.2", - "lint-staged": "8.1.5", - "runjs": "4.4.2", - "sass": "1.32.13", - "sass-loader": "10.1.0", - "script-ext-html-webpack-plugin": "2.1.3", - "svg-sprite-loader": "4.1.3", - "vue-template-compiler": "2.6.12" - }, - "engines": { - "node": ">=8.9", - "npm": ">= 3.0.0" - }, - "browserslist": [ - "> 1%", - "last 2 versions" - ] -} diff --git a/ZR.Vue/public/favicon.ico b/ZR.Vue/public/favicon.ico deleted file mode 100644 index fcb69992..00000000 Binary files a/ZR.Vue/public/favicon.ico and /dev/null differ diff --git a/ZR.Vue/public/index.html b/ZR.Vue/public/index.html deleted file mode 100644 index 4c8ac8ec..00000000 --- a/ZR.Vue/public/index.html +++ /dev/null @@ -1,132 +0,0 @@ - - - - - - - - - - - <%= webpackConfig.name %> - - - - - -
-
-
- -
-

-
-
- - - \ No newline at end of file diff --git a/ZR.Vue/public/robots.txt b/ZR.Vue/public/robots.txt deleted file mode 100644 index 77470cb3..00000000 --- a/ZR.Vue/public/robots.txt +++ /dev/null @@ -1,2 +0,0 @@ -User-agent: * -Disallow: / \ No newline at end of file diff --git a/ZR.Vue/src/App.vue b/ZR.Vue/src/App.vue deleted file mode 100644 index 44ee14db..00000000 --- a/ZR.Vue/src/App.vue +++ /dev/null @@ -1,27 +0,0 @@ - - - diff --git a/ZR.Vue/src/api/basisManagement/bom.js b/ZR.Vue/src/api/basisManagement/bom.js deleted file mode 100644 index ae84dc5a..00000000 --- a/ZR.Vue/src/api/basisManagement/bom.js +++ /dev/null @@ -1,56 +0,0 @@ -import request from '@/utils/request' -import { downFile } from '@/utils/request' - -export function getBomList(query) { - return request({ - url: '/mes/md/bom/list', - method: 'get', - params: query, - }) -} - -export function getBOMQuery(query) { - return request({ - url: '/mes/md/bom/queryBOM', - method: 'get', - params: query, - }) - } - -export function insertbom(data) { - return request({ - url: '/mes/md/Bom/addBom', - method: 'post', - data: data, - contextType:"application/json" - }) -} - - -export function updatebom(data) { - return request({ - url: '/mes/md/Bom/updateBom', - method: 'post', - data: data, - contextType:"application/json" - }) -} - - -export function delbom(data) { - return request({ - url: '/mes/md/Bom/delBom', - method: 'post', - data: data, - contextType:"application/json" - }) -} - -export function getunitList(query) { - return request({ - url: '/mes/md/Bom/getunitList', - method: 'get', - params: query, - }) -} - \ No newline at end of file diff --git a/ZR.Vue/src/api/basisManagement/device.js b/ZR.Vue/src/api/basisManagement/device.js deleted file mode 100644 index 9ef1552b..00000000 --- a/ZR.Vue/src/api/basisManagement/device.js +++ /dev/null @@ -1,48 +0,0 @@ -import request from '@/utils/request' -import { downFile } from '@/utils/request' - -export function getDeviceList(query) { - return request({ - url: '/mes/md/device/list', - method: 'get', - params: query, - }) -} - -export function insertDevice(data) { - return request({ - url: '/mes/md/device/addDevice', - method: 'post', - data: data, - contextType:"application/json" - }) -} - - -export function updateDevice(data) { - return request({ - url: '/mes/md/device/updateDevice', - method: 'post', - data: data, - contextType:"application/json" - }) -} - - -export function delDevice(data) { - return request({ - url: '/mes/md/device/delDevice', - method: 'post', - data: data, - contextType:"application/json" - }) -} - - -export function getworkstationList(query) { - return request({ - url: '/mes/md/device/getworkstationList', - method: 'get', - params: query, - }) -} diff --git a/ZR.Vue/src/api/basisManagement/process.js b/ZR.Vue/src/api/basisManagement/process.js deleted file mode 100644 index 21f94ffa..00000000 --- a/ZR.Vue/src/api/basisManagement/process.js +++ /dev/null @@ -1,37 +0,0 @@ -import request from '@/utils/request' -import { downFile } from '@/utils/request' - -export function getProcessList(query) { - return request({ - url: '/mes/md/workproroute/list', - method: 'get', - params: query, - }) -} - -export function insertProcess(data) { - return request({ - url: '/mes/md/workproroute/addProcess', - method: 'post', - data: data, - contextType: 'application/json', - }) -} - -export function updateProcess(data) { - return request({ - url: '/mes/md/workproroute/updateProcess', - method: 'post', - data: data, - contextType: 'application/json', - }) -} - -export function delProcess(data) { - return request({ - url: '/mes/md/workproroute/delProcess', - method: 'post', - data: data, - contextType: 'application/json', - }) -} diff --git a/ZR.Vue/src/api/basisManagement/productEfinition.js b/ZR.Vue/src/api/basisManagement/productEfinition.js deleted file mode 100644 index e8b57089..00000000 --- a/ZR.Vue/src/api/basisManagement/productEfinition.js +++ /dev/null @@ -1,71 +0,0 @@ -import request from '@/utils/request' -import { downFile } from '@/utils/request' - -export function listproductEfinition(query) { - return request({ - url: '/mes/md/product/list', - method: 'get', - params: query, - }) -} - -//鏍规嵁鍚嶇О鏌ヨ鍗曟潯unit -export function getUnitmeasure(query) { - return request({ - url: '/mes/md/product/getUnit/' + query, - method: 'get', - }) -} - - -export function getProcessroute(query) { - return request({ - url: '/mes/md/product/getProcessroute/' + query, - method: 'get', - }) -} - -export function updateUnitmeasure(data) { - return request({ - url: '/mes/md/unit/updateUnit', - method: 'post', - data: data, - }) -} - -export function addProductDefine(data) { - return request({ - url: '/mes/md/product/addProductDefine', - method: 'post', - data: data, - contextType: 'application/json', - }) -} - -export function updateProductDefine(data) { - return request({ - url: '/mes/md/product/updateProductDefine', - method: 'post', - data: data, - contextType: 'application/json', - }) -} - -export function getProductBypk(query) { - return request({ - url: '/mes/md/product/getProductBypk/' + query, - method: 'get', - }) -} - -export function delproduct(id) { - return request({ - url: '/mes/md/product/delproduct/' + id, - method: 'delete', - }) -} - -// 瀵煎嚭浜у搧 -export async function exportProduct(query) { - await downFile('/mes/md/product/exportProduct/', { ...query }) -} diff --git a/ZR.Vue/src/api/basisManagement/unit.js b/ZR.Vue/src/api/basisManagement/unit.js deleted file mode 100644 index dda46e60..00000000 --- a/ZR.Vue/src/api/basisManagement/unit.js +++ /dev/null @@ -1,52 +0,0 @@ -import request from '@/utils/request' -import { downFile } from '@/utils/request' -// 鏌ヨ鍗曚綅鍒楄〃 -export function listUnitmeasure(query) { - return request({ - url: '/mes/md/unit/list', - method: 'get', - params: query - }) - } - - - //鏍规嵁涓婚敭鏌ヨ鍗曟潯unit - export function getUnitmeasure(query) { - return request({ - url: '/mes/md/unit/getUnit/'+query, - method: 'get', - }) - } - - export function updateUnitmeasure(data) { - return request({ - url: '/mes/md/unit/updateUnit', - method: 'post', - data: data - }) - } - - export function addUnitmeasure(data) { - return request({ - url: '/mes/md/unit/addUnit', - method: 'post', - data: data, - contextType:"application/json" - }) - } - - - export function delUnitmeasure(id) { - return request({ - url: '/mes/md/unit/delUnit/'+id, - method: 'delete', - }) - } - - - // 瀵煎嚭鍗曚綅 -export async function exportUnit(query) { - - await downFile('/mes/md/unit/exportUnit/', { ...query }) - -} diff --git a/ZR.Vue/src/api/basisManagement/workLine.js b/ZR.Vue/src/api/basisManagement/workLine.js deleted file mode 100644 index 7e461113..00000000 --- a/ZR.Vue/src/api/basisManagement/workLine.js +++ /dev/null @@ -1,48 +0,0 @@ -import request from '@/utils/request' -import { downFile } from '@/utils/request' - -export function getWorklineList(query) { - return request({ - url: '/mes/md/workline/list', - method: 'get', - params: query, - }) -} - -export function insertworkline(data) { - return request({ - url: '/mes/md/workline/addWorkline', - method: 'post', - data: data, - contextType:"application/json" - }) -} - - -export function updateWorkline(data) { - return request({ - url: '/mes/md/workline/updateWorkline', - method: 'post', - data: data, - contextType:"application/json" - }) -} - - -export function delWorkline(data) { - return request({ - url: '/mes/md/workline/delWorkline', - method: 'post', - data: data, - contextType:"application/json" - }) -} - -export function getWorkshopList(query) { - return request({ - url: '/mes/md/workline/getWorkshopList', - method: 'get', - params: query, - }) - } - \ No newline at end of file diff --git a/ZR.Vue/src/api/basisManagement/workshop.js b/ZR.Vue/src/api/basisManagement/workshop.js deleted file mode 100644 index f37546ac..00000000 --- a/ZR.Vue/src/api/basisManagement/workshop.js +++ /dev/null @@ -1,39 +0,0 @@ -import request from '@/utils/request' -import { downFile } from '@/utils/request' - -export function getWorkshopList(query) { - return request({ - url: '/mes/md/workshop/list', - method: 'get', - params: query, - }) -} - -export function insertworkshop(data) { - return request({ - url: '/mes/md/workshop/addWorkshop', - method: 'post', - data: data, - contextType:"application/json" - }) -} - - -export function updateWorkshop(data) { - return request({ - url: '/mes/md/workshop/updateWorkshop', - method: 'post', - data: data, - contextType:"application/json" - }) -} - - -export function delWorkshop(data) { - return request({ - url: '/mes/md/workshop/delWorkshop', - method: 'post', - data: data, - contextType:"application/json" - }) -} diff --git a/ZR.Vue/src/api/basisManagement/worksort.js b/ZR.Vue/src/api/basisManagement/worksort.js deleted file mode 100644 index cd041a33..00000000 --- a/ZR.Vue/src/api/basisManagement/worksort.js +++ /dev/null @@ -1,39 +0,0 @@ -import request from '@/utils/request' -import { downFile } from '@/utils/request' - -export function getWorksortList(query) { - return request({ - url: '/mes/md/Worksort/list', - method: 'get', - params: query, - }) -} - -export function insertWorksort(data) { - return request({ - url: '/mes/md/Worksort/addWorksort', - method: 'post', - data: data, - contextType:"application/json" - }) -} - - -export function updateWorksort(data) { - return request({ - url: '/mes/md/Worksort/updateWorksort', - method: 'post', - data: data, - contextType:"application/json" - }) -} - - -export function delWorksort(data) { - return request({ - url: '/mes/md/Worksort/delWorksort', - method: 'post', - data: data, - contextType:"application/json" - }) -} diff --git a/ZR.Vue/src/api/basisManagement/workstation.js b/ZR.Vue/src/api/basisManagement/workstation.js deleted file mode 100644 index ae979ce4..00000000 --- a/ZR.Vue/src/api/basisManagement/workstation.js +++ /dev/null @@ -1,49 +0,0 @@ -import request from '@/utils/request' -import { downFile } from '@/utils/request' - - -export function getWorkstationList(query) { - return request({ - url: '/mes/md/workstation/list', - method: 'get', - params: query, - }) - } - - export function insertWorkstation(data) { - return request({ - url: '/mes/md/workstation/addWorkstation', - method: 'post', - data: data, - contextType:"application/json" - }) - } - - - export function updateWorkstation(data) { - return request({ - url: '/mes/md/workstation/updateWorkstation', - method: 'post', - data: data, - contextType:"application/json" - }) - } - - - export function delWorkstation(data) { - return request({ - url: '/mes/md/workstation/delWorkstation', - method: 'post', - data: data, - contextType:"application/json" - }) - } - - - export function getworkLineList(query) { - return request({ - url: '/mes/md/workstation/getworkLineList', - method: 'get', - params: query, - }) - } \ No newline at end of file diff --git a/ZR.Vue/src/api/business/demo.js b/ZR.Vue/src/api/business/demo.js deleted file mode 100644 index d26d22ba..00000000 --- a/ZR.Vue/src/api/business/demo.js +++ /dev/null @@ -1,78 +0,0 @@ -import request from '@/utils/request' - -/** -* 婕旂ず鍒嗛〉鏌ヨ -* @param {鏌ヨ鏉′欢} data -*/ -export function listDemo(query) { - return request({ - url: 'business/Demo/list', - method: 'get', - params: query, - }) -} - - -/** -* 鏂板婕旂ず -* @param data -*/ -export function addDemo(data) { - return request({ - url: 'business/Demo', - method: 'post', - data: data, - }) -} - -/** -* 淇敼婕旂ず -* @param data -*/ -export function updateDemo(data) { - return request({ - url: 'business/Demo', - method: 'PUT', - data: data, - }) -} - -/** -* 鑾峰彇婕旂ず璇︽儏 -* @param {Id} -*/ -export function getDemo(id) { - return request({ - url: 'business/Demo/' + id, - method: 'get' - }) -} - -/** -* 鍒犻櫎婕旂ず -* @param {涓婚敭} pid -*/ -export function delDemo(pid) { - return request({ - url: 'business/Demo/' + pid, - method: 'delete' - }) -} - -// 瀵煎嚭婕旂ず -export function exportDemo(query) { - return request({ - url: 'business/Demo/export', - method: 'get', - params: query - }) -} - -//鎺掑簭 -export function changeSort(data) { - return request({ - url: 'business/Demo/ChangeSort', - method: 'get', - params: data - }) -} diff --git a/ZR.Vue/src/api/business/genDemo.js b/ZR.Vue/src/api/business/genDemo.js deleted file mode 100644 index 1cbb8695..00000000 --- a/ZR.Vue/src/api/business/genDemo.js +++ /dev/null @@ -1,70 +0,0 @@ -import request from '@/utils/request' - -/** -* 婕旂ず鍒嗛〉鏌ヨ -* @param {鏌ヨ鏉′欢} data -*/ -export function listGenDemo(query) { - return request({ - url: 'business/GenDemo/list', - method: 'get', - params: query, - }) -} - - -/** -* 鏂板婕旂ず -* @param data -*/ -export function addGenDemo(data) { - return request({ - url: 'business/GenDemo', - method: 'post', - data: data, - }) -} - -/** -* 淇敼婕旂ず -* @param data -*/ -export function updateGenDemo(data) { - return request({ - url: 'business/GenDemo', - method: 'PUT', - data: data, - }) -} - -/** -* 鑾峰彇婕旂ず璇︽儏 -* @param {Id} -*/ -export function getGenDemo(id) { - return request({ - url: 'business/GenDemo/' + id, - method: 'get' - }) -} - -/** -* 鍒犻櫎婕旂ず -* @param {涓婚敭} pid -*/ -export function delGenDemo(pid) { - return request({ - url: 'business/GenDemo/' + pid, - method: 'delete' - }) -} - -// 瀵煎嚭婕旂ず -export function exportGenDemo(query) { - return request({ - url: 'business/GenDemo/export', - method: 'get', - params: query - }) -} - diff --git a/ZR.Vue/src/api/common.js b/ZR.Vue/src/api/common.js deleted file mode 100644 index c57228f8..00000000 --- a/ZR.Vue/src/api/common.js +++ /dev/null @@ -1,23 +0,0 @@ -import request from '@/utils/request' - -export function upload(data) { - return request({ - url: '/common/UploadFile', - method: 'POST', - data: data, - headers: { "Content-Type": "multipart/form-data" }, - }) -} - -/** - * 鍙戦侀偖浠 - * @param {*} data - * @returns - */ -export function sendEmail(data) { - return request({ - url: '/common/SendEmail', - method: 'POST', - data: data, - }) -} diff --git a/ZR.Vue/src/api/monitor/cache.js b/ZR.Vue/src/api/monitor/cache.js deleted file mode 100644 index 59d3505a..00000000 --- a/ZR.Vue/src/api/monitor/cache.js +++ /dev/null @@ -1,9 +0,0 @@ -import request from '@/utils/request' - -// 鏌ヨ缂撳瓨璇︾粏 -export function getCache() { - return request({ - url: '/monitor/cache', - method: 'get' - }) -} diff --git a/ZR.Vue/src/api/monitor/job.js b/ZR.Vue/src/api/monitor/job.js deleted file mode 100644 index 330b85c0..00000000 --- a/ZR.Vue/src/api/monitor/job.js +++ /dev/null @@ -1,115 +0,0 @@ -import request from '@/utils/request' - -export function queryTasks(data) { - return request({ - url: '/system/tasks/list', - method: 'get', - params: data, - }) -} - -export function getTasks(id) { - return request({ - url: '/system/tasks/get?id=' + id, - method: 'get' - }) -} - -/** - * - * 鑾峰彇鎵鏈変换鍔 - * @returns - */ -export function getAllTasks() { - return request({ - url: '/system/tasks/getAll', - method: 'get' - }) -} - -/** - * 鍒涘缓浠诲姟 - * @param {*} data - * @returns - */ -export function createTasks(data) { - return request({ - url: '/system/tasks/create', - method: 'post', - data - }) -} - -/** - * 鏇存柊浠诲姟 - * @param {*} data - * @returns - */ -export function updateTasks(data) { - return request({ - url: '/system/tasks/update', - method: 'post', - data - }) -} - -/** - * 鍒犻櫎浠诲姟 - * @param {*} id - * @returns - */ -export function deleteTasks(id) { - return request({ - url: '/system/tasks/delete?id=' + id, - method: 'delete' - }) -} - -/** - * 鍚姩浠诲姟 - * @param {*} id - * @returns - */ -export function startTasks(id) { - return request({ - url: '/system/tasks/start?id=' + id, - method: 'get' - }) -} - -/** - * 鍋滄浠诲姟 - * @param {*} id - * @returns - */ -export function stopTasks(id) { - return request({ - url: '/system/tasks/stop?id=' + id, - method: 'get' - }) -} - -/** - * 杩愯涓娆 - * @param {*} id - * @returns - */ -export function runTasks(id) { - return request({ - url: '/system/tasks/run?id=' + id, - method: 'get' - }) -} -/** - * 瀵煎嚭 - * @returns - */ -export function exportTasks() { - return request({ - url: '/system/tasks/export', - method: 'get' - }) -} - - -export default { queryTasks, getTasks, getAllTasks, createTasks, updateTasks, deleteTasks, startTasks, stopTasks, runTasks, exportTasks } diff --git a/ZR.Vue/src/api/monitor/jobLog.js b/ZR.Vue/src/api/monitor/jobLog.js deleted file mode 100644 index be1fffdf..00000000 --- a/ZR.Vue/src/api/monitor/jobLog.js +++ /dev/null @@ -1,35 +0,0 @@ -import request from '@/utils/request' - -// 鏌ヨ璋冨害鏃ュ織鍒楄〃 -export function listJobLog(query) { - return request({ - url: '/monitor/jobLog/list', - method: 'get', - params: query - }) -} - -// 鍒犻櫎璋冨害鏃ュ織 -export function delJobLog(jobLogId) { - return request({ - url: '/monitor/jobLog/' + jobLogId, - method: 'delete' - }) -} - -// 娓呯┖璋冨害鏃ュ織 -export function cleanJobLog() { - return request({ - url: '/monitor/jobLog/clean', - method: 'delete' - }) -} - -// 瀵煎嚭璋冨害鏃ュ織 -export function exportJobLog(query) { - return request({ - url: '/monitor/jobLog/export', - method: 'get', - params: query - }) -} \ No newline at end of file diff --git a/ZR.Vue/src/api/monitor/logininfor.js b/ZR.Vue/src/api/monitor/logininfor.js deleted file mode 100644 index 7ff412dd..00000000 --- a/ZR.Vue/src/api/monitor/logininfor.js +++ /dev/null @@ -1,35 +0,0 @@ -import request from '@/utils/request' - -// 鏌ヨ鐧诲綍鏃ュ織鍒楄〃 -export function list(query) { - return request({ - url: '/monitor/logininfor/list', - method: 'get', - params: query - }) -} - -// 鍒犻櫎鐧诲綍鏃ュ織 -export function delLogininfor(infoId) { - return request({ - url: '/monitor/logininfor/' + infoId, - method: 'delete' - }) -} - -// 娓呯┖鐧诲綍鏃ュ織 -export function cleanLogininfor() { - return request({ - url: '/monitor/logininfor/clean', - method: 'delete' - }) -} - -// 瀵煎嚭鐧诲綍鏃ュ織 -export function exportLogininfor(query) { - return request({ - url: '/monitor/logininfor/export', - method: 'get', - params: query - }) -} diff --git a/ZR.Vue/src/api/monitor/online.js b/ZR.Vue/src/api/monitor/online.js deleted file mode 100644 index bd221378..00000000 --- a/ZR.Vue/src/api/monitor/online.js +++ /dev/null @@ -1,18 +0,0 @@ -import request from '@/utils/request' - -// 鏌ヨ鍦ㄧ嚎鐢ㄦ埛鍒楄〃 -export function list(query) { - return request({ - url: '/monitor/online/list', - method: 'get', - params: query - }) -} - -// 寮洪鐢ㄦ埛 -export function forceLogout(tokenId) { - return request({ - url: '/monitor/online/' + tokenId, - method: 'delete' - }) -} diff --git a/ZR.Vue/src/api/monitor/operlog.js b/ZR.Vue/src/api/monitor/operlog.js deleted file mode 100644 index b612153d..00000000 --- a/ZR.Vue/src/api/monitor/operlog.js +++ /dev/null @@ -1,37 +0,0 @@ -import request from '@/utils/request' -import { downFile } from '@/utils/request' - -// 鏌ヨ鎿嶄綔鏃ュ織鍒楄〃 -export function list(query) { - return request({ - url: '/monitor/operlog/list', - method: 'get', - params: query, - }) -} - -// 鍒犻櫎鎿嶄綔鏃ュ織 -export function delOperlog(operId) { - return request({ - url: '/monitor/operlog/' + operId, - method: 'delete', - }) -} - -// 娓呯┖鎿嶄綔鏃ュ織 -export function cleanOperlog() { - return request({ - url: '/monitor/operlog/clean', - method: 'delete', - }) -} - -// 瀵煎嚭鎿嶄綔鏃ュ織 -export async function exportOperlog(query) { - // return request({ - // url: '/monitor/operlog/export', - // method: 'get', - // params: query - // }) - await downFile('/monitor/operlog/export', query) -} diff --git a/ZR.Vue/src/api/monitor/server.js b/ZR.Vue/src/api/monitor/server.js deleted file mode 100644 index bdcc62b0..00000000 --- a/ZR.Vue/src/api/monitor/server.js +++ /dev/null @@ -1,9 +0,0 @@ -import request from '@/utils/request' - -// 鏌ヨ鏈嶅姟鍣ㄨ缁 -export function getServer() { - return request({ - url: '/monitor/server', - method: 'get' - }) -} diff --git a/ZR.Vue/src/api/operationManagement/operation.js b/ZR.Vue/src/api/operationManagement/operation.js deleted file mode 100644 index 41f26121..00000000 --- a/ZR.Vue/src/api/operationManagement/operation.js +++ /dev/null @@ -1,18 +0,0 @@ -import request from '@/utils/request' - - -export function getOperation(query) { - return request({ - url: 'mes/op/operation/getOperation', - method: 'get', - params: query, - }) -} - -export function getOperation1(query) { - return request({ - url: 'mes/op/operation/getOperation1', - method: 'get', - params: query, - }) -} diff --git a/ZR.Vue/src/api/productManagement/workplan.js b/ZR.Vue/src/api/productManagement/workplan.js deleted file mode 100644 index b9e95573..00000000 --- a/ZR.Vue/src/api/productManagement/workplan.js +++ /dev/null @@ -1,10 +0,0 @@ -import request from '@/utils/request' -import { downFile } from '@/utils/request' - -export function getWorkplanList(query) { - return request({ - url: '/mes/pro/workplan/list', - method: 'get', - params: query, - }) - } \ No newline at end of file diff --git a/ZR.Vue/src/api/system/article.js b/ZR.Vue/src/api/system/article.js deleted file mode 100644 index 05fb94dc..00000000 --- a/ZR.Vue/src/api/system/article.js +++ /dev/null @@ -1,66 +0,0 @@ -import request from '@/utils/request' - -// 鏌ヨ鍒楄〃 -export function listArticle(query) { - return request({ - url: '/Article/list', - method: 'get', - params: query - }) -} -// 鏌ヨ鏈鏂板垪琛 -export function listNewArticle(query) { - return request({ - url: '/Article/newList', - method: 'get', - params: query - }) -} - -// 鏌ヨ璇︾粏 -export function getArticle(Id) { - return request({ - url: '/Article/' + Id, - method: 'get', - }) -} - -// 鏂板 -export function addArticle(data) { - return request({ - url: '/Article/add', - method: 'post', - data: data, - }) -} - -// 淇敼 -export function updateArticle(data) { - return request({ - url: '/Article/edit', - method: 'put', - data: data - }) -} - -// 鍒犻櫎鑿滃崟 -export function delArticle(id) { - return request({ - url: '/Article/' + id, - method: 'delete' - }) -} -// 鏌ヨ鑿滃崟鐩綍 -export function listArticleCategory() { - return request({ - url: '/Article/CategoryList', - method: 'get' - }) -} -// 鏌ヨ鑿滃崟鐩綍鏍 -export function listArticleCategoryTree(){ - return request({ - url: '/Article/CategoryTreeList', - menubar: 'get' - }) -} diff --git a/ZR.Vue/src/api/system/config.js b/ZR.Vue/src/api/system/config.js deleted file mode 100644 index 3633ba19..00000000 --- a/ZR.Vue/src/api/system/config.js +++ /dev/null @@ -1,69 +0,0 @@ -import request from '@/utils/request' - -// 鏌ヨ鍙傛暟鍒楄〃 -export function listConfig(query) { - return request({ - url: '/system/config/list', - method: 'get', - params: query - }) -} - -// 鏌ヨ鍙傛暟璇︾粏 -export function getConfig(configId) { - return request({ - url: '/system/config/' + configId, - method: 'get' - }) -} - -// 鏍规嵁鍙傛暟閿悕鏌ヨ鍙傛暟鍊 -export function getConfigKey(configKey) { - return request({ - url: '/system/config/configKey/' + configKey, - method: 'get' - }) -} - -// 鏂板鍙傛暟閰嶇疆 -export function addConfig(data) { - return request({ - url: '/system/config', - method: 'post', - data: data - }) -} - -// 淇敼鍙傛暟閰嶇疆 -export function updateConfig(data) { - return request({ - url: '/system/config', - method: 'put', - data: data - }) -} - -// 鍒犻櫎鍙傛暟閰嶇疆 -export function delConfig(configId) { - return request({ - url: '/system/config/' + configId, - method: 'delete' - }) -} - -// 鍒锋柊鍙傛暟缂撳瓨 -export function refreshCache() { - return request({ - url: '/system/config/refreshCache', - method: 'delete' - }) -} - -// 瀵煎嚭鍙傛暟 -// export function exportConfig(query) { -// return request({ -// url: '/system/config/export', -// method: 'get', -// params: query -// }) -// } diff --git a/ZR.Vue/src/api/system/dept.js b/ZR.Vue/src/api/system/dept.js deleted file mode 100644 index 2804676f..00000000 --- a/ZR.Vue/src/api/system/dept.js +++ /dev/null @@ -1,68 +0,0 @@ -import request from '@/utils/request' - -// 鏌ヨ閮ㄩ棬鍒楄〃 -export function listDept(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' - }) -} - -// 鏌ヨ閮ㄩ棬璇︾粏 -export function getDept(deptId) { - return request({ - url: '/system/dept/' + deptId, - method: 'get' - }) -} - -// 鏌ヨ閮ㄩ棬涓嬫媺鏍戠粨鏋 -export function treeselect() { - return request({ - url: '/system/dept/treeselect', - method: 'get' - }) -} - -// 鏍规嵁瑙掕壊ID鏌ヨ閮ㄩ棬鏍戠粨鏋 -export function roleDeptTreeselect(roleId) { - return request({ - url: '/system/dept/roleDeptTreeselect/' + roleId, - method: 'get' - }) -} - -// 鏂板閮ㄩ棬 -export function addDept(data) { - return request({ - url: '/system/dept', - method: 'post', - data: data - }) -} - -// 淇敼閮ㄩ棬 -export function updateDept(data) { - return request({ - url: '/system/dept', - method: 'put', - data: data - }) -} - -// 鍒犻櫎閮ㄩ棬 -export function delDept(deptId) { - return request({ - url: '/system/dept/' + deptId, - method: 'delete' - }) -} \ No newline at end of file diff --git a/ZR.Vue/src/api/system/dict/data.js b/ZR.Vue/src/api/system/dict/data.js deleted file mode 100644 index 0351dd6d..00000000 --- a/ZR.Vue/src/api/system/dict/data.js +++ /dev/null @@ -1,69 +0,0 @@ -import request from '@/utils/request' - -// 鏌ヨ瀛楀吀鏁版嵁鍒楄〃 -export function listData(query) { - return request({ - url: '/system/dict/data/list', - method: 'get', - params: query - }) -} - -// 鏌ヨ瀛楀吀鏁版嵁璇︾粏 -export function getData(dictCode) { - return request({ - url: '/system/dict/data/info/' + dictCode, - method: 'get' - }) -} - -// 鏍规嵁瀛楀吀绫诲瀷鏌ヨ瀛楀吀鏁版嵁淇℃伅 -export function getDicts(dictType) { - if (typeof (dictType) === "object") { - return request({ - url: '/system/dict/data/types', - data: dictType, - method: 'post' - }) - } else { - return request({ - url: '/system/dict/data/type/' + dictType, - method: 'get' - }) - } -} - -// 鏂板瀛楀吀鏁版嵁 -export function addData(data) { - return request({ - url: '/system/dict/data', - method: 'post', - data: data - }) -} - -// 淇敼瀛楀吀鏁版嵁 -export function updateData(data) { - return request({ - url: '/system/dict/data', - method: 'put', - data: data - }) -} - -// 鍒犻櫎瀛楀吀鏁版嵁 -export function delData(dictCode) { - return request({ - url: '/system/dict/data/' + dictCode, - method: 'delete' - }) -} - -// 瀵煎嚭瀛楀吀鏁版嵁 -export function exportData(query) { - return request({ - url: '/system/dict/data/export', - method: 'get', - params: query - }) -} \ No newline at end of file diff --git a/ZR.Vue/src/api/system/dict/type.js b/ZR.Vue/src/api/system/dict/type.js deleted file mode 100644 index 27ae18f7..00000000 --- a/ZR.Vue/src/api/system/dict/type.js +++ /dev/null @@ -1,69 +0,0 @@ -import request from '@/utils/request' - -// 鏌ヨ瀛楀吀绫诲瀷鍒楄〃 -export function listType(query) { - return request({ - url: '/system/dict/type/list', - method: 'get', - params: query - }) -} - -// 鏌ヨ瀛楀吀绫诲瀷璇︾粏 -export function getType(dictId) { - return request({ - url: '/system/dict/type/' + dictId, - method: 'get' - }) -} - -// 鏂板瀛楀吀绫诲瀷 -export function addType(data) { - return request({ - url: '/system/dict/type/edit', - method: 'post', - data: data - }) -} - -// 淇敼瀛楀吀绫诲瀷 -export function updateType(data) { - return request({ - url: '/system/dict/type/edit', - method: 'put', - data: data - }) -} - -// 鍒犻櫎瀛楀吀绫诲瀷 -export function delType(dictId) { - return request({ - url: '/system/dict/type/' + dictId, - method: 'delete' - }) -} - -// 娓呯悊鍙傛暟缂撳瓨 -export function clearCache() { - return request({ - url: '/system/dict/type/clearCache', - method: 'delete' - }) -} - -// 瀵煎嚭瀛楀吀绫诲瀷 -export function exportType(query) { - return request({ - url: '/system/dict/type/export', - method: 'get', - params: query - }) -} - -// 鑾峰彇瀛楀吀閫夋嫨妗嗗垪琛 -export function optionselect() { - return request({ - url: '/system/dict/type/optionselect', - method: 'get' - }) -} diff --git a/ZR.Vue/src/api/system/login.js b/ZR.Vue/src/api/system/login.js deleted file mode 100644 index cd56aa7a..00000000 --- a/ZR.Vue/src/api/system/login.js +++ /dev/null @@ -1,52 +0,0 @@ -import request from '@/utils/request' - -// 鐧诲綍鏂规硶 -export function login(username, password, code, uuid) { - const data = { - username, - password, - code, - uuid - } - return request({ - url: '/login', - method: 'POST', - data: data, - }) -} - -// 鑾峰彇鐢ㄦ埛璇︾粏淇℃伅 -export function getInfo() { - return request({ - url: '/getInfo', - method: 'get' - }) -} - -// 閫鍑烘柟娉 -export function logout() { - return request({ - url: '/LogOut', - method: 'POST' - }) -} - -// 鑾峰彇楠岃瘉鐮 -export function getCodeImg() { - return request({ - url: '/captchaImage', - method: 'get' - }) -} - -/** - * 娉ㄥ唽 - * @returns - */ -export function register(data) { - return request({ - url: '/register', - method: 'post', - data: data - }) -} \ No newline at end of file diff --git a/ZR.Vue/src/api/system/menu.js b/ZR.Vue/src/api/system/menu.js deleted file mode 100644 index b4cd8e67..00000000 --- a/ZR.Vue/src/api/system/menu.js +++ /dev/null @@ -1,84 +0,0 @@ -import request from '@/utils/request' - -// 鏌ヨ鑿滃崟鍒楄〃 -export function listMenu(query) { - return request({ - url: '/system/menu/list', - method: 'get', - params: query - }) -} -// 鏌ヨ鑿滃崟鍒楄〃 -export function listMenuById(menuId) { - return request({ - url: '/system/menu/list/' + menuId, - method: 'get', - }) -} -// 鏌ヨ鑿滃崟璇︾粏 -export function getMenu(menuId) { - return request({ - url: '/system/menu/' + menuId, - method: 'get', - }) -} - -// 鏌ヨ鑿滃崟涓嬫媺鏍戠粨鏋 -export function treeselect() { - return request({ - url: '/system/Menu/treeSelect', - method: 'get' - }) -} - -// 鏍规嵁瑙掕壊ID鏌ヨ鑿滃崟涓嬫媺鏍戠粨鏋 -export function roleMenuTreeselect(roleId) { - return request({ - url: '/system/menu/roleMenuTreeselect/' + roleId, - method: 'get', - }) -} - -// 鏂板鑿滃崟 -export const addMenu = (data) => { - return request({ - url: '/system/menu/add', - method: 'put', - data: data, - }) -} - -// 淇敼鑿滃崟 -export function updateMenu(data) { - return request({ - url: '/system/Menu/edit', - method: 'post', - data: data - }) -} - -// 鍒犻櫎鑿滃崟 -export function delMenu(menuId) { - return request({ - url: '/system/Menu/' + menuId, - method: 'delete' - }) -} - -//鎺掑簭 -export function changeMenuSort(data) { - return request({ - url: '/system/Menu/ChangeSort', - method: 'get', - params: data - }) -} - -// 鑾峰彇璺敱 -export const getRouters = (query) => { - return request({ - url: '/getRouters', - method: 'get', - params: query - }) -} diff --git a/ZR.Vue/src/api/system/notice.js b/ZR.Vue/src/api/system/notice.js deleted file mode 100644 index fc80afbf..00000000 --- a/ZR.Vue/src/api/system/notice.js +++ /dev/null @@ -1,61 +0,0 @@ -import request from '@/utils/request' - -// 瀵艰埅鏍忔煡璇㈠叕鍛婂垪琛 -export function queryNotice(query) { - return request({ - url: '/system/notice/queryNotice', - method: 'get', - params: query - }) -} - -// 鏌ヨ鍏憡鍒楄〃 -export function listNotice(query) { - return request({ - url: '/system/notice/list', - method: 'get', - params: query - }) -} - -// 鏌ヨ鍏憡璇︾粏 -export function getNotice(noticeId) { - return request({ - url: '/system/notice/' + noticeId, - method: 'get' - }) -} - -// 鏂板鍏憡 -export function addNotice(data) { - return request({ - url: '/system/notice', - method: 'post', - data: data - }) -} - -// 淇敼鍏憡 -export function updateNotice(data) { - return request({ - url: '/system/notice', - method: 'put', - data: data - }) -} - -// 鍒犻櫎鍏憡 -export function delNotice(noticeId) { - return request({ - url: '/system/notice/' + noticeId, - method: 'delete' - }) -} - -// 鍙戦侀氱煡鍏憡 -export function sendNotice(noticeId) { - return request({ - url: '/system/notice/send/' + noticeId, - method: 'PUT' - }) -} \ No newline at end of file diff --git a/ZR.Vue/src/api/system/post.js b/ZR.Vue/src/api/system/post.js deleted file mode 100644 index 7f86c87a..00000000 --- a/ZR.Vue/src/api/system/post.js +++ /dev/null @@ -1,55 +0,0 @@ -import request from '@/utils/request' -import { downFile } from '@/utils/request' - -// 鏌ヨ宀椾綅鍒楄〃 -export function listPost(query) { - return request({ - url: '/system/post/list', - method: 'get', - params: query, - }) -} - -// 鏌ヨ宀椾綅璇︾粏 -export function getPost(postId) { - return request({ - url: '/system/post/' + postId, - method: 'get', - }) -} - -// 鏂板宀椾綅 -export function addPost(data) { - return request({ - url: '/system/post', - method: 'post', - data: data, - }) -} - -// 淇敼宀椾綅 -export function updatePost(data) { - return request({ - url: '/system/post', - method: 'put', - data: data, - }) -} - -// 鍒犻櫎宀椾綅 -export function delPost(postId) { - return request({ - url: '/system/post/' + postId, - method: 'delete', - }) -} - -// 瀵煎嚭宀椾綅 -export async function exportPost(query) { - // return request({ - // url: '/system/post/export', - // method: 'get', - // params: query - // }) - await downFile('/system/post/export', { ...query }) -} diff --git a/ZR.Vue/src/api/system/role.js b/ZR.Vue/src/api/system/role.js deleted file mode 100644 index 25b8d1e4..00000000 --- a/ZR.Vue/src/api/system/role.js +++ /dev/null @@ -1,75 +0,0 @@ -import request from '@/utils/request' - -// 鏌ヨ瑙掕壊鍒楄〃 -export function listRole(query) { - return request({ - url: '/system/role/list', - method: 'get', - params: query - }) -} - -// 鏌ヨ瑙掕壊璇︾粏 -export function getRole(roleId) { - return request({ - url: '/system/role/' + roleId, - method: 'get' - }) -} - -// 鏂板瑙掕壊 -export const addRole = (data) => { - return request({ - url: '/system/role/edit', - method: 'post', - data: data, - }) -} - -// 淇敼瑙掕壊 -export function updateRole(data) { - return request({ - url: '/system/role/edit', - method: 'put', - data: data - }) -} - -// 瑙掕壊鏁版嵁鏉冮檺 -export function dataScope(data) { - return request({ - url: '/system/role/dataScope', - method: 'put', - data: data - }) -} - -// 瑙掕壊鐘舵佷慨鏀 -export function changeRoleStatus(roleId, status) { - const data = { - roleId, - status - } - return request({ - url: '/system/role/changeStatus', - method: 'put', - data: data - }) -} - -// 鍒犻櫎瑙掕壊 -export function delRole(roleId) { - return request({ - url: '/system/role/' + roleId, - method: 'delete' - }) -} - -// 瀵煎嚭瑙掕壊 -export function exportRole(query) { - return request({ - url: '/system/role/export', - method: 'get', - params: query - }) -} diff --git a/ZR.Vue/src/api/system/user.js b/ZR.Vue/src/api/system/user.js deleted file mode 100644 index b87809b2..00000000 --- a/ZR.Vue/src/api/system/user.js +++ /dev/null @@ -1,130 +0,0 @@ -import request from '@/utils/request' -import { praseStrZero } from '@/utils/ruoyi' -import { downFile } from '@/utils/request' - -// 鏌ヨ鐢ㄦ埛鍒楄〃 -export function listUser(query) { - return request({ - url: '/system/user/list', - method: 'get', - params: query, - }) -} - -// 鏌ヨ鐢ㄦ埛璇︾粏 -export function getUser(userId) { - return request({ - url: '/system/user/' + praseStrZero(userId), - method: 'get', - }) -} - -// 鏂板鐢ㄦ埛 -export function addUser(data) { - return request({ - url: '/system/user/edit', - method: 'post', - data: data, - }) -} - -// 淇敼鐢ㄦ埛 -export function updateUser(data) { - return request({ - url: '/system/user/edit', - method: 'put', - data: data, - }) -} - -// 鍒犻櫎鐢ㄦ埛 -export function delUser(userId) { - return request({ - url: '/system/user/' + userId, - method: 'delete', - }) -} - -// 瀵煎嚭鐢ㄦ埛 -export async function exportUser(query) { - // return request({ - // url: '/system/User/export', - // method: 'get', - // params: query - // }) - await downFile('/system/user/export', { ...query }) -} - -// 鐢ㄦ埛瀵嗙爜閲嶇疆 -export function resetUserPwd(userId, password) { - const data = { - userId, - password, - } - return request({ - url: '/system/user/resetPwd', - method: 'put', - data: data, - }) -} - -// 鐢ㄦ埛鐘舵佷慨鏀 -export function changeUserStatus(userId, status) { - const data = { - userId, - status, - } - return request({ - url: '/system/user/changeStatus', - method: 'put', - data: data, - }) -} - -// 鏌ヨ鐢ㄦ埛涓汉淇℃伅 -export function getUserProfile() { - return request({ - url: '/system/user/Profile', - method: 'get', - }) -} - -// 淇敼鐢ㄦ埛涓汉淇℃伅 -export function updateUserProfile(data) { - return request({ - url: '/system/user/profile', - method: 'put', - data: data, - }) -} - -// 鐢ㄦ埛瀵嗙爜閲嶇疆 -export function updateUserPwd(oldPassword, newPassword) { - const data = { - oldPassword, - newPassword, - } - return request({ - url: '/system/user/profile/updatePwd', - method: 'put', - params: data, - }) -} - -// 鐢ㄦ埛澶村儚涓婁紶 -export function uploadAvatar(data) { - return request({ - url: '/system/user/profile/avatar', - method: 'post', - data: data, - }) -} - -// 涓嬭浇鐢ㄦ埛瀵煎叆妯℃澘 -export function importTemplate() { - return request({ - url: '/system/user/importTemplate', - method: 'get', - responseType: 'blob', //1.棣栧厛璁剧疆responseType瀵硅薄鏍煎紡涓 blob: - }) -} diff --git a/ZR.Vue/src/api/system/userRoles.js b/ZR.Vue/src/api/system/userRoles.js deleted file mode 100644 index d5d94b39..00000000 --- a/ZR.Vue/src/api/system/userRoles.js +++ /dev/null @@ -1,37 +0,0 @@ -import request from '@/utils/request' - -// 鏌ヨ瑙掕壊鐢ㄦ埛 -export function getRoleUsers(query) { - return request({ - url: '/system/userRole/list', - method: 'get', - params: query, - }) -} - -// 娣诲姞瑙掕壊鐢ㄦ埛 -export function createRoleUsers(data) { - return request({ - url: '/system/userRole/create', - method: 'post', - data - }) -} -// 鍒犻櫎瑙掕壊鐢ㄦ埛 -export function deleteRoleUsers(data) { - return request({ - url: '/system/userRole/delete', - method: 'post', - data - }) -} -// 鏌ヨ瑙掕壊鏈坊鍔犵敤鎴峰垪琛 -export function getExcludeUsers(query) { - return request({ - url: '/system/userRole/getExcludeUsers', - method: 'get', - params: query, - }) -} - -// export default { getRoleUsers, getExcludeUsers } diff --git a/ZR.Vue/src/api/tool/file.js b/ZR.Vue/src/api/tool/file.js deleted file mode 100644 index 03b64a87..00000000 --- a/ZR.Vue/src/api/tool/file.js +++ /dev/null @@ -1,69 +0,0 @@ -import request from '@/utils/request' - -/** -* 鏂囦欢瀛樺偍鍒嗛〉鏌ヨ -* @param {鏌ヨ鏉′欢} data -*/ -export function listSysfile(query) { - return request({ - url: 'tool/file/list', - method: 'get', - params: query, - }) -} - -/** -* 鏂板鏂囦欢瀛樺偍 -* @param data -*/ -export function addSysfile(data) { - return request({ - url: 'tool/file', - method: 'post', - data: data, - }) -} - -/** -* 淇敼鏂囦欢瀛樺偍 -* @param data -*/ -export function updateSysfile(data) { - return request({ - url: 'tool/file', - method: 'PUT', - data: data, - }) -} - -/** -* 鑾峰彇鏂囦欢瀛樺偍璇︽儏 -* @param {Id} -*/ -export function getSysfile(id) { - return request({ - url: 'tool/file/' + id, - method: 'get' - }) -} - -/** -* 鍒犻櫎鏂囦欢瀛樺偍 -* @param {涓婚敭} pid -*/ -export function delSysfile(pid) { - return request({ - url: 'tool/file/' + pid, - method: 'delete' - }) -} - -// 瀵煎嚭鏂囦欢瀛樺偍 -export function exportSysfile(query) { - return request({ - url: 'tool/file/export', - method: 'get', - params: query - }) -} - diff --git a/ZR.Vue/src/api/tool/gen.js b/ZR.Vue/src/api/tool/gen.js deleted file mode 100644 index b28fe8e7..00000000 --- a/ZR.Vue/src/api/tool/gen.js +++ /dev/null @@ -1,103 +0,0 @@ -import request from '@/utils/request'; - -/** - * 鑾峰彇鏁版嵁搴 - */ -export function codeGetDBList() { - return request({ - url: 'tool/gen/getDbList', - method: 'get', - }) -} -/** - * 鑾峰彇鏁版嵁搴撹〃 - */ -export function listDbTable(data) { - return request({ - url: 'tool/gen/getTableList', - method: 'get', - params: data, - }) -} -/** - * 鐢熸垚浠g爜 - */ -export async function codeGenerator(data) { - return await request({ - url: 'tool/gen/genCode', - method: 'POST', - data: data, - }) -} - -/** - * 鑾峰彇琛ㄦ牸鍒椾俊鎭 - * @param {*} data - * @returns - */ -export function queryColumnInfo(tableId) { - return request({ - url: 'tool/gen/Column/' + tableId, - method: 'GET', - }) -} - -// 鏌ヨ鐢熸垚琛ㄦ暟鎹 -export function listTable(params) { - return request({ - url: 'tool/gen/list', - method: 'get', - params: params - }) -} - -// 鏌ヨ琛ㄨ缁嗕俊鎭 -export function getGenTable(tableId) { - return request({ - url: '/tool/gen/' + tableId, - method: 'get' - }) -} - -// 瀵煎叆琛 -export function importTable(data) { - return request({ - url: '/tool/gen/importTable', - method: 'post', - params: data - }) -} -// 鍒犻櫎琛ㄦ暟鎹 -export function delTable(tableId) { - return request({ - url: '/tool/gen/' + tableId, - method: 'delete' - }) -} - -// 淇敼浠g爜鐢熸垚琛ㄤ俊鎭 -export function updateGenTable(data) { - return request({ - url: '/tool/gen/', - method: 'put', - data: data - }) -} - -// 棰勮鐢熸垚浠g爜 -export function previewTable(tableId) { - return request({ - url: '/tool/gen/preview/' + tableId, - method: 'post', - // data: data - }) -} - -// 鍚屾鏁版嵁搴 -export function synchDb(tableId, data) { - return request({ - url: '/tool/gen/synchDb/' + tableId, - method: 'get', - params: data - }) -} \ No newline at end of file diff --git a/ZR.Vue/src/assets/401_images/401.gif b/ZR.Vue/src/assets/401_images/401.gif deleted file mode 100644 index cd6e0d94..00000000 Binary files a/ZR.Vue/src/assets/401_images/401.gif and /dev/null differ diff --git a/ZR.Vue/src/assets/404_images/404.png b/ZR.Vue/src/assets/404_images/404.png deleted file mode 100644 index 3d8e2305..00000000 Binary files a/ZR.Vue/src/assets/404_images/404.png and /dev/null differ diff --git a/ZR.Vue/src/assets/404_images/404_cloud.png b/ZR.Vue/src/assets/404_images/404_cloud.png deleted file mode 100644 index c6281d09..00000000 Binary files a/ZR.Vue/src/assets/404_images/404_cloud.png and /dev/null differ diff --git a/ZR.Vue/src/assets/iconfont/login/iconfont.js b/ZR.Vue/src/assets/iconfont/login/iconfont.js deleted file mode 100644 index 0777ffca..00000000 --- a/ZR.Vue/src/assets/iconfont/login/iconfont.js +++ /dev/null @@ -1 +0,0 @@ -window._iconfont_svg_string_4062655='',function(n){var t=(t=document.getElementsByTagName("script"))[t.length-1],e=t.getAttribute("data-injectcss"),t=t.getAttribute("data-disable-injectsvg");if(!t){var i,o,a,l,d,c=function(t,e){e.parentNode.insertBefore(t,e)};if(e&&!n.__iconfont__svg__cssinject__){n.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(t){console&&console.log(t)}}i=function(){var t,e=document.createElement("div");e.innerHTML=n._iconfont_svg_string_4062655,(e=e.getElementsByTagName("svg")[0])&&(e.setAttribute("aria-hidden","true"),e.style.position="absolute",e.style.width=0,e.style.height=0,e.style.overflow="hidden",e=e,(t=document.body).firstChild?c(e,t.firstChild):t.appendChild(e))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(i,0):(o=function(){document.removeEventListener("DOMContentLoaded",o,!1),i()},document.addEventListener("DOMContentLoaded",o,!1)):document.attachEvent&&(a=i,l=n.document,d=!1,r(),l.onreadystatechange=function(){"complete"==l.readyState&&(l.onreadystatechange=null,s())})}function s(){d||(d=!0,a())}function r(){try{l.documentElement.doScroll("left")}catch(t){return void setTimeout(r,50)}s()}}(window); \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/index.js b/ZR.Vue/src/assets/icons/index.js deleted file mode 100644 index 2c6b309c..00000000 --- a/ZR.Vue/src/assets/icons/index.js +++ /dev/null @@ -1,9 +0,0 @@ -import Vue from 'vue' -import SvgIcon from '@/components/SvgIcon'// svg component - -// register globally -Vue.component('svg-icon', SvgIcon) - -const req = require.context('./svg', false, /\.svg$/) -const requireAll = requireContext => requireContext.keys().map(requireContext) -requireAll(req) diff --git a/ZR.Vue/src/assets/icons/svg/404.svg b/ZR.Vue/src/assets/icons/svg/404.svg deleted file mode 100644 index 6df50190..00000000 --- a/ZR.Vue/src/assets/icons/svg/404.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/Steve-Jobs.svg b/ZR.Vue/src/assets/icons/svg/Steve-Jobs.svg deleted file mode 100644 index 53843e24..00000000 --- a/ZR.Vue/src/assets/icons/svg/Steve-Jobs.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/alipay.svg b/ZR.Vue/src/assets/icons/svg/alipay.svg deleted file mode 100644 index 91389813..00000000 --- a/ZR.Vue/src/assets/icons/svg/alipay.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/anq.svg b/ZR.Vue/src/assets/icons/svg/anq.svg deleted file mode 100644 index a466608d..00000000 --- a/ZR.Vue/src/assets/icons/svg/anq.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/app.svg b/ZR.Vue/src/assets/icons/svg/app.svg deleted file mode 100644 index 0796da35..00000000 --- a/ZR.Vue/src/assets/icons/svg/app.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/backup.svg b/ZR.Vue/src/assets/icons/svg/backup.svg deleted file mode 100644 index a3272a46..00000000 --- a/ZR.Vue/src/assets/icons/svg/backup.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/bug.svg b/ZR.Vue/src/assets/icons/svg/bug.svg deleted file mode 100644 index 05a150dc..00000000 --- a/ZR.Vue/src/assets/icons/svg/bug.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/build.svg b/ZR.Vue/src/assets/icons/svg/build.svg deleted file mode 100644 index 97c46886..00000000 --- a/ZR.Vue/src/assets/icons/svg/build.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/button.svg b/ZR.Vue/src/assets/icons/svg/button.svg deleted file mode 100644 index 904fddc8..00000000 --- a/ZR.Vue/src/assets/icons/svg/button.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/cascader.svg b/ZR.Vue/src/assets/icons/svg/cascader.svg deleted file mode 100644 index e256024f..00000000 --- a/ZR.Vue/src/assets/icons/svg/cascader.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/chain.svg b/ZR.Vue/src/assets/icons/svg/chain.svg deleted file mode 100644 index ed3317f4..00000000 --- a/ZR.Vue/src/assets/icons/svg/chain.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/chart.svg b/ZR.Vue/src/assets/icons/svg/chart.svg deleted file mode 100644 index 27728fb0..00000000 --- a/ZR.Vue/src/assets/icons/svg/chart.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/checkbox.svg b/ZR.Vue/src/assets/icons/svg/checkbox.svg deleted file mode 100644 index 013fd3a2..00000000 --- a/ZR.Vue/src/assets/icons/svg/checkbox.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/clipboard.svg b/ZR.Vue/src/assets/icons/svg/clipboard.svg deleted file mode 100644 index 90923ff6..00000000 --- a/ZR.Vue/src/assets/icons/svg/clipboard.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/code.svg b/ZR.Vue/src/assets/icons/svg/code.svg deleted file mode 100644 index ed4d23cf..00000000 --- a/ZR.Vue/src/assets/icons/svg/code.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/codeConsole.svg b/ZR.Vue/src/assets/icons/svg/codeConsole.svg deleted file mode 100644 index 672ec6e4..00000000 --- a/ZR.Vue/src/assets/icons/svg/codeConsole.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/color.svg b/ZR.Vue/src/assets/icons/svg/color.svg deleted file mode 100644 index 44a81aab..00000000 --- a/ZR.Vue/src/assets/icons/svg/color.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/component.svg b/ZR.Vue/src/assets/icons/svg/component.svg deleted file mode 100644 index 29c34580..00000000 --- a/ZR.Vue/src/assets/icons/svg/component.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/dashboard.svg b/ZR.Vue/src/assets/icons/svg/dashboard.svg deleted file mode 100644 index 5317d370..00000000 --- a/ZR.Vue/src/assets/icons/svg/dashboard.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/database.svg b/ZR.Vue/src/assets/icons/svg/database.svg deleted file mode 100644 index 7fbad9b8..00000000 --- a/ZR.Vue/src/assets/icons/svg/database.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/date-range.svg b/ZR.Vue/src/assets/icons/svg/date-range.svg deleted file mode 100644 index fda571e7..00000000 --- a/ZR.Vue/src/assets/icons/svg/date-range.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/date.svg b/ZR.Vue/src/assets/icons/svg/date.svg deleted file mode 100644 index 52dc73ee..00000000 --- a/ZR.Vue/src/assets/icons/svg/date.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/deploy.svg b/ZR.Vue/src/assets/icons/svg/deploy.svg deleted file mode 100644 index f4a1c56e..00000000 --- a/ZR.Vue/src/assets/icons/svg/deploy.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/dept.svg b/ZR.Vue/src/assets/icons/svg/dept.svg deleted file mode 100644 index 894e4bff..00000000 --- a/ZR.Vue/src/assets/icons/svg/dept.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/develop.svg b/ZR.Vue/src/assets/icons/svg/develop.svg deleted file mode 100644 index e189223d..00000000 --- a/ZR.Vue/src/assets/icons/svg/develop.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/dict.svg b/ZR.Vue/src/assets/icons/svg/dict.svg deleted file mode 100644 index 48493773..00000000 --- a/ZR.Vue/src/assets/icons/svg/dict.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/dictionary.svg b/ZR.Vue/src/assets/icons/svg/dictionary.svg deleted file mode 100644 index 6e83c435..00000000 --- a/ZR.Vue/src/assets/icons/svg/dictionary.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/doc.svg b/ZR.Vue/src/assets/icons/svg/doc.svg deleted file mode 100644 index 9160de8c..00000000 --- a/ZR.Vue/src/assets/icons/svg/doc.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/documentation.svg b/ZR.Vue/src/assets/icons/svg/documentation.svg deleted file mode 100644 index 70431228..00000000 --- a/ZR.Vue/src/assets/icons/svg/documentation.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/download.svg b/ZR.Vue/src/assets/icons/svg/download.svg deleted file mode 100644 index c8969513..00000000 --- a/ZR.Vue/src/assets/icons/svg/download.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/drag.svg b/ZR.Vue/src/assets/icons/svg/drag.svg deleted file mode 100644 index 4185d3ce..00000000 --- a/ZR.Vue/src/assets/icons/svg/drag.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/druid.svg b/ZR.Vue/src/assets/icons/svg/druid.svg deleted file mode 100644 index a2b4b4ed..00000000 --- a/ZR.Vue/src/assets/icons/svg/druid.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/edit.svg b/ZR.Vue/src/assets/icons/svg/edit.svg deleted file mode 100644 index d26101f2..00000000 --- a/ZR.Vue/src/assets/icons/svg/edit.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/education.svg b/ZR.Vue/src/assets/icons/svg/education.svg deleted file mode 100644 index 7bfb01d1..00000000 --- a/ZR.Vue/src/assets/icons/svg/education.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/email.svg b/ZR.Vue/src/assets/icons/svg/email.svg deleted file mode 100644 index 74d25e21..00000000 --- a/ZR.Vue/src/assets/icons/svg/email.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/error.svg b/ZR.Vue/src/assets/icons/svg/error.svg deleted file mode 100644 index fd935da9..00000000 --- a/ZR.Vue/src/assets/icons/svg/error.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/example.svg b/ZR.Vue/src/assets/icons/svg/example.svg deleted file mode 100644 index 46f42b53..00000000 --- a/ZR.Vue/src/assets/icons/svg/example.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/excel.svg b/ZR.Vue/src/assets/icons/svg/excel.svg deleted file mode 100644 index 74d97b80..00000000 --- a/ZR.Vue/src/assets/icons/svg/excel.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/exit-fullscreen.svg b/ZR.Vue/src/assets/icons/svg/exit-fullscreen.svg deleted file mode 100644 index 485c128b..00000000 --- a/ZR.Vue/src/assets/icons/svg/exit-fullscreen.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/eye-open.svg b/ZR.Vue/src/assets/icons/svg/eye-open.svg deleted file mode 100644 index 88dcc98e..00000000 --- a/ZR.Vue/src/assets/icons/svg/eye-open.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/eye.svg b/ZR.Vue/src/assets/icons/svg/eye.svg deleted file mode 100644 index 16ed2d87..00000000 --- a/ZR.Vue/src/assets/icons/svg/eye.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/form.svg b/ZR.Vue/src/assets/icons/svg/form.svg deleted file mode 100644 index dcbaa185..00000000 --- a/ZR.Vue/src/assets/icons/svg/form.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/fullscreen.svg b/ZR.Vue/src/assets/icons/svg/fullscreen.svg deleted file mode 100644 index 0e86b6fa..00000000 --- a/ZR.Vue/src/assets/icons/svg/fullscreen.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/fwb.svg b/ZR.Vue/src/assets/icons/svg/fwb.svg deleted file mode 100644 index 59933fc7..00000000 --- a/ZR.Vue/src/assets/icons/svg/fwb.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/github.svg b/ZR.Vue/src/assets/icons/svg/github.svg deleted file mode 100644 index db0a0d43..00000000 --- a/ZR.Vue/src/assets/icons/svg/github.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/gonggao.svg b/ZR.Vue/src/assets/icons/svg/gonggao.svg deleted file mode 100644 index 22aed08f..00000000 --- a/ZR.Vue/src/assets/icons/svg/gonggao.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/guide.svg b/ZR.Vue/src/assets/icons/svg/guide.svg deleted file mode 100644 index b2710017..00000000 --- a/ZR.Vue/src/assets/icons/svg/guide.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/icon.svg b/ZR.Vue/src/assets/icons/svg/icon.svg deleted file mode 100644 index 82be8eee..00000000 --- a/ZR.Vue/src/assets/icons/svg/icon.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/icon1.svg b/ZR.Vue/src/assets/icons/svg/icon1.svg deleted file mode 100644 index 82fbdd98..00000000 --- a/ZR.Vue/src/assets/icons/svg/icon1.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/image.svg b/ZR.Vue/src/assets/icons/svg/image.svg deleted file mode 100644 index 16d572fd..00000000 --- a/ZR.Vue/src/assets/icons/svg/image.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/index.svg b/ZR.Vue/src/assets/icons/svg/index.svg deleted file mode 100644 index fdb38269..00000000 --- a/ZR.Vue/src/assets/icons/svg/index.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/input.svg b/ZR.Vue/src/assets/icons/svg/input.svg deleted file mode 100644 index ab91381e..00000000 --- a/ZR.Vue/src/assets/icons/svg/input.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/international.svg b/ZR.Vue/src/assets/icons/svg/international.svg deleted file mode 100644 index e9b56eee..00000000 --- a/ZR.Vue/src/assets/icons/svg/international.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/ipvisits.svg b/ZR.Vue/src/assets/icons/svg/ipvisits.svg deleted file mode 100644 index 4ca473d7..00000000 --- a/ZR.Vue/src/assets/icons/svg/ipvisits.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/java.svg b/ZR.Vue/src/assets/icons/svg/java.svg deleted file mode 100644 index e2effbbf..00000000 --- a/ZR.Vue/src/assets/icons/svg/java.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/job.svg b/ZR.Vue/src/assets/icons/svg/job.svg deleted file mode 100644 index 2a93a251..00000000 --- a/ZR.Vue/src/assets/icons/svg/job.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/language.svg b/ZR.Vue/src/assets/icons/svg/language.svg deleted file mode 100644 index 0082b577..00000000 --- a/ZR.Vue/src/assets/icons/svg/language.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/link.svg b/ZR.Vue/src/assets/icons/svg/link.svg deleted file mode 100644 index 48197ba4..00000000 --- a/ZR.Vue/src/assets/icons/svg/link.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/list.svg b/ZR.Vue/src/assets/icons/svg/list.svg deleted file mode 100644 index 20259edd..00000000 --- a/ZR.Vue/src/assets/icons/svg/list.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/lock.svg b/ZR.Vue/src/assets/icons/svg/lock.svg deleted file mode 100644 index 74fee543..00000000 --- a/ZR.Vue/src/assets/icons/svg/lock.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/log.svg b/ZR.Vue/src/assets/icons/svg/log.svg deleted file mode 100644 index d879d33b..00000000 --- a/ZR.Vue/src/assets/icons/svg/log.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/login.svg b/ZR.Vue/src/assets/icons/svg/login.svg deleted file mode 100644 index cc5a854e..00000000 --- a/ZR.Vue/src/assets/icons/svg/login.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/logininfor.svg b/ZR.Vue/src/assets/icons/svg/logininfor.svg deleted file mode 100644 index 267f8447..00000000 --- a/ZR.Vue/src/assets/icons/svg/logininfor.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/markdown.svg b/ZR.Vue/src/assets/icons/svg/markdown.svg deleted file mode 100644 index 7cd67475..00000000 --- a/ZR.Vue/src/assets/icons/svg/markdown.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/menu.svg b/ZR.Vue/src/assets/icons/svg/menu.svg deleted file mode 100644 index e4360a02..00000000 --- a/ZR.Vue/src/assets/icons/svg/menu.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/message.svg b/ZR.Vue/src/assets/icons/svg/message.svg deleted file mode 100644 index 14ca8172..00000000 --- a/ZR.Vue/src/assets/icons/svg/message.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/mnt.svg b/ZR.Vue/src/assets/icons/svg/mnt.svg deleted file mode 100644 index 502a7c05..00000000 --- a/ZR.Vue/src/assets/icons/svg/mnt.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/money.svg b/ZR.Vue/src/assets/icons/svg/money.svg deleted file mode 100644 index c1580de1..00000000 --- a/ZR.Vue/src/assets/icons/svg/money.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/monitor.svg b/ZR.Vue/src/assets/icons/svg/monitor.svg deleted file mode 100644 index bc308cb0..00000000 --- a/ZR.Vue/src/assets/icons/svg/monitor.svg +++ /dev/null @@ -1,2 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/nested.svg b/ZR.Vue/src/assets/icons/svg/nested.svg deleted file mode 100644 index 06713a86..00000000 --- a/ZR.Vue/src/assets/icons/svg/nested.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/number.svg b/ZR.Vue/src/assets/icons/svg/number.svg deleted file mode 100644 index ad5ce9af..00000000 --- a/ZR.Vue/src/assets/icons/svg/number.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/online.svg b/ZR.Vue/src/assets/icons/svg/online.svg deleted file mode 100644 index 330a2029..00000000 --- a/ZR.Vue/src/assets/icons/svg/online.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/password.svg b/ZR.Vue/src/assets/icons/svg/password.svg deleted file mode 100644 index 6c64defe..00000000 --- a/ZR.Vue/src/assets/icons/svg/password.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/pdf.svg b/ZR.Vue/src/assets/icons/svg/pdf.svg deleted file mode 100644 index 957aa0cc..00000000 --- a/ZR.Vue/src/assets/icons/svg/pdf.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/people.svg b/ZR.Vue/src/assets/icons/svg/people.svg deleted file mode 100644 index 2bd54aeb..00000000 --- a/ZR.Vue/src/assets/icons/svg/people.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/peoples.svg b/ZR.Vue/src/assets/icons/svg/peoples.svg deleted file mode 100644 index aab852e5..00000000 --- a/ZR.Vue/src/assets/icons/svg/peoples.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/permission.svg b/ZR.Vue/src/assets/icons/svg/permission.svg deleted file mode 100644 index c4c74091..00000000 --- a/ZR.Vue/src/assets/icons/svg/permission.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/phone.svg b/ZR.Vue/src/assets/icons/svg/phone.svg deleted file mode 100644 index ab8e8c4e..00000000 --- a/ZR.Vue/src/assets/icons/svg/phone.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/post.svg b/ZR.Vue/src/assets/icons/svg/post.svg deleted file mode 100644 index 2922c613..00000000 --- a/ZR.Vue/src/assets/icons/svg/post.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/qiniu.svg b/ZR.Vue/src/assets/icons/svg/qiniu.svg deleted file mode 100644 index c2f9f8b2..00000000 --- a/ZR.Vue/src/assets/icons/svg/qiniu.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/qq.svg b/ZR.Vue/src/assets/icons/svg/qq.svg deleted file mode 100644 index ee13d4ec..00000000 --- a/ZR.Vue/src/assets/icons/svg/qq.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/question.svg b/ZR.Vue/src/assets/icons/svg/question.svg deleted file mode 100644 index cf75bd4b..00000000 --- a/ZR.Vue/src/assets/icons/svg/question.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/radio.svg b/ZR.Vue/src/assets/icons/svg/radio.svg deleted file mode 100644 index 0cde3452..00000000 --- a/ZR.Vue/src/assets/icons/svg/radio.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/rate.svg b/ZR.Vue/src/assets/icons/svg/rate.svg deleted file mode 100644 index aa3b14d7..00000000 --- a/ZR.Vue/src/assets/icons/svg/rate.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/redis.svg b/ZR.Vue/src/assets/icons/svg/redis.svg deleted file mode 100644 index 2f1d62df..00000000 --- a/ZR.Vue/src/assets/icons/svg/redis.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/role.svg b/ZR.Vue/src/assets/icons/svg/role.svg deleted file mode 100644 index 76cb18ff..00000000 --- a/ZR.Vue/src/assets/icons/svg/role.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/row.svg b/ZR.Vue/src/assets/icons/svg/row.svg deleted file mode 100644 index 07809922..00000000 --- a/ZR.Vue/src/assets/icons/svg/row.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/search.svg b/ZR.Vue/src/assets/icons/svg/search.svg deleted file mode 100644 index 84233dda..00000000 --- a/ZR.Vue/src/assets/icons/svg/search.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/select.svg b/ZR.Vue/src/assets/icons/svg/select.svg deleted file mode 100644 index d6283828..00000000 --- a/ZR.Vue/src/assets/icons/svg/select.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/server.svg b/ZR.Vue/src/assets/icons/svg/server.svg deleted file mode 100644 index ca37b001..00000000 --- a/ZR.Vue/src/assets/icons/svg/server.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/shopping.svg b/ZR.Vue/src/assets/icons/svg/shopping.svg deleted file mode 100644 index 87513e7c..00000000 --- a/ZR.Vue/src/assets/icons/svg/shopping.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/size.svg b/ZR.Vue/src/assets/icons/svg/size.svg deleted file mode 100644 index ddb25b8d..00000000 --- a/ZR.Vue/src/assets/icons/svg/size.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/skill.svg b/ZR.Vue/src/assets/icons/svg/skill.svg deleted file mode 100644 index a3b73121..00000000 --- a/ZR.Vue/src/assets/icons/svg/skill.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/slider.svg b/ZR.Vue/src/assets/icons/svg/slider.svg deleted file mode 100644 index fbe4f39f..00000000 --- a/ZR.Vue/src/assets/icons/svg/slider.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/source.svg b/ZR.Vue/src/assets/icons/svg/source.svg deleted file mode 100644 index 1c3a0380..00000000 --- a/ZR.Vue/src/assets/icons/svg/source.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/sqlMonitor.svg b/ZR.Vue/src/assets/icons/svg/sqlMonitor.svg deleted file mode 100644 index 950a430d..00000000 --- a/ZR.Vue/src/assets/icons/svg/sqlMonitor.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/star.svg b/ZR.Vue/src/assets/icons/svg/star.svg deleted file mode 100644 index 6cf86e66..00000000 --- a/ZR.Vue/src/assets/icons/svg/star.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/swagger.svg b/ZR.Vue/src/assets/icons/svg/swagger.svg deleted file mode 100644 index 05d4e7bc..00000000 --- a/ZR.Vue/src/assets/icons/svg/swagger.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/switch.svg b/ZR.Vue/src/assets/icons/svg/switch.svg deleted file mode 100644 index 0ba61e38..00000000 --- a/ZR.Vue/src/assets/icons/svg/switch.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/sys-tools.svg b/ZR.Vue/src/assets/icons/svg/sys-tools.svg deleted file mode 100644 index 324aa04f..00000000 --- a/ZR.Vue/src/assets/icons/svg/sys-tools.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/system.svg b/ZR.Vue/src/assets/icons/svg/system.svg deleted file mode 100644 index dba28cf6..00000000 --- a/ZR.Vue/src/assets/icons/svg/system.svg +++ /dev/null @@ -1,2 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/system1.svg b/ZR.Vue/src/assets/icons/svg/system1.svg deleted file mode 100644 index 37b0a0a8..00000000 --- a/ZR.Vue/src/assets/icons/svg/system1.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/tab.svg b/ZR.Vue/src/assets/icons/svg/tab.svg deleted file mode 100644 index b4b48e48..00000000 --- a/ZR.Vue/src/assets/icons/svg/tab.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/table.svg b/ZR.Vue/src/assets/icons/svg/table.svg deleted file mode 100644 index 0e3dc9de..00000000 --- a/ZR.Vue/src/assets/icons/svg/table.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/textarea.svg b/ZR.Vue/src/assets/icons/svg/textarea.svg deleted file mode 100644 index 2709f292..00000000 --- a/ZR.Vue/src/assets/icons/svg/textarea.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/theme.svg b/ZR.Vue/src/assets/icons/svg/theme.svg deleted file mode 100644 index 5982a2f7..00000000 --- a/ZR.Vue/src/assets/icons/svg/theme.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/time-range.svg b/ZR.Vue/src/assets/icons/svg/time-range.svg deleted file mode 100644 index 13c1202b..00000000 --- a/ZR.Vue/src/assets/icons/svg/time-range.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/time.svg b/ZR.Vue/src/assets/icons/svg/time.svg deleted file mode 100644 index b376e32a..00000000 --- a/ZR.Vue/src/assets/icons/svg/time.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/tool.svg b/ZR.Vue/src/assets/icons/svg/tool.svg deleted file mode 100644 index c813067e..00000000 --- a/ZR.Vue/src/assets/icons/svg/tool.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/tools.svg b/ZR.Vue/src/assets/icons/svg/tools.svg deleted file mode 100644 index aba1a401..00000000 --- a/ZR.Vue/src/assets/icons/svg/tools.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/tree-table.svg b/ZR.Vue/src/assets/icons/svg/tree-table.svg deleted file mode 100644 index 8aafdb82..00000000 --- a/ZR.Vue/src/assets/icons/svg/tree-table.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/tree.svg b/ZR.Vue/src/assets/icons/svg/tree.svg deleted file mode 100644 index dd4b7dd2..00000000 --- a/ZR.Vue/src/assets/icons/svg/tree.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/unlock.svg b/ZR.Vue/src/assets/icons/svg/unlock.svg deleted file mode 100644 index 1219e41d..00000000 --- a/ZR.Vue/src/assets/icons/svg/unlock.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/upload.svg b/ZR.Vue/src/assets/icons/svg/upload.svg deleted file mode 100644 index bae49c0a..00000000 --- a/ZR.Vue/src/assets/icons/svg/upload.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/user.svg b/ZR.Vue/src/assets/icons/svg/user.svg deleted file mode 100644 index 0ba0716a..00000000 --- a/ZR.Vue/src/assets/icons/svg/user.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/validCode.svg b/ZR.Vue/src/assets/icons/svg/validCode.svg deleted file mode 100644 index cfb10214..00000000 --- a/ZR.Vue/src/assets/icons/svg/validCode.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/visits.svg b/ZR.Vue/src/assets/icons/svg/visits.svg deleted file mode 100644 index 8425662d..00000000 --- a/ZR.Vue/src/assets/icons/svg/visits.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/web.svg b/ZR.Vue/src/assets/icons/svg/web.svg deleted file mode 100644 index 9c574156..00000000 --- a/ZR.Vue/src/assets/icons/svg/web.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/wechat.svg b/ZR.Vue/src/assets/icons/svg/wechat.svg deleted file mode 100644 index c586e551..00000000 --- a/ZR.Vue/src/assets/icons/svg/wechat.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/weixin.svg b/ZR.Vue/src/assets/icons/svg/weixin.svg deleted file mode 100644 index 8dbcfa5c..00000000 --- a/ZR.Vue/src/assets/icons/svg/weixin.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/zip.svg b/ZR.Vue/src/assets/icons/svg/zip.svg deleted file mode 100644 index f806fc48..00000000 --- a/ZR.Vue/src/assets/icons/svg/zip.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svg/zujian.svg b/ZR.Vue/src/assets/icons/svg/zujian.svg deleted file mode 100644 index 2aba32fc..00000000 --- a/ZR.Vue/src/assets/icons/svg/zujian.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/icons/svgo.yml b/ZR.Vue/src/assets/icons/svgo.yml deleted file mode 100644 index d11906ae..00000000 --- a/ZR.Vue/src/assets/icons/svgo.yml +++ /dev/null @@ -1,22 +0,0 @@ -# replace default config - -# multipass: true -# full: true - -plugins: - - # - name - # - # or: - # - name: false - # - name: true - # - # or: - # - name: - # param1: 1 - # param2: 2 - -- removeAttrs: - attrs: - - 'fill' - - 'fill-rule' diff --git a/ZR.Vue/src/assets/image/console/1.svg b/ZR.Vue/src/assets/image/console/1.svg deleted file mode 100644 index 9f15f5c1..00000000 --- a/ZR.Vue/src/assets/image/console/1.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ZR.Vue/src/assets/image/dark.svg b/ZR.Vue/src/assets/image/dark.svg deleted file mode 100644 index f646bd7e..00000000 --- a/ZR.Vue/src/assets/image/dark.svg +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/ZR.Vue/src/assets/image/door/1.jpg b/ZR.Vue/src/assets/image/door/1.jpg deleted file mode 100644 index cf084b55..00000000 Binary files a/ZR.Vue/src/assets/image/door/1.jpg and /dev/null differ diff --git a/ZR.Vue/src/assets/image/door/2.jpg b/ZR.Vue/src/assets/image/door/2.jpg deleted file mode 100644 index 1799ee91..00000000 Binary files a/ZR.Vue/src/assets/image/door/2.jpg and /dev/null differ diff --git a/ZR.Vue/src/assets/image/door/3.jpg b/ZR.Vue/src/assets/image/door/3.jpg deleted file mode 100644 index 052867ba..00000000 Binary files a/ZR.Vue/src/assets/image/door/3.jpg and /dev/null differ diff --git a/ZR.Vue/src/assets/image/door/4.jpg b/ZR.Vue/src/assets/image/door/4.jpg deleted file mode 100644 index 91281e8f..00000000 Binary files a/ZR.Vue/src/assets/image/door/4.jpg and /dev/null differ diff --git a/ZR.Vue/src/assets/image/door/5.jpg b/ZR.Vue/src/assets/image/door/5.jpg deleted file mode 100644 index 0f0f70dd..00000000 Binary files a/ZR.Vue/src/assets/image/door/5.jpg and /dev/null differ diff --git a/ZR.Vue/src/assets/image/light.svg b/ZR.Vue/src/assets/image/light.svg deleted file mode 100644 index ab7cc088..00000000 --- a/ZR.Vue/src/assets/image/light.svg +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/ZR.Vue/src/assets/image/login-background.jpg b/ZR.Vue/src/assets/image/login-background.jpg deleted file mode 100644 index 3066bd1e..00000000 Binary files a/ZR.Vue/src/assets/image/login-background.jpg and /dev/null differ diff --git a/ZR.Vue/src/assets/image/login-pic03.png b/ZR.Vue/src/assets/image/login-pic03.png deleted file mode 100644 index 913fda10..00000000 Binary files a/ZR.Vue/src/assets/image/login-pic03.png and /dev/null differ diff --git a/ZR.Vue/src/assets/image/profile.jpg b/ZR.Vue/src/assets/image/profile.jpg deleted file mode 100644 index 16fd7916..00000000 Binary files a/ZR.Vue/src/assets/image/profile.jpg and /dev/null differ diff --git a/ZR.Vue/src/assets/image/qrcode.jpg b/ZR.Vue/src/assets/image/qrcode.jpg deleted file mode 100644 index 3261850d..00000000 Binary files a/ZR.Vue/src/assets/image/qrcode.jpg and /dev/null differ diff --git a/ZR.Vue/src/assets/image/qrcodeH5.png b/ZR.Vue/src/assets/image/qrcodeH5.png deleted file mode 100644 index 2b4cb322..00000000 Binary files a/ZR.Vue/src/assets/image/qrcodeH5.png and /dev/null differ diff --git a/ZR.Vue/src/assets/logo/background.png b/ZR.Vue/src/assets/logo/background.png deleted file mode 100644 index 11abca7e..00000000 Binary files a/ZR.Vue/src/assets/logo/background.png and /dev/null differ diff --git a/ZR.Vue/src/assets/logo/logo.png b/ZR.Vue/src/assets/logo/logo.png deleted file mode 100644 index 18bce356..00000000 Binary files a/ZR.Vue/src/assets/logo/logo.png and /dev/null differ diff --git a/ZR.Vue/src/assets/styles/btn.scss b/ZR.Vue/src/assets/styles/btn.scss deleted file mode 100644 index 6730c405..00000000 --- a/ZR.Vue/src/assets/styles/btn.scss +++ /dev/null @@ -1,42 +0,0 @@ -@import './variables.scss'; - -@mixin colorBtn($color) { - background: $color; - - &:hover { - color: $color; - - &:before, - &:after { - background: $color; - } - } -} - -.blue-btn { - @include colorBtn($blue) -} - -.light-blue-btn { - @include colorBtn($light-blue) -} - -.red-btn { - @include colorBtn($red) -} - -.pink-btn { - @include colorBtn($pink) -} - -.green-btn { - @include colorBtn($green) -} - -.tiffany-btn { - @include colorBtn($tiffany) -} - -.yellow-btn { - @include colorBtn($yellow) -} \ No newline at end of file diff --git a/ZR.Vue/src/assets/styles/element-ui.scss b/ZR.Vue/src/assets/styles/element-ui.scss deleted file mode 100644 index 74b3bb68..00000000 --- a/ZR.Vue/src/assets/styles/element-ui.scss +++ /dev/null @@ -1,152 +0,0 @@ -// cover some element-ui styles - -.el-breadcrumb__inner, -.el-breadcrumb__inner a { - font-weight: 400 !important; -} - -.el-upload { - input[type="file"] { - display: none !important; - } -} - -.el-upload__input { - display: none; -} - -.cell { - .el-tag { - margin-right: 0px; - } -} - -.small-padding { - .cell { - padding-left: 5px; - padding-right: 5px; - } -} - -.fixed-width { - .el-button--mini { - padding: 7px 10px; - width: 60px; - } -} - -.status-col { - .cell { - padding: 0 10px; - text-align: center; - - .el-tag { - margin-right: 0px; - } - } -} - -// to fixed https://github.com/ElemeFE/element/issues/2461 -.el-dialog { - transform: none; - left: 0; - position: relative; - margin: 0 auto; -} - -// refine element ui upload -.upload-container { - .el-upload { - width: 100%; - - .el-upload-dragger { - width: 100%; - height: 200px; - } - } -} - -// dropdown -.el-dropdown-menu { - a { - display: block - } -} - -// fix date-picker ui bug in filter-item -.el-range-editor.el-input__inner { - display: inline-flex !important; -} - -// to fix el-date-picker css style -.el-range-separator { - box-sizing: content-box; -} - - -/* 瑙e喅element-ui鐨則able琛ㄦ牸鎺т欢琛ㄥご涓庡唴瀹瑰垪涓嶅榻愰棶棰 */ - -.el-table th.gutter { - display: table-cell !important; -} - -.el-checkbox.mini .el-checkbox__label { - font-size: 12px !important; -} - -.el-checkbox.small .el-checkbox__label { - font-size: 12px !important; -} - -.el-checkbox.medium .el-checkbox__label { - font-size: 14px !important; -} - -.el-table .fixed-width .el-button--mini { - color: #409EFF; - padding-left: 0; - padding-right: 0; - width: inherit; -} - -.el-tree-node__content>.el-checkbox { - margin-right: 8px; -} - -// element ui 绉诲姩绔粍浠堕傞厤 -@media screen and (max-width: 500px) { - .el-message { - min-width: 300px !important; - } -} - -@media screen and (max-width: 500px) { - .el-message-box { - width: 300px !important; - } - .el-pagination__jump{ - display: none !important; - } - .el-pagination__sizes{ - display: none !important; - } -} - -// dialog -@media screen and (max-width: 500px) { - .el-dialog__wrapper .el-dialog { - width: 95% !important; - } -} - -/** 琛ㄦ牸鏇村鎿嶄綔涓嬫媺鏍峰紡 */ -.el-table .el-dropdown-link { - cursor: pointer; - color: #409EFF; - margin-left: 5px; -} - -.el-table .el-dropdown, .el-icon-arrow-down { - font-size: 12px; -} -//閫傞厤瀹屾瘯 \ No newline at end of file diff --git a/ZR.Vue/src/assets/styles/element-variables.scss b/ZR.Vue/src/assets/styles/element-variables.scss deleted file mode 100644 index 8b7a48e9..00000000 --- a/ZR.Vue/src/assets/styles/element-variables.scss +++ /dev/null @@ -1,31 +0,0 @@ -/** -* I think element-ui's default theme color is too light for long-term use. -* So I modified the default color and you can modify it to your liking. -**/ - -/* theme color */ -$--color-primary: #1890ff; -$--color-success: #13ce66; -$--color-warning: #ffba00; -$--color-danger: #ff4949; -// $--color-info: #1E1E1E; - -$--button-font-weight: 400; - -// $--color-text-regular: #1f2d3d; - -$--border-color-light: #dfe4ed; -$--border-color-lighter: #e6ebf5; - -$--table-border:1px solid#dfe6ec; - -/* icon font path, required */ -$--font-path: '~element-ui/lib/theme-chalk/fonts'; - -@import "~element-ui/packages/theme-chalk/src/index"; - -// the :export directive is the magic sauce for webpack -// https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass -:export { - theme: $--color-primary; -} diff --git a/ZR.Vue/src/assets/styles/index.scss b/ZR.Vue/src/assets/styles/index.scss deleted file mode 100644 index b9c6097e..00000000 --- a/ZR.Vue/src/assets/styles/index.scss +++ /dev/null @@ -1,265 +0,0 @@ -@import 'variables'; -@import 'mixin'; -@import 'transition'; -@import 'element-ui'; -@import 'sidebar'; -@import 'btn'; - -body { - height: 100%; - -moz-osx-font-smoothing: grayscale; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif; -} - -label { - font-weight: 700; -} - -html { - height: 100%; - box-sizing: border-box; -} - -#app { - height: 100%; -} - -*, -*:before, -*:after { - box-sizing: inherit; -} - -.no-padding { - padding: 0 !important; -} - -.padding-content { - padding: 4px 0; -} - -a:focus, -a:active { - outline: none; -} - -a, -a:focus, -a:hover { - cursor: pointer; - color: inherit; - text-decoration: none; -} - -div:focus { - outline: none; -} - -.fr { - float: right; -} - -.fl { - float: left; -} - -.pr-5 { - padding-right: 5px; -} - -.pl-5 { - padding-left: 5px; -} - -.block { - display: block; -} - -.pointer { - cursor: pointer; -} - -.inlineBlock { - display: block; -} - -.clearfix { - &:after { - visibility: hidden; - display: block; - font-size: 0; - content: " "; - clear: both; - height: 0; - } -} - -//main-container鍏ㄥ眬鏍峰紡 -.app-container { - padding: 20px; -} - -.text-center { - text-align: center -} - -.link-type, -.link-type:focus { - color: #337ab7; - cursor: pointer; - - &:hover { - color: rgb(32, 160, 255); - } -} - -/** 鍩虹閫氱敤 **/ -.pt5 { - padding-top: 5px; -} - -.pr5 { - padding-right: 5px; -} - -.pb5 { - padding-bottom: 5px; -} - -.mt5 { - margin-top: 5px; -} - -.mr5 { - margin-right: 5px; -} - -.mb5 { - margin-bottom: 5px; -} - -.mb8 { - margin-bottom: 8px; -} - -.ml5 { - margin-left: 5px; -} - -.mt10 { - margin-top: 10px; -} - -.mr10 { - margin-right: 10px; -} - -.mb10 { - margin-bottom: 10px; -} - -.ml10 { - margin-left: 10px; -} - -.mt20 { - margin-top: 20px; -} - -.mr20 { - margin-right: 20px; -} - -.mb20 { - margin-bottom: 20px; -} - -.ml20 { - margin-left: 20px; -} - -.ml { - margin-left: auto; -} - -.mr { - margin-right: auto; -} - -.mt { - margin-top: auto; -} - -.mb { - margin-bottom: auto; -} - -.el-dialog:not(.is-fullscreen) { - margin-top: 6vh !important; -} - -.pull-right { - float: right !important; -} - -/* text color */ -.text-navy { - color: #1ab394; -} - -.text-primary { - color: inherit; -} - -.text-success { - color: #1c84c6; -} - -.text-info { - color: #23c6c8; -} - -.text-warning { - color: #f8ac59; -} - -.text-danger { - color: #ed5565; -} - -.text-muted { - color: #888888; -} -.text-orange { - color: orangered; -} - -.text-hotpink { - color: hotpink; -} -.text-green { - color: green; -} -.text-greenyellow { - color: greenyellow; -} -/* image */ -.img-circle { - border-radius: 50%; -} - -.card-box { - padding-right: 15px; - padding-left: 15px; - margin-bottom: 10px; -} - -.icon { - width: 100px; -} - -.table-td-thumb { - width: 56px; -} diff --git a/ZR.Vue/src/assets/styles/mixin.scss b/ZR.Vue/src/assets/styles/mixin.scss deleted file mode 100644 index 06fa0612..00000000 --- a/ZR.Vue/src/assets/styles/mixin.scss +++ /dev/null @@ -1,66 +0,0 @@ -@mixin clearfix { - &:after { - content: ""; - display: table; - clear: both; - } -} - -@mixin scrollBar { - &::-webkit-scrollbar-track-piece { - background: #d3dce6; - } - - &::-webkit-scrollbar { - width: 6px; - } - - &::-webkit-scrollbar-thumb { - background: #99a9bf; - border-radius: 20px; - } -} - -@mixin relative { - position: relative; - width: 100%; - height: 100%; -} - -@mixin pct($pct) { - width: #{$pct}; - position: relative; - margin: 0 auto; -} - -@mixin triangle($width, $height, $color, $direction) { - $width: $width/2; - $color-border-style: $height solid $color; - $transparent-border-style: $width solid transparent; - height: 0; - width: 0; - - @if $direction==up { - border-bottom: $color-border-style; - border-left: $transparent-border-style; - border-right: $transparent-border-style; - } - - @else if $direction==right { - border-left: $color-border-style; - border-top: $transparent-border-style; - border-bottom: $transparent-border-style; - } - - @else if $direction==down { - border-top: $color-border-style; - border-left: $transparent-border-style; - border-right: $transparent-border-style; - } - - @else if $direction==left { - border-right: $color-border-style; - border-top: $transparent-border-style; - border-bottom: $transparent-border-style; - } -} diff --git a/ZR.Vue/src/assets/styles/sidebar.scss b/ZR.Vue/src/assets/styles/sidebar.scss deleted file mode 100644 index 2e68730e..00000000 --- a/ZR.Vue/src/assets/styles/sidebar.scss +++ /dev/null @@ -1,224 +0,0 @@ -#app { - - .main-container { - min-height: 100%; - transition: margin-left .28s; - margin-left: $base-sidebar-width; - position: relative; - } - - .sidebar-container { - -webkit-transition: width .28s; - transition: width 0.28s; - width: $base-sidebar-width !important; - background-color: $base-menu-background; - height: 100%; - position: fixed; - font-size: 0px; - top: 0; - bottom: 0; - left: 0; - z-index: 1001; - overflow: hidden; - // 鏈夋敼鍔 - -webkit-box-shadow: 2px 0 14px rgba(0,21,41 , .10); - box-shadow: 2px 0 14px rgba(0,21,41 , .10); - - // reset element-ui css - .horizontal-collapse-transition { - transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out; - } - - .scrollbar-wrapper { - overflow-x: hidden !important; - } - - .el-scrollbar__bar.is-vertical { - right: 0px; - } - - .el-scrollbar { - height: 100%; - } - - &.has-logo { - .el-scrollbar { - height: calc(100% - 50px); - } - } - - .is-horizontal { - display: none; - } - - a { - display: inline-block; - width: 100%; - overflow: hidden; - } - - .svg-icon { - margin-right: 16px; - } - - .el-menu { - border: none; - height: 100%; - width: 100% !important; - } - - .el-menu-item, .el-submenu__title { - overflow: hidden !important; - text-overflow: ellipsis !important; - white-space: nowrap !important; - } - - // menu hover - .submenu-title-noDropdown, - .el-submenu__title { - &:hover { - background-color: rgba(0, 0, 0, 0.06) !important; - } - } - - & .theme-dark .is-active > .el-submenu__title { - color: $base-menu-color-active !important; - } - - & .nest-menu .el-submenu>.el-submenu__title, - & .el-submenu .el-menu-item { - min-width: $base-sidebar-width !important; - - &:hover { - background-color: rgba(0, 0, 0, 0.06) !important; - } - } - - & .theme-dark .nest-menu .el-submenu>.el-submenu__title, - & .theme-dark .el-submenu .el-menu-item { - background-color: $base-sub-menu-background !important; - - &:hover { - background-color: $base-sub-menu-hover !important; - } - } - } - - .hideSidebar { - .sidebar-container { - width: 54px !important; - } - - .main-container { - margin-left: 54px; - } - - .submenu-title-noDropdown { - padding: 0 !important; - position: relative; - - .el-tooltip { - padding: 0 !important; - - .svg-icon { - margin-left: 20px; - } - } - } - - .el-submenu { - overflow: hidden; - - &>.el-submenu__title { - padding: 0 !important; - - .svg-icon { - margin-left: 20px; - } - - } - } - - .el-menu--collapse { - .el-submenu { - &>.el-submenu__title { - &>span { - height: 0; - width: 0; - overflow: hidden; - visibility: hidden; - display: inline-block; - } - } - } - } - } - - .el-menu--collapse .el-menu .el-submenu { - min-width: $base-sidebar-width !important; - } - - // mobile responsive - .mobile { - .main-container { - margin-left: 0px; - } - - .sidebar-container { - transition: transform .28s; - width: $base-sidebar-width !important; - } - - &.hideSidebar { - .sidebar-container { - pointer-events: none; - transition-duration: 0.3s; - transform: translate3d(-$base-sidebar-width, 0, 0); - } - } - } - - .withoutAnimation { - - .main-container, - .sidebar-container { - transition: none; - } - } -} - -// when menu collapsed -.el-menu--vertical { - &>.el-menu { - .svg-icon { - margin-right: 16px; - } - } - - .nest-menu .el-submenu>.el-submenu__title, - .el-menu-item { - &:hover { - // you can use $subMenuHover - background-color: rgba(0, 0, 0, 0.06) !important; - } - } - - // the scroll bar appears when the subMenu is too long - >.el-menu--popup { - max-height: 100vh; - overflow-y: auto; - - &::-webkit-scrollbar-track-piece { - background: #d3dce6; - } - - &::-webkit-scrollbar { - width: 6px; - } - - &::-webkit-scrollbar-thumb { - background: #99a9bf; - border-radius: 20px; - } - } -} diff --git a/ZR.Vue/src/assets/styles/transition.scss b/ZR.Vue/src/assets/styles/transition.scss deleted file mode 100644 index 4cb27cc8..00000000 --- a/ZR.Vue/src/assets/styles/transition.scss +++ /dev/null @@ -1,48 +0,0 @@ -// global transition css - -/* fade */ -.fade-enter-active, -.fade-leave-active { - transition: opacity 0.28s; -} - -.fade-enter, -.fade-leave-active { - opacity: 0; -} - -/* fade-transform */ -.fade-transform-leave-active, -.fade-transform-enter-active { - transition: all .5s; -} - -.fade-transform-enter { - opacity: 0; - transform: translateX(-30px); -} - -.fade-transform-leave-to { - opacity: 0; - transform: translateX(30px); -} - -/* breadcrumb transition */ -.breadcrumb-enter-active, -.breadcrumb-leave-active { - transition: all .5s; -} - -.breadcrumb-enter, -.breadcrumb-leave-active { - opacity: 0; - transform: translateX(20px); -} - -.breadcrumb-move { - transition: all .5s; -} - -.breadcrumb-leave-active { - position: absolute; -} diff --git a/ZR.Vue/src/assets/styles/variables.scss b/ZR.Vue/src/assets/styles/variables.scss deleted file mode 100644 index 86ae6324..00000000 --- a/ZR.Vue/src/assets/styles/variables.scss +++ /dev/null @@ -1,42 +0,0 @@ -// base color -$blue:#324157; -$light-blue:#3A71A8; -$red:#C03639; -$pink: #E65D6E; -$green: #30B08F; -$tiffany: #4AB7BD; -$yellow:#FEC171; -$panGreen: #30B08F; - -// 榛樿鑿滃崟涓婚椋庢牸 -$base-menu-color:#bfcbd9; -$base-menu-color-active:#f4f4f5; -$base-menu-background:#304156; -$base-logo-title-color: #ffffff; - -$base-menu-light-color:rgba(0,0,0,.70); -$base-menu-light-background:#ffffff; -$base-logo-light-title-color: #001529; - -$base-sub-menu-background:#1f2d3d; -$base-sub-menu-hover:#001528; - - - -$base-sidebar-width: 200px; - -// the :export directive is the magic sauce for webpack -// https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass -:export { - menuColor: $base-menu-color; - menuLightColor: $base-menu-light-color; - menuColorActive: $base-menu-color-active; - menuBackground: $base-menu-background; - menuLightBackground: $base-menu-light-background; - subMenuBackground: $base-sub-menu-background; - subMenuHover: $base-sub-menu-hover; - sideBarWidth: $base-sidebar-width; - logoTitleColor: $base-logo-title-color; - logoLightTitleColor: $base-logo-light-title-color -} - diff --git a/ZR.Vue/src/assets/testMenu/title_icon/first.png b/ZR.Vue/src/assets/testMenu/title_icon/first.png deleted file mode 100644 index 18efdaa3..00000000 Binary files a/ZR.Vue/src/assets/testMenu/title_icon/first.png and /dev/null differ diff --git a/ZR.Vue/src/components/Breadcrumb/index.vue b/ZR.Vue/src/components/Breadcrumb/index.vue deleted file mode 100644 index b1e9041e..00000000 --- a/ZR.Vue/src/components/Breadcrumb/index.vue +++ /dev/null @@ -1,78 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/components/Crontab/day.vue b/ZR.Vue/src/components/Crontab/day.vue deleted file mode 100644 index fe3eaf0c..00000000 --- a/ZR.Vue/src/components/Crontab/day.vue +++ /dev/null @@ -1,161 +0,0 @@ - - - diff --git a/ZR.Vue/src/components/Crontab/hour.vue b/ZR.Vue/src/components/Crontab/hour.vue deleted file mode 100644 index 4b1f1fcd..00000000 --- a/ZR.Vue/src/components/Crontab/hour.vue +++ /dev/null @@ -1,114 +0,0 @@ - - - diff --git a/ZR.Vue/src/components/Crontab/index.vue b/ZR.Vue/src/components/Crontab/index.vue deleted file mode 100644 index 8e39046b..00000000 --- a/ZR.Vue/src/components/Crontab/index.vue +++ /dev/null @@ -1,389 +0,0 @@ - - - - diff --git a/ZR.Vue/src/components/Crontab/min.vue b/ZR.Vue/src/components/Crontab/min.vue deleted file mode 100644 index 43cab900..00000000 --- a/ZR.Vue/src/components/Crontab/min.vue +++ /dev/null @@ -1,116 +0,0 @@ - - - \ No newline at end of file diff --git a/ZR.Vue/src/components/Crontab/month.vue b/ZR.Vue/src/components/Crontab/month.vue deleted file mode 100644 index fd0ac384..00000000 --- a/ZR.Vue/src/components/Crontab/month.vue +++ /dev/null @@ -1,114 +0,0 @@ - - - diff --git a/ZR.Vue/src/components/Crontab/result.vue b/ZR.Vue/src/components/Crontab/result.vue deleted file mode 100644 index 2ce20413..00000000 --- a/ZR.Vue/src/components/Crontab/result.vue +++ /dev/null @@ -1,569 +0,0 @@ - - - - \ No newline at end of file diff --git a/ZR.Vue/src/components/Crontab/second.vue b/ZR.Vue/src/components/Crontab/second.vue deleted file mode 100644 index e7b77617..00000000 --- a/ZR.Vue/src/components/Crontab/second.vue +++ /dev/null @@ -1,117 +0,0 @@ - - - diff --git a/ZR.Vue/src/components/Crontab/week.vue b/ZR.Vue/src/components/Crontab/week.vue deleted file mode 100644 index 1cec700e..00000000 --- a/ZR.Vue/src/components/Crontab/week.vue +++ /dev/null @@ -1,202 +0,0 @@ - - - diff --git a/ZR.Vue/src/components/Crontab/year.vue b/ZR.Vue/src/components/Crontab/year.vue deleted file mode 100644 index 5487a6c7..00000000 --- a/ZR.Vue/src/components/Crontab/year.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - diff --git a/ZR.Vue/src/components/DictData/index.js b/ZR.Vue/src/components/DictData/index.js deleted file mode 100644 index c2a0359c..00000000 --- a/ZR.Vue/src/components/DictData/index.js +++ /dev/null @@ -1,21 +0,0 @@ -import Vue from 'vue' -import DataDict from '@/utils/dict' -import { getDicts as getDicts } from '@/api/system/dict/data' - -function install() { - Vue.use(DataDict, { - metas: { - '*': { - labelField: 'dictLabel', - valueField: 'dictValue', - request(dictMeta) { - return getDicts(dictMeta.type).then(res => res.data) - }, - }, - }, - }) -} - -export default { - install, -} \ No newline at end of file diff --git a/ZR.Vue/src/components/DictTag/index.vue b/ZR.Vue/src/components/DictTag/index.vue deleted file mode 100644 index 4c196c48..00000000 --- a/ZR.Vue/src/components/DictTag/index.vue +++ /dev/null @@ -1,52 +0,0 @@ - - - - \ No newline at end of file diff --git a/ZR.Vue/src/components/Echarts/Category.vue b/ZR.Vue/src/components/Echarts/Category.vue deleted file mode 100644 index a5985cb4..00000000 --- a/ZR.Vue/src/components/Echarts/Category.vue +++ /dev/null @@ -1,438 +0,0 @@ - - - diff --git a/ZR.Vue/src/components/Echarts/Funnel.vue b/ZR.Vue/src/components/Echarts/Funnel.vue deleted file mode 100644 index 722e8cd1..00000000 --- a/ZR.Vue/src/components/Echarts/Funnel.vue +++ /dev/null @@ -1,120 +0,0 @@ - - - diff --git a/ZR.Vue/src/components/Echarts/Gauge.vue b/ZR.Vue/src/components/Echarts/Gauge.vue deleted file mode 100644 index 2048486a..00000000 --- a/ZR.Vue/src/components/Echarts/Gauge.vue +++ /dev/null @@ -1,99 +0,0 @@ - - - diff --git a/ZR.Vue/src/components/Echarts/Graph.vue b/ZR.Vue/src/components/Echarts/Graph.vue deleted file mode 100644 index 64badaf4..00000000 --- a/ZR.Vue/src/components/Echarts/Graph.vue +++ /dev/null @@ -1,101 +0,0 @@ - - - diff --git a/ZR.Vue/src/components/Echarts/HeatMap.vue b/ZR.Vue/src/components/Echarts/HeatMap.vue deleted file mode 100644 index 5afefb78..00000000 --- a/ZR.Vue/src/components/Echarts/HeatMap.vue +++ /dev/null @@ -1,105 +0,0 @@ - - - diff --git a/ZR.Vue/src/components/Echarts/Line3D.vue b/ZR.Vue/src/components/Echarts/Line3D.vue deleted file mode 100644 index 771e5ef8..00000000 --- a/ZR.Vue/src/components/Echarts/Line3D.vue +++ /dev/null @@ -1,96 +0,0 @@ - - - diff --git a/ZR.Vue/src/components/Echarts/Point.vue b/ZR.Vue/src/components/Echarts/Point.vue deleted file mode 100644 index 7e325597..00000000 --- a/ZR.Vue/src/components/Echarts/Point.vue +++ /dev/null @@ -1,149 +0,0 @@ - - - diff --git a/ZR.Vue/src/components/Echarts/Rich.vue b/ZR.Vue/src/components/Echarts/Rich.vue deleted file mode 100644 index e32fb2c5..00000000 --- a/ZR.Vue/src/components/Echarts/Rich.vue +++ /dev/null @@ -1,149 +0,0 @@ - - - diff --git a/ZR.Vue/src/components/Echarts/Sankey.vue b/ZR.Vue/src/components/Echarts/Sankey.vue deleted file mode 100644 index cd90bc4b..00000000 --- a/ZR.Vue/src/components/Echarts/Sankey.vue +++ /dev/null @@ -1,100 +0,0 @@ - - - diff --git a/ZR.Vue/src/components/Echarts/Scatter.vue b/ZR.Vue/src/components/Echarts/Scatter.vue deleted file mode 100644 index 0fd94873..00000000 --- a/ZR.Vue/src/components/Echarts/Scatter.vue +++ /dev/null @@ -1,143 +0,0 @@ - - - diff --git a/ZR.Vue/src/components/Echarts/Sunburst.vue b/ZR.Vue/src/components/Echarts/Sunburst.vue deleted file mode 100644 index 7b59c417..00000000 --- a/ZR.Vue/src/components/Echarts/Sunburst.vue +++ /dev/null @@ -1,107 +0,0 @@ - - - diff --git a/ZR.Vue/src/components/Echarts/ThemeRiver.vue b/ZR.Vue/src/components/Echarts/ThemeRiver.vue deleted file mode 100644 index 9592a2ab..00000000 --- a/ZR.Vue/src/components/Echarts/ThemeRiver.vue +++ /dev/null @@ -1,148 +0,0 @@ - - - diff --git a/ZR.Vue/src/components/Echarts/WordCloud.vue b/ZR.Vue/src/components/Echarts/WordCloud.vue deleted file mode 100644 index 289b2af2..00000000 --- a/ZR.Vue/src/components/Echarts/WordCloud.vue +++ /dev/null @@ -1,192 +0,0 @@ - - - diff --git a/ZR.Vue/src/components/Editor/index.vue b/ZR.Vue/src/components/Editor/index.vue deleted file mode 100644 index ad35bbf5..00000000 --- a/ZR.Vue/src/components/Editor/index.vue +++ /dev/null @@ -1,195 +0,0 @@ - - - - - \ No newline at end of file diff --git a/ZR.Vue/src/components/FileUpload/index.vue b/ZR.Vue/src/components/FileUpload/index.vue deleted file mode 100644 index a8a9eaf5..00000000 --- a/ZR.Vue/src/components/FileUpload/index.vue +++ /dev/null @@ -1,241 +0,0 @@ - - - - - \ No newline at end of file diff --git a/ZR.Vue/src/components/Hamburger/index.vue b/ZR.Vue/src/components/Hamburger/index.vue deleted file mode 100644 index 368b0021..00000000 --- a/ZR.Vue/src/components/Hamburger/index.vue +++ /dev/null @@ -1,44 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/components/HeaderSearch/index.vue b/ZR.Vue/src/components/HeaderSearch/index.vue deleted file mode 100644 index f814c29e..00000000 --- a/ZR.Vue/src/components/HeaderSearch/index.vue +++ /dev/null @@ -1,189 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/components/IconSelect/index.vue b/ZR.Vue/src/components/IconSelect/index.vue deleted file mode 100644 index af982241..00000000 --- a/ZR.Vue/src/components/IconSelect/index.vue +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - diff --git a/ZR.Vue/src/components/IconSelect/requireIcons.js b/ZR.Vue/src/components/IconSelect/requireIcons.js deleted file mode 100644 index 99e5c54c..00000000 --- a/ZR.Vue/src/components/IconSelect/requireIcons.js +++ /dev/null @@ -1,11 +0,0 @@ - -const req = require.context('../../assets/icons/svg', false, /\.svg$/) -const requireAll = requireContext => requireContext.keys() - -const re = /\.\/(.*)\.svg/ - -const icons = requireAll(req).map(i => { - return i.match(re)[1] -}) - -export default icons diff --git a/ZR.Vue/src/components/Notice/Index.vue b/ZR.Vue/src/components/Notice/Index.vue deleted file mode 100644 index 491c826d..00000000 --- a/ZR.Vue/src/components/Notice/Index.vue +++ /dev/null @@ -1,123 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/components/Pagination/index.vue b/ZR.Vue/src/components/Pagination/index.vue deleted file mode 100644 index e51c145e..00000000 --- a/ZR.Vue/src/components/Pagination/index.vue +++ /dev/null @@ -1,101 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/components/PanThumb/index.vue b/ZR.Vue/src/components/PanThumb/index.vue deleted file mode 100644 index 1bcf4170..00000000 --- a/ZR.Vue/src/components/PanThumb/index.vue +++ /dev/null @@ -1,142 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/components/ParentView/index.vue b/ZR.Vue/src/components/ParentView/index.vue deleted file mode 100644 index 7bf61489..00000000 --- a/ZR.Vue/src/components/ParentView/index.vue +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/ZR.Vue/src/components/RightPanel/index.vue b/ZR.Vue/src/components/RightPanel/index.vue deleted file mode 100644 index fbf27eb4..00000000 --- a/ZR.Vue/src/components/RightPanel/index.vue +++ /dev/null @@ -1,149 +0,0 @@ - - - - - - - diff --git a/ZR.Vue/src/components/RightToolbar/index.vue b/ZR.Vue/src/components/RightToolbar/index.vue deleted file mode 100644 index 49fb391f..00000000 --- a/ZR.Vue/src/components/RightToolbar/index.vue +++ /dev/null @@ -1,95 +0,0 @@ - - - - diff --git a/ZR.Vue/src/components/Screenfull/index.vue b/ZR.Vue/src/components/Screenfull/index.vue deleted file mode 100644 index 4bcb139d..00000000 --- a/ZR.Vue/src/components/Screenfull/index.vue +++ /dev/null @@ -1,60 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/components/SizeSelect/index.vue b/ZR.Vue/src/components/SizeSelect/index.vue deleted file mode 100644 index 25698637..00000000 --- a/ZR.Vue/src/components/SizeSelect/index.vue +++ /dev/null @@ -1,55 +0,0 @@ - - - diff --git a/ZR.Vue/src/components/SvgIcon/index.vue b/ZR.Vue/src/components/SvgIcon/index.vue deleted file mode 100644 index e4bf5ade..00000000 --- a/ZR.Vue/src/components/SvgIcon/index.vue +++ /dev/null @@ -1,61 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/components/ThemePicker/index.vue b/ZR.Vue/src/components/ThemePicker/index.vue deleted file mode 100644 index d8f9d1e0..00000000 --- a/ZR.Vue/src/components/ThemePicker/index.vue +++ /dev/null @@ -1,174 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/components/TopNav/index.vue b/ZR.Vue/src/components/TopNav/index.vue deleted file mode 100644 index 16632e0d..00000000 --- a/ZR.Vue/src/components/TopNav/index.vue +++ /dev/null @@ -1,193 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/components/UploadImage/index.vue b/ZR.Vue/src/components/UploadImage/index.vue deleted file mode 100644 index 9b38aac9..00000000 --- a/ZR.Vue/src/components/UploadImage/index.vue +++ /dev/null @@ -1,204 +0,0 @@ - - - - - \ No newline at end of file diff --git a/ZR.Vue/src/components/Zr/Doc/index.vue b/ZR.Vue/src/components/Zr/Doc/index.vue deleted file mode 100644 index b6eeef24..00000000 --- a/ZR.Vue/src/components/Zr/Doc/index.vue +++ /dev/null @@ -1,21 +0,0 @@ - - - diff --git a/ZR.Vue/src/components/Zr/Git/index.vue b/ZR.Vue/src/components/Zr/Git/index.vue deleted file mode 100644 index 7369a17b..00000000 --- a/ZR.Vue/src/components/Zr/Git/index.vue +++ /dev/null @@ -1,21 +0,0 @@ - - - diff --git a/ZR.Vue/src/directive/module/clipboard.js b/ZR.Vue/src/directive/module/clipboard.js deleted file mode 100644 index 635315a8..00000000 --- a/ZR.Vue/src/directive/module/clipboard.js +++ /dev/null @@ -1,54 +0,0 @@ -/** -* v-clipboard 鏂囧瓧澶嶅埗鍓创 -* Copyright (c) 2021 ruoyi -*/ - -import Clipboard from 'clipboard' -export default { - bind(el, binding, vnode) { - switch (binding.arg) { - case 'success': - el._vClipBoard_success = binding.value; - break; - case 'error': - el._vClipBoard_error = binding.value; - break; - default: { - const clipboard = new Clipboard(el, { - text: () => binding.value, - action: () => binding.arg === 'cut' ? 'cut' : 'copy' - }); - clipboard.on('success', e => { - const callback = el._vClipBoard_success; - callback && callback(e); - }); - clipboard.on('error', e => { - const callback = el._vClipBoard_error; - callback && callback(e); - }); - el._vClipBoard = clipboard; - } - } - }, - update(el, binding) { - if (binding.arg === 'success') { - el._vClipBoard_success = binding.value; - } else if (binding.arg === 'error') { - el._vClipBoard_error = binding.value; - } else { - el._vClipBoard.text = function () { return binding.value; }; - el._vClipBoard.action = () => binding.arg === 'cut' ? 'cut' : 'copy'; - } - }, - unbind(el, binding) { - if (!el._vClipboard) return - if (binding.arg === 'success') { - delete el._vClipBoard_success; - } else if (binding.arg === 'error') { - delete el._vClipBoard_error; - } else { - el._vClipBoard.destroy(); - delete el._vClipBoard; - } - } -} diff --git a/ZR.Vue/src/directive/permission/hasPermi.js b/ZR.Vue/src/directive/permission/hasPermi.js deleted file mode 100644 index c507edab..00000000 --- a/ZR.Vue/src/directive/permission/hasPermi.js +++ /dev/null @@ -1,28 +0,0 @@ - /** - * 鎿嶄綔鏉冮檺澶勭悊 - * - */ - -import store from '@/store' - -export default { - inserted(el, binding, vnode) { - const { value } = binding - const all_permission = "*:*:*"; - const permissions = store.getters && store.getters.permissions - - if (value && value instanceof Array && value.length > 0) { - const permissionFlag = value - - const hasPermissions = permissions.some(permission => { - return all_permission === permission || permissionFlag.includes(permission) - }) - - if (!hasPermissions) { - el.parentNode && el.parentNode.removeChild(el) - } - } else { - throw new Error(`璇疯缃搷浣滄潈闄愭爣绛惧糮) - } - } -} diff --git a/ZR.Vue/src/directive/permission/hasRole.js b/ZR.Vue/src/directive/permission/hasRole.js deleted file mode 100644 index 77480dbd..00000000 --- a/ZR.Vue/src/directive/permission/hasRole.js +++ /dev/null @@ -1,28 +0,0 @@ - /** - * 瑙掕壊鏉冮檺澶勭悊 - * - */ - -import store from '@/store' - -export default { - inserted(el, binding, vnode) { - const { value } = binding - const super_admin = "admin"; - const roles = store.getters && store.getters.roles - - if (value && value instanceof Array && value.length > 0) { - const roleFlag = value - - const hasRole = roles.some(role => { - return super_admin === role || roleFlag.includes(role) - }) - - if (!hasRole) { - el.parentNode && el.parentNode.removeChild(el) - } - } else { - throw new Error(`璇疯缃鑹叉潈闄愭爣绛惧"`) - } - } -} diff --git a/ZR.Vue/src/directive/permission/index.js b/ZR.Vue/src/directive/permission/index.js deleted file mode 100644 index 9ef3379e..00000000 --- a/ZR.Vue/src/directive/permission/index.js +++ /dev/null @@ -1,17 +0,0 @@ -import hasRole from './hasRole' -import hasPermi from './hasPermi' -import clipboard from '../module/clipboard' - -const install = function(Vue) { - Vue.directive('hasRole', hasRole) - Vue.directive('hasPermi', hasPermi) - Vue.directive('clipboard', clipboard) -} - -if (window.Vue) { - window['hasRole'] = hasRole - window['hasPermi'] = hasPermi - Vue.use(install); // eslint-disable-line -} - -export default install diff --git a/ZR.Vue/src/layout/components/AppMain.vue b/ZR.Vue/src/layout/components/AppMain.vue deleted file mode 100644 index a8976380..00000000 --- a/ZR.Vue/src/layout/components/AppMain.vue +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - diff --git a/ZR.Vue/src/layout/components/Navbar.vue b/ZR.Vue/src/layout/components/Navbar.vue deleted file mode 100644 index c6deae21..00000000 --- a/ZR.Vue/src/layout/components/Navbar.vue +++ /dev/null @@ -1,211 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/layout/components/Settings/index.vue b/ZR.Vue/src/layout/components/Settings/index.vue deleted file mode 100644 index 423f4d99..00000000 --- a/ZR.Vue/src/layout/components/Settings/index.vue +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - diff --git a/ZR.Vue/src/layout/components/Sidebar/FixiOSBug.js b/ZR.Vue/src/layout/components/Sidebar/FixiOSBug.js deleted file mode 100644 index 68237269..00000000 --- a/ZR.Vue/src/layout/components/Sidebar/FixiOSBug.js +++ /dev/null @@ -1,25 +0,0 @@ -export default { - computed: { - device() { - return this.$store.state.app.device - } - }, - mounted() { - // In order to fix the click on menu on the ios device will trigger the mouseleave bug - this.fixBugIniOS() - }, - methods: { - fixBugIniOS() { - const $subMenu = this.$refs.subMenu - if ($subMenu) { - const handleMouseleave = $subMenu.handleMouseleave - $subMenu.handleMouseleave = (e) => { - if (this.device === 'mobile') { - return - } - handleMouseleave(e) - } - } - } - } -} diff --git a/ZR.Vue/src/layout/components/Sidebar/Item.vue b/ZR.Vue/src/layout/components/Sidebar/Item.vue deleted file mode 100644 index 0b584e11..00000000 --- a/ZR.Vue/src/layout/components/Sidebar/Item.vue +++ /dev/null @@ -1,37 +0,0 @@ - diff --git a/ZR.Vue/src/layout/components/Sidebar/Link.vue b/ZR.Vue/src/layout/components/Sidebar/Link.vue deleted file mode 100644 index 530b3d5b..00000000 --- a/ZR.Vue/src/layout/components/Sidebar/Link.vue +++ /dev/null @@ -1,43 +0,0 @@ - - - diff --git a/ZR.Vue/src/layout/components/Sidebar/Logo.vue b/ZR.Vue/src/layout/components/Sidebar/Logo.vue deleted file mode 100644 index 5ac6ffe5..00000000 --- a/ZR.Vue/src/layout/components/Sidebar/Logo.vue +++ /dev/null @@ -1,105 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/layout/components/Sidebar/SidebarItem.vue b/ZR.Vue/src/layout/components/Sidebar/SidebarItem.vue deleted file mode 100644 index f9125212..00000000 --- a/ZR.Vue/src/layout/components/Sidebar/SidebarItem.vue +++ /dev/null @@ -1,93 +0,0 @@ - - - diff --git a/ZR.Vue/src/layout/components/Sidebar/index.vue b/ZR.Vue/src/layout/components/Sidebar/index.vue deleted file mode 100644 index 0b1e16ea..00000000 --- a/ZR.Vue/src/layout/components/Sidebar/index.vue +++ /dev/null @@ -1,47 +0,0 @@ - - - diff --git a/ZR.Vue/src/layout/components/TagsView/ScrollPane.vue b/ZR.Vue/src/layout/components/TagsView/ScrollPane.vue deleted file mode 100644 index a6f512c6..00000000 --- a/ZR.Vue/src/layout/components/TagsView/ScrollPane.vue +++ /dev/null @@ -1,100 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/layout/components/TagsView/index.vue b/ZR.Vue/src/layout/components/TagsView/index.vue deleted file mode 100644 index 94bb8886..00000000 --- a/ZR.Vue/src/layout/components/TagsView/index.vue +++ /dev/null @@ -1,337 +0,0 @@ - - - - - - - diff --git a/ZR.Vue/src/layout/components/index.js b/ZR.Vue/src/layout/components/index.js deleted file mode 100644 index 104bd3ac..00000000 --- a/ZR.Vue/src/layout/components/index.js +++ /dev/null @@ -1,5 +0,0 @@ -export { default as AppMain } from './AppMain' -export { default as Navbar } from './Navbar' -export { default as Settings } from './Settings' -export { default as Sidebar } from './Sidebar/index.vue' -export { default as TagsView } from './TagsView/index.vue' diff --git a/ZR.Vue/src/layout/index.vue b/ZR.Vue/src/layout/index.vue deleted file mode 100644 index dbd836d7..00000000 --- a/ZR.Vue/src/layout/index.vue +++ /dev/null @@ -1,108 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/layout/mixin/ResizeHandler.js b/ZR.Vue/src/layout/mixin/ResizeHandler.js deleted file mode 100644 index e8d0df8c..00000000 --- a/ZR.Vue/src/layout/mixin/ResizeHandler.js +++ /dev/null @@ -1,45 +0,0 @@ -import store from '@/store' - -const { body } = document -const WIDTH = 992 // refer to Bootstrap's responsive design - -export default { - watch: { - $route(route) { - if (this.device === 'mobile' && this.sidebar.opened) { - store.dispatch('app/closeSideBar', { withoutAnimation: false }) - } - } - }, - beforeMount() { - window.addEventListener('resize', this.$_resizeHandler) - }, - beforeDestroy() { - window.removeEventListener('resize', this.$_resizeHandler) - }, - mounted() { - const isMobile = this.$_isMobile() - if (isMobile) { - store.dispatch('app/toggleDevice', 'mobile') - store.dispatch('app/closeSideBar', { withoutAnimation: true }) - } - }, - methods: { - // use $_ for mixins properties - // https://vuejs.org/v2/style-guide/index.html#Private-property-names-essential - $_isMobile() { - const rect = body.getBoundingClientRect() - return rect.width - 1 < WIDTH - }, - $_resizeHandler() { - if (!document.hidden) { - const isMobile = this.$_isMobile() - store.dispatch('app/toggleDevice', isMobile ? 'mobile' : 'desktop') - - if (isMobile) { - store.dispatch('app/closeSideBar', { withoutAnimation: true }) - } - } - } - } -} diff --git a/ZR.Vue/src/main.js b/ZR.Vue/src/main.js deleted file mode 100644 index e85e1c78..00000000 --- a/ZR.Vue/src/main.js +++ /dev/null @@ -1,105 +0,0 @@ -import Vue from 'vue' - -import Cookies from 'js-cookie' - -import Element from 'element-ui' -import 'normalize.css/normalize.css' // a modern alternative to CSS resets -import './assets/styles/element-variables.scss' -import '@/assets/styles/index.scss' // global css - -import App from './App' -import store from './store' -import router from './router' -import permission from './directive/permission' -import plugins from './plugins' // plugins -import signalR from '@/utils/signalR' -import { downFile } from '@/utils/request' - -import './assets/icons' // icon -import './permission' // permission control -import { getDicts } from "@/api/system/dict/data"; -import { getConfigKey } from "@/api/system/config"; -import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, download, handleTree, handleDict } from "@/utils/ruoyi"; -//鍒嗛〉缁勪欢 -import Pagination from "@/components/Pagination"; -//鑷畾涔夎〃鏍煎伐鍏锋墿灞 -import RightToolbar from "@/components/RightToolbar" -// 瀵屾枃鏈粍浠 -import Editor from "@/components/Editor"; -// 瀛楀吀鏍囩缁勪欢 -import DictTag from '@/components/DictTag' -// 涓婁紶鍥剧墖 -import UploadImage from '@/components/UploadImage/index'; -// 涓婁紶鏂囦欢 -import UploadFile from '@/components/FileUpload/index'; -// 瀛楀吀鏁版嵁缁勪欢 -import DictData from '@/components/DictData' - -import VXETable from 'vxe-table' -import 'vxe-table/lib/style.css' -import "@/vxe.scss" - -import dataV from '@jiaminghi/data-view' - -//闇瑕佹寜闇寮曞叆锛屽厛寮曞叆vue骞跺紩鍏lement-ui -import AFTableColumn from 'af-table-column' - - - - -// 鍏ㄥ眬鏂规硶鎸傝浇 -Vue.prototype.getDicts = getDicts -Vue.prototype.getConfigKey = getConfigKey -Vue.prototype.parseTime = parseTime -Vue.prototype.resetForm = resetForm -Vue.prototype.addDateRange = addDateRange -Vue.prototype.selectDictLabel = selectDictLabel -Vue.prototype.selectDictLabels = selectDictLabels -Vue.prototype.download = download -Vue.prototype.handleTree = handleTree -Vue.prototype.handleDict = handleDict -Vue.prototype.downFile = downFile - -Vue.prototype.msgSuccess = function (msg) { - this.$message({ showClose: true, message: msg, type: "success" }); -} - -Vue.prototype.msgError = function (msg) { - this.$message({ showClose: true, message: msg, type: "error" }); -} - -Vue.prototype.msgInfo = function (msg) { - this.$message.info(msg); -} - -// 鍏ㄥ眬缁勪欢鎸傝浇 -Vue.component('Pagination', Pagination) -Vue.component('RightToolbar', RightToolbar) -Vue.component('DictTag', DictTag) -Vue.component('Editor', Editor) -Vue.component('UploadImage', UploadImage) -Vue.component('UploadFile', UploadFile) - -Vue.use(permission) -Vue.use(plugins) -Vue.use(Element, { - size: Cookies.get('size') || 'small' // set element-ui default size -}) - -Vue.use(VXETable) -Vue.use(dataV) -Vue.use(AFTableColumn) - -DictData.install() - -Vue.config.productionTip = false - -signalR.init(process.env.VUE_APP_SOCKET_API); -Vue.prototype.signalr = signalR - -new Vue({ - el: '#app', - router, - store, - render: h => h(App) -}) \ No newline at end of file diff --git a/ZR.Vue/src/permission.js b/ZR.Vue/src/permission.js deleted file mode 100644 index 4ec5adc2..00000000 --- a/ZR.Vue/src/permission.js +++ /dev/null @@ -1,60 +0,0 @@ -import router from './router' -import store from './store' -import { Message } from 'element-ui' -import NProgress from 'nprogress' -import 'nprogress/nprogress.css' -import { getToken } from '@/utils/auth' - -NProgress.configure({ - showSpinner: false -}) - -const whiteList = ['/login', '/auth-redirect', '/bind', '/register', '/demo'] - -router.beforeEach((to, from, next) => { - NProgress.start() - console.log('path=' + to.path); - - if (getToken()) { - to.meta.title && store.dispatch('settings/setTitle', to.meta.title) - /* has token*/ - if (to.path === '/login') { - next({ path: '/' }) - NProgress.done() - } else { - if (store.getters.roles.length === 0) { - // 鍒ゆ柇褰撳墠鐢ㄦ埛鏄惁宸叉媺鍙栧畬user_info淇℃伅 - store.dispatch('GetInfo').then(() => { - store.dispatch('GenerateRoutes').then(accessRoutes => { - router.addRoutes(accessRoutes) // 鍔ㄦ佹坊鍔犲彲璁块棶璺敱琛 - next({ ...to, replace: true }) // hack鏂规硶 纭繚addRoutes宸插畬鎴 - }) - //next() - }).catch(err => { - console.error(err) - store.dispatch('LogOut').then(() => { - console.log('寮规鐧诲綍澶辫触') - Message.error(err != undefined ? err : '鐧诲綍澶辫触') - next({ path: '/' }) - }) - //next(`/login`) - }) - } else { - next() - } - } - } else { - // 娌℃湁token - if (whiteList.indexOf(to.path) !== -1) { - // 鍦ㄥ厤鐧诲綍鐧藉悕鍗曪紝鐩存帴杩涘叆 - next() - } else { - next(`/login?redirect=${to.fullPath}`) // 鍚﹀垯鍏ㄩ儴閲嶅畾鍚戝埌鐧诲綍椤 - NProgress.done() - } - } -}) - -router.afterEach(() => { - NProgress.done() -}) \ No newline at end of file diff --git a/ZR.Vue/src/plugins/cache.js b/ZR.Vue/src/plugins/cache.js deleted file mode 100644 index 2f04ddd2..00000000 --- a/ZR.Vue/src/plugins/cache.js +++ /dev/null @@ -1,77 +0,0 @@ -const sessionCache = { - set(key, value) { - if (!sessionStorage) { - return - } - if (key != null && value != null) { - sessionStorage.setItem(key, value) - } - }, - get(key) { - if (!sessionStorage) { - return null - } - if (key == null) { - return null - } - return sessionStorage.getItem(key) - }, - setJSON(key, jsonValue) { - if (jsonValue != null) { - this.set(key, JSON.stringify(jsonValue)) - } - }, - getJSON(key) { - const value = this.get(key) - if (value != null) { - return JSON.parse(value) - } - }, - remove(key) { - sessionStorage.removeItem(key); - } -} -const localCache = { - set(key, value) { - if (!localStorage) { - return - } - if (key != null && value != null) { - localStorage.setItem(key, value) - } - }, - get(key) { - if (!localStorage) { - return null - } - if (key == null) { - return null - } - return localStorage.getItem(key) - }, - setJSON(key, jsonValue) { - if (jsonValue != null) { - this.set(key, JSON.stringify(jsonValue)) - } - }, - getJSON(key) { - const value = this.get(key) - if (value != null) { - return JSON.parse(value) - } - }, - remove(key) { - localStorage.removeItem(key); - } -} - -export default { - /** - * 浼氳瘽绾х紦瀛 - */ - session: sessionCache, - /** - * 鏈湴缂撳瓨 - */ - local: localCache -} \ No newline at end of file diff --git a/ZR.Vue/src/plugins/index.js b/ZR.Vue/src/plugins/index.js deleted file mode 100644 index 5b4e034c..00000000 --- a/ZR.Vue/src/plugins/index.js +++ /dev/null @@ -1,20 +0,0 @@ -import tab from './tab' -// import auth from './auth' -import cache from './cache' -import modal from './modal' -// import download from './download' - -export default { - install(Vue) { - // 椤电鎿嶄綔 - Vue.prototype.$tab = tab - // 璁よ瘉瀵硅薄 - // Vue.prototype.$auth = auth - // 缂撳瓨瀵硅薄 - Vue.prototype.$cache = cache - // 妯℃佹瀵硅薄 - Vue.prototype.$modal = modal - // 涓嬭浇鏂囦欢 - // Vue.prototype.$download = download - } -} diff --git a/ZR.Vue/src/plugins/modal.js b/ZR.Vue/src/plugins/modal.js deleted file mode 100644 index b37ca145..00000000 --- a/ZR.Vue/src/plugins/modal.js +++ /dev/null @@ -1,83 +0,0 @@ -import { Message, MessageBox, Notification, Loading } from 'element-ui' - -let loadingInstance; - -export default { - // 娑堟伅鎻愮ず - msg(content) { - Message.info(content) - }, - // 閿欒娑堟伅 - msgError(content) { - Message.error(content) - }, - // 鎴愬姛娑堟伅 - msgSuccess(content) { - Message.success(content) - }, - // 璀﹀憡娑堟伅 - msgWarning(content) { - Message.warning(content) - }, - // 寮瑰嚭鎻愮ず - alert(content) { - MessageBox.alert(content, "绯荤粺鎻愮ず") - }, - // 閿欒鎻愮ず - alertError(content) { - MessageBox.alert(content, "绯荤粺鎻愮ず", { type: 'error' }) - }, - // 鎴愬姛鎻愮ず - alertSuccess(content) { - MessageBox.alert(content, "绯荤粺鎻愮ず", { type: 'success' }) - }, - // 璀﹀憡鎻愮ず - alertWarning(content) { - MessageBox.alert(content, "绯荤粺鎻愮ず", { type: 'warning' }) - }, - // 閫氱煡鎻愮ず - notify(content) { - Notification.info(content) - }, - // 閿欒閫氱煡 - notifyError(content) { - Notification.error(content); - }, - // 鎴愬姛閫氱煡 - notifySuccess(content) { - Notification.success(content) - }, - // 璀﹀憡閫氱煡 - notifyWarning(content) { - Notification.warning(content) - }, - // 纭绐椾綋 - confirm(content) { - return MessageBox.confirm(content, "绯荤粺鎻愮ず", { - confirmButtonText: '纭畾', - cancelButtonText: '鍙栨秷', - type: "warning", - }) - }, - // 鎻愪氦鍐呭 - prompt(content) { - return MessageBox.prompt(content, "绯荤粺鎻愮ず", { - confirmButtonText: '纭畾', - cancelButtonText: '鍙栨秷', - type: "warning", - }) - }, - // 鎵撳紑閬僵灞 - loading(content) { - loadingInstance = Loading.service({ - lock: true, - text: content, - spinner: "el-icon-loading", - background: "rgba(0, 0, 0, 0.7)", - }) - }, - // 鍏抽棴閬僵灞 - closeLoading() { - loadingInstance.close(); - } -} diff --git a/ZR.Vue/src/plugins/tab.js b/ZR.Vue/src/plugins/tab.js deleted file mode 100644 index 62b07c53..00000000 --- a/ZR.Vue/src/plugins/tab.js +++ /dev/null @@ -1,67 +0,0 @@ -import store from '@/store' -import router from '@/router'; - -export default { - // 鍒锋柊褰撳墠tab椤电 - refreshPage(obj) { - const { path, query, matched } = router.currentRoute; - if (obj === undefined) { - matched.forEach((m) => { - if (m.components && m.components.default && m.components.default.name) { - if (!['Layout', 'ParentView'].includes(m.components.default.name)) { - obj = { name: m.components.default.name, path: path, query: query }; - } - } - }); - } - return store.dispatch('tagsView/delCachedView', obj).then(() => { - const { path, query } = obj - router.replace({ - path: '/redirect' + path, - query: query - }) - }) - }, - // 鍏抽棴褰撳墠tab椤电锛屾墦寮鏂伴〉绛 - closeOpenPage(obj) { - store.dispatch("tagsView/delView", router.currentRoute); - if (obj !== undefined) { - return router.push(obj); - } - }, - // 鍏抽棴鎸囧畾tab椤电 - closePage(obj) { - if (obj === undefined) { - return store.dispatch('tagsView/delView', router.currentRoute).then(({ lastPath }) => { - return router.push(lastPath || '/'); - }); - } - return store.dispatch('tagsView/delView', obj); - }, - // 鍏抽棴鎵鏈塼ab椤电 - closeAllPage() { - return store.dispatch('tagsView/delAllViews'); - }, - // 鍏抽棴宸︿晶tab椤电 - closeLeftPage(obj) { - return store.dispatch('tagsView/delLeftTags', obj || router.currentRoute); - }, - // 鍏抽棴鍙充晶tab椤电 - closeRightPage(obj) { - return store.dispatch('tagsView/delRightTags', obj || router.currentRoute); - }, - // 鍏抽棴鍏朵粬tab椤电 - closeOtherPage(obj) { - return store.dispatch('tagsView/delOthersViews', obj || router.currentRoute); - }, - // 娣诲姞tab椤电 - openPage(title, url, params) { - var obj = { path: url, meta: { title: title } } - store.dispatch('tagsView/addView', obj); - return router.push({ path: url, query: params }); - }, - // 淇敼tab椤电 - updatePage(obj) { - return store.dispatch('tagsView/updateVisitedView', obj); - } -} \ No newline at end of file diff --git a/ZR.Vue/src/router/index.js b/ZR.Vue/src/router/index.js deleted file mode 100644 index 39422a01..00000000 --- a/ZR.Vue/src/router/index.js +++ /dev/null @@ -1,96 +0,0 @@ -import Vue from 'vue' -import Router from 'vue-router' - -Vue.use(Router) - -/* Layout */ -import Layout from '@/layout' - -/** - * Note: 璺敱閰嶇疆椤 - * - * hidden: true // 褰撹缃 true 鐨勬椂鍊欒璺敱涓嶄細鍐嶄晶杈规爮鍑虹幇 濡401锛宭ogin绛夐〉闈紝鎴栬呭涓浜涚紪杈戦〉闈/edit/1 - * alwaysShow: true // 褰撲綘涓涓矾鐢变笅闈㈢殑 children 澹版槑鐨勮矾鐢卞ぇ浜1涓椂锛岃嚜鍔ㄤ細鍙樻垚宓屽鐨勬ā寮--濡傜粍浠堕〉闈 - * // 鍙湁涓涓椂锛屼細灏嗛偅涓瓙璺敱褰撳仛鏍硅矾鐢辨樉绀哄湪渚ц竟鏍--濡傚紩瀵奸〉闈 - * // 鑻ヤ綘鎯充笉绠¤矾鐢变笅闈㈢殑 children 澹版槑鐨勪釜鏁伴兘鏄剧ず浣犵殑鏍硅矾鐢 - * // 浣犲彲浠ヨ缃 alwaysShow: true锛岃繖鏍峰畠灏变細蹇界暐涔嬪墠瀹氫箟鐨勮鍒欙紝涓鐩存樉绀烘牴璺敱 - * redirect: noRedirect // 褰撹缃 noRedirect 鐨勬椂鍊欒璺敱鍦ㄩ潰鍖呭睉瀵艰埅涓笉鍙鐐瑰嚮 - * name:'router-name' // 璁惧畾璺敱鐨勫悕瀛楋紝涓瀹氳濉啓涓嶇劧浣跨敤鏃朵細鍑虹幇鍚勭闂 - * meta : { - noCache: true // 濡傛灉璁剧疆涓簍rue锛屽垯涓嶄細琚 缂撳瓨(榛樿 false) - title: 'title' // 璁剧疆璇ヨ矾鐢卞湪渚ц竟鏍忓拰闈㈠寘灞戜腑灞曠ず鐨勫悕瀛 - icon: 'svg-name' // 璁剧疆璇ヨ矾鐢辩殑鍥炬爣锛屽搴旇矾寰剆rc/assets/icons/svg - breadcrumb: false // 濡傛灉璁剧疆涓篺alse锛屽垯涓嶄細鍦╞readcrumb闈㈠寘灞戜腑鏄剧ず - } - */ - -// 鍏叡璺敱 -export const constantRoutes = [{ - path: '/redirect', - component: Layout, - hidden: true, - children: [{ - path: '/redirect/:path(.*)', - component: (resolve) => require(['@/views/redirect'], resolve) - }] - }, - { - path: '/login', - component: (resolve) => require(['@/views/login'], resolve), - hidden: true - }, - { - path: '/register', - component: (resolve) => require(['@/views/register'], resolve), - hidden: true - }, - { - path: '/404', - component: (resolve) => require(['@/views/error/404'], resolve), - hidden: true - }, - { - path: '/401', - component: (resolve) => require(['@/views/error/401'], resolve), - hidden: true - }, - { - path: '', - component: Layout, - redirect: 'index', - children: [{ - path: 'index', - component: (resolve) => require(['@/views/index'], resolve), - name: 'Index', - meta: { title: '棣栭〉', icon: 'dashboard', affix: true } - }], - }, - { - path: '/user', - component: Layout, - hidden: true, - redirect: 'noredirect', - children: [{ - path: 'profile', - component: (resolve) => require(['@/views/system/user/profile/index'], resolve), - name: 'Profile', - meta: { title: '涓汉涓績', icon: 'user' } - }] - }, - { - path: '/echarts', - component: (resolve) => require(['@/views/components/Echarts'], resolve), - hidden: true - },{ - path: '/icons', - component: (resolve) => require(['@/views/components/icons/index'], resolve), - hidden: true - }, -] - -export default new Router({ - base: process.env.VUE_APP_ROUTER_PREFIX, - mode: 'history', // 鍘绘帀url涓殑# - // scrollBehavior: () => ({ y: 0 }), - routes: constantRoutes -}) \ No newline at end of file diff --git a/ZR.Vue/src/settings.js b/ZR.Vue/src/settings.js deleted file mode 100644 index 0b1c2eec..00000000 --- a/ZR.Vue/src/settings.js +++ /dev/null @@ -1,52 +0,0 @@ -module.exports = { - /** - * 妗嗘灦鐗堟湰鍙 - */ - version: '3.8.1', - title: '涓婃捣骞插贩MES', - /** - * 涓婚棰滆壊 - */ - theme: '#409EFF', - /** - * 渚ц竟鏍忎富棰 娣辫壊涓婚theme-dark锛屾祬鑹蹭富棰榯heme-light - */ - sideTheme: 'theme-dark', - - /** - * 鏄剧ず鏄惁绯荤粺甯冨眬閰嶇疆 - */ - showSettings: false, - - /** - * 鏄惁鏄剧ず椤堕儴瀵艰埅 - */ - topNav: false, - - /** - * 鏄惁鏄剧ず tagsView - */ - tagsView: true, - - /** - * 鏄惁鍥哄畾澶撮儴 - */ - fixedHeader: true, - - /** - * 鏄惁鏄剧ずlogo - */ - sidebarLogo: true, - /** - * 鏄惁鏄剧ず鍔ㄦ佹爣棰 - */ - dynamicTitle: false, - /** - * @type {string | array} 'production' | ['production', 'development'] - * @description Need show err logs component. - * The default is only used in the production env - * If you want to also use it in dev, you can pass ['production', 'development'] - */ - errorLog: 'production', - copyRight: 'Copyright 漏2023 www.doan.com All Rights Reserved.' -} \ No newline at end of file diff --git a/ZR.Vue/src/store/getters.js b/ZR.Vue/src/store/getters.js deleted file mode 100644 index 52841cfa..00000000 --- a/ZR.Vue/src/store/getters.js +++ /dev/null @@ -1,22 +0,0 @@ -const getters = { - sidebar: state => state.app.sidebar, - size: state => state.app.size, - device: state => state.app.device, - visitedViews: state => state.tagsView.visitedViews, - cachedViews: state => state.tagsView.cachedViews, - token: state => state.user.token, - avatar: state => state.user.avatar, - name: state => state.user.name, - userId: state => state.user.userInfo.userId, - introduction: state => state.user.introduction, - roles: state => state.user.roles, - permissions: state => state.user.permissions, - permission_routes: state => state.permission.routes, - userinfo: state => state.user.userInfo, - topbarRouters: state => state.permission.topbarRouters, - defaultRoutes: state => state.permission.defaultRoutes, - sidebarRouters: state => state.permission.sidebarRouters, - onlineUserNum: state => state.socket.onlineNum, - noticeList: state => state.socket.noticeList -} -export default getters \ No newline at end of file diff --git a/ZR.Vue/src/store/index.js b/ZR.Vue/src/store/index.js deleted file mode 100644 index ecbbcd7d..00000000 --- a/ZR.Vue/src/store/index.js +++ /dev/null @@ -1,32 +0,0 @@ -import Vue from 'vue' -import Vuex from 'vuex' -import app from './modules/app' -import user from './modules/user' -import tagsView from './modules/tagsView' -import permission from './modules/permission' -import settings from './modules/settings' -import socket from './modules/socket' -import getters from './getters' - -Vue.use(Vuex) - -/** - * 褰撳墠鐢ㄦ埛鏁版嵁 - */ -const state = { - appVersionInfo: '' -} -const store = new Vuex.Store({ - modules: { - app, - user, - tagsView, - permission, - settings, - socket - }, - state: state,//杩欓噷鏀惧叏灞鍙傛暟 - getters -}) - -export default store diff --git a/ZR.Vue/src/store/modules/app.js b/ZR.Vue/src/store/modules/app.js deleted file mode 100644 index 45d89bb9..00000000 --- a/ZR.Vue/src/store/modules/app.js +++ /dev/null @@ -1,56 +0,0 @@ -import Cookies from 'js-cookie' - -const state = { - sidebar: { - opened: Cookies.get('sidebarStatus') ? !!+Cookies.get('sidebarStatus') : true, - withoutAnimation: false - }, - device: 'desktop', - size: Cookies.get('size') || 'medium' -} - -const mutations = { - TOGGLE_SIDEBAR: state => { - state.sidebar.opened = !state.sidebar.opened - state.sidebar.withoutAnimation = false - if (state.sidebar.opened) { - Cookies.set('sidebarStatus', 1) - } else { - Cookies.set('sidebarStatus', 0) - } - }, - CLOSE_SIDEBAR: (state, withoutAnimation) => { - Cookies.set('sidebarStatus', 0) - state.sidebar.opened = false - state.sidebar.withoutAnimation = withoutAnimation - }, - TOGGLE_DEVICE: (state, device) => { - state.device = device - }, - SET_SIZE: (state, size) => { - state.size = size - Cookies.set('size', size) - } -} - -const actions = { - toggleSideBar({ commit }) { - commit('TOGGLE_SIDEBAR') - }, - closeSideBar({ commit }, { withoutAnimation }) { - commit('CLOSE_SIDEBAR', withoutAnimation) - }, - toggleDevice({ commit }, device) { - commit('TOGGLE_DEVICE', device) - }, - setSize({ commit }, size) { - commit('SET_SIZE', size) - } -} - -export default { - namespaced: true, - state, - mutations, - actions -} diff --git a/ZR.Vue/src/store/modules/permission.js b/ZR.Vue/src/store/modules/permission.js deleted file mode 100644 index 5493903b..00000000 --- a/ZR.Vue/src/store/modules/permission.js +++ /dev/null @@ -1,110 +0,0 @@ -import { constantRoutes } from '@/router' -import { getRouters } from '@/api/system/menu' -import Layout from '@/layout/index' -import ParentView from '@/components/ParentView'; - -const permission = { - state: { - routes: [], - addRoutes: [], - defaultRoutes: [], - topbarRouters: [], - sidebarRouters: [] - }, - mutations: { - SET_ROUTES: (state, routes) => { - state.addRoutes = routes - state.routes = constantRoutes.concat(routes) - }, - SET_DEFAULT_ROUTES: (state, routes) => { - state.defaultRoutes = constantRoutes.concat(routes) - }, - SET_TOPBAR_ROUTES: (state, routes) => { - // 椤堕儴瀵艰埅鑿滃崟榛樿娣诲姞缁熻鎶ヨ〃鏍忔寚鍚戦椤 - const index = [{ - // path: 'index', - // meta: { title: '绯荤粺棣栭〉', icon: 'dashboard' } - }] - state.topbarRouters = routes;//.concat(index); - }, - SET_SIDEBAR_ROUTERS: (state, routes) => { - state.sidebarRouters = routes - }, - }, - actions: { - // 鐢熸垚璺敱 - GenerateRoutes({ commit }) { - return new Promise(resolve => { - // 鍚戝悗绔姹傝矾鐢辨暟鎹 - getRouters().then(res => { - const sdata = JSON.parse(JSON.stringify(res.data)) - const rdata = JSON.parse(JSON.stringify(res.data)) - const sidebarRoutes = filterAsyncRouter(sdata) - const rewriteRoutes = filterAsyncRouter(rdata, false, true) - rewriteRoutes.push({ path: '*', redirect: '/404', hidden: true }) - commit('SET_ROUTES', rewriteRoutes) - commit('SET_SIDEBAR_ROUTERS', constantRoutes.concat(sidebarRoutes)) - commit('SET_DEFAULT_ROUTES', sidebarRoutes) - commit('SET_TOPBAR_ROUTES', sidebarRoutes) - resolve(rewriteRoutes) - }) - }) - } - } -} - -// 閬嶅巻鍚庡彴浼犳潵鐨勮矾鐢卞瓧绗︿覆锛岃浆鎹负缁勪欢瀵硅薄 -function filterAsyncRouter(asyncRouterMap, lastRouter = false, type = false) { - return asyncRouterMap.filter(route => { - if (type && route.children) { - route.children = filterChildren(route.children) - } - if (route.component) { - // Layout ParentView 缁勪欢鐗规畩澶勭悊 - if (route.component === 'Layout') { - route.component = Layout - } else if (route.component === 'ParentView') { - route.component = ParentView - } else { - route.component = loadView(route.component) - } - } - if (route.children != null && route.children && route.children.length) { - route.children = filterAsyncRouter(route.children, route, type) - } else { - delete route['children'] - delete route['redirect'] - } - return true - }) -} - -function filterChildren(childrenMap, lastRouter = false) { - var children = [] - childrenMap.forEach((el, index) => { - if (el.children && el.children.length) { - if (el.component === 'ParentView') { - el.children.forEach(c => { - c.path = el.path + '/' + c.path - if (c.children && c.children.length) { - children = children.concat(filterChildren(c.children, c)) - return - } - children.push(c) - }) - return - } - } - if (lastRouter) { - el.path = lastRouter.path + '/' + el.path - } - children = children.concat(el) - }) - return children -} - -export const loadView = (view) => { // 璺敱鎳掑姞杞 - return (resolve) => require([`@/views/${view}`], resolve) -} - -export default permission \ No newline at end of file diff --git a/ZR.Vue/src/store/modules/settings.js b/ZR.Vue/src/store/modules/settings.js deleted file mode 100644 index 67c55675..00000000 --- a/ZR.Vue/src/store/modules/settings.js +++ /dev/null @@ -1,43 +0,0 @@ -import defaultSettings from '@/settings' - -const { theme, sideTheme, showSettings, topNav, tagsView, fixedHeader, sidebarLogo, dynamicTitle } = defaultSettings - -const storageSetting = JSON.parse(localStorage.getItem('layout-setting')) || '' -const state = { - title: '', - theme: storageSetting.theme || theme, //涓婚棰滆壊 - sideTheme: storageSetting.sideTheme || sideTheme, //渚ц竟涓婚鏍峰紡 - topNav: storageSetting.topNav === undefined ? topNav : storageSetting.topNav, - showSettings: showSettings, - tagsView: storageSetting.tagsView === undefined ? tagsView : storageSetting.tagsView, - fixedHeader: storageSetting.fixedHeader === undefined ? fixedHeader : storageSetting.fixedHeader, - sidebarLogo: storageSetting.sidebarLogo === undefined ? sidebarLogo : storageSetting.sidebarLogo, - dynamicTitle: storageSetting.dynamicTitle === undefined ? dynamicTitle : storageSetting.dynamicTitle -} - -const mutations = { - CHANGE_SETTING: (state, { key, value }) => { - if (state.hasOwnProperty(key)) { - state[key] = value - } - } -} - -const actions = { - //淇敼甯冨眬璁剧疆 - changeSetting({ commit }, data) { - commit('CHANGE_SETTING', data) - }, - // 璁剧疆缃戦〉鏍囬 - setTitle({ commit }, title) { - state.title = title; - document.title = state.dynamicTitle ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE; - } -} - -export default { - namespaced: true, - state, - mutations, - actions -} \ No newline at end of file diff --git a/ZR.Vue/src/store/modules/socket.js b/ZR.Vue/src/store/modules/socket.js deleted file mode 100644 index 5d9935b8..00000000 --- a/ZR.Vue/src/store/modules/socket.js +++ /dev/null @@ -1,30 +0,0 @@ -const state = { - onlineNum: 0, - noticeList: [] -} -const mutations = { - SET_ONLINEUSER_NUM: (state, num) => { - state.onlineNum = num - }, - SET_NOTICE_list: (state, data) => { - state.noticeList = data; - } -} - -const actions = { - //鏇存柊鍦ㄧ嚎浜烘暟 - changeOnlineNum({ commit }, data) { - commit('SET_ONLINEUSER_NUM', data) - }, - // 鏇存柊绯荤粺閫氱煡 - getNoticeList({ commit }, data) { - commit('SET_NOTICE_list', data) - } -} - -export default { - namespaced: true, - state, - mutations, - actions -} \ No newline at end of file diff --git a/ZR.Vue/src/store/modules/tagsView.js b/ZR.Vue/src/store/modules/tagsView.js deleted file mode 100644 index 0714cb85..00000000 --- a/ZR.Vue/src/store/modules/tagsView.js +++ /dev/null @@ -1,207 +0,0 @@ -const state = { - visitedViews: [], - cachedViews: [] -} - -const mutations = { - ADD_VISITED_VIEW: (state, view) => { - if (state.visitedViews.some(v => v.path === view.path)) return - state.visitedViews.push( - Object.assign({}, view, { - title: view.meta.title || 'no-name' - }) - ) - }, - ADD_CACHED_VIEW: (state, view) => { - if (state.cachedViews.includes(view.name)) return - if (!view.meta.noCache) { - state.cachedViews.push(view.name) - } - }, - - DEL_VISITED_VIEW: (state, view) => { - for (const [i, v] of state.visitedViews.entries()) { - if (v.path === view.path) { - state.visitedViews.splice(i, 1) - break - } - } - }, - DEL_CACHED_VIEW: (state, view) => { - const index = state.cachedViews.indexOf(view.name) - index > -1 && state.cachedViews.splice(index, 1) - }, - - DEL_OTHERS_VISITED_VIEWS: (state, view) => { - state.visitedViews = state.visitedViews.filter(v => { - return v.meta.affix || v.path === view.path - }) - }, - DEL_OTHERS_CACHED_VIEWS: (state, view) => { - const index = state.cachedViews.indexOf(view.name) - if (index > -1) { - state.cachedViews = state.cachedViews.slice(index, index + 1) - } else { - state.cachedViews = [] - } - }, - - DEL_ALL_VISITED_VIEWS: state => { - // keep affix tags - const affixTags = state.visitedViews.filter(tag => tag.meta.affix) - state.visitedViews = affixTags - }, - DEL_ALL_CACHED_VIEWS: state => { - state.cachedViews = [] - }, - - UPDATE_VISITED_VIEW: (state, view) => { - for (let v of state.visitedViews) { - if (v.path === view.path) { - v = Object.assign(v, view) - break - } - } - }, - - DEL_RIGHT_VIEWS: (state, view) => { - const index = state.visitedViews.findIndex(v => v.path === view.path) - if (index === -1) { - return - } - state.visitedViews = state.visitedViews.filter((item, idx) => { - if (idx <= index || (item.meta && item.meta.affix)) { - return true - } - const i = state.cachedViews.indexOf(item.name) - if (i > -1) { - state.cachedViews.splice(i, 1) - } - return false - }) - }, - - DEL_LEFT_VIEWS: (state, view) => { - const index = state.visitedViews.findIndex(v => v.path === view.path) - if (index === -1) { - return - } - state.visitedViews = state.visitedViews.filter((item, idx) => { - if (idx >= index || (item.meta && item.meta.affix)) { - return true - } - const i = state.cachedViews.indexOf(item.name) - if (i > -1) { - state.cachedViews.splice(i, 1) - } - return false - }) - } -} - -const actions = { - addView({ dispatch }, view) { - dispatch('addVisitedView', view) - dispatch('addCachedView', view) - }, - addVisitedView({ commit }, view) { - commit('ADD_VISITED_VIEW', view) - }, - addCachedView({ commit }, view) { - commit('ADD_CACHED_VIEW', view) - }, - - delView({ dispatch, state }, view) { - return new Promise(resolve => { - dispatch('delVisitedView', view) - dispatch('delCachedView', view) - resolve({ - visitedViews: [...state.visitedViews], - cachedViews: [...state.cachedViews] - }) - }) - }, - delVisitedView({ commit, state }, view) { - return new Promise(resolve => { - commit('DEL_VISITED_VIEW', view) - resolve([...state.visitedViews]) - }) - }, - delCachedView({ commit, state }, view) { - return new Promise(resolve => { - commit('DEL_CACHED_VIEW', view) - resolve([...state.cachedViews]) - }) - }, - - delOthersViews({ dispatch, state }, view) { - return new Promise(resolve => { - dispatch('delOthersVisitedViews', view) - dispatch('delOthersCachedViews', view) - resolve({ - visitedViews: [...state.visitedViews], - cachedViews: [...state.cachedViews] - }) - }) - }, - delOthersVisitedViews({ commit, state }, view) { - return new Promise(resolve => { - commit('DEL_OTHERS_VISITED_VIEWS', view) - resolve([...state.visitedViews]) - }) - }, - delOthersCachedViews({ commit, state }, view) { - return new Promise(resolve => { - commit('DEL_OTHERS_CACHED_VIEWS', view) - resolve([...state.cachedViews]) - }) - }, - - delAllViews({ dispatch, state }, view) { - return new Promise(resolve => { - dispatch('delAllVisitedViews', view) - dispatch('delAllCachedViews', view) - resolve({ - visitedViews: [...state.visitedViews], - cachedViews: [...state.cachedViews] - }) - }) - }, - delAllVisitedViews({ commit, state }) { - return new Promise(resolve => { - commit('DEL_ALL_VISITED_VIEWS') - resolve([...state.visitedViews]) - }) - }, - delAllCachedViews({ commit, state }) { - return new Promise(resolve => { - commit('DEL_ALL_CACHED_VIEWS') - resolve([...state.cachedViews]) - }) - }, - - updateVisitedView({ commit }, view) { - commit('UPDATE_VISITED_VIEW', view) - }, - - delRightTags({ commit }, view) { - return new Promise(resolve => { - commit('DEL_RIGHT_VIEWS', view) - resolve([...state.visitedViews]) - }) - }, - - delLeftTags({ commit }, view) { - return new Promise(resolve => { - commit('DEL_LEFT_VIEWS', view) - resolve([...state.visitedViews]) - }) - }, -} - -export default { - namespaced: true, - state, - mutations, - actions -} \ No newline at end of file diff --git a/ZR.Vue/src/store/modules/user.js b/ZR.Vue/src/store/modules/user.js deleted file mode 100644 index 8923977b..00000000 --- a/ZR.Vue/src/store/modules/user.js +++ /dev/null @@ -1,110 +0,0 @@ -import { login, logout, getInfo } from '@/api/system/login' -import { getToken, setToken, removeToken } from '@/utils/auth' - -const user = { - state: { - userInfo: '', - token: getToken(), - name: '', - avatar: '', - roles: [], - permissions: [] - }, - - mutations: { - SET_TOKEN: (state, token) => { - state.token = token - }, - SET_NAME: (state, name) => { - state.name = name - }, - SET_AVATAR: (state, avatar) => { - state.avatar = avatar - }, - SET_ROLES: (state, roles) => { - state.roles = roles - }, - SET_PERMISSIONS: (state, permissions) => { - state.permissions = permissions - }, - SET_USERINFO: (state, value) => { - state.userInfo = value - } - }, - - actions: { - // 鐧诲綍 - Login({ commit }, userInfo) { - const username = userInfo.username.trim() - const password = userInfo.password - const code = userInfo.code - const uuid = userInfo.uuid - return new Promise((resolve, reject) => { - login(username, password, code, uuid).then(res => { - if (res.code == 200) { - setToken(res.data) - //鎻愪氦涓婇潰鐨刴utaions鏂规硶 - commit('SET_TOKEN', res.data) - resolve() //then澶勭悊 - } else { - console.log('login error ' + res); - reject(res) //catch澶勭悊 - } - }).catch(err => { - reject(err); - }) - }) - }, - - // 鑾峰彇鐢ㄦ埛淇℃伅 - GetInfo({ commit, state }) { - return new Promise((resolve, reject) => { - getInfo().then(res => { - const data = res.data - const avatar = data.user.avatar == "" ? require("@/assets/image/profile.jpg") : data.user.avatar; - - if (data.roles && data.roles.length > 0) { // 楠岃瘉杩斿洖鐨剅oles鏄惁鏄竴涓潪绌烘暟缁 - commit('SET_ROLES', data.roles) - commit('SET_PERMISSIONS', data.permissions) - } else { - commit('SET_ROLES', ['ROLE_DEFAULT']) - } - - commit('SET_NAME', data.user.nickName) - commit('SET_AVATAR', avatar) - commit('SET_USERINFO', data.user) //鏂板姞 - resolve(res) - }).catch(error => { - reject(error) - }) - }) - }, - - // 閫鍑虹郴缁 - LogOut({ commit, state }) { - console.log('閫鍑虹櫥褰') - return new Promise((resolve, reject) => { - logout().then((res) => { - removeToken() // 蹇呴』鍏堢Щ闄oken - commit('SET_TOKEN', '') - commit('SET_ROLES', []) - commit('SET_PERMISSIONS', []) - resolve(res) - }).catch(error => { - reject(error) - }) - }) - }, - - // 鍓嶇 鐧诲嚭 - FedLogOut({ commit }) { - return new Promise(resolve => { - commit('SET_TOKEN', '') - removeToken() - resolve() - }) - } - } -} - -export default user \ No newline at end of file diff --git a/ZR.Vue/src/utils/auth.js b/ZR.Vue/src/utils/auth.js deleted file mode 100644 index 23926b88..00000000 --- a/ZR.Vue/src/utils/auth.js +++ /dev/null @@ -1,17 +0,0 @@ - -// import Cookies from 'js-cookie' - -const TokenKey = 'ZR-Token' - -export function getToken() { - return localStorage.getItem(TokenKey) -} - -export function setToken(token) { - // console.log('set token=' + token) - return localStorage.setItem(TokenKey, token) -} - -export function removeToken() { - return localStorage.removeItem(TokenKey) -} diff --git a/ZR.Vue/src/utils/dict/Dict.js b/ZR.Vue/src/utils/dict/Dict.js deleted file mode 100644 index 104bd6e7..00000000 --- a/ZR.Vue/src/utils/dict/Dict.js +++ /dev/null @@ -1,82 +0,0 @@ -import Vue from 'vue' -import { mergeRecursive } from "@/utils/ruoyi"; -import DictMeta from './DictMeta' -import DictData from './DictData' - -const DEFAULT_DICT_OPTIONS = { - types: [], -} - -/** - * @classdesc 瀛楀吀 - * @property {Object} label 鏍囩瀵硅薄锛屽唴閮ㄥ睘鎬у悕涓哄瓧鍏哥被鍨嬪悕绉 - * @property {Object} dict 瀛楁鏁扮粍锛屽唴閮ㄥ睘鎬у悕涓哄瓧鍏哥被鍨嬪悕绉 - * @property {Array.} _dictMetas 瀛楀吀鍏冩暟鎹暟缁 - */ -export default class Dict { - constructor() { - this.owner = null - this.label = {} - this.type = {} - } - - init(options) { - if (options instanceof Array) { - options = { types: options } - } - const opts = mergeRecursive(DEFAULT_DICT_OPTIONS, options) - if (opts.types === undefined) { - throw new Error('need dict types') - } - const ps = [] - this._dictMetas = opts.types.map(t => DictMeta.parse(t)) - this._dictMetas.forEach(dictMeta => { - const type = dictMeta.type - Vue.set(this.label, type, {}) - Vue.set(this.type, type, []) - if (dictMeta.lazy) { - return - } - ps.push(loadDict(this, dictMeta)) - }) - return Promise.all(ps) - } - - /** - * 閲嶆柊鍔犺浇瀛楀吀 - * @param {String} type 瀛楀吀绫诲瀷 - */ - reloadDict(type) { - const dictMeta = this._dictMetas.find(e => e.type === type) - if (dictMeta === undefined) { - return Promise.reject(`the dict meta of ${type} was not found`) - } - return loadDict(this, dictMeta) - } -} - -/** - * 鍔犺浇瀛楀吀 - * @param {Dict} dict 瀛楀吀 - * @param {DictMeta} dictMeta 瀛楀吀鍏冩暟鎹 - * @returns {Promise} - */ -function loadDict(dict, dictMeta) { - return dictMeta.request(dictMeta) - .then(response => { - const type = dictMeta.type - let dicts = dictMeta.responseConverter(response, dictMeta) - if (!(dicts instanceof Array)) { - console.error('the return of responseConverter must be Array.') - dicts = [] - } else if (dicts.filter(d => d instanceof DictData).length !== dicts.length) { - console.error('the type of elements in dicts must be DictData') - dicts = [] - } - dict.type[type].splice(0, Number.MAX_SAFE_INTEGER, ...dicts) - dicts.forEach(d => { - Vue.set(dict.label[type], d.value, d.label) - }) - return dicts - }) -} diff --git a/ZR.Vue/src/utils/dict/DictConverter.js b/ZR.Vue/src/utils/dict/DictConverter.js deleted file mode 100644 index 0cf5df86..00000000 --- a/ZR.Vue/src/utils/dict/DictConverter.js +++ /dev/null @@ -1,17 +0,0 @@ -import DictOptions from './DictOptions' -import DictData from './DictData' - -export default function(dict, dictMeta) { - const label = determineDictField(dict, dictMeta.labelField, ...DictOptions.DEFAULT_LABEL_FIELDS) - const value = determineDictField(dict, dictMeta.valueField, ...DictOptions.DEFAULT_VALUE_FIELDS) - return new DictData(dict[label], dict[value], dict) -} - -/** - * 纭畾瀛楀吀瀛楁 - * @param {DictData} dict - * @param {...String} fields - */ -function determineDictField(dict, ...fields) { - return fields.find(f => Object.prototype.hasOwnProperty.call(dict, f)) -} diff --git a/ZR.Vue/src/utils/dict/DictData.js b/ZR.Vue/src/utils/dict/DictData.js deleted file mode 100644 index afc763e8..00000000 --- a/ZR.Vue/src/utils/dict/DictData.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * @classdesc 瀛楀吀鏁版嵁 - * @property {String} label 鏍囩 - * @property {*} value 鏍囩 - * @property {Object} raw 鍘熷鏁版嵁 - */ -export default class DictData { - constructor(label, value, raw) { - this.label = label - this.value = value - this.raw = raw - } -} diff --git a/ZR.Vue/src/utils/dict/DictMeta.js b/ZR.Vue/src/utils/dict/DictMeta.js deleted file mode 100644 index 9570c6d7..00000000 --- a/ZR.Vue/src/utils/dict/DictMeta.js +++ /dev/null @@ -1,38 +0,0 @@ -import { mergeRecursive } from "@/utils/ruoyi"; -import DictOptions from './DictOptions' - -/** - * @classdesc 瀛楀吀鍏冩暟鎹 - * @property {String} type 绫诲瀷 - * @property {Function} request 璇锋眰 - * @property {String} label 鏍囩瀛楁 - * @property {String} value 鍊煎瓧娈 - */ -export default class DictMeta { - constructor(options) { - this.type = options.type - this.request = options.request, - this.responseConverter = options.responseConverter - this.labelField = options.labelField - this.valueField = options.valueField - this.lazy = options.lazy === true - } -} - - -/** - * 瑙f瀽瀛楀吀鍏冩暟鎹 - * @param {Object} options - * @returns {DictMeta} - */ -DictMeta.parse= function(options) { - let opts = null - if (typeof options === 'string') { - opts = DictOptions.metas[options] || {} - opts.type = options - } else if (typeof options === 'object') { - opts = options - } - opts = mergeRecursive(DictOptions.metas['*'], opts) - return new DictMeta(opts) -} diff --git a/ZR.Vue/src/utils/dict/DictOptions.js b/ZR.Vue/src/utils/dict/DictOptions.js deleted file mode 100644 index 338a94e1..00000000 --- a/ZR.Vue/src/utils/dict/DictOptions.js +++ /dev/null @@ -1,51 +0,0 @@ -import { mergeRecursive } from "@/utils/ruoyi"; -import dictConverter from './DictConverter' - -export const options = { - metas: { - '*': { - /** - * 瀛楀吀璇锋眰锛屾柟娉曠鍚嶄负function(dictMeta: DictMeta): Promise - */ - request: (dictMeta) => { - console.log(`load dict ${dictMeta.type}`) - return Promise.resolve([]) - }, - /** - * 瀛楀吀鍝嶅簲鏁版嵁杞崲鍣紝鏂规硶绛惧悕涓篺unction(response: Object, dictMeta: DictMeta): DictData - */ - responseConverter, - labelField: 'label', - valueField: 'value', - }, - }, - /** - * 榛樿鏍囩瀛楁 - */ - DEFAULT_LABEL_FIELDS: ['label', 'name', 'title'], - /** - * 榛樿鍊煎瓧娈 - */ - DEFAULT_VALUE_FIELDS: ['value', 'id', 'uid', 'key'], -} - -/** - * 鏄犲皠瀛楀吀 - * @param {Object} response 瀛楀吀鏁版嵁 - * @param {DictMeta} dictMeta 瀛楀吀鍏冩暟鎹 - * @returns {DictData} - */ -function responseConverter(response, dictMeta) { - const dicts = response.content instanceof Array ? response.content : response - if (dicts === undefined) { - console.warn(`no dict data of "${dictMeta.type}" found in the response`) - return [] - } - return dicts.map(d => dictConverter(d, dictMeta)) -} - -export function mergeOptions(src) { - mergeRecursive(options, src) -} - -export default options diff --git a/ZR.Vue/src/utils/dict/index.js b/ZR.Vue/src/utils/dict/index.js deleted file mode 100644 index 215eb9e0..00000000 --- a/ZR.Vue/src/utils/dict/index.js +++ /dev/null @@ -1,33 +0,0 @@ -import Dict from './Dict' -import { mergeOptions } from './DictOptions' - -export default function(Vue, options) { - mergeOptions(options) - Vue.mixin({ - data() { - if (this.$options === undefined || this.$options.dicts === undefined || this.$options.dicts === null) { - return {} - } - const dict = new Dict() - dict.owner = this - return { - dict - } - }, - created() { - if (!(this.dict instanceof Dict)) { - return - } - options.onCreated && options.onCreated(this.dict) - this.dict.init(this.$options.dicts).then(() => { - options.onReady && options.onReady(this.dict) - this.$nextTick(() => { - this.$emit('dictReady', this.dict) - if (this.$options.methods && this.$options.methods.onDictReady instanceof Function) { - this.$options.methods.onDictReady.call(this, this.dict) - } - }) - }) - }, - }) -} diff --git a/ZR.Vue/src/utils/errorCode.js b/ZR.Vue/src/utils/errorCode.js deleted file mode 100644 index d2111ee1..00000000 --- a/ZR.Vue/src/utils/errorCode.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - '401': '璁よ瘉澶辫触锛屾棤娉曡闂郴缁熻祫婧', - '403': '褰撳墠鎿嶄綔娌℃湁鏉冮檺', - '404': '璁块棶璧勬簮涓嶅瓨鍦', - 'default': '绯荤粺鏈煡閿欒锛岃鍙嶉缁欑鐞嗗憳' -} diff --git a/ZR.Vue/src/utils/generator/config.js b/ZR.Vue/src/utils/generator/config.js deleted file mode 100644 index 7abf227d..00000000 --- a/ZR.Vue/src/utils/generator/config.js +++ /dev/null @@ -1,438 +0,0 @@ -export const formConf = { - formRef: 'elForm', - formModel: 'formData', - size: 'medium', - labelPosition: 'right', - labelWidth: 100, - formRules: 'rules', - gutter: 15, - disabled: false, - span: 24, - formBtns: true -} - -export const inputComponents = [ - { - label: '鍗曡鏂囨湰', - tag: 'el-input', - tagIcon: 'input', - placeholder: '璇疯緭鍏', - defaultValue: undefined, - span: 24, - labelWidth: null, - style: { width: '100%' }, - clearable: true, - prepend: '', - append: '', - 'prefix-icon': '', - 'suffix-icon': '', - maxlength: null, - 'show-word-limit': false, - readonly: false, - disabled: false, - required: true, - regList: [], - changeTag: true, - document: 'https://element.eleme.cn/#/zh-CN/component/input' - }, - { - label: '澶氳鏂囨湰', - tag: 'el-input', - tagIcon: 'textarea', - type: 'textarea', - placeholder: '璇疯緭鍏', - defaultValue: undefined, - span: 24, - labelWidth: null, - autosize: { - minRows: 4, - maxRows: 4 - }, - style: { width: '100%' }, - maxlength: null, - 'show-word-limit': false, - readonly: false, - disabled: false, - required: true, - regList: [], - changeTag: true, - document: 'https://element.eleme.cn/#/zh-CN/component/input' - }, - { - label: '瀵嗙爜', - tag: 'el-input', - tagIcon: 'password', - placeholder: '璇疯緭鍏', - defaultValue: undefined, - span: 24, - 'show-password': true, - labelWidth: null, - style: { width: '100%' }, - clearable: true, - prepend: '', - append: '', - 'prefix-icon': '', - 'suffix-icon': '', - maxlength: null, - 'show-word-limit': false, - readonly: false, - disabled: false, - required: true, - regList: [], - changeTag: true, - document: 'https://element.eleme.cn/#/zh-CN/component/input' - }, - { - label: '璁℃暟鍣', - tag: 'el-input-number', - tagIcon: 'number', - placeholder: '', - defaultValue: undefined, - span: 24, - labelWidth: null, - min: undefined, - max: undefined, - step: undefined, - 'step-strictly': false, - precision: undefined, - 'controls-position': '', - disabled: false, - required: true, - regList: [], - changeTag: true, - document: 'https://element.eleme.cn/#/zh-CN/component/input-number' - } -] - -export const selectComponents = [ - { - label: '涓嬫媺閫夋嫨', - tag: 'el-select', - tagIcon: 'select', - placeholder: '璇烽夋嫨', - defaultValue: undefined, - span: 24, - labelWidth: null, - style: { width: '100%' }, - clearable: true, - disabled: false, - required: true, - filterable: false, - multiple: false, - options: [{ - label: '閫夐」涓', - value: 1 - }, { - label: '閫夐」浜', - value: 2 - }], - regList: [], - changeTag: true, - document: 'https://element.eleme.cn/#/zh-CN/component/select' - }, - { - label: '绾ц仈閫夋嫨', - tag: 'el-cascader', - tagIcon: 'cascader', - placeholder: '璇烽夋嫨', - defaultValue: [], - span: 24, - labelWidth: null, - style: { width: '100%' }, - props: { - props: { - multiple: false - } - }, - 'show-all-levels': true, - disabled: false, - clearable: true, - filterable: false, - required: true, - options: [{ - id: 1, - value: 1, - label: '閫夐」1', - children: [{ - id: 2, - value: 2, - label: '閫夐」1-1' - }] - }], - dataType: 'dynamic', - labelKey: 'label', - valueKey: 'value', - childrenKey: 'children', - separator: '/', - regList: [], - changeTag: true, - document: 'https://element.eleme.cn/#/zh-CN/component/cascader' - }, - { - label: '鍗曢夋缁', - tag: 'el-radio-group', - tagIcon: 'radio', - defaultValue: undefined, - span: 24, - labelWidth: null, - style: {}, - optionType: 'default', - border: false, - size: 'medium', - disabled: false, - required: true, - options: [{ - label: '閫夐」涓', - value: 1 - }, { - label: '閫夐」浜', - value: 2 - }], - regList: [], - changeTag: true, - document: 'https://element.eleme.cn/#/zh-CN/component/radio' - }, - { - label: '澶氶夋缁', - tag: 'el-checkbox-group', - tagIcon: 'checkbox', - defaultValue: [], - span: 24, - labelWidth: null, - style: {}, - optionType: 'default', - border: false, - size: 'medium', - disabled: false, - required: true, - options: [{ - label: '閫夐」涓', - value: 1 - }, { - label: '閫夐」浜', - value: 2 - }], - regList: [], - changeTag: true, - document: 'https://element.eleme.cn/#/zh-CN/component/checkbox' - }, - { - label: '寮鍏', - tag: 'el-switch', - tagIcon: 'switch', - defaultValue: false, - span: 24, - labelWidth: null, - style: {}, - disabled: false, - required: true, - 'active-text': '', - 'inactive-text': '', - 'active-color': null, - 'inactive-color': null, - 'active-value': true, - 'inactive-value': false, - regList: [], - changeTag: true, - document: 'https://element.eleme.cn/#/zh-CN/component/switch' - }, - { - label: '婊戝潡', - tag: 'el-slider', - tagIcon: 'slider', - defaultValue: null, - span: 24, - labelWidth: null, - disabled: false, - required: true, - min: 0, - max: 100, - step: 1, - 'show-stops': false, - range: false, - regList: [], - changeTag: true, - document: 'https://element.eleme.cn/#/zh-CN/component/slider' - }, - { - label: '鏃堕棿閫夋嫨', - tag: 'el-time-picker', - tagIcon: 'time', - placeholder: '璇烽夋嫨', - defaultValue: null, - span: 24, - labelWidth: null, - style: { width: '100%' }, - disabled: false, - clearable: true, - required: true, - 'picker-options': { - selectableRange: '00:00:00-23:59:59' - }, - format: 'HH:mm:ss', - 'value-format': 'HH:mm:ss', - regList: [], - changeTag: true, - document: 'https://element.eleme.cn/#/zh-CN/component/time-picker' - }, - { - label: '鏃堕棿鑼冨洿', - tag: 'el-time-picker', - tagIcon: 'time-range', - defaultValue: null, - span: 24, - labelWidth: null, - style: { width: '100%' }, - disabled: false, - clearable: true, - required: true, - 'is-range': true, - 'range-separator': '鑷', - 'start-placeholder': '寮濮嬫椂闂', - 'end-placeholder': '缁撴潫鏃堕棿', - format: 'HH:mm:ss', - 'value-format': 'HH:mm:ss', - regList: [], - changeTag: true, - document: 'https://element.eleme.cn/#/zh-CN/component/time-picker' - }, - { - label: '鏃ユ湡閫夋嫨', - tag: 'el-date-picker', - tagIcon: 'date', - placeholder: '璇烽夋嫨', - defaultValue: null, - type: 'date', - span: 24, - labelWidth: null, - style: { width: '100%' }, - disabled: false, - clearable: true, - required: true, - format: 'yyyy-MM-dd', - 'value-format': 'yyyy-MM-dd', - readonly: false, - regList: [], - changeTag: true, - document: 'https://element.eleme.cn/#/zh-CN/component/date-picker' - }, - { - label: '鏃ユ湡鑼冨洿', - tag: 'el-date-picker', - tagIcon: 'date-range', - defaultValue: null, - span: 24, - labelWidth: null, - style: { width: '100%' }, - type: 'daterange', - 'range-separator': '鑷', - 'start-placeholder': '寮濮嬫棩鏈', - 'end-placeholder': '缁撴潫鏃ユ湡', - disabled: false, - clearable: true, - required: true, - format: 'yyyy-MM-dd', - 'value-format': 'yyyy-MM-dd', - readonly: false, - regList: [], - changeTag: true, - document: 'https://element.eleme.cn/#/zh-CN/component/date-picker' - }, - { - label: '璇勫垎', - tag: 'el-rate', - tagIcon: 'rate', - defaultValue: 0, - span: 24, - labelWidth: null, - style: {}, - max: 5, - 'allow-half': false, - 'show-text': false, - 'show-score': false, - disabled: false, - required: true, - regList: [], - changeTag: true, - document: 'https://element.eleme.cn/#/zh-CN/component/rate' - }, - { - label: '棰滆壊閫夋嫨', - tag: 'el-color-picker', - tagIcon: 'color', - defaultValue: null, - labelWidth: null, - 'show-alpha': false, - 'color-format': '', - disabled: false, - required: true, - size: 'medium', - regList: [], - changeTag: true, - document: 'https://element.eleme.cn/#/zh-CN/component/color-picker' - }, - { - label: '涓婁紶', - tag: 'el-upload', - tagIcon: 'upload', - action: 'https://jsonplaceholder.typicode.com/posts/', - defaultValue: null, - labelWidth: null, - disabled: false, - required: true, - accept: '', - name: 'file', - 'auto-upload': true, - showTip: false, - buttonText: '鐐瑰嚮涓婁紶', - fileSize: 2, - sizeUnit: 'MB', - 'list-type': 'text', - multiple: false, - regList: [], - changeTag: true, - document: 'https://element.eleme.cn/#/zh-CN/component/upload' - } -] - -export const layoutComponents = [ - { - layout: 'rowFormItem', - tagIcon: 'row', - type: 'default', - justify: 'start', - align: 'top', - label: '琛屽鍣', - layoutTree: true, - children: [], - document: 'https://element.eleme.cn/#/zh-CN/component/layout' - }, - { - layout: 'colFormItem', - label: '鎸夐挳', - changeTag: true, - labelWidth: null, - tag: 'el-button', - tagIcon: 'button', - span: 24, - default: '涓昏鎸夐挳', - type: 'primary', - icon: 'el-icon-search', - size: 'medium', - disabled: false, - document: 'https://element.eleme.cn/#/zh-CN/component/button' - } -] - -// 缁勪欢rule鐨勮Е鍙戞柟寮忥紝鏃犺Е鍙戞柟寮忕殑缁勪欢涓嶇敓鎴恟ule -export const trigger = { - 'el-input': 'blur', - 'el-input-number': 'blur', - 'el-select': 'change', - 'el-radio-group': 'change', - 'el-checkbox-group': 'change', - 'el-cascader': 'change', - 'el-time-picker': 'change', - 'el-date-picker': 'change', - 'el-rate': 'change' -} diff --git a/ZR.Vue/src/utils/generator/css.js b/ZR.Vue/src/utils/generator/css.js deleted file mode 100644 index c1c62e60..00000000 --- a/ZR.Vue/src/utils/generator/css.js +++ /dev/null @@ -1,18 +0,0 @@ -const styles = { - 'el-rate': '.el-rate{display: inline-block; vertical-align: text-top;}', - 'el-upload': '.el-upload__tip{line-height: 1.2;}' -} - -function addCss(cssList, el) { - const css = styles[el.tag] - css && cssList.indexOf(css) === -1 && cssList.push(css) - if (el.children) { - el.children.forEach(el2 => addCss(cssList, el2)) - } -} - -export function makeUpCss(conf) { - const cssList = [] - conf.fields.forEach(el => addCss(cssList, el)) - return cssList.join('\n') -} diff --git a/ZR.Vue/src/utils/generator/drawingDefalut.js b/ZR.Vue/src/utils/generator/drawingDefalut.js deleted file mode 100644 index 09f133ca..00000000 --- a/ZR.Vue/src/utils/generator/drawingDefalut.js +++ /dev/null @@ -1,29 +0,0 @@ -export default [ - { - layout: 'colFormItem', - tagIcon: 'input', - label: '鎵嬫満鍙', - vModel: 'mobile', - formId: 6, - tag: 'el-input', - placeholder: '璇疯緭鍏ユ墜鏈哄彿', - defaultValue: '', - span: 24, - style: { width: '100%' }, - clearable: true, - prepend: '', - append: '', - 'prefix-icon': 'el-icon-mobile', - 'suffix-icon': '', - maxlength: 11, - 'show-word-limit': true, - readonly: false, - disabled: false, - required: true, - changeTag: true, - regList: [{ - pattern: '/^1(3|4|5|7|8|9)\\d{9}$/', - message: '鎵嬫満鍙锋牸寮忛敊璇' - }] - } -] diff --git a/ZR.Vue/src/utils/generator/html.js b/ZR.Vue/src/utils/generator/html.js deleted file mode 100644 index ebf628d2..00000000 --- a/ZR.Vue/src/utils/generator/html.js +++ /dev/null @@ -1,359 +0,0 @@ -/* eslint-disable max-len */ -import { trigger } from './config' - -let confGlobal -let someSpanIsNot24 - -export function dialogWrapper(str) { - return ` - ${str} -
- 鍙栨秷 - 纭畾 -
-
` -} - -export function vueTemplate(str) { - return `` -} - -export function vueScript(str) { - return `` -} - -export function cssStyle(cssStr) { - return `` -} - -function buildFormTemplate(conf, child, type) { - let labelPosition = '' - if (conf.labelPosition !== 'right') { - labelPosition = `label-position="${conf.labelPosition}"` - } - const disabled = conf.disabled ? `:disabled="${conf.disabled}"` : '' - let str = ` - ${child} - ${buildFromBtns(conf, type)} - ` - if (someSpanIsNot24) { - str = ` - ${str} - ` - } - return str -} - -function buildFromBtns(conf, type) { - let str = '' - if (conf.formBtns && type === 'file') { - str = ` - 鎻愪氦 - 閲嶇疆 - ` - if (someSpanIsNot24) { - str = ` - ${str} - ` - } - } - return str -} - -// span涓嶄负24鐨勭敤el-col鍖呰9 -function colWrapper(element, str) { - if (someSpanIsNot24 || element.span !== 24) { - return ` - ${str} - ` - } - return str -} - -const layouts = { - colFormItem(element) { - let labelWidth = '' - if (element.labelWidth && element.labelWidth !== confGlobal.labelWidth) { - labelWidth = `label-width="${element.labelWidth}px"` - } - const required = !trigger[element.tag] && element.required ? 'required' : '' - const tagDom = tags[element.tag] ? tags[element.tag](element) : null - let str = ` - ${tagDom} - ` - str = colWrapper(element, str) - return str - }, - rowFormItem(element) { - const type = element.type === 'default' ? '' : `type="${element.type}"` - const justify = element.type === 'default' ? '' : `justify="${element.justify}"` - const align = element.type === 'default' ? '' : `align="${element.align}"` - const gutter = element.gutter ? `gutter="${element.gutter}"` : '' - const children = element.children.map(el => layouts[el.layout](el)) - let str = ` - ${children.join('\n')} - ` - str = colWrapper(element, str) - return str - } -} - -const tags = { - 'el-button': el => { - const { - tag, disabled - } = attrBuilder(el) - const type = el.type ? `type="${el.type}"` : '' - const icon = el.icon ? `icon="${el.icon}"` : '' - const size = el.size ? `size="${el.size}"` : '' - let child = buildElButtonChild(el) - - if (child) child = `\n${child}\n` // 鎹㈣ - return `<${el.tag} ${type} ${icon} ${size} ${disabled}>${child}` - }, - 'el-input': el => { - const { - disabled, vModel, clearable, placeholder, width - } = attrBuilder(el) - const maxlength = el.maxlength ? `:maxlength="${el.maxlength}"` : '' - const showWordLimit = el['show-word-limit'] ? 'show-word-limit' : '' - const readonly = el.readonly ? 'readonly' : '' - const prefixIcon = el['prefix-icon'] ? `prefix-icon='${el['prefix-icon']}'` : '' - const suffixIcon = el['suffix-icon'] ? `suffix-icon='${el['suffix-icon']}'` : '' - const showPassword = el['show-password'] ? 'show-password' : '' - const type = el.type ? `type="${el.type}"` : '' - const autosize = el.autosize && el.autosize.minRows - ? `:autosize="{minRows: ${el.autosize.minRows}, maxRows: ${el.autosize.maxRows}}"` - : '' - let child = buildElInputChild(el) - - if (child) child = `\n${child}\n` // 鎹㈣ - return `<${el.tag} ${vModel} ${type} ${placeholder} ${maxlength} ${showWordLimit} ${readonly} ${disabled} ${clearable} ${prefixIcon} ${suffixIcon} ${showPassword} ${autosize} ${width}>${child}` - }, - 'el-input-number': el => { - const { disabled, vModel, placeholder } = attrBuilder(el) - const controlsPosition = el['controls-position'] ? `controls-position=${el['controls-position']}` : '' - const min = el.min ? `:min='${el.min}'` : '' - const max = el.max ? `:max='${el.max}'` : '' - const step = el.step ? `:step='${el.step}'` : '' - const stepStrictly = el['step-strictly'] ? 'step-strictly' : '' - const precision = el.precision ? `:precision='${el.precision}'` : '' - - return `<${el.tag} ${vModel} ${placeholder} ${step} ${stepStrictly} ${precision} ${controlsPosition} ${min} ${max} ${disabled}>` - }, - 'el-select': el => { - const { - disabled, vModel, clearable, placeholder, width - } = attrBuilder(el) - const filterable = el.filterable ? 'filterable' : '' - const multiple = el.multiple ? 'multiple' : '' - let child = buildElSelectChild(el) - - if (child) child = `\n${child}\n` // 鎹㈣ - return `<${el.tag} ${vModel} ${placeholder} ${disabled} ${multiple} ${filterable} ${clearable} ${width}>${child}` - }, - 'el-radio-group': el => { - const { disabled, vModel } = attrBuilder(el) - const size = `size="${el.size}"` - let child = buildElRadioGroupChild(el) - - if (child) child = `\n${child}\n` // 鎹㈣ - return `<${el.tag} ${vModel} ${size} ${disabled}>${child}` - }, - 'el-checkbox-group': el => { - const { disabled, vModel } = attrBuilder(el) - const size = `size="${el.size}"` - const min = el.min ? `:min="${el.min}"` : '' - const max = el.max ? `:max="${el.max}"` : '' - let child = buildElCheckboxGroupChild(el) - - if (child) child = `\n${child}\n` // 鎹㈣ - return `<${el.tag} ${vModel} ${min} ${max} ${size} ${disabled}>${child}` - }, - 'el-switch': el => { - const { disabled, vModel } = attrBuilder(el) - const activeText = el['active-text'] ? `active-text="${el['active-text']}"` : '' - const inactiveText = el['inactive-text'] ? `inactive-text="${el['inactive-text']}"` : '' - const activeColor = el['active-color'] ? `active-color="${el['active-color']}"` : '' - const inactiveColor = el['inactive-color'] ? `inactive-color="${el['inactive-color']}"` : '' - const activeValue = el['active-value'] !== true ? `:active-value='${JSON.stringify(el['active-value'])}'` : '' - const inactiveValue = el['inactive-value'] !== false ? `:inactive-value='${JSON.stringify(el['inactive-value'])}'` : '' - - return `<${el.tag} ${vModel} ${activeText} ${inactiveText} ${activeColor} ${inactiveColor} ${activeValue} ${inactiveValue} ${disabled}>` - }, - 'el-cascader': el => { - const { - disabled, vModel, clearable, placeholder, width - } = attrBuilder(el) - const options = el.options ? `:options="${el.vModel}Options"` : '' - const props = el.props ? `:props="${el.vModel}Props"` : '' - const showAllLevels = el['show-all-levels'] ? '' : ':show-all-levels="false"' - const filterable = el.filterable ? 'filterable' : '' - const separator = el.separator === '/' ? '' : `separator="${el.separator}"` - - return `<${el.tag} ${vModel} ${options} ${props} ${width} ${showAllLevels} ${placeholder} ${separator} ${filterable} ${clearable} ${disabled}>` - }, - 'el-slider': el => { - const { disabled, vModel } = attrBuilder(el) - const min = el.min ? `:min='${el.min}'` : '' - const max = el.max ? `:max='${el.max}'` : '' - const step = el.step ? `:step='${el.step}'` : '' - const range = el.range ? 'range' : '' - const showStops = el['show-stops'] ? `:show-stops="${el['show-stops']}"` : '' - - return `<${el.tag} ${min} ${max} ${step} ${vModel} ${range} ${showStops} ${disabled}>` - }, - 'el-time-picker': el => { - const { - disabled, vModel, clearable, placeholder, width - } = attrBuilder(el) - const startPlaceholder = el['start-placeholder'] ? `start-placeholder="${el['start-placeholder']}"` : '' - const endPlaceholder = el['end-placeholder'] ? `end-placeholder="${el['end-placeholder']}"` : '' - const rangeSeparator = el['range-separator'] ? `range-separator="${el['range-separator']}"` : '' - const isRange = el['is-range'] ? 'is-range' : '' - const format = el.format ? `format="${el.format}"` : '' - const valueFormat = el['value-format'] ? `value-format="${el['value-format']}"` : '' - const pickerOptions = el['picker-options'] ? `:picker-options='${JSON.stringify(el['picker-options'])}'` : '' - - return `<${el.tag} ${vModel} ${isRange} ${format} ${valueFormat} ${pickerOptions} ${width} ${placeholder} ${startPlaceholder} ${endPlaceholder} ${rangeSeparator} ${clearable} ${disabled}>` - }, - 'el-date-picker': el => { - const { - disabled, vModel, clearable, placeholder, width - } = attrBuilder(el) - const startPlaceholder = el['start-placeholder'] ? `start-placeholder="${el['start-placeholder']}"` : '' - const endPlaceholder = el['end-placeholder'] ? `end-placeholder="${el['end-placeholder']}"` : '' - const rangeSeparator = el['range-separator'] ? `range-separator="${el['range-separator']}"` : '' - const format = el.format ? `format="${el.format}"` : '' - const valueFormat = el['value-format'] ? `value-format="${el['value-format']}"` : '' - const type = el.type === 'date' ? '' : `type="${el.type}"` - const readonly = el.readonly ? 'readonly' : '' - - return `<${el.tag} ${type} ${vModel} ${format} ${valueFormat} ${width} ${placeholder} ${startPlaceholder} ${endPlaceholder} ${rangeSeparator} ${clearable} ${readonly} ${disabled}>` - }, - 'el-rate': el => { - const { disabled, vModel } = attrBuilder(el) - const max = el.max ? `:max='${el.max}'` : '' - const allowHalf = el['allow-half'] ? 'allow-half' : '' - const showText = el['show-text'] ? 'show-text' : '' - const showScore = el['show-score'] ? 'show-score' : '' - - return `<${el.tag} ${vModel} ${allowHalf} ${showText} ${showScore} ${disabled}>` - }, - 'el-color-picker': el => { - const { disabled, vModel } = attrBuilder(el) - const size = `size="${el.size}"` - const showAlpha = el['show-alpha'] ? 'show-alpha' : '' - const colorFormat = el['color-format'] ? `color-format="${el['color-format']}"` : '' - - return `<${el.tag} ${vModel} ${size} ${showAlpha} ${colorFormat} ${disabled}>` - }, - 'el-upload': el => { - const disabled = el.disabled ? ':disabled=\'true\'' : '' - const action = el.action ? `:action="${el.vModel}Action"` : '' - const multiple = el.multiple ? 'multiple' : '' - const listType = el['list-type'] !== 'text' ? `list-type="${el['list-type']}"` : '' - const accept = el.accept ? `accept="${el.accept}"` : '' - const name = el.name !== 'file' ? `name="${el.name}"` : '' - const autoUpload = el['auto-upload'] === false ? ':auto-upload="false"' : '' - const beforeUpload = `:before-upload="${el.vModel}BeforeUpload"` - const fileList = `:file-list="${el.vModel}fileList"` - const ref = `ref="${el.vModel}"` - let child = buildElUploadChild(el) - - if (child) child = `\n${child}\n` // 鎹㈣ - return `<${el.tag} ${ref} ${fileList} ${action} ${autoUpload} ${multiple} ${beforeUpload} ${listType} ${accept} ${name} ${disabled}>${child}` - } -} - -function attrBuilder(el) { - return { - vModel: `v-model="${confGlobal.formModel}.${el.vModel}"`, - clearable: el.clearable ? 'clearable' : '', - placeholder: el.placeholder ? `placeholder="${el.placeholder}"` : '', - width: el.style && el.style.width ? ':style="{width: \'100%\'}"' : '', - disabled: el.disabled ? ':disabled=\'true\'' : '' - } -} - -// el-buttin 瀛愮骇 -function buildElButtonChild(conf) { - const children = [] - if (conf.default) { - children.push(conf.default) - } - return children.join('\n') -} - -// el-input innerHTML -function buildElInputChild(conf) { - const children = [] - if (conf.prepend) { - children.push(``) - } - if (conf.append) { - children.push(``) - } - return children.join('\n') -} - -function buildElSelectChild(conf) { - const children = [] - if (conf.options && conf.options.length) { - children.push(``) - } - return children.join('\n') -} - -function buildElRadioGroupChild(conf) { - const children = [] - if (conf.options && conf.options.length) { - const tag = conf.optionType === 'button' ? 'el-radio-button' : 'el-radio' - const border = conf.border ? 'border' : '' - children.push(`<${tag} v-for="(item, index) in ${conf.vModel}Options" :key="index" :label="item.value" :disabled="item.disabled" ${border}>{{item.label}}`) - } - return children.join('\n') -} - -function buildElCheckboxGroupChild(conf) { - const children = [] - if (conf.options && conf.options.length) { - const tag = conf.optionType === 'button' ? 'el-checkbox-button' : 'el-checkbox' - const border = conf.border ? 'border' : '' - children.push(`<${tag} v-for="(item, index) in ${conf.vModel}Options" :key="index" :label="item.value" :disabled="item.disabled" ${border}>{{item.label}}`) - } - return children.join('\n') -} - -function buildElUploadChild(conf) { - const list = [] - if (conf['list-type'] === 'picture-card') list.push('') - else list.push(`${conf.buttonText}`) - if (conf.showTip) list.push(`
鍙兘涓婁紶涓嶈秴杩 ${conf.fileSize}${conf.sizeUnit} 鐨${conf.accept}鏂囦欢
`) - return list.join('\n') -} - -export function makeUpHtml(conf, type) { - const htmlList = [] - confGlobal = conf - someSpanIsNot24 = conf.fields.some(item => item.span !== 24) - conf.fields.forEach(el => { - htmlList.push(layouts[el.layout](el)) - }) - const htmlStr = htmlList.join('\n') - - let temp = buildFormTemplate(conf, htmlStr, type) - if (type === 'dialog') { - temp = dialogWrapper(temp) - } - confGlobal = null - return temp -} diff --git a/ZR.Vue/src/utils/generator/icon.json b/ZR.Vue/src/utils/generator/icon.json deleted file mode 100644 index 2d9999a3..00000000 --- a/ZR.Vue/src/utils/generator/icon.json +++ /dev/null @@ -1 +0,0 @@ -["platform-eleme","eleme","delete-solid","delete","s-tools","setting","user-solid","user","phone","phone-outline","more","more-outline","star-on","star-off","s-goods","goods","warning","warning-outline","question","info","remove","circle-plus","success","error","zoom-in","zoom-out","remove-outline","circle-plus-outline","circle-check","circle-close","s-help","help","minus","plus","check","close","picture","picture-outline","picture-outline-round","upload","upload2","download","camera-solid","camera","video-camera-solid","video-camera","message-solid","bell","s-cooperation","s-order","s-platform","s-fold","s-unfold","s-operation","s-promotion","s-home","s-release","s-ticket","s-management","s-open","s-shop","s-marketing","s-flag","s-comment","s-finance","s-claim","s-custom","s-opportunity","s-data","s-check","s-grid","menu","share","d-caret","caret-left","caret-right","caret-bottom","caret-top","bottom-left","bottom-right","back","right","bottom","top","top-left","top-right","arrow-left","arrow-right","arrow-down","arrow-up","d-arrow-left","d-arrow-right","video-pause","video-play","refresh","refresh-right","refresh-left","finished","sort","sort-up","sort-down","rank","loading","view","c-scale-to-original","date","edit","edit-outline","folder","folder-opened","folder-add","folder-remove","folder-delete","folder-checked","tickets","document-remove","document-delete","document-copy","document-checked","document","document-add","printer","paperclip","takeaway-box","search","monitor","attract","mobile","scissors","umbrella","headset","brush","mouse","coordinate","magic-stick","reading","data-line","data-board","pie-chart","data-analysis","collection-tag","film","suitcase","suitcase-1","receiving","collection","files","notebook-1","notebook-2","toilet-paper","office-building","school","table-lamp","house","no-smoking","smoking","shopping-cart-full","shopping-cart-1","shopping-cart-2","shopping-bag-1","shopping-bag-2","sold-out","sell","present","box","bank-card","money","coin","wallet","discount","price-tag","news","guide","male","female","thumb","cpu","link","connection","open","turn-off","set-up","chat-round","chat-line-round","chat-square","chat-dot-round","chat-dot-square","chat-line-square","message","postcard","position","turn-off-microphone","microphone","close-notification","bangzhu","time","odometer","crop","aim","switch-button","full-screen","copy-document","mic","stopwatch","medal-1","medal","trophy","trophy-1","first-aid-kit","discover","place","location","location-outline","location-information","add-location","delete-location","map-location","alarm-clock","timer","watch-1","watch","lock","unlock","key","service","mobile-phone","bicycle","truck","ship","basketball","football","soccer","baseball","wind-power","light-rain","lightning","heavy-rain","sunrise","sunrise-1","sunset","sunny","cloudy","partly-cloudy","cloudy-and-sunny","moon","moon-night","dish","dish-1","food","chicken","fork-spoon","knife-fork","burger","tableware","sugar","dessert","ice-cream","hot-water","water-cup","coffee-cup","cold-drink","goblet","goblet-full","goblet-square","goblet-square-full","refrigerator","grape","watermelon","cherry","apple","pear","orange","coffee","ice-tea","ice-drink","milk-tea","potato-strips","lollipop","ice-cream-square","ice-cream-round"] \ No newline at end of file diff --git a/ZR.Vue/src/utils/generator/js.js b/ZR.Vue/src/utils/generator/js.js deleted file mode 100644 index c6c06a99..00000000 --- a/ZR.Vue/src/utils/generator/js.js +++ /dev/null @@ -1,236 +0,0 @@ -import { isArray } from 'util' -import { exportDefault, titleCase } from '@/utils/index' -import { trigger } from './config' - -const units = { - KB: '1024', - MB: '1024 / 1024', - GB: '1024 / 1024 / 1024' -} -let confGlobal -const inheritAttrs = { - file: '', - dialog: 'inheritAttrs: false,' -} - - -export function makeUpJs(conf, type) { - confGlobal = conf = JSON.parse(JSON.stringify(conf)) - const dataList = [] - const ruleList = [] - const optionsList = [] - const propsList = [] - const methodList = mixinMethod(type) - const uploadVarList = [] - - conf.fields.forEach(el => { - buildAttributes(el, dataList, ruleList, optionsList, methodList, propsList, uploadVarList) - }) - - const script = buildexport( - conf, - type, - dataList.join('\n'), - ruleList.join('\n'), - optionsList.join('\n'), - uploadVarList.join('\n'), - propsList.join('\n'), - methodList.join('\n') - ) - confGlobal = null - return script -} - -function buildAttributes(el, dataList, ruleList, optionsList, methodList, propsList, uploadVarList) { - buildData(el, dataList) - buildRules(el, ruleList) - - if (el.options && el.options.length) { - buildOptions(el, optionsList) - if (el.dataType === 'dynamic') { - const model = `${el.vModel}Options` - const options = titleCase(model) - buildOptionMethod(`get${options}`, model, methodList) - } - } - - if (el.props && el.props.props) { - buildProps(el, propsList) - } - - if (el.action && el.tag === 'el-upload') { - uploadVarList.push( - `${el.vModel}Action: '${el.action}', - ${el.vModel}fileList: [],` - ) - methodList.push(buildBeforeUpload(el)) - if (!el['auto-upload']) { - methodList.push(buildSubmitUpload(el)) - } - } - - if (el.children) { - el.children.forEach(el2 => { - buildAttributes(el2, dataList, ruleList, optionsList, methodList, propsList, uploadVarList) - }) - } -} - -function mixinMethod(type) { - const list = []; const - minxins = { - file: confGlobal.formBtns ? { - submitForm: `submitForm() { - this.$refs['${confGlobal.formRef}'].validate(valid => { - if(!valid) return - // TODO 鎻愪氦琛ㄥ崟 - }) - },`, - resetForm: `resetForm() { - this.$refs['${confGlobal.formRef}'].resetFields() - },` - } : null, - dialog: { - onOpen: 'onOpen() {},', - onClose: `onClose() { - this.$refs['${confGlobal.formRef}'].resetFields() - },`, - close: `close() { - this.$emit('update:visible', false) - },`, - handelConfirm: `handelConfirm() { - this.$refs['${confGlobal.formRef}'].validate(valid => { - if(!valid) return - this.close() - }) - },` - } - } - - const methods = minxins[type] - if (methods) { - Object.keys(methods).forEach(key => { - list.push(methods[key]) - }) - } - - return list -} - -function buildData(conf, dataList) { - if (conf.vModel === undefined) return - let defaultValue - if (typeof (conf.defaultValue) === 'string' && !conf.multiple) { - defaultValue = `'${conf.defaultValue}'` - } else { - defaultValue = `${JSON.stringify(conf.defaultValue)}` - } - dataList.push(`${conf.vModel}: ${defaultValue},`) -} - -function buildRules(conf, ruleList) { - if (conf.vModel === undefined) return - const rules = [] - if (trigger[conf.tag]) { - if (conf.required) { - const type = isArray(conf.defaultValue) ? 'type: \'array\',' : '' - let message = isArray(conf.defaultValue) ? `璇疯嚦灏戦夋嫨涓涓${conf.vModel}` : conf.placeholder - if (message === undefined) message = `${conf.label}涓嶈兘涓虹┖` - rules.push(`{ required: true, ${type} message: '${message}', trigger: '${trigger[conf.tag]}' }`) - } - if (conf.regList && isArray(conf.regList)) { - conf.regList.forEach(item => { - if (item.pattern) { - rules.push(`{ pattern: ${eval(item.pattern)}, message: '${item.message}', trigger: '${trigger[conf.tag]}' }`) - } - }) - } - ruleList.push(`${conf.vModel}: [${rules.join(',')}],`) - } -} - -function buildOptions(conf, optionsList) { - if (conf.vModel === undefined) return - if (conf.dataType === 'dynamic') { conf.options = [] } - const str = `${conf.vModel}Options: ${JSON.stringify(conf.options)},` - optionsList.push(str) -} - -function buildProps(conf, propsList) { - if (conf.dataType === 'dynamic') { - conf.valueKey !== 'value' && (conf.props.props.value = conf.valueKey) - conf.labelKey !== 'label' && (conf.props.props.label = conf.labelKey) - conf.childrenKey !== 'children' && (conf.props.props.children = conf.childrenKey) - } - const str = `${conf.vModel}Props: ${JSON.stringify(conf.props.props)},` - propsList.push(str) -} - -function buildBeforeUpload(conf) { - const unitNum = units[conf.sizeUnit]; let rightSizeCode = ''; let acceptCode = ''; const - returnList = [] - if (conf.fileSize) { - rightSizeCode = `let isRightSize = file.size / ${unitNum} < ${conf.fileSize} - if(!isRightSize){ - this.$message.error('鏂囦欢澶у皬瓒呰繃 ${conf.fileSize}${conf.sizeUnit}') - }` - returnList.push('isRightSize') - } - if (conf.accept) { - acceptCode = `let isAccept = new RegExp('${conf.accept}').test(file.type) - if(!isAccept){ - this.$message.error('搴旇閫夋嫨${conf.accept}绫诲瀷鐨勬枃浠') - }` - returnList.push('isAccept') - } - const str = `${conf.vModel}BeforeUpload(file) { - ${rightSizeCode} - ${acceptCode} - return ${returnList.join('&&')} - },` - return returnList.length ? str : '' -} - -function buildSubmitUpload(conf) { - const str = `submitUpload() { - this.$refs['${conf.vModel}'].submit() - },` - return str -} - -function buildOptionMethod(methodName, model, methodList) { - const str = `${methodName}() { - // TODO 鍙戣捣璇锋眰鑾峰彇鏁版嵁 - this.${model} - },` - methodList.push(str) -} - -function buildexport(conf, type, data, rules, selectOptions, uploadVar, props, methods) { - const str = `${exportDefault}{ - ${inheritAttrs[type]} - components: {}, - props: [], - data () { - return { - ${conf.formModel}: { - ${data} - }, - ${conf.formRules}: { - ${rules} - }, - ${uploadVar} - ${selectOptions} - ${props} - } - }, - computed: {}, - watch: {}, - created () {}, - mounted () {}, - methods: { - ${methods} - } -}` - return str -} diff --git a/ZR.Vue/src/utils/generator/render.js b/ZR.Vue/src/utils/generator/render.js deleted file mode 100644 index e8640f0a..00000000 --- a/ZR.Vue/src/utils/generator/render.js +++ /dev/null @@ -1,126 +0,0 @@ -import { makeMap } from '@/utils/index' - -// 鍙傝僪ttps://github.com/vuejs/vue/blob/v2.6.10/src/platforms/web/server/util.js -const isAttr = makeMap( - 'accept,accept-charset,accesskey,action,align,alt,async,autocomplete,' - + 'autofocus,autoplay,autosave,bgcolor,border,buffered,challenge,charset,' - + 'checked,cite,class,code,codebase,color,cols,colspan,content,http-equiv,' - + 'name,contenteditable,contextmenu,controls,coords,data,datetime,default,' - + 'defer,dir,dirname,disabled,download,draggable,dropzone,enctype,method,for,' - + 'form,formaction,headers,height,hidden,high,href,hreflang,http-equiv,' - + 'icon,id,ismap,itemprop,keytype,kind,label,lang,language,list,loop,low,' - + 'manifest,max,maxlength,media,method,GET,POST,min,multiple,email,file,' - + 'muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,' - + 'preload,radiogroup,readonly,rel,required,reversed,rows,rowspan,sandbox,' - + 'scope,scoped,seamless,selected,shape,size,type,text,password,sizes,span,' - + 'spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,' - + 'target,title,type,usemap,value,width,wrap' -) - -function vModel(self, dataObject, defaultValue) { - dataObject.props.value = defaultValue - - dataObject.on.input = val => { - self.$emit('input', val) - } -} - -const componentChild = { - 'el-button': { - default(h, conf, key) { - return conf[key] - }, - }, - 'el-input': { - prepend(h, conf, key) { - return - }, - append(h, conf, key) { - return - } - }, - 'el-select': { - options(h, conf, key) { - const list = [] - conf.options.forEach(item => { - list.push() - }) - return list - } - }, - 'el-radio-group': { - options(h, conf, key) { - const list = [] - conf.options.forEach(item => { - if (conf.optionType === 'button') list.push({item.label}) - else list.push({item.label}) - }) - return list - } - }, - 'el-checkbox-group': { - options(h, conf, key) { - const list = [] - conf.options.forEach(item => { - if (conf.optionType === 'button') { - list.push({item.label}) - } else { - list.push({item.label}) - } - }) - return list - } - }, - 'el-upload': { - 'list-type': (h, conf, key) => { - const list = [] - if (conf['list-type'] === 'picture-card') { - list.push() - } else { - list.push({conf.buttonText}) - } - if (conf.showTip) { - list.push(
鍙兘涓婁紶涓嶈秴杩 {conf.fileSize}{conf.sizeUnit} 鐨剓conf.accept}鏂囦欢
) - } - return list - } - } -} - -export default { - render(h) { - const dataObject = { - attrs: {}, - props: {}, - on: {}, - style: {} - } - const confClone = JSON.parse(JSON.stringify(this.conf)) - const children = [] - - const childObjs = componentChild[confClone.tag] - if (childObjs) { - Object.keys(childObjs).forEach(key => { - const childFunc = childObjs[key] - if (confClone[key]) { - children.push(childFunc(h, confClone, key)) - } - }) - } - - Object.keys(confClone).forEach(key => { - const val = confClone[key] - if (key === 'vModel') { - vModel(this, dataObject, confClone.defaultValue) - } else if (dataObject[key]) { - dataObject[key] = val - } else if (!isAttr(key)) { - dataObject.props[key] = val - } else { - dataObject.attrs[key] = val - } - }) - return h(this.conf.tag, dataObject, children) - }, - props: ['conf'] -} diff --git a/ZR.Vue/src/utils/index.js b/ZR.Vue/src/utils/index.js deleted file mode 100644 index 4e65504c..00000000 --- a/ZR.Vue/src/utils/index.js +++ /dev/null @@ -1,390 +0,0 @@ -import { parseTime } from './ruoyi' - -/** - * 琛ㄦ牸鏃堕棿鏍煎紡鍖 - */ -export function formatDate(cellValue) { - if (cellValue == null || cellValue == "") return ""; - var date = new Date(cellValue) - var year = date.getFullYear() - var month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1 - var day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate() - var hours = date.getHours() < 10 ? '0' + date.getHours() : date.getHours() - var minutes = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes() - var seconds = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds() - return year + '-' + month + '-' + day + ' ' + hours + ':' + minutes + ':' + seconds -} - -/** - * @param {number} time - * @param {string} option - * @returns {string} - */ -export function formatTime(time, option) { - if (('' + time).length === 10) { - time = parseInt(time) * 1000 - } else { - time = +time - } - const d = new Date(time) - const now = Date.now() - - const diff = (now - d) / 1000 - - if (diff < 30) { - return '鍒氬垰' - } else if (diff < 3600) { - // less 1 hour - return Math.ceil(diff / 60) + '鍒嗛挓鍓' - } else if (diff < 3600 * 24) { - return Math.ceil(diff / 3600) + '灏忔椂鍓' - } else if (diff < 3600 * 24 * 2) { - return '1澶╁墠' - } - if (option) { - return parseTime(time, option) - } else { - return ( - d.getMonth() + - 1 + - '鏈' + - d.getDate() + - '鏃' + - d.getHours() + - '鏃' + - d.getMinutes() + - '鍒' - ) - } -} - -/** - * @param {string} url - * @returns {Object} - */ -export function getQueryObject(url) { - url = url == null ? window.location.href : url - const search = url.substring(url.lastIndexOf('?') + 1) - const obj = {} - const reg = /([^?&=]+)=([^?&=]*)/g - search.replace(reg, (rs, $1, $2) => { - const name = decodeURIComponent($1) - let val = decodeURIComponent($2) - val = String(val) - obj[name] = val - return rs - }) - return obj -} - -/** - * @param {string} input value - * @returns {number} output value - */ -export function byteLength(str) { - // returns the byte length of an utf8 string - let s = str.length - for (var i = str.length - 1; i >= 0; i--) { - const code = str.charCodeAt(i) - if (code > 0x7f && code <= 0x7ff) s++ - else if (code > 0x7ff && code <= 0xffff) s += 2 - if (code >= 0xDC00 && code <= 0xDFFF) i-- - } - return s -} - -/** - * @param {Array} actual - * @returns {Array} - */ -export function cleanArray(actual) { - const newArray = [] - for (let i = 0; i < actual.length; i++) { - if (actual[i]) { - newArray.push(actual[i]) - } - } - return newArray -} - -/** - * @param {Object} json - * @returns {Array} - */ -export function param(json) { - if (!json) return '' - return cleanArray( - Object.keys(json).map(key => { - if (json[key] === undefined) return '' - return encodeURIComponent(key) + '=' + encodeURIComponent(json[key]) - }) - ).join('&') -} - -/** - * @param {string} url - * @returns {Object} - */ -export function param2Obj(url) { - const search = decodeURIComponent(url.split('?')[1]).replace(/\+/g, ' ') - if (!search) { - return {} - } - const obj = {} - const searchArr = search.split('&') - searchArr.forEach(v => { - const index = v.indexOf('=') - if (index !== -1) { - const name = v.substring(0, index) - const val = v.substring(index + 1, v.length) - obj[name] = val - } - }) - return obj -} - -/** - * @param {string} val - * @returns {string} - */ -export function html2Text(val) { - const div = document.createElement('div') - div.innerHTML = val - return div.textContent || div.innerText -} - -/** - * Merges two objects, giving the last one precedence - * @param {Object} target - * @param {(Object|Array)} source - * @returns {Object} - */ -export function objectMerge(target, source) { - if (typeof target !== 'object') { - target = {} - } - if (Array.isArray(source)) { - return source.slice() - } - Object.keys(source).forEach(property => { - const sourceProperty = source[property] - if (typeof sourceProperty === 'object') { - target[property] = objectMerge(target[property], sourceProperty) - } else { - target[property] = sourceProperty - } - }) - return target -} - -/** - * @param {HTMLElement} element - * @param {string} className - */ -export function toggleClass(element, className) { - if (!element || !className) { - return - } - let classString = element.className - const nameIndex = classString.indexOf(className) - if (nameIndex === -1) { - classString += '' + className - } else { - classString = - classString.substr(0, nameIndex) + - classString.substr(nameIndex + className.length) - } - element.className = classString -} - -/** - * @param {string} type - * @returns {Date} - */ -export function getTime(type) { - if (type === 'start') { - return new Date().getTime() - 3600 * 1000 * 24 * 90 - } else { - return new Date(new Date().toDateString()) - } -} - -/** - * @param {Function} func - * @param {number} wait - * @param {boolean} immediate - * @return {*} - */ -export function debounce(func, wait, immediate) { - let timeout, args, context, timestamp, result - - const later = function() { - // 鎹笂涓娆¤Е鍙戞椂闂撮棿闅 - const last = +new Date() - timestamp - - // 涓婃琚寘瑁呭嚱鏁拌璋冪敤鏃堕棿闂撮殧 last 灏忎簬璁惧畾鏃堕棿闂撮殧 wait - if (last < wait && last > 0) { - timeout = setTimeout(later, wait - last) - } else { - timeout = null - // 濡傛灉璁惧畾涓篿mmediate===true锛屽洜涓哄紑濮嬭竟鐣屽凡缁忚皟鐢ㄨ繃浜嗘澶勬棤闇璋冪敤 - if (!immediate) { - result = func.apply(context, args) - if (!timeout) context = args = null - } - } - } - - return function(...args) { - context = this - timestamp = +new Date() - const callNow = immediate && !timeout - // 濡傛灉寤舵椂涓嶅瓨鍦紝閲嶆柊璁惧畾寤舵椂 - if (!timeout) timeout = setTimeout(later, wait) - if (callNow) { - result = func.apply(context, args) - context = args = null - } - - return result - } -} - -/** - * This is just a simple version of deep copy - * Has a lot of edge cases bug - * If you want to use a perfect deep copy, use lodash's _.cloneDeep - * @param {Object} source - * @returns {Object} - */ -export function deepClone(source) { - if (!source && typeof source !== 'object') { - throw new Error('error arguments', 'deepClone') - } - const targetObj = source.constructor === Array ? [] : {} - Object.keys(source).forEach(keys => { - if (source[keys] && typeof source[keys] === 'object') { - targetObj[keys] = deepClone(source[keys]) - } else { - targetObj[keys] = source[keys] - } - }) - return targetObj -} - -/** - * @param {Array} arr - * @returns {Array} - */ -export function uniqueArr(arr) { - return Array.from(new Set(arr)) -} - -/** - * @returns {string} - */ -export function createUniqueString() { - const timestamp = +new Date() + '' - const randomNum = parseInt((1 + Math.random()) * 65536) + '' - return (+(randomNum + timestamp)).toString(32) -} - -/** - * Check if an element has a class - * @param {HTMLElement} elm - * @param {string} cls - * @returns {boolean} - */ -export function hasClass(ele, cls) { - return !!ele.className.match(new RegExp('(\\s|^)' + cls + '(\\s|$)')) -} - -/** - * Add class to element - * @param {HTMLElement} elm - * @param {string} cls - */ -export function addClass(ele, cls) { - if (!hasClass(ele, cls)) ele.className += ' ' + cls -} - -/** - * Remove class from element - * @param {HTMLElement} elm - * @param {string} cls - */ -export function removeClass(ele, cls) { - if (hasClass(ele, cls)) { - const reg = new RegExp('(\\s|^)' + cls + '(\\s|$)') - ele.className = ele.className.replace(reg, ' ') - } -} - -export function makeMap(str, expectsLowerCase) { - const map = Object.create(null) - const list = str.split(',') - for (let i = 0; i < list.length; i++) { - map[list[i]] = true - } - return expectsLowerCase - ? val => map[val.toLowerCase()] - : val => map[val] -} - -export const exportDefault = 'export default ' - -export const beautifierConf = { - html: { - indent_size: '2', - indent_char: ' ', - max_preserve_newlines: '-1', - preserve_newlines: false, - keep_array_indentation: false, - break_chained_methods: false, - indent_scripts: 'separate', - brace_style: 'end-expand', - space_before_conditional: true, - unescape_strings: false, - jslint_happy: false, - end_with_newline: true, - wrap_line_length: '110', - indent_inner_html: true, - comma_first: false, - e4x: true, - indent_empty_lines: true - }, - js: { - indent_size: '2', - indent_char: ' ', - max_preserve_newlines: '-1', - preserve_newlines: false, - keep_array_indentation: false, - break_chained_methods: false, - indent_scripts: 'normal', - brace_style: 'end-expand', - space_before_conditional: true, - unescape_strings: false, - jslint_happy: true, - end_with_newline: true, - wrap_line_length: '110', - indent_inner_html: true, - comma_first: false, - e4x: true, - indent_empty_lines: true - } -} - -// 棣栧瓧姣嶅ぇ灏 -export function titleCase(str) { - return str.replace(/( |^)[a-z]/g, L => L.toUpperCase()) -} - -// 涓嬪垝杞┘宄 -export function camelCase(str) { - return str.replace(/_[a-z]/g, str1 => str1.substr(-1).toUpperCase()) -} - -export function isNumberStr(str) { - return /^[+-]?(0|([1-9]\d*))(\.\d+)?$/g.test(str) -} - diff --git a/ZR.Vue/src/utils/jsencrypt.js b/ZR.Vue/src/utils/jsencrypt.js deleted file mode 100644 index d8ce5cda..00000000 --- a/ZR.Vue/src/utils/jsencrypt.js +++ /dev/null @@ -1,23 +0,0 @@ -import JSEncrypt from 'jsencrypt/bin/jsencrypt.min' - -// 瀵嗛挜瀵圭敓鎴 http://web.chacuo.net/netrsakeypair - -const publicKey = 'MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALj0zjON+EVdBsnMcR4Uj+jOYgp5ZipftQZ1utW8KvVioz+RSaotF1JHt59q9SC/mZcWWpbpcEqQ3WyyyCC33msCAwEAAQ==' - -const privateKey = - 'MIIBVAIBADANBgkqhkiG9w0BAQEFAASCAT4wggE6AgEAAkEAuPTOM434RV0GycxxHhSP6M5iCnlmKl+1BnW61bwq9WKjP5FJqi0XUke3n2r1IL+ZlxZalulwSpDdbLLIILfeawIDAQABAkB5PYAtq1KjpWddwPYlkbUEFsWNuCaQgExZ/7KJiN9gGjo/UfUZ3W39Orb8PITIYf1NbasReqgddAcsfJNyoDWBAiEA7K89DyTmbjNSmekdD3rejRDdMzzXYtcbo69ZjHoowMUCIQDIDN8eg6PcWk4kiRcRYcNEfriUJR7Fg07ellSPv821bwIhAJA5TEyxIJUgQwI0cZfgOELfdtrlBR5ek6IPlNKsEa89AiBbMVroexPQWC41A3VLjChKagXUKpO7b98dIqRLnyCz6wIgP3qpvnO4IOxY7f5XarfCVyIHZJAMt/R1f16P5OkKv+A=' - -// 鍔犲瘑 -export function encrypt(txt) { - const encryptor = new JSEncrypt() - encryptor.setPublicKey(publicKey) // 璁剧疆鍏挜 - return encryptor.encrypt(txt) // 瀵规暟鎹繘琛屽姞瀵 -} - -// 瑙e瘑 -export function decrypt(txt) { - const encryptor = new JSEncrypt() - encryptor.setPrivateKey(privateKey) // 璁剧疆绉侀挜 - return encryptor.decrypt(txt) // 瀵规暟鎹繘琛岃В瀵 -} - diff --git a/ZR.Vue/src/utils/permission.js b/ZR.Vue/src/utils/permission.js deleted file mode 100644 index ceca18fb..00000000 --- a/ZR.Vue/src/utils/permission.js +++ /dev/null @@ -1,49 +0,0 @@ -import store from '@/store' - -/** - * 瀛楃鏉冮檺鏍¢獙 - * @param {Array} value 鏍¢獙鍊 - * @returns {Boolean} - */ -export function checkPermi(value) { - if (value && value instanceof Array && value.length > 0) { - const permissions = store.getters && store.getters.permissions - const permissionDatas = value - - const hasPermission = permissions.some(permission => { - return permissionDatas.includes(permission) - }) - - if (!hasPermission) { - return false - } - return true - } else { - console.error(`need roles! Like checkPermi="['system:user:add','system:user:edit']"`) - return false - } -} - -/** - * 瑙掕壊鏉冮檺鏍¢獙 - * @param {Array} value 鏍¢獙鍊 - * @returns {Boolean} - */ -export function checkRole(value) { - if (value && value instanceof Array && value.length > 0) { - const roles = store.getters && store.getters.roles - const permissionRoles = value - - const hasRole = roles.some(role => { - return permissionRoles.includes(role) - }) - - if (!hasRole) { - return false - } - return true - } else { - console.error(`need roles! Like checkRole="['admin','editor']"`) - return false - } -} \ No newline at end of file diff --git a/ZR.Vue/src/utils/request.js b/ZR.Vue/src/utils/request.js deleted file mode 100644 index 9feebbe9..00000000 --- a/ZR.Vue/src/utils/request.js +++ /dev/null @@ -1,189 +0,0 @@ -import axios from 'axios' -import { MessageBox, Message, Loading } from 'element-ui' -import store from '@/store' -import { getToken } from '@/utils/auth' -import { blobValidate } from '@/utils/ruoyi' -import errorCode from '@/utils/errorCode' -import { saveAs } from 'file-saver' - -let downloadLoadingInstance -// 瑙e喅鍚庣璺ㄥ煙鑾峰彇涓嶅埌cookie闂 -axios.defaults.withCredentials = true -axios.defaults.headers['Content-Type'] = 'application/json' -// 鍒涘缓axios瀹炰緥 -const service = axios.create({ - // axios涓姹傞厤缃湁baseURL閫夐」锛岃〃绀鸿姹俇RL鍏叡閮ㄥ垎 - baseURL: process.env.VUE_APP_BASE_API, - // 瓒呮椂 - timeout: 30000, -}) - -// request鎷︽埅鍣 -service.interceptors.request.use( - (config) => { - // 鏄惁闇瑕佽缃 token - if (getToken()) { - //灏唗oken鏀惧埌璇锋眰澶村彂閫佺粰鏈嶅姟鍣,灏唗okenkey鏀惧湪璇锋眰澶翠腑 - config.headers['Authorization'] = 'Bearer ' + getToken() - config.headers['userid'] = store.getters.userId - } else { - // console.log(config) - } - return config - }, - (error) => { - console.log(error) - Promise.reject(error) - }, -) - -// 鍝嶅簲鎷︽埅鍣 -service.interceptors.response.use( - (res) => { - if (res.status !== 200) { - Promise.reject('network error') - return - } - // 鏈缃姸鎬佺爜鍒欓粯璁ゆ垚鍔熺姸鎬 - const { code, msg } = res.data - // 浜岃繘鍒舵暟鎹垯鐩存帴杩斿洖 - if (res.request.responseType === 'blob' || res.request.responseType === 'arraybuffer') { - return res - } - if (code == 401) { - MessageBox.confirm('鐧诲綍鐘舵佸凡杩囨湡锛岃閲嶆柊鐧诲綍', '绯荤粺鎻愮ず', { - confirmButtonText: '閲嶆柊鐧诲綍', - cancelButtonText: '鍙栨秷', - type: 'warning', - }).then(() => { - store.dispatch('LogOut').then(() => { - location.href = process.env.VUE_APP_ROUTER_PREFIX + 'index' - }) - }) - - return Promise.reject('鏃犳晥鐨勪細璇濓紝鎴栬呬細璇濆凡杩囨湡锛岃閲嶆柊鐧诲綍銆') - } else if (code == 0 || code == 1 || code == 110 || code == 101 || code == 403 || code == 500 || code == 429) { - Message({ - message: msg, - type: 'error', - }) - return Promise.reject(res.data) - } else if (code == 210) { - this.$notify.error('鏂板澶辫触锛坣ull锛,鑱旂郴鎶鏈汉鍛') - } else { - //杩斿洖鏍囧噯 code/msg/data瀛楁 - return res.data - } - }, - (error) => { - console.log('err' + error) - let { message } = error - if (message == 'Network Error') { - message = '鍚庣鎺ュ彛杩炴帴寮傚父' - } else if (message.includes('timeout')) { - message = '绯荤粺鎺ュ彛璇锋眰瓒呮椂' - } else if (message.includes('Request failed with status code 429')) { - message = '璇锋眰杩囦簬棰戠箒锛岃绋嶅悗鍐嶈瘯' - } else if (message.includes('Request failed with status code')) { - message = '绯荤粺鎺ュ彛' + message.substr(message.length - 3) + '寮傚父' - } - Message({ - message: message, - type: 'error', - duration: 5 * 1000, - }) - return Promise.reject(error) - }, -) - -/** - * get鏂规硶锛屽搴攇et璇锋眰 - * @param {String} url [璇锋眰鐨剈rl鍦板潃] - * @param {Object} params [璇锋眰鏃舵惡甯︾殑鍙傛暟] - */ -export function get(url, params) { - return new Promise((resolve, reject) => { - axios - .get(url, { - params: params, - }) - .then((res) => { - resolve(res.data) - }) - .catch((err) => { - reject(err) - }) - }) -} - -export function post(url, params) { - return new Promise((resolve, reject) => { - axios - .post(url, { - params: params, - }) - .then((res) => { - resolve(res.data) - }) - .catch((err) => { - reject(err) - }) - }) -} - -/** - * 鎻愪氦琛ㄥ崟 - * @param {*} url - * @param {*} data - */ -export function postForm(url, data, config) { - return new Promise((resolve, reject) => { - axios - .post(url, data, config) - .then((res) => { - resolve(res.data) - }) - .catch((err) => { - reject(err) - }) - }) -} - -// 閫氱敤涓嬭浇鏂规硶 -export async function downFile(url, params, config) { - downloadLoadingInstance = Loading.service({ text: '姝e湪涓嬭浇鏁版嵁锛岃绋嶅', spinner: 'el-icon-loading', background: 'rgba(0, 0, 0, 0.7)' }) - return service - .get(url, { - params, - headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, - responseType: 'blob', - ...config, - }) - .then(async (resp) => { - const { data } = resp - - const isLogin = await blobValidate(data) - if (isLogin) { - var patt = new RegExp('filename=([^;]+\\.[^\\.;]+);*') - var contentDisposition = decodeURI(resp.headers['content-disposition']) - var result = patt.exec(contentDisposition) - var fileName = result[1] - fileName = fileName.replace(/\"/g, '') - const blob = new Blob([data]) - saveAs(blob, fileName) - } else { - const resText = await data.text() - const rspObj = JSON.parse(resText) - const errMsg = errorCode[rspObj.code] || rspObj.msg || errorCode['default'] - Message.error(errMsg) - } - downloadLoadingInstance.close() - }) - .catch((r) => { - console.error(r) - Message.error('涓嬭浇鏂囦欢鍑虹幇閿欒锛岃鑱旂郴绠$悊鍛橈紒') - downloadLoadingInstance.close() - }) -} - -export default service diff --git a/ZR.Vue/src/utils/ruoyi.js b/ZR.Vue/src/utils/ruoyi.js deleted file mode 100644 index 1b85a090..00000000 --- a/ZR.Vue/src/utils/ruoyi.js +++ /dev/null @@ -1,250 +0,0 @@ -锘/** - * 閫氱敤js鏂规硶灏佽澶勭悊 - * - */ - -const baseURL = process.env.VUE_APP_BASE_API - -// 鏃ユ湡鏍煎紡鍖 -export function parseTime(time, pattern) { - if (arguments.length === 0 || !time) { - return null - } - const format = pattern || '{y}-{m}-{d} {h}:{i}:{s}' - let date - if (typeof time === 'object') { - date = time - } else { - if ((typeof time === 'string') && (/^[0-9]+$/.test(time))) { - time = parseInt(time) - } else if (typeof time === 'string') { - time = time.replace(new RegExp(/-/gm), '/'); - } - if ((typeof time === 'number') && (time.toString().length === 10)) { - time = time * 1000 - } - date = new Date(time) - } - const formatObj = { - y: date.getFullYear(), - m: date.getMonth() + 1, - d: date.getDate(), - h: date.getHours(), - i: date.getMinutes(), - s: date.getSeconds(), - a: date.getDay() - } - const time_str = format.replace(/{(y|m|d|h|i|s|a)+}/g, (result, key) => { - let value = formatObj[key] - // Note: getDay() returns 0 on Sunday - if (key === 'a') { return ['鏃', '涓', '浜', '涓', '鍥', '浜', '鍏'][value] } - if (result.length > 0 && value < 10) { - value = '0' + value - } - return value || 0 - }) - return time_str -} - -// 琛ㄥ崟閲嶇疆 -export function resetForm(refName) { - if (this.$refs[refName]) { - this.$refs[refName].resetFields(); - } -} - -/** - * 娣诲姞鏃ユ湡鑼冨洿 - * @param { beginTime: '', endTime: '', page: 1} params - * @param {*} dateRange 鏃ユ湡鑼冨洿鏁扮粍 - * @param {*} propName C#灞炴у悕棣栧瓧姣嶅ぇ鍐 - * @returns - */ -// 娣诲姞鏃ユ湡鑼冨洿 -export function addDateRange(params, dateRange, propName) { - let search = params; - search = typeof (search) === 'object' && search !== null && !Array.isArray(search) ? search : {}; - dateRange = Array.isArray(dateRange) ? dateRange : []; - if (typeof (propName) === 'undefined') { - search['beginTime'] = dateRange[0]; - search['endTime'] = dateRange[1]; - } else { - search['begin' + propName] = dateRange[0]; - search['end' + propName] = dateRange[1]; - } - return search; -} - -export function addDateRange2(dateRange, index) { - var time = undefined; - if (null != dateRange && '' != dateRange) { - if (dateRange.length <= 2) { - time = dateRange[index]; - } - } - return time; -} - -// 鍥炴樉鏁版嵁瀛楀吀 -export function selectDictLabel(datas, value) { - if (value === undefined) { - return ""; - } - var actions = []; - Object.keys(datas).some((key) => { - if (datas[key].dictValue == ('' + value)) { - actions.push(datas[key].dictLabel); - return true; - } - }) - if (actions.length === 0) { - actions.push(value); - } - return actions.join(''); -} - -// 鍥炴樉鏁版嵁瀛楀吀锛堝瓧绗︿覆鏁扮粍锛 -export function selectDictLabels(datas, value, separator) { - if (value === undefined) { - return ""; - } - var actions = []; - var currentSeparator = undefined === separator ? "," : separator; - var temp = value.split(currentSeparator); - Object.keys(value.split(currentSeparator)).some((val) => { - var match = false; - Object.keys(datas).some((key) => { - if (datas[key].value == ('' + temp[val])) { - actions.push(datas[key].label + currentSeparator); - match = true; - } - }) - if (!match) { - actions.push(temp[val] + currentSeparator); - } - }) - return actions.join('').substring(0, actions.join('').length - 1); -} - -// table鏄惁鏄剧ず褰撳墠鍒 -export function showColumn(columns, value) { - columns.filter((item, index) => { - // console.log(item); - return item.key == value; - }); -} - -// 閫氱敤涓嬭浇鏂规硶 -export function download(url, fileName) { - // window.location.href = baseURL + "/common/download?fileName=" + encodeURI(fileName) + "&delete=" + true; - // window.open(baseURL + "/common/download?fileName=" + encodeURI(fileName) + "&delete=" + true) - window.open(baseURL + url) -} - -// 瀛楃涓叉牸寮忓寲(%s ) -export function sprintf(str) { - var args = arguments, - flag = true, - i = 1; - str = str.replace(/%s/g, function () { - var arg = args[i++]; - if (typeof arg === 'undefined') { - flag = false; - return ''; - } - return arg; - }); - return flag ? str : ''; -} - -// 杞崲瀛楃涓诧紝undefined,null绛夎浆鍖栦负"" -export function praseStrEmpty(str) { - if (!str || str == "undefined" || str == "null") { - return ""; - } - return str; -} -export function praseStrZero(str) { - if (!str || str == "undefined" || str == "null") { - console.log('zero') - return 0; - } - return str; -} -/** - * 鏋勯犳爲鍨嬬粨鏋勬暟鎹 - * @param {*} data 鏁版嵁婧 - * @param {*} id id瀛楁 榛樿 'id' - * @param {*} parentId 鐖惰妭鐐瑰瓧娈 榛樿 'parentId' - * @param {*} children 瀛╁瓙鑺傜偣瀛楁 榛樿 'children' - * @param {*} rootId 鏍笽d 榛樿 0 - */ -export function handleTree(data, id, parentId, children, rootId) { - id = id || 'id' - parentId = parentId || 'parentId' - children = children || 'children' - rootId = rootId || Math.min.apply(Math, data.map(item => { return item[parentId] })) || 0 - //瀵规簮鏁版嵁娣卞害鍏嬮殕 - const cloneData = JSON.parse(JSON.stringify(data)) - //寰幆鎵鏈夐」 - const treeData = cloneData.filter(father => { - let branchArr = cloneData.filter(child => { - //杩斿洖姣忎竴椤圭殑瀛愮骇鏁扮粍 - return father[id] === child[parentId] - }); - branchArr.length > 0 ? father.children = branchArr : ''; - //杩斿洖绗竴灞 - return father[parentId] === rootId; - }); - return treeData != '' ? treeData : data; -} - -/** - * 鏋勯犺嚜瀹氫箟瀛楀吀鏁版嵁 - * @param {*} data 鏁版嵁婧 - * @param {*} lableId id瀛楁 榛樿 'lableId' - * @param {*} labelName 鍚嶇О 榛樿 'labelName' - */ -export function handleDict(data, lableId, labelName) { - lableId = lableId || 'id' - labelName = labelName || 'name' - //寰幆鎵鏈夐」 - var dictList = []; - if (!Array.isArray(data)) { - return []; - } - data.forEach((element) => { - dictList.push({ - dictLabel: element[labelName], - dictValue: element[lableId].toString(), - }); - }); - return dictList; -} - -// 楠岃瘉鏄惁涓篵lob鏍煎紡 -export async function blobValidate(data) { - try { - const text = await data.text(); - JSON.parse(text); - return false; - } catch (error) { - return true; - } -} - -// 鏁版嵁鍚堝苟 -export function mergeRecursive(source, target) { - for (var p in target) { - try { - if (target[p].constructor == Object) { - source[p] = mergeRecursive(source[p], target[p]); - } else { - source[p] = target[p]; - } - } catch (e) { - source[p] = target[p]; - } - } - return source; -}; \ No newline at end of file diff --git a/ZR.Vue/src/utils/scroll-to.js b/ZR.Vue/src/utils/scroll-to.js deleted file mode 100644 index c5d8e04e..00000000 --- a/ZR.Vue/src/utils/scroll-to.js +++ /dev/null @@ -1,58 +0,0 @@ -Math.easeInOutQuad = function(t, b, c, d) { - t /= d / 2 - if (t < 1) { - return c / 2 * t * t + b - } - t-- - return -c / 2 * (t * (t - 2) - 1) + b -} - -// requestAnimationFrame for Smart Animating http://goo.gl/sx5sts -var requestAnimFrame = (function() { - return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function(callback) { window.setTimeout(callback, 1000 / 60) } -})() - -/** - * Because it's so fucking difficult to detect the scrolling element, just move them all - * @param {number} amount - */ -function move(amount) { - document.documentElement.scrollTop = amount - document.body.parentNode.scrollTop = amount - document.body.scrollTop = amount -} - -function position() { - return document.documentElement.scrollTop || document.body.parentNode.scrollTop || document.body.scrollTop -} - -/** - * @param {number} to - * @param {number} duration - * @param {Function} callback - */ -export function scrollTo(to, duration, callback) { - const start = position() - const change = to - start - const increment = 20 - let currentTime = 0 - duration = (typeof (duration) === 'undefined') ? 500 : duration - var animateScroll = function() { - // increment the time - currentTime += increment - // find the value with the quadratic in-out easing function - var val = Math.easeInOutQuad(currentTime, start, change, duration) - // move the document.body - move(val) - // do the animation unless its over - if (currentTime < duration) { - requestAnimFrame(animateScroll) - } else { - if (callback && typeof (callback) === 'function') { - // the animation is done so lets callback - callback() - } - } - } - animateScroll() -} diff --git a/ZR.Vue/src/utils/signalR.js b/ZR.Vue/src/utils/signalR.js deleted file mode 100644 index 505e7be0..00000000 --- a/ZR.Vue/src/utils/signalR.js +++ /dev/null @@ -1,86 +0,0 @@ -// 瀹樻柟鏂囨。锛歨ttps://docs.microsoft.com/zh-cn/aspnet/core/signalr/javascript-client?view=aspnetcore-6.0&viewFallbackFrom=aspnetcore-2.2&tabs=visual-studio -import * as signalR from '@microsoft/signalr' -import store from '../store' -import { getToken } from '@/utils/auth' -import { Notification } from 'element-ui' - -export default { - // signalR瀵硅薄 - SR: {}, - // 澶辫触杩炴帴閲嶈瘯娆℃暟 - failNum: 4, - baseUrl: '', - init(url) { - const connection = new signalR.HubConnectionBuilder() - .withUrl(url, { accessTokenFactory: () => getToken() }) - .withAutomaticReconnect() //鑷姩閲嶆柊杩炴帴 - .configureLogging(signalR.LogLevel.Warning) - .build() - this.SR = connection - // 鏂嚎閲嶈繛 - connection.onclose(async () => { - console.log('鏂紑杩炴帴浜') - console.assert(connection.state === signalR.HubConnectionState.Disconnected) - // 寤鸿鐢ㄦ埛閲嶆柊鍒锋柊娴忚鍣 - await this.start() - }) - - connection.onreconnected(() => { - console.log('鏂嚎閲嶆柊杩炴帴鎴愬姛') - }) - this.receiveMsg(connection) - // 鍚姩 - // this.start(); - }, - /** - * 璋冪敤 this.signalR.start().then(async () => { await this.SR.invoke("method")}) - * @returns - */ - async start() { - var that = this - - try { - //浣跨敤async鍜宎wait 鎴 promise鐨則hen 鍜宑atch 澶勭悊鏉ヨ嚜鏈嶅姟绔殑寮傚父 - await this.SR.start() - //console.assert(this.SR.state === signalR.HubConnectionState.Connected); - console.log('signalR 杩炴帴鎴愬姛浜', this.SR.state) - return true - } catch (error) { - that.failNum-- - console.log(`澶辫触閲嶈瘯鍓╀綑娆℃暟${that.failNum}`, error) - if (that.failNum > 0) { - setTimeout(async () => { - await this.SR.start() - }, 5000) - } - return false - } - }, - // 鎺ユ敹娑堟伅澶勭悊 - receiveMsg(connection) { - connection.on('onlineNum', (data) => { - store.dispatch('socket/changeOnlineNum', data) - }) - // 鎺ユ敹娆㈣繋璇 - connection.on('welcome', (data) => { - console.log('welcome', data) - Notification.info(data) - }) - // 鎺ユ敹鍚庡彴鎵嬪姩鎺ㄩ佹秷鎭 - connection.on('receiveNotice', (title, data) => { - Notification({ - type: 'info', - title: title, - message: data, - dangerouslyUseHTMLString: true, - duration: 0, - }) - }) - // 鎺ユ敹绯荤粺閫氱煡/鍏憡 - connection.on('moreNotice', (data) => { - if (data.code == 200) { - store.dispatch('socket/getNoticeList', data.data) - } - }) - }, -} diff --git a/ZR.Vue/src/utils/validate.js b/ZR.Vue/src/utils/validate.js deleted file mode 100644 index adfa2542..00000000 --- a/ZR.Vue/src/utils/validate.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * @param {string} path - * @returns {Boolean} - */ -export function isExternal(path) { - return /^(https?:|mailto:|tel:)/.test(path) -} - -/** - * @param {string} str - * @returns {Boolean} - */ -export function validUsername(str) { - const valid_map = ['admin', 'editor'] - return valid_map.indexOf(str.trim()) >= 0 -} - -/** - * @param {string} url - * @returns {Boolean} - */ -export function validURL(url) { - const reg = /^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/ - return reg.test(url) -} - -/** - * @param {string} str - * @returns {Boolean} - */ -export function validLowerCase(str) { - const reg = /^[a-z]+$/ - return reg.test(str) -} - -/** - * @param {string} str - * @returns {Boolean} - */ -export function validUpperCase(str) { - const reg = /^[A-Z]+$/ - return reg.test(str) -} - -/** - * @param {string} str - * @returns {Boolean} - */ -export function validAlphabets(str) { - const reg = /^[A-Za-z]+$/ - return reg.test(str) -} - -/** - * @param {string} email - * @returns {Boolean} - */ -export function validEmail(email) { - const reg = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/ - return reg.test(email) -} - -/** - * @param {string} str - * @returns {Boolean} - */ -export function isString(str) { - if (typeof str === 'string' || str instanceof String) { - return true - } - return false -} - -/** - * @param {Array} arg - * @returns {Boolean} - */ -export function isArray(arg) { - if (typeof Array.isArray === 'undefined') { - return Object.prototype.toString.call(arg) === '[object Array]' - } - return Array.isArray(arg) -} diff --git a/ZR.Vue/src/utils/zipdownload.js b/ZR.Vue/src/utils/zipdownload.js deleted file mode 100644 index f8cf7644..00000000 --- a/ZR.Vue/src/utils/zipdownload.js +++ /dev/null @@ -1,92 +0,0 @@ -import axios from 'axios' -import request from '@/utils/request' -import { getToken } from '@/utils/auth' - -const mimeMap = { - xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', - zip: 'application/zip' -} - -const baseUrl = process.env.VUE_APP_BASE_API -export function downLoadZip(str, filename) { - var url = baseUrl + str - request({ - method: 'get', - url: str, - responseType: 'blob', - headers: { 'Authorization': 'Bearer ' + getToken() } - }).then(res => { - resolveBlob(res, mimeMap.zip) - }) -} -export function downLoadExcel(str, filename) { - var url = baseUrl + str - axios({ - method: 'get', - url: url, - responseType: 'blob', - headers: { 'Authorization': 'Bearer ' + getToken() } - }).then(res => { - resolveExcel(res, filename) - }) -} -/** - * 瑙f瀽blob鍝嶅簲鍐呭骞朵笅杞 - * @param {*} res blob鍝嶅簲鍐呭 - * @param {String} mimeType MIME绫诲瀷 - */ -export function resolveBlob(res, mimeType) { - const aLink = document.createElement('a') - var blob = new Blob([res.data], { type: mimeType }) - - // //浠巖esponse鐨刪eaders涓幏鍙杅ilename, 鍚庣response.setHeader("Content-disposition", "attachment; filename=xxxx.docx") 璁剧疆鐨勬枃浠跺悕; - var patt = new RegExp('filename=([^;]+\\.[^\\.;]+);*') - var contentDisposition = decodeURI(res.headers['Content-disposition']) - var result = patt.exec(contentDisposition) - var fileName = result[1] - fileName = fileName.replace(/\"/g, '') - aLink.href = URL.createObjectURL(blob) - aLink.setAttribute('download', fileName) // 璁剧疆涓嬭浇鏂囦欢鍚嶇О - document.body.appendChild(aLink) - aLink.click() - document.body.appendChild(aLink) -} -/** - * 瑙f瀽blob鍝嶅簲鍐呭骞朵笅杞 - * @param {*} res blob鍝嶅簲鍐呭 - * @param {String} fileName 鏂囦欢鍚 - */ -export function resolveExcel(res, fileName) { - const aLink = document.createElement('a') - var blob = new Blob([res.data], { type: 'application/vnd.ms-excel' }) - - fileName = fileName.replace(/\"/g, '') - aLink.href = URL.createObjectURL(blob) - aLink.setAttribute('download', fileName) // 璁剧疆涓嬭浇鏂囦欢鍚嶇О - document.body.appendChild(aLink) - aLink.click() - document.body.appendChild(aLink) - // 5.閲婃斁杩欎釜涓存椂鐨勫璞rl - // window.URL.revokeObjectURL(aLink.href); -} - -/** - * 涓嬭浇鏂囦欢璋冪敤 - * @param 鎺ュ彛杩斿洖鏁版嵁 鏂囦欢鍚 - */ - export function downloadFile(resUrl, fileName) { - if (!resUrl) { - return - } - // 鍒涘缓涓嬭浇閾炬帴 - const url = resUrl - const link = document.createElement('a') - link.style.display = 'none' - link.href = url - link.setAttribute('download', fileName)// 鏂囦欢鍚 - link.setAttribute('target', "_black") - document.body.appendChild(link) - link.click() - document.body.removeChild(link) // 涓嬭浇瀹屾垚绉婚櫎鍏冪礌 - window.URL.revokeObjectURL(url) // 閲婃斁鎺塨lob瀵硅薄 -} diff --git a/ZR.Vue/src/views/OperationManagement/assemblyWorkshop.vue b/ZR.Vue/src/views/OperationManagement/assemblyWorkshop.vue deleted file mode 100644 index 905cc87d..00000000 --- a/ZR.Vue/src/views/OperationManagement/assemblyWorkshop.vue +++ /dev/null @@ -1,208 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/views/OperationManagement/injectionWorkshop.vue b/ZR.Vue/src/views/OperationManagement/injectionWorkshop.vue deleted file mode 100644 index 85fadc3a..00000000 --- a/ZR.Vue/src/views/OperationManagement/injectionWorkshop.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - - \ No newline at end of file diff --git a/ZR.Vue/src/views/OperationManagement/paintingWorkshop.vue b/ZR.Vue/src/views/OperationManagement/paintingWorkshop.vue deleted file mode 100644 index 11dd4791..00000000 --- a/ZR.Vue/src/views/OperationManagement/paintingWorkshop.vue +++ /dev/null @@ -1,301 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/views/basisManagement/BOM.vue b/ZR.Vue/src/views/basisManagement/BOM.vue deleted file mode 100644 index ce90a4d7..00000000 --- a/ZR.Vue/src/views/basisManagement/BOM.vue +++ /dev/null @@ -1,355 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/views/basisManagement/devicestation.vue b/ZR.Vue/src/views/basisManagement/devicestation.vue deleted file mode 100644 index 2ab724c5..00000000 --- a/ZR.Vue/src/views/basisManagement/devicestation.vue +++ /dev/null @@ -1,298 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/views/basisManagement/productEfinition.vue b/ZR.Vue/src/views/basisManagement/productEfinition.vue deleted file mode 100644 index 78f664c6..00000000 --- a/ZR.Vue/src/views/basisManagement/productEfinition.vue +++ /dev/null @@ -1,486 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/views/basisManagement/sop.vue b/ZR.Vue/src/views/basisManagement/sop.vue deleted file mode 100644 index e69de29b..00000000 diff --git a/ZR.Vue/src/views/basisManagement/tray.vue b/ZR.Vue/src/views/basisManagement/tray.vue deleted file mode 100644 index e69de29b..00000000 diff --git a/ZR.Vue/src/views/basisManagement/unit.vue b/ZR.Vue/src/views/basisManagement/unit.vue deleted file mode 100644 index 48f9b2e1..00000000 --- a/ZR.Vue/src/views/basisManagement/unit.vue +++ /dev/null @@ -1,327 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/views/basisManagement/workUnitComponent/workshop.vue b/ZR.Vue/src/views/basisManagement/workUnitComponent/workshop.vue deleted file mode 100644 index 6d016fcf..00000000 --- a/ZR.Vue/src/views/basisManagement/workUnitComponent/workshop.vue +++ /dev/null @@ -1,284 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/views/basisManagement/workUnitComponent/workstation.vue b/ZR.Vue/src/views/basisManagement/workUnitComponent/workstation.vue deleted file mode 100644 index f4dee5f8..00000000 --- a/ZR.Vue/src/views/basisManagement/workUnitComponent/workstation.vue +++ /dev/null @@ -1,304 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/views/components/Echarts.vue b/ZR.Vue/src/views/components/Echarts.vue deleted file mode 100644 index e69a3cfa..00000000 --- a/ZR.Vue/src/views/components/Echarts.vue +++ /dev/null @@ -1,117 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/views/components/dictData.vue b/ZR.Vue/src/views/components/dictData.vue deleted file mode 100644 index 6fbd9709..00000000 --- a/ZR.Vue/src/views/components/dictData.vue +++ /dev/null @@ -1,363 +0,0 @@ - - diff --git a/ZR.Vue/src/views/components/icons/element-icons.js b/ZR.Vue/src/views/components/icons/element-icons.js deleted file mode 100644 index 9ea4d63f..00000000 --- a/ZR.Vue/src/views/components/icons/element-icons.js +++ /dev/null @@ -1,3 +0,0 @@ -const elementIcons = ['platform-eleme', 'eleme', 'delete-solid', 'delete', 's-tools', 'setting', 'user-solid', 'user', 'phone', 'phone-outline', 'more', 'more-outline', 'star-on', 'star-off', 's-goods', 'goods', 'warning', 'warning-outline', 'question', 'info', 'remove', 'circle-plus', 'success', 'error', 'zoom-in', 'zoom-out', 'remove-outline', 'circle-plus-outline', 'circle-check', 'circle-close', 's-help', 'help', 'minus', 'plus', 'check', 'close', 'picture', 'picture-outline', 'picture-outline-round', 'upload', 'upload2', 'download', 'camera-solid', 'camera', 'video-camera-solid', 'video-camera', 'message-solid', 'bell', 's-cooperation', 's-order', 's-platform', 's-fold', 's-unfold', 's-operation', 's-promotion', 's-home', 's-release', 's-ticket', 's-management', 's-open', 's-shop', 's-marketing', 's-flag', 's-comment', 's-finance', 's-claim', 's-custom', 's-opportunity', 's-data', 's-check', 's-grid', 'menu', 'share', 'd-caret', 'caret-left', 'caret-right', 'caret-bottom', 'caret-top', 'bottom-left', 'bottom-right', 'back', 'right', 'bottom', 'top', 'top-left', 'top-right', 'arrow-left', 'arrow-right', 'arrow-down', 'arrow-up', 'd-arrow-left', 'd-arrow-right', 'video-pause', 'video-play', 'refresh', 'refresh-right', 'refresh-left', 'finished', 'sort', 'sort-up', 'sort-down', 'rank', 'loading', 'view', 'c-scale-to-original', 'date', 'edit', 'edit-outline', 'folder', 'folder-opened', 'folder-add', 'folder-remove', 'folder-delete', 'folder-checked', 'tickets', 'document-remove', 'document-delete', 'document-copy', 'document-checked', 'document', 'document-add', 'printer', 'paperclip', 'takeaway-box', 'search', 'monitor', 'attract', 'mobile', 'scissors', 'umbrella', 'headset', 'brush', 'mouse', 'coordinate', 'magic-stick', 'reading', 'data-line', 'data-board', 'pie-chart', 'data-analysis', 'collection-tag', 'film', 'suitcase', 'suitcase-1', 'receiving', 'collection', 'files', 'notebook-1', 'notebook-2', 'toilet-paper', 'office-building', 'school', 'table-lamp', 'house', 'no-smoking', 'smoking', 'shopping-cart-full', 'shopping-cart-1', 'shopping-cart-2', 'shopping-bag-1', 'shopping-bag-2', 'sold-out', 'sell', 'present', 'box', 'bank-card', 'money', 'coin', 'wallet', 'discount', 'price-tag', 'news', 'guide', 'male', 'female', 'thumb', 'cpu', 'link', 'connection', 'open', 'turn-off', 'set-up', 'chat-round', 'chat-line-round', 'chat-square', 'chat-dot-round', 'chat-dot-square', 'chat-line-square', 'message', 'postcard', 'position', 'turn-off-microphone', 'microphone', 'close-notification', 'bangzhu', 'time', 'odometer', 'crop', 'aim', 'switch-button', 'full-screen', 'copy-document', 'mic', 'stopwatch', 'medal-1', 'medal', 'trophy', 'trophy-1', 'first-aid-kit', 'discover', 'place', 'location', 'location-outline', 'location-information', 'add-location', 'delete-location', 'map-location', 'alarm-clock', 'timer', 'watch-1', 'watch', 'lock', 'unlock', 'key', 'service', 'mobile-phone', 'bicycle', 'truck', 'ship', 'basketball', 'football', 'soccer', 'baseball', 'wind-power', 'light-rain', 'lightning', 'heavy-rain', 'sunrise', 'sunrise-1', 'sunset', 'sunny', 'cloudy', 'partly-cloudy', 'cloudy-and-sunny', 'moon', 'moon-night', 'dish', 'dish-1', 'food', 'chicken', 'fork-spoon', 'knife-fork', 'burger', 'tableware', 'sugar', 'dessert', 'ice-cream', 'hot-water', 'water-cup', 'coffee-cup', 'cold-drink', 'goblet', 'goblet-full', 'goblet-square', 'goblet-square-full', 'refrigerator', 'grape', 'watermelon', 'cherry', 'apple', 'pear', 'orange', 'coffee', 'ice-tea', 'ice-drink', 'milk-tea', 'potato-strips', 'lollipop', 'ice-cream-square', 'ice-cream-round'] - -export default elementIcons diff --git a/ZR.Vue/src/views/components/icons/index.vue b/ZR.Vue/src/views/components/icons/index.vue deleted file mode 100644 index 1679b408..00000000 --- a/ZR.Vue/src/views/components/icons/index.vue +++ /dev/null @@ -1,87 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/views/components/icons/svg-icons.js b/ZR.Vue/src/views/components/icons/svg-icons.js deleted file mode 100644 index 724cd8e9..00000000 --- a/ZR.Vue/src/views/components/icons/svg-icons.js +++ /dev/null @@ -1,10 +0,0 @@ -const req = require.context('../../../assets/icons/svg', false, /\.svg$/) -const requireAll = requireContext => requireContext.keys() - -const re = /\.\/(.*)\.svg/ - -const svgIcons = requireAll(req).map(i => { - return i.match(re)[1] -}) - -export default svgIcons diff --git a/ZR.Vue/src/views/dashboard/BarChart.vue b/ZR.Vue/src/views/dashboard/BarChart.vue deleted file mode 100644 index 96b2ea54..00000000 --- a/ZR.Vue/src/views/dashboard/BarChart.vue +++ /dev/null @@ -1,101 +0,0 @@ - - - diff --git a/ZR.Vue/src/views/dashboard/LineChart.vue b/ZR.Vue/src/views/dashboard/LineChart.vue deleted file mode 100644 index 2df455e9..00000000 --- a/ZR.Vue/src/views/dashboard/LineChart.vue +++ /dev/null @@ -1,134 +0,0 @@ - - - diff --git a/ZR.Vue/src/views/dashboard/PanelGroup.vue b/ZR.Vue/src/views/dashboard/PanelGroup.vue deleted file mode 100644 index 16b4735b..00000000 --- a/ZR.Vue/src/views/dashboard/PanelGroup.vue +++ /dev/null @@ -1,184 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/views/dashboard/PieChart.vue b/ZR.Vue/src/views/dashboard/PieChart.vue deleted file mode 100644 index fe25c2c7..00000000 --- a/ZR.Vue/src/views/dashboard/PieChart.vue +++ /dev/null @@ -1,78 +0,0 @@ - - - diff --git a/ZR.Vue/src/views/dashboard/RaddarChart.vue b/ZR.Vue/src/views/dashboard/RaddarChart.vue deleted file mode 100644 index 55f5893d..00000000 --- a/ZR.Vue/src/views/dashboard/RaddarChart.vue +++ /dev/null @@ -1,115 +0,0 @@ - - - diff --git a/ZR.Vue/src/views/dashboard/mixins/resize.js b/ZR.Vue/src/views/dashboard/mixins/resize.js deleted file mode 100644 index b1e76e94..00000000 --- a/ZR.Vue/src/views/dashboard/mixins/resize.js +++ /dev/null @@ -1,56 +0,0 @@ -import { debounce } from '@/utils' - -export default { - data() { - return { - $_sidebarElm: null, - $_resizeHandler: null - } - }, - mounted() { - this.initListener() - }, - activated() { - if (!this.$_resizeHandler) { - // avoid duplication init - this.initListener() - } - - // when keep-alive chart activated, auto resize - this.resize() - }, - beforeDestroy() { - this.destroyListener() - }, - deactivated() { - this.destroyListener() - }, - methods: { - // use $_ for mixins properties - // https://vuejs.org/v2/style-guide/index.html#Private-property-names-essential - $_sidebarResizeHandler(e) { - if (e.propertyName === 'width') { - this.$_resizeHandler() - } - }, - initListener() { - this.$_resizeHandler = debounce(() => { - this.resize() - }, 100) - window.addEventListener('resize', this.$_resizeHandler) - - this.$_sidebarElm = document.getElementsByClassName('sidebar-container')[0] - this.$_sidebarElm && this.$_sidebarElm.addEventListener('transitionend', this.$_sidebarResizeHandler) - }, - destroyListener() { - window.removeEventListener('resize', this.$_resizeHandler) - this.$_resizeHandler = null - - this.$_sidebarElm && this.$_sidebarElm.removeEventListener('transitionend', this.$_sidebarResizeHandler) - }, - resize() { - const { chart } = this - chart && chart.resize() - } - } -} diff --git a/ZR.Vue/src/views/deviceManagement/device_account.vue b/ZR.Vue/src/views/deviceManagement/device_account.vue deleted file mode 100644 index e69de29b..00000000 diff --git a/ZR.Vue/src/views/deviceManagement/device_type.vue b/ZR.Vue/src/views/deviceManagement/device_type.vue deleted file mode 100644 index e69de29b..00000000 diff --git a/ZR.Vue/src/views/deviceManagement/repairlist.vue b/ZR.Vue/src/views/deviceManagement/repairlist.vue deleted file mode 100644 index e69de29b..00000000 diff --git a/ZR.Vue/src/views/deviceManagement/spot_inspection_plan.vue b/ZR.Vue/src/views/deviceManagement/spot_inspection_plan.vue deleted file mode 100644 index e69de29b..00000000 diff --git a/ZR.Vue/src/views/deviceManagement/spot_inspection_project.vue b/ZR.Vue/src/views/deviceManagement/spot_inspection_project.vue deleted file mode 100644 index e69de29b..00000000 diff --git a/ZR.Vue/src/views/error/401.vue b/ZR.Vue/src/views/error/401.vue deleted file mode 100644 index 448b6ecd..00000000 --- a/ZR.Vue/src/views/error/401.vue +++ /dev/null @@ -1,88 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/views/error/404.vue b/ZR.Vue/src/views/error/404.vue deleted file mode 100644 index 96f075c1..00000000 --- a/ZR.Vue/src/views/error/404.vue +++ /dev/null @@ -1,233 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/views/ganxiang_logo.vue b/ZR.Vue/src/views/ganxiang_logo.vue deleted file mode 100644 index 4c8fcb25..00000000 --- a/ZR.Vue/src/views/ganxiang_logo.vue +++ /dev/null @@ -1,318 +0,0 @@ - - - - - - diff --git a/ZR.Vue/src/views/index.vue b/ZR.Vue/src/views/index.vue deleted file mode 100644 index eaf6490f..00000000 --- a/ZR.Vue/src/views/index.vue +++ /dev/null @@ -1,198 +0,0 @@ - - - - diff --git a/ZR.Vue/src/views/index_v1.vue b/ZR.Vue/src/views/index_v1.vue deleted file mode 100644 index eb8d1937..00000000 --- a/ZR.Vue/src/views/index_v1.vue +++ /dev/null @@ -1,573 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/views/kanbanManagement/digitalFlop.vue b/ZR.Vue/src/views/kanbanManagement/digitalFlop.vue deleted file mode 100644 index 493646b2..00000000 --- a/ZR.Vue/src/views/kanbanManagement/digitalFlop.vue +++ /dev/null @@ -1,161 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/views/kanbanManagement/jihe.vue b/ZR.Vue/src/views/kanbanManagement/jihe.vue deleted file mode 100644 index 264d6690..00000000 --- a/ZR.Vue/src/views/kanbanManagement/jihe.vue +++ /dev/null @@ -1,35 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/views/kanbanManagement/jihe1.vue b/ZR.Vue/src/views/kanbanManagement/jihe1.vue deleted file mode 100644 index cb2c893d..00000000 --- a/ZR.Vue/src/views/kanbanManagement/jihe1.vue +++ /dev/null @@ -1,32 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/views/kanbanManagement/test1.vue b/ZR.Vue/src/views/kanbanManagement/test1.vue deleted file mode 100644 index 910edcdb..00000000 --- a/ZR.Vue/src/views/kanbanManagement/test1.vue +++ /dev/null @@ -1,837 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/views/kanbanManagement/test2.vue b/ZR.Vue/src/views/kanbanManagement/test2.vue deleted file mode 100644 index 759467c8..00000000 --- a/ZR.Vue/src/views/kanbanManagement/test2.vue +++ /dev/null @@ -1,143 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/views/kanbanManagement/titleBar.vue b/ZR.Vue/src/views/kanbanManagement/titleBar.vue deleted file mode 100644 index 3a9e3144..00000000 --- a/ZR.Vue/src/views/kanbanManagement/titleBar.vue +++ /dev/null @@ -1,45 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/views/kanbanManagement/tuzhuangcanku.vue b/ZR.Vue/src/views/kanbanManagement/tuzhuangcanku.vue deleted file mode 100644 index c70a71fb..00000000 --- a/ZR.Vue/src/views/kanbanManagement/tuzhuangcanku.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/views/kanbanManagement/tuzhuangworkshop.vue b/ZR.Vue/src/views/kanbanManagement/tuzhuangworkshop.vue deleted file mode 100644 index a3f4077f..00000000 --- a/ZR.Vue/src/views/kanbanManagement/tuzhuangworkshop.vue +++ /dev/null @@ -1,248 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/views/login.vue b/ZR.Vue/src/views/login.vue deleted file mode 100644 index 93e505a4..00000000 --- a/ZR.Vue/src/views/login.vue +++ /dev/null @@ -1,311 +0,0 @@ - - - - - - diff --git a/ZR.Vue/src/views/monitor/job/index.vue b/ZR.Vue/src/views/monitor/job/index.vue deleted file mode 100644 index 68ff18b0..00000000 --- a/ZR.Vue/src/views/monitor/job/index.vue +++ /dev/null @@ -1,607 +0,0 @@ - - - diff --git a/ZR.Vue/src/views/monitor/job/log.vue b/ZR.Vue/src/views/monitor/job/log.vue deleted file mode 100644 index 08797a76..00000000 --- a/ZR.Vue/src/views/monitor/job/log.vue +++ /dev/null @@ -1,250 +0,0 @@ - - - diff --git a/ZR.Vue/src/views/monitor/logininfor/index.vue b/ZR.Vue/src/views/monitor/logininfor/index.vue deleted file mode 100644 index d0521381..00000000 --- a/ZR.Vue/src/views/monitor/logininfor/index.vue +++ /dev/null @@ -1,196 +0,0 @@ - - - - diff --git a/ZR.Vue/src/views/monitor/onlineuser/index.vue b/ZR.Vue/src/views/monitor/onlineuser/index.vue deleted file mode 100644 index 35251324..00000000 --- a/ZR.Vue/src/views/monitor/onlineuser/index.vue +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/ZR.Vue/src/views/monitor/operlog/index.vue b/ZR.Vue/src/views/monitor/operlog/index.vue deleted file mode 100644 index 5aca84fe..00000000 --- a/ZR.Vue/src/views/monitor/operlog/index.vue +++ /dev/null @@ -1,304 +0,0 @@ - - - diff --git a/ZR.Vue/src/views/monitor/server/index.vue b/ZR.Vue/src/views/monitor/server/index.vue deleted file mode 100644 index c728c509..00000000 --- a/ZR.Vue/src/views/monitor/server/index.vue +++ /dev/null @@ -1,313 +0,0 @@ - - - - \ No newline at end of file diff --git a/ZR.Vue/src/views/productManagement/completion_statistics.vue b/ZR.Vue/src/views/productManagement/completion_statistics.vue deleted file mode 100644 index e69de29b..00000000 diff --git a/ZR.Vue/src/views/productManagement/production_track.vue b/ZR.Vue/src/views/productManagement/production_track.vue deleted file mode 100644 index e69de29b..00000000 diff --git a/ZR.Vue/src/views/productManagement/workorder.vue b/ZR.Vue/src/views/productManagement/workorder.vue deleted file mode 100644 index c7cf9232..00000000 --- a/ZR.Vue/src/views/productManagement/workorder.vue +++ /dev/null @@ -1,243 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/views/productManagement/workplan.vue b/ZR.Vue/src/views/productManagement/workplan.vue deleted file mode 100644 index d6c9b254..00000000 --- a/ZR.Vue/src/views/productManagement/workplan.vue +++ /dev/null @@ -1,309 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/views/qualityManagement/FQC.vue b/ZR.Vue/src/views/qualityManagement/FQC.vue deleted file mode 100644 index e69de29b..00000000 diff --git a/ZR.Vue/src/views/qualityManagement/IPQC.vue b/ZR.Vue/src/views/qualityManagement/IPQC.vue deleted file mode 100644 index e69de29b..00000000 diff --git a/ZR.Vue/src/views/qualityManagement/IQC.vue b/ZR.Vue/src/views/qualityManagement/IQC.vue deleted file mode 100644 index e69de29b..00000000 diff --git a/ZR.Vue/src/views/qualityManagement/OQC.vue b/ZR.Vue/src/views/qualityManagement/OQC.vue deleted file mode 100644 index e69de29b..00000000 diff --git a/ZR.Vue/src/views/qualityManagement/checkItem.vue b/ZR.Vue/src/views/qualityManagement/checkItem.vue deleted file mode 100644 index e69de29b..00000000 diff --git a/ZR.Vue/src/views/redirect.vue b/ZR.Vue/src/views/redirect.vue deleted file mode 100644 index db4c1d66..00000000 --- a/ZR.Vue/src/views/redirect.vue +++ /dev/null @@ -1,12 +0,0 @@ - diff --git a/ZR.Vue/src/views/register.vue b/ZR.Vue/src/views/register.vue deleted file mode 100644 index 811c98b2..00000000 --- a/ZR.Vue/src/views/register.vue +++ /dev/null @@ -1,214 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/views/system/article/articleCategory.vue b/ZR.Vue/src/views/system/article/articleCategory.vue deleted file mode 100644 index 7ec72d46..00000000 --- a/ZR.Vue/src/views/system/article/articleCategory.vue +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/ZR.Vue/src/views/system/article/manager.vue b/ZR.Vue/src/views/system/article/manager.vue deleted file mode 100644 index 118a5687..00000000 --- a/ZR.Vue/src/views/system/article/manager.vue +++ /dev/null @@ -1,149 +0,0 @@ - - diff --git a/ZR.Vue/src/views/system/article/publish.vue b/ZR.Vue/src/views/system/article/publish.vue deleted file mode 100644 index 6f58bd6f..00000000 --- a/ZR.Vue/src/views/system/article/publish.vue +++ /dev/null @@ -1,221 +0,0 @@ - - - diff --git a/ZR.Vue/src/views/system/commonLang/index.vue b/ZR.Vue/src/views/system/commonLang/index.vue deleted file mode 100644 index 666b58f5..00000000 --- a/ZR.Vue/src/views/system/commonLang/index.vue +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/ZR.Vue/src/views/system/config/index.vue b/ZR.Vue/src/views/system/config/index.vue deleted file mode 100644 index 42b5cabc..00000000 --- a/ZR.Vue/src/views/system/config/index.vue +++ /dev/null @@ -1,274 +0,0 @@ - - - diff --git a/ZR.Vue/src/views/system/dept/index.vue b/ZR.Vue/src/views/system/dept/index.vue deleted file mode 100644 index ac851d4e..00000000 --- a/ZR.Vue/src/views/system/dept/index.vue +++ /dev/null @@ -1,304 +0,0 @@ - - - diff --git a/ZR.Vue/src/views/system/dict/index.vue b/ZR.Vue/src/views/system/dict/index.vue deleted file mode 100644 index 9ccf49cc..00000000 --- a/ZR.Vue/src/views/system/dict/index.vue +++ /dev/null @@ -1,318 +0,0 @@ - - - diff --git a/ZR.Vue/src/views/system/menu/index.vue b/ZR.Vue/src/views/system/menu/index.vue deleted file mode 100644 index f4a18c74..00000000 --- a/ZR.Vue/src/views/system/menu/index.vue +++ /dev/null @@ -1,496 +0,0 @@ - - - diff --git a/ZR.Vue/src/views/system/notice/index.vue b/ZR.Vue/src/views/system/notice/index.vue deleted file mode 100644 index 301947cc..00000000 --- a/ZR.Vue/src/views/system/notice/index.vue +++ /dev/null @@ -1,299 +0,0 @@ - - - diff --git a/ZR.Vue/src/views/system/post/index.vue b/ZR.Vue/src/views/system/post/index.vue deleted file mode 100644 index 0d0138b1..00000000 --- a/ZR.Vue/src/views/system/post/index.vue +++ /dev/null @@ -1,273 +0,0 @@ - - - diff --git a/ZR.Vue/src/views/system/role/index.vue b/ZR.Vue/src/views/system/role/index.vue deleted file mode 100644 index edd8a44c..00000000 --- a/ZR.Vue/src/views/system/role/index.vue +++ /dev/null @@ -1,598 +0,0 @@ - - - - diff --git a/ZR.Vue/src/views/system/roleusers/index.vue b/ZR.Vue/src/views/system/roleusers/index.vue deleted file mode 100644 index c396a5a5..00000000 --- a/ZR.Vue/src/views/system/roleusers/index.vue +++ /dev/null @@ -1,301 +0,0 @@ - - diff --git a/ZR.Vue/src/views/system/user/index.vue b/ZR.Vue/src/views/system/user/index.vue deleted file mode 100644 index 6bda765c..00000000 --- a/ZR.Vue/src/views/system/user/index.vue +++ /dev/null @@ -1,629 +0,0 @@ - - - diff --git a/ZR.Vue/src/views/system/user/profile/index.vue b/ZR.Vue/src/views/system/user/profile/index.vue deleted file mode 100644 index 477fd87d..00000000 --- a/ZR.Vue/src/views/system/user/profile/index.vue +++ /dev/null @@ -1,128 +0,0 @@ - - - - \ No newline at end of file diff --git a/ZR.Vue/src/views/system/user/profile/operLog.vue b/ZR.Vue/src/views/system/user/profile/operLog.vue deleted file mode 100644 index 1868f676..00000000 --- a/ZR.Vue/src/views/system/user/profile/operLog.vue +++ /dev/null @@ -1,135 +0,0 @@ - - - - diff --git a/ZR.Vue/src/views/system/user/profile/resetPwd.vue b/ZR.Vue/src/views/system/user/profile/resetPwd.vue deleted file mode 100644 index ee652405..00000000 --- a/ZR.Vue/src/views/system/user/profile/resetPwd.vue +++ /dev/null @@ -1,72 +0,0 @@ - - - diff --git a/ZR.Vue/src/views/system/user/profile/userAvatar.vue b/ZR.Vue/src/views/system/user/profile/userAvatar.vue deleted file mode 100644 index 13406858..00000000 --- a/ZR.Vue/src/views/system/user/profile/userAvatar.vue +++ /dev/null @@ -1,175 +0,0 @@ - - - - diff --git a/ZR.Vue/src/views/system/user/profile/userInfo.vue b/ZR.Vue/src/views/system/user/profile/userInfo.vue deleted file mode 100644 index 2e3948a9..00000000 --- a/ZR.Vue/src/views/system/user/profile/userInfo.vue +++ /dev/null @@ -1,76 +0,0 @@ - - - diff --git a/ZR.Vue/src/views/tool/build/CodeTypeDialog.vue b/ZR.Vue/src/views/tool/build/CodeTypeDialog.vue deleted file mode 100644 index 941ec362..00000000 --- a/ZR.Vue/src/views/tool/build/CodeTypeDialog.vue +++ /dev/null @@ -1,106 +0,0 @@ - - diff --git a/ZR.Vue/src/views/tool/build/DraggableItem.vue b/ZR.Vue/src/views/tool/build/DraggableItem.vue deleted file mode 100644 index e881778f..00000000 --- a/ZR.Vue/src/views/tool/build/DraggableItem.vue +++ /dev/null @@ -1,100 +0,0 @@ - diff --git a/ZR.Vue/src/views/tool/build/IconsDialog.vue b/ZR.Vue/src/views/tool/build/IconsDialog.vue deleted file mode 100644 index 958be50c..00000000 --- a/ZR.Vue/src/views/tool/build/IconsDialog.vue +++ /dev/null @@ -1,123 +0,0 @@ - - - diff --git a/ZR.Vue/src/views/tool/build/RightPanel.vue b/ZR.Vue/src/views/tool/build/RightPanel.vue deleted file mode 100644 index abaec431..00000000 --- a/ZR.Vue/src/views/tool/build/RightPanel.vue +++ /dev/null @@ -1,944 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/views/tool/build/TreeNodeDialog.vue b/ZR.Vue/src/views/tool/build/TreeNodeDialog.vue deleted file mode 100644 index c225c4cc..00000000 --- a/ZR.Vue/src/views/tool/build/TreeNodeDialog.vue +++ /dev/null @@ -1,149 +0,0 @@ - - diff --git a/ZR.Vue/src/views/tool/build/index.vue b/ZR.Vue/src/views/tool/build/index.vue deleted file mode 100644 index c5a6d695..00000000 --- a/ZR.Vue/src/views/tool/build/index.vue +++ /dev/null @@ -1,755 +0,0 @@ - - - - - diff --git a/ZR.Vue/src/views/tool/email/sendEmail.vue b/ZR.Vue/src/views/tool/email/sendEmail.vue deleted file mode 100644 index b5b4ce80..00000000 --- a/ZR.Vue/src/views/tool/email/sendEmail.vue +++ /dev/null @@ -1,137 +0,0 @@ - - - diff --git a/ZR.Vue/src/views/tool/file/index.vue b/ZR.Vue/src/views/tool/file/index.vue deleted file mode 100644 index 4000f717..00000000 --- a/ZR.Vue/src/views/tool/file/index.vue +++ /dev/null @@ -1,361 +0,0 @@ - - - \ No newline at end of file diff --git a/ZR.Vue/src/views/tool/gen/basicInfoForm.vue b/ZR.Vue/src/views/tool/gen/basicInfoForm.vue deleted file mode 100644 index 91f53976..00000000 --- a/ZR.Vue/src/views/tool/gen/basicInfoForm.vue +++ /dev/null @@ -1,61 +0,0 @@ - - diff --git a/ZR.Vue/src/views/tool/gen/editTable.vue b/ZR.Vue/src/views/tool/gen/editTable.vue deleted file mode 100644 index 372b7ffe..00000000 --- a/ZR.Vue/src/views/tool/gen/editTable.vue +++ /dev/null @@ -1,283 +0,0 @@ - - diff --git a/ZR.Vue/src/views/tool/gen/genInfoForm.vue b/ZR.Vue/src/views/tool/gen/genInfoForm.vue deleted file mode 100644 index 36b9f2f0..00000000 --- a/ZR.Vue/src/views/tool/gen/genInfoForm.vue +++ /dev/null @@ -1,378 +0,0 @@ - - diff --git a/ZR.Vue/src/views/tool/gen/importTable.vue b/ZR.Vue/src/views/tool/gen/importTable.vue deleted file mode 100644 index deeafc63..00000000 --- a/ZR.Vue/src/views/tool/gen/importTable.vue +++ /dev/null @@ -1,120 +0,0 @@ - - - diff --git a/ZR.Vue/src/views/tool/gen/index.vue b/ZR.Vue/src/views/tool/gen/index.vue deleted file mode 100644 index 74ae14ca..00000000 --- a/ZR.Vue/src/views/tool/gen/index.vue +++ /dev/null @@ -1,286 +0,0 @@ - - - diff --git a/ZR.Vue/src/views/tool/swagger/index.vue b/ZR.Vue/src/views/tool/swagger/index.vue deleted file mode 100644 index 98954646..00000000 --- a/ZR.Vue/src/views/tool/swagger/index.vue +++ /dev/null @@ -1,26 +0,0 @@ -