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
0739b60b
Commit
0739b60b
authored
Aug 29, 2023
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
ed39a237
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
56 deletions
+55
-56
subheading.vue
...velGroupControl/UpgradedVersion/components/subheading.vue
+15
-13
index.vue
...ravelmanager/TravelGroupControl/UpgradedVersion/index.vue
+9
-6
otherJourney.vue
...nager/TravelGroupControl/UpgradedVersion/otherJourney.vue
+31
-37
No files found.
src/components/newTravelmanager/TravelGroupControl/UpgradedVersion/components/subheading.vue
View file @
0739b60b
...
@@ -62,10 +62,10 @@
...
@@ -62,10 +62,10 @@
<div
class=
"subIdeImg1relative relative UpgradedVersion-Hover"
>
<div
class=
"subIdeImg1relative relative UpgradedVersion-Hover"
>
<div
class=
"subIdeImgForm1Box absolute"
>
<div
class=
"subIdeImgForm1Box absolute"
>
<FeatureControls
v-if=
"FeatureData"
:index=
"index"
:FeatureData=
"FeatureData"
:isUploadImg=
"true"
<FeatureControls
v-if=
"FeatureData"
:index=
"index"
:FeatureData=
"FeatureData"
:isUploadImg=
"true"
:isSelectImg=
"true"
:isDeleteImg=
"false"
@
toUploadImg=
"toUploadImg
"
@
toSelectImg=
"toSelectImg
"
:isSelectImg=
"true"
:isDeleteImg=
"false"
@
toUploadImg=
"toUploadImg
(0)"
@
toSelectImg=
"toSelectImg(0)
"
@
toAddImg=
"toAddImg"
@
toDeleteImg=
"toDeleteImg"
/>
@
toAddImg=
"toAddImg"
@
toDeleteImg=
"toDeleteImg
(0)
"
/>
</div>
</div>
<img
src=
"http://192.168.10.214:8130/Upload/NewTripFeature/homeBj.png
"
/>
<img
v-if=
"FeatureData.dataObj&&FeatureData.dataObj.SubList"
:src=
"FeatureData.dataObj.SubList[0].url
"
/>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -76,10 +76,10 @@
...
@@ -76,10 +76,10 @@
<div
class=
"subIdeImg1relative relative"
>
<div
class=
"subIdeImg1relative relative"
>
<div
class=
"subIdeImgForm1Box absolute"
>
<div
class=
"subIdeImgForm1Box absolute"
>
<FeatureControls
v-if=
"FeatureData"
:index=
"index"
:FeatureData=
"FeatureData"
:isUploadImg=
"true"
<FeatureControls
v-if=
"FeatureData"
:index=
"index"
:FeatureData=
"FeatureData"
:isUploadImg=
"true"
:isSelectImg=
"true"
:isDeleteImg=
"false"
@
toUploadImg=
"toUploadImg
"
@
toSelectImg=
"toSelectImg
"
:isSelectImg=
"true"
:isDeleteImg=
"false"
@
toUploadImg=
"toUploadImg
(1)"
@
toSelectImg=
"toSelectImg(1)
"
@
toAddImg=
"toAddImg"
@
toDeleteImg=
"toDeleteImg"
/>
@
toAddImg=
"toAddImg"
@
toDeleteImg=
"toDeleteImg
(1)
"
/>
</div>
</div>
<img
src=
"http://192.168.10.214:8130/Upload/NewTripFeature/homeBj.png
"
/>
<img
v-if=
"FeatureData.dataObj&&FeatureData.dataObj.SubList"
:src=
"FeatureData.dataObj.SubList[1].url
"
/>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -121,20 +121,20 @@
...
@@ -121,20 +121,20 @@
};
};
},
},
methods
:
{
methods
:
{
toUploadImg
()
{
toUploadImg
(
index
)
{
this
.
$emit
(
'toUploadImg'
)
this
.
$emit
(
'toUploadImg'
,
index
,
'模版图'
)
},
},
toSelectImg
()
{
toSelectImg
(
index
)
{
this
.
$emit
(
'toSelectImg'
)
this
.
$emit
(
'toSelectImg'
,
index
,
'模版图'
)
},
},
toAddImg
()
{
toAddImg
()
{
this
.
$emit
(
'toAddImg'
)
this
.
$emit
(
'toAddImg'
)
},
},
toDeleteImg
()
{
toDeleteImg
(
index
)
{
this
.
$emit
(
'toDeleteImg'
)
this
.
$emit
(
'toDeleteImg'
,
index
,
'模版图'
)
},
},
setTemplate
(
TemplateType
)
{
setTemplate
(
TemplateType
)
{
this
.
$emit
(
'setTemplate'
,
this
.
index
,
TemplateType
)
this
.
$emit
(
'setTemplate'
,
TemplateType
)
}
}
},
},
computed
:
{},
computed
:
{},
...
@@ -388,6 +388,8 @@
...
@@ -388,6 +388,8 @@
.subIdeImg1relative
{
.subIdeImg1relative
{
left
:
0px
;
left
:
0px
;
top
:
0px
;
top
:
0px
;
width
:
100%
;
height
:
100%
;
}
}
.subIdeImg1relative
img
{
.subIdeImg1relative
img
{
...
...
src/components/newTravelmanager/TravelGroupControl/UpgradedVersion/index.vue
View file @
0739b60b
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<headerTitle
:FeatureItem=
"item"
:TripColor=
"TripColor"
></headerTitle>
<headerTitle
:FeatureItem=
"item"
:TripColor=
"TripColor"
></headerTitle>
<!-- 介绍、宿食景页 -->
<!-- 介绍、宿食景页 -->
<otherJourney
:index=
"index"
:FeatureItem=
"item"
:TripColor=
"TripColor"
@
toAddPages=
"AddPages"
<otherJourney
:index=
"index"
:FeatureItem=
"item"
:TripColor=
"TripColor"
@
toAddPages=
"AddPages"
@
toDeletePages=
"DeletePages"
@
setTemplate=
"setTemplate"
v-if=
"item.pageType!=1&&item.pageType!=3"
>
@
toDeletePages=
"DeletePages"
v-if=
"item.pageType!=1&&item.pageType!=3"
>
</otherJourney>
</otherJourney>
<!-- 食详情页 -->
<!-- 食详情页 -->
<UpgradedVersionDetails
:index=
"index"
:FeatureData=
"item"
:TripColor=
"TripColor"
@
toAddPages=
"AddPages"
<UpgradedVersionDetails
:index=
"index"
:FeatureData=
"item"
:TripColor=
"TripColor"
@
toAddPages=
"AddPages"
...
@@ -133,10 +133,6 @@
...
@@ -133,10 +133,6 @@
DeletePages
(
index
,
FeatureData
)
{
DeletePages
(
index
,
FeatureData
)
{
this
.
pageList
.
splice
(
1
,
index
);
this
.
pageList
.
splice
(
1
,
index
);
},
},
setTemplate
(
index
,
TemplateType
)
{
this
.
pageList
[
index
].
pageTemplate
=
TemplateType
this
.
$forceUpdate
()
},
getDetailsObj
()
{
getDetailsObj
()
{
var
detailsObj
=
{
var
detailsObj
=
{
LineName
:
""
,
//线路名称
LineName
:
""
,
//线路名称
...
@@ -148,7 +144,14 @@
...
@@ -148,7 +144,14 @@
DetailsName
:
""
,
//详细标题
DetailsName
:
""
,
//详细标题
ImgList
:
[],
//图片
ImgList
:
[],
//图片
MainDesc
:
""
,
//描述
MainDesc
:
""
,
//描述
SubList
:
[],
SubList
:
[
{
url
:
null
},
{
url
:
null
},
],
};
};
return
detailsObj
;
return
detailsObj
;
},
},
...
...
src/components/newTravelmanager/TravelGroupControl/UpgradedVersion/otherJourney.vue
View file @
0739b60b
...
@@ -9,28 +9,19 @@
...
@@ -9,28 +9,19 @@
:isDeletePage=
"FeatureItem.isDeletePage"
:pagesType=
"1"
@
toAddPages=
"toAddPages"
:isDeletePage=
"FeatureItem.isDeletePage"
:pagesType=
"1"
@
toAddPages=
"toAddPages"
@
toDeletePages=
"toDeletePages"
>
@
toDeletePages=
"toDeletePages"
>
</FeatureControls>
</FeatureControls>
<input
type=
"file"
style=
"display:none"
:id=
"'introducefile_'+(
FeatureItem
* 2 + 1) + '_0'"
@
change=
"uploadpic"
>
<input
type=
"file"
style=
"display:none"
:id=
"'introducefile_'+(
index
* 2 + 1) + '_0'"
@
change=
"uploadpic"
>
</div>
</div>
<div
class=
"MasterMapList-box-two absolute z-index3"
>
<div
class=
"MasterMapList-box-two absolute z-index3"
>
<FeatureControls
:index=
"index"
:FeatureData=
"FeatureItem"
:ControlsType=
"'column'"
<FeatureControls
:index=
"index"
:FeatureData=
"FeatureItem"
:ControlsType=
"'column'"
:isUploadImg=
"FeatureItem.pageType==2?true:false"
:isSelectImg=
"FeatureItem.pageType==2?true:false"
:isUploadImg=
"FeatureItem.pageType==2?true:false"
:isSelectImg=
"FeatureItem.pageType==2?true:false"
:isAddImg=
"FeatureItem.pageType==2?false:
:isAddImg=
"FeatureItem.pageType==2?false:
FeatureItem.pageType!=2&&FeatureItem.dataObj.ImgList
FeatureItem.pageType!=2&&FeatureItem.dataObj.ImgList
&&FeatureItem.dataObj.ImgList.length
<9
?
false:tru
e
"
:isDeleteImg=
"false"
@
toUploadImg=
"UploadImg"
&&FeatureItem.dataObj.ImgList.length
!=9?true:fals
e"
:isDeleteImg=
"false"
@
toUploadImg=
"UploadImg"
@
toSelectImg=
"SelectImg"
@
toAddImg=
"AddImg"
@
toDeleteImg=
"DeleteImg"
></FeatureControls>
@
toSelectImg=
"SelectImg"
@
toAddImg=
"AddImg"
@
toDeleteImg=
"DeleteImg"
></FeatureControls>
</div>
</div>
</div>
</div>
<!-- 上传文件 -->
<!-- 上传主图文件 -->
<input
type=
"file"
style=
"display:none"
:id=
"'MasterMapfile_'+(index * 2 + 1) + '_0'"
@
change=
"uploadpic"
>
<input
type=
"file"
style=
"display:none"
:id=
"'MasterMapfile_'+(index * 2 + 1)"
@
change=
"uploadpic"
>
<input
type=
"file"
style=
"display:none"
:id=
"'MasterMapfile_'+(index * 2 + 1) + '_1'"
@
change=
"uploadpic"
>
<input
type=
"file"
style=
"display:none"
:id=
"'MasterMapfile_'+(index * 2 + 1) + '_2'"
@
change=
"uploadpic"
>
<input
type=
"file"
style=
"display:none"
:id=
"'MasterMapfile_'+(index * 2 + 1) + '_3'"
@
change=
"uploadpic"
>
<input
type=
"file"
style=
"display:none"
:id=
"'MasterMapfile_'+(index * 2 + 1) + '_4'"
@
change=
"uploadpic"
>
<input
type=
"file"
style=
"display:none"
:id=
"'MasterMapfile_'+(index * 2 + 1) + '_5'"
@
change=
"uploadpic"
>
<input
type=
"file"
style=
"display:none"
:id=
"'MasterMapfile_'+(index * 2 + 1) + '_6'"
@
change=
"uploadpic"
>
<input
type=
"file"
style=
"display:none"
:id=
"'MasterMapfile_'+(index * 2 + 1) + '_7'"
@
change=
"uploadpic"
>
<input
type=
"file"
style=
"display:none"
:id=
"'MasterMapfile_'+(index * 2 + 1) + '_8'"
@
change=
"uploadpic"
>
<input
type=
"file"
style=
"display:none"
:id=
"'MasterMapfile_'+(index * 2 + 1) + '_9'"
@
change=
"uploadpic"
>
<MasterMapList
:index=
"index"
:FeatureData=
"FeatureItem.dataObj"
:pageType=
"FeatureItem.pageType"
@
toUploadImg=
"UploadImg"
@
toSelectImg=
"SelectImg"
<MasterMapList
:index=
"index"
:FeatureData=
"FeatureItem.dataObj"
:pageType=
"FeatureItem.pageType"
@
toUploadImg=
"UploadImg"
@
toSelectImg=
"SelectImg"
@
toAddImg=
"AddImg"
@
toDeleteImg=
"DeleteImg"
></MasterMapList>
@
toAddImg=
"AddImg"
@
toDeleteImg=
"DeleteImg"
></MasterMapList>
<!-- 副标题 -->
<!-- 副标题 -->
...
@@ -82,25 +73,24 @@
...
@@ -82,25 +73,24 @@
queryName
:
''
,
queryName
:
''
,
queryId
:
0
,
queryId
:
0
,
},
},
MasterMapIndex
:
null
,
MasterMapIndex
:
null
,
//主图下标
StencilDrawing
:
false
,
//是否是模版图
};
};
},
},
methods
:
{
methods
:
{
UploadImg
(
index
)
{
UploadImg
(
index
,
type
)
{
this
.
MasterMapIndex
=
index
?
index
:
0
this
.
MasterMapIndex
=
index
?
index
:
0
console
.
log
(
`#MasterMapfile_
${(
this
.
index
*
2
+
1
)}
_
${
index
}
`
)
if
(
type
)
this
.
StencilDrawing
=
true
else
this
.
StencilDrawing
=
false
if
(
this
.
FeatureItem
.
pageType
==
2
){
if
(
this
.
FeatureItem
.
pageType
==
2
){
document
.
querySelector
(
`#introducefile_
${(
this
.
index
*
2
+
1
)}
_0`
).
click
();
document
.
querySelector
(
`#introducefile_
${(
this
.
index
*
2
+
1
)}
_0`
).
click
();
}
else
{
}
else
{
document
.
querySelector
(
`#MasterMapfile_
${(
this
.
index
*
2
+
1
)}
_
${
index
}
`
).
click
();
document
.
querySelector
(
`#MasterMapfile_
${(
this
.
index
*
2
+
1
)}
`
).
click
();
}
}
console
.
log
(
this
.
uploadpic
(),
'====='
)
},
},
uploadpic
(
e
)
{
uploadpic
(
e
)
{
let
that
=
this
;
let
that
=
this
;
console
.
log
(
this
.
MasterMapIndex
,
'========='
)
if
(
e
.
target
.
files
.
length
>
0
&&
e
.
target
.
files
[
0
].
size
>
0
)
{
if
(
e
.
target
.
files
.
length
>
0
&&
e
.
target
.
files
[
0
].
size
>
0
)
{
var
reader
=
new
FileReader
();
var
reader
=
new
FileReader
();
reader
.
onload
=
function
(
event
)
{
reader
.
onload
=
function
(
event
)
{
...
@@ -112,21 +102,20 @@
...
@@ -112,21 +102,20 @@
that
.
uploadSelfBlob
(
path
,
newArr
,
x
=>
{
that
.
uploadSelfBlob
(
path
,
newArr
,
x
=>
{
let
allPath
=
that
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
;
let
allPath
=
that
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
;
let
i
=
e
.
target
.
id
.
split
(
"_"
)[
2
];
let
i
=
e
.
target
.
id
.
split
(
"_"
)[
2
];
if
(
that
.
FeatureItem
.
pageType
==
2
){
if
(
that
.
StencilDrawing
){
that
.
FeatureItem
.
dataObj
.
ImgList
[
0
].
url
=
allPath
that
.
FeatureItem
.
dataObj
.
SubList
[
that
.
MasterMapIndex
].
url
=
allPath
}
else
{
}
else
{
that
.
FeatureItem
.
dataObj
.
ImgList
[
that
.
MasterMapIndex
].
url
=
allPath
that
.
FeatureItem
.
dataObj
.
ImgList
[
that
.
MasterMapIndex
].
url
=
allPath
}
}
that
.
FeatureItem
.
dataObj
.
ImgList
[
that
.
MasterMapIndex
].
url
=
allPath
});
});
};
};
reader
.
readAsDataURL
(
e
.
target
.
files
[
0
]);
reader
.
readAsDataURL
(
e
.
target
.
files
[
0
]);
// return allPath
}
}
},
},
SelectImg
(
index
)
{
SelectImg
(
index
,
type
)
{
console
.
log
(
index
,
'--------SelectImg'
)
this
.
MasterMapIndex
=
index
?
index
:
0
this
.
MasterMapIndex
=
index
?
index
:
0
if
(
type
)
this
.
StencilDrawing
=
true
else
this
.
StencilDrawing
=
false
if
(
this
.
FeatureItem
.
pageType
==
4
)
this
.
choseType
=
1
if
(
this
.
FeatureItem
.
pageType
==
4
)
this
.
choseType
=
1
else
if
(
this
.
FeatureItem
.
pageType
==
5
)
this
.
choseType
=
2
else
if
(
this
.
FeatureItem
.
pageType
==
5
)
this
.
choseType
=
2
else
if
(
this
.
FeatureItem
.
pageType
==
6
)
this
.
choseType
=
3
else
if
(
this
.
FeatureItem
.
pageType
==
6
)
this
.
choseType
=
3
...
@@ -139,8 +128,14 @@
...
@@ -139,8 +128,14 @@
}
}
this
.
FeatureItem
.
dataObj
.
ImgList
.
push
(
obj
)
this
.
FeatureItem
.
dataObj
.
ImgList
.
push
(
obj
)
},
},
DeleteImg
(
index
)
{
DeleteImg
(
index
,
type
)
{
this
.
FeatureItem
.
dataObj
.
ImgList
.
splice
(
index
,
1
)
if
(
type
)
this
.
StencilDrawing
=
true
else
this
.
StencilDrawing
=
false
if
(
this
.
StencilDrawing
){
this
.
FeatureItem
.
dataObj
.
SubList
.
splice
(
index
,
1
)
}
else
{
this
.
FeatureItem
.
dataObj
.
ImgList
.
splice
(
index
,
1
)
}
},
},
toAddPages
()
{
toAddPages
()
{
this
.
$emit
(
'toAddPages'
,
this
.
index
,
this
.
FeatureItem
)
this
.
$emit
(
'toAddPages'
,
this
.
index
,
this
.
FeatureItem
)
...
@@ -148,20 +143,19 @@
...
@@ -148,20 +143,19 @@
toDeletePages
()
{
toDeletePages
()
{
this
.
$emit
(
'toDeletePages'
,
this
.
index
,
this
.
FeatureItem
)
this
.
$emit
(
'toDeletePages'
,
this
.
index
,
this
.
FeatureItem
)
},
},
setTemplate
(
index
,
TemplateType
)
{
setTemplate
(
TemplateType
)
{
this
.
$emit
(
'setTemplate'
,
index
,
TemplateType
)
this
.
FeatureItem
.
pageTemplate
=
TemplateType
},
},
closeDMCchooseImg
()
{
closeDMCchooseImg
()
{
this
.
isShowScenicImg
=
false
this
.
isShowScenicImg
=
false
},
},
getDMCimg
(
selectImgArr
)
{
getDMCimg
(
selectImgArr
)
{
let
Path
=
selectImgArr
[
0
].
Path
let
Path
=
selectImgArr
[
0
].
Path
// if(this.FeatureItem.pageType==2){
if
(
this
.
StencilDrawing
){
// this.FeatureItem.dataObj.ImgList[0].url = Path
this
.
FeatureItem
.
dataObj
.
SubList
[
this
.
MasterMapIndex
].
url
=
Path
// }else if(this.FeatureItem.pageType==4||this.FeatureItem.pageType==5||this.FeatureItem.pageType==6){
}
else
{
// this.FeatureItem.dataObj.ImgList[this.MasterMapIndex].url = Path
this
.
FeatureItem
.
dataObj
.
ImgList
[
this
.
MasterMapIndex
].
url
=
Path
// }
}
this
.
FeatureItem
.
dataObj
.
ImgList
[
this
.
MasterMapIndex
].
url
=
Path
this
.
isShowScenicImg
=
false
this
.
isShowScenicImg
=
false
}
}
...
@@ -178,7 +172,7 @@
...
@@ -178,7 +172,7 @@
},
},
MasterMapIndex
:{
MasterMapIndex
:{
handler
(
val
,
oldVal
){
handler
(
val
,
oldVal
){
console
.
log
(
val
,
oldVal
)
},
},
deep
:
true
,
deep
:
true
,
immediate
:
true
immediate
:
true
...
...
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