diff --git a/.vscode/settings.json b/.vscode/settings.json index 2d61fd8..aa408f0 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -6,5 +6,8 @@ "i18n-ally.localesPaths": ["src/lang"], // 防止找到不路径 "i18n-ally.keystyle": "flat", "i18n-ally.sourceLanguage": "en-US", // 源文件 - "i18n-ally.displayLanguage": "zh-CN" // 显示文件 + "i18n-ally.displayLanguage": "zh-CN", + "[javascript]": { + "editor.defaultFormatter": "vscode.typescript-language-features" + } // 显示文件 } diff --git a/src/main.js b/src/main.js index 3c32218..2aa7083 100644 --- a/src/main.js +++ b/src/main.js @@ -127,3 +127,6 @@ Element.Table.props.border = { //设置点击所有弹窗的遮罩不会关闭弹窗 Element.Dialog.props.closeOnClickModal.default = false; + + + diff --git a/src/views/iot/device/.vue b/src/views/iot/device/.vue new file mode 100644 index 0000000..1bb8fc9 --- /dev/null +++ b/src/views/iot/device/.vue @@ -0,0 +1,1119 @@ + + + + + diff --git a/src/views/iot/device/device-edit.vue b/src/views/iot/device/device-edit.vue index 9a203a0..5a0ba72 100644 --- a/src/views/iot/device/device-edit.vue +++ b/src/views/iot/device/device-edit.vue @@ -69,7 +69,7 @@ + }} @@ -187,6 +187,8 @@ ref="gatewayRunningStatus" :device="form" @statusEvent="getDeviceStatusData($event)" /> + @@ -405,7 +407,7 @@ @@ -450,6 +452,7 @@ import { clientOut } from '@/api/iot/netty'; import defaultSettings from '@/settings'; import gatewayRunningStatus from './gatewayrunning-status.vue'; import relay from './relay.vue' +import gatewaypre from './gatewaypre.vue' export default { name: 'DeviceEdit', dicts: ['iot_device_status', 'iot_location_way'], @@ -482,7 +485,8 @@ export default { deviceModbusTask, deviceInlineVideo, gatewayRunningStatus, - relay + relay, + gatewaypre }, watch: { activeName(val) { diff --git a/src/views/iot/device/gatewaypre.vue b/src/views/iot/device/gatewaypre.vue new file mode 100644 index 0000000..a8e8d83 --- /dev/null +++ b/src/views/iot/device/gatewaypre.vue @@ -0,0 +1,516 @@ + + + + + \ No newline at end of file diff --git a/src/views/iot/device/gatewayrunning-status.vue b/src/views/iot/device/gatewayrunning-status.vue index 28be35b..33577ae 100644 --- a/src/views/iot/device/gatewayrunning-status.vue +++ b/src/views/iot/device/gatewayrunning-status.vue @@ -21,10 +21,13 @@ {{ $t('device.running-status.866086-44') - }} + }} {{ $t('device.running-status.866086-44') - }} + }} + {{ + $t('device.running-status.866086-44') + }} @@ -428,17 +431,17 @@ - - - - - - - @@ -484,17 +487,17 @@ $t('device.running-status.866086-12') }} {{ firmware.firmwareName - }} + }} {{ firmware.productName - }} + }} Version {{ firmware.version - }} + }} {{ getDownloadUrl(firmware.filePath) }} {{ firmware.remark - }} + }}