wcs_client_s7_baoying/src/axios/db.js

16 lines
469 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import axios from '@/axios/base/base.axios';
export default {
// 查询Db数据顺便返回PLC名称
getDbWithName(req) {
return axios.post('/api/wcs/db/getDBWithPlcName', req)
},
// 添加或者变更DB信息
addOrUpdate(req) {
return axios.post('/api/wcs/db/addOrUpdate', req)
},
// 删除一个DB信息
deleteData(dbName) {
return axios.delete('/api/wcs/db/deleteDB', { params: { dbName: dbName }})
}
}