Browse Source

init

master
汪菘 2 years ago
parent
commit
dd94aec48b
  1. 10
      acs/nladmin-ui/public/config.js
  2. BIN
      acs/nladmin-ui/public/favicon.ico
  3. 16
      acs/nladmin-ui/public/index.html
  4. 36
      acs/nladmin-ui/src/App.vue
  5. 27
      acs/nladmin-ui/src/api/acs/Address.js
  6. 27
      acs/nladmin-ui/src/api/acs/config/deviceAssigned.js
  7. 27
      acs/nladmin-ui/src/api/acs/device/acsDeviceErpmapping.js
  8. 162
      acs/nladmin-ui/src/api/acs/device/device.js
  9. 35
      acs/nladmin-ui/src/api/acs/device/deviceDbitem.js
  10. 9
      acs/nladmin-ui/src/api/acs/device/deviceStageMonitor.js
  11. 89
      acs/nladmin-ui/src/api/acs/device/driverConfig.js
  12. 66
      acs/nladmin-ui/src/api/acs/device/opc.js
  13. 41
      acs/nladmin-ui/src/api/acs/device/opcPlc.js
  14. 27
      acs/nladmin-ui/src/api/acs/device/storageCell.js
  15. 81
      acs/nladmin-ui/src/api/acs/instruction/instruction.js
  16. 10
      acs/nladmin-ui/src/api/acs/lucene/log.js
  17. 40
      acs/nladmin-ui/src/api/acs/route/routeLine.js
  18. 27
      acs/nladmin-ui/src/api/acs/route/routeLoc.js
  19. 40
      acs/nladmin-ui/src/api/acs/route/routePlan.js
  20. 42
      acs/nladmin-ui/src/api/acs/stage/actor.js
  21. 34
      acs/nladmin-ui/src/api/acs/stage/stage.js
  22. 27
      acs/nladmin-ui/src/api/acs/stage/stageImage.js
  23. 99
      acs/nladmin-ui/src/api/acs/task/task.js
  24. 19
      acs/nladmin-ui/src/api/acs/task/taskFeedback.js
  25. 55
      acs/nladmin-ui/src/api/acs/test/test.js
  26. 21
      acs/nladmin-ui/src/api/data.js
  27. 16
      acs/nladmin-ui/src/api/generator/genConfig.js
  28. 33
      acs/nladmin-ui/src/api/generator/generator.js
  29. 50
      acs/nladmin-ui/src/api/logicflow/stage.js
  30. 34
      acs/nladmin-ui/src/api/logicflow/stageImage.js
  31. 36
      acs/nladmin-ui/src/api/login.js
  32. 22
      acs/nladmin-ui/src/api/monitor/log.js
  33. 9
      acs/nladmin-ui/src/api/monitor/online.js
  34. 22
      acs/nladmin-ui/src/api/system/autorun.js
  35. 15
      acs/nladmin-ui/src/api/system/code.js
  36. 44
      acs/nladmin-ui/src/api/system/dept.js
  37. 34
      acs/nladmin-ui/src/api/system/dict.js
  38. 52
      acs/nladmin-ui/src/api/system/dictDetail.js
  39. 36
      acs/nladmin-ui/src/api/system/genCode.js
  40. 33
      acs/nladmin-ui/src/api/system/grid.js
  41. 50
      acs/nladmin-ui/src/api/system/gridField.js
  42. 65
      acs/nladmin-ui/src/api/system/menu.js
  43. 35
      acs/nladmin-ui/src/api/system/param.js
  44. 35
      acs/nladmin-ui/src/api/system/redis.js
  45. 57
      acs/nladmin-ui/src/api/system/role.js
  46. 41
      acs/nladmin-ui/src/api/system/timing.js
  47. 61
      acs/nladmin-ui/src/api/system/user.js
  48. 39
      acs/nladmin-ui/src/api/tools/codeDetail.js
  49. 27
      acs/nladmin-ui/src/api/tools/localStorage.js
  50. BIN
      acs/nladmin-ui/src/assets/401_images/401.gif
  51. BIN
      acs/nladmin-ui/src/assets/404_images/404.png
  52. BIN
      acs/nladmin-ui/src/assets/404_images/404_cloud.png
  53. BIN
      acs/nladmin-ui/src/assets/acs/1.png
  54. BIN
      acs/nladmin-ui/src/assets/acs/AGV.png
  55. BIN
      acs/nladmin-ui/src/assets/acs/AGV1.png
  56. BIN
      acs/nladmin-ui/src/assets/acs/BCR.png
  57. BIN
      acs/nladmin-ui/src/assets/acs/BCR1.png
  58. BIN
      acs/nladmin-ui/src/assets/acs/CPJ.png
  59. BIN
      acs/nladmin-ui/src/assets/acs/DDJ.png
  60. BIN
      acs/nladmin-ui/src/assets/acs/DDJ1.png
  61. BIN
      acs/nladmin-ui/src/assets/acs/HPJ.png
  62. BIN
      acs/nladmin-ui/src/assets/acs/SSJ.png
  63. BIN
      acs/nladmin-ui/src/assets/acs/SSJ1.png
  64. BIN
      acs/nladmin-ui/src/assets/acs/del_new.png
  65. BIN
      acs/nladmin-ui/src/assets/acs/home_agv.png
  66. BIN
      acs/nladmin-ui/src/assets/acs/icon_alert.png
  67. BIN
      acs/nladmin-ui/src/assets/acs/icon_alert2.png
  68. BIN
      acs/nladmin-ui/src/assets/acs/status0.png
  69. BIN
      acs/nladmin-ui/src/assets/acs/status1.png
  70. BIN
      acs/nladmin-ui/src/assets/acs/undefined.png
  71. BIN
      acs/nladmin-ui/src/assets/acs/一.png
  72. BIN
      acs/nladmin-ui/src/assets/acs/三.png
  73. BIN
      acs/nladmin-ui/src/assets/acs/三通一体机.png
  74. BIN
      acs/nladmin-ui/src/assets/acs/下.png
  75. BIN
      acs/nladmin-ui/src/assets/acs/专机.png
  76. BIN
      acs/nladmin-ui/src/assets/acs/仓.png
  77. BIN
      acs/nladmin-ui/src/assets/acs/伸.png
  78. BIN
      acs/nladmin-ui/src/assets/acs/体.png
  79. BIN
      acs/nladmin-ui/src/assets/acs/储.png
  80. BIN
      acs/nladmin-ui/src/assets/acs/储料仓.png
  81. BIN
      acs/nladmin-ui/src/assets/acs/光.png
  82. BIN
      acs/nladmin-ui/src/assets/acs/刻.png
  83. BIN
      acs/nladmin-ui/src/assets/acs/刻字机.png
  84. BIN
      acs/nladmin-ui/src/assets/acs/加.png
  85. BIN
      acs/nladmin-ui/src/assets/acs/包.png
  86. BIN
      acs/nladmin-ui/src/assets/acs/包装机1.png
  87. BIN
      acs/nladmin-ui/src/assets/acs/包装机2.png
  88. BIN
      acs/nladmin-ui/src/assets/acs/包装机3.png
  89. BIN
      acs/nladmin-ui/src/assets/acs/包装机4.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/屑.png

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://127.0.0.1:8010'
}
}

