Commit 2cfec1c2 by 前端

修复bug

1 parent c402c8a9
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
</el-button> </el-button>
人 人
</div> </div>
<div > <div>
<div v-for="(subItem, subIdx) in customerDataList" :key="subIdx"> <div v-for="(subItem, subIdx) in customerDataList" :key="subIdx">
<el-tag v-for="(k, n) in subItem.labelList" :key="n" class="customer-tag" :size="size" <el-tag v-for="(k, n) in subItem.labelList" :key="n" class="customer-tag" :size="size"
type="info" :closable="true" :disable-transitions="false" type="info" :closable="true" :disable-transitions="false"
...@@ -199,9 +199,9 @@ export default { ...@@ -199,9 +199,9 @@ export default {
funcName: '', funcName: '',
type: 'img', type: 'img',
togetherItem: [ATT_TYPE.TEXT], //只允许文本和图片 togetherItem: [ATT_TYPE.TEXT], //只允许文本和图片
limitSize: 10, //限制图片大小 // limitSize: 10, //限制图片大小
limitNum: 9, //限制图片数量 limitNum: 9, //限制图片数量
limitPx: 1555200, // limitPx: 1555200,
paramsType: 'form-data', paramsType: 'form-data',
// limitWidth: 10000, //限制单张图片宽度 // limitWidth: 10000, //限制单张图片宽度
// limitHeight: 10000,//限制单张图片高度 // limitHeight: 10000,//限制单张图片高度
...@@ -227,6 +227,7 @@ export default { ...@@ -227,6 +227,7 @@ export default {
funName: 'postLink', funName: 'postLink',
togetherItem: [ATT_TYPE.TEXT], togetherItem: [ATT_TYPE.TEXT],
limitOrNot: true, limitOrNot: true,
Isdraggable: true,//需要配置限制时,也传递该属性
uploadApi: this.$apis.common.pictureUpload uploadApi: this.$apis.common.pictureUpload
} }
], ],
......
...@@ -4,10 +4,11 @@ ...@@ -4,10 +4,11 @@
<div class="m-b-20 friend-title"> <div class="m-b-20 friend-title">
<div class="friend-title-left"> <div class="friend-title-left">
<GLButton :size="size" type="primary" fn="编辑朋友圈" @click="handleEdit(1)">发布朋友圈</GLButton> <GLButton :size="size" type="primary" fn="编辑朋友圈" @click="handleEdit(1)">发布朋友圈</GLButton>
<span class="friend-tip-text">管理员可直接在后台为员工创建朋友圈,员工收到朋友圈新消息提醒后,可快捷将管理员创建的朋友圈发送到自己朋友圈中。</span> <span
class="friend-tip-text">管理员可直接在后台为员工创建朋友圈,员工收到朋友圈新消息提醒后,可快捷将管理员创建的朋友圈发送到自己朋友圈中。</span>
</div> </div>
<div class="title"> <div class="title">
<span class="info-time">{{this.sendType}}:{{ this.updatedTime }}</span> <span class="info-time">{{ this.sendType }}:{{ this.updatedTime }}</span>
<span class="info-refresh" @click="handleRefresh"> <span class="info-refresh" @click="handleRefresh">
刷新数据 刷新数据
...@@ -26,26 +27,48 @@ ...@@ -26,26 +27,48 @@
</span> </span>
</glsx-combi-form> </glsx-combi-form>
</div> --> </div> -->
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData"
@handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable v-loading="loading" ref="proGroupRef" @refreshTable="handleSearch" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf"> <GLTable v-loading="loading" ref="proGroupRef" @refreshTable="handleSearch" :layout="layout"
:tableData="tableData" :tableTotal="tableTotal" :searchForm="searchForm" :tableParams="tableParams"
:pageConf="pageConf">
<div slot="attachmentList" class="table-attachmentList" slot-scope="scope"> <div slot="attachmentList" class="table-attachmentList" slot-scope="scope">
<div class="attachmentList-box"> <div class="attachmentList-box">
<template v-if="scope.scope.previewListUrl && scope.scope.previewListUrl.length">
<div v-for="(item,index) in scope.scope.previewListUrl" :key="index" class="linkStyle">
<img :src="JSON.parse(item.attContent).picurl" alt=""/>
<span class="linkText">{{ JSON.parse(item.attContent).title }}</span>
</div>
</template>
<template v-else>
<div v-for="(item, index) in scope.scope.previewListImg" :key="item.id"> <div v-for="(item, index) in scope.scope.previewListImg" :key="item.id">
<div class="attachmentList-image" v-if="index == 0 && item.attType == 1 && (scope.scope.materialType == 0 || scope.scope.materialType == 4)"></div> <div class="attachmentList-image"
<div class="attachmentList-image" v-if="index == 0 && item.attType == 2 && scope.scope.materialType == 1"><img :src="item.attContent[0]" alt="" /></div> v-if="index == 0 && item.attType == 1 && (scope.scope.materialType == 0 )"></div>
<div class="attachmentList-image" v-if="index == 0 && item.attType == 2 && scope.scope.materialType == 2">
<img :src="item.attContent[0]" alt="" /> <div class="attachmentList-image"
v-if="index == 0 && item.attType == 2 && scope.scope.materialType == 1"><img
:src="item.attContent[0]" alt=""/></div>
<div class="attachmentList-image"
v-if="index == 0 && item.attType == 2 && scope.scope.materialType == 2">
<img :src="item.attContent[0]" alt=""/>
<div class="image-num">{{ scope.scope.previewListImg.length }}</div> <div class="image-num">{{ scope.scope.previewListImg.length }}</div>
<div class="image-panel"><img src="@/assets/imgNum.png" /></div> <div class="image-panel"><img src="@/assets/imgNum.png"/></div>
</div> </div>
<div class="attachmentList-image attachmentList-video" v-if="index == 0 && item.attType == 3 && scope.scope.materialType == 3"><img src="@/assets/guestCustom/video-list.png" /></div> <div class="attachmentList-image attachmentList-video"
v-if="index == 0 && item.attType == 3 && scope.scope.materialType == 3"><img
src="@/assets/guestCustom/video-list.png"/></div>
</div> </div>
<div v-for="item in scope.scope.previewListText" :key="item.id"> <div v-for="item in scope.scope.previewListText" :key="item.id">
<div class="attachmentList-text" v-if="item.attContent">{{ item.attContent[0] }}</div> <div class="attachmentList-text" v-if="item.attContent && item.attType !== 4">{{
item.attContent[0]
}}
</div> </div>
</div> </div>
</template>
</div>
</div> </div>
<div slot="sendType" slot-scope="scope"> <div slot="sendType" slot-scope="scope">
<span style="color: #eb4e4e" v-if="scope.scope.sendType == 2">定时发送</span> <span style="color: #eb4e4e" v-if="scope.scope.sendType == 2">定时发送</span>
...@@ -66,7 +89,8 @@ ...@@ -66,7 +89,8 @@
<!-- 表格区域 end --> <!-- 表格区域 end -->
</div> </div>
<!-- 下架 --> <!-- 下架 -->
<glsx-dialog title="下架" :isVisible.sync="isDownVisible" @confirmDialog="handleDownConfirm" @closeDialog="handleDownClose"> <glsx-dialog title="下架" :isVisible.sync="isDownVisible" @confirmDialog="handleDownConfirm"
@closeDialog="handleDownClose">
<el-form ref="downRef" label-width="100px" :rules="downRules" :model="downForm"> <el-form ref="downRef" label-width="100px" :rules="downRules" :model="downForm">
<el-form-item label="下架备注" prop="offReason"> <el-form-item label="下架备注" prop="offReason">
<el-input :size="size" v-model="downForm.offReason" placeholder="请输入下架备注" maxlength="30"></el-input> <el-input :size="size" v-model="downForm.offReason" placeholder="请输入下架备注" maxlength="30"></el-input>
...@@ -80,7 +104,8 @@ ...@@ -80,7 +104,8 @@
<script> <script>
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
import { utils } from 'glsx-common' import {utils} from 'glsx-common'
export default { export default {
name: 'friendGroup', name: 'friendGroup',
data() { data() {
...@@ -97,10 +122,10 @@ export default { ...@@ -97,10 +122,10 @@ export default {
goodsStatus: 0 goodsStatus: 0
}, },
downRules: { downRules: {
offReason: [{ required: true, message: '请输入下架备注', trigger: 'change' }] offReason: [{required: true, message: '请输入下架备注', trigger: 'change'}]
}, },
updatedTime: '', updatedTime: '',
sendType:'', sendType: '',
// 分享 // 分享
isShareVisible: false, isShareVisible: false,
shareForm: {}, shareForm: {},
...@@ -154,7 +179,8 @@ export default { ...@@ -154,7 +179,8 @@ export default {
return row.status == 2 || row.status == 1 return row.status == 2 || row.status == 1
}, },
listeners: { listeners: {
click: () => {} click: () => {
}
} }
}, },
{ {
...@@ -168,7 +194,8 @@ export default { ...@@ -168,7 +194,8 @@ export default {
return row.status == -1 return row.status == -1
}, },
listeners: { listeners: {
click: () => {} click: () => {
}
} }
}, },
{ {
...@@ -182,7 +209,8 @@ export default { ...@@ -182,7 +209,8 @@ export default {
return row.status == 4 return row.status == 4
}, },
listeners: { listeners: {
click: () => {} click: () => {
}
} }
}, },
{ {
...@@ -296,7 +324,7 @@ export default { ...@@ -296,7 +324,7 @@ export default {
}, },
layout: 'sizes, prev, pager, next, jumper, ->, total', layout: 'sizes, prev, pager, next, jumper, ->, total',
tableTotal: 0, tableTotal: 0,
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' }, pageConf: {pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count'},
baseData: { baseData: {
typeStatusList: [ typeStatusList: [
{ {
...@@ -370,14 +398,16 @@ export default { ...@@ -370,14 +398,16 @@ export default {
previewListFilter = previewListFilter.reduce((prev, cur) => { previewListFilter = previewListFilter.reduce((prev, cur) => {
let index = prev.findIndex(item => item.attType == 2) let index = prev.findIndex(item => item.attType == 2)
if (index != -1 && prev.length) { if (index != -1 && prev.length) {
return prev.concat({ attType: cur.attType, attContent: prev[index].attContent.concat(cur.attContent) }) return prev.concat({attType: cur.attType, attContent: prev[index].attContent.concat(cur.attContent)})
} }
return prev.concat(cur) return prev.concat(cur)
}, []) }, [])
const previewListUrl = previewListFilter.filter(item => item.attType == 4)
const previewListText = previewListFilter.filter(item => item.attType == 1) const previewListText = previewListFilter.filter(item => item.attType == 1)
const previewListImg = previewListFilter.filter(item => item.attType != 1) const previewListImg = previewListFilter.filter(item => item.attType != 1)
this.$set(listM, 'previewListText', previewListText) this.$set(listM, 'previewListText', previewListText)
this.$set(listM, 'previewListImg', previewListImg) this.$set(listM, 'previewListImg', previewListImg)
this.$set(listM, 'previewListUrl', previewListUrl)
}) })
this.tableTotal = res.count this.tableTotal = res.count
} }
...@@ -536,18 +566,22 @@ export default { ...@@ -536,18 +566,22 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
color: #666666; color: #666666;
.friend-title-left { .friend-title-left {
display: flex; display: flex;
align-items: center; align-items: center;
} }
.title { .title {
display: flex; display: flex;
align-items: center; align-items: center;
margin-left: 74px; margin-left: 74px;
white-space: nowrap; white-space: nowrap;
.info-refresh { .info-refresh {
display: flex; display: flex;
align-items: center; align-items: center;
.icon-wrap { .icon-wrap {
width: 24px; width: 24px;
height: 24px; height: 24px;
...@@ -558,24 +592,29 @@ export default { ...@@ -558,24 +592,29 @@ export default {
text-align: center; text-align: center;
line-height: 24px; line-height: 24px;
} }
.el-icon-refresh { .el-icon-refresh {
color: #fff; color: #fff;
} }
font-size: 14px; font-size: 14px;
color: #5850ff; color: #5850ff;
cursor: pointer; cursor: pointer;
margin-left: 8px; margin-left: 8px;
.wait-status { .wait-status {
transition: all ease-in 1s; transition: all ease-in 1s;
transform: rotate(360deg); transform: rotate(360deg);
} }
} }
.info-time { .info-time {
font-size: 14px; font-size: 14px;
color: #7d7d7d; color: #7d7d7d;
margin-left: 10px; margin-left: 10px;
} }
} }
span { span {
font-size: 14px; font-size: 14px;
margin-left: 10px; margin-left: 10px;
...@@ -584,9 +623,11 @@ export default { ...@@ -584,9 +623,11 @@ export default {
// width: 80%; // width: 80%;
} }
} }
.attachmentList-box { .attachmentList-box {
display: flex; display: flex;
align-items: center; align-items: center;
.attachmentList-image { .attachmentList-image {
width: 36px; width: 36px;
height: 36px; height: 36px;
...@@ -597,21 +638,25 @@ export default { ...@@ -597,21 +638,25 @@ export default {
align-items: center; align-items: center;
color: #fff; color: #fff;
font-size: 24px; font-size: 24px;
.image-num { .image-num {
font-size: 14px; font-size: 14px;
z-index: 10; z-index: 10;
} }
.image-panel { .image-panel {
position: absolute; position: absolute;
width: 36px; width: 36px;
height: 36px; height: 36px;
top: 0px; top: 0px;
left: 0px; left: 0px;
img { img {
width: 36px; width: 36px;
height: 36px; height: 36px;
} }
} }
.el-icon-reading { .el-icon-reading {
position: absolute; position: absolute;
font-size: 24px; font-size: 24px;
...@@ -619,9 +664,11 @@ export default { ...@@ -619,9 +664,11 @@ export default {
left: 5px; left: 5px;
color: #fff; color: #fff;
} }
&.attachmentList-video { &.attachmentList-video {
background: rgba($color: #000000, $alpha: 0.7); background: rgba($color: #000000, $alpha: 0.7);
position: relative; position: relative;
img { img {
position: absolute; position: absolute;
top: 6px; top: 6px;
...@@ -630,6 +677,7 @@ export default { ...@@ -630,6 +677,7 @@ export default {
height: 24px; height: 24px;
} }
} }
> img { > img {
position: absolute; position: absolute;
top: 0px; top: 0px;
...@@ -638,10 +686,31 @@ export default { ...@@ -638,10 +686,31 @@ export default {
height: 36px; height: 36px;
} }
} }
.attachmentList-text { .attachmentList-text {
font-size: 14px; font-size: 14px;
text-align: left; text-align: left;
text-overflow: -o-ellipsis-lastline; //text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
}
}
.linkStyle{
display: flex;
align-items: center;
img{
width: 36px;
height: 36px;
margin-right: 4px;
}
.linkText{
font-size: 14px;
text-align: left;
//text-overflow: -o-ellipsis-lastline;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
display: -webkit-box; display: -webkit-box;
......
...@@ -245,7 +245,7 @@ export default { ...@@ -245,7 +245,7 @@ export default {
font-weight: 600; font-weight: 600;
color: #333333; color: #333333;
line-height: 20px; line-height: 20px;
max-width: 150px; max-width: 110px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
...@@ -256,7 +256,7 @@ export default { ...@@ -256,7 +256,7 @@ export default {
font-weight: 400; font-weight: 400;
color: #999999; color: #999999;
line-height: 17px; line-height: 17px;
max-width: 150px; max-width: 110px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!