diff --git a/src/api/script.js b/src/api/script.js index 3ad9605d9709277c30e1b71577ffcd32b3ffb3e4..b072e1f30d1c7562593d66c303e41f17a0a6cb12 100644 --- a/src/api/script.js +++ b/src/api/script.js @@ -39,6 +39,27 @@ export function getCmommandListApi(data) { data }) } + +// 新增命令 +export function addCommandApi(data) { + return request({ + url: '/manageCommandPre/insert', + method: 'post', + headers: { 'Content-Type': 'application/json' }, + data + }) +} + +// 下发命令 +export function executeCommandApi(data) { + return request({ + url: '/manageCommandPre/executeLocal', + method: 'post', + headers: { 'Content-Type': 'application/json' }, + data + }) +} + // 执行结果列表 export function getExecResApi(data) { return request({ diff --git a/src/pages/script/command/components/commandform.vue b/src/pages/script/command/components/commandform.vue new file mode 100644 index 0000000000000000000000000000000000000000..3fc49b1ce02c0196c29025f941165328c642b295 --- /dev/null +++ b/src/pages/script/command/components/commandform.vue @@ -0,0 +1,82 @@ + + + + + diff --git a/src/pages/script/command/index.vue b/src/pages/script/command/index.vue index b6d691a7bd6e34271329092257d2b3d91342fbf1..8613cc711bcbf39847da8122e7964f354264ad4e 100644 --- a/src/pages/script/command/index.vue +++ b/src/pages/script/command/index.vue @@ -18,14 +18,68 @@ {{ text }} {{ text }} + + + + + + + + + + + + + + + + + + +