From 6f1bc81511d09ee2be0d62c3baa8f370b48e7589 Mon Sep 17 00:00:00 2001 From: dawnwinterLiu <1737801684@qq.com> Date: Thu, 30 May 2024 17:16:37 +0800 Subject: [PATCH] feat: import modbusxtcp --- src/store/modules/user.js | 1 - src/views/DeviceCloud/manage/js/proddetail.js | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/store/modules/user.js b/src/store/modules/user.js index a668ce1339..0b786d3845 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -446,7 +446,6 @@ const actions = { await departmentToken(roles[0].name) commit('setLoginInfo', userInfo) } else { - if (error.indexOf('locked') > 0) { Vue.prototype.$baseMessage( Vue.prototype.$translateTitle( diff --git a/src/views/DeviceCloud/manage/js/proddetail.js b/src/views/DeviceCloud/manage/js/proddetail.js index 553f62a0e7..843420f59c 100644 --- a/src/views/DeviceCloud/manage/js/proddetail.js +++ b/src/views/DeviceCloud/manage/js/proddetail.js @@ -192,6 +192,10 @@ export default { { name:"PLC协议", type:"plc" + }, + { + name:"MODBUSX TCP协议", + type:"modbusxtcp" } ], currentChannelPage: 1, @@ -3328,6 +3332,10 @@ export default { ele.href = window.location.origin + '/dgiot_file/product/csv/dlink_template.csv' ele.download = 'dlink_template.csv' break + case 'modbusxtcp': + ele.href = window.location.origin + '/dgiot_file/product/csv/modbusxtcp_template.csv' + ele.download = 'modbusxtcp_template.csv' + break } ele.click() ele = null