Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-admin
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴迪
gs1-admin
Commits
3380b42e
Commit
3380b42e
authored
Jan 23, 2022
by
Lyan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台bug
parent
edcee82d
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
439 additions
and
152 deletions
+439
-152
_base.scss
src/assets/scss/_base.scss
+10
-0
announce-add-or-update.vue
src/views/modules/info/announce-add-or-update.vue
+8
-1
announce.vue
src/views/modules/info/announce.vue
+14
-3
indexcarouselmanage-add-or-update.vue
src/views/modules/info/indexcarouselmanage-add-or-update.vue
+12
-6
indexcarouselmanage.vue
src/views/modules/info/indexcarouselmanage.vue
+13
-8
news-add-or-update.vue
src/views/modules/info/news-add-or-update.vue
+117
-19
news.vue
src/views/modules/info/news.vue
+10
-5
newsmovie-add-or-update.vue
src/views/modules/info/newsmovie-add-or-update.vue
+25
-26
newsmovie.vue
src/views/modules/info/newsmovie.vue
+18
-6
newtopic-add-or-update.vue
src/views/modules/info/newtopic-add-or-update.vue
+37
-11
newtopic.vue
src/views/modules/info/newtopic.vue
+13
-8
picture-add-or-update.vue
src/views/modules/info/picture-add-or-update.vue
+22
-8
picture.vue
src/views/modules/info/picture.vue
+15
-5
logistics-add-or-update.vue
src/views/modules/logistics/logistics-add-or-update.vue
+2
-0
logistics.vue
src/views/modules/logistics/logistics.vue
+6
-1
medical-add-or-update.vue
src/views/modules/medical/medical-add-or-update.vue
+2
-0
medical.vue
src/views/modules/medical/medical.vue
+6
-1
center-add-or-update.vue
src/views/modules/party/center-add-or-update.vue
+7
-1
center.vue
src/views/modules/party/center.vue
+10
-5
hotFlow-add-or-update.vue
src/views/modules/party/hotFlow-add-or-update.vue
+7
-1
hotFlow.vue
src/views/modules/party/hotFlow.vue
+10
-5
rules-add-or-update.vue
src/views/modules/party/rules-add-or-update.vue
+7
-1
rules.vue
src/views/modules/party/rules.vue
+10
-5
topicnews-add-or-update.vue
src/views/modules/party/topicnews-add-or-update.vue
+7
-1
topicnews.vue
src/views/modules/party/topicnews.vue
+10
-5
policy-add-or-update.vue
src/views/modules/policy/policy-add-or-update.vue
+2
-0
policy.vue
src/views/modules/policy/policy.vue
+3
-2
doc-add-or-update.vue
src/views/modules/service/doc-add-or-update.vue
+15
-8
doc.vue
src/views/modules/service/doc.vue
+21
-10
No files found.
src/assets/scss/_base.scss
View file @
3380b42e
...
...
@@ -367,6 +367,13 @@ img {
.el-select
,
.el-date-editor
{
width
:
100%
;
}
.pic
{
.
el-form-item__label
:
:
before
{
content
:
'*'
;
color
:
#f56c6c
;
margin-right
:
4px
;
}
}
.avatar-uploader
>
.el-upload
{
border
:
2px
dashed
#666666
;
...
...
@@ -402,6 +409,9 @@ img {
img
{
width
:
100%
;
}
video
{
width
:
100%
;
}
}
p
{
margin
:
0
;
...
...
src/views/modules/info/announce-add-or-update.vue
View file @
3380b42e
...
...
@@ -51,7 +51,7 @@
<p
v-show=
"showInfo"
>
{{
dataForm
.
showtime
}}
</p>
</el-form-item>
<el-form-item
label=
"附件路径:"
prop=
"fileUrl"
>
<el-form-item
label=
"附件路径:"
prop=
"fileUrl"
class=
"pic"
>
<el-upload
v-show=
"!showInfo"
class=
"avatar-uploaderFile"
...
...
@@ -134,6 +134,7 @@
showtime
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
]
},
fileUrl
:
new
FormData
(),
fileUrlStr
:
''
,
...
...
@@ -182,6 +183,8 @@
this
.
fileUrlStr
=
data
.
announce
.
fileUrlStr
this
.
dialogVisible
=
true
this
.
ueditor
.
value
=
this
.
dataForm
.
content
}
else
{
this
.
$message
.
error
(
data
.
msg
)
}
})
}
...
...
@@ -192,6 +195,10 @@
this
.
loading
=
true
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
this
.
dataForm
.
fileurl
===
''
||
this
.
dataForm
.
fileurl
===
null
)
{
this
.
$message
.
error
(
'图片未上传,请上传图片!'
)
return
}
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
`/office/announce/
${
!
this
.
dataForm
.
id
?
'save'
:
'update'
}
`
),
method
:
'post'
,
...
...
src/views/modules/info/announce.vue
View file @
3380b42e
...
...
@@ -51,7 +51,7 @@
</el-date-picker>
</el-form-item>
<el-button
class=
"seach-btn"
@
click=
"getDataList()"
type=
"primary"
>
搜索
</el-button>
<el-button
class=
"seach-btn"
@
click=
"getDataList
2
()"
type=
"primary"
>
搜索
</el-button>
</el-form>
<div
class=
"add-btn"
>
<el-button
v-if=
"isAuth('manage:announce:save')"
type=
"primary"
@
click=
"addOrUpdateHandle()"
>
+ 添加
</el-button>
...
...
@@ -72,6 +72,12 @@
label=
"级别"
>
</el-table-column>
<el-table-column
prop=
"title"
header-align=
"center"
align=
"center"
label=
"标题"
>
</el-table-column>
<el-table-column
prop=
"announcetype"
header-align=
"center"
align=
"center"
...
...
@@ -224,6 +230,10 @@ export default {
this
.
getDataList
()
},
methods
:
{
getDataList2
()
{
this
.
pageIndex
=
1
this
.
getDataList
()
},
// 获取数据列表
getDataList
()
{
this
.
dataListLoading
=
true
...
...
@@ -239,14 +249,15 @@ export default {
'editor'
:
this
.
dataForm
.
editor
,
'keyword'
:
this
.
dataForm
.
keyword
,
'status'
:
this
.
dataForm
.
status
,
'releaseTimeStart'
:
this
.
releaseDate
===
null
?
''
:
this
.
releaseDate
[
0
]
,
'releaseTimeEnd'
:
this
.
releaseDate
===
null
?
''
:
this
.
releaseDate
[
1
]
'releaseTimeStart'
:
this
.
releaseDate
&&
this
.
releaseDate
[
0
]
?
this
.
releaseDate
[
0
]
+
' 00:00:00'
:
''
,
'releaseTimeEnd'
:
this
.
releaseDate
&&
this
.
releaseDate
[
1
]
?
this
.
releaseDate
[
1
]
+
' 23:59:59'
:
''
})
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
dataList
=
data
.
page
.
list
this
.
totalPage
=
data
.
page
.
totalCount
}
else
{
this
.
$message
.
error
(
data
.
msg
)
this
.
dataList
=
[]
this
.
totalPage
=
0
}
...
...
src/views/modules/info/indexcarouselmanage-add-or-update.vue
View file @
3380b42e
...
...
@@ -102,7 +102,7 @@
<p
v-show=
"showInfo"
>
{{
dataForm
.
brief
}}
</p>
</el-form-item>
<el-form-item
label=
"图片:"
prop=
"picIndexPath"
class=
"setdes setdes3"
>
<el-form-item
label=
"图片:"
prop=
"picIndexPath"
class=
"setdes setdes3
pic
"
>
<el-upload
v-show=
"!showInfo"
class=
"avatar-uploader avatar2"
...
...
@@ -151,15 +151,15 @@
title
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
],
// brief: [
// { required: true, message: '不能为空', trigger: 'blur' }
// ],
levels
:
[
brief
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
],
directpath
:
[
levels
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
]
// directpath: [
// { required: true, message: '不能为空', trigger: 'blur' }
// ]
// picIndexPath: [
// { required: true, message: '不能为空', trigger: 'blur' }
// ]
...
...
@@ -234,6 +234,8 @@
this
.
dataForm
.
colorMore
=
data
.
indexCarouselManage
.
colorMore
this
.
imgUrlStr
=
data
.
indexCarouselManage
.
picIndexPath
this
.
dialogVisible
=
true
}
else
{
this
.
$message
.
error
(
data
.
msg
)
}
})
}
...
...
@@ -251,6 +253,10 @@
this
.
loading
=
true
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
this
.
dataForm
.
picIndexPath
===
''
||
this
.
dataForm
.
picIndexPath
===
null
)
{
this
.
$message
.
error
(
'图片未上传,请上传图片!'
)
return
}
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
`/office/indexCarouselManage/
${
!
this
.
dataForm
.
id
?
'save'
:
'update'
}
`
),
method
:
'post'
,
...
...
src/views/modules/info/indexcarouselmanage.vue
View file @
3380b42e
...
...
@@ -18,9 +18,9 @@
<el-select
v-model=
"dataForm.classnum"
placeholder=
"请选择类别"
clearable
>
<el-option
v-for=
"item in classnumList"
:key=
"item.
value
"
:label=
"item.
name
"
:value=
"item.
name
"
>
:key=
"item.
label
"
:label=
"item.
label
"
:value=
"item.
label
"
>
</el-option>
</el-select>
</el-form-item>
...
...
@@ -46,7 +46,7 @@
>
</el-date-picker>
</el-form-item>
<el-button
class=
"seach-btn"
@
click=
"getDataList()"
type=
"primary"
>
搜索
</el-button>
<el-button
class=
"seach-btn"
@
click=
"getDataList
2
()"
type=
"primary"
>
搜索
</el-button>
</el-form>
<div
class=
"add-btn"
>
<el-button
v-if=
"isAuth('manage:indexcarouselmanage:save')"
type=
"primary"
@
click=
"addOrUpdateHandle()"
>
+ 添加
</el-button>
...
...
@@ -212,6 +212,10 @@ export default {
this
.
getDataList
()
},
methods
:
{
getDataList2
()
{
this
.
pageIndex
=
1
this
.
getDataList
()
},
// 获取数据列表
getDataList
()
{
this
.
dataListLoading
=
true
...
...
@@ -225,8 +229,8 @@ export default {
'status'
:
this
.
dataForm
.
status
,
'levels'
:
this
.
dataForm
.
levels
,
'classnum'
:
this
.
dataForm
.
classnum
,
'
inputDataStart'
:
this
.
releaseDate
===
null
?
''
:
this
.
releaseDate
[
0
]
,
'
inputDataEnd'
:
this
.
releaseDate
===
null
?
''
:
this
.
releaseDate
[
1
]
'
startTime'
:
this
.
releaseDate
&&
this
.
releaseDate
[
0
]
?
this
.
releaseDate
[
0
]
+
' 00:00:00'
:
''
,
'
endTime'
:
this
.
releaseDate
&&
this
.
releaseDate
[
1
]
?
this
.
releaseDate
[
1
]
+
' 23:59:59'
:
''
})
}).
then
(({
data
})
=>
{
...
...
@@ -234,6 +238,7 @@ export default {
this
.
dataList
=
data
.
page
.
list
this
.
totalPage
=
data
.
page
.
totalCount
}
else
{
this
.
$message
.
error
(
data
.
msg
)
this
.
dataList
=
[]
this
.
totalPage
=
0
}
...
...
@@ -265,7 +270,7 @@ export default {
},
showMsg
(
data
)
{
if
(
!
data
.
directpath
||
data
.
directpath
===
null
)
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
'/
News/msg
?id='
+
data
.
id
,
'_blank'
)
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
'/
home
?id='
+
data
.
id
,
'_blank'
)
}
else
if
(
/^
\/
/
.
test
(
data
.
directpath
))
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
data
.
directpath
,
'_blank'
)
}
else
{
...
...
@@ -283,7 +288,7 @@ export default {
type
:
'warning'
}).
then
(()
=>
{
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/index
carouselm
anage/delete'
),
url
:
this
.
$http
.
adornUrl
(
'/office/index
CarouselM
anage/delete'
),
method
:
'post'
,
data
:
this
.
$http
.
adornData
(
ids
,
false
)
}).
then
(({
data
})
=>
{
...
...
src/views/modules/info/news-add-or-update.vue
View file @
3380b42e
...
...
@@ -24,18 +24,27 @@
<p
v-show=
"showInfo"
>
{{
dataForm
.
directpath
}}
</p>
</el-form-item>
<el-form-item
label=
"栏目:"
prop=
"classid"
>
<el-select
v-model=
"dataForm.classid"
@
change=
"getC
lassList([dataForm.classid])
"
style=
'width:121px!important'
v-show=
"!showInfo"
>
<el-option
<el-select
v-model=
"dataForm.classid"
@
change=
"getC
classList
"
style=
'width:121px!important'
v-show=
"!showInfo"
>
<
!--
<
el-option
ref =
'sel1'
v-for=
"item in classidList"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
>
</el-option>
</el-option>
-->
<el-option
value=
"5"
label=
"综合报道"
></el-option>
<el-option
value=
"6"
label=
"中心活动"
></el-option>
<el-option
value=
"7"
label=
"地方动态"
></el-option>
<el-option
value=
"8"
label=
"国际追踪"
></el-option>
<el-option
value=
"29"
label=
"Events"
></el-option>
<el-option
value=
"32"
label=
"研究动态"
></el-option>
<el-option
value=
"33"
label=
"科研成果"
></el-option>
<el-option
value=
"9"
label=
"专题"
></el-option>
<el-option
value=
"38"
label=
"质检中心"
></el-option>
<el-option
value=
"42"
label=
"条码通"
></el-option>
</el-select>
<el-select
v-model=
"dataForm.cclassid"
style=
'width:121px!important'
v-
show=
"!showInfo"
>
<el-select
v-model=
"dataForm.cclassid"
style=
'width:121px!important'
v-
if=
"!showInfo"
v-show=
"cclassShow"
>
<el-option
ref =
'sel2'
v-for=
"item in cclassidList"
:key=
"item.id"
:label=
"item.name"
...
...
@@ -78,10 +87,9 @@
<el-input
v-model=
"dataForm.author"
placeholder=
"请输入作者"
v-show=
"!showInfo"
></el-input>
<p
v-show=
"showInfo"
>
{{
dataForm
.
author
}}
</p>
</el-form-item>
<el-form-item
label=
"上传图片:"
prop=
"pic"
>
<el-form-item
label=
"上传图片:"
prop=
"pic"
class=
"pic"
>
<el-upload
v-show=
"!showInfo"
class=
"avatar-uploader avatar2"
action=
""
:show-file-list=
"false"
...
...
@@ -165,12 +173,12 @@
levels
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
],
directpath
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
],
pic
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
],
//
directpath: [
//
{ required: true, message: '不能为空', trigger: 'blur' }
//
],
//
pic: [
//
{ required: true, message: '不能为空', trigger: 'blur' }
//
],
// content: [
// { required: true, message: '不能为空', trigger: 'blur' }
// ],
...
...
@@ -193,8 +201,7 @@
},
piclevelList
:
[
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
],
id
:
[],
classidList
:
[],
cclassidList
:
[],
// cclassidList: [],
title
:
''
,
className
:
''
,
cclassName
:
''
...
...
@@ -202,7 +209,8 @@
},
created
()
{
this
.
getClassList
([
5
,
9
])
// this.getClassList([5, 9])
this
.
getCclassList
(
5
)
},
mounted
()
{
console
.
log
(
this
.
classidList
)
...
...
@@ -230,14 +238,33 @@
this
.
loading
=
false
if
(
data
&&
data
.
code
===
0
)
{
this
.
dataForm
=
data
.
news
this
.
getClassList
([
5
,
9
])
//
this.getClassList([5, 9])
this
.
dataForm
.
ishead
=
parseInt
(
data
.
news
.
ishead
)
this
.
dataForm
.
classid
=
this
.
dataForm
.
classid
this
.
getClassList
([
this
.
dataForm
.
classid
])
// this.getClassList([this.dataForm.classid])
this
.
dataForm
.
cclassid
=
this
.
dataForm
.
cclassid
this
.
imgUrlStr
=
data
.
news
.
pic
this
.
dialogVisible
=
true
this
.
ueditor
.
value
=
this
.
dataForm
.
content
if
([
24
,
25
,
26
,
27
,
28
,
30
].
indexOf
(
this
.
dataForm
.
classid
)
!==
-
1
)
{
this
.
dataForm
.
cclassid
=
this
.
dataForm
.
classid
this
.
dataForm
.
classid
=
'5'
this
.
getCclassList
(
this
.
dataForm
.
classid
)
}
else
if
([
35
,
36
,
37
].
indexOf
(
this
.
dataForm
.
classid
)
!==
-
1
)
{
this
.
dataForm
.
cclassid
=
this
.
dataForm
.
classid
this
.
dataForm
.
classid
=
'9'
this
.
getCclassList
(
this
.
dataForm
.
classid
)
}
else
if
([
39
,
40
,
41
].
indexOf
(
this
.
dataForm
.
classid
)
!==
-
1
)
{
this
.
dataForm
.
cclassid
=
this
.
dataForm
.
classid
this
.
dataForm
.
classid
=
'38'
this
.
getCclassList
(
this
.
dataForm
.
classid
)
}
else
{
this
.
dataForm
.
classid
=
this
.
dataForm
.
classid
+
''
this
.
getCclassList
(
this
.
dataForm
.
classid
)
}
}
else
{
this
.
$message
.
error
(
data
.
msg
)
}
})
}
...
...
@@ -248,6 +275,10 @@
this
.
loading
=
true
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
this
.
dataForm
.
pic
===
''
||
this
.
dataForm
.
pic
===
null
)
{
this
.
$message
.
error
(
'图片未上传,请上传图片!'
)
return
}
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
`/office/news/
${
!
this
.
dataForm
.
id
?
'save'
:
'update'
}
`
),
method
:
'post'
,
...
...
@@ -305,6 +336,73 @@
}
})
},
getCclassList
(
e
)
{
if
(
Number
(
e
)
===
5
)
{
this
.
cclassShow
=
true
this
.
cclassidList
=
[
{
id
:
24
,
name
:
'应用'
},
{
id
:
25
,
name
:
'企业'
},
{
id
:
26
,
name
:
'EPC'
},
{
id
:
27
,
name
:
'ECR'
},
{
id
:
28
,
name
:
'GDS'
},
{
id
:
30
,
name
:
'其他'
}
]
}
else
if
(
Number
(
e
)
===
9
)
{
this
.
cclassShow
=
true
this
.
cclassidList
=
[
{
id
:
35
,
name
:
'深度专题'
},
{
id
:
36
,
name
:
'案例推荐'
},
{
id
:
37
,
name
:
'应用指南'
}
]
}
else
if
(
Number
(
e
)
===
38
)
{
this
.
cclassShow
=
true
this
.
cclassidList
=
[
{
id
:
39
,
name
:
'最新资讯'
},
{
id
:
40
,
name
:
'标准法规'
},
{
id
:
41
,
name
:
'技术文档'
}
]
}
else
{
this
.
dataForm
.
cclassid
=
''
this
.
cclassShow
=
false
}
},
// 上传之前校验
beforeAvatarUpload
(
file
)
{
const
isJPG
=
file
.
type
===
'image/jpeg'
...
...
src/views/modules/info/news.vue
View file @
3380b42e
...
...
@@ -57,7 +57,7 @@
>
</el-date-picker>
</el-form-item>
<el-button
class=
"seach-btn"
@
click=
"getDataList()"
type=
"primary"
>
搜索
</el-button>
<el-button
class=
"seach-btn"
@
click=
"getDataList
2
()"
type=
"primary"
>
搜索
</el-button>
</el-form>
<div
class=
"add-btn"
>
<el-button
v-if=
"isAuth('manage:news:save')"
type=
"primary"
@
click=
"addOrUpdateHandle()"
>
+ 添加
</el-button>
...
...
@@ -221,6 +221,10 @@ export default {
this
.
getDataList
()
},
methods
:
{
getDataList2
()
{
this
.
pageIndex
=
1
this
.
getDataList
()
},
// 获取数据列表
getDataList
()
{
this
.
dataListLoading
=
true
...
...
@@ -236,10 +240,10 @@ export default {
'editor'
:
this
.
dataForm
.
editor
,
'keyword'
:
this
.
dataForm
.
keyword
,
'status'
:
this
.
dataForm
.
status
,
'releaseTimeStart'
:
this
.
releaseDate
===
null
?
''
:
this
.
releaseDate
[
0
]
,
'releaseTimeEnd'
:
this
.
releaseDate
===
null
?
''
:
this
.
releaseDate
[
1
]
,
'updateTimeStart'
:
this
.
updateDate
===
null
?
''
:
this
.
updateDate
[
0
]
,
'updateTimeEnd'
:
this
.
updateDate
===
null
?
''
:
this
.
updateDate
[
1
]
,
'releaseTimeStart'
:
this
.
releaseDate
&&
this
.
releaseDate
[
0
]
?
this
.
releaseDate
[
0
]
+
' 00:00:00'
:
''
,
'releaseTimeEnd'
:
this
.
releaseDate
&&
this
.
releaseDate
[
1
]
?
this
.
releaseDate
[
1
]
+
' 23:59:59'
:
''
,
'updateTimeStart'
:
this
.
updateDate
&&
this
.
updateDate
[
0
]
?
this
.
updateDate
[
0
]
+
' 00:00:00'
:
''
,
'updateTimeEnd'
:
this
.
updateDate
&&
this
.
updateDate
[
1
]
?
this
.
updateDate
[
1
]
+
' 23:59:59'
:
''
,
'auditor'
:
this
.
dataForm
.
auditor
})
}).
then
(({
data
})
=>
{
...
...
@@ -247,6 +251,7 @@ export default {
this
.
dataList
=
data
.
page
.
list
this
.
totalPage
=
data
.
page
.
totalCount
}
else
{
this
.
$message
.
error
(
data
.
msg
)
this
.
dataList
=
[]
this
.
totalPage
=
0
}
...
...
src/views/modules/info/newsmovie-add-or-update.vue
View file @
3380b42e
...
...
@@ -39,14 +39,15 @@
<p
v-show=
"showInfo"
>
{{
dataForm
.
longStr
}}
</p>
</el-form-item>
<el-form-item
label=
"时间:"
prop=
"stdate"
>
<el-date-picker
<
!--
<
el-date-picker
v-show=
"!showInfo"
v-model=
"dataForm.stdate"
value-format=
'yyyy-MM-dd'
type=
"date"
placeholder=
"选择日期"
>
</el-date-picker>
</el-date-picker>
-->
<el-input
v-model=
"dataForm.stdate"
placeholder=
"请输入时间"
v-show=
"!showInfo"
></el-input>
<p
v-show=
"showInfo"
>
{{
dataForm
.
stdate
}}
</p>
</el-form-item>
<el-form-item
label=
'语种:'
prop=
'clanguage'
>
...
...
@@ -62,7 +63,7 @@
<el-form-item
label=
"上传图片命名规则"
prop=
"rules"
>
<span
style=
"color:red;font-size:12px"
>
图片命名格式为DB+时间+拼音,如:DB20180701tupian1;图片尺寸500*375
</span>
</el-form-item>
<el-form-item
label=
"描述图片:"
prop=
"pic"
>
<el-form-item
label=
"描述图片:"
prop=
"pic"
class=
"pic"
>
<el-upload
class=
"avatar-uploader avatar2"
action=
""
...
...
@@ -74,7 +75,7 @@
</el-upload>
<p
v-show=
"showInfo"
><img
:src=
"imgUrlStr"
class=
"avatar2"
></p>
</el-form-item>
<el-form-item
label=
"MP4文件:"
prop=
"video"
>
<el-form-item
label=
"MP4文件:"
prop=
"video"
class=
"pic"
>
<el-upload
class=
"avatar-uploader avatar2"
action=
""
...
...
@@ -140,7 +141,7 @@
],
keyword
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
]
]
,
// longStr: [
// { required: true, message: '不能为空', trigger: 'blur' }
// ],
...
...
@@ -150,9 +151,9 @@
// stdate: [
// { required: true, message: '不能为空', trigger: 'blur' }
// ],
//
levels: [
//
{ required: true, message: '不能为空', trigger: 'blur' }
// ],
levels
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
]
// directpath: [
// { required: true, message: '不能为空', trigger: 'blur' }
// ],
...
...
@@ -199,29 +200,20 @@
if
(
this
.
dataForm
.
id
)
{
this
.
loading
=
true
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
`/office/news/info/
${
this
.
dataForm
.
id
}
`
),
url
:
this
.
$http
.
adornUrl
(
`/office/news
movie
/info/
${
this
.
dataForm
.
id
}
`
),
method
:
'get'
,
params
:
this
.
$http
.
adornParams
()
}).
then
(({
data
})
=>
{
this
.
loading
=
false
if
(
data
&&
data
.
code
===
0
)
{
this
.
dataForm
=
data
.
newsmovie
// this.dataForm.title = data.newsmovie.title
// this.dataForm.titleOld = data.newsmovie.titleOld
// this.dataForm.keyword = data.newsmovie.keyword
// this.dataForm.longStr = data.newsmovie.longStr
// this.dataForm.stdate = data.newsmovie.stdate
// this.dataForm.clanguage = data.newsmovie.clanguage
// this.dataForm.author = data.newsmovie.author
// this.dataForm.levels = data.newsmovie.levels
// this.dataForm.directpath = data.newsmovie.directpath
// this.dataForm.pic = data.newsmovie.pic
// this.dataForm.wavname = data.newsmovie.wavname
// this.dataForm.content = data.newsmovie.content
this
.
imgUrlStr
=
data
.
newsmovie
.
pic
this
.
dialogVisible
=
true
this
.
videoUrlStr
=
data
.
newsmovie
.
wavname
this
.
dataForm
=
data
.
newsMovie
this
.
imgUrlStr
=
this
.
dataForm
.
littlepic
this
.
videoUrlStr
=
this
.
dataForm
.
wavname
this
.
ueditor
.
value
=
this
.
dataForm
.
content
this
.
dialogVisible
=
true
this
.
dialogVisible2
=
true
}
else
{
this
.
$message
.
error
(
data
.
msg
)
}
})
}
...
...
@@ -232,8 +224,15 @@
this
.
loading
=
true
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
this
.
dataForm
.
pic
===
''
||
this
.
dataForm
.
pic
===
null
)
{
this
.
$message
.
error
(
'图片未上传,请上传图片!'
)
return
}
else
if
(
this
.
dataForm
.
wavname
===
''
||
this
.
dataForm
.
wavname
===
null
)
{
this
.
$message
.
error
(
'视频未上传,请上传视频!'
)
return
}
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
`/office/news/
${
!
this
.
dataForm
.
id
?
'save'
:
'update'
}
`
),
url
:
this
.
$http
.
adornUrl
(
`/office/news
movie
/
${
!
this
.
dataForm
.
id
?
'save'
:
'update'
}
`
),
method
:
'post'
,
data
:
this
.
$http
.
adornData
({
'id'
:
this
.
dataForm
.
id
||
undefined
,
...
...
src/views/modules/info/newsmovie.vue
View file @
3380b42e
...
...
@@ -68,7 +68,7 @@
</el-date-picker>
</el-form-item>
<el-button
class=
"seach-btn"
@
click=
"getDataList()"
type=
"primary"
>
搜索
</el-button>
<el-button
class=
"seach-btn"
@
click=
"getDataList
2
()"
type=
"primary"
>
搜索
</el-button>
</el-form>
<div
class=
"add-btn"
>
<el-button
v-if=
"isAuth('manage:newsmovie:save')"
type=
"primary"
@
click=
"addOrUpdateHandle()"
>
+ 添加
</el-button>
...
...
@@ -159,6 +159,13 @@
label=
"发布时间"
>
</el-table-column>
<el-table-column
prop=
"updatedate"
header-align=
"center"
align=
"center"
sortable
label=
"更新时间"
>
</el-table-column>
<el-table-column
prop=
"auditor"
header-align=
"center"
align=
"center"
...
...
@@ -258,6 +265,10 @@ export default {
this
.
getDataList
()
},
methods
:
{
getDataList2
()
{
this
.
pageIndex
=
1
this
.
getDataList
()
},
// 获取数据列表
getDataList
()
{
this
.
dataListLoading
=
true
...
...
@@ -268,16 +279,16 @@ export default {
'page'
:
this
.
pageIndex
+
''
,
'limit'
:
this
.
pageSize
+
''
,
'title'
:
this
.
dataForm
.
title
,
'levels'
:
this
.
dataForm
.
levels
+
''
,
'levels'
:
this
.
dataForm
.
levels
,
'author'
:
this
.
dataForm
.
author
,
'editor'
:
this
.
dataForm
.
editor
,
'keyword'
:
this
.
dataForm
.
keyword
,
'status'
:
this
.
dataForm
.
status
,
'clanguage'
:
this
.
dataForm
.
clanguage
,
'releaseTimeStart'
:
this
.
releaseDate
===
null
?
''
:
this
.
releaseDate
[
0
]
,
'releaseTimeEnd'
:
this
.
releaseDate
===
null
?
''
:
this
.
releaseDate
[
1
]
,
'updateTimeStart'
:
this
.
updateDate
===
null
?
''
:
this
.
updateDate
[
0
]
,
'updateTimeEnd'
:
this
.
updateDate
===
null
?
''
:
this
.
updateDate
[
1
]
,
'releaseTimeStart'
:
this
.
releaseDate
&&
this
.
releaseDate
[
0
]
?
this
.
releaseDate
[
0
]
+
' 00:00:00'
:
''
,
'releaseTimeEnd'
:
this
.
releaseDate
&&
this
.
releaseDate
[
1
]
?
this
.
releaseDate
[
1
]
+
' 23:59:59'
:
''
,
'updateTimeStart'
:
this
.
updateDate
&&
this
.
updateDate
[
0
]
?
this
.
updateDate
[
0
]
+
' 00:00:00'
:
''
,
'updateTimeEnd'
:
this
.
updateDate
&&
this
.
updateDate
[
1
]
?
this
.
updateDate
[
1
]
+
' 23:59:59'
:
''
,
'auditor'
:
this
.
dataForm
.
auditor
})
}).
then
(({
data
})
=>
{
...
...
@@ -285,6 +296,7 @@ export default {
this
.
dataList
=
data
.
page
.
list
this
.
totalPage
=
data
.
page
.
totalCount
}
else
{
this
.
$message
.
error
(
data
.
msg
)
this
.
dataList
=
[]
this
.
totalPage
=
0
}
...
...
src/views/modules/info/newtopic-add-or-update.vue
View file @
3380b42e
...
...
@@ -12,16 +12,19 @@
<el-input
v-model=
"dataForm.directpath"
placeholder=
"请输入跳转地址"
v-show=
"!showInfo"
></el-input>
<p
v-show=
"showInfo"
>
{{
dataForm
.
directpath
}}
</p>
</el-form-item>
<el-form-item
label=
"子类:"
prop=
"c
lass
id"
>
<el-select
v-model=
"dataForm.c
lass
id"
v-show=
"!showInfo"
>
<el-option
<el-form-item
label=
"子类:"
prop=
"c
ategory
id"
>
<el-select
v-model=
"dataForm.c
ategory
id"
v-show=
"!showInfo"
>
<
!--
<
el-option
v-for=
"item in classidList"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
>
</el-option>
</el-option>
-->
<el-option
label=
"深度专题"
value=
"1"
></el-option>
<el-option
label=
"案例推荐"
value=
"2"
></el-option>
<el-option
label=
"应用指南"
value=
"3"
></el-option>
</el-select>
<p
v-show=
"showInfo"
>
{{
dataForm
.
c
lassid
}}
</p>
<p
v-show=
"showInfo"
>
{{
dataForm
.
c
ategoryName
}}
</p>
</el-form-item>
<el-form-item
label=
"专题模板:"
prop=
"newtmpid"
>
<el-select
v-model=
"dataForm.newtmpid"
v-show=
"!showInfo"
>
...
...
@@ -29,7 +32,7 @@
v-for=
"(item, i) in newtmList"
:key=
"i"
:label=
"item.label"
:value=
"item.
label
"
>
:value=
"item.
value
"
>
</el-option>
</el-select>
<p
v-show=
"showInfo"
>
{{
dataForm
.
newtmpid
}}
</p>
...
...
@@ -65,7 +68,7 @@
</el-row>
<p
v-show=
"showInfo"
>
{{
dataForm
.
showtime
}}
</p>
</el-form-item>
<el-form-item
label=
"专题图片:"
prop=
"pic"
>
<el-form-item
label=
"专题图片:"
prop=
"pic"
class=
"pic"
>
<el-upload
v-show=
"!showInfo"
class=
"avatar-uploader avatar2"
...
...
@@ -118,7 +121,7 @@
id
:
0
,
title
:
''
,
directpath
:
''
,
c
lass
id
:
''
,
c
ategory
id
:
''
,
newtmpid
:
''
,
levels
:
''
,
showtime
:
''
,
...
...
@@ -152,7 +155,7 @@
// content: [
// { required: true, message: '不能为空', trigger: 'blur' }
// ],
c
lass
id
:
[
c
ategory
id
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
],
showtime
:
[
...
...
@@ -173,7 +176,24 @@
id
:
[],
newtmList
:
[
{
value
:
6
,
label
:
'蓝色魅力'
},
{
value
:
7
,
label
:
'成员服务案例'
},
{
value
:
8
,
label
:
'绿色'
},
{
value
:
14
,
label
:
'xxxx'
},
{
value
:
0
,
label
:
'自定义'
}
],
title
:
''
,
...
...
@@ -186,7 +206,6 @@
},
created
()
{
this
.
getClassList
([
9
,
12
,
13
])
},
mounted
()
{
...
...
@@ -209,8 +228,11 @@
if
(
data
&&
data
.
code
===
0
)
{
this
.
dataForm
=
data
.
newtopic
this
.
imgUrlStr
=
data
.
newtopic
.
ppath
this
.
dataForm
.
categoryid
=
data
.
newtopic
.
categoryid
+
''
this
.
dialogVisible
=
true
this
.
ueditor
.
value
=
this
.
dataForm
.
content
}
else
{
this
.
$message
.
error
(
data
.
msg
)
}
})
}
...
...
@@ -221,6 +243,10 @@
this
.
loading
=
true
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
this
.
dataForm
.
ppath
===
''
||
this
.
dataForm
.
ppath
===
null
)
{
this
.
$message
.
error
(
'图片未上传,请上传图片!'
)
return
}
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
`/office/newtopic/
${
!
this
.
dataForm
.
id
?
'save'
:
'update'
}
`
),
method
:
'post'
,
...
...
@@ -228,7 +254,7 @@
'id'
:
this
.
dataForm
.
id
||
undefined
,
'title'
:
this
.
dataForm
.
title
,
'directpath'
:
this
.
dataForm
.
directpath
,
'c
lassid'
:
this
.
dataForm
.
class
id
,
'c
ategoryid'
:
this
.
dataForm
.
category
id
,
'newtmpid'
:
this
.
dataForm
.
newtmpid
,
'headad'
:
this
.
dataForm
.
headad
,
'levels'
:
this
.
dataForm
.
levels
,
...
...
src/views/modules/info/newtopic.vue
View file @
3380b42e
...
...
@@ -36,7 +36,7 @@
>
</el-date-picker>
</el-form-item>
<el-button
class=
"seach-btn"
@
click=
"getDataList()"
type=
"primary"
>
搜索
</el-button>
<el-button
class=
"seach-btn"
@
click=
"getDataList
2
()"
type=
"primary"
>
搜索
</el-button>
</el-form>
<div
class=
"add-btn"
>
<el-button
v-if=
"isAuth('manage:newtopic:save')"
type=
"primary"
@
click=
"addOrUpdateHandle()"
>
+ 添加
</el-button>
...
...
@@ -61,12 +61,12 @@
align=
"center"
label=
"专题标题"
>
</el-table-column>
<el-table-column
prop=
"
author
"
<
!--
<
el-table-column
prop=
"
categoryName
"
header-align=
"center"
align=
"center"
label=
"专题分类"
>
</el-table-column>
</el-table-column>
-->
<el-table-column
prop=
"showtime"
header-align=
"center"
...
...
@@ -188,6 +188,10 @@ export default {
this
.
getDataList
()
},
methods
:
{
getDataList2
()
{
this
.
pageIndex
=
1
this
.
getDataList
()
},
// 获取数据列表
getDataList
()
{
this
.
dataListLoading
=
true
...
...
@@ -198,16 +202,17 @@ export default {
'page'
:
this
.
pageIndex
+
''
,
'limit'
:
this
.
pageSize
+
''
,
'title'
:
this
.
dataForm
.
title
,
'status'
:
this
.
dataForm
.
status
,
'status'
:
this
.
dataForm
.
status
===
null
?
''
:
this
.
dataForm
.
status
,
'levels'
:
this
.
dataForm
.
levels
,
'inputDat
aStart'
:
this
.
releaseDate
===
null
?
''
:
this
.
releaseDate
[
0
]
,
'inputDat
aEnd'
:
this
.
releaseDate
===
null
?
''
:
this
.
releaseDate
[
1
]
'inputDat
eStart'
:
this
.
releaseDate
&&
this
.
releaseDate
[
0
]
?
this
.
releaseDate
[
0
]
+
' 00:00:00'
:
''
,
'inputDat
eEnd'
:
this
.
releaseDate
&&
this
.
releaseDate
[
1
]
?
this
.
releaseDate
[
1
]
+
' 23:59:59'
:
''
})
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
dataList
=
data
.
page
.
list
this
.
totalPage
=
data
.
page
.
totalCount
}
else
{
this
.
$message
.
error
(
data
.
msg
)
this
.
dataList
=
[]
this
.
totalPage
=
0
}
...
...
@@ -238,7 +243,7 @@ export default {
},
showMsg
(
data
)
{
if
(
!
data
.
directpath
||
data
.
directpath
===
null
)
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
'/News/viewsub?id='
+
data
.
id
,
'_blank'
)
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
'/News/viewsub?id='
+
data
.
class
id
,
'_blank'
)
}
else
if
(
/^
\/
/
.
test
(
data
.
directpath
))
{
window
.
open
(
this
.
$store
.
state
.
config
.
urls
+
data
.
directpath
,
'_blank'
)
}
else
{
...
...
src/views/modules/info/picture-add-or-update.vue
View file @
3380b42e
<
template
>
<el-dialog
:title=
"!dataForm.id ? '新增' : this.showInfo?'详情':'修改'"
:title=
"!dataForm.
picture
id ? '新增' : this.showInfo?'详情':'修改'"
:close-on-click-modal=
"false"
:visible
.
sync=
"visible"
>
<el-form
...
...
@@ -65,7 +65,7 @@
<el-input
v-model=
'dataForm.jumppath'
placeholder=
'请输入跳转'
v-show=
"!showInfo"
></el-input>
<p
v-show=
"showInfo"
>
{{
dataForm
.
jumppath
}}
</p>
</el-form-item>
<el-form-item
label=
'图片:'
prop=
'picFile'
>
<el-form-item
label=
'图片:'
prop=
'picFile'
class=
"pic"
>
<el-upload
v-show=
"!showInfo"
class=
"avatar-uploader avatar2"
...
...
@@ -95,7 +95,7 @@ export default {
showInfo
:
false
,
title
:
''
,
dataForm
:
{
id
:
0
,
picture
id
:
0
,
title
:
''
,
pictureType
:
''
,
picFile
:
''
,
...
...
@@ -109,8 +109,16 @@ export default {
piclevelList
:
[
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
],
pictureTypeList
:
[
{
value
:
'
1
'
,
value
:
'
图片信息
'
,
label
:
'图片信息'
},
{
value
:
'静态页面图片'
,
label
:
'静态页面图片'
},
{
value
:
'不合格样本图片'
,
label
:
'不合格样本图片'
}
],
dataRule
:
{
...
...
@@ -188,17 +196,17 @@ export default {
},
methods
:
{
init
(
id
,
showInfo
)
{
this
.
dataForm
.
id
=
id
||
0
init
(
picture
id
,
showInfo
)
{
this
.
dataForm
.
pictureid
=
picture
id
||
0
this
.
visible
=
true
this
.
showInfo
=
showInfo
this
.
$nextTick
(()
=>
{
this
.
clearInp
()
if
(
this
.
dataForm
.
id
)
{
if
(
this
.
dataForm
.
picture
id
)
{
this
.
loading
=
true
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
`/office/picture/info/
${
this
.
dataForm
.
id
}
`
`/office/picture/info/
${
this
.
dataForm
.
picture
id
}
`
),
method
:
'get'
,
params
:
this
.
$http
.
adornParams
()
...
...
@@ -215,6 +223,8 @@ export default {
this
.
dataForm
.
keyword
=
data
.
picture
.
keyword
this
.
dataForm
.
jumppath
=
data
.
picture
.
jumppath
this
.
dataForm
.
showtime
=
data
.
picture
.
showtime
}
else
{
this
.
$message
.
error
(
data
.
msg
)
}
})
}
...
...
@@ -225,6 +235,10 @@ export default {
this
.
loading
=
true
this
.
$refs
[
'dataForm'
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
dataForm
.
picFile
===
''
||
this
.
dataForm
.
picFile
===
null
)
{
this
.
$message
.
error
(
'图片未上传,请上传图片!'
)
return
}
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
`/office/picture/
${
!
this
.
dataForm
.
pictureid
?
'save'
:
'update'
}
`
...
...
src/views/modules/info/picture.vue
View file @
3380b42e
...
...
@@ -159,8 +159,16 @@ export default {
piclevelList
,
pictureTypeList
:
[
{
value
:
'
1
'
,
value
:
'
图片信息
'
,
label
:
'图片信息'
},
{
value
:
'静态页面图片'
,
label
:
'静态页面图片'
},
{
value
:
'不合格样本图片'
,
label
:
'不合格样本图片'
}
],
releaseDate
:
[]
...
...
@@ -179,6 +187,7 @@ export default {
},
// 获取数据列表
getDataList
()
{
console
.
log
(
this
.
releaseDate
)
this
.
dataListLoading
=
true
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/picture/list'
),
...
...
@@ -192,14 +201,15 @@ export default {
'keyword'
:
this
.
dataForm
.
keyword
,
'status'
:
this
.
dataForm
.
status
,
'pictureType'
:
this
.
dataForm
.
pictureType
,
'inputDat
aStart'
:
this
.
releaseDate
===
null
?
''
:
this
.
releaseDate
[
0
]
,
'inputDat
aEnd'
:
this
.
releaseDate
===
null
?
''
:
this
.
releaseDate
[
1
]
'inputDat
eStart'
:
this
.
releaseDate
&&
this
.
releaseDate
[
0
]
?
this
.
releaseDate
[
0
]
+
' 00:00:00'
:
''
,
'inputDat
eEnd'
:
this
.
releaseDate
&&
this
.
releaseDate
[
1
]
?
this
.
releaseDate
[
1
]
+
' 23:59:59'
:
''
})
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
dataList
=
data
.
page
.
list
this
.
totalPage
=
data
.
page
.
totalCount
}
else
{
this
.
$message
.
error
(
data
.
msg
)
this
.
dataList
=
[]
this
.
totalPage
=
0
}
...
...
@@ -222,10 +232,10 @@ export default {
this
.
dataListSelections
=
val
},
// 新增 / 修改
addOrUpdateHandle
(
id
,
showInfo
)
{
addOrUpdateHandle
(
picture
id
,
showInfo
)
{
this
.
addOrUpdateVisible
=
true
this
.
$nextTick
(()
=>
{
this
.
$refs
.
addOrUpdate
.
init
(
id
,
showInfo
)
this
.
$refs
.
addOrUpdate
.
init
(
picture
id
,
showInfo
)
})
},
showMsg
(
data
)
{
...
...
src/views/modules/logistics/logistics-add-or-update.vue
View file @
3380b42e
...
...
@@ -201,6 +201,8 @@
if
(
data
&&
data
.
code
===
0
)
{
this
.
dataForm
=
data
.
logistics
this
.
ueditor
.
value
=
this
.
dataForm
.
content
}
else
{
this
.
$message
.
error
(
data
.
msg
)
}
})
}
...
...
src/views/modules/logistics/logistics.vue
View file @
3380b42e
...
...
@@ -17,7 +17,7 @@
<!--
<el-form-item
label=
'关键字'
prop=
'keyword'
>
<el-input
v-model=
'dataForm.keyword'
placeholder=
'请输入关键字'
clearable
></el-input>
</el-form-item>
-->
<el-button
class=
"seach-btn"
@
click=
"getDataList()"
type=
"primary"
>
搜索
</el-button>
<el-button
class=
"seach-btn"
@
click=
"getDataList
2
()"
type=
"primary"
>
搜索
</el-button>
</el-form>
<div
class=
"add-btn"
>
<el-button
v-if=
"isAuth('manage:logistics:save')"
type=
"primary"
@
click=
"addOrUpdateHandle()"
>
+ 添加
</el-button>
...
...
@@ -155,6 +155,10 @@
this
.
getMedicalTypeList
()
},
methods
:
{
getDataList2
()
{
this
.
pageIndex
=
1
this
.
getDataList
()
},
// 获取数据列表
getDataList
()
{
this
.
dataListLoading
=
true
...
...
@@ -173,6 +177,7 @@
this
.
dataList
=
data
.
page
.
list
this
.
totalPage
=
data
.
page
.
totalCount
}
else
{
this
.
$message
.
error
(
data
.
msg
)
this
.
dataList
=
[]
this
.
totalPage
=
0
}
...
...
src/views/modules/medical/medical-add-or-update.vue
View file @
3380b42e
...
...
@@ -182,6 +182,8 @@
if
(
data
&&
data
.
code
===
0
)
{
this
.
dataForm
=
data
.
medical
this
.
ueditor
.
value
=
this
.
dataForm
.
content
}
else
{
this
.
$message
.
error
(
data
.
msg
)
}
})
}
...
...
src/views/modules/medical/medical.vue
View file @
3380b42e
...
...
@@ -15,7 +15,7 @@
</el-select>
</el-form-item>
<el-button
class=
"seach-btn"
@
click=
"getDataList()"
type=
"primary"
>
搜索
</el-button>
<el-button
class=
"seach-btn"
@
click=
"getDataList
2
()"
type=
"primary"
>
搜索
</el-button>
</el-form>
<div
class=
"add-btn"
>
<el-button
v-if=
"isAuth('manage:medical:save')"
type=
"primary"
@
click=
"addOrUpdateHandle()"
>
+ 添加
</el-button>
...
...
@@ -137,6 +137,10 @@
this
.
getDataList
()
},
methods
:
{
getDataList2
()
{
this
.
pageIndex
=
1
this
.
getDataList
()
},
// 获取数据列表
getDataList
()
{
this
.
dataListLoading
=
true
...
...
@@ -154,6 +158,7 @@
this
.
dataList
=
data
.
page
.
list
this
.
totalPage
=
data
.
page
.
totalCount
}
else
{
this
.
$message
.
error
(
data
.
msg
)
this
.
dataList
=
[]
this
.
totalPage
=
0
}
...
...
src/views/modules/party/center-add-or-update.vue
View file @
3380b42e
...
...
@@ -52,7 +52,7 @@
<el-form-item
label=
"上传图片命名规则"
>
<span
style=
"color:red;font-size:12px"
>
图片命名格式为DB+时间+拼音,如:DB20180701tupian1;图片尺寸500*375
</span>
</el-form-item>
<el-form-item
label=
"图片:"
prop=
"pic"
>
<el-form-item
label=
"图片:"
prop=
"pic"
class=
"pic"
>
<el-upload
v-show=
"!showInfo"
class=
"avatar-uploader avatar2"
...
...
@@ -183,6 +183,8 @@
this
.
imgUrlStr
=
data
.
news
.
pic
this
.
dialogVisible
=
true
this
.
ueditor
.
value
=
this
.
dataForm
.
content
}
else
{
this
.
$message
.
error
(
data
.
msg
)
}
})
}
...
...
@@ -193,6 +195,10 @@
this
.
loading
=
true
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
this
.
dataForm
.
pic
===
''
||
this
.
dataForm
.
pic
===
null
)
{
this
.
$message
.
error
(
'图片未上传,请上传图片!'
)
return
}
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
`/office/center/
${
!
this
.
dataForm
.
id
?
'save'
:
'update'
}
`
),
method
:
'post'
,
...
...
src/views/modules/party/center.vue
View file @
3380b42e
...
...
@@ -57,7 +57,7 @@
>
</el-date-picker>
</el-form-item>
<el-button
class=
"seach-btn"
@
click=
"getDataList()"
type=
"primary"
>
搜索
</el-button>
<el-button
class=
"seach-btn"
@
click=
"getDataList
2
()"
type=
"primary"
>
搜索
</el-button>
</el-form>
<div
class=
"add-btn"
>
<el-button
v-if=
"isAuth('manage:center:save')"
type=
"primary"
@
click=
"addOrUpdateHandle()"
>
+ 添加
</el-button>
...
...
@@ -217,6 +217,10 @@ export default {
this
.
getDataList
()
},
methods
:
{
getDataList2
()
{
this
.
pageIndex
=
1
this
.
getDataList
()
},
// 获取数据列表
getDataList
()
{
this
.
dataListLoading
=
true
...
...
@@ -232,16 +236,17 @@ export default {
'editor'
:
this
.
dataForm
.
editor
,
'keyword'
:
this
.
dataForm
.
keyword
,
'status'
:
this
.
dataForm
.
status
,
'releaseTimeStart'
:
this
.
releaseDate
[
0
]
===
undefined
?
''
:
this
.
releaseDate
[
0
]
,
'releaseTimeEnd'
:
this
.
releaseDate
[
1
]
===
undefined
?
''
:
this
.
releaseDate
[
1
]
,
'updateTimeStart'
:
this
.
updateDate
[
0
]
===
undefined
?
''
:
this
.
updateDate
[
0
]
,
'updateTimeEnd'
:
this
.
updateDate
[
1
]
===
undefined
?
''
:
this
.
updateDate
[
1
]
'releaseTimeStart'
:
this
.
releaseDate
&&
this
.
releaseDate
[
0
]
?
this
.
releaseDate
[
0
]
+
' 00:00:00'
:
''
,
'releaseTimeEnd'
:
this
.
releaseDate
&&
this
.
releaseDate
[
1
]
?
this
.
releaseDate
[
1
]
+
' 23:59:59'
:
''
,
'updateTimeStart'
:
this
.
updateDate
&&
this
.
updateDate
[
0
]
?
this
.
updateDate
[
0
]
+
' 00:00:00'
:
''
,
'updateTimeEnd'
:
this
.
updateDate
&&
this
.
updateDate
[
1
]
?
this
.
updateDate
[
1
]
+
' 23:59:59'
:
''
})
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
dataList
=
data
.
page
.
list
this
.
totalPage
=
data
.
page
.
totalCount
}
else
{
this
.
$message
.
error
(
data
.
msg
)
this
.
dataList
=
[]
this
.
totalPage
=
0
}
...
...
src/views/modules/party/hotFlow-add-or-update.vue
View file @
3380b42e
...
...
@@ -52,7 +52,7 @@
<el-form-item
label=
"上传图片命名规则"
>
<span
style=
"color:red;font-size:12px"
>
图片命名格式为DB+时间+拼音,如:DB20180701tupian1;图片尺寸500*375
</span>
</el-form-item>
<el-form-item
label=
"图片:"
prop=
"pic"
>
<el-form-item
label=
"图片:"
prop=
"pic"
class=
"pic"
>
<el-upload
v-show=
"!showInfo"
class=
"avatar-uploader avatar2"
...
...
@@ -180,6 +180,8 @@
this
.
imgUrlStr
=
data
.
news
.
pic
this
.
dialogVisible
=
true
this
.
ueditor
.
value
=
this
.
dataForm
.
content
}
else
{
this
.
$message
.
error
(
data
.
msg
)
}
})
}
...
...
@@ -190,6 +192,10 @@
this
.
loading
=
true
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
this
.
dataForm
.
pic
===
''
||
this
.
dataForm
.
pic
===
null
)
{
this
.
$message
.
error
(
'图片未上传,请上传图片!'
)
return
}
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
`/office/hotFlow/
${
!
this
.
dataForm
.
id
?
'save'
:
'update'
}
`
),
method
:
'post'
,
...
...
src/views/modules/party/hotFlow.vue
View file @
3380b42e
...
...
@@ -55,7 +55,7 @@
>
</el-date-picker>
</el-form-item>
<el-button
class=
"seach-btn"
@
click=
"getDataList()"
type=
"primary"
>
搜索
</el-button>
<el-button
class=
"seach-btn"
@
click=
"getDataList
2
()"
type=
"primary"
>
搜索
</el-button>
</el-form>
<div
class=
"add-btn"
>
<el-button
v-if=
"isAuth('manage:hotFlow:save')"
type=
"primary"
@
click=
"addOrUpdateHandle()"
>
+ 添加
</el-button>
...
...
@@ -214,6 +214,10 @@ export default {
this
.
getDataList
()
},
methods
:
{
getDataList2
()
{
this
.
pageIndex
=
1
this
.
getDataList
()
},
// 获取数据列表
getDataList
()
{
this
.
dataListLoading
=
true
...
...
@@ -229,16 +233,17 @@ export default {
'editor'
:
this
.
dataForm
.
editor
,
'keyword'
:
this
.
dataForm
.
keyword
,
'status'
:
this
.
dataForm
.
status
,
'releaseTimeStart'
:
this
.
releaseDate
[
0
]
===
undefined
?
''
:
this
.
releaseDate
[
0
]
,
'releaseTimeEnd'
:
this
.
releaseDate
[
1
]
===
undefined
?
''
:
this
.
releaseDate
[
1
]
,
'updateTimeStart'
:
this
.
updateDate
[
0
]
===
undefined
?
''
:
this
.
updateDate
[
0
]
,
'updateTimeEnd'
:
this
.
updateDate
[
1
]
===
undefined
?
''
:
this
.
updateDate
[
1
]
'releaseTimeStart'
:
this
.
releaseDate
&&
this
.
releaseDate
[
0
]
?
this
.
releaseDate
[
0
]
+
' 00:00:00'
:
''
,
'releaseTimeEnd'
:
this
.
releaseDate
&&
this
.
releaseDate
[
1
]
?
this
.
releaseDate
[
1
]
+
' 23:59:59'
:
''
,
'updateTimeStart'
:
this
.
updateDate
&&
this
.
updateDate
[
0
]
?
this
.
updateDate
[
0
]
+
' 00:00:00'
:
''
,
'updateTimeEnd'
:
this
.
updateDate
&&
this
.
updateDate
[
1
]
?
this
.
updateDate
[
1
]
+
' 23:59:59'
:
''
})
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
dataList
=
data
.
page
.
list
this
.
totalPage
=
data
.
page
.
totalCount
}
else
{
this
.
$message
.
error
(
data
.
msg
)
this
.
dataList
=
[]
this
.
totalPage
=
0
}
...
...
src/views/modules/party/rules-add-or-update.vue
View file @
3380b42e
...
...
@@ -52,7 +52,7 @@
<el-form-item
label=
"上传图片命名规则"
>
<span
style=
"color:red;font-size:12px"
>
图片命名格式为DB+时间+拼音,如:DB20180701tupian1;图片尺寸500*375
</span>
</el-form-item>
<el-form-item
label=
"图片:"
prop=
"pic"
>
<el-form-item
label=
"图片:"
prop=
"pic"
class=
"pic"
>
<el-upload
v-show=
"!showInfo"
class=
"avatar-uploader avatar2"
...
...
@@ -183,6 +183,8 @@
this
.
imgUrlStr
=
data
.
news
.
pic
this
.
dialogVisible
=
true
this
.
ueditor
.
value
=
this
.
dataForm
.
content
}
else
{
this
.
$message
.
error
(
data
.
msg
)
}
})
}
...
...
@@ -193,6 +195,10 @@
this
.
loading
=
true
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
this
.
dataForm
.
pic
===
''
||
this
.
dataForm
.
pic
===
null
)
{
this
.
$message
.
error
(
'图片未上传,请上传图片!'
)
return
}
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
`/office/rules/
${
!
this
.
dataForm
.
id
?
'save'
:
'update'
}
`
),
method
:
'post'
,
...
...
src/views/modules/party/rules.vue
View file @
3380b42e
...
...
@@ -57,7 +57,7 @@
>
</el-date-picker>
</el-form-item>
<el-button
class=
"seach-btn"
@
click=
"getDataList()"
type=
"primary"
>
搜索
</el-button>
<el-button
class=
"seach-btn"
@
click=
"getDataList
2
()"
type=
"primary"
>
搜索
</el-button>
</el-form>
<div
class=
"add-btn"
>
<el-button
v-if=
"isAuth('manage:rules:save')"
type=
"primary"
@
click=
"addOrUpdateHandle()"
>
+ 添加
</el-button>
...
...
@@ -217,6 +217,10 @@ export default {
this
.
getDataList
()
},
methods
:
{
getDataList2
()
{
this
.
pageIndex
=
1
this
.
getDataList
()
},
// 获取数据列表
getDataList
()
{
this
.
dataListLoading
=
true
...
...
@@ -232,16 +236,17 @@ export default {
'editor'
:
this
.
dataForm
.
editor
,
'keyword'
:
this
.
dataForm
.
keyword
,
'status'
:
this
.
dataForm
.
status
,
'releaseTimeStart'
:
this
.
releaseDate
===
null
?
''
:
this
.
releaseDate
[
0
]
,
'releaseTimeEnd'
:
this
.
releaseDate
===
null
?
''
:
this
.
releaseDate
[
1
]
,
'updateTimeStart'
:
this
.
updateDate
===
null
?
''
:
this
.
updateDate
[
0
]
,
'updateTimeEnd'
:
this
.
updateDate
===
null
?
''
:
this
.
updateDate
[
1
]
'releaseTimeStart'
:
this
.
releaseDate
&&
this
.
releaseDate
[
0
]
?
this
.
releaseDate
[
0
]
+
' 00:00:00'
:
''
,
'releaseTimeEnd'
:
this
.
releaseDate
&&
this
.
releaseDate
[
1
]
?
this
.
releaseDate
[
1
]
+
' 23:59:59'
:
''
,
'updateTimeStart'
:
this
.
updateDate
&&
this
.
updateDate
[
0
]
?
this
.
updateDate
[
0
]
+
' 00:00:00'
:
''
,
'updateTimeEnd'
:
this
.
updateDate
&&
this
.
updateDate
[
1
]
?
this
.
updateDate
[
1
]
+
' 23:59:59'
:
''
})
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
dataList
=
data
.
page
.
list
this
.
totalPage
=
data
.
page
.
totalCount
}
else
{
this
.
$message
.
error
(
data
.
msg
)
this
.
dataList
=
[]
this
.
totalPage
=
0
}
...
...
src/views/modules/party/topicnews-add-or-update.vue
View file @
3380b42e
...
...
@@ -52,7 +52,7 @@
<el-form-item
label=
"上传图片命名规则"
>
<span
style=
"color:red;font-size:12px"
>
图片命名格式为DB+时间+拼音,如:DB20180701tupian1;图片尺寸500*375
</span>
</el-form-item>
<el-form-item
label=
"图片:"
prop=
"pic"
>
<el-form-item
label=
"图片:"
prop=
"pic"
class=
"pic"
>
<el-upload
v-show=
"!showInfo"
class=
"avatar-uploader avatar2"
...
...
@@ -183,6 +183,8 @@
this
.
imgUrlStr
=
data
.
news
.
pic
this
.
dialogVisible
=
true
this
.
ueditor
.
value
=
this
.
dataForm
.
content
}
else
{
this
.
$message
.
error
(
data
.
msg
)
}
})
}
...
...
@@ -193,6 +195,10 @@
this
.
loading
=
true
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
this
.
dataForm
.
pic
===
''
||
this
.
dataForm
.
pic
===
null
)
{
this
.
$message
.
error
(
'图片未上传,请上传图片!'
)
return
}
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
`/office/topicnews/
${
!
this
.
dataForm
.
id
?
'save'
:
'update'
}
`
),
method
:
'post'
,
...
...
src/views/modules/party/topicnews.vue
View file @
3380b42e
...
...
@@ -55,7 +55,7 @@
>
</el-date-picker>
</el-form-item>
<el-button
class=
"seach-btn"
@
click=
"getDataList()"
type=
"primary"
>
搜索
</el-button>
<el-button
class=
"seach-btn"
@
click=
"getDataList
2
()"
type=
"primary"
>
搜索
</el-button>
</el-form>
<div
class=
"add-btn"
>
<el-button
v-if=
"isAuth('manage:topicnews:save')"
type=
"primary"
@
click=
"addOrUpdateHandle()"
>
+ 添加
</el-button>
...
...
@@ -215,6 +215,10 @@ export default {
this
.
getDataList
()
},
methods
:
{
getDataList2
()
{
this
.
pageIndex
=
1
this
.
getDataList
()
},
// 获取数据列表
getDataList
()
{
this
.
dataListLoading
=
true
...
...
@@ -230,16 +234,17 @@ export default {
'editor'
:
this
.
dataForm
.
editor
,
'keyword'
:
this
.
dataForm
.
keyword
,
'status'
:
this
.
dataForm
.
status
,
'releaseTimeStart'
:
this
.
releaseDate
===
null
?
''
:
this
.
releaseDate
[
0
]
,
'releaseTimeEnd'
:
this
.
releaseDate
===
null
?
''
:
this
.
releaseDate
[
1
]
,
'updateTimeStart'
:
this
.
updateDate
===
null
?
''
:
this
.
updateDate
[
0
]
,
'updateTimeEnd'
:
this
.
updateDate
===
null
?
''
:
this
.
updateDate
[
1
]
'releaseTimeStart'
:
this
.
releaseDate
&&
this
.
releaseDate
[
0
]
?
this
.
releaseDate
[
0
]
+
' 00:00:00'
:
''
,
'releaseTimeEnd'
:
this
.
releaseDate
&&
this
.
releaseDate
[
1
]
?
this
.
releaseDate
[
1
]
+
' 23:59:59'
:
''
,
'updateTimeStart'
:
this
.
updateDate
&&
this
.
updateDate
[
0
]
?
this
.
updateDate
[
0
]
+
' 00:00:00'
:
''
,
'updateTimeEnd'
:
this
.
updateDate
&&
this
.
updateDate
[
1
]
?
this
.
updateDate
[
1
]
+
' 23:59:59'
:
''
})
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
dataList
=
data
.
page
.
list
this
.
totalPage
=
data
.
page
.
totalCount
}
else
{
this
.
$message
.
error
(
data
.
msg
)
this
.
dataList
=
[]
this
.
totalPage
=
0
}
...
...
src/views/modules/policy/policy-add-or-update.vue
View file @
3380b42e
...
...
@@ -197,6 +197,8 @@
this
.
dataForm
.
publicdate
=
data
.
policy
.
releasedate
this
.
dataForm
.
startdate
=
data
.
policy
.
updatedate
this
.
ueditor
.
value
=
this
.
dataForm
.
content
}
else
{
this
.
$message
.
error
(
data
.
msg
)
}
})
}
...
...
src/views/modules/policy/policy.vue
View file @
3380b42e
...
...
@@ -234,14 +234,15 @@ export default {
'editor'
:
this
.
dataForm
.
editor
,
'keyword'
:
this
.
dataForm
.
keyword
,
'status'
:
this
.
dataForm
.
status
,
'updateTimeStart'
:
this
.
updateDate
[
0
]
===
undefined
?
''
:
this
.
updateDate
[
0
]
,
'updateTimeEnd'
:
this
.
updateDate
[
1
]
===
undefined
?
''
:
this
.
updateDate
[
1
]
'updateTimeStart'
:
this
.
updateDate
&&
this
.
updateDate
[
0
]
?
this
.
updateDate
[
0
]
+
' 00:00:00'
:
''
,
'updateTimeEnd'
:
this
.
updateDate
&&
this
.
updateDate
[
1
]
?
this
.
updateDate
[
1
]
+
' 23:59:59'
:
''
})
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
dataList
=
data
.
page
.
list
this
.
totalPage
=
data
.
page
.
totalCount
}
else
{
this
.
$message
.
error
(
data
.
msg
)
this
.
dataList
=
[]
this
.
totalPage
=
0
}
...
...
src/views/modules/service/doc-add-or-update.vue
View file @
3380b42e
...
...
@@ -21,16 +21,16 @@
</el-form-item>
<el-form-item
label=
'类型:'
prop=
'category'
>
<el-select
v-model=
"dataForm.category"
placeholder=
"请输入类型"
v-show=
"!showInfo"
@
change=
"changeType"
>
<el-option
label=
'表格下载'
value=
"1"
>
表格下载
</el-option>
<el-option
label=
"分支机构培训计划"
value=
"2"
>
分支机构培训计划
</el-option>
<el-option
label=
'表格下载'
value=
"1"
></el-option>
<el-option
label=
"分支机构培训计划"
value=
"2"
></el-option>
</el-select>
<p
v-show=
"showInfo"
>
{{
dataForm
.
category
}}
</p>
<p
v-show=
"showInfo"
>
{{
dataForm
.
category
name
}}
</p>
</el-form-item>
<el-form-item
label=
"作者:"
prop=
"author"
>
<el-input
v-model=
"dataForm.author"
placeholder=
"请输入作者"
v-show=
"!showInfo"
></el-input>
<p
v-show=
"showInfo"
>
{{
dataForm
.
author
}}
</p>
</el-form-item>
<el-form-item
label=
"文件:"
prop=
"file"
>
<el-form-item
label=
"文件:"
prop=
"file"
class=
"pic"
>
<!--
<el-upload
class=
"upload-demo"
drag
...
...
@@ -99,11 +99,11 @@
levelList
:
[
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
],
typeList
:
[
{
value
:
1
,
value
:
'表格下载'
,
label
:
'表格下载'
},
{
value
:
2
,
value
:
'分支机构培训计划'
,
label
:
'分支机构培训计划'
}
],
...
...
@@ -146,6 +146,8 @@
// this.dataForm.pic = data.newsmovie.pic
// this.dataForm.wavname = data.newsmovie.wavname
// this.dataForm.content = data.newsmovie.content
}
else
{
this
.
$message
.
error
(
data
.
msg
)
}
})
}
...
...
@@ -156,6 +158,10 @@
this
.
loading
=
true
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
this
.
dataForm
.
docfile
===
''
||
this
.
dataForm
.
docfile
===
null
)
{
this
.
$message
.
error
(
'文件未上传,请上传文件!'
)
return
}
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
`/office/doc/
${
!
this
.
dataForm
.
id
?
'save'
:
'update'
}
`
),
method
:
'post'
,
...
...
@@ -164,7 +170,8 @@
'title'
:
this
.
dataForm
.
title
,
'levels'
:
this
.
dataForm
.
levels
,
'author'
:
this
.
dataForm
.
author
,
'docfile'
:
this
.
dataForm
.
docfile
'docfile'
:
this
.
dataForm
.
docfile
,
'category'
:
this
.
dataForm
.
category
})
}).
then
(({
data
})
=>
{
this
.
loading
=
false
...
...
@@ -216,7 +223,7 @@
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/file/uploadFile'
),
method
:
'post'
,
data
:
this
.
video
Url
,
data
:
this
.
file
Url
,
headers
:
{
'Content-Type'
:
'multipart/form-data'
}
...
...
src/views/modules/service/doc.vue
View file @
3380b42e
...
...
@@ -24,7 +24,7 @@
</el-option>
</el-select>
</el-form-item>
<el-button
class=
"seach-btn"
@
click=
"getDataList()"
type=
"primary"
>
搜索
</el-button>
<el-button
class=
"seach-btn"
@
click=
"getDataList
2
()"
type=
"primary"
>
搜索
</el-button>
</el-form>
<div
class=
"add-btn"
>
<el-button
v-if=
"isAuth('manage:doc:save')"
type=
"primary"
@
click=
"addOrUpdateHandle()"
>
+ 添加
</el-button>
...
...
@@ -56,16 +56,10 @@
label=
"作者"
>
</el-table-column>
<el-table-column
prop=
"category"
prop=
"category
name
"
header-align=
"center"
align=
"center"
label=
"类型"
>
<template
slot-scope=
"scope"
>
<div>
<span
v-if=
"scope.row.category === 1"
>
表格下载
</span>
<span
v-if=
"scope.row.category === 2"
>
分支机构培训计划
</span>
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"auditor"
...
...
@@ -74,7 +68,19 @@
label=
"审核人"
>
</el-table-column>
<el-table-column
prop=
"status"
header-align=
"center"
align=
"center"
label=
"状态"
>
<template
slot-scope=
"scope"
>
<div>
<span
v-if=
"scope.row.status === 0"
>
待审核
</span>
<span
v-if=
"scope.row.status === -1"
>
失败
</span>
<span
v-if=
"scope.row.status === 1"
>
成功
</span>
</div>
</
template
>
</el-table-column>
<el-table-column
fixed=
"right"
header-align=
"center"
...
...
@@ -144,6 +150,10 @@ export default {
this
.
getDataList
()
},
methods
:
{
getDataList2
()
{
this
.
pageIndex
=
1
this
.
getDataList
()
},
// 获取数据列表
getDataList
()
{
this
.
dataListLoading
=
true
...
...
@@ -155,7 +165,7 @@ export default {
'limit'
:
this
.
pageSize
,
'title'
:
this
.
dataForm
.
title
,
'levels'
:
this
.
dataForm
.
levels
,
'type'
:
this
.
dataForm
.
type
'type'
:
this
.
dataForm
.
category
})
}).
then
(({
data
})
=>
{
...
...
@@ -163,6 +173,7 @@ export default {
this
.
dataList
=
data
.
page
.
list
this
.
totalPage
=
data
.
page
.
totalCount
}
else
{
this
.
$message
.
error
(
data
.
msg
)
this
.
dataList
=
[]
this
.
totalPage
=
0
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment