Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-notice
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7c8727f5
authored
Apr 24, 2019
by
wangql
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改BUG
1 parent
4a95e788
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
93 additions
and
40 deletions
src/views/noticeCenter/index.vue
src/views/noticeManage/AddDialog.vue
src/views/noticeManage/index.vue
src/views/noticeCenter/index.vue
View file @
7c8727f
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<gl-form
<gl-form
:inline=
"true"
:inline=
"true"
:model=
"searchParams"
:model=
"searchParams"
label-width=
"1
2
0px"
label-width=
"1
0
0px"
>
>
<template>
<template>
<gl-radio-group
v-model=
"searchParams.bulletinType"
@
change=
"loadingGetList"
style=
"margin-bottom: 30px;"
>
<gl-radio-group
v-model=
"searchParams.bulletinType"
@
change=
"loadingGetList"
style=
"margin-bottom: 30px;"
>
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
</gl-radio-group>
</gl-radio-group>
</
template
>
</
template
>
<gl-row>
<gl-row>
<gl-col
:span=
"
10
"
>
<gl-col
:span=
"
9
"
>
<gl-form-item
label=
"发布时间:"
>
<gl-form-item
label=
"发布时间:"
>
<gl-date-picker
<gl-date-picker
v-model=
"times"
v-model=
"times"
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
</gl-select>
</gl-select>
</gl-form-item>
</gl-form-item>
</gl-col>
</gl-col>
<gl-col
:span=
"
7
"
>
<gl-col
:span=
"
8
"
>
<gl-form-item
label=
"展示方式:"
>
<gl-form-item
label=
"展示方式:"
>
<gl-select
<gl-select
name=
"showType"
name=
"showType"
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
</gl-col>
</gl-col>
</gl-row>
</gl-row>
<gl-row>
<gl-row>
<gl-col
:span=
"
10
"
>
<gl-col
:span=
"
9
"
>
<gl-form-item
label=
"标题:"
prop=
"titile"
>
<gl-form-item
label=
"标题:"
prop=
"titile"
>
<gl-input
name=
"titile"
placeholder=
"请输入标题"
v-model=
"searchParams.titile"
style=
"width:217px"
></gl-input>
<gl-input
name=
"titile"
placeholder=
"请输入标题"
v-model=
"searchParams.titile"
style=
"width:217px"
></gl-input>
</gl-form-item>
</gl-form-item>
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
</gl-select>
</gl-select>
</gl-form-item>
</gl-form-item>
</gl-col>
</gl-col>
<gl-col
:span=
"
7
"
>
<gl-col
:span=
"
8
"
>
<gl-form-item
label=
"活动状态:"
v-show=
"itemShow === 2"
>
<gl-form-item
label=
"活动状态:"
v-show=
"itemShow === 2"
>
<gl-select
<gl-select
name=
"activityType"
name=
"activityType"
...
@@ -293,6 +293,7 @@ export default {
...
@@ -293,6 +293,7 @@ export default {
{
{
label
:
'展示方式'
,
label
:
'展示方式'
,
prop
:
'showType'
,
prop
:
'showType'
,
width
:
'100'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
if
(
cellValue
.
showType
)
{
if
(
cellValue
.
showType
)
{
return
{
return
{
...
@@ -305,6 +306,7 @@ export default {
...
@@ -305,6 +306,7 @@ export default {
{
{
label
:
'发布状态'
,
label
:
'发布状态'
,
prop
:
'publishStatus'
,
prop
:
'publishStatus'
,
width
:
'100'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
if
(
cellValue
.
publishStatus
)
{
if
(
cellValue
.
publishStatus
)
{
return
{
return
{
...
@@ -317,10 +319,12 @@ export default {
...
@@ -317,10 +319,12 @@ export default {
},
},
{
{
label
:
'推送列表'
,
label
:
'推送列表'
,
width
:
'100'
,
prop
:
'userCount'
prop
:
'userCount'
},
},
{
{
label
:
'点击率'
,
label
:
'点击率'
,
width
:
'90'
,
prop
:
'viewPercentage'
prop
:
'viewPercentage'
},
},
{
{
...
@@ -335,6 +339,7 @@ export default {
...
@@ -335,6 +339,7 @@ export default {
},
},
{
{
label
:
'创建人'
,
label
:
'创建人'
,
width
:
'150'
,
prop
:
'operatorName'
prop
:
'operatorName'
},
},
{
{
...
@@ -372,6 +377,7 @@ export default {
...
@@ -372,6 +377,7 @@ export default {
{
{
label
:
'展示方式'
,
label
:
'展示方式'
,
prop
:
'showType'
,
prop
:
'showType'
,
width
:
'100'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
if
(
cellValue
.
showType
)
{
if
(
cellValue
.
showType
)
{
return
{
return
{
...
@@ -384,6 +390,7 @@ export default {
...
@@ -384,6 +390,7 @@ export default {
{
{
label
:
'发布状态'
,
label
:
'发布状态'
,
prop
:
'publishStatus'
,
prop
:
'publishStatus'
,
width
:
'100'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
if
(
cellValue
.
publishStatus
)
{
if
(
cellValue
.
publishStatus
)
{
return
{
return
{
...
@@ -402,6 +409,7 @@ export default {
...
@@ -402,6 +409,7 @@ export default {
{
{
label
:
'活动状态'
,
label
:
'活动状态'
,
prop
:
'activityType'
,
prop
:
'activityType'
,
width
:
'100'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
if
(
cellValue
.
activityType
)
{
if
(
cellValue
.
activityType
)
{
return
{
return
{
...
@@ -414,14 +422,17 @@ export default {
...
@@ -414,14 +422,17 @@ export default {
},
},
{
{
label
:
'推送列表'
,
label
:
'推送列表'
,
width
:
'100'
,
prop
:
'userCount'
prop
:
'userCount'
},
},
{
{
label
:
'已点击'
,
label
:
'已点击'
,
width
:
'90'
,
prop
:
'viewCount'
prop
:
'viewCount'
},
},
{
{
label
:
'未点击'
,
label
:
'未点击'
,
width
:
'90'
,
prop
:
'noViewCount'
,
prop
:
'noViewCount'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
if
(
cellValue
.
userCount
&&
(
cellValue
.
viewCount
||
cellValue
.
viewCount
===
0
))
{
if
(
cellValue
.
userCount
&&
(
cellValue
.
viewCount
||
cellValue
.
viewCount
===
0
))
{
...
@@ -431,10 +442,12 @@ export default {
...
@@ -431,10 +442,12 @@ export default {
},
},
{
{
label
:
'点击率'
,
label
:
'点击率'
,
width
:
'90'
,
prop
:
'viewPercentage'
prop
:
'viewPercentage'
},
},
{
{
label
:
'创建人'
,
label
:
'创建人'
,
width
:
'150'
,
prop
:
'operatorName'
prop
:
'operatorName'
},
},
{
{
...
@@ -477,6 +490,7 @@ export default {
...
@@ -477,6 +490,7 @@ export default {
{
{
label
:
'展示方式'
,
label
:
'展示方式'
,
prop
:
'showType'
,
prop
:
'showType'
,
width
:
'100'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
if
(
cellValue
.
showType
)
{
if
(
cellValue
.
showType
)
{
return
{
return
{
...
@@ -488,6 +502,7 @@ export default {
...
@@ -488,6 +502,7 @@ export default {
},
},
{
{
label
:
'发布状态'
,
label
:
'发布状态'
,
width
:
'100'
,
prop
:
'publishStatus'
,
prop
:
'publishStatus'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
if
(
cellValue
.
publishStatus
)
{
if
(
cellValue
.
publishStatus
)
{
...
@@ -501,14 +516,17 @@ export default {
...
@@ -501,14 +516,17 @@ export default {
},
},
{
{
label
:
'推送列表'
,
label
:
'推送列表'
,
width
:
'100'
,
prop
:
'userCount'
prop
:
'userCount'
},
},
{
{
label
:
'已点击'
,
label
:
'已点击'
,
width
:
'90'
,
prop
:
'viewCount'
prop
:
'viewCount'
},
},
{
{
label
:
'未点击'
,
label
:
'未点击'
,
width
:
'90'
,
prop
:
'noViewCount'
,
prop
:
'noViewCount'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
if
(
cellValue
.
userCount
&&
(
cellValue
.
viewCount
||
cellValue
.
viewCount
===
0
))
{
if
(
cellValue
.
userCount
&&
(
cellValue
.
viewCount
||
cellValue
.
viewCount
===
0
))
{
...
@@ -518,6 +536,7 @@ export default {
...
@@ -518,6 +536,7 @@ export default {
},
},
{
{
label
:
'点击率'
,
label
:
'点击率'
,
width
:
'90'
,
prop
:
'viewPercentage'
prop
:
'viewPercentage'
},
},
{
{
...
@@ -527,6 +546,7 @@ export default {
...
@@ -527,6 +546,7 @@ export default {
},
},
{
{
label
:
'创建人'
,
label
:
'创建人'
,
width
:
'150'
,
prop
:
'operatorName'
prop
:
'operatorName'
},
},
{
{
...
@@ -555,7 +575,7 @@ export default {
...
@@ -555,7 +575,7 @@ export default {
border
:
true
,
border
:
true
,
stripe
:
true
,
stripe
:
true
,
align
:
'center'
,
align
:
'center'
,
height
:
parseInt
(
this
.
$client_height
()
-
27
0
),
height
:
parseInt
(
this
.
$client_height
()
-
32
0
),
data
:
[],
data
:
[],
number
:
{
number
:
{
label
:
'序号'
,
label
:
'序号'
,
...
@@ -575,6 +595,7 @@ export default {
...
@@ -575,6 +595,7 @@ export default {
{
{
label
:
'展示方式'
,
label
:
'展示方式'
,
prop
:
'showType'
,
prop
:
'showType'
,
width
:
'100'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
if
(
cellValue
.
showType
)
{
if
(
cellValue
.
showType
)
{
return
{
return
{
...
@@ -586,6 +607,7 @@ export default {
...
@@ -586,6 +607,7 @@ export default {
},
},
{
{
label
:
'发布状态'
,
label
:
'发布状态'
,
width
:
'100'
,
prop
:
'publishStatus'
,
prop
:
'publishStatus'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
if
(
cellValue
.
publishStatus
)
{
if
(
cellValue
.
publishStatus
)
{
...
@@ -599,10 +621,12 @@ export default {
...
@@ -599,10 +621,12 @@ export default {
},
},
{
{
label
:
'推送列表'
,
label
:
'推送列表'
,
width
:
'100'
,
prop
:
'userCount'
prop
:
'userCount'
},
},
{
{
label
:
'点击率'
,
label
:
'点击率'
,
width
:
'90'
,
prop
:
'viewPercentage'
prop
:
'viewPercentage'
},
},
{
{
...
@@ -617,6 +641,7 @@ export default {
...
@@ -617,6 +641,7 @@ export default {
},
},
{
{
label
:
'创建人'
,
label
:
'创建人'
,
width
:
'150'
,
prop
:
'operatorName'
prop
:
'operatorName'
},
},
{
{
...
@@ -658,7 +683,7 @@ export default {
...
@@ -658,7 +683,7 @@ export default {
label
:
'下载附件'
,
label
:
'下载附件'
,
type
:
'text'
,
type
:
'text'
,
formatter
(
cellValue
)
{
formatter
(
cellValue
)
{
return
cellValue
.
attachment
?
'下载附件'
:
null
return
cellValue
.
publishStatus
===
3
?
''
:
'下载附件'
},
},
callback
:
(
index
,
row
)
=>
{
callback
:
(
index
,
row
)
=>
{
if
(
row
[
index
].
attachment
)
{
if
(
row
[
index
].
attachment
)
{
...
@@ -872,29 +897,4 @@ export default {
...
@@ -872,29 +897,4 @@ export default {
height
:
36px
;
height
:
36px
;
cursor
:
pointer
;
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
>
</
style
>
src/views/noticeManage/AddDialog.vue
View file @
7c8727f
...
@@ -133,8 +133,31 @@
...
@@ -133,8 +133,31 @@
type=
"primary"
type=
"primary"
@
click=
"handleComfrim"
@
click=
"handleComfrim"
>
审核并发布
</el-button>
>
审核并发布
</el-button>
<el-button
type=
"primary"
@
click=
"preview"
>
预览
</el-button>
<el-button
@
click=
"handleClose"
>
取消发布
</el-button>
<el-button
@
click=
"handleClose"
>
取消发布
</el-button>
</span>
</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>
</gl-dialog>
</div>
</div>
</
template
>
</
template
>
...
@@ -149,6 +172,7 @@ export default {
...
@@ -149,6 +172,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
previewVisible
:
false
,
isClear
:
false
,
isClear
:
false
,
title
:
'创建通知'
,
title
:
'创建通知'
,
fileList
:
[],
fileList
:
[],
...
@@ -268,6 +292,9 @@ export default {
...
@@ -268,6 +292,9 @@ export default {
this.$emit('handleAddComfirm', true)
this.$emit('handleAddComfirm', true)
}
}
})
})
},
preview() {
this.previewVisible = !this.previewVisible
}
}
}
}
}
}
...
@@ -284,4 +311,28 @@ export default {
...
@@ -284,4 +311,28 @@ export default {
display
:
flex
;
display
:
flex
;
overflow-x
:
auto
;
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
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/noticeManage/index.vue
View file @
7c8727f
...
@@ -3,14 +3,14 @@
...
@@ -3,14 +3,14 @@
<gl-form
<gl-form
:inline=
"true"
:inline=
"true"
:model=
"searchParams"
:model=
"searchParams"
label-width=
"1
2
0px"
label-width=
"1
0
0px"
>
>
<gl-row>
<gl-row>
<gl-col
:span=
"1
4
"
>
<gl-col
:span=
"1
2
"
>
<gl-form-item
label=
"时间:"
>
<gl-form-item
label=
"时间:"
>
<gl-select
<gl-select
name=
"timeLimitType"
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=
""
></gl-option>
<gl-option
label=
"创建时间"
value=
"1"
></gl-option>
<gl-option
label=
"创建时间"
value=
"1"
></gl-option>
<gl-option
label=
"发布时间"
value=
"2"
></gl-option>
<gl-option
label=
"发布时间"
value=
"2"
></gl-option>
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
</gl-date-picker>
</gl-date-picker>
</gl-form-item>
</gl-form-item>
</gl-col>
</gl-col>
<gl-col
:span=
"1
0
"
>
<gl-col
:span=
"1
2
"
>
<gl-form-item
label=
"展示方式:"
>
<gl-form-item
label=
"展示方式:"
>
<gl-select
<gl-select
name=
"showType"
name=
"showType"
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
</gl-col>
</gl-col>
</gl-row>
</gl-row>
<gl-row>
<gl-row>
<gl-col
:span=
"1
4
"
>
<gl-col
:span=
"1
2
"
>
<gl-form-item
label=
"发布状态:"
>
<gl-form-item
label=
"发布状态:"
>
<gl-select
<gl-select
name=
"publishStatus"
name=
"publishStatus"
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
</gl-select>
</gl-select>
</gl-form-item>
</gl-form-item>
</gl-col>
</gl-col>
<gl-col
:span=
"1
0
"
>
<gl-col
:span=
"1
2
"
>
<gl-form-item
label=
"标题:"
prop=
"titile"
>
<gl-form-item
label=
"标题:"
prop=
"titile"
>
<gl-input
name=
"titile"
placeholder=
"请输入标题"
v-model=
"searchParams.titile"
style=
"width:217px"
></gl-input>
<gl-input
name=
"titile"
placeholder=
"请输入标题"
v-model=
"searchParams.titile"
style=
"width:217px"
></gl-input>
</gl-form-item>
</gl-form-item>
...
@@ -235,7 +235,9 @@ export default {
...
@@ -235,7 +235,9 @@ export default {
merchants
:
[],
merchants
:
[],
attachment
:
''
,
attachment
:
''
,
showType
:
''
,
showType
:
''
,
publishStatus
:
''
publishStatus
:
''
,
publishTime
:
''
,
merchantName
:
''
},
},
// 编辑弹窗参数-end
// 编辑弹窗参数-end
detailVisible
:
false
,
detailVisible
:
false
,
...
@@ -247,7 +249,7 @@ export default {
...
@@ -247,7 +249,7 @@ export default {
border
:
true
,
border
:
true
,
stripe
:
true
,
stripe
:
true
,
align
:
'center'
,
align
:
'center'
,
height
:
parseInt
(
this
.
$client_height
()
-
2
0
0
),
height
:
parseInt
(
this
.
$client_height
()
-
2
5
0
),
data
:
[],
data
:
[],
number
:
{
number
:
{
label
:
'序号'
,
label
:
'序号'
,
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment