Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
live
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 69535d67
authored
Dec 06, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'xuyl_dev_v3.2.0' into 'v3.2.0'
修复自测图片bug See merge request
!21
2 parents
41641b2e
58495430
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
src/views/liveList/createANewLiveRoom.vue
src/views/liveList/createANewLiveRoom.vue
View file @
69535d6
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"直播间简介:"
>
<el-form-item
label=
"直播间简介:"
>
<el-input
type=
"textarea"
v-model=
"baseForm.introduction"
maxlength=
"200"
<el-input
type=
"textarea"
v-model=
"baseForm.introduction"
maxlength=
"200"
show-word-limit
></el-input>
show-word-limit
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"开播时间:"
prop=
"timeStr"
>
<el-form-item
label=
"开播时间:"
prop=
"timeStr"
>
<el-date-picker
<el-date-picker
...
@@ -296,14 +296,14 @@ export default {
...
@@ -296,14 +296,14 @@ export default {
mixins
:
[
uploadMixin
],
mixins
:
[
uploadMixin
],
data
()
{
data
()
{
return
{
return
{
loading
:
false
,
loading
:
false
,
activePage
:
1
,
activePage
:
1
,
incomingId
:
""
,
incomingId
:
""
,
incomingStatus
:
""
,
incomingStatus
:
""
,
pickerOptions
:
{
pickerOptions
:
{
disabledDate
(
time
)
{
disabledDate
(
time
)
{
return
time
.
getTime
()
<
Date
.
now
()
-
24
*
60
*
60
*
1000
;
return
time
.
getTime
()
<
Date
.
now
()
-
24
*
60
*
60
*
1000
;
}
,
}
},
},
showDraft
:
true
,
showDraft
:
true
,
dialogType
:
""
,
dialogType
:
""
,
...
@@ -338,7 +338,11 @@ export default {
...
@@ -338,7 +338,11 @@ export default {
preLiveMediaType
:
"0"
,
preLiveMediaType
:
"0"
,
preLiveMediaFile
:
""
,
preLiveMediaFile
:
""
,
preLiveMediaCover
:
""
,
preLiveMediaCover
:
""
,
liveBackgroundWall
:
""
liveBackgroundWall
:
""
,
preLiveMediaFilePic
:
""
,
preLiveMediaCoverPic
:
""
,
preLiveMediaFileVid
:
""
,
preLiveMediaCoverVid
:
""
}
}
};
};
},
},
...
@@ -376,7 +380,7 @@ export default {
...
@@ -376,7 +380,7 @@ export default {
if
(
status
==
"0"
||
status
==
"1"
)
{
if
(
status
==
"0"
||
status
==
"1"
)
{
this
.
showDraft
=
false
;
this
.
showDraft
=
false
;
}
}
this
.
incomingStatus
=
status
this
.
incomingStatus
=
status
;
this
.
baseForm
.
name
=
res
.
name
;
this
.
baseForm
.
name
=
res
.
name
;
this
.
baseForm
.
introduction
=
res
.
introduction
;
this
.
baseForm
.
introduction
=
res
.
introduction
;
this
.
$set
(
this
.
baseForm
,
"timeStr"
,
[
res
.
startTimeStr
.
replace
(
/
\/
/g
,
"-"
),
res
.
endTimeStr
.
replace
(
/
\/
/g
,
"-"
)]);
this
.
$set
(
this
.
baseForm
,
"timeStr"
,
[
res
.
startTimeStr
.
replace
(
/
\/
/g
,
"-"
),
res
.
endTimeStr
.
replace
(
/
\/
/g
,
"-"
)]);
...
@@ -384,11 +388,11 @@ export default {
...
@@ -384,11 +388,11 @@ export default {
this
.
liveRoom
[
i
]
=
res
[
i
]
||
this
.
liveRoom
[
i
];
this
.
liveRoom
[
i
]
=
res
[
i
]
||
this
.
liveRoom
[
i
];
});
});
if
(
res
.
preLiveMediaType
==
"0"
)
{
if
(
res
.
preLiveMediaType
==
"0"
)
{
this
.
liveRoom
.
preLiveMediaType
=
'0'
this
.
liveRoom
.
preLiveMediaType
=
"0"
;
this
.
liveRoom
.
preLiveMediaFilePic
=
res
.
preLiveMediaFile
;
this
.
liveRoom
.
preLiveMediaFilePic
=
res
.
preLiveMediaFile
;
this
.
liveRoom
.
preLiveMediaCoverPic
=
res
.
preLiveMediaCover
;
this
.
liveRoom
.
preLiveMediaCoverPic
=
res
.
preLiveMediaCover
;
}
else
{
}
else
{
this
.
liveRoom
.
preLiveMediaType
=
'1'
this
.
liveRoom
.
preLiveMediaType
=
"1"
;
this
.
liveRoom
.
preLiveMediaFileVid
=
res
.
preLiveMediaFile
;
this
.
liveRoom
.
preLiveMediaFileVid
=
res
.
preLiveMediaFile
;
this
.
liveRoom
.
preLiveMediaCoverVid
=
res
.
preLiveMediaCover
;
this
.
liveRoom
.
preLiveMediaCoverVid
=
res
.
preLiveMediaCover
;
}
}
...
@@ -441,7 +445,7 @@ export default {
...
@@ -441,7 +445,7 @@ export default {
async
handleCreateorEdit
(
draftFlag
)
{
async
handleCreateorEdit
(
draftFlag
)
{
let
sucText
=
"创建直播间成功!"
;
let
sucText
=
"创建直播间成功!"
;
let
errText
=
"创建直播间失败!"
;
let
errText
=
"创建直播间失败!"
;
const
params
=
Object
.
assign
(
this
.
liveRoom
,
this
.
baseForm
);
const
params
=
Object
.
assign
(
this
.
liveRoom
,
this
.
baseForm
);
if
(
params
.
preLiveMediaType
==
"0"
)
{
if
(
params
.
preLiveMediaType
==
"0"
)
{
params
.
preLiveMediaFile
=
params
.
preLiveMediaFilePic
||
""
;
params
.
preLiveMediaFile
=
params
.
preLiveMediaFilePic
||
""
;
params
.
preLiveMediaCover
=
params
.
preLiveMediaCoverPic
||
""
;
params
.
preLiveMediaCover
=
params
.
preLiveMediaCoverPic
||
""
;
...
@@ -473,7 +477,7 @@ export default {
...
@@ -473,7 +477,7 @@ export default {
delete
params
.
id
;
delete
params
.
id
;
}
}
// 01 就是属于编辑
// 01 就是属于编辑
if
(
this
.
incomingId
&&
this
.
incomingStatus
==
"0"
)
{
if
(
this
.
incomingId
&&
this
.
incomingStatus
==
"0"
)
{
params
.
id
=
this
.
incomingId
;
params
.
id
=
this
.
incomingId
;
sucText
=
"编辑成功!"
;
sucText
=
"编辑成功!"
;
errText
=
"编辑失败!"
;
errText
=
"编辑失败!"
;
...
@@ -824,9 +828,11 @@ export default {
...
@@ -824,9 +828,11 @@ export default {
padding
:
10px
;
padding
:
10px
;
font-size
:
14px
;
font-size
:
14px
;
color
:
#000000
;
color
:
#000000
;
.img{
.img
{
width
:
85px
;
width
:
85px
;
}
}
.title
{
.title
{
margin
:
8px
0
;
margin
:
8px
0
;
}
}
...
...
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