| | |
| | | <template> |
| | | <div id="channelList"> |
| | | <el-container> |
| | | |
| | | <el-header> |
| | | <uiHeader></uiHeader> |
| | | </el-header> |
| | |
| | | }, |
| | | methods: { |
| | | initData: function () { |
| | | if (this.parentChannelId == "" || this.parentChannelId == 0) { |
| | | if (typeof (this.parentChannelId) == "undefined" || this.parentChannelId == 0) { |
| | | this.getDeviceChannelList(); |
| | | } else { |
| | | this.showSubchannels(); |
| | |
| | | }, |
| | | getDeviceChannelList: function () { |
| | | let that = this; |
| | | if (typeof (this.$route.params.deviceId) == "undefined") return; |
| | | this.$axios({ |
| | | method: 'get', |
| | | url: `/api/device/query/devices/${this.$route.params.deviceId}/channels`, |