Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
2464a45f
Commit
2464a45f
authored
Feb 15, 2023
by
沈良进
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加是否热门
parent
a3d2147a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
8 deletions
+17
-8
NavigationConfig.vue
src/components/WebSet/NavigationConfig.vue
+1
-1
WebSiteArea.vue
src/components/WebSet/WebSiteArea.vue
+14
-5
classification.vue
src/components/WebSet/classification.vue
+2
-2
No files found.
src/components/WebSet/NavigationConfig.vue
View file @
2464a45f
...
@@ -266,7 +266,7 @@ import uploadImg from '../../pubComponents/uploadImg'
...
@@ -266,7 +266,7 @@ import uploadImg from '../../pubComponents/uploadImg'
}
}
},
},
getCateGoryList
()
{
getCateGoryList
()
{
this
.
apipost
(
'ws_get_GetNavList'
,
{
Level
:
Number
(
this
.
addMsg
.
Level
)
-
1
,
NavTitle
:
''
,
pageIndex
:
1
,
pageSize
:
100
},
res
=>
{
this
.
apipost
(
'ws_get_GetNavList'
,
{
Level
:
Number
(
this
.
addMsg
.
Level
)
-
1
,
Type
:
this
.
addMsg
.
Type
,
NavTitle
:
''
,
pageIndex
:
1
,
pageSize
:
100
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
cateGoryList
=
res
.
data
.
data
;
this
.
cateGoryList
=
res
.
data
.
data
;
}
}
...
...
src/components/WebSet/WebSiteArea.vue
View file @
2464a45f
...
@@ -84,6 +84,11 @@
...
@@ -84,6 +84,11 @@
<span>
{{
getAreaShow
(
scope
)
}}
</span>
<span>
{{
getAreaShow
(
scope
)
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"IsHot"
label=
"是否热门"
header-align=
"center"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
IsHot
===
1
?
'是'
:
'否'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"ParentName"
label=
"封面图"
header-align=
"center"
align=
"center"
>
<el-table-column
prop=
"ParentName"
label=
"封面图"
header-align=
"center"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<img
@
click=
"showImage(scope.row.ImageList[0])"
class=
"cover"
v-if=
"scope.row.ImageList && scope.row.ImageList.length"
:src=
"scope.row.ImageList[0]"
/>
<img
@
click=
"showImage(scope.row.ImageList[0])"
class=
"cover"
v-if=
"scope.row.ImageList && scope.row.ImageList.length"
:src=
"scope.row.ImageList[0]"
/>
...
@@ -149,6 +154,9 @@
...
@@ -149,6 +154,9 @@
<el-form-item
label=
"介绍"
prop=
"Introduction"
>
<el-form-item
label=
"介绍"
prop=
"Introduction"
>
<el-input
type=
"textarea"
:rows=
"2"
v-model=
"addMsg.Introduction"
/>
<el-input
type=
"textarea"
:rows=
"2"
v-model=
"addMsg.Introduction"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"是否热门"
prop=
"IsHot"
>
<el-switch
v-model=
"addMsg.IsHot"
/>
</el-form-item>
<el-form-item
label=
"时区"
prop=
"TimeZones"
>
<el-form-item
label=
"时区"
prop=
"TimeZones"
>
<el-input
v-model=
"addMsg.TimeZones"
/>
<el-input
v-model=
"addMsg.TimeZones"
/>
</el-form-item>
</el-form-item>
...
@@ -255,6 +263,7 @@ import uploadImg from '../../pubComponents/uploadImg'
...
@@ -255,6 +263,7 @@ import uploadImg from '../../pubComponents/uploadImg'
outerVisible
:
false
,
outerVisible
:
false
,
dataList
:
[],
dataList
:
[],
addMsg
:
{
addMsg
:
{
IsHot
:
false
,
Id
:
0
,
//编号
Id
:
0
,
//编号
Level
:
0
,
//等级
Level
:
0
,
//等级
ParentId
:
0
,
//父节点编号
ParentId
:
0
,
//父节点编号
...
@@ -357,11 +366,8 @@ import uploadImg from '../../pubComponents/uploadImg'
...
@@ -357,11 +366,8 @@ import uploadImg from '../../pubComponents/uploadImg'
res
=>
{
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
var
tempData
=
res
.
data
.
data
;
var
tempData
=
res
.
data
.
data
;
tempData
.
IsHot
=
tempData
.
IsHot
===
1
this
.
addMsg
=
tempData
;
this
.
addMsg
=
tempData
;
// this.addMsg.Id = tempData.Id;
// this.addMsg.Level = tempData.Level;
// this.addMsg.ParentId = tempData.ParentId;
// this.addMsg.AreaName = tempData.AreaName;
if
(
!
this
.
addMsg
.
BestTravelTimeList
||
!
this
.
addMsg
.
BestTravelTimeList
.
length
)
{
if
(
!
this
.
addMsg
.
BestTravelTimeList
||
!
this
.
addMsg
.
BestTravelTimeList
.
length
)
{
this
.
addMsg
.
BestTravelTimeList
=
[{
this
.
addMsg
.
BestTravelTimeList
=
[{
Month
:
''
,
Month
:
''
,
...
@@ -400,6 +406,7 @@ import uploadImg from '../../pubComponents/uploadImg'
...
@@ -400,6 +406,7 @@ import uploadImg from '../../pubComponents/uploadImg'
//清空数据
//清空数据
clearMsg
()
{
clearMsg
()
{
this
.
addMsg
=
{
this
.
addMsg
=
{
IsHot
:
false
,
Id
:
0
,
//编号
Id
:
0
,
//编号
Level
:
0
,
//等级
Level
:
0
,
//等级
ParentId
:
0
,
//父节点编号
ParentId
:
0
,
//父节点编号
...
@@ -433,8 +440,10 @@ import uploadImg from '../../pubComponents/uploadImg'
...
@@ -433,8 +440,10 @@ import uploadImg from '../../pubComponents/uploadImg'
return
return
}
}
this
.
addMsg
.
ImageList
=
imageList
this
.
addMsg
.
ImageList
=
imageList
let
params
=
{...
this
.
addMsg
}
params
.
IsHot
=
params
.
IsHot
?
1
:
2
this
.
apipost
(
this
.
apipost
(
"ws_post_SetArea"
,
this
.
addMsg
,
"ws_post_SetArea"
,
params
,
res
=>
{
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
getData
();
this
.
getData
();
...
...
src/components/WebSet/classification.vue
View file @
2464a45f
...
@@ -283,7 +283,7 @@ import uploadImg from '../../pubComponents/uploadImg'
...
@@ -283,7 +283,7 @@ import uploadImg from '../../pubComponents/uploadImg'
// return
// return
// }
// }
let
params
=
{...
this
.
addMsg
}
let
params
=
{...
this
.
addMsg
}
params
.
isHot
=
params
.
i
sHot
?
1
:
2
params
.
IsHot
=
params
.
I
sHot
?
1
:
2
params
.
Enable
=
params
.
Enable
?
1
:
2
params
.
Enable
=
params
.
Enable
?
1
:
2
this
.
apipost
(
'ws_post_SetCategory'
,
params
,
res
=>
{
this
.
apipost
(
'ws_post_SetCategory'
,
params
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
if
(
res
.
data
.
resultCode
==
1
){
...
@@ -299,7 +299,7 @@ import uploadImg from '../../pubComponents/uploadImg'
...
@@ -299,7 +299,7 @@ import uploadImg from '../../pubComponents/uploadImg'
updateData
({
Id
})
{
//修改
updateData
({
Id
})
{
//修改
this
.
apipost
(
'ws_post_GetCategory'
,{
Id
},
res
=>
{
this
.
apipost
(
'ws_post_GetCategory'
,{
Id
},
res
=>
{
let
params
=
res
.
data
.
data
let
params
=
res
.
data
.
data
params
.
isHot
=
params
.
i
sHot
===
1
params
.
IsHot
=
params
.
I
sHot
===
1
params
.
Enable
=
params
.
Enable
===
1
params
.
Enable
=
params
.
Enable
===
1
this
.
addMsg
=
params
this
.
addMsg
=
params
this
.
$refs
.
Icon
.
ImageList
=
params
.
Icon
?
[
params
.
Icon
]
:
[]
this
.
$refs
.
Icon
.
ImageList
=
params
.
Icon
?
[
params
.
Icon
]
:
[]
...
...
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