@ -0,0 +1,6 @@ |
|||
<component name="InspectionProjectProfileManager"> |
|||
<profile version="1.0"> |
|||
<option name="myName" value="Project Default" /> |
|||
<inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" /> |
|||
</profile> |
|||
</component> |
@ -0,0 +1,8 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<project version="4"> |
|||
<component name="ProjectModuleManager"> |
|||
<modules> |
|||
<module fileurl="file://$PROJECT_DIR$/.idea/tekela_acs.iml" filepath="$PROJECT_DIR$/.idea/tekela_acs.iml" /> |
|||
</modules> |
|||
</component> |
|||
</project> |
@ -0,0 +1,9 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<module type="JAVA_MODULE" version="4"> |
|||
<component name="NewModuleRootManager" inherit-compiler-output="true"> |
|||
<exclude-output /> |
|||
<content url="file://$MODULE_DIR$" /> |
|||
<orderEntry type="inheritedJdk" /> |
|||
<orderEntry type="sourceFolder" forTests="false" /> |
|||
</component> |
|||
</module> |
@ -0,0 +1,6 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<project version="4"> |
|||
<component name="VcsDirectoryMappings"> |
|||
<mapping directory="" vcs="Git" /> |
|||
</component> |
|||
</project> |
@ -0,0 +1,14 @@ |
|||
# https://editorconfig.org |
|||
root = true |
|||
|
|||
[*] |
|||
charset = utf-8 |
|||
indent_style = space |
|||
indent_size = 2 |
|||
end_of_line = lf |
|||
insert_final_newline = true |
|||
trim_trailing_whitespace = true |
|||
|
|||
[*.md] |
|||
insert_final_newline = false |
|||
trim_trailing_whitespace = false |
@ -0,0 +1,8 @@ |
|||
ENV = 'development' |
|||
|
|||
# 接口地址 |
|||
VUE_APP_BASE_API = 'http://localhost:8010' |
|||
VUE_APP_WS_API = 'ws://localhost:8010' |
|||
|
|||
# 是否启用 babel-plugin-dynamic-import-node插件 |
|||
VUE_CLI_BABEL_TRANSPILE_MODULES = true |
@ -0,0 +1,7 @@ |
|||
ENV = 'production' |
|||
|
|||
# 如果使用 Nginx 代理后端接口,那么此处需要改为 '/',文件查看 Docker 部署篇,Nginx 配置 |
|||
# 接口地址,注意协议,如果你没有配置 ssl,需要将 https 改为 http |
|||
VUE_APP_BASE_API = 'http://127.0.0.1:8010' |
|||
# 如果接口是 http 形式, wss 需要改为 ws |
|||
VUE_APP_WS_API = 'ws://127.0.0.1:8010' |
@ -0,0 +1,4 @@ |
|||
build/*.js |
|||
src/assets |
|||
public |
|||
dist |
@ -0,0 +1,198 @@ |
|||
module.exports = { |
|||
root: true, |
|||
parserOptions: { |
|||
parser: 'babel-eslint', |
|||
sourceType: 'module' |
|||
}, |
|||
env: { |
|||
browser: true, |
|||
node: true, |
|||
es6: true, |
|||
}, |
|||
extends: ['plugin:vue/recommended', 'eslint:recommended'], |
|||
|
|||
// add your custom rules here
|
|||
//it is base on https://github.com/vuejs/eslint-config-vue
|
|||
rules: { |
|||
"vue/max-attributes-per-line": [2, { |
|||
"singleline": 10, |
|||
"multiline": { |
|||
"max": 1, |
|||
"allowFirstLine": false |
|||
} |
|||
}], |
|||
"vue/singleline-html-element-content-newline": "off", |
|||
"vue/multiline-html-element-content-newline":"off", |
|||
"vue/name-property-casing": ["error", "PascalCase"], |
|||
"vue/no-v-html": "off", |
|||
'accessor-pairs': 2, |
|||
'arrow-spacing': [2, { |
|||
'before': true, |
|||
'after': true |
|||
}], |
|||
'block-spacing': [2, 'always'], |
|||
'brace-style': [2, '1tbs', { |
|||
'allowSingleLine': true |
|||
}], |
|||
'camelcase': [0, { |
|||
'properties': 'always' |
|||
}], |
|||
'comma-dangle': [2, 'never'], |
|||
'comma-spacing': [2, { |
|||
'before': false, |
|||
'after': true |
|||
}], |
|||
'comma-style': [2, 'last'], |
|||
'constructor-super': 2, |
|||
'curly': [2, 'multi-line'], |
|||
'dot-location': [2, 'property'], |
|||
'eol-last': 2, |
|||
'eqeqeq': ["error", "always", {"null": "ignore"}], |
|||
'generator-star-spacing': [2, { |
|||
'before': true, |
|||
'after': true |
|||
}], |
|||
'handle-callback-err': [2, '^(err|error)$'], |
|||
'indent': [2, 2, { |
|||
'SwitchCase': 1 |
|||
}], |
|||
'jsx-quotes': [2, 'prefer-single'], |
|||
'key-spacing': [2, { |
|||
'beforeColon': false, |
|||
'afterColon': true |
|||
}], |
|||
'keyword-spacing': [2, { |
|||
'before': true, |
|||
'after': true |
|||
}], |
|||
'new-cap': [2, { |
|||
'newIsCap': true, |
|||
'capIsNew': false |
|||
}], |
|||
'new-parens': 2, |
|||
'no-array-constructor': 2, |
|||
'no-caller': 2, |
|||
'no-console': 'off', |
|||
'no-class-assign': 2, |
|||
'no-cond-assign': 2, |
|||
'no-const-assign': 2, |
|||
'no-control-regex': 0, |
|||
'no-delete-var': 2, |
|||
'no-dupe-args': 2, |
|||
'no-dupe-class-members': 2, |
|||
'no-dupe-keys': 2, |
|||
'no-duplicate-case': 2, |
|||
'no-empty-character-class': 2, |
|||
'no-empty-pattern': 2, |
|||
'no-eval': 2, |
|||
'no-ex-assign': 2, |
|||
'no-extend-native': 2, |
|||
'no-extra-bind': 2, |
|||
'no-extra-boolean-cast': 2, |
|||
'no-extra-parens': [2, 'functions'], |
|||
'no-fallthrough': 2, |
|||
'no-floating-decimal': 2, |
|||
'no-func-assign': 2, |
|||
'no-implied-eval': 2, |
|||
'no-inner-declarations': [2, 'functions'], |
|||
'no-invalid-regexp': 2, |
|||
'no-irregular-whitespace': 2, |
|||
'no-iterator': 2, |
|||
'no-label-var': 2, |
|||
'no-labels': [2, { |
|||
'allowLoop': false, |
|||
'allowSwitch': false |
|||
}], |
|||
'no-lone-blocks': 2, |
|||
'no-mixed-spaces-and-tabs': 2, |
|||
'no-multi-spaces': 2, |
|||
'no-multi-str': 2, |
|||
'no-multiple-empty-lines': [2, { |
|||
'max': 1 |
|||
}], |
|||
'no-native-reassign': 2, |
|||
'no-negated-in-lhs': 2, |
|||
'no-new-object': 2, |
|||
'no-new-require': 2, |
|||
'no-new-symbol': 2, |
|||
'no-new-wrappers': 2, |
|||
'no-obj-calls': 2, |
|||
'no-octal': 2, |
|||
'no-octal-escape': 2, |
|||
'no-path-concat': 2, |
|||
'no-proto': 2, |
|||
'no-redeclare': 2, |
|||
'no-regex-spaces': 2, |
|||
'no-return-assign': [2, 'except-parens'], |
|||
'no-self-assign': 2, |
|||
'no-self-compare': 2, |
|||
'no-sequences': 2, |
|||
'no-shadow-restricted-names': 2, |
|||
'no-spaced-func': 2, |
|||
'no-sparse-arrays': 2, |
|||
'no-this-before-super': 2, |
|||
'no-throw-literal': 2, |
|||
'no-trailing-spaces': 2, |
|||
'no-undef': 2, |
|||
'no-undef-init': 2, |
|||
'no-unexpected-multiline': 2, |
|||
'no-unmodified-loop-condition': 2, |
|||
'no-unneeded-ternary': [2, { |
|||
'defaultAssignment': false |
|||
}], |
|||
'no-unreachable': 2, |
|||
'no-unsafe-finally': 2, |
|||
'no-unused-vars': [2, { |
|||
'vars': 'all', |
|||
'args': 'none' |
|||
}], |
|||
'no-useless-call': 2, |
|||
'no-useless-computed-key': 2, |
|||
'no-useless-constructor': 2, |
|||
'no-useless-escape': 0, |
|||
'no-whitespace-before-property': 2, |
|||
'no-with': 2, |
|||
'one-var': [2, { |
|||
'initialized': 'never' |
|||
}], |
|||
'operator-linebreak': [2, 'after', { |
|||
'overrides': { |
|||
'?': 'before', |
|||
':': 'before' |
|||
} |
|||
}], |
|||
'padded-blocks': [2, 'never'], |
|||
'quotes': [2, 'single', { |
|||
'avoidEscape': true, |
|||
'allowTemplateLiterals': true |
|||
}], |
|||
'semi': [2, 'never'], |
|||
'semi-spacing': [2, { |
|||
'before': false, |
|||
'after': true |
|||
}], |
|||
'space-before-blocks': [2, 'always'], |
|||
'space-before-function-paren': [2, 'never'], |
|||
'space-in-parens': [2, 'never'], |
|||
'space-infix-ops': 2, |
|||
'space-unary-ops': [2, { |
|||
'words': true, |
|||
'nonwords': false |
|||
}], |
|||
'spaced-comment': [2, 'always', { |
|||
'markers': ['global', 'globals', 'eslint', 'eslint-disable', '*package', '!', ','] |
|||
}], |
|||
'template-curly-spacing': [2, 'never'], |
|||
'use-isnan': 2, |
|||
'valid-typeof': 2, |
|||
'wrap-iife': [2, 'any'], |
|||
'yield-star-spacing': [2, 'both'], |
|||
'yoda': [2, 'never'], |
|||
'prefer-const': 2, |
|||
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0, |
|||
'object-curly-spacing': [2, 'always', { |
|||
objectsInObjects: false |
|||
}], |
|||
'array-bracket-spacing': [2, 'never'] |
|||
} |
|||
} |
@ -0,0 +1,5 @@ |
|||
language: node_js |
|||
node_js: 10 |
|||
script: npm run test |
|||
notifications: |
|||
email: false |
@ -0,0 +1,191 @@ |
|||
Apache License |
|||
Version 2.0, January 2004 |
|||
http://www.apache.org/licenses/ |
|||
|
|||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION |
|||
|
|||
1. Definitions. |
|||
|
|||
"License" shall mean the terms and conditions for use, reproduction, and |
|||
distribution as defined by Sections 1 through 9 of this document. |
|||
|
|||
"Licensor" shall mean the copyright owner or entity authorized by the copyright |
|||
owner that is granting the License. |
|||
|
|||
"Legal Entity" shall mean the union of the acting entity and all other entities |
|||
that control, are controlled by, or are under common control with that entity. |
|||
For the purposes of this definition, "control" means (i) the power, direct or |
|||
indirect, to cause the direction or management of such entity, whether by |
|||
contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the |
|||
outstanding shares, or (iii) beneficial ownership of such entity. |
|||
|
|||
"You" (or "Your") shall mean an individual or Legal Entity exercising |
|||
permissions granted by this License. |
|||
|
|||
"Source" form shall mean the preferred form for making modifications, including |
|||
but not limited to software source code, documentation source, and configuration |
|||
files. |
|||
|
|||
"Object" form shall mean any form resulting from mechanical transformation or |
|||
translation of a Source form, including but not limited to compiled object code, |
|||
generated documentation, and conversions to other media types. |
|||
|
|||
"Work" shall mean the work of authorship, whether in Source or Object form, made |
|||
available under the License, as indicated by a copyright notice that is included |
|||
in or attached to the work (an example is provided in the Appendix below). |
|||
|
|||
"Derivative Works" shall mean any work, whether in Source or Object form, that |
|||
is based on (or derived from) the Work and for which the editorial revisions, |
|||
annotations, elaborations, or other modifications represent, as a whole, an |
|||
original work of authorship. For the purposes of this License, Derivative Works |
|||
shall not include works that remain separable from, or merely link (or bind by |
|||
name) to the interfaces of, the Work and Derivative Works thereof. |
|||
|
|||
"Contribution" shall mean any work of authorship, including the original version |
|||
of the Work and any modifications or additions to that Work or Derivative Works |
|||
thereof, that is intentionally submitted to Licensor for inclusion in the Work |
|||
by the copyright owner or by an individual or Legal Entity authorized to submit |
|||
on behalf of the copyright owner. For the purposes of this definition, |
|||
"submitted" means any form of electronic, verbal, or written communication sent |
|||
to the Licensor or its representatives, including but not limited to |
|||
communication on electronic mailing lists, source code control systems, and |
|||
issue tracking systems that are managed by, or on behalf of, the Licensor for |
|||
the purpose of discussing and improving the Work, but excluding communication |
|||
that is conspicuously marked or otherwise designated in writing by the copyright |
|||
owner as "Not a Contribution." |
|||
|
|||
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf |
|||
of whom a Contribution has been received by Licensor and subsequently |
|||
incorporated within the Work. |
|||
|
|||
2. Grant of Copyright License. |
|||
|
|||
Subject to the terms and conditions of this License, each Contributor hereby |
|||
grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, |
|||
irrevocable copyright license to reproduce, prepare Derivative Works of, |
|||
publicly display, publicly perform, sublicense, and distribute the Work and such |
|||
Derivative Works in Source or Object form. |
|||
|
|||
3. Grant of Patent License. |
|||
|
|||
Subject to the terms and conditions of this License, each Contributor hereby |
|||
grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, |
|||
irrevocable (except as stated in this section) patent license to make, have |
|||
made, use, offer to sell, sell, import, and otherwise transfer the Work, where |
|||
such license applies only to those patent claims licensable by such Contributor |
|||
that are necessarily infringed by their Contribution(s) alone or by combination |
|||
of their Contribution(s) with the Work to which such Contribution(s) was |
|||
submitted. If You institute patent litigation against any entity (including a |
|||
cross-claim or counterclaim in a lawsuit) alleging that the Work or a |
|||
Contribution incorporated within the Work constitutes direct or contributory |
|||
patent infringement, then any patent licenses granted to You under this License |
|||
for that Work shall terminate as of the date such litigation is filed. |
|||
|
|||
4. Redistribution. |
|||
|
|||
You may reproduce and distribute copies of the Work or Derivative Works thereof |
|||
in any medium, with or without modifications, and in Source or Object form, |
|||
provided that You meet the following conditions: |
|||
|
|||
You must give any other recipients of the Work or Derivative Works a copy of |
|||
this License; and |
|||
You must cause any modified files to carry prominent notices stating that You |
|||
changed the files; and |
|||
You must retain, in the Source form of any Derivative Works that You distribute, |
|||
all copyright, patent, trademark, and attribution notices from the Source form |
|||
of the Work, excluding those notices that do not pertain to any part of the |
|||
Derivative Works; and |
|||
If the Work includes a "NOTICE" text file as part of its distribution, then any |
|||
Derivative Works that You distribute must include a readable copy of the |
|||
attribution notices contained within such NOTICE file, excluding those notices |
|||
that do not pertain to any part of the Derivative Works, in at least one of the |
|||
following places: within a NOTICE text file distributed as part of the |
|||
Derivative Works; within the Source form or documentation, if provided along |
|||
with the Derivative Works; or, within a display generated by the Derivative |
|||
Works, if and wherever such third-party notices normally appear. The contents of |
|||
the NOTICE file are for informational purposes only and do not modify the |
|||
License. You may add Your own attribution notices within Derivative Works that |
|||
You distribute, alongside or as an addendum to the NOTICE text from the Work, |
|||
provided that such additional attribution notices cannot be construed as |
|||
modifying the License. |
|||
You may add Your own copyright statement to Your modifications and may provide |
|||
additional or different license terms and conditions for use, reproduction, or |
|||
distribution of Your modifications, or for any such Derivative Works as a whole, |
|||
provided Your use, reproduction, and distribution of the Work otherwise complies |
|||
with the conditions stated in this License. |
|||
|
|||
5. Submission of Contributions. |
|||
|
|||
Unless You explicitly state otherwise, any Contribution intentionally submitted |
|||
for inclusion in the Work by You to the Licensor shall be under the terms and |
|||
conditions of this License, without any additional terms or conditions. |
|||
Notwithstanding the above, nothing herein shall supersede or modify the terms of |
|||
any separate license agreement you may have executed with Licensor regarding |
|||
such Contributions. |
|||
|
|||
6. Trademarks. |
|||
|
|||
This License does not grant permission to use the trade names, trademarks, |
|||
service marks, or product names of the Licensor, except as required for |
|||
reasonable and customary use in describing the origin of the Work and |
|||
reproducing the content of the NOTICE file. |
|||
|
|||
7. Disclaimer of Warranty. |
|||
|
|||
Unless required by applicable law or agreed to in writing, Licensor provides the |
|||
Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, |
|||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, |
|||
including, without limitation, any warranties or conditions of TITLE, |
|||
NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are |
|||
solely responsible for determining the appropriateness of using or |
|||
redistributing the Work and assume any risks associated with Your exercise of |
|||
permissions under this License. |
|||
|
|||
8. Limitation of Liability. |
|||
|
|||
In no event and under no legal theory, whether in tort (including negligence), |
|||
contract, or otherwise, unless required by applicable law (such as deliberate |
|||
and grossly negligent acts) or agreed to in writing, shall any Contributor be |
|||
liable to You for damages, including any direct, indirect, special, incidental, |
|||
or consequential damages of any character arising as a result of this License or |
|||
out of the use or inability to use the Work (including but not limited to |
|||
damages for loss of goodwill, work stoppage, computer failure or malfunction, or |
|||
any and all other commercial damages or losses), even if such Contributor has |
|||
been advised of the possibility of such damages. |
|||
|
|||
9. Accepting Warranty or Additional Liability. |
|||
|
|||
While redistributing the Work or Derivative Works thereof, You may choose to |
|||
offer, and charge a fee for, acceptance of support, warranty, indemnity, or |
|||
other liability obligations and/or rights consistent with this License. However, |
|||
in accepting such obligations, You may act only on Your own behalf and on Your |
|||
sole responsibility, not on behalf of any other Contributor, and only if You |
|||
agree to indemnify, defend, and hold each Contributor harmless for any liability |
|||
incurred by, or claims asserted against, such Contributor by reason of your |
|||
accepting any such warranty or additional liability. |
|||
|
|||
END OF TERMS AND CONDITIONS |
|||
|
|||
APPENDIX: How to apply the Apache License to your work |
|||
|
|||
To apply the Apache License to your work, attach the following boilerplate |
|||
notice, with the fields enclosed by brackets "{}" replaced with your own |
|||
identifying information. (Don't include the brackets!) The text should be |
|||
enclosed in the appropriate comment syntax for the file format. We also |
|||
recommend that a file or class name and description of purpose be included on |
|||
the same "printed page" as the copyright notice for easier identification within |
|||
third-party archives. |
|||
|
|||
Copyright 2019 Zheng Jie |
|||
|
|||
Licensed under the Apache License, Version 2.0 (the "License"); |
|||
you may not use this file except in compliance with the License. |
|||
You may obtain a copy of the License at |
|||
|
|||
http://www.apache.org/licenses/LICENSE-2.0 |
|||
|
|||
Unless required by applicable law or agreed to in writing, software |
|||
distributed under the License is distributed on an "AS IS" BASIS, |
|||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|||
See the License for the specific language governing permissions and |
|||
limitations under the License. |
@ -0,0 +1,36 @@ |
|||
# nlacs_web |
|||
|
|||
#### Description |
|||
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**} |
|||
|
|||
#### Software Architecture |
|||
Software architecture description |
|||
|
|||
#### Installation |
|||
|
|||
1. xxxx |
|||
2. xxxx |
|||
3. xxxx |
|||
|
|||
#### Instructions |
|||
|
|||
1. xxxx |
|||
2. xxxx |
|||
3. xxxx |
|||
|
|||
#### Contribution |
|||
|
|||
1. Fork the repository |
|||
2. Create Feat_xxx branch |
|||
3. Commit your code |
|||
4. Create Pull Request |
|||
|
|||
|
|||
#### Gitee Feature |
|||
|
|||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md |
|||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com) |
|||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) |
|||
4. The most valuable open source project [GVP](https://gitee.com/gvp) |
|||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) |
|||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) |
@ -0,0 +1,2 @@ |
|||
# 武汉新锐MES前端 |
|||
|
@ -0,0 +1,11 @@ |
|||
const plugins = ['@vue/babel-plugin-transform-vue-jsx'] |
|||
// 生产环境移除console
|
|||
if (process.env.NODE_ENV === 'production') { |
|||
plugins.push('transform-remove-console') |
|||
} |
|||
module.exports = { |
|||
plugins: plugins, |
|||
presets: [ |
|||
'@vue/app' |
|||
] |
|||
} |
@ -0,0 +1,24 @@ |
|||
module.exports = { |
|||
moduleFileExtensions: ['js', 'jsx', 'json', 'vue'], |
|||
transform: { |
|||
'^.+\\.vue$': 'vue-jest', |
|||
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': |
|||
'jest-transform-stub', |
|||
'^.+\\.jsx?$': 'babel-jest' |
|||
}, |
|||
moduleNameMapper: { |
|||
'^@/(.*)$': '<rootDir>/src/$1' |
|||
}, |
|||
snapshotSerializers: ['jest-serializer-vue'], |
|||
testMatch: [ |
|||
'**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)' |
|||
], |
|||
collectCoverageFrom: ['src/utils/**/*.{js,vue}', '!src/utils/auth.js', '!src/utils/request.js', 'src/components/**/*.{js,vue}'], |
|||
coverageDirectory: '<rootDir>/tests/unit/coverage', |
|||
// 'collectCoverage': true,
|
|||
'coverageReporters': [ |
|||
'lcov', |
|||
'text-summary' |
|||
], |
|||
testURL: 'http://localhost/' |
|||
} |
@ -0,0 +1,132 @@ |
|||
{ |
|||
"name": "eladmin-web", |
|||
"version": "2.6.0", |
|||
"description": "EL-ADMIN 前端源码", |
|||
"author": "Zheng Jie", |
|||
"license": "Apache-2.0", |
|||
"scripts": { |
|||
"dev": "vue-cli-service serve", |
|||
"build:prod": "vue-cli-service build", |
|||
"build:stage": "vue-cli-service build --mode staging", |
|||
"preview": "node build/index.js --preview", |
|||
"lint": "eslint --ext .js,.vue src", |
|||
"test:unit": "jest --clearCache && vue-cli-service test:unit", |
|||
"svgo": "svgo -f src/assets/icons/svg --config=src/assets/icons/svgo.yml", |
|||
"new": "plop" |
|||
}, |
|||
"husky": { |
|||
"hooks": { |
|||
"pre-commit": "lint-staged" |
|||
} |
|||
}, |
|||
"lint-staged": { |
|||
"src/**/*.{js,vue}": [ |
|||
"eslint --fix", |
|||
"git add" |
|||
] |
|||
}, |
|||
"repository": { |
|||
"type": "git", |
|||
"url": "https://github.com/elunez/eladmin-web.git" |
|||
}, |
|||
"bugs": { |
|||
"url": "https://github.com/elunez/eladmin/issues" |
|||
}, |
|||
"dependencies": { |
|||
"@logicflow/core": "^1.1.22", |
|||
"@logicflow/extension": "^1.1.22", |
|||
"@riophae/vue-treeselect": "0.4.0", |
|||
"af-table-column": "^1.0.3", |
|||
"ansi_up": "^5.1.0", |
|||
"axios": "0.18.1", |
|||
"clipboard": "^2.0.4", |
|||
"codemirror": "^5.49.2", |
|||
"connect": "3.6.6", |
|||
"echarts": "^4.2.1", |
|||
"echarts-gl": "^1.1.1", |
|||
"echarts-wordcloud": "^1.1.3", |
|||
"element-ui": "^2.15.8", |
|||
"file-saver": "1.3.8", |
|||
"font-awesome": "^4.7.0", |
|||
"fuse.js": "3.4.4", |
|||
"jquery": "^3.6.0", |
|||
"js-beautify": "^1.10.2", |
|||
"js-cookie": "2.2.0", |
|||
"jsbarcode": "^3.11.5", |
|||
"jsencrypt": "^3.0.0-rc.1", |
|||
"jszip": "3.1.5", |
|||
"mavon-editor": "^2.9.0", |
|||
"normalize.css": "7.0.0", |
|||
"nprogress": "0.2.0", |
|||
"path-to-regexp": "2.4.0", |
|||
"qrcodejs2": "0.0.2", |
|||
"qs": "^6.9.1", |
|||
"screenfull": "4.2.0", |
|||
"sortablejs": "1.8.4", |
|||
"throttle-debounce": "^5.0.0", |
|||
"vue": "2.6.10", |
|||
"vue-color": "^2.8.1", |
|||
"vue-count-to": "1.0.13", |
|||
"vue-cropper": "0.4.9", |
|||
"vue-easy-print": "0.0.8", |
|||
"vue-echarts": "^5.0.0-beta.0", |
|||
"vue-highlightjs": "^1.3.3", |
|||
"vue-image-crop-upload": "^2.5.0", |
|||
"vue-print-nb": "^1.7.5", |
|||
"vue-router": "3.0.2", |
|||
"vue-seamless-scroll": "^1.1.23", |
|||
"vue-splitpane": "1.0.4", |
|||
"vuedraggable": "^2.24.3", |
|||
"vuex": "3.1.0", |
|||
"vxe-table": "^3.3.10", |
|||
"wangeditor": "^3.1.1", |
|||
"xe-ajax": "^4.0.5", |
|||
"xe-utils": "^3.3.1", |
|||
"xlsx": "^0.14.1" |
|||
}, |
|||
"devDependencies": { |
|||
"@babel/core": "7.0.0", |
|||
"@babel/parser": "^7.7.4", |
|||
"@babel/register": "7.0.0", |
|||
"@vue/babel-plugin-transform-vue-jsx": "^1.2.1", |
|||
"@vue/cli-plugin-babel": "3.5.3", |
|||
"@vue/cli-plugin-eslint": "^3.9.1", |
|||
"@vue/cli-plugin-unit-jest": "3.5.3", |
|||
"@vue/cli-service": "3.5.3", |
|||
"@vue/test-utils": "1.0.0-beta.29", |
|||
"autoprefixer": "^9.5.1", |
|||
"babel-core": "7.0.0-bridge.0", |
|||
"babel-eslint": "10.0.1", |
|||
"babel-jest": "23.6.0", |
|||
"babel-plugin-dynamic-import-node": "2.3.0", |
|||
"babel-plugin-transform-remove-console": "^6.9.4", |
|||
"chalk": "2.4.2", |
|||
"chokidar": "2.1.5", |
|||
"connect": "3.6.6", |
|||
"eslint": "5.15.3", |
|||
"eslint-plugin-vue": "5.2.2", |
|||
"html-webpack-plugin": "3.2.0", |
|||
"http-proxy-middleware": "^0.19.1", |
|||
"husky": "1.3.1", |
|||
"lint-staged": "8.1.5", |
|||
"plop": "2.3.0", |
|||
"print-template": "^1.2.5", |
|||
"runjs": "^4.3.2", |
|||
"sass": "~1.26.5", |
|||
"sass-loader": "^7.1.0", |
|||
"script-ext-html-webpack-plugin": "2.1.3", |
|||
"script-loader": "0.7.2", |
|||
"serve-static": "^1.13.2", |
|||
"svg-sprite-loader": "4.1.3", |
|||
"svgo": "1.2.0", |
|||
"vue-template-compiler": "2.6.10" |
|||
}, |
|||
"engines": { |
|||
"node": ">=8.9", |
|||
"npm": ">= 3.0.0" |
|||
}, |
|||
"browserslist": [ |
|||
"> 1%", |
|||
"last 2 versions" |
|||
] |
|||
} |
@ -0,0 +1,7 @@ |
|||
const viewGenerator = require('./plop-templates/view/prompt') |
|||
const componentGenerator = require('./plop-templates/component/prompt') |
|||
|
|||
module.exports = function(plop) { |
|||
plop.setGenerator('view', viewGenerator) |
|||
plop.setGenerator('component', componentGenerator) |
|||
} |
@ -0,0 +1,5 @@ |
|||
module.exports = { |
|||
plugins: { |
|||
autoprefixer: {} |
|||
} |
|||
} |
@ -0,0 +1,10 @@ |
|||
window.g = { |
|||
dev: { |
|||
VUE_APP_BASE_API: 'http://127.0.0.1:8010' |
|||
}, |
|||
prod: { |
|||
VUE_APP_BASE_API: 'http://10.93.41.198:8010' |
|||
|
|||
} |
|||
|
|||
} |
@ -0,0 +1,16 @@ |
|||
<!DOCTYPE html> |
|||
<html> |
|||
<head> |
|||
<meta charset="utf-8"> |
|||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
|||
<meta name="renderer" content="webkit"> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> |
|||
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> |
|||
<script type="text/javascript" src="<%= BASE_URL %>config.js"></script> |
|||
<title><%= webpackConfig.name %></title> |
|||
</head> |
|||
<body> |
|||
<div id="app"></div> |
|||
<!-- built files will be auto injected --> |
|||
</body> |
|||
</html> |
@ -0,0 +1,27 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/deviceAssigned', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/deviceAssigned/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/deviceAssigned', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del } |
@ -0,0 +1,27 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/acsDeviceErpmapping', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/acsDeviceErpmapping/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/acsDeviceErpmapping', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del } |
@ -0,0 +1,169 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/device', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/device/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/device', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function selectDeviceList() { |
|||
return request({ |
|||
url: 'api/device/selectList', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function selectConDeviceList() { |
|||
return request({ |
|||
url: 'api/device/selectConveyorList', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function selectDeviceListByRegion(region) { |
|||
return request({ |
|||
url: 'api/device/region/' + region, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function selectDeviceListOne() { |
|||
return request({ |
|||
url: 'api/device/selectListOne', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
export function selectDeviceListTwo() { |
|||
return request({ |
|||
url: 'api/device/selectListTwo', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
export function selectDeviceListThree() { |
|||
return request({ |
|||
url: 'api/device/selectListThree', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function selectDeviceDevicerInfo(status) { |
|||
return request({ |
|||
url: 'api/device/selectDeviceDevicerInfo/' + status, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function changeDeviceStatus(data) { |
|||
return request({ |
|||
url: 'api/device/changeDeviceStatus', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function saveBarcode(data) { |
|||
return request({ |
|||
url: 'api/device/updateBarcode', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function callAgv(data) { |
|||
return request({ |
|||
url: 'api/device/callAgv', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function addMaterial(data) { |
|||
return request({ |
|||
url: 'api/device/addMaterial', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function responseAgv(data) { |
|||
return request({ |
|||
url: 'api/device/responseAgv', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function autoCreateTask(data) { |
|||
return request({ |
|||
url: 'api/device/autoCreateTask', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function cleanTask(data) { |
|||
return request({ |
|||
url: 'api/device/cleanTask', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function cleanMaterial(data) { |
|||
return request({ |
|||
url: 'api/device/cleanMaterial', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function queryStorageExtra(storage_code) { |
|||
return request({ |
|||
url: 'api/device/queryStorageExtra/' + storage_code, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function reload() { |
|||
return request({ |
|||
url: 'api/device/reload', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function selectRequestMethodList() { |
|||
return request({ |
|||
url: 'api/device/selectRequestMethodList', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function excelImport(data) { |
|||
return request({ |
|||
url: 'api/device/excelImport', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, selectDeviceList, selectDeviceListByRegion, callAgv, responseAgv, selectDeviceDevicerInfo, autoCreateTask, |
|||
changeDeviceStatus, cleanTask, queryStorageExtra, selectConDeviceList, saveBarcode, selectDeviceListOne, selectDeviceListTwo, selectDeviceListThree, |
|||
addMaterial, cleanMaterial, reload, selectRequestMethodList, excelImport } |
@ -0,0 +1,35 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/deviceDbitem', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
const data = { |
|||
id: 1, |
|||
name2: '张三', |
|||
info: { |
|||
id: 999, |
|||
str: 'str111' |
|||
} |
|||
} |
|||
return request({ |
|||
url: 'api/deviceDbitem/getUserJson', |
|||
method: 'get', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/deviceDbitem', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del } |
@ -0,0 +1,9 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function getDeviceByCodes(data) { // 获取舞台上设备信息
|
|||
return request({ |
|||
url: 'api/deviceInfo/getDeviceByCodes', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
@ -0,0 +1,90 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function get(device_code) { |
|||
return request({ |
|||
url: 'api/device/' + device_code, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function queryDriverConfig(device_id, driver_code) { |
|||
const data = { |
|||
device_id: device_id, |
|||
driver_code: driver_code |
|||
} |
|||
return request({ |
|||
url: 'api/device/driverConfig', |
|||
data, |
|||
method: 'post' |
|||
}) |
|||
} |
|||
|
|||
export function selectDriverCodeList(device_code) { |
|||
return request({ |
|||
url: 'api/device/selectDriverCodeList/' + device_code, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function updateConfig(parentForm, form, modeform, data1, data2) { |
|||
const data = { |
|||
parentForm, |
|||
form, |
|||
modeform, |
|||
data1, |
|||
data2 |
|||
} |
|||
return request({ |
|||
url: 'api/device/updateConfig', |
|||
data, |
|||
method: 'post' |
|||
}) |
|||
} |
|||
|
|||
export function testRead(dbItems, opc_id) { |
|||
const data = { |
|||
dbItems: dbItems, |
|||
opc_id: opc_id |
|||
} |
|||
return request({ |
|||
url: 'api/device/testRead', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function testwrite(dbItems, opc_id) { |
|||
const data = { |
|||
dbItems: dbItems, |
|||
opc_id: opc_id |
|||
} |
|||
return request({ |
|||
url: 'api/device/testWrite', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function queryDBInfoByDriverCode(driverCode) { |
|||
return request({ |
|||
url: 'api/device/queryDBInfoByDriverCode/' + driverCode, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function downloadProtocolConfig(data) { |
|||
return request({ |
|||
url: 'api/device/downloadProtocolConfig', |
|||
method: 'post', |
|||
data, |
|||
responseType: 'blob' |
|||
}) |
|||
} |
|||
|
|||
export function getAllDriverCodeList() { |
|||
return request({ |
|||
url: 'api/device/getAllDriverCodeList', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
@ -0,0 +1,66 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/opc', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/opc/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function selectOpcList() { |
|||
return request({ |
|||
url: 'api/opc/selectList', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/opc', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function getmeteal(data) { |
|||
return request({ |
|||
url: 'api/opc/getmeteal', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function addPLC(data) { |
|||
return request({ |
|||
url: 'api/opc/addPLC', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function editPLC(data) { |
|||
return request({ |
|||
url: 'api/opc/editPLC', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function delPLC(data) { |
|||
return request({ |
|||
url: 'api/opc/delPLC', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, selectOpcList, getmeteal, addPLC, delPLC, editPLC } |
@ -0,0 +1,41 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/opcPlc', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/opcPlc/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/opcPlc', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function selectPlcList() { |
|||
return request({ |
|||
url: 'api/opcPlc/selectList', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function selectListByOpcID(opc_uuid) { |
|||
return request({ |
|||
url: 'api/opcPlc/selectList/' + opc_uuid, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, selectPlcList, selectListByOpcID } |
@ -0,0 +1,27 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/storageCell', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/storageCell/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/storageCell', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del } |
@ -0,0 +1,28 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/task', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/task/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/task', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { edit, del } |
|||
|
@ -0,0 +1,73 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/instruction', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/instruction/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/instruction', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function finish(instruction_id) { |
|||
return request({ |
|||
url: 'api/instruction/finish/' + instruction_id, |
|||
method: 'post', |
|||
data: instruction_id |
|||
}) |
|||
} |
|||
|
|||
export function cancel(instruction_id) { |
|||
return request({ |
|||
url: 'api/instruction/cancel/' + instruction_id, |
|||
method: 'post', |
|||
data: instruction_id |
|||
}) |
|||
} |
|||
|
|||
export function queryUnFinish() { |
|||
return request({ |
|||
url: 'api/instruction/unfinish/', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function queryByTaskId(task_id) { |
|||
return request({ |
|||
url: 'api/instruction/queryByTaskId/' + task_id, |
|||
method: 'post', |
|||
data: task_id |
|||
}) |
|||
} |
|||
|
|||
export function reload() { |
|||
return request({ |
|||
url: 'api/instruction/reload', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function sendToAGV(instruction_id) { |
|||
return request({ |
|||
url: 'api/instruction/sendToAGV', |
|||
method: 'post', |
|||
data: instruction_id |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, finish, cancel, queryUnFinish, queryByTaskId, reload, sendToAGV } |
@ -0,0 +1,10 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function delAll(id) { |
|||
return request({ |
|||
url: 'api/lucene/' + id, |
|||
method: 'delete' |
|||
}) |
|||
} |
|||
|
|||
export default { delAll } |
@ -0,0 +1,35 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/produceshiftorder', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/produceshiftorder/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function finish(order_id) { |
|||
return request({ |
|||
url: 'api/produceshiftorder/finish/' + order_id, |
|||
method: 'post', |
|||
data: order_id |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/produceshiftorder', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, finish } |
@ -0,0 +1,40 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/routeLine', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/routeLine/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/routeLine', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} export function enabled(data) { |
|||
return request({ |
|||
url: 'api/routeLine/enabled', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function reload() { |
|||
return request({ |
|||
url: 'api/routeLine/reload', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, enabled, reload } |
@ -0,0 +1,27 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/routeLoc', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/routeLoc/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/routeLoc', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del } |
@ -0,0 +1,40 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/routePlan', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/routePlan/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/routePlan', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function selectList() { |
|||
return request({ |
|||
url: 'api/routePlan/selectList', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
export function getRoute(device_code, next_device_code, route_plan_code) { |
|||
return request({ |
|||
url: '/api/routeLine/getShortPathLines?device_code=' + device_code + '&next_device_code=' + next_device_code + '&route_plan_code=' + route_plan_code, |
|||
method: 'post' |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, selectList, getRoute } |
@ -0,0 +1,42 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/stageActor', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/stageActor/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/stageActor', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function saveData(data) { |
|||
return request({ |
|||
url: 'api/stageActor/saveData', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function queryStageActor(stage_code) { |
|||
return request({ |
|||
url: 'api/stageActor/queryStageActor/' + stage_code, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, saveData, queryStageActor } |
@ -0,0 +1,34 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/stage', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/stage/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/stage', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function selectStageList() { |
|||
return request({ |
|||
url: 'api/stage/selectList', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, selectStageList } |
@ -0,0 +1,27 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/stageImage', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/stageImage/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/stageImage', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del } |
@ -0,0 +1,99 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/task', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/task/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/task', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function finish(task_id) { |
|||
return request({ |
|||
url: 'api/task/finish/' + task_id, |
|||
method: 'post', |
|||
data: task_id |
|||
}) |
|||
} |
|||
|
|||
export function cancel(task_id) { |
|||
return request({ |
|||
url: 'api/task/cancel/' + task_id, |
|||
method: 'post', |
|||
data: task_id |
|||
}) |
|||
} |
|||
|
|||
export function createInst(task_id) { |
|||
return request({ |
|||
url: 'api/task/createInst/' + task_id, |
|||
method: 'post', |
|||
data: task_id |
|||
}) |
|||
} |
|||
|
|||
export function createTaskByClick(data) { |
|||
return request({ |
|||
url: 'api/task/createTaskByClick', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function queryTaskTreeRecord(data) { |
|||
return request({ |
|||
url: 'api/task/queryTaskTreeRecord', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function deviceAskTask(data) { |
|||
return request({ |
|||
url: 'api/task/deviceAskTask', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function ordinaryTaskCreate(data) { |
|||
return request({ |
|||
url: 'api/task/adds', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function specialTaskCreate(data) { |
|||
return request({ |
|||
url: 'api/task/addes', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function reload() { |
|||
return request({ |
|||
url: 'api/task/reload', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, finish, cancel, createTaskByClick, deviceAskTask, ordinaryTaskCreate, specialTaskCreate, createInst, reload } |
|||
|
@ -0,0 +1,19 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function retry(task_id) { |
|||
return request({ |
|||
url: 'api/taskFeedback/retry/' + task_id, |
|||
method: 'post', |
|||
data: task_id |
|||
}) |
|||
} |
|||
|
|||
export function invalid(task_id) { |
|||
return request({ |
|||
url: 'api/taskFeedback/invalid/' + task_id, |
|||
method: 'post', |
|||
data: task_id |
|||
}) |
|||
} |
|||
|
|||
export default { retry, invalid } |
@ -0,0 +1,55 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function test1() { |
|||
return request({ |
|||
url: 'api/test/test1', |
|||
method: 'post' |
|||
}) |
|||
} |
|||
|
|||
export function test2() { |
|||
return request({ |
|||
url: 'api/test/test2', |
|||
method: 'post' |
|||
}) |
|||
} |
|||
|
|||
export function test3() { |
|||
return request({ |
|||
url: 'api/test/test3', |
|||
method: 'post' |
|||
}) |
|||
} |
|||
|
|||
export function test4(data) { |
|||
return request({ |
|||
url: 'api/test/test4', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function test5() { |
|||
return request({ |
|||
url: 'api/test/test5', |
|||
method: 'post' |
|||
}) |
|||
} |
|||
|
|||
export function test6(data) { |
|||
return request({ |
|||
url: 'api/test/test6', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function print() { |
|||
return request({ |
|||
url: 'api/test/print', |
|||
method: 'post' |
|||
}) |
|||
} |
|||
|
|||
export default { test1, test2, test3, test4, test5, test6, print } |
|||
|
@ -0,0 +1,21 @@ |
|||
import request from '@/utils/request' |
|||
import qs from 'qs' |
|||
|
|||
export function initData(url, params) { |
|||
if (params.createTime) { |
|||
params.begin_time = params.createTime[0] |
|||
params.end_time = params.createTime[1] |
|||
} |
|||
return request({ |
|||
url: url + '?' + qs.stringify(params, { indices: false }), |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function download(url, params) { |
|||
return request({ |
|||
url: url + '?' + qs.stringify(params, { indices: false }), |
|||
method: 'get', |
|||
responseType: 'blob' |
|||
}) |
|||
} |
@ -0,0 +1,16 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function get(tableName) { |
|||
return request({ |
|||
url: 'api/genConfig/' + tableName, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function update(data) { |
|||
return request({ |
|||
url: 'api/genConfig', |
|||
data, |
|||
method: 'put' |
|||
}) |
|||
} |
@ -0,0 +1,33 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function getAllTable() { |
|||
return request({ |
|||
url: 'api/generator/tables/all', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function generator(tableName, type) { |
|||
return request({ |
|||
url: 'api/generator/' + tableName + '/' + type, |
|||
method: 'post', |
|||
responseType: type === 2 ? 'blob' : '' |
|||
}) |
|||
} |
|||
|
|||
export function save(data) { |
|||
return request({ |
|||
url: 'api/generator', |
|||
data, |
|||
method: 'put' |
|||
}) |
|||
} |
|||
|
|||
export function sync(tables) { |
|||
return request({ |
|||
url: 'api/generator/sync', |
|||
method: 'post', |
|||
data: tables |
|||
}) |
|||
} |
|||
|
@ -0,0 +1,50 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/stage', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/stage/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/stage', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function selectStageList() { |
|||
return request({ |
|||
url: 'api/stage/selectList', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function addNewStage(data) { // 保存舞台数据
|
|||
return request({ |
|||
url: 'api/stage/addNewStage', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function getNewStageDataByCode(code) { |
|||
return request({ |
|||
url: 'api/stage/getNewStageDataByCode', |
|||
method: 'post', |
|||
data: code |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, selectStageList, addNewStage, getNewStageDataByCode } |
@ -0,0 +1,34 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/stageImage', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/stageImage/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/stageImage', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function selectStageIconList() { |
|||
return request({ |
|||
url: 'api/stageImage/selectList', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, selectStageIconList } |
@ -0,0 +1,36 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function login(username, password, code, uuid) { |
|||
// debugger
|
|||
return request({ |
|||
url: 'auth/login', |
|||
method: 'post', |
|||
data: { |
|||
username, |
|||
password, |
|||
code, |
|||
uuid |
|||
} |
|||
}) |
|||
} |
|||
|
|||
export function getInfo() { |
|||
return request({ |
|||
url: 'auth/info', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function getCodeImg() { |
|||
return request({ |
|||
url: 'auth/code', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function logout() { |
|||
return request({ |
|||
url: 'auth/logout', |
|||
method: 'delete' |
|||
}) |
|||
} |
@ -0,0 +1,22 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function getErrDetail(id) { |
|||
return request({ |
|||
url: 'api/logs/error/' + id, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function delAllError() { |
|||
return request({ |
|||
url: 'api/logs/del/error', |
|||
method: 'delete' |
|||
}) |
|||
} |
|||
|
|||
export function delAllInfo() { |
|||
return request({ |
|||
url: 'api/logs/del/info', |
|||
method: 'delete' |
|||
}) |
|||
} |
@ -0,0 +1,9 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function del(keys) { |
|||
return request({ |
|||
url: 'auth/online', |
|||
method: 'delete', |
|||
data: keys |
|||
}) |
|||
} |
@ -0,0 +1,15 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function resetEmail(data) { |
|||
return request({ |
|||
url: 'api/code/resetEmail?email=' + data, |
|||
method: 'post' |
|||
}) |
|||
} |
|||
|
|||
export function updatePass(pass) { |
|||
return request({ |
|||
url: 'api/users/updatePass/' + pass, |
|||
method: 'get' |
|||
}) |
|||
} |
@ -0,0 +1,44 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function getDepts(params) { |
|||
return request({ |
|||
url: 'api/dept', |
|||
method: 'get', |
|||
params |
|||
}) |
|||
} |
|||
|
|||
export function getDeptSuperior(ids) { |
|||
const data = ids.length || ids.length === 0 ? ids : Array.of(ids) |
|||
return request({ |
|||
url: 'api/dept/superior', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/dept', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/dept', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/dept', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, getDepts, getDeptSuperior } |
@ -0,0 +1,34 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function getDicts() { |
|||
return request({ |
|||
url: 'api/dict/all', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/dict', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/dict/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/dict', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del } |
@ -0,0 +1,52 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function get(dictName) { |
|||
const params = { |
|||
dictName, |
|||
page: 0, |
|||
size: 9999 |
|||
} |
|||
return request({ |
|||
url: 'api/dictDetail', |
|||
method: 'get', |
|||
params |
|||
}) |
|||
} |
|||
|
|||
export function getDictMap(dictName) { |
|||
const params = { |
|||
dictName, |
|||
page: 0, |
|||
size: 9999 |
|||
} |
|||
return request({ |
|||
url: 'api/dictDetail/map', |
|||
method: 'get', |
|||
params |
|||
}) |
|||
} |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/dictDetail', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(id) { |
|||
return request({ |
|||
url: 'api/dictDetail/' + id, |
|||
method: 'delete' |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/dictDetail', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del } |
@ -0,0 +1,36 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function getGenCode() { |
|||
return request({ |
|||
url: 'api/genCode/all', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/genCode', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/genCode/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/genCode/', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { |
|||
add, del, edit |
|||
} |
@ -0,0 +1,33 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/grid', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/grid/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/grid', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
export function selectList() { |
|||
return request({ |
|||
url: 'api/grid/selectList', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, selectList } |
@ -0,0 +1,50 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/gridField', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
export function batchAdd(json) { // use
|
|||
return request({ |
|||
url: 'api/gridField/batchAdd', |
|||
method: 'post', |
|||
data: json |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/gridField/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/gridField', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function getGridFieldsById(id) { // use
|
|||
return request({ |
|||
url: 'api/gridField/getGridFields', |
|||
method: 'post', |
|||
data: id |
|||
}) |
|||
} |
|||
|
|||
export function getGridFieldsByCode(grid_code) { // use
|
|||
return request({ |
|||
url: 'api/gridField/getGridFieldsByCode', |
|||
method: 'post', |
|||
data: grid_code |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, batchAdd, getGridFieldsById, getGridFieldsByCode } |
@ -0,0 +1,65 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function getMenusTree(pid) { |
|||
return request({ |
|||
url: 'api/menus/lazy?pid=' + pid, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function getMenus(params) { |
|||
return request({ |
|||
url: 'api/menus', |
|||
method: 'get', |
|||
params |
|||
}) |
|||
} |
|||
|
|||
export function getMenuSuperior(ids) { |
|||
const data = ids.length || ids.length === 0 ? ids : Array.of(ids) |
|||
return request({ |
|||
url: 'api/menus/superior', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function getChild(id) { |
|||
return request({ |
|||
url: 'api/menus/child?id=' + id, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function buildMenus() { |
|||
return request({ |
|||
url: 'api/menus/build', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/menus', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/menus', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/menus', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, getMenusTree, getMenuSuperior, getMenus, getChild } |
@ -0,0 +1,35 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/param', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/param/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/param', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function getValueByCode(code) { |
|||
return request({ |
|||
url: 'api/param/getValueByCode', |
|||
method: 'post', |
|||
data: code |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, getValueByCode } |
@ -0,0 +1,35 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 查询缓存详细
|
|||
export function getCache() { |
|||
return request({ |
|||
url: '/api/redis/get-monitor-info', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 获取模块
|
|||
export function getKeyDefineList() { |
|||
return request({ |
|||
url: '/api/redis/get-key-define-list', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 获取模块
|
|||
export function getKeyValueList() { |
|||
return request({ |
|||
url: '/api/redis/get-key-value-list', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function batch(ids) { |
|||
return request({ |
|||
url: 'api/redis/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export default { getCache, getKeyDefineList, batch } |
@ -0,0 +1,57 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 获取所有的Role
|
|||
export function getAll() { |
|||
return request({ |
|||
url: 'api/roles/all', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/roles', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function get(id) { |
|||
return request({ |
|||
url: 'api/roles/' + id, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function getLevel() { |
|||
return request({ |
|||
url: 'api/roles/level', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/roles', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/roles', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function editMenu(data) { |
|||
return request({ |
|||
url: 'api/roles/menu', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, get, editMenu, getLevel } |
@ -0,0 +1,41 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/jobs', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/jobs', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/jobs', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function updateIsPause(id) { |
|||
return request({ |
|||
url: 'api/jobs/' + id, |
|||
method: 'put' |
|||
}) |
|||
} |
|||
|
|||
export function execution(id) { |
|||
return request({ |
|||
url: 'api/jobs/exec/' + id, |
|||
method: 'put' |
|||
}) |
|||
} |
|||
|
|||
export default { del, updateIsPause, execution, add, edit } |
@ -0,0 +1,61 @@ |
|||
import request from '@/utils/request' |
|||
import { encrypt } from '@/utils/rsaEncrypt' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/users', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/users', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/users', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function editUser(data) { |
|||
return request({ |
|||
url: 'api/users/center', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function updatePass(user) { |
|||
const data = { |
|||
oldPass: encrypt(user.oldPass), |
|||
newPass: encrypt(user.newPass) |
|||
} |
|||
return request({ |
|||
url: 'api/users/updatePass/', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function updateEmail(form) { |
|||
const data = { |
|||
password: encrypt(form.pass), |
|||
email: form.email |
|||
} |
|||
return request({ |
|||
url: 'api/users/updateEmail/' + form.code, |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del } |
|||
|
@ -0,0 +1,39 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function get(dictName) { |
|||
const params = { |
|||
dictName, |
|||
page: 0, |
|||
size: 9999 |
|||
} |
|||
return request({ |
|||
url: 'api/codeDetail', |
|||
method: 'get', |
|||
params |
|||
}) |
|||
} |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/codeDetail', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(id) { |
|||
return request({ |
|||
url: 'api/codeDetail/' + id, |
|||
method: 'delete' |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/codeDetail', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del } |
@ -0,0 +1,27 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/localStorage', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/localStorage/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/localStorage', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del } |
After Width: | Height: | Size: 160 KiB |
After Width: | Height: | Size: 96 KiB |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 170 B |
After Width: | Height: | Size: 727 B |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 204 B |
After Width: | Height: | Size: 504 B |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 636 B |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 8.6 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 516 B |
After Width: | Height: | Size: 513 B |
After Width: | Height: | Size: 141 B |
After Width: | Height: | Size: 207 B |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 286 B |
After Width: | Height: | Size: 549 B |
After Width: | Height: | Size: 416 B |
After Width: | Height: | Size: 444 B |
After Width: | Height: | Size: 481 B |
After Width: | Height: | Size: 525 B |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 421 B |
After Width: | Height: | Size: 488 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 423 B |
After Width: | Height: | Size: 420 B |
After Width: | Height: | Size: 692 B |