|
@@ -1,180 +1,182 @@
|
|
|
<template>
|
|
|
<div class="big-screen-list-wrap">
|
|
|
- <div class="top-search-wrap">
|
|
|
- <el-select
|
|
|
- v-if="catalogInfo !== 'system'"
|
|
|
- v-model="catalogCode"
|
|
|
- class="bs-el-select"
|
|
|
- popper-class="bs-el-select"
|
|
|
- placeholder="请选择分组"
|
|
|
- clearable
|
|
|
- @change="reSearch"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in catalogList"
|
|
|
- :key="item.code"
|
|
|
- :label="item.name"
|
|
|
- :value="item.code"
|
|
|
+ <div class="internal-box">
|
|
|
+ <div class="top-search-wrap">
|
|
|
+ <el-select
|
|
|
+ v-if="catalogInfo !== 'system'"
|
|
|
+ v-model="catalogCode"
|
|
|
+ class="bs-el-select"
|
|
|
+ popper-class="bs-el-select"
|
|
|
+ placeholder="请选择分组"
|
|
|
+ clearable
|
|
|
+ @change="reSearch"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in catalogList"
|
|
|
+ :key="item.code"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.code"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ <el-input
|
|
|
+ v-model="searchKey"
|
|
|
+ class="bs-el-input"
|
|
|
+ placeholder="请输入组件名称"
|
|
|
+ prefix-icon="el-icon-search"
|
|
|
+ clearable
|
|
|
+ @clear="reSearch"
|
|
|
+ @keyup.enter.native="reSearch"
|
|
|
/>
|
|
|
- </el-select>
|
|
|
- <el-input
|
|
|
- v-model="searchKey"
|
|
|
- class="bs-el-input"
|
|
|
- placeholder="请输入组件名称"
|
|
|
- prefix-icon="el-icon-search"
|
|
|
- clearable
|
|
|
- @clear="reSearch"
|
|
|
- @keyup.enter.native="reSearch"
|
|
|
- />
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- @click="reSearch"
|
|
|
- >
|
|
|
- 搜索
|
|
|
- </el-button>
|
|
|
- <el-button
|
|
|
- v-if="catalogInfo !== 'system'"
|
|
|
- type="primary"
|
|
|
- @click="catalogManage"
|
|
|
- >
|
|
|
- 分组管理
|
|
|
- </el-button>
|
|
|
- </div>
|
|
|
- <div
|
|
|
- v-loading="loading"
|
|
|
- class="list-wrap bs-scrollbar"
|
|
|
- element-loading-text="加载中"
|
|
|
- :style="{
|
|
|
- display: gridComputed ? 'grid' : 'flex',
|
|
|
- justifyContent: gridComputed ? 'space-around' : 'flex-start'
|
|
|
- }"
|
|
|
- >
|
|
|
- <!-- 第一个是新增大屏卡片 -->
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="reSearch"
|
|
|
+ >
|
|
|
+ 搜索
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="catalogInfo !== 'system'"
|
|
|
+ type="primary"
|
|
|
+ @click="catalogManage"
|
|
|
+ >
|
|
|
+ 分组管理
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
<div
|
|
|
- v-if="catalogInfo !== 'system'"
|
|
|
- class="big-screen-card-wrap"
|
|
|
+ v-loading="loading"
|
|
|
+ class="list-wrap bs-scrollbar"
|
|
|
+ element-loading-text="加载中"
|
|
|
:style="{
|
|
|
- width: gridComputed ? 'auto' : '290px'
|
|
|
+ display: gridComputed ? 'grid' : 'flex',
|
|
|
+ justifyContent: gridComputed ? 'space-around' : 'flex-start'
|
|
|
}"
|
|
|
- @click="add"
|
|
|
>
|
|
|
- <div class="big-screen-card-inner big-screen-card-inner-add">
|
|
|
- <div class="add-big-screen-card">
|
|
|
- <div class="add-big-screen-card-inner">
|
|
|
- <div class="add-big-screen-card-text">
|
|
|
- 新建组件
|
|
|
+ <!-- 第一个是新增大屏卡片 -->
|
|
|
+ <div
|
|
|
+ v-if="catalogInfo !== 'system'"
|
|
|
+ class="big-screen-card-wrap"
|
|
|
+ :style="{
|
|
|
+ width: gridComputed ? 'auto' : '290px'
|
|
|
+ }"
|
|
|
+ @click="add"
|
|
|
+ >
|
|
|
+ <div class="big-screen-card-inner big-screen-card-inner-add">
|
|
|
+ <div class="add-big-screen-card">
|
|
|
+ <div class="add-big-screen-card-inner">
|
|
|
+ <div class="add-big-screen-card-text">
|
|
|
+ 新建组件
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <!-- 后面遍历 list -->
|
|
|
- <div
|
|
|
- v-for="screen in list"
|
|
|
- :key="screen.id"
|
|
|
- class="big-screen-card-wrap"
|
|
|
- :style="{
|
|
|
- width: gridComputed ? 'auto' : '290px'
|
|
|
- }"
|
|
|
- >
|
|
|
- <div class="big-screen-card-inner">
|
|
|
- <div class="screen-card__hover">
|
|
|
- <div class="screen-card__hover-box">
|
|
|
- <div class="preview">
|
|
|
- <div
|
|
|
- class="screen-card__oper-label circle"
|
|
|
- @click="preview(screen)"
|
|
|
- >
|
|
|
- <span>预览</span>
|
|
|
- </div>
|
|
|
- <div
|
|
|
- v-if="catalogInfo !== 'system'"
|
|
|
- class="circle"
|
|
|
- @click="design(screen)"
|
|
|
- >
|
|
|
- <span>设计</span>
|
|
|
- </div>
|
|
|
- <div
|
|
|
- v-if="catalogInfo !== 'system'"
|
|
|
- class="circle"
|
|
|
- @click="edit(screen)"
|
|
|
- >
|
|
|
- <span>编辑</span>
|
|
|
+ <!-- 后面遍历 list -->
|
|
|
+ <div
|
|
|
+ v-for="screen in list"
|
|
|
+ :key="screen.id"
|
|
|
+ class="big-screen-card-wrap"
|
|
|
+ :style="{
|
|
|
+ width: gridComputed ? 'auto' : '290px'
|
|
|
+ }"
|
|
|
+ >
|
|
|
+ <div class="big-screen-card-inner">
|
|
|
+ <div class="screen-card__hover">
|
|
|
+ <div class="screen-card__hover-box">
|
|
|
+ <div class="preview">
|
|
|
+ <div
|
|
|
+ class="screen-card__oper-label circle"
|
|
|
+ @click="preview(screen)"
|
|
|
+ >
|
|
|
+ <span>预览</span>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ v-if="catalogInfo !== 'system'"
|
|
|
+ class="circle"
|
|
|
+ @click="design(screen)"
|
|
|
+ >
|
|
|
+ <span>设计</span>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ v-if="catalogInfo !== 'system'"
|
|
|
+ class="circle"
|
|
|
+ @click="edit(screen)"
|
|
|
+ >
|
|
|
+ <span>编辑</span>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ v-if="catalogInfo !== 'system'"
|
|
|
+ class="circle"
|
|
|
+ @click="copy(screen)"
|
|
|
+ >
|
|
|
+ <span>复制</span>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ v-if="catalogInfo !== 'system'"
|
|
|
+ class="circle"
|
|
|
+ @click="del(screen)"
|
|
|
+ >
|
|
|
+ <span>删除</span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="big-screen-card-img">
|
|
|
+ <el-image
|
|
|
+ :src="catalogInfo !== 'system' ? screen.coverPicture : screen.img"
|
|
|
+ fit="fill"
|
|
|
+ style="width: 100%; height: 100%"
|
|
|
+ >
|
|
|
<div
|
|
|
- v-if="catalogInfo !== 'system'"
|
|
|
- class="circle"
|
|
|
- @click="copy(screen)"
|
|
|
+ slot="placeholder"
|
|
|
+ class="image-slot"
|
|
|
>
|
|
|
- <span>复制</span>
|
|
|
+ 加载中···
|
|
|
</div>
|
|
|
<div
|
|
|
- v-if="catalogInfo !== 'system'"
|
|
|
- class="circle"
|
|
|
- @click="del(screen)"
|
|
|
+ slot="error"
|
|
|
+ class="image-slot"
|
|
|
+ style="font-size: 20px"
|
|
|
>
|
|
|
- <span>删除</span>
|
|
|
+ <div class="error-img-text">
|
|
|
+ {{ catalogInfo !== 'system'? screen.name : screen.title }}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </el-image>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div class="big-screen-card-img">
|
|
|
- <el-image
|
|
|
- :src="catalogInfo !== 'system' ? screen.coverPicture : screen.img"
|
|
|
- fit="fill"
|
|
|
- style="width: 100%; height: 100%"
|
|
|
- >
|
|
|
+ <div class="big-screen-bottom">
|
|
|
<div
|
|
|
- slot="placeholder"
|
|
|
- class="image-slot"
|
|
|
+ class="left-bigscreen-title"
|
|
|
+ :title="catalogInfo !== 'system'? screen.name : screen.title"
|
|
|
>
|
|
|
- 加载中···
|
|
|
+ {{ catalogInfo !== 'system'? screen.name : screen.title }}
|
|
|
</div>
|
|
|
- <div
|
|
|
- slot="error"
|
|
|
- class="image-slot"
|
|
|
- style="font-size: 20px"
|
|
|
- >
|
|
|
- <div class="error-img-text">
|
|
|
- {{ catalogInfo !== 'system'? screen.name : screen.title }}
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </el-image>
|
|
|
- </div>
|
|
|
- <div class="big-screen-bottom">
|
|
|
- <div
|
|
|
- class="left-bigscreen-title"
|
|
|
- :title="catalogInfo !== 'system'? screen.name : screen.title"
|
|
|
- >
|
|
|
- {{ catalogInfo !== 'system'? screen.name : screen.title }}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
|
- <div
|
|
|
- v-if="catalogInfo !== 'system'"
|
|
|
- class="footer-pagination-wrap"
|
|
|
- >
|
|
|
- <!-- <div class="footer-pagination-wrap-text">
|
|
|
+ <div
|
|
|
+ v-if="catalogInfo !== 'system'"
|
|
|
+ class="footer-pagination-wrap"
|
|
|
+ >
|
|
|
+ <!-- <div class="footer-pagination-wrap-text">
|
|
|
总共 {{ totalCount }} 个项目
|
|
|
</div> -->
|
|
|
- <div class="bs-pagination">
|
|
|
- <el-pagination
|
|
|
- class="bs-el-pagination"
|
|
|
- popper-class="bs-el-pagination"
|
|
|
- background
|
|
|
- layout="total, prev, pager, next, sizes"
|
|
|
- :page-size="size"
|
|
|
- prev-text="上一页"
|
|
|
- next-text="下一页"
|
|
|
- :total="totalCount"
|
|
|
- :page-sizes="[10, 20, 50, 100]"
|
|
|
- :current-page="current"
|
|
|
- @current-change="currentChangeHandle"
|
|
|
- @size-change="sizeChangeHandle"
|
|
|
- />
|
|
|
+ <div class="bs-pagination">
|
|
|
+ <el-pagination
|
|
|
+ class="bs-el-pagination"
|
|
|
+ popper-class="bs-el-pagination"
|
|
|
+ background
|
|
|
+ layout="total, prev, pager, next, sizes"
|
|
|
+ :page-size="size"
|
|
|
+ prev-text="上一页"
|
|
|
+ next-text="下一页"
|
|
|
+ :total="totalCount"
|
|
|
+ :page-sizes="[10, 20, 50, 100]"
|
|
|
+ :current-page="current"
|
|
|
+ @current-change="currentChangeHandle"
|
|
|
+ @size-change="sizeChangeHandle"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 新增或编辑弹窗 -->
|
|
@@ -424,12 +426,15 @@ export default {
|
|
|
.big-screen-list-wrap {
|
|
|
position: relative;
|
|
|
height: 100%;
|
|
|
- padding: 16px;
|
|
|
+ // padding: 16px;
|
|
|
// margin:0 16px;
|
|
|
margin-left: 16px;
|
|
|
color: #9ea9b2;
|
|
|
background-color: var(--bs-background-2) !important;
|
|
|
-
|
|
|
+ .internal-box{
|
|
|
+ height: calc(100% - 32px);
|
|
|
+ padding: 16px;
|
|
|
+ }
|
|
|
.top-search-wrap {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
@@ -454,15 +459,16 @@ export default {
|
|
|
|
|
|
.list-wrap {
|
|
|
/* display: grid; */
|
|
|
- overflow: auto;
|
|
|
+ overflow: auto;
|
|
|
+ padding-right: 5px;
|
|
|
// 间隙自适应
|
|
|
justify-content: space-around;
|
|
|
// max-height: calc(100vh - 304px);
|
|
|
- height: calc(100% - 96px);
|
|
|
+ max-height: calc(100% - 90px);
|
|
|
display: grid;
|
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
|
grid-gap: 15px;
|
|
|
-
|
|
|
+ padding-bottom: 10px;
|
|
|
// /deep/ .el-loading-mask {
|
|
|
// display: flex;
|
|
|
// align-items: center;
|