规则列表加入事件声音;数据栈目录树样式优化;集群目录树关键字搜索框查询修复
5个文件已修改
35 ■■■■ 已修改文件
src/components/LeftNav.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/subComponents/LocalVedioList.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/cameraAccess/components/SceneRule.vue 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/cameraAccess/components/SeparateRules.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/searchForCluster/index/App.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/LeftNav.vue
@@ -238,7 +238,7 @@
                size="small"
                clearable
                @input="querySearchAsync('dir')"
                :style="'width:103px;'"
                :style="'width:120px;'"
              >
                <i
                  class="el-icon-search el-input__icon"
@@ -531,6 +531,9 @@
      this.timeout = setTimeout(() => {
        if (type === "camera") {
          this.TreeDataPool.fetchTreeData();
        }
        if(type === "cluster"){
          this.TreeDataPool.fetchClusterTree();
        }
        if (type === "dir") {
          this.DataStackPool.fetchFiles();
@@ -896,7 +899,7 @@
}
.tree-edit {
  z-index: 1;
  z-index: 2;
  font-size: 16px;
  position: absolute;
  top: 56px;
src/components/subComponents/LocalVedioList.vue
@@ -76,6 +76,11 @@
  height: 100%;
  .top-menu {
    text-align: left;
    position: absolute;
    z-index: 1;
    top: 54px;
    background: #fff;
    width: 100%;
  }
  .folder {
@@ -98,7 +103,7 @@
  }
  ul {
    margin: 10px 25px;
    margin: 25px 25px 10px;
  }
  li {
    width: 100%;
src/pages/cameraAccess/components/SceneRule.vue
@@ -108,12 +108,17 @@
            </template>
          </el-table-column>
          <el-table-column label="时间段" prop="time_name" align="center"></el-table-column>
          <el-table-column label="描述" prop="desc" align="center" min-width="150"></el-table-column>
          <el-table-column label="描述" prop="desc" align="center" min-width="120"></el-table-column>
          <!-- <el-table-column label="状态" align="center" width="90">
            <template slot-scope="scope">
              <el-switch v-model="scope.row.defence_state" @change="updateDefence(scope.row)"></el-switch>
            </template>
          </el-table-column>-->
          <el-table-column label="事件声音" align="center">
            <template slot-scope="scope">
              <span>{{ getSoundById(scope.row.voiceId) }}</span>
            </template>
          </el-table-column>
          <el-table-column label="事件等级" align="center">
            <template slot-scope="scope">
              <span>{{scope.row.alarm_level | alarmLevel }}</span>
@@ -237,6 +242,14 @@
    }
  },
  methods: {
    getSoundById(id){
      if(id){
        let sound = this.soundList.find(item=>item.id == id);
        return sound.name
      }else{
        return ''
      }
    },
    getSounds() {
      getSoundList().then(res => {
        if (res.success) {
@@ -426,7 +439,7 @@
        .catch(() => { });
    },
    cellStyle(obj) {
      if (obj.column.label == '策略') {
      if (obj.column.label == '策略'||obj.column.label == '事件声音') {
        return 'text-align:left;padding-left:8px;'
      }
    }
src/pages/cameraAccess/components/SeparateRules.vue
@@ -34,7 +34,7 @@
          </div>
          <div v-if="Camera.analytics" class="flex-box">
            <span class="label">智能计算节点: {{ Camera.runServerName}}</span>
            <span class="label">SmartAI节点: {{ Camera.runServerName}}</span>
          </div>
          <div v-if="Camera.analytics" class="flex-box">
src/pages/searchForCluster/index/App.vue
@@ -93,7 +93,7 @@
  overflow-x: hidden;
}
.resize-bar {
  width: 310px;
  width: 338px;
  height: inherit;
  resize: horizontal;
  cursor: ew-resize;