diff --git a/src/axios/plc.js b/src/axios/plc.js new file mode 100644 index 0000000..ec7737e --- /dev/null +++ b/src/axios/plc.js @@ -0,0 +1,20 @@ +import axios from '@/axios/base/base.axios'; + +export default { + // 获取所有PLC数据 + getPlc() { + return axios.get('/api/wcs/plc/getPlc') + }, + // 编辑PLC数据 + editPlc(plcDataItem) { + return axios.post('/api/wcs/plc/editePlc', plcDataItem) + }, + // 删除一条数据 + deletePlc(plcId) { + return axios.delete('/api/wcs/plc/deletePlc', { + params: { + plcId: plcId + } + }) + }, +} \ No newline at end of file diff --git a/src/view/component/PLCData/AddPLCData.vue b/src/view/component/PLCData/AddPLCData.vue new file mode 100644 index 0000000..48ddfb0 --- /dev/null +++ b/src/view/component/PLCData/AddPLCData.vue @@ -0,0 +1,150 @@ + + + + + \ No newline at end of file diff --git a/src/view/tab/development/PLCData.vue b/src/view/tab/development/PLCData.vue index 771cb67..e27ef0d 100644 --- a/src/view/tab/development/PLCData.vue +++ b/src/view/tab/development/PLCData.vue @@ -1,27 +1,183 @@