Commit 18636750 by 周田

mod

parent 4ea33bdd
...@@ -294,14 +294,6 @@ const sendCmd = () => { ...@@ -294,14 +294,6 @@ const sendCmd = () => {
// 发送命令 // 发送命令
const obj = deviceNameMap.get(formData.deviceName) const obj = deviceNameMap.get(formData.deviceName)
console.log(
{
station_id: obj.sta_id,
device_id: obj.dev_id,
cmd_name: formData.cmdName,
fields: formData.fields
})
axios.post('/api/mqtt/publish/', axios.post('/api/mqtt/publish/',
{ {
station_id: obj.sta_id, station_id: obj.sta_id,
...@@ -309,9 +301,6 @@ const sendCmd = () => { ...@@ -309,9 +301,6 @@ const sendCmd = () => {
cmd_name: formData.cmdName, cmd_name: formData.cmdName,
fields: formData.fields fields: formData.fields
}) })
.then((res) => {
console.log(res);
})
.catch((err) => { .catch((err) => {
console.log(err); console.log(err);
}) })
......
...@@ -43,8 +43,6 @@ onMounted(() => { ...@@ -43,8 +43,6 @@ onMounted(() => {
// console.log(e.data); // console.log(e.data);
let data = JSON.parse(e.data).message let data = JSON.parse(e.data).message
for (const [key, value] of Object.entries(data[0] as Record<string, string>)) { for (const [key, value] of Object.entries(data[0] as Record<string, string>)) {
console.log(key, value);
if (tableTitles.value.indexOf(key) !== -1) { if (tableTitles.value.indexOf(key) !== -1) {
tableData.value[0][key] = value tableData.value[0][key] = value
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment