Commit 439e1c88 by cwq0219
2 parents 00a42af1 6ad650d7
......@@ -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"
......@@ -41,7 +41,7 @@
</gl-select>
</gl-form-item>
</gl-col>
<gl-col :span="7">
<gl-col :span="8">
<gl-form-item label="展示方式:">
<gl-select
name="showType"
......@@ -55,7 +55,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>
......@@ -77,7 +77,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"
......@@ -299,6 +299,7 @@ export default {
{
label: '展示方式',
prop: 'showType',
width: '100',
formatter: cellValue => {
if (cellValue.showType) {
return {
......@@ -311,6 +312,7 @@ export default {
{
label: '发布状态',
prop: 'publishStatus',
width: '100',
formatter: cellValue => {
if (cellValue.publishStatus) {
return {
......@@ -323,10 +325,12 @@ export default {
},
{
label: '推送列表',
width: '100',
prop: 'userCount'
},
{
label: '点击率',
width: '90',
prop: 'viewPercentage'
},
{
......@@ -341,6 +345,7 @@ export default {
},
{
label: '创建人',
width: '150',
prop: 'operatorName'
},
{
......@@ -378,6 +383,7 @@ export default {
{
label: '展示方式',
prop: 'showType',
width: '100',
formatter: cellValue => {
if (cellValue.showType) {
return {
......@@ -390,6 +396,7 @@ export default {
{
label: '发布状态',
prop: 'publishStatus',
width: '100',
formatter: cellValue => {
if (cellValue.publishStatus) {
return {
......@@ -408,6 +415,7 @@ export default {
{
label: '活动状态',
prop: 'activityType',
width: '100',
formatter: cellValue => {
console.log(cellValue.activityType)
if (cellValue.activityType) {
......@@ -421,14 +429,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)) {
......@@ -438,6 +449,7 @@ export default {
},
{
label: '点击率',
width: '90',
prop: 'viewPercentage'
},
{
......@@ -447,6 +459,7 @@ export default {
},
{
label: '创建人',
width: '150',
prop: 'operatorName'
},
{
......@@ -489,6 +502,7 @@ export default {
{
label: '展示方式',
prop: 'showType',
width: '100',
formatter: cellValue => {
if (cellValue.showType) {
return {
......@@ -500,6 +514,7 @@ export default {
},
{
label: '发布状态',
width: '100',
prop: 'publishStatus',
formatter: cellValue => {
if (cellValue.publishStatus) {
......@@ -513,14 +528,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)) {
......@@ -530,6 +548,7 @@ export default {
},
{
label: '点击率',
width: '90',
prop: 'viewPercentage'
},
{
......@@ -539,6 +558,7 @@ export default {
},
{
label: '创建人',
width: '150',
prop: 'operatorName'
},
{
......@@ -567,7 +587,7 @@ export default {
border: true,
stripe: true,
align: 'center',
height: parseInt(this.$client_height() - 300),
height: parseInt(this.$client_height() - 320),
data: [],
number: {
label: '序号',
......@@ -587,6 +607,7 @@ export default {
{
label: '展示方式',
prop: 'showType',
width: '100',
formatter: cellValue => {
if (cellValue.showType) {
return {
......@@ -598,6 +619,7 @@ export default {
},
{
label: '发布状态',
width: '100',
prop: 'publishStatus',
formatter: cellValue => {
if (cellValue.publishStatus) {
......@@ -611,10 +633,12 @@ export default {
},
{
label: '推送列表',
width: '100',
prop: 'userCount'
},
{
label: '点击率',
width: '90',
prop: 'viewPercentage'
},
{
......@@ -629,6 +653,7 @@ export default {
},
{
label: '创建人',
width: '150',
prop: 'operatorName'
},
{
......@@ -670,7 +695,7 @@ export default {
label: '下载附件',
type: 'text',
formatter(cellValue) {
return cellValue.attachment ? '下载附件' : null
return cellValue.publishStatus === 3 ? '' : '下载附件'
},
callback: (index, row) => {
if (row[index].attachment) {
......@@ -898,29 +923,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!