ZZJ
2021-11-09 ccee429d379e0108b7445f72ade8d97c110a6fb3
src/pages/library/components/baseList.vue
@@ -7,18 +7,18 @@
            :class="title==='同步库'?'iconfont iconshuaxintongbu':'iconfont iconwenjianjia'"
            style="font-size:18px;"
          ></span>
          <span class="ml5 f14">{{title}}</span>
          <span class="m5">{{title}}</span>
          <i
            class="el-icon-circle-plus-outline ml10"
            style="font-size:20px;color:#3D68E1;"
            @click.stop="add('sync')"
            v-if="isShow('videoTable:edit')"
            v-if="isShow('library:set')"
          ></i>
          <span
            class="ml5"
            class="m5"
            style="font-size:14px;color:#3D68E1;"
            @click.stop="add('sync')"
            v-if="isShow('videoTable:edit')"
            v-if="isShow('library:set')"
          >新增</span>
        </template>
        <div class="max-height">
@@ -52,22 +52,21 @@
                <span
                  class="iconfont iconbianji iconStyle1"
                  @click.stop="edit(item,'sync')"
                  v-if="isShow('videoTable:edit')"
                  v-if="isShow('library:set')"
                ></span>
              </el-tooltip>
              <el-tooltip content="删除" placement="top" popper-class="atooltip">
                <span
                  class="iconfont iconshanchu iconStyle1"
                  style="color:#E74C3C;"
                  v-if="isShow('videoTable:edit')"
                  v-if="isShow('library:set')"
                  @click.stop="deleteBase(item.id)"
                ></span>
              </el-tooltip>
            </el-col>
            <el-col
              :span="24"
              class="tl ml10 f12"
              style="color:#888888"
              style="text-align:left;margin-left:10px; color:#888888"
            >{{item.startTime}}~{{item.endTime?item.endTime:'永久有效'}}</el-col>
          </el-row>
        </div>
@@ -75,18 +74,18 @@
      <el-collapse-item name="2" class="el-collapse-item__wrap">
        <template slot="title">
          <span class="iconfont iconwenjianjia" style="font-size:18px;"></span>
          <span class="ml5 f14">{{titleB}}</span>
          <span class="m5">{{titleB}}</span>
          <i
            class="el-icon-circle-plus-outline ml10"
            style="font-size:20px;color:#3D68E1;"
            @click.stop="add('local')"
            v-if="isShow('videoTable:edit')"
            v-if="isShow('library:set')"
          ></i>
          <span
            class="ml5"
            class="m5"
            style="font-size:14px;color:#3D68E1;"
            @click.stop="add('local')"
            v-if="isShow('videoTable:edit')"
            v-if="isShow('library:set')"
          >新增</span>
        </template>
        <div class="max-height">
@@ -118,22 +117,21 @@
                <span
                  class="iconfont iconbianji iconStyle1"
                  @click.stop="edit(item,'local')"
                  v-if="isShow('videoTable:edit')"
                  v-if="isShow('library:set')"
                ></span>
              </el-tooltip>
              <el-tooltip content="删除" placement="top" popper-class="atooltip">
                <span
                  class="iconfont iconshanchu iconStyle1"
                  style="color:#E74C3C;"
                  v-if="isShow('videoTable:edit')"
                  v-if="isShow('library:set')"
                  @click.stop="deleteBase(item.id)"
                ></span>
              </el-tooltip>
            </el-col>
            <el-col
              :span="24"
              class="tl ml10 f12"
              style="color:#888888"
              style="text-align:left;margin-left:10px; color:#888888"
            >{{item.startTime}}~{{item.endTime?item.endTime:'永久有效'}}</el-col>
          </el-row>
        </div>
@@ -222,7 +220,7 @@
    },
    isDisabled(item) {
      var flag = true
      if (this.isShow('videoTable:edit')) {
      if (this.isShow('library:set')) {
        if (item.endTime == "") {
          flag = false
        } else {
@@ -329,7 +327,7 @@
    },
    // 左侧底库生效开关是否启用判断
    // isDisa(data) {
    //   if (!this.isShow('videoTable:edit')) {
    //   if (!this.isShow('library:set')) {
    //     return true
    //   } else {
    //     return false
@@ -403,4 +401,10 @@
  white-space: nowrap;
  margin: 0 auto;
}
.m5 {
  margin: 5px;
}
.p10 {
  padding: 10px;
}
</style>