Browse Source

init:前端

master
zhangzq 2 days ago
parent
commit
09a03ad304
  1. 6
      .idea/inspectionProfiles/Project_Default.xml
  2. 8
      .idea/modules.xml
  3. 9
      .idea/tekela_acs.iml
  4. 6
      .idea/vcs.xml
  5. 14
      acs/nladmin-ui/.editorconfig
  6. 8
      acs/nladmin-ui/.env.development
  7. 7
      acs/nladmin-ui/.env.production
  8. 4
      acs/nladmin-ui/.eslintignore
  9. 198
      acs/nladmin-ui/.eslintrc.js
  10. 5
      acs/nladmin-ui/.travis.yml
  11. 191
      acs/nladmin-ui/LICENSE
  12. 36
      acs/nladmin-ui/README.en.md
  13. 2
      acs/nladmin-ui/README.md
  14. 11
      acs/nladmin-ui/babel.config.js
  15. 24
      acs/nladmin-ui/jest.config.js
  16. 132
      acs/nladmin-ui/package.json
  17. 7
      acs/nladmin-ui/plopfile.js
  18. 5
      acs/nladmin-ui/postcss.config.js
  19. 10
      acs/nladmin-ui/public/config.js
  20. 16
      acs/nladmin-ui/public/index.html
  21. 27
      acs/nladmin-ui/src/api/acs/config/deviceAssigned.js
  22. 27
      acs/nladmin-ui/src/api/acs/device/acsDeviceErpmapping.js
  23. 169
      acs/nladmin-ui/src/api/acs/device/device.js
  24. 35
      acs/nladmin-ui/src/api/acs/device/deviceDbitem.js
  25. 9
      acs/nladmin-ui/src/api/acs/device/deviceStageMonitor.js
  26. 90
      acs/nladmin-ui/src/api/acs/device/driverConfig.js
  27. 66
      acs/nladmin-ui/src/api/acs/device/opc.js
  28. 41
      acs/nladmin-ui/src/api/acs/device/opcPlc.js
  29. 27
      acs/nladmin-ui/src/api/acs/device/storageCell.js
  30. 28
      acs/nladmin-ui/src/api/acs/history/udwData.js
  31. 73
      acs/nladmin-ui/src/api/acs/instruction/instruction.js
  32. 10
      acs/nladmin-ui/src/api/acs/lucene/log.js
  33. 35
      acs/nladmin-ui/src/api/acs/produceshiftorder/produceshiftorder.js
  34. 40
      acs/nladmin-ui/src/api/acs/route/routeLine.js
  35. 27
      acs/nladmin-ui/src/api/acs/route/routeLoc.js
  36. 40
      acs/nladmin-ui/src/api/acs/route/routePlan.js
  37. 42
      acs/nladmin-ui/src/api/acs/stage/actor.js
  38. 34
      acs/nladmin-ui/src/api/acs/stage/stage.js
  39. 27
      acs/nladmin-ui/src/api/acs/stage/stageImage.js
  40. 99
      acs/nladmin-ui/src/api/acs/task/task.js
  41. 19
      acs/nladmin-ui/src/api/acs/task/taskFeedback.js
  42. 55
      acs/nladmin-ui/src/api/acs/test/test.js
  43. 21
      acs/nladmin-ui/src/api/data.js
  44. 16
      acs/nladmin-ui/src/api/generator/genConfig.js
  45. 33
      acs/nladmin-ui/src/api/generator/generator.js
  46. 50
      acs/nladmin-ui/src/api/logicflow/stage.js
  47. 34
      acs/nladmin-ui/src/api/logicflow/stageImage.js
  48. 36
      acs/nladmin-ui/src/api/login.js
  49. 22
      acs/nladmin-ui/src/api/monitor/log.js
  50. 9
      acs/nladmin-ui/src/api/monitor/online.js
  51. 15
      acs/nladmin-ui/src/api/system/code.js
  52. 44
      acs/nladmin-ui/src/api/system/dept.js
  53. 34
      acs/nladmin-ui/src/api/system/dict.js
  54. 52
      acs/nladmin-ui/src/api/system/dictDetail.js
  55. 36
      acs/nladmin-ui/src/api/system/genCode.js
  56. 33
      acs/nladmin-ui/src/api/system/grid.js
  57. 50
      acs/nladmin-ui/src/api/system/gridField.js
  58. 65
      acs/nladmin-ui/src/api/system/menu.js
  59. 35
      acs/nladmin-ui/src/api/system/param.js
  60. 35
      acs/nladmin-ui/src/api/system/redis.js
  61. 57
      acs/nladmin-ui/src/api/system/role.js
  62. 41
      acs/nladmin-ui/src/api/system/timing.js
  63. 61
      acs/nladmin-ui/src/api/system/user.js
  64. 39
      acs/nladmin-ui/src/api/tools/codeDetail.js
  65. 27
      acs/nladmin-ui/src/api/tools/localStorage.js
  66. BIN
      acs/nladmin-ui/src/assets/401_images/401.gif
  67. BIN
      acs/nladmin-ui/src/assets/404_images/404.png
  68. BIN
      acs/nladmin-ui/src/assets/404_images/404_cloud.png
  69. BIN
      acs/nladmin-ui/src/assets/acs/1.png
  70. BIN
      acs/nladmin-ui/src/assets/acs/AGV.png
  71. BIN
      acs/nladmin-ui/src/assets/acs/AGV1.png
  72. BIN
      acs/nladmin-ui/src/assets/acs/BCR.png
  73. BIN
      acs/nladmin-ui/src/assets/acs/BCR1.png
  74. BIN
      acs/nladmin-ui/src/assets/acs/DDJ.png
  75. BIN
      acs/nladmin-ui/src/assets/acs/DDJ1.png
  76. BIN
      acs/nladmin-ui/src/assets/acs/HPJ.png
  77. BIN
      acs/nladmin-ui/src/assets/acs/SSJ.png
  78. BIN
      acs/nladmin-ui/src/assets/acs/SSJ1.png
  79. BIN
      acs/nladmin-ui/src/assets/acs/del_new.png
  80. BIN
      acs/nladmin-ui/src/assets/acs/home_agv.png
  81. BIN
      acs/nladmin-ui/src/assets/acs/icon_alert.png
  82. BIN
      acs/nladmin-ui/src/assets/acs/icon_alert2.png
  83. BIN
      acs/nladmin-ui/src/assets/acs/status0.png
  84. BIN
      acs/nladmin-ui/src/assets/acs/status1.png
  85. BIN
      acs/nladmin-ui/src/assets/acs/一.png
  86. BIN
      acs/nladmin-ui/src/assets/acs/三.png
  87. BIN
      acs/nladmin-ui/src/assets/acs/三通一体机.png
  88. BIN
      acs/nladmin-ui/src/assets/acs/下.png
  89. BIN
      acs/nladmin-ui/src/assets/acs/专机.png
  90. BIN
      acs/nladmin-ui/src/assets/acs/仓.png
  91. BIN
      acs/nladmin-ui/src/assets/acs/伸.png
  92. BIN
      acs/nladmin-ui/src/assets/acs/体.png
  93. BIN
      acs/nladmin-ui/src/assets/acs/储.png
  94. BIN
      acs/nladmin-ui/src/assets/acs/储料仓.png
  95. BIN
      acs/nladmin-ui/src/assets/acs/光.png
  96. BIN
      acs/nladmin-ui/src/assets/acs/刻.png
  97. BIN
      acs/nladmin-ui/src/assets/acs/刻字机.png
  98. BIN
      acs/nladmin-ui/src/assets/acs/加.png
  99. BIN
      acs/nladmin-ui/src/assets/acs/包.png
  100. BIN
      acs/nladmin-ui/src/assets/acs/包装机1.png

