luobisheng
2022-11-30 41a319187c10191151d44e3260eaf4b448d6f197
图片视频修改
5个文件已修改
56 ■■■■ 已修改文件
src/components/Table/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/images/index.vue 25 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/video/index.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/viewEvent/index.vue 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/systemSetting/device/bayonet/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/Table/index.vue
@@ -76,6 +76,10 @@
        }
    },
    props: {
      getTableList: {
        type: Function,
        default: () => {}
      },
        // 表格数据
        tableData: {
            type: Array,
src/views/operate/images/index.vue
@@ -27,7 +27,7 @@
      <div class="mainContent">
        <div class="type-nav">
          <div
            @click="changeTypeChecked(index)"
            @click="changeTypeChecked(item)"
            v-for="(item, index) in typeList"
            :key="item.name"
            :class="[item.checked ? 'is-active' : '', 'type-item']"
@@ -65,8 +65,6 @@
          </el-table-column>
          <el-table-column prop="regionName" label="社区名称" min-width="8">
          </el-table-column>
          <!-- <el-table-column prop="id" label="图片Id" min-width="8">
          </el-table-column> -->
          <el-table-column
            prop="createTime"
            label="上传时间"
@@ -80,12 +78,12 @@
                <span @click="handleUpdateImageResource(scope.row, 'view')"
                  >查看</span
                >
                <span class="line">|</span>
                <span @click="handleUpdateImageResource(scope.row, 'update')"
                <span v-if="mystatus === 2" class="line">|</span>
                <span v-if="mystatus === 2" @click="handleUpdateImageResource(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="handleDelete(scope.row)">删除</span>
              </div>
            </template>
          </el-table-column>
@@ -321,12 +319,13 @@
        .catch((err) => this.$message({ type: "error", message: err }));
    },
    // 更改违规/违建
    changeTypeChecked(idx) {
      this.typeList.forEach((item) => {
        item.checked = item.value === idx;
      });
      this.mystatus = idx + 1;
      this.size = idx;
    changeTypeChecked(data) {
      this.typeList.forEach(item => {
        item.checked = data.name === item.name;
      })
      const checkedType = this.typeList.find(item => item.checked);
      this.mystatus = checkedType.value ? 2 : 1;
      this.size = checkedType.value;
      this.getImageResourceList();
    },
    // 设置表格斑马纹
src/views/operate/video/index.vue
@@ -78,10 +78,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>
@@ -300,6 +300,8 @@
      });
      this.mystatus = idx + 1;
      this.statusArr[1] = this.typeList[idx].value;
      this.searchContent = this.typeList[idx].value;
      this.searchVideoList();
    },
    // 设置表格斑马纹
    tableRowClassName({ row, rowIndex }) {
src/views/operate/viewEvent/index.vue
@@ -27,11 +27,9 @@
                        <el-input placeholder=" 请输入事发地点" v-model="searchData.site"></el-input>
                    </div>
                </div>
                <div class="date-search contentItem">
                    <div class="btn">
                        <el-button icon="el-icon-plus" categories="primary" @click="getList">搜索</el-button>
                      </div>
                </div>
              <div class="btn">
                <el-button type="primary" @click="getList">搜索</el-button>
              </div>
            </div>
            <div class="headerContent">
                <div style="width: 60px;">时间: </div>
@@ -243,13 +241,6 @@
            .mydate {
                flex: 1;
            }
        }
        &::v-deep .el-button {
            background-color: #eb5d01;
            border: none;
            color: #fff;
            border-radius: 20px;
        }
    }
src/views/systemSetting/device/bayonet/index.vue
@@ -20,7 +20,7 @@
          <el-button @click="handleExport">导出卡口</el-button>
        </div>
        <!-- 数据展示 -->
        <MyTable :tableOption="tableOption" :tableData="list" :pageShow="false">
        <MyTable :tableOption="tableOption" :get-table-list="getBayonetListData" :tableData="list" :pageShow="false">
          <template #operation="info">
            <el-link
              :underline="false"