@ -0,0 +1,9 @@ |
|||
window.g = { |
|||
dev: { |
|||
VUE_APP_BASE_API: 'http://127.0.0.1:8011' |
|||
}, |
|||
prod: { |
|||
VUE_APP_BASE_API: 'http://127.0.0.1:8011' |
|||
} |
|||
|
|||
} |
After Width: | Height: | Size: 66 KiB |
@ -0,0 +1,16 @@ |
|||
<!DOCTYPE html> |
|||
<html> |
|||
<head> |
|||
<meta charset="utf-8"> |
|||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
|||
<meta name="renderer" content="webkit"> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> |
|||
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> |
|||
<script type="text/javascript" src="<%= BASE_URL %>config.js"></script> |
|||
<title><%= webpackConfig.name %></title> |
|||
</head> |
|||
<body> |
|||
<div id="app"></div> |
|||
<!-- built files will be auto injected --> |
|||
</body> |
|||
</html> |
@ -0,0 +1,37 @@ |
|||
<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() |
|||
}, 1000 * 60 * 151) // 15分钟 https://blog.csdn.net/qq_42345108/article/details/103496456 |
|||
}, |
|||
logout() { |
|||
this.$store.dispatch('LogOut').then(() => { |
|||
location.reload() |
|||
}) |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
@ -0,0 +1,34 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/Address', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function queryAddressCodeList() { |
|||
return request({ |
|||
url: 'api/Address/queryAddressCodeList', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
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, queryAddressCodeList } |
@ -0,0 +1,35 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/acsPointAngle', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/acsPointAngle/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/acsPointAngle', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function updateOn(id, is_active) { |
|||
console.log(is_active) |
|||
return request({ |
|||
url: '/api/acsPointAngle/updateActive?id=' + id + '&is_active=' + is_active, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, updateOn } |
@ -0,0 +1,27 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/deviceAssigned', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/deviceAssigned/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/deviceAssigned', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del } |
@ -0,0 +1,27 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/acsDeviceErpmapping', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/acsDeviceErpmapping/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/acsDeviceErpmapping', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del } |
@ -0,0 +1,33 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/customPolicy', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/customPolicy/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/customPolicy', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
export function updateOn(id, is_on) { |
|||
console.log(is_on) |
|||
return request({ |
|||
url: '/api/customPolicy/updateOn?id=' + id + '&is_on=' + is_on, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
export default { add, edit, del, updateOn } |
@ -0,0 +1,29 @@ |
|||
import request from '@/utils/request' |
|||
export function updateConfig(plans, deviceCode, id) { |
|||
const data = { |
|||
plans, |
|||
deviceCode, |
|||
id |
|||
} |
|||
return request({ |
|||
url: '/api/customPolicy/plantAdd', |
|||
data, |
|||
method: 'post' |
|||
}) |
|||
} |
|||
|
|||
export function selectById(id) { |
|||
return request({ |
|||
url: '/api/customPolicy/plantList?id=' + id, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function findDeviceStrategyOption() { |
|||
return request({ |
|||
url: '/api/customPolicy/getStrategy', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export default { findDeviceStrategyOption } |
@ -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 excelImport(data) { |
|||
return request({ |
|||
url: 'api/device/excelImport', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function selectListByType() { |
|||
return request({ |
|||
url: 'api/device//type/stacker', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, selectDeviceList, selectDeviceListByRegion, callAgv, responseAgv, selectDeviceDevicerInfo, autoCreateTask, |
|||
changeDeviceStatus, cleanTask, queryStorageExtra, selectConDeviceList, saveBarcode, selectDeviceListOne, selectDeviceListTwo, selectDeviceListThree, |
|||
addMaterial, cleanMaterial, reload, excelImport, selectListByType } |
@ -0,0 +1,35 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/deviceDbitem', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
const data = { |
|||
id: 1, |
|||
name2: '张三', |
|||
info: { |
|||
id: 999, |
|||
str: 'str111' |
|||
} |
|||
} |
|||
return request({ |
|||
url: 'api/deviceDbitem/getUserJson', |
|||
method: 'get', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/deviceDbitem', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del } |
@ -0,0 +1,9 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function getDeviceByCodes(data) { // 获取舞台上设备信息
|
|||
return request({ |
|||
url: 'api/deviceInfo/getDeviceByCodes', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
@ -0,0 +1,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' |
|||
}) |
|||
} |
|||
|
@ -0,0 +1,66 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/opc', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/opc/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function selectOpcList() { |
|||
return request({ |
|||
url: 'api/opc/selectList', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/opc', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function getmeteal(data) { |
|||
return request({ |
|||
url: 'api/opc/getmeteal', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function addPLC(data) { |
|||
return request({ |
|||
url: 'api/opc/addPLC', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function editPLC(data) { |
|||
return request({ |
|||
url: 'api/opc/editPLC', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function delPLC(data) { |
|||
return request({ |
|||
url: 'api/opc/delPLC', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, selectOpcList, getmeteal, addPLC, delPLC, editPLC } |
@ -0,0 +1,41 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/opcPlc', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/opcPlc/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/opcPlc', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function selectPlcList() { |
|||
return request({ |
|||
url: 'api/opcPlc/selectList', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function selectListByOpcID(opc_uuid) { |
|||
return request({ |
|||
url: 'api/opcPlc/selectList/' + opc_uuid, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, selectPlcList, selectListByOpcID } |
@ -0,0 +1,27 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/region', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/region/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/region', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del } |
@ -0,0 +1,27 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/storageCell', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/storageCell/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/storageCell', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del } |
@ -0,0 +1,27 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/deviceErrorLog', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/deviceErrorLog/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/deviceErrorLog', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del } |
@ -0,0 +1,28 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/task', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/task/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/task', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { edit, del } |
|||
|
@ -0,0 +1,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 } |
@ -0,0 +1,10 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function delAll(id) { |
|||
return request({ |
|||
url: 'api/lucene/' + id, |
|||
method: 'delete' |
|||
}) |
|||
} |
|||
|
|||
export default { delAll } |
@ -0,0 +1,48 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/acsRegional', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/acsRegional/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/acsRegional', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function reload() { |
|||
return request({ |
|||
url: 'api/acsRegional/synchronous', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function updateOn(id, is_active) { |
|||
return request({ |
|||
url: '/api/acsRegional/updateActive?id=' + id + '&is_active=' + is_active, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function deviceByRegion() { |
|||
return request({ |
|||
url: '/api/acsRegional/selectByRegion', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, updateOn, reload, deviceByRegion } |
@ -0,0 +1,40 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/routeLine', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/routeLine/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/routeLine', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} export function enabled(data) { |
|||
return request({ |
|||
url: 'api/routeLine/enabled', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function reload() { |
|||
return request({ |
|||
url: 'api/routeLine/reload', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, enabled, reload } |
@ -0,0 +1,27 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/routeLoc', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/routeLoc/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/routeLoc', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del } |
@ -0,0 +1,40 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/routePlan', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/routePlan/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/routePlan', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function selectList() { |
|||
return request({ |
|||
url: 'api/routePlan/selectList', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
export function getRoute(device_code, next_device_code, route_plan_code) { |
|||
return request({ |
|||
url: '/api/routeLine/getShortPathLines?device_code=' + device_code + '&next_device_code=' + next_device_code + '&route_plan_code=' + route_plan_code, |
|||
method: 'post' |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, selectList, getRoute } |
@ -0,0 +1,42 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/stageActor', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/stageActor/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/stageActor', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function saveData(data) { |
|||
return request({ |
|||
url: 'api/stageActor/saveData', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function queryStageActor(stage_code) { |
|||
return request({ |
|||
url: 'api/stageActor/queryStageActor/' + stage_code, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, saveData, queryStageActor } |
@ -0,0 +1,34 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/stage', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/stage/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/stage', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function selectStageList() { |
|||
return request({ |
|||
url: 'api/stage/selectList', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, selectStageList } |
@ -0,0 +1,27 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/stageImage', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/stageImage/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/stageImage', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del } |
@ -0,0 +1,107 @@ |
|||
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(data) { |
|||
return request({ |
|||
url: 'api/task/finish', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
export function cancel(task_id) { |
|||
return request({ |
|||
url: 'api/task/cancel/' + task_id, |
|||
method: 'post', |
|||
data: task_id |
|||
}) |
|||
} |
|||
|
|||
export function cancelAndInst(task_id) { |
|||
return request({ |
|||
url: 'api/task/cancelAndInst/' + 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 ,cancelAndInst} |
|||
|
@ -0,0 +1,19 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function retry(task_id) { |
|||
return request({ |
|||
url: 'api/taskFeedback/retry/' + task_id, |
|||
method: 'post', |
|||
data: task_id |
|||
}) |
|||
} |
|||
|
|||
export function invalid(task_id) { |
|||
return request({ |
|||
url: 'api/taskFeedback/invalid/' + task_id, |
|||
method: 'post', |
|||
data: task_id |
|||
}) |
|||
} |
|||
|
|||
export default { retry, invalid } |
@ -0,0 +1,55 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function test1() { |
|||
return request({ |
|||
url: 'api/test/test1', |
|||
method: 'post' |
|||
}) |
|||
} |
|||
|
|||
export function test2() { |
|||
return request({ |
|||
url: 'api/test/test2', |
|||
method: 'post' |
|||
}) |
|||
} |
|||
|
|||
export function test3() { |
|||
return request({ |
|||
url: 'api/test/test3', |
|||
method: 'post' |
|||
}) |
|||
} |
|||
|
|||
export function test4(data) { |
|||
return request({ |
|||
url: 'api/test/test4', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function test5() { |
|||
return request({ |
|||
url: 'api/test/test5', |
|||
method: 'post' |
|||
}) |
|||
} |
|||
|
|||
export function test6(data) { |
|||
return request({ |
|||
url: 'api/test/test6', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function print() { |
|||
return request({ |
|||
url: 'api/test/print', |
|||
method: 'post' |
|||
}) |
|||
} |
|||
|
|||
export default { test1, test2, test3, test4, test5, test6, print } |
|||
|
@ -0,0 +1,21 @@ |
|||
import request from '@/utils/request' |
|||
import qs from 'qs' |
|||
|
|||
export function initData(url, params) { |
|||
if (params.createTime) { |
|||
params.begin_time = params.createTime[0] |
|||
params.end_time = params.createTime[1] |
|||
} |
|||
return request({ |
|||
url: url + '?' + qs.stringify(params, { indices: false }), |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function download(url, params) { |
|||
return request({ |
|||
url: url + '?' + qs.stringify(params, { indices: false }), |
|||
method: 'get', |
|||
responseType: 'blob' |
|||
}) |
|||
} |
@ -0,0 +1,16 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function get(tableName) { |
|||
return request({ |
|||
url: 'api/genConfig/' + tableName, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function update(data) { |
|||
return request({ |
|||
url: 'api/genConfig', |
|||
data, |
|||
method: 'put' |
|||
}) |
|||
} |
@ -0,0 +1,33 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function getAllTable() { |
|||
return request({ |
|||
url: 'api/generator/tables/all', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function generator(tableName, type) { |
|||
return request({ |
|||
url: 'api/generator/' + tableName + '/' + type, |
|||
method: 'post', |
|||
responseType: type === 2 ? 'blob' : '' |
|||
}) |
|||
} |
|||
|
|||
export function save(data) { |
|||
return request({ |
|||
url: 'api/generator', |
|||
data, |
|||
method: 'put' |
|||
}) |
|||
} |
|||
|
|||
export function sync(tables) { |
|||
return request({ |
|||
url: 'api/generator/sync', |
|||
method: 'post', |
|||
data: tables |
|||
}) |
|||
} |
|||
|
@ -0,0 +1,50 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/stage', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/stage/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/stage', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function selectStageList() { |
|||
return request({ |
|||
url: 'api/stage/selectList', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function addNewStage(data) { // 保存舞台数据
|
|||
return request({ |
|||
url: 'api/stage/addNewStage', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function getNewStageDataByCode(code) { |
|||
return request({ |
|||
url: 'api/stage/getNewStageDataByCode', |
|||
method: 'post', |
|||
data: code |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, selectStageList, addNewStage, getNewStageDataByCode } |
@ -0,0 +1,34 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/stageImage', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/stageImage/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/stageImage', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function selectStageIconList() { |
|||
return request({ |
|||
url: 'api/stageImage/selectList', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, selectStageIconList } |
@ -0,0 +1,35 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function login(username, password, code, uuid) { |
|||
return request({ |
|||
url: 'auth/login', |
|||
method: 'post', |
|||
data: { |
|||
username, |
|||
password, |
|||
code, |
|||
uuid |
|||
} |
|||
}) |
|||
} |
|||
|
|||
export function getInfo() { |
|||
return request({ |
|||
url: 'auth/info', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function getCodeImg() { |
|||
return request({ |
|||
url: 'auth/code', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function logout() { |
|||
return request({ |
|||
url: 'auth/logout', |
|||
method: 'delete' |
|||
}) |
|||
} |
@ -0,0 +1,22 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function getErrDetail(id) { |
|||
return request({ |
|||
url: 'api/logs/error/' + id, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function delAllError() { |
|||
return request({ |
|||
url: 'api/logs/del/error', |
|||
method: 'delete' |
|||
}) |
|||
} |
|||
|
|||
export function delAllInfo() { |
|||
return request({ |
|||
url: 'api/logs/del/info', |
|||
method: 'delete' |
|||
}) |
|||
} |
@ -0,0 +1,9 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function del(keys) { |
|||
return request({ |
|||
url: 'auth/online', |
|||
method: 'delete', |
|||
data: keys |
|||
}) |
|||
} |
@ -0,0 +1,17 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function selectLedList() { |
|||
return request({ |
|||
url: 'api/screen', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function getLedMessage(device) { |
|||
return request({ |
|||
url: 'api/screen/getLedMessage/' + device, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export default { selectLedList, getLedMessage } |
@ -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 } |
@ -0,0 +1,15 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function resetEmail(data) { |
|||
return request({ |
|||
url: 'api/code/resetEmail?email=' + data, |
|||
method: 'post' |
|||
}) |
|||
} |
|||
|
|||
export function updatePass(pass) { |
|||
return request({ |
|||
url: 'api/users/updatePass/' + pass, |
|||
method: 'get' |
|||
}) |
|||
} |
@ -0,0 +1,60 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function getDepts(params) { |
|||
return request({ |
|||
url: 'api/dept', |
|||
method: 'get', |
|||
params |
|||
}) |
|||
} |
|||
|
|||
export function getDeptTree(params) { |
|||
return request({ |
|||
url: '/api/dept/allTree', |
|||
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 getDeptvo(params) { |
|||
return request({ |
|||
url: 'api/dept/vo', |
|||
method: 'get', |
|||
params |
|||
}) |
|||
} |
|||
|
|||
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, getDeptvo, getDeptTree } |
@ -0,0 +1,34 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function getDicts() { |
|||
return request({ |
|||
url: 'api/dict/all', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/dict', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/dict/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/dict', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del } |
@ -0,0 +1,33 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/grid', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/grid/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/grid', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
export function selectList() { |
|||
return request({ |
|||
url: 'api/grid/selectList', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, selectList } |
@ -0,0 +1,50 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/gridField', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
export function batchAdd(json) { // use
|
|||
return request({ |
|||
url: 'api/gridField/batchAdd', |
|||
method: 'post', |
|||
data: json |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/gridField/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/gridField', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function getGridFieldsById(id) { // use
|
|||
return request({ |
|||
url: 'api/gridField/getGridFields', |
|||
method: 'post', |
|||
data: id |
|||
}) |
|||
} |
|||
|
|||
export function getGridFieldsByCode(grid_code) { // use
|
|||
return request({ |
|||
url: 'api/gridField/getGridFieldsByCode', |
|||
method: 'post', |
|||
data: grid_code |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, batchAdd, getGridFieldsById, getGridFieldsByCode } |
@ -0,0 +1,73 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function getMenusTree(pid) { |
|||
return request({ |
|||
url: 'api/sysMenu/lazy?pid=' + pid, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function getMenus(params) { |
|||
return request({ |
|||
url: 'api/sysMenu', |
|||
method: 'get', |
|||
params |
|||
}) |
|||
} |
|||
|
|||
export function getMenusByRole(params) { |
|||
return request({ |
|||
url: 'api/sysMenu/getMenusByRole', |
|||
method: 'post', |
|||
data: params |
|||
}) |
|||
} |
|||
|
|||
export function getMenuSuperior(ids) { |
|||
const data = ids.length || ids.length === 0 ? ids : Array.of(ids) |
|||
return request({ |
|||
url: 'api/sysMenu/superior', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function getChild(id) { |
|||
return request({ |
|||
url: 'api/sysMenu/child?id=' + id, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function buildMenus(data) { |
|||
return request({ |
|||
url: 'api/sysMenu/build?systemType=' + data, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/sysMenu', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/sysMenu', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/sysMenu', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, getMenusTree, getMenuSuperior, getMenus, getChild, getMenusByRole } |
@ -0,0 +1,35 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export function add(data) { |
|||
return request({ |
|||
url: 'api/param', |
|||
method: 'post', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function del(ids) { |
|||
return request({ |
|||
url: 'api/param/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export function edit(data) { |
|||
return request({ |
|||
url: 'api/param', |
|||
method: 'put', |
|||
data |
|||
}) |
|||
} |
|||
|
|||
export function getValueByCode(code) { |
|||
return request({ |
|||
url: 'api/param/getValueByCode', |
|||
method: 'post', |
|||
data: code |
|||
}) |
|||
} |
|||
|
|||
export default { add, edit, del, getValueByCode } |
@ -0,0 +1,35 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 查询缓存详细
|
|||
export function getCache() { |
|||
return request({ |
|||
url: '/api/redis/get-monitor-info', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 获取模块
|
|||
export function getKeyDefineList() { |
|||
return request({ |
|||
url: '/api/redis/get-key-define-list', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 获取模块
|
|||
export function getKeyValueList() { |
|||
return request({ |
|||
url: '/api/redis/get-key-value-list', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
export function batch(ids) { |
|||
return request({ |
|||
url: 'api/redis/', |
|||
method: 'delete', |
|||
data: ids |
|||
}) |
|||
} |
|||
|
|||
export default { getCache, getKeyDefineList, batch } |
After Width: | Height: | Size: 160 KiB |
After Width: | Height: | Size: 96 KiB |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 170 B |
After Width: | Height: | Size: 727 B |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 548 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 204 B |
After Width: | Height: | Size: 504 B |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 636 B |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 8.6 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 516 B |
After Width: | Height: | Size: 513 B |
After Width: | Height: | Size: 727 B |
After Width: | Height: | Size: 141 B |
After Width: | Height: | Size: 207 B |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 286 B |
After Width: | Height: | Size: 549 B |
After Width: | Height: | Size: 416 B |
After Width: | Height: | Size: 444 B |
After Width: | Height: | Size: 481 B |
After Width: | Height: | Size: 525 B |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 421 B |
After Width: | Height: | Size: 488 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 423 B |
After Width: | Height: | Size: 420 B |
After Width: | Height: | Size: 692 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 378 B |
After Width: | Height: | Size: 214 B |
After Width: | Height: | Size: 303 B |
After Width: | Height: | Size: 381 B |
After Width: | Height: | Size: 657 B |
After Width: | Height: | Size: 272 B |
After Width: | Height: | Size: 308 B |
After Width: | Height: | Size: 370 B |
After Width: | Height: | Size: 383 B |
After Width: | Height: | Size: 343 B |