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
2481c45c
Commit
2481c45c
authored
Mar 05, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加视频选择
parent
45302d65
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
71 additions
and
18 deletions
+71
-18
DMCchooseImg.vue
src/components/commonPage/DMCchooseImg.vue
+45
-5
TravelConfig.vue
...ents/newTravelmanager/TravelGroupControl/TravelConfig.vue
+26
-13
No files found.
src/components/commonPage/DMCchooseImg.vue
View file @
2481c45c
...
@@ -158,14 +158,20 @@
...
@@ -158,14 +158,20 @@
left
:
0
;
left
:
0
;
top
:
20px
;
top
:
20px
;
}
}
.DMCActiveclass
{
width
:
98px
;
margin
:
0
25px
;
}
.DmcactiveMyClass
{
width
:
32px
!important
;
}
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
"DMCchooseImg"
>
<div
class=
"DMCchooseImg"
>
<div
style=
"width:98px;margin:0 25px;"
v-if=
"this.IsShowVideo
"
>
<div
class=
"DMCActiveclass"
v-if=
"this.IsShowVideo"
:class=
"
{'DmcactiveMyClass':this.isVideoActive}
">
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tab-pane
label=
"图片"
name=
"first"
></el-tab-pane>
<el-tab-pane
v-if=
"isSHowImgCheck"
label=
"图片"
name=
"first"
></el-tab-pane>
<el-tab-pane
label=
"视频"
name=
"second"
></el-tab-pane>
<el-tab-pane
v-if=
"isSHowVideoCheck"
label=
"视频"
name=
"second"
></el-tab-pane>
</el-tabs>
</el-tabs>
</div>
</div>
<div
v-if=
"activeName=='first'"
>
<div
v-if=
"activeName=='first'"
>
...
@@ -232,7 +238,7 @@
...
@@ -232,7 +238,7 @@
<
script
>
<
script
>
export
default
{
export
default
{
props
:
[
"imgType"
,
"isCheckmore"
,
'queryItem'
,
'IsShowAdd'
,
'IsShowVideo'
],
props
:
[
"imgType"
,
"isCheckmore"
,
'queryItem'
,
'IsShowAdd'
,
'IsShowVideo'
,
'checkType'
],
data
()
{
data
()
{
return
{
return
{
queryMsg
:
{
queryMsg
:
{
...
@@ -260,6 +266,9 @@
...
@@ -260,6 +266,9 @@
videoListArray
:
[],
videoListArray
:
[],
//选中视频数组
//选中视频数组
selectVideoArr
:
[],
selectVideoArr
:
[],
isSHowImgCheck
:
true
,
isSHowVideoCheck
:
true
,
isVideoActive
:
false
,
};
};
},
},
methods
:
{
methods
:
{
...
@@ -444,6 +453,19 @@
...
@@ -444,6 +453,19 @@
},
},
created
()
{},
created
()
{},
mounted
()
{
mounted
()
{
if
(
this
.
checkType
==
2
){
this
.
isSHowVideoCheck
=
true
this
.
isSHowImgCheck
=
false
this
.
activeName
=
'second'
this
.
getVideoList
();
this
.
isVideoActive
=
true
;
}
else
if
(
this
.
checkType
==
1
){
this
.
isSHowImgCheck
=
true
this
.
isSHowVideoCheck
=
false
this
.
activeName
=
'first'
this
.
getList
();
this
.
isVideoActive
=
true
;
}
this
.
queryMsg
.
Type
=
this
.
imgType
;
this
.
queryMsg
.
Type
=
this
.
imgType
;
this
.
getQueryItem
();
this
.
getQueryItem
();
this
.
getList
();
this
.
getList
();
...
@@ -457,6 +479,24 @@
...
@@ -457,6 +479,24 @@
this
.
getVideoList
();
this
.
getVideoList
();
},
},
deep
:
true
deep
:
true
},
checkType
:{
handler
:
function
(
val
,
oldVal
)
{
if
(
val
==
2
){
this
.
isSHowImgCheck
=
false
this
.
isSHowVideoCheck
=
true
this
.
activeName
=
'second'
this
.
getVideoList
();
this
.
isVideoActive
=
true
;
}
else
if
(
val
==
1
){
this
.
isSHowImgCheck
=
true
this
.
isSHowVideoCheck
=
false
this
.
activeName
=
'first'
this
.
getList
();
this
.
isVideoActive
=
true
;
}
},
deep
:
true
}
}
}
}
...
...
src/components/newTravelmanager/TravelGroupControl/TravelConfig.vue
View file @
2481c45c
...
@@ -60,14 +60,20 @@
...
@@ -60,14 +60,20 @@
.TC_tcnum
{
margin-left
:
20px
;}
.TC_tcnum
{
margin-left
:
20px
;}
.TravelConfig
._VideoStr_box
{
.TravelConfig
._VideoStr_box
{
position
:
relative
;
position
:
relative
;
padding-right
:
8
0px
;
padding-right
:
16
0px
;
}
}
.TravelConfig
._VideoStr_box
._VideoStr_upload
{
.TravelConfig
._VideoStr_box
._VideoStr_upload
{
width
:
80px
;
width
:
80px
;
position
:
absolute
;
position
:
absolute
;
right
:
0
;
right
:
75px
;
top
:
7px
;
top
:
7px
;
}
}
.TravelConfig
._VideoStr_box
.TC_ChoiceBtn
{
width
:
70px
;
position
:
absolute
;
right
:
0
;
top
:
7px
;
}
.TC_comDMCchoose
.el-dialog__body
{
.TC_comDMCchoose
.el-dialog__body
{
padding
:
5px
25px
30px
;
padding
:
5px
25px
30px
;
}
}
...
@@ -144,7 +150,7 @@
...
@@ -144,7 +150,7 @@
</div>
</div>
<div
class=
"_VideoStr_box"
:class=
"
{'showOther':TeamType==3}">
<div
class=
"_VideoStr_box"
:class=
"
{'showOther':TeamType==3}">
<el-form-item
:label=
"$t('sm.shipindizhi')"
>
<el-form-item
:label=
"$t('sm.shipindizhi')"
>
<el-input
v-model=
"PostConfig.VideoStr"
type=
"textarea"
:autosize=
"
{minRows: 1, maxRows: 1 }"
<el-input
v-model=
"PostConfig.VideoStr"
class=
"w700"
type=
"textarea"
:autosize=
"
{minRows: 1, maxRows: 1 }"
placeholder="https//:video.mp4" @blur="loadVideo">
</el-input>
placeholder="https//:video.mp4" @blur="loadVideo">
</el-input>
</el-form-item>
</el-form-item>
<el-upload
<el-upload
...
@@ -156,6 +162,7 @@
...
@@ -156,6 +162,7 @@
:file-list=
"VideoStrList"
>
:file-list=
"VideoStrList"
>
<el-button
size=
"small"
type=
"primary"
>
{{
$t
(
'tips.dianjishanhcuan'
)
}}
</el-button>
<el-button
size=
"small"
type=
"primary"
>
{{
$t
(
'tips.dianjishanhcuan'
)
}}
</el-button>
</el-upload>
</el-upload>
<el-button
size=
"small"
class=
"TC_ChoiceBtn"
@
click=
"checkType=2,addimg=true"
type=
"primary"
>
选择
</el-button>
</div>
</div>
<div
style=
"text-align: center;"
v-if=
"VideoStr"
>
<div
style=
"text-align: center;"
v-if=
"VideoStr"
>
<video
:src=
"VideoStr"
width=
"660"
height=
"320"
class=
"avatar"
controls=
"controls"
>
{{
$t
(
'pub.unlimitedSel'
)
}}
您的浏览器不支持视频播放
</video>
<video
:src=
"VideoStr"
width=
"660"
height=
"320"
class=
"avatar"
controls=
"controls"
>
{{
$t
(
'pub.unlimitedSel'
)
}}
您的浏览器不支持视频播放
</video>
...
@@ -198,7 +205,7 @@
...
@@ -198,7 +205,7 @@
</div>
</div>
<el-dialog
custom-class=
"TC_comDMCchoose"
:title=
"$t('pub.addImg')"
center
:visible
.
sync=
"addimg"
>
<el-dialog
custom-class=
"TC_comDMCchoose"
:title=
"$t('pub.addImg')"
center
:visible
.
sync=
"addimg"
>
<DMCchooseImg
@
closeImg=
"closeDMCchooseImg"
ref=
"DMCchooseImg1"
@
headCallBack=
"getDMCimg"
v-bind:isCheckmore=
"1"
<DMCchooseImg
@
closeImg=
"closeDMCchooseImg"
ref=
"DMCchooseImg1"
@
headCallBack=
"getDMCimg"
v-bind:isCheckmore=
"1"
v-bind:imgType=
"3"
v-bind:IsShowVideo=
"true"
></DMCchooseImg>
v-bind:imgType=
"3"
v-bind:IsShowVideo=
"true"
v-bind:checkType=
"checkType"
></DMCchooseImg>
</el-dialog>
</el-dialog>
<el-dialog
custom-class=
"w600"
:title=
"$t('sm.yijiansc')"
:visible
.
sync=
"outerVisible"
center
>
<el-dialog
custom-class=
"w600"
:title=
"$t('sm.yijiansc')"
:visible
.
sync=
"outerVisible"
center
>
<el-upload
v-if=
"PostConfig.IsDirect ==0"
ref=
"ticketUpload"
drag
class=
"upload-demo"
:action=
"getImportFileUrl()"
<el-upload
v-if=
"PostConfig.IsDirect ==0"
ref=
"ticketUpload"
drag
class=
"upload-demo"
:action=
"getImportFileUrl()"
...
@@ -236,6 +243,7 @@
...
@@ -236,6 +243,7 @@
GGMapShow
:
false
,
GGMapShow
:
false
,
VideoStrList
:
[],
VideoStrList
:
[],
VideoStr
:
''
,
VideoStr
:
''
,
checkType
:
1
};
};
},
},
components
:
{
components
:
{
...
@@ -333,17 +341,22 @@
...
@@ -333,17 +341,22 @@
addImgOpen
(
index
)
{
addImgOpen
(
index
)
{
this
.
addimg
=
true
;
this
.
addimg
=
true
;
this
.
ChooseImgIndex
=
index
;
this
.
ChooseImgIndex
=
index
;
this
.
checkType
=
1
;
},
},
getDMCimg
(
imgArr
)
{
getDMCimg
(
imgArr
)
{
var
that
=
this
;
if
(
this
.
checkType
==
1
){
imgArr
.
forEach
(
imgItem
=>
{
var
that
=
this
;
var
obj
=
this
.
$DMCUtils
.
DMCImageObj
();
imgArr
.
forEach
(
imgItem
=>
{
obj
.
ID
=
0
;
var
obj
=
this
.
$DMCUtils
.
DMCImageObj
();
obj
.
Path
=
this
.
$commonUtils
.
removeDomain
(
imgItem
.
Path
);
obj
.
ID
=
0
;
obj
.
PicID
=
imgItem
.
ID
;
obj
.
Path
=
this
.
$commonUtils
.
removeDomain
(
imgItem
.
Path
);
obj
.
ShowPath
=
imgItem
.
Path
+
"?x-oss-process=image/resize,l_140"
;
obj
.
PicID
=
imgItem
.
ID
;
that
.
PostConfig
.
fileList
[
this
.
ChooseImgIndex
].
Url
=
obj
.
ShowPath
;
obj
.
ShowPath
=
imgItem
.
Path
+
"?x-oss-process=image/resize,l_140"
;
});
that
.
PostConfig
.
fileList
[
this
.
ChooseImgIndex
].
Url
=
obj
.
ShowPath
;
});
}
else
{
this
.
PostConfig
.
VideoStr
=
imgArr
[
0
].
VideoPath
;
}
},
},
//获取系列列表
//获取系列列表
getLineTeamList
(
lineId
,
isDefault
)
{
getLineTeamList
(
lineId
,
isDefault
)
{
...
...
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