6
.idea/inspectionProfiles/Project_Default.xml

@ -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>

8
.idea/modules.xml

@ -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>

9
.idea/tekela_acs.iml

@ -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>

6
.idea/vcs.xml

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

14
acs/nladmin-ui/.editorconfig

@ -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

8
acs/nladmin-ui/.env.development

@ -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

7
acs/nladmin-ui/.env.production

@ -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'

4
acs/nladmin-ui/.eslintignore

@ -0,0 +1,4 @@
build/*.js
src/assets
public
dist

198
acs/nladmin-ui/.eslintrc.js

@ -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']
}
}

5
acs/nladmin-ui/.travis.yml

@ -0,0 +1,5 @@
language: node_js
node_js: 10
script: npm run test
notifications:
email: false

191
acs/nladmin-ui/LICENSE

@ -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.

36
acs/nladmin-ui/README.en.md

@ -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/)

2
acs/nladmin-ui/README.md

@ -0,0 +1,2 @@
# 武汉新锐MES前端

11
acs/nladmin-ui/babel.config.js

@ -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'
]
}

24
acs/nladmin-ui/jest.config.js

@ -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/'
}

132
acs/nladmin-ui/package.json

@ -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"
]
}

7
acs/nladmin-ui/plopfile.js

@ -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)
}

5
acs/nladmin-ui/postcss.config.js

@ -0,0 +1,5 @@
module.exports = {
plugins: {
autoprefixer: {}
}
}

10
acs/nladmin-ui/public/config.js

@ -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'
}
}

16
acs/nladmin-ui/public/index.html

@ -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>

27
acs/nladmin-ui/src/api/acs/config/deviceAssigned.js

@ -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 }

27
acs/nladmin-ui/src/api/acs/device/acsDeviceErpmapping.js

@ -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 }

169
acs/nladmin-ui/src/api/acs/device/device.js

@ -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 }

35
acs/nladmin-ui/src/api/acs/device/deviceDbitem.js

@ -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 }

9
acs/nladmin-ui/src/api/acs/device/deviceStageMonitor.js

@ -0,0 +1,9 @@
import request from '@/utils/request'
export function getDeviceByCodes(data) { // 获取舞台上设备信息
return request({
url: 'api/deviceInfo/getDeviceByCodes',
method: 'post',
data: data
})
}

90
acs/nladmin-ui/src/api/acs/device/driverConfig.js

@ -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'
})
}

66
acs/nladmin-ui/src/api/acs/device/opc.js

@ -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 }

41
acs/nladmin-ui/src/api/acs/device/opcPlc.js

@ -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 }

27
acs/nladmin-ui/src/api/acs/device/storageCell.js

@ -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 }

28
acs/nladmin-ui/src/api/acs/history/udwData.js

@ -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 }

73
acs/nladmin-ui/src/api/acs/instruction/instruction.js

@ -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 }

10
acs/nladmin-ui/src/api/acs/lucene/log.js

@ -0,0 +1,10 @@
import request from '@/utils/request'
export function delAll(id) {
return request({
url: 'api/lucene/' + id,
method: 'delete'
})
}
export default { delAll }

35
acs/nladmin-ui/src/api/acs/produceshiftorder/produceshiftorder.js

@ -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 }

40
acs/nladmin-ui/src/api/acs/route/routeLine.js

@ -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 }

27
acs/nladmin-ui/src/api/acs/route/routeLoc.js

@ -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 }

40
acs/nladmin-ui/src/api/acs/route/routePlan.js

@ -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 }

42
acs/nladmin-ui/src/api/acs/stage/actor.js

@ -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 }

34
acs/nladmin-ui/src/api/acs/stage/stage.js

@ -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 }

27
acs/nladmin-ui/src/api/acs/stage/stageImage.js

@ -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 }

99
acs/nladmin-ui/src/api/acs/task/task.js

@ -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 }

19
acs/nladmin-ui/src/api/acs/task/taskFeedback.js

@ -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 }

55
acs/nladmin-ui/src/api/acs/test/test.js

@ -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 }

21
acs/nladmin-ui/src/api/data.js

@ -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'
})
}

16
acs/nladmin-ui/src/api/generator/genConfig.js

@ -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'
})
}

33
acs/nladmin-ui/src/api/generator/generator.js

@ -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
})
}

50
acs/nladmin-ui/src/api/logicflow/stage.js

@ -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 }

34
acs/nladmin-ui/src/api/logicflow/stageImage.js

@ -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 }

36
acs/nladmin-ui/src/api/login.js

@ -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'
})
}

22
acs/nladmin-ui/src/api/monitor/log.js

@ -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'
})
}

9
acs/nladmin-ui/src/api/monitor/online.js

@ -0,0 +1,9 @@
import request from '@/utils/request'
export function del(keys) {
return request({
url: 'auth/online',
method: 'delete',
data: keys
})
}

15
acs/nladmin-ui/src/api/system/code.js

@ -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'
})
}

44
acs/nladmin-ui/src/api/system/dept.js

@ -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 }

34
acs/nladmin-ui/src/api/system/dict.js

@ -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 }

52
acs/nladmin-ui/src/api/system/dictDetail.js

@ -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 }

36
acs/nladmin-ui/src/api/system/genCode.js

@ -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
}

33
acs/nladmin-ui/src/api/system/grid.js

@ -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 }

50
acs/nladmin-ui/src/api/system/gridField.js

@ -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 }

65
acs/nladmin-ui/src/api/system/menu.js

@ -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 }

35
acs/nladmin-ui/src/api/system/param.js

@ -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 }

35
acs/nladmin-ui/src/api/system/redis.js

@ -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 }

57
acs/nladmin-ui/src/api/system/role.js

@ -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 }

41
acs/nladmin-ui/src/api/system/timing.js

@ -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 }

61
acs/nladmin-ui/src/api/system/user.js

@ -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 }

39
acs/nladmin-ui/src/api/tools/codeDetail.js

@ -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 }

27
acs/nladmin-ui/src/api/tools/localStorage.js

@ -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 }

BIN
acs/nladmin-ui/src/assets/401_images/401.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 KiB

BIN
acs/nladmin-ui/src/assets/404_images/404.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

BIN
acs/nladmin-ui/src/assets/404_images/404_cloud.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

BIN
acs/nladmin-ui/src/assets/acs/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 B

BIN
acs/nladmin-ui/src/assets/acs/AGV.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 727 B

BIN
acs/nladmin-ui/src/assets/acs/AGV1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
acs/nladmin-ui/src/assets/acs/BCR.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
acs/nladmin-ui/src/assets/acs/BCR1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
acs/nladmin-ui/src/assets/acs/DDJ.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
acs/nladmin-ui/src/assets/acs/DDJ1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 204 B

BIN
acs/nladmin-ui/src/assets/acs/HPJ.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 504 B

BIN
acs/nladmin-ui/src/assets/acs/SSJ.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
acs/nladmin-ui/src/assets/acs/SSJ1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 636 B

BIN
acs/nladmin-ui/src/assets/acs/del_new.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

BIN
acs/nladmin-ui/src/assets/acs/home_agv.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

BIN
acs/nladmin-ui/src/assets/acs/icon_alert.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
acs/nladmin-ui/src/assets/acs/icon_alert2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

BIN
acs/nladmin-ui/src/assets/acs/status0.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 516 B

BIN
acs/nladmin-ui/src/assets/acs/status1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 513 B

BIN
acs/nladmin-ui/src/assets/acs/一.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 B

BIN
acs/nladmin-ui/src/assets/acs/三.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 B

BIN
acs/nladmin-ui/src/assets/acs/三通一体机.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
acs/nladmin-ui/src/assets/acs/下.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 286 B

BIN
acs/nladmin-ui/src/assets/acs/专机.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 549 B

BIN
acs/nladmin-ui/src/assets/acs/仓.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 416 B

BIN
acs/nladmin-ui/src/assets/acs/伸.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 444 B

BIN
acs/nladmin-ui/src/assets/acs/体.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 481 B

BIN
acs/nladmin-ui/src/assets/acs/储.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 525 B

BIN
acs/nladmin-ui/src/assets/acs/储料仓.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
acs/nladmin-ui/src/assets/acs/光.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 421 B

BIN
acs/nladmin-ui/src/assets/acs/刻.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 488 B

BIN
acs/nladmin-ui/src/assets/acs/刻字机.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
acs/nladmin-ui/src/assets/acs/加.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 423 B

BIN
acs/nladmin-ui/src/assets/acs/包.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 420 B

BIN
acs/nladmin-ui/src/assets/acs/包装机1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 692 B

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save