xiangpei
2024-08-16 085a5c7be0a347e1dfeab30a73a148fb98e8e14d
设备管理路由设置
2个文件已修改
15 ■■■■ 已修改文件
src/views/system/data-manage/equipment/index.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/data-manage/index.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/data-manage/equipment/index.vue
@@ -167,6 +167,7 @@
<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'],
@@ -248,8 +249,8 @@
    /** 查询设备资产列表 */
    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;
      });
src/views/system/data-manage/index.vue
@@ -139,7 +139,7 @@
          :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>
@@ -363,10 +363,11 @@
      equipment: [
        {
          ruleName: "资产管理",
          ruleIndex: 'view_zc_manage',
          ruleIndex: 'assetManagement',
          icon: "el-icon-wallet",
          description: "描述信息",
          ruleCategory: "4",
          apiUrl: 'assetManagement'
        }
      ],
    };
@@ -383,6 +384,11 @@
        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}`,