Oliver
2022-12-12 22d9bd7152c6de2d71afade6ab7b5f788d023578
src/views/operate/video/index.vue
@@ -17,9 +17,6 @@
          <div class="findBtn">
            <el-button type="primary" @click="searchVideoList">查询</el-button>
          </div>
          <div class="findBtn">
            <el-button class="button-addition" type="primary" @click="handleOpera(null, 'create')">添加</el-button>
          </div>
        </div>
      </div>
    </header>
@@ -78,10 +75,10 @@
            <template slot-scope="scope">
              <div class="operation">
                <span @click="handleOpera(scope.row, 'view')">查看</span>
                <span class="line">|</span>
                <span @click="handleOpera(scope.row, 'update')">修改</span>
                <span class="line">|</span>
                <span @click="handleDelete(scope.row)">删除</span>
                <span v-if="mystatus === 2" class="line">|</span>
                <span v-if="mystatus === 2" @click="handleOpera(scope.row, 'update')">修改</span>
                <span v-if="mystatus === 2" class="line">|</span>
                <span v-if="mystatus === 2" @click="handleDelete(scope.row)">删除</span>
              </div>
            </template>
          </el-table-column>
@@ -148,6 +145,7 @@
import { CATEGOTY, EVENT_SOURCE } from "@/utils/helper";
export default {
  name: 'video-upload-page',
  components: { updateInterface },
  data() {
    return {
@@ -188,7 +186,7 @@
      typeList: [
        {
          name: "摄像头推送",
          value: null,
          value: "01",
          checked: true,
        },
        {
@@ -300,6 +298,8 @@
      });
      this.mystatus = idx + 1;
      this.statusArr[1] = this.typeList[idx].value;
      this.searchContent = this.typeList[idx].value;
      this.searchVideoList();
    },
    // 设置表格斑马纹
    tableRowClassName({ row, rowIndex }) {