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 038efcd3
authored
Apr 24, 2019
by
wangql
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改BUG
1 parent
b59a8b54
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
157 additions
and
74 deletions
src/views/noticeCenter/index.vue
src/views/noticeManage/AddDialog.vue
src/views/noticeManage/index.vue
src/views/noticeCenter/index.vue
View file @
038efcd
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<gl-form
<gl-form
:inline=
"true"
:inline=
"true"
:model=
"searchParams"
:model=
"searchParams"
label-width=
"
10
0px"
label-width=
"
9
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;"
>
...
@@ -27,40 +27,53 @@
...
@@ -27,40 +27,53 @@
</gl-date-picker>
</gl-date-picker>
</gl-form-item>
</gl-form-item>
</gl-col>
</gl-col>
<gl-col
:span=
"7"
>
<gl-col
:span=
"5"
>
<gl-form-item
label=
"内容分类:"
>
<gl-select
name=
"personalCode"
v-model=
"searchParams.personalCode"
placeholder=
"全部"
>
<gl-option
v-for=
"item in personalList"
:label=
"item.confKey"
:value=
"item.confId"
:key=
"item.confId"
>
</gl-option>
</gl-select>
</gl-form-item>
</gl-col>
<gl-col
:span=
"8"
>
<gl-form-item
label=
"展示方式:"
>
<gl-form-item
label=
"展示方式:"
>
<gl-select
<gl-select
name=
"showType"
name=
"showType"
v-model=
"searchParams.showType"
v-model=
"searchParams.showType"
placeholder=
"全部"
>
placeholder=
"全部"
style=
"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>
</gl-select>
</gl-select>
</gl-form-item>
</gl-form-item>
</gl-col>
</gl-col>
<gl-col
:span=
"5"
>
<gl-form-item
label=
"发布状态:"
>
<gl-select
name=
"publishStatus"
v-model=
"searchParams.publishStatus"
placeholder=
"全部"
style=
"width:150px;"
>
<gl-option
label=
"全部"
value=
""
></gl-option>
<gl-option
label=
"未发布"
value=
"1"
></gl-option>
<gl-option
label=
"已发布"
value=
"2"
></gl-option>
<gl-option
label=
"取消发布"
value=
"3"
></gl-option>
</gl-select>
</gl-form-item>
</gl-col>
<gl-col
:span=
"5"
>
<gl-form-item
label=
"审核状态:"
prop=
"checkStatus"
>
<gl-select
name=
"publishStatus"
v-model=
"searchParams.checkStatus"
placeholder=
"全部"
style=
"width:150px;"
>
<gl-option
label=
"全部"
value=
""
></gl-option>
<gl-option
label=
"仅保存"
value=
"0"
></gl-option>
<gl-option
label=
"审核通过"
value=
"2"
></gl-option>
<gl-option
label=
"审核不通过"
value=
"3"
></gl-option>
<gl-option
label=
"待审核"
value=
"1"
></gl-option>
</gl-select>
</gl-form-item>
</gl-col>
</gl-row>
</gl-row>
<gl-row>
<gl-row>
<gl-col
:span=
"
9
"
>
<gl-col
:span=
"
8
"
>
<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>
</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=
"merchant"
name=
"merchant"
...
@@ -82,24 +95,13 @@
...
@@ -82,24 +95,13 @@
<gl-select
<gl-select
name=
"activityType"
name=
"activityType"
v-model=
"searchParams.activityType"
v-model=
"searchParams.activityType"
placeholder=
"全部"
>
placeholder=
"全部"
style=
"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>
<gl-option
label=
"已过期"
value=
"3"
></gl-option>
<gl-option
label=
"已过期"
value=
"3"
></gl-option>
</gl-select>
</gl-select>
</gl-form-item>
</gl-form-item>
<gl-form-item
label=
"发布状态:"
v-show=
"itemShow === 1"
>
<gl-select
name=
"publishStatus"
v-model=
"searchParams.publishStatus"
placeholder=
"全部"
>
<gl-option
label=
"全部"
value=
""
></gl-option>
<gl-option
label=
"仅保存"
value=
"1"
></gl-option>
<gl-option
label=
"已发布"
value=
"2"
></gl-option>
<gl-option
label=
"取消发布"
value=
"3"
></gl-option>
</gl-select>
</gl-form-item>
<gl-form-item>
<gl-form-item>
<gl-button
<gl-button
type=
"primary"
type=
"primary"
...
@@ -254,16 +256,17 @@ export default {
...
@@ -254,16 +256,17 @@ export default {
fileUrl
:
''
,
fileUrl
:
''
,
merchantList
:
[],
merchantList
:
[],
merchantChildsList
:
[],
merchantChildsList
:
[],
personalList
:
[{
//
personalList: [{
confKey
:
'全部'
,
//
confKey: '全部',
confId
:
''
//
confId: ''
}],
//
}],
searchParams
:
{
searchParams
:
{
bulletinType
:
'1'
,
bulletinType
:
'1'
,
personalCode
:
''
,
personalCode
:
''
,
showType
:
''
,
showType
:
''
,
activityType
:
''
,
activityType
:
''
,
publishStatus
:
''
,
publishStatus
:
''
,
checkStatus
:
''
,
titile
:
''
,
titile
:
''
,
startTime
:
''
,
startTime
:
''
,
endTime
:
''
endTime
:
''
...
@@ -316,7 +319,7 @@ export default {
...
@@ -316,7 +319,7 @@ export default {
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
if
(
cellValue
.
publishStatus
)
{
if
(
cellValue
.
publishStatus
)
{
return
{
return
{
1
:
'
仅保存
'
,
1
:
'
未发布
'
,
2
:
'已发布'
,
2
:
'已发布'
,
3
:
'取消发布'
3
:
'取消发布'
}[
cellValue
.
publishStatus
]
}[
cellValue
.
publishStatus
]
...
@@ -324,6 +327,26 @@ export default {
...
@@ -324,6 +327,26 @@ export default {
}
}
},
},
{
{
label
:
'审核状态'
,
prop
:
'checkStatus'
,
width
:
'150'
,
formatter
:
cellValue
=>
{
if
(
cellValue
.
checkStatus
)
{
return
{
0
:
'仅保存'
,
1
:
'待审核'
,
2
:
'审核通过'
,
3
:
'审核未通过'
}[
cellValue
.
checkStatus
]
}
}
},
{
label
:
'不通过原因'
,
prop
:
'checkReason'
,
width
:
'200'
},
{
label
:
'推送列表'
,
label
:
'推送列表'
,
width
:
'100'
,
width
:
'100'
,
prop
:
'userCount'
prop
:
'userCount'
...
@@ -376,7 +399,7 @@ export default {
...
@@ -376,7 +399,7 @@ export default {
width
:
'250'
width
:
'250'
},
},
{
{
label
:
'
内容
分类'
,
label
:
'
员工
分类'
,
width
:
'150'
,
width
:
'150'
,
prop
:
'personalCodeValue'
prop
:
'personalCodeValue'
},
},
...
@@ -400,7 +423,7 @@ export default {
...
@@ -400,7 +423,7 @@ export default {
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
if
(
cellValue
.
publishStatus
)
{
if
(
cellValue
.
publishStatus
)
{
return
{
return
{
1
:
'
仅保存
'
,
1
:
'
未发布
'
,
2
:
'已发布'
,
2
:
'已发布'
,
3
:
'取消发布'
3
:
'取消发布'
}[
cellValue
.
publishStatus
]
}[
cellValue
.
publishStatus
]
...
@@ -408,6 +431,26 @@ export default {
...
@@ -408,6 +431,26 @@ export default {
}
}
},
},
{
{
label
:
'审核状态'
,
prop
:
'checkStatus'
,
width
:
'150'
,
formatter
:
cellValue
=>
{
if
(
cellValue
.
checkStatus
)
{
return
{
0
:
'仅保存'
,
1
:
'待审核'
,
2
:
'审核通过'
,
3
:
'审核未通过'
}[
cellValue
.
checkStatus
]
}
}
},
{
label
:
'不通过原因'
,
prop
:
'checkReason'
,
width
:
'200'
},
{
label
:
'活动时间'
,
label
:
'活动时间'
,
prop
:
'activityTime'
,
prop
:
'activityTime'
,
width
:
'300'
width
:
'300'
...
@@ -495,7 +538,7 @@ export default {
...
@@ -495,7 +538,7 @@ export default {
width
:
'100px'
width
:
'100px'
},
},
{
{
label
:
'
内容
分类'
,
label
:
'
员工
分类'
,
width
:
'150'
,
width
:
'150'
,
prop
:
'personalCodeValue'
prop
:
'personalCodeValue'
},
},
...
@@ -519,7 +562,7 @@ export default {
...
@@ -519,7 +562,7 @@ export default {
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
if
(
cellValue
.
publishStatus
)
{
if
(
cellValue
.
publishStatus
)
{
return
{
return
{
1
:
'
仅保存
'
,
1
:
'
未发布
'
,
2
:
'已发布'
,
2
:
'已发布'
,
3
:
'取消发布'
3
:
'取消发布'
}[
cellValue
.
publishStatus
]
}[
cellValue
.
publishStatus
]
...
@@ -527,6 +570,26 @@ export default {
...
@@ -527,6 +570,26 @@ export default {
}
}
},
},
{
{
label
:
'审核状态'
,
prop
:
'checkStatus'
,
width
:
'150'
,
formatter
:
cellValue
=>
{
if
(
cellValue
.
checkStatus
)
{
return
{
0
:
'仅保存'
,
1
:
'待审核'
,
2
:
'审核通过'
,
3
:
'审核未通过'
}[
cellValue
.
checkStatus
]
}
}
},
{
label
:
'不通过原因'
,
prop
:
'checkReason'
,
width
:
'200'
},
{
label
:
'推送列表'
,
label
:
'推送列表'
,
width
:
'100'
,
width
:
'100'
,
prop
:
'userCount'
prop
:
'userCount'
...
@@ -624,7 +687,7 @@ export default {
...
@@ -624,7 +687,7 @@ export default {
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
if
(
cellValue
.
publishStatus
)
{
if
(
cellValue
.
publishStatus
)
{
return
{
return
{
1
:
'
仅保存
'
,
1
:
'
未发布
'
,
2
:
'已发布'
,
2
:
'已发布'
,
3
:
'取消发布'
3
:
'取消发布'
}[
cellValue
.
publishStatus
]
}[
cellValue
.
publishStatus
]
...
@@ -632,6 +695,26 @@ export default {
...
@@ -632,6 +695,26 @@ export default {
}
}
},
},
{
{
label
:
'审核状态'
,
prop
:
'checkStatus'
,
width
:
'150'
,
formatter
:
cellValue
=>
{
if
(
cellValue
.
checkStatus
)
{
return
{
0
:
'仅保存'
,
1
:
'待审核'
,
2
:
'审核通过'
,
3
:
'审核未通过'
}[
cellValue
.
checkStatus
]
}
}
},
{
label
:
'不通过原因'
,
prop
:
'checkReason'
,
width
:
'200'
},
{
label
:
'推送列表'
,
label
:
'推送列表'
,
width
:
'100'
,
width
:
'100'
,
prop
:
'userCount'
prop
:
'userCount'
...
@@ -758,7 +841,7 @@ export default {
...
@@ -758,7 +841,7 @@ export default {
this
.
loadingGetList
()
this
.
loadingGetList
()
// this.getGroupList()
// this.getGroupList()
this
.
getAllMerchant
()
this
.
getAllMerchant
()
this
.
GetPersonalType
()
//
this.GetPersonalType()
},
},
methods
:
{
methods
:
{
loadingGetList
()
{
loadingGetList
()
{
...
@@ -809,17 +892,17 @@ export default {
...
@@ -809,17 +892,17 @@ export default {
})
})
},
},
// 字典数据 – 获取商户员工类型
// 字典数据 – 获取商户员工类型
GetPersonalType
()
{
//
GetPersonalType() {
const
params
=
{}
//
const params = {}
params
.
method
=
ctMethods
.
GetPersonalType
//
params.method = ctMethods.GetPersonalType
request
.
req
(
params
).
then
(
res
=>
{
//
request.req(params).then(res => {
for
(
var
i
in
res
.
merchantDictList
)
{
//
for (var i in res.merchantDictList) {
this
.
personalList
.
push
(
res
.
merchantDictList
[
i
])
//
this.personalList.push(res.merchantDictList[i])
}
//
}
}).
catch
(
err
=>
{
//
}).catch(err => {
console
.
log
(
err
)
//
console.log(err)
})
//
})
},
//
},
handleSizeChange
(
val
)
{
handleSizeChange
(
val
)
{
this
.
pageSize
=
val
this
.
pageSize
=
val
this
.
loadingGetList
()
this
.
loadingGetList
()
...
...
src/views/noticeManage/AddDialog.vue
View file @
038efcd
...
@@ -270,7 +270,7 @@ export default {
...
@@ -270,7 +270,7 @@ export default {
handleDraft() {
handleDraft() {
if (this.noticeForm.titile !== '') {
if (this.noticeForm.titile !== '') {
this.noticeForm.bulletinType = 1 // 通知
this.noticeForm.bulletinType = 1 // 通知
this.noticeForm.publishStatus = 1 //
仅保存
this.noticeForm.publishStatus = 1 //
未发布
this.noticeForm.checkStatus = 0 // 草稿
this.noticeForm.checkStatus = 0 // 草稿
this.$emit('handleAddComfirm')
this.$emit('handleAddComfirm')
} else {
} else {
...
...
src/views/noticeManage/index.vue
View file @
038efcd
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
label-width=
"100px"
label-width=
"100px"
>
>
<gl-row>
<gl-row>
<gl-col
:span=
"1
2
"
>
<gl-col
:span=
"1
4
"
>
<gl-form-item
label=
"时间:"
>
<gl-form-item
label=
"时间:"
>
<gl-select
<gl-select
name=
"timeLimitType"
name=
"timeLimitType"
...
@@ -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
2
"
>
<gl-col
:span=
"1
0
"
>
<gl-form-item
label=
"展示方式:"
>
<gl-form-item
label=
"展示方式:"
>
<gl-select
<gl-select
name=
"showType"
name=
"showType"
...
@@ -41,36 +41,36 @@
...
@@ -41,36 +41,36 @@
</gl-col>
</gl-col>
</gl-row>
</gl-row>
<gl-row>
<gl-row>
<gl-col
:span=
"
12
"
>
<gl-col
:span=
"
8
"
>
<gl-form-item
label=
"发布状态:"
>
<gl-form-item
label=
"发布状态:"
>
<gl-select
<gl-select
name=
"publishStatus"
name=
"publishStatus"
v-model=
"searchParams.publishStatus"
v-model=
"searchParams.publishStatus"
placeholder=
"请选择"
>
placeholder=
"请选择"
>
<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>
<gl-option
label=
"取消发布"
value=
"3"
></gl-option>
<gl-option
label=
"取消发布"
value=
"3"
></gl-option>
</gl-select>
</gl-select>
</gl-form-item>
</gl-form-item>
</gl-col>
</gl-col>
<gl-col
:span=
"
12
"
>
<gl-col
:span=
"
8
"
>
<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>
<gl-form-item
>
</gl-col
>
<gl-button
<gl-col
:span=
"8"
>
type=
"primary"
<gl-form-item
style=
"float:right;"
>
@
click=
"getList"
<gl-button
>
查询
</gl-button>
type=
"primary"
</gl-form-item>
@
click=
"getList"
<gl-form-item
style=
"float:right;"
>
>
查询
</gl-button
>
<gl-button
<gl-button
class=
"newButton"
class=
"newButton"
type=
"primary"
type=
"primary"
@
click=
"handleAdd(true)"
@
click=
"handleAdd(true)"
>
创建通知
</gl-button>
>
创建通知
</gl-button>
</gl-form-item>
</gl-form-item>
</gl-col>
</gl-col>
</gl-row>
</gl-row>
</gl-form>
</gl-form>
...
@@ -283,7 +283,7 @@ export default {
...
@@ -283,7 +283,7 @@ export default {
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
if
(
cellValue
.
publishStatus
)
{
if
(
cellValue
.
publishStatus
)
{
return
{
return
{
1
:
'
仅保存
'
,
1
:
'
未发布
'
,
2
:
'已发布'
,
2
:
'已发布'
,
3
:
'取消发布'
3
:
'取消发布'
}[
cellValue
.
publishStatus
]
}[
cellValue
.
publishStatus
]
...
@@ -605,7 +605,7 @@ export default {
...
@@ -605,7 +605,7 @@ export default {
this
.
handleAdd
()
this
.
handleAdd
()
resetSearch
(
this
.
noticeForm
)
resetSearch
(
this
.
noticeForm
)
},
},
// isRelease是否审核发布,默认为
仅保存
// isRelease是否审核发布,默认为
未发布
handleAddComfirm
(
isRelease
=
false
)
{
handleAddComfirm
(
isRelease
=
false
)
{
isRelease
?
this
.
createCheckNotice
()
:
this
.
createNotice
()
isRelease
?
this
.
createCheckNotice
()
:
this
.
createNotice
()
// this.handleAdd()
// this.handleAdd()
...
...
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