Skip to content

Commit

Permalink
feat: import modbusxtcp
Browse files Browse the repository at this point in the history
  • Loading branch information
dawnwinterLiu committed May 30, 2024
1 parent 83c0b64 commit 6f1bc81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/store/modules/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
8 changes: 8 additions & 0 deletions src/views/DeviceCloud/manage/js/proddetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ export default {
{
name:"PLC协议",
type:"plc"
},
{
name:"MODBUSX TCP协议",
type:"modbusxtcp"
}
],
currentChannelPage: 1,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6f1bc81

Please sign in to comment.