BIN
acs/nladmin-ui/public/favicon.ico

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

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>

36
acs/nladmin-ui/src/App.vue

@ -0,0 +1,36 @@
<template>
<div id="app" @mousemove="moveEvent" @click="moveEvent">
<router-view />
</div>
</template>
<script>
export default {
name: 'App',
data() {
return {
timmer: null
}
},
methods: {
moveEvent: function() {
const path = ['/login']
if (!path.includes(this.$route.path)) {
clearTimeout(this.timmer)
this.init()
}
},
init: function() {
this.timmer = setTimeout(() => {
sessionStorage.clear()
this.logout()
}, 100000 * 60 * 60) // 15分钟 https://blog.csdn.net/qq_42345108/article/details/103496456
},
logout() {
this.$store.dispatch('LogOut').then(() => {
location.reload()
})
}
}
}
</script>

27
acs/nladmin-ui/src/api/acs/Address.js

@ -0,0 +1,27 @@
import request from '@/utils/request'
export function add(data) {
return request({
url: 'api/Address',
method: 'post',
data
})
}
export function del(ids) {
return request({
url: 'api/Address/',
method: 'delete',
data: ids
})
}
export function edit(data) {
return request({
url: 'api/Address',
method: 'put',
data
})
}
export default { add, edit, del }

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 }

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

@ -0,0 +1,162 @@
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 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, 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
})
}

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

@ -0,0 +1,89 @@
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, data1, data2) {
const data = {
parentForm,
form,
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 }

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

@ -0,0 +1,81 @@
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 forceCancel(instruction_id) {
return request({
url: 'api/instruction/forceCancel/' + 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 init(instruction_id) {
return request({
url: 'api/instruction/init/' + instruction_id,
method: 'post',
data: instruction_id
})
}
export default { add, edit, del, finish, cancel, forceCancel, queryUnFinish, queryByTaskId, reload, init }

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 }

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

22
acs/nladmin-ui/src/api/system/autorun.js

@ -0,0 +1,22 @@
import request from '@/utils/request'
export function getAll() {
return request({
url: 'api/autorun',
method: 'get'
})
}
export function start(id) {
return request({
url: 'api/autorun/start/' + id,
method: 'put'
})
} export function stop(id) {
return request({
url: 'api/autorun/stop/' + id,
method: 'put'
})
}
export default { start, stop }

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/CPJ.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 548 B

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/undefined.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 727 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

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 378 B

BIN
acs/nladmin-ui/src/assets/acs/区域横.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 B

BIN
acs/nladmin-ui/src/assets/acs/区域竖.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 303 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 381 B

BIN
acs/nladmin-ui/src/assets/acs/叠盘机.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 657 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 B

BIN
acs/nladmin-ui/src/assets/acs/墙面横.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 B

BIN
acs/nladmin-ui/src/assets/acs/墙面竖.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 370 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 383 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 343 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 432 B

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

Loading…
Cancel
Save