Commit 7c8727f5 by wangql

修改BUG

1 parent 4a95e788
......@@ -3,7 +3,7 @@
<gl-form
:inline="true"
:model="searchParams"
label-width="120px"
label-width="100px"
>
<template>
<gl-radio-group v-model="searchParams.bulletinType" @change="loadingGetList" style="margin-bottom: 30px;">
......@@ -13,7 +13,7 @@
</gl-radio-group>
</template>
<gl-row>
<gl-col :span="10">
<gl-col :span="9">
<gl-form-item label="发布时间:">
<gl-date-picker
v-model="times"
......@@ -39,7 +39,7 @@
</gl-select>
</gl-form-item>
</gl-col>
<gl-col :span="7">
<gl-col :span="8">
<gl-form-item label="展示方式:">
<gl-select
name="showType"
......@@ -53,7 +53,7 @@
</gl-col>
</gl-row>
<gl-row>
<gl-col :span="10">
<gl-col :span="9">
<gl-form-item label="标题:" prop="titile">
<gl-input name="titile" placeholder="请输入标题" v-model="searchParams.titile" style="width:217px"></gl-input>
</gl-form-item>
......@@ -75,7 +75,7 @@
</gl-select>
</gl-form-item>
</gl-col>
<gl-col :span="7">
<gl-col :span="8">
<gl-form-item label="活动状态:" v-show="itemShow === 2">
<gl-select
name="activityType"
......@@ -293,6 +293,7 @@ export default {
{
label: '展示方式',
prop: 'showType',
width: '100',
formatter: cellValue => {
if (cellValue.showType) {
return {
......@@ -305,6 +306,7 @@ export default {
{
label: '发布状态',
prop: 'publishStatus',
width: '100',
formatter: cellValue => {
if (cellValue.publishStatus) {
return {
......@@ -317,10 +319,12 @@ export default {
},
{
label: '推送列表',
width: '100',
prop: 'userCount'
},
{
label: '点击率',
width: '90',
prop: 'viewPercentage'
},
{
......@@ -335,6 +339,7 @@ export default {
},
{
label: '创建人',
width: '150',
prop: 'operatorName'
},
{
......@@ -372,6 +377,7 @@ export default {
{
label: '展示方式',
prop: 'showType',
width: '100',
formatter: cellValue => {
if (cellValue.showType) {
return {
......@@ -384,6 +390,7 @@ export default {
{
label: '发布状态',
prop: 'publishStatus',
width: '100',
formatter: cellValue => {
if (cellValue.publishStatus) {
return {
......@@ -402,6 +409,7 @@ export default {
{
label: '活动状态',
prop: 'activityType',
width: '100',
formatter: cellValue => {
if (cellValue.activityType) {
return {
......@@ -414,14 +422,17 @@ export default {
},
{
label: '推送列表',
width: '100',
prop: 'userCount'
},
{
label: '已点击',
width: '90',
prop: 'viewCount'
},
{
label: '未点击',
width: '90',
prop: 'noViewCount',
formatter: cellValue => {
if (cellValue.userCount && (cellValue.viewCount || cellValue.viewCount === 0)) {
......@@ -431,10 +442,12 @@ export default {
},
{
label: '点击率',
width: '90',
prop: 'viewPercentage'
},
{
label: '创建人',
width: '150',
prop: 'operatorName'
},
{
......@@ -477,6 +490,7 @@ export default {
{
label: '展示方式',
prop: 'showType',
width: '100',
formatter: cellValue => {
if (cellValue.showType) {
return {
......@@ -488,6 +502,7 @@ export default {
},
{
label: '发布状态',
width: '100',
prop: 'publishStatus',
formatter: cellValue => {
if (cellValue.publishStatus) {
......@@ -501,14 +516,17 @@ export default {
},
{
label: '推送列表',
width: '100',
prop: 'userCount'
},
{
label: '已点击',
width: '90',
prop: 'viewCount'
},
{
label: '未点击',
width: '90',
prop: 'noViewCount',
formatter: cellValue => {
if (cellValue.userCount && (cellValue.viewCount || cellValue.viewCount === 0)) {
......@@ -518,6 +536,7 @@ export default {
},
{
label: '点击率',
width: '90',
prop: 'viewPercentage'
},
{
......@@ -527,6 +546,7 @@ export default {
},
{
label: '创建人',
width: '150',
prop: 'operatorName'
},
{
......@@ -555,7 +575,7 @@ export default {
border: true,
stripe: true,
align: 'center',
height: parseInt(this.$client_height() - 270),
height: parseInt(this.$client_height() - 320),
data: [],
number: {
label: '序号',
......@@ -575,6 +595,7 @@ export default {
{
label: '展示方式',
prop: 'showType',
width: '100',
formatter: cellValue => {
if (cellValue.showType) {
return {
......@@ -586,6 +607,7 @@ export default {
},
{
label: '发布状态',
width: '100',
prop: 'publishStatus',
formatter: cellValue => {
if (cellValue.publishStatus) {
......@@ -599,10 +621,12 @@ export default {
},
{
label: '推送列表',
width: '100',
prop: 'userCount'
},
{
label: '点击率',
width: '90',
prop: 'viewPercentage'
},
{
......@@ -617,6 +641,7 @@ export default {
},
{
label: '创建人',
width: '150',
prop: 'operatorName'
},
{
......@@ -658,7 +683,7 @@ export default {
label: '下载附件',
type: 'text',
formatter(cellValue) {
return cellValue.attachment ? '下载附件' : null
return cellValue.publishStatus === 3 ? '' : '下载附件'
},
callback: (index, row) => {
if (row[index].attachment) {
......@@ -872,29 +897,4 @@ export default {
height: 36px;
cursor: pointer;
}
.merchant .btn {
width: 100%
}
.merchantSelect .ui-select-search {
width: 100%
}
.detail_title {
text-align: center;
font-size: 20px;
color: #6C6F71;
padding: 5px 0 10px;
}
.subTitle {
font-size: 12px;
color: #A1A1A1;
letter-spacing: -0.3px;
text-align: center;
}
.f-r {
float: right;
}
.content {
padding: 12px 0 20px;
}
</style>
......@@ -133,8 +133,31 @@
type="primary"
@click="handleComfrim"
>审核并发布</el-button>
<el-button
type="primary"
@click="preview"
>预览</el-button>
<el-button @click="handleClose">取消发布</el-button>
</span>
<gl-dialog title="通知详情" :visible.sync="previewVisible" append-to-body>
<div class="inmodal" >
<!-- <div class="modal-header">
<h4 class="modal-title">通知详情</h4>
<button type="button" class="close" data-dismiss="modal" ng-click="$dismiss()">
<span aria-hidden="true">×</span> <span class="sr-only">Close</span>
</button>
</div> -->
<div class="modal-body ofy-visible">
<div class="detail_title">{{noticeForm.titile}}</div>
<div>
<span class="subTitle">发布时间:{{noticeForm.publishTime}}</span>
<span class="subTitle f-r">消息来自:{{noticeForm.merchantName}}</span>
</div>
<div class="content" ng-bind-html="content | htmlTrusted" v-html="noticeForm.context"></div>
<div>附件:<a class="btn btn-link text-info btn-xs" :href="noticeForm.attachment" v-show="noticeForm.attachment">点击下载资料</a></div>
</div>
</div>
</gl-dialog>
</gl-dialog>
</div>
</template>
......@@ -149,6 +172,7 @@ export default {
},
data() {
return {
previewVisible: false,
isClear: false,
title: '创建通知',
fileList: [],
......@@ -268,6 +292,9 @@ export default {
this.$emit('handleAddComfirm', true)
}
})
},
preview() {
this.previewVisible = !this.previewVisible
}
}
}
......@@ -284,4 +311,28 @@ export default {
display: flex;
overflow-x: auto;
}
.merchant .btn {
width: 100%
}
.merchantSelect .ui-select-search {
width: 100%
}
.detail_title {
text-align: center;
font-size: 20px;
color: #6C6F71;
padding: 5px 0 10px;
}
.subTitle {
font-size: 12px;
color: #A1A1A1;
letter-spacing: -0.3px;
text-align: center;
}
.f-r {
float: right;
}
.content {
padding: 12px 0 20px;
}
</style>
\ No newline at end of file
......@@ -3,14 +3,14 @@
<gl-form
:inline="true"
:model="searchParams"
label-width="120px"
label-width="100px"
>
<gl-row>
<gl-col :span="14">
<gl-col :span="12">
<gl-form-item label="时间:">
<gl-select
name="timeLimitType"
v-model="searchParams.timeLimitType" placeholder="时间类型" style="margin-right: 20px;">
v-model="searchParams.timeLimitType" placeholder="时间类型" style="margin-right: 20px;width:150px;">
<gl-option label="全部" value=""></gl-option>
<gl-option label="创建时间" value="1"></gl-option>
<gl-option label="发布时间" value="2"></gl-option>
......@@ -27,7 +27,7 @@
</gl-date-picker>
</gl-form-item>
</gl-col>
<gl-col :span="10">
<gl-col :span="12">
<gl-form-item label="展示方式:">
<gl-select
name="showType"
......@@ -41,7 +41,7 @@
</gl-col>
</gl-row>
<gl-row>
<gl-col :span="14">
<gl-col :span="12">
<gl-form-item label="发布状态:">
<gl-select
name="publishStatus"
......@@ -54,7 +54,7 @@
</gl-select>
</gl-form-item>
</gl-col>
<gl-col :span="10">
<gl-col :span="12">
<gl-form-item label="标题:" prop="titile">
<gl-input name="titile" placeholder="请输入标题" v-model="searchParams.titile" style="width:217px"></gl-input>
</gl-form-item>
......@@ -235,7 +235,9 @@ export default {
merchants: [],
attachment: '',
showType: '',
publishStatus: ''
publishStatus: '',
publishTime: '',
merchantName: ''
},
// 编辑弹窗参数-end
detailVisible: false,
......@@ -247,7 +249,7 @@ export default {
border: true,
stripe: true,
align: 'center',
height: parseInt(this.$client_height() - 200),
height: parseInt(this.$client_height() - 250),
data: [],
number: {
label: '序号',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!