| | |
| | | |
| | | <script> |
| | | import { videoCount, listMonitor, getMonitor, delMonitor, addMonitor, updateMonitor } from "@/api/platform/monitor"; |
| | | import { dataCenter } from "@/api/platform/data-center"; |
| | | export default { |
| | | name: "Monitor", |
| | | dicts: ['sys_normal_disable', 'platform_yes_no','camera_state'], |
| | |
| | | /** 查询设备资产列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | listMonitor(this.queryParams).then(response => { |
| | | this.monitorList = response.rows; |
| | | dataCenter('assetManagement', this.queryParams).then(response => { |
| | | this.monitorList = response.data; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | |
| | | :style="item.ruleName == '' ? 'display:none' : ''" |
| | | class="col-margin" |
| | | > |
| | | <el-link @click="handleDetail(item, item.ruleIndex, item.apiUrl)" style="width: 100%"> |
| | | <el-link @click="jumpToEquipment" style="width: 100%"> |
| | | <el-card style="min-width: 150px;width:100%; height: 150px; text-align: center"> |
| | | <i style="font-size: 40px; padding: 15px" :class="item.icon"></i> |
| | | <div>{{ item.ruleName }}</div> |
| | |
| | | equipment: [ |
| | | { |
| | | ruleName: "资产管理", |
| | | ruleIndex: 'view_zc_manage', |
| | | ruleIndex: 'assetManagement', |
| | | icon: "el-icon-wallet", |
| | | description: "描述信息", |
| | | ruleCategory: "4", |
| | | apiUrl: 'assetManagement' |
| | | } |
| | | ], |
| | | }; |
| | |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | jumpToEquipment() { |
| | | this.$router.push({ |
| | | path: '/equipment' |
| | | }); |
| | | }, |
| | | handleDetail(item, index, url) { |
| | | this.$router.push({ |
| | | path: `/data-manage/data-detail/index/1/1?type=${item.ruleCategory}&index=${index}&url=${url}`, |