Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
national_museum_vod
Project
Project
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
qzhxx
national_museum_vod
Commits
c12d6500
Commit
c12d6500
authored
Apr 07, 2021
by
liqin
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fixed
parent
d32942a2
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
104 additions
and
176 deletions
+104
-176
uploadAudio.vue
src/page/content/components/uploadVue/uploadAudio.vue
+5
-5
uploadDatum.vue
src/page/content/components/uploadVue/uploadDatum.vue
+5
-5
uploadFile.vue
src/page/content/components/uploadVue/uploadFile.vue
+5
-5
uploadImg.vue
src/page/content/components/uploadVue/uploadImg.vue
+2
-2
add.vue
src/page/content/display/content/add.vue
+46
-81
add.vue
src/page/content/video/content/add.vue
+40
-64
index.vue
src/page/content/video/content/index.vue
+1
-14
No files found.
src/page/content/components/uploadVue/uploadAudio.vue
View file @
c12d6500
...
@@ -14,11 +14,11 @@
...
@@ -14,11 +14,11 @@
:before-upload=
"beforeAvatarUpload"
:before-upload=
"beforeAvatarUpload"
>
>
<i
class=
"el-icon-plus fileUpload"
></i>
<i
class=
"el-icon-plus fileUpload"
></i>
</el-upload>
</el-upload>
<el-button
style=
"margin-left: 10px;"
size=
"small"
type=
"success"
@
click=
"submitUpload"
>
上传到服务器
</el-button>
<el-button
style=
"margin-left: 10px;"
size=
"small"
type=
"success"
@
click=
"submitUpload"
>
上传到服务器
</el-button>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -60,7 +60,7 @@ export default {
...
@@ -60,7 +60,7 @@ export default {
return
item
.
id
;
return
item
.
id
;
})
})
this
.
$emit
(
'audioList'
,
newArray
)
this
.
$emit
(
'audioList'
,
newArray
)
}
else
{
}
else
{
_this
.
$message
.
error
(
resData
.
msg
||
resData
.
message
);
_this
.
$message
.
error
(
resData
.
msg
||
resData
.
message
);
}
}
...
@@ -70,7 +70,7 @@ export default {
...
@@ -70,7 +70,7 @@ export default {
_this
.
$message
.
error
(
err
.
msg
||
err
.
message
);
_this
.
$message
.
error
(
err
.
msg
||
err
.
message
);
});
});
},
},
uploadFile
(
file
)
{
uploadFile
(
file
)
{
this
.
filedata
.
append
(
'file'
,
file
.
file
)
this
.
filedata
.
append
(
'file'
,
file
.
file
)
...
@@ -96,4 +96,4 @@ export default {
...
@@ -96,4 +96,4 @@ export default {
font-size
:
24px
;
font-size
:
24px
;
font
:
#ccc
;
font
:
#ccc
;
}
}
</
style
>
</
style
>
\ No newline at end of file
src/page/content/components/uploadVue/uploadDatum.vue
View file @
c12d6500
...
@@ -14,11 +14,11 @@
...
@@ -14,11 +14,11 @@
:before-upload=
"beforeAvatarUpload"
:before-upload=
"beforeAvatarUpload"
>
>
<i
class=
"el-icon-plus fileUpload"
></i>
<i
class=
"el-icon-plus fileUpload"
></i>
</el-upload>
</el-upload>
<el-button
style=
"margin-left: 10px;"
size=
"small"
type=
"success"
@
click=
"submitUpload"
>
上传到服务器
</el-button>
<el-button
style=
"margin-left: 10px;"
size=
"small"
type=
"success"
@
click=
"submitUpload"
>
上传到服务器
</el-button>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -60,7 +60,7 @@ export default {
...
@@ -60,7 +60,7 @@ export default {
return
item
.
id
;
return
item
.
id
;
})
})
this
.
$emit
(
'datumList'
,
newArray
)
this
.
$emit
(
'datumList'
,
newArray
)
}
else
{
}
else
{
_this
.
$message
.
error
(
resData
.
msg
||
resData
.
message
);
_this
.
$message
.
error
(
resData
.
msg
||
resData
.
message
);
}
}
...
@@ -70,7 +70,7 @@ export default {
...
@@ -70,7 +70,7 @@ export default {
_this
.
$message
.
error
(
err
.
msg
||
err
.
message
);
_this
.
$message
.
error
(
err
.
msg
||
err
.
message
);
});
});
},
},
uploadFile
(
file
)
{
uploadFile
(
file
)
{
this
.
filedata
.
append
(
'file'
,
file
.
file
)
this
.
filedata
.
append
(
'file'
,
file
.
file
)
...
@@ -96,4 +96,4 @@ export default {
...
@@ -96,4 +96,4 @@ export default {
font-size
:
24px
;
font-size
:
24px
;
font
:
#ccc
;
font
:
#ccc
;
}
}
</
style
>
</
style
>
\ No newline at end of file
src/page/content/components/uploadVue/uploadFile.vue
View file @
c12d6500
...
@@ -14,11 +14,11 @@
...
@@ -14,11 +14,11 @@
:before-upload=
"beforeAvatarUpload"
:before-upload=
"beforeAvatarUpload"
>
>
<i
class=
"el-icon-plus fileUpload"
></i>
<i
class=
"el-icon-plus fileUpload"
></i>
</el-upload>
</el-upload>
<el-button
style=
"margin-left: 10px;"
size=
"small"
type=
"success"
@
click=
"submitUpload"
>
上传到服务器
</el-button>
<el-button
style=
"margin-left: 10px;"
size=
"small"
type=
"success"
@
click=
"submitUpload"
>
上传到服务器
</el-button>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -60,7 +60,7 @@ export default {
...
@@ -60,7 +60,7 @@ export default {
return
item
.
id
;
return
item
.
id
;
})
})
this
.
$emit
(
'videoList'
,
newArray
)
this
.
$emit
(
'videoList'
,
newArray
)
}
else
{
}
else
{
_this
.
$message
.
error
(
resData
.
msg
||
resData
.
message
);
_this
.
$message
.
error
(
resData
.
msg
||
resData
.
message
);
}
}
...
@@ -70,7 +70,7 @@ export default {
...
@@ -70,7 +70,7 @@ export default {
_this
.
$message
.
error
(
err
.
msg
||
err
.
message
);
_this
.
$message
.
error
(
err
.
msg
||
err
.
message
);
});
});
},
},
uploadFile
(
file
)
{
uploadFile
(
file
)
{
this
.
filedata
.
append
(
'file'
,
file
.
file
)
this
.
filedata
.
append
(
'file'
,
file
.
file
)
...
@@ -136,4 +136,4 @@ export default {
...
@@ -136,4 +136,4 @@ export default {
font-size
:
24px
;
font-size
:
24px
;
font
:
#ccc
;
font
:
#ccc
;
}
}
</
style
>
</
style
>
\ No newline at end of file
src/page/content/components/uploadVue/uploadImg.vue
View file @
c12d6500
...
@@ -32,7 +32,7 @@ export default {
...
@@ -32,7 +32,7 @@ export default {
methods
:
{
methods
:
{
// 图片上传成功的返回值
// 图片上传成功的返回值
handleAvatarSuccess
(
res
,
file
)
{
handleAvatarSuccess
(
res
,
file
)
{
console
.
log
(
res
)
console
.
log
(
res
)
console
.
log
(
res
.
data
.
url
)
console
.
log
(
res
.
data
.
url
)
this
.
$emit
(
'imgUrl'
,
res
.
data
.
url
)
this
.
$emit
(
'imgUrl'
,
res
.
data
.
url
)
...
@@ -51,4 +51,4 @@ export default {
...
@@ -51,4 +51,4 @@ export default {
</
script
>
</
script
>
<
style
>
<
style
>
</
style
>
</
style
>
\ No newline at end of file
src/page/content/display/content/add.vue
View file @
c12d6500
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
<el-form-item
label=
"请选择视频版权方"
class=
"w50"
>
<el-form-item
label=
"请选择视频版权方"
class=
"w50"
>
<el-select
<el-select
placeholder=
"请选择视频版权方"
placeholder=
"请选择视频版权方"
@
focus=
"get
Asse
tCopyrightData"
@
focus=
"get
VideoConten
tCopyrightData"
v-model=
"ruleForm.videoContentCopyrightOwnerId"
v-model=
"ruleForm.videoContentCopyrightOwnerId"
>
>
<el-option
<el-option
...
@@ -105,7 +105,7 @@
...
@@ -105,7 +105,7 @@
placeholder=
"请选择视频"
placeholder=
"请选择视频"
@
focus=
"getVideoData"
@
focus=
"getVideoData"
v-model=
"ruleForm.videoContentId"
v-model=
"ruleForm.videoContentId"
>
>
<el-option
<el-option
v-for=
"item in videoContentId"
v-for=
"item in videoContentId"
:label=
"item.name"
:label=
"item.name"
...
@@ -114,12 +114,12 @@
...
@@ -114,12 +114,12 @@
></el-option>
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
class=
"w50"
prop=
"audio
Url
List"
></el-form-item>
<el-form-item
class=
"w50"
prop=
"audio
Id
List"
></el-form-item>
<el-form-item
label=
"导览音频"
class=
"w50"
>
<el-form-item
label=
"导览音频"
class=
"w50"
>
<!--
<upload-img
@
imgUrl=
"imgUrl"
></upload-img>
-->
<!--
<upload-img
@
imgUrl=
"imgUrl"
></upload-img>
-->
<upload-audio
@
audio
List=
"audioList"
></upload-audio>
<upload-audio
@
datum
List=
"audioList"
></upload-audio>
</el-form-item>
</el-form-item>
<el-form-item
label=
"参考资料"
class
prop=
"
materialUrl
List"
>
<el-form-item
label=
"参考资料"
class
prop=
"
datumId
List"
>
<upload-datum
@
datumList=
"datumList"
></upload-datum>
<upload-datum
@
datumList=
"datumList"
></upload-datum>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -163,7 +163,6 @@ export default {
...
@@ -163,7 +163,6 @@ export default {
boardCopyrightOwnerId
:[],
boardCopyrightOwnerId
:[],
exhibitionBoardCatId
:[],
exhibitionBoardCatId
:[],
videoContentId
:[],
videoContentId
:[],
type
:
this
.
$route
.
query
.
type
,
dialogVisible
:
false
,
dialogVisible
:
false
,
formLabelWidth
:
"100px"
,
formLabelWidth
:
"100px"
,
form
:
{
form
:
{
...
@@ -176,7 +175,8 @@ export default {
...
@@ -176,7 +175,8 @@ export default {
boardCopyrightOwnerId
:
""
,
boardCopyrightOwnerId
:
""
,
videoContentCopyrightOwnerId
:
""
,
videoContentCopyrightOwnerId
:
""
,
videoContentCatId
:
""
,
videoContentCatId
:
""
,
videoUrlList
:
[]
audioIdList
:
[],
datumIdList
:
[]
},
},
videoContentCat
:
[
videoContentCat
:
[
{
{
...
@@ -225,13 +225,12 @@ export default {
...
@@ -225,13 +225,12 @@ export default {
this
.
init
()
this
.
init
()
},
},
methods
:
{
methods
:
{
audioList
(
list
){
audioList
(
list
){
this
.
ruleForm
.
audioUrlList
=
list
;
this
.
ruleForm
.
audioIdList
=
list
;
},
},
datumList
(
list
){
datumList
(
list
){
console
.
log
(
list
,
"122212fefe"
)
this
.
ruleForm
.
datumIdList
=
list
;
this
.
ruleForm
.
materialUrlList
=
list
;
},
},
// 视频版权方名称id
// 视频版权方名称id
videoCopyright
(
idlist
)
{
videoCopyright
(
idlist
)
{
this
.
ruleForm
.
videoContentCopyrightOwnerId
=
idlist
;
this
.
ruleForm
.
videoContentCopyrightOwnerId
=
idlist
;
...
@@ -245,11 +244,7 @@ export default {
...
@@ -245,11 +244,7 @@ export default {
qrcodeUrl
(
url
){
qrcodeUrl
(
url
){
this
.
ruleForm
.
qrcodeUrl
=
url
this
.
ruleForm
.
qrcodeUrl
=
url
},
},
// 视频列表地址
getVideoContentCat
(
data
)
{
videoList
(
list
)
{
this
.
ruleForm
.
videoUrlList
=
list
;
},
getVideoContentCat
(
data
)
{
console
.
log
(
data
);
console
.
log
(
data
);
console
.
log
(
this
.
ruleForm
.
videoContentCatId
);
console
.
log
(
this
.
ruleForm
.
videoContentCatId
);
},
},
...
@@ -257,7 +252,7 @@ export default {
...
@@ -257,7 +252,7 @@ export default {
if
(
this
.
$route
.
query
.
type
===
"Update"
)
{
if
(
this
.
$route
.
query
.
type
===
"Update"
)
{
this
.
getInfo
(
this
.
$route
.
query
.
id
);
this
.
getInfo
(
this
.
$route
.
query
.
id
);
this
.
getVideoContentCatData
();
this
.
getVideoContentCatData
();
this
.
get
Asse
tCopyrightData
();
this
.
get
VideoConten
tCopyrightData
();
this
.
getExhibitionBoardCatId
();
this
.
getExhibitionBoardCatId
();
this
.
getBoardCopyrightOwnerId
();
this
.
getBoardCopyrightOwnerId
();
this
.
getVideoData
();
this
.
getVideoData
();
...
@@ -285,20 +280,14 @@ export default {
...
@@ -285,20 +280,14 @@ export default {
boardCopyrightOwnerId
:
data
.
boardCopyrightOwnerId
,
boardCopyrightOwnerId
:
data
.
boardCopyrightOwnerId
,
cover
:
data
.
cover
,
cover
:
data
.
cover
,
exhibitionBoardCatId
:
data
.
exhibitionBoardCatId
,
exhibitionBoardCatId
:
data
.
exhibitionBoardCatId
,
guideAudioUrl
:
data
.
guideAudioUrl
,
id
:
data
.
id
,
id
:
data
.
id
,
name
:
data
.
name
,
name
:
data
.
name
,
qrcodeUrl
:
data
.
qrcodeUrl
,
qrcodeUrl
:
data
.
qrcodeUrl
,
refMaterialUrl
:
data
.
refMaterialUrl
,
remarks
:
data
.
remarks
,
remarks
:
data
.
remarks
,
audioUrlList
:
data
.
audioUrlList
,
audioIdList
:
data
.
audioIdList
,
materialUrlList
:
data
.
materialUrlList
datumIdList
:
data
.
datumIdList
// videoUrlList:data.videoUrlList
// 字段对不上
}
}
}).
catch
(
function
(
err
)
{
})
.
catch
(
function
(
err
)
{
console
.
log
(
err
);
console
.
log
(
err
);
});
});
},
},
...
@@ -323,18 +312,16 @@ export default {
...
@@ -323,18 +312,16 @@ export default {
authType
:
this
.
backToken
authType
:
this
.
backToken
},
},
this
.
classForm
this
.
classForm
)
).
then
(
res
=>
{
.
then
(
res
=>
{
this
.
$message
({
type
:
"success"
,
message
:
"新增分类成功!"
});
this
.
$message
({
type
:
"success"
,
message
:
"新增分类成功!"
});
this
.
dialogVisible
=
false
;
this
.
dialogVisible
=
false
;
})
}).
catch
(
function
(
err
)
{
.
catch
(
function
(
err
)
{
this
.
$message
({
this
.
$message
({
type
:
"fail"
,
type
:
"fail"
,
message
:
"新增失败!"
+
err
.
response
.
data
.
msg
message
:
"新增失败!"
+
err
.
response
.
data
.
msg
});
});
console
.
log
(
err
);
console
.
log
(
err
);
});
});
}
else
{
}
else
{
console
.
log
(
"error submit!!"
);
console
.
log
(
"error submit!!"
);
return
false
;
return
false
;
...
@@ -344,7 +331,6 @@ export default {
...
@@ -344,7 +331,6 @@ export default {
// 新增
// 新增
submitForm
(
formName
)
{
submitForm
(
formName
)
{
this
.
$refs
[
formName
].
validate
(
valid
=>
{
this
.
$refs
[
formName
].
validate
(
valid
=>
{
console
.
log
(
this
.
ruleForm
)
if
(
valid
)
{
if
(
valid
)
{
this
.
$https
(
this
.
$https
(
{
{
...
@@ -354,14 +340,12 @@ export default {
...
@@ -354,14 +340,12 @@ export default {
},
},
// this.ruleForm
// this.ruleForm
this
.
$qs
.
stringify
(
this
.
ruleForm
)
this
.
$qs
.
stringify
(
this
.
ruleForm
)
)
).
then
(
res
=>
{
.
then
(
res
=>
{
this
.
$message
({
type
:
"success"
,
message
:
"新增成功!"
});
this
.
$message
({
type
:
"success"
,
message
:
"新增成功!"
});
history
.
go
(
-
1
);
history
.
go
(
-
1
);
})
}).
catch
(
function
(
err
)
{
.
catch
(
function
(
err
)
{
console
.
log
(
err
);
console
.
log
(
err
);
});
});
}
else
{
}
else
{
console
.
log
(
"error submit!!"
);
console
.
log
(
"error submit!!"
);
return
false
;
return
false
;
...
@@ -379,15 +363,12 @@ export default {
...
@@ -379,15 +363,12 @@ export default {
authType
:
this
.
backToken
authType
:
this
.
backToken
},
},
this
.
$qs
.
stringify
(
this
.
ruleForm
)
this
.
$qs
.
stringify
(
this
.
ruleForm
)
// this.ruleForm
).
then
(
res
=>
{
)
.
then
(
res
=>
{
this
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
});
this
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
});
history
.
go
(
-
1
);
history
.
go
(
-
1
);
})
}).
catch
(
function
(
err
)
{
.
catch
(
function
(
err
)
{
console
.
log
(
err
);
console
.
log
(
err
);
});
});
}
else
{
}
else
{
console
.
log
(
"error submit!!"
);
console
.
log
(
"error submit!!"
);
return
false
;
return
false
;
...
@@ -399,7 +380,7 @@ export default {
...
@@ -399,7 +380,7 @@ export default {
history
.
go
(
-
1
);
history
.
go
(
-
1
);
},
},
// 获取视频版权方
// 获取视频版权方
get
Asse
tCopyrightData
()
{
get
VideoConten
tCopyrightData
()
{
let
vm
=
this
;
let
vm
=
this
;
vm
.
$https
(
vm
.
$https
(
{
{
...
@@ -410,8 +391,7 @@ export default {
...
@@ -410,8 +391,7 @@ export default {
{
copyrightOwnerType
:
"VIDEO_CONTENT"
}
{
copyrightOwnerType
:
"VIDEO_CONTENT"
}
)
)
.
then
(
res
=>
{
.
then
(
res
=>
{
let
data
=
res
.
data
.
data
;
this
.
copyrightOwner
=
res
.
data
.
data
;
this
.
copyrightOwner
=
data
;
})
})
.
catch
(
function
(
err
)
{
.
catch
(
function
(
err
)
{
console
.
log
(
err
);
console
.
log
(
err
);
...
@@ -420,22 +400,17 @@ export default {
...
@@ -420,22 +400,17 @@ export default {
// 获取展板版权方
// 获取展板版权方
getBoardCopyrightOwnerId
()
{
getBoardCopyrightOwnerId
()
{
let
vm
=
this
;
let
vm
=
this
;
vm
.
$https
(
vm
.
$https
({
{
url
:
"copyrightOwner/getList"
,
url
:
"copyrightOwner/getList"
,
method
:
"get"
,
method
:
"get"
,
authType
:
this
.
backToken
authType
:
this
.
backToken
},
},
{
copyrightOwnerType
:
"EXHIBITION_BOARD"
}
{
copyrightOwnerType
:
"EXHIBITION_BOARD"
}
)
).
then
(
res
=>
{
.
then
(
res
=>
{
this
.
boardCopyrightOwnerId
=
res
.
data
.
data
;
let
data
=
res
.
data
.
data
;
}).
catch
(
function
(
err
)
{
this
.
boardCopyrightOwnerId
=
data
;
console
.
log
(
this
.
boardCopyrightOwnerId
)
})
.
catch
(
function
(
err
)
{
console
.
log
(
err
);
console
.
log
(
err
);
});
});
},
},
//获取展板分类
//获取展板分类
getExhibitionBoardCatId
(){
getExhibitionBoardCatId
(){
...
@@ -444,14 +419,11 @@ export default {
...
@@ -444,14 +419,11 @@ export default {
url
:
"exhibitionBoardCat/getList"
,
url
:
"exhibitionBoardCat/getList"
,
method
:
"get"
,
method
:
"get"
,
authType
:
this
.
backToken
authType
:
this
.
backToken
})
}).
then
(
res
=>
{
.
then
(
res
=>
{
this
.
exhibitionBoardCatId
=
res
.
data
.
data
;
let
data
=
res
.
data
.
data
;
}).
catch
(
function
(
err
)
{
this
.
exhibitionBoardCatId
=
data
;
})
.
catch
(
function
(
err
)
{
console
.
log
(
err
);
console
.
log
(
err
);
});
});
},
},
// 获取视频分类列表
// 获取视频分类列表
getVideoContentCatData
()
{
getVideoContentCatData
()
{
...
@@ -460,14 +432,11 @@ export default {
...
@@ -460,14 +432,11 @@ export default {
url
:
"videoContentCat/getList"
,
url
:
"videoContentCat/getList"
,
method
:
"get"
,
method
:
"get"
,
authType
:
this
.
backToken
authType
:
this
.
backToken
})
}).
then
(
res
=>
{
.
then
(
res
=>
{
this
.
videoContentCat
=
res
.
data
.
data
;
let
data
=
res
.
data
.
data
;
}).
catch
(
function
(
err
)
{
this
.
videoContentCat
=
data
;
})
.
catch
(
function
(
err
)
{
console
.
log
(
err
);
console
.
log
(
err
);
});
});
},
},
// 获取视频列表
// 获取视频列表
getVideoData
()
{
getVideoData
()
{
...
@@ -476,16 +445,12 @@ export default {
...
@@ -476,16 +445,12 @@ export default {
url
:
"videoContent/getList"
,
url
:
"videoContent/getList"
,
method
:
"get"
,
method
:
"get"
,
authType
:
this
.
backToken
authType
:
this
.
backToken
})
}).
then
(
res
=>
{
.
then
(
res
=>
{
this
.
videoContentId
=
res
.
data
.
data
;
let
data
=
res
.
data
.
data
;
}).
catch
(
function
(
err
)
{
this
.
videoContentId
=
data
;
})
.
catch
(
function
(
err
)
{
console
.
log
(
err
);
console
.
log
(
err
);
});
});
},
},
close
()
{
close
()
{
history
.
go
(
-
1
);
history
.
go
(
-
1
);
},
},
...
...
src/page/content/video/content/add.vue
View file @
c12d6500
...
@@ -27,9 +27,9 @@
...
@@ -27,9 +27,9 @@
<el-form-item
class=
"selectH100"
label=
"请选择预设视频分类"
>
<el-form-item
class=
"selectH100"
label=
"请选择预设视频分类"
>
<el-select
<el-select
placeholder=
"请选择预设视频分类"
placeholder=
"请选择预设视频分类"
@
focus=
"get
AssetType
Data"
@
focus=
"get
VideoContentCat
Data"
multiple
multiple
v-model=
"ruleForm.
assetType
IdList"
v-model=
"ruleForm.
videoContentCat
IdList"
@
change=
"getSelectDep"
@
change=
"getSelectDep"
>
>
<el-checkbox
:style=
"selfstyle"
v-model=
"checkedThing"
@
change=
"selectAllThing"
>
全选
</el-checkbox>
<el-checkbox
:style=
"selfstyle"
v-model=
"checkedThing"
@
change=
"selectAllThing"
>
全选
</el-checkbox>
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
<el-form-item
label=
"请选择视频版权方"
>
<el-form-item
label=
"请选择视频版权方"
>
<el-select
<el-select
placeholder=
"请选择视频版权方"
placeholder=
"请选择视频版权方"
@
focus=
"get
Asse
tCopyrightData"
@
focus=
"get
VideoConten
tCopyrightData"
v-model=
"ruleForm.videoContentCopyrightOwnerId"
v-model=
"ruleForm.videoContentCopyrightOwnerId"
>
>
<el-option
<el-option
...
@@ -62,9 +62,9 @@
...
@@ -62,9 +62,9 @@
<el-form-item
label=
"请选择预设视频分类"
>
<el-form-item
label=
"请选择预设视频分类"
>
<el-select
<el-select
placeholder=
"请选择预设视频分类"
placeholder=
"请选择预设视频分类"
@
focus=
"get
AssetType
Data"
@
focus=
"get
VideoContentCat
Data"
v-model=
"ruleForm.
assetType
Id"
v-model=
"ruleForm.
videoContentCat
Id"
@
change=
"get
AssetType
"
@
change=
"get
VideoContentCat
"
>
>
<el-option
<el-option
v-for=
"item in videoContentCat"
v-for=
"item in videoContentCat"
...
@@ -143,7 +143,7 @@ import uploadDatum from '@/page/content/components/uploadVue/uploadDatum'
...
@@ -143,7 +143,7 @@ import uploadDatum from '@/page/content/components/uploadVue/uploadDatum'
import
mulDisplay
from
'@/page/content/components/mulClassify/mulDisplay'
import
mulDisplay
from
'@/page/content/components/mulClassify/mulDisplay'
import
addCopyright
from
'@/page/content/components/dialog/addCopyright'
import
addCopyright
from
'@/page/content/components/dialog/addCopyright'
export
default
{
export
default
{
components
:{
components
:{
uploadImg
,
uploadImg
,
uploadFile
,
uploadFile
,
uploadDatum
,
uploadDatum
,
...
@@ -164,9 +164,9 @@ export default {
...
@@ -164,9 +164,9 @@ export default {
ruleForm
:
{
ruleForm
:
{
name
:
""
,
name
:
""
,
videoContentCopyrightOwnerId
:
""
,
videoContentCopyrightOwnerId
:
""
,
assetType
Id
:
""
,
videoContentCat
Id
:
""
,
thumbnail
:
""
,
thumbnail
:
""
,
video
Url
List
:[]
video
FileId
List
:[]
},
},
videoContentCat
:
[
videoContentCat
:
[
{
{
...
@@ -236,18 +236,18 @@ export default {
...
@@ -236,18 +236,18 @@ export default {
},
},
// 视频列表地址
// 视频列表地址
videoList
(
list
){
videoList
(
list
){
this
.
ruleForm
.
video
Url
List
=
list
this
.
ruleForm
.
video
FileId
List
=
list
},
},
init
()
{
init
()
{
if
(
this
.
$route
.
query
.
type
===
"Update"
)
{
if
(
this
.
$route
.
query
.
type
===
"Update"
)
{
this
.
getInfo
(
this
.
$route
.
query
.
id
);
this
.
getInfo
(
this
.
$route
.
query
.
id
);
this
.
get
AssetType
Data
()
this
.
get
VideoContentCat
Data
()
this
.
get
Asse
tCopyrightData
()
this
.
get
VideoConten
tCopyrightData
()
}
}
},
},
get
AssetType
(
data
){
get
VideoContentCat
(
data
){
console
.
log
(
data
)
console
.
log
(
data
)
console
.
log
(
this
.
ruleForm
.
assetType
Id
)
console
.
log
(
this
.
ruleForm
.
videoContentCat
Id
)
},
},
// 获取版权方详情
// 获取版权方详情
getInfo
(
id
)
{
getInfo
(
id
)
{
...
@@ -259,20 +259,18 @@ export default {
...
@@ -259,20 +259,18 @@ export default {
authType
:
this
.
backToken
authType
:
this
.
backToken
}
}
// param
// param
)
).
then
(
res
=>
{
.
then
(
res
=>
{
let
data
=
res
.
data
.
data
;
let
data
=
res
.
data
.
data
;
// this.ruleForm = data;
// this.ruleForm = data;
this
.
ruleForm
.
id
=
data
.
id
this
.
ruleForm
.
id
=
data
.
id
this
.
ruleForm
.
name
=
data
.
name
this
.
ruleForm
.
name
=
data
.
name
this
.
ruleForm
.
videoContentCopyrightOwnerId
=
data
.
videoContentCopyrightOwnerId
this
.
ruleForm
.
videoContentCopyrightOwnerId
=
data
.
videoContentCopyrightOwnerId
this
.
ruleForm
.
assetTypeId
=
data
.
assetType
Id
this
.
ruleForm
.
videoContentCatId
=
data
.
videoContentCat
Id
this
.
ruleForm
.
thumbnail
=
data
.
thumbnail
this
.
ruleForm
.
thumbnail
=
data
.
thumbnail
this
.
ruleForm
.
videoUrlList
=
data
.
videoUrlList
this
.
ruleForm
.
videoFileIdList
=
data
.
videoFileIdList
})
}).
catch
(
function
(
err
)
{
.
catch
(
function
(
err
)
{
console
.
log
(
err
);
console
.
log
(
err
);
});
});
},
},
// 新建视频分类
// 新建视频分类
...
@@ -295,18 +293,15 @@ export default {
...
@@ -295,18 +293,15 @@ export default {
authType
:
this
.
backToken
authType
:
this
.
backToken
},
},
this
.
classForm
this
.
classForm
)
).
then
(
res
=>
{
.
then
(
res
=>
{
this
.
$message
({
type
:
"success"
,
message
:
"新增分类成功!"
});
this
.
$message
({
type
:
"success"
,
message
:
"新增分类成功!"
});
this
.
dialogVisible
=
false
;
this
.
dialogVisible
=
false
;
})
}).
catch
(
function
(
err
)
{
.
catch
(
function
(
err
)
{
this
.
$message
({
this
.
$message
({
type
:
"fail"
,
type
:
"fail"
,
message
:
"新增失败!"
+
err
.
response
.
data
.
msg
message
:
"新增失败!"
+
err
.
response
.
data
.
msg
});
});
console
.
log
(
err
);
});
});
}
else
{
}
else
{
console
.
log
(
"error submit!!"
);
console
.
log
(
"error submit!!"
);
return
false
;
return
false
;
...
@@ -324,11 +319,6 @@ export default {
...
@@ -324,11 +319,6 @@ export default {
// 新增
// 新增
submitForm
(
formName
)
{
submitForm
(
formName
)
{
this
.
$refs
[
formName
].
validate
(
valid
=>
{
this
.
$refs
[
formName
].
validate
(
valid
=>
{
// this.ruleForm.videoContentCopyrightOwnerId = ["1373225989501456385"]
// this.ruleForm.assetTypeIdList = []
// this.ruleForm.videoUrlList = [
// "http://111.203.232.175:8085/group1/M00/00/39/wKhuVWBgIvaANgtZAAAAAAAAAAA947.mp4"
// ]
if
(
valid
)
{
if
(
valid
)
{
this
.
$https
(
this
.
$https
(
{
{
...
@@ -336,16 +326,13 @@ export default {
...
@@ -336,16 +326,13 @@ export default {
method
:
"post"
,
method
:
"post"
,
authType
:
this
.
backToken
authType
:
this
.
backToken
},
},
// this.ruleForm
this
.
$qs
.
stringify
(
this
.
ruleForm
)
this
.
$qs
.
stringify
(
this
.
ruleForm
)
)
).
then
(
res
=>
{
.
then
(
res
=>
{
this
.
$message
({
type
:
"success"
,
message
:
"新增成功!"
});
this
.
$message
({
type
:
"success"
,
message
:
"新增成功!"
});
history
.
go
(
-
1
);
history
.
go
(
-
1
);
})
}).
catch
(
function
(
err
)
{
.
catch
(
function
(
err
)
{
console
.
log
(
err
);
console
.
log
(
err
);
});
});
}
else
{
}
else
{
console
.
log
(
"error submit!!"
);
console
.
log
(
"error submit!!"
);
return
false
;
return
false
;
...
@@ -355,7 +342,6 @@ export default {
...
@@ -355,7 +342,6 @@ export default {
// 修改版权方
// 修改版权方
updateForm
(
formName
)
{
updateForm
(
formName
)
{
this
.
$refs
[
formName
].
validate
(
valid
=>
{
this
.
$refs
[
formName
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
$https
(
this
.
$https
(
{
{
...
@@ -364,15 +350,12 @@ export default {
...
@@ -364,15 +350,12 @@ export default {
authType
:
this
.
backToken
authType
:
this
.
backToken
},
},
this
.
$qs
.
stringify
(
this
.
ruleForm
)
this
.
$qs
.
stringify
(
this
.
ruleForm
)
// this.ruleForm
).
then
(
res
=>
{
)
.
then
(
res
=>
{
this
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
});
this
.
$message
({
type
:
"success"
,
message
:
"修改成功!"
});
history
.
go
(
-
1
);
history
.
go
(
-
1
);
})
}).
catch
(
function
(
err
)
{
.
catch
(
function
(
err
)
{
console
.
log
(
err
);
console
.
log
(
err
);
});
});
}
else
{
}
else
{
console
.
log
(
"error submit!!"
);
console
.
log
(
"error submit!!"
);
return
false
;
return
false
;
...
@@ -383,8 +366,8 @@ export default {
...
@@ -383,8 +366,8 @@ export default {
this
.
$refs
[
formName
].
resetFields
();
this
.
$refs
[
formName
].
resetFields
();
history
.
go
(
-
1
);
history
.
go
(
-
1
);
},
},
get
AssetCopyrightData
()
{
get
VideoContentCopyrightData
()
{
let
vm
=
this
;
let
vm
=
this
;
vm
.
$https
({
vm
.
$https
({
url
:
"copyrightOwner/getList"
,
url
:
"copyrightOwner/getList"
,
method
:
"get"
,
method
:
"get"
,
...
@@ -400,37 +383,30 @@ export default {
...
@@ -400,37 +383,30 @@ export default {
});
});
},
},
// 获取视频分类列表
// 获取视频分类列表
get
AssetType
Data
()
{
get
VideoContentCat
Data
()
{
let
vm
=
this
;
let
vm
=
this
;
vm
.
$https
({
vm
.
$https
({
url
:
"videoContentCat/getList"
,
url
:
"videoContentCat/getList"
,
method
:
"get"
,
method
:
"get"
,
authType
:
this
.
backToken
authType
:
this
.
backToken
})
}).
then
(
res
=>
{
.
then
(
res
=>
{
this
.
videoContentCat
=
res
.
data
.
data
;
let
data
=
res
.
data
.
data
;
}).
catch
(
function
(
err
)
{
this
.
videoContentCat
=
data
;
})
.
catch
(
function
(
err
)
{
console
.
log
(
err
);
console
.
log
(
err
);
});
});
},
},
getSelectDep
(
assetTypeIdList
)
{
getSelectDep
(
videoContentCatIdList
)
{
if
(
assetTypeIdList
.
length
===
this
.
videoContentCat
.
length
)
{
this
.
checkedThing
=
videoContentCatIdList
.
length
===
this
.
videoContentCat
.
length
;
this
.
checkedThing
=
true
;
}
else
{
this
.
checkedThing
=
false
;
}
},
},
selectAllThing
()
{
selectAllThing
()
{
// debugger
// debugger
this
.
ruleForm
.
assetType
IdList
=
[];
this
.
ruleForm
.
videoContentCat
IdList
=
[];
if
(
this
.
checkedThing
)
{
if
(
this
.
checkedThing
)
{
this
.
videoContentCat
.
map
(
item
=>
{
this
.
videoContentCat
.
map
(
item
=>
{
this
.
ruleForm
.
assetType
IdList
.
push
(
item
.
id
);
this
.
ruleForm
.
videoContentCat
IdList
.
push
(
item
.
id
);
});
});
}
else
{
}
else
{
this
.
ruleForm
.
assetType
IdList
=
[];
this
.
ruleForm
.
videoContentCat
IdList
=
[];
}
}
}
}
}
}
...
...
src/page/content/video/content/index.vue
View file @
c12d6500
...
@@ -39,18 +39,6 @@
...
@@ -39,18 +39,6 @@
>
>
<el-table-column
type=
"index"
width=
"120"
label=
"序号"
></el-table-column>
<el-table-column
type=
"index"
width=
"120"
label=
"序号"
></el-table-column>
<el-table-column
show-overflow-tooltip
label=
"视频名称"
prop=
"name"
></el-table-column>
<el-table-column
show-overflow-tooltip
label=
"视频名称"
prop=
"name"
></el-table-column>
<<<<<<<
HEAD
<el-table-column
show-overflow-tooltip
label=
"版权方"
prop=
"assetCopyrightOwnerName"
></el-table-column>
<el-table-column
label=
"视频分类"
prop=
"assetTypeName"
></el-table-column>
<el-table-column
label=
"审核状态"
prop=
"auditStatus"
>
<template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.auditStatus === 'TBC'"
>
待初审
</span>
<span
v-else-if=
"scope.row.auditStatus === 'REFUSED'"
>
已驳回
</span>
<span
v-else-if=
"scope.row.auditStatus === 'TBCA'"
>
待复审
</span>
<span
v-else-if=
"scope.row.auditStatus === 'APPROVED_FINAL'"
>
通过
</span>
</
template
>
</el-table-column>
=======
<el-table-column
show-overflow-tooltip
label=
"版权方"
prop=
"videoContentCopyrightOwnerName"
></el-table-column>
<el-table-column
show-overflow-tooltip
label=
"版权方"
prop=
"videoContentCopyrightOwnerName"
></el-table-column>
<el-table-column
label=
"视频分类"
prop=
"videoContentCatName"
></el-table-column>
<el-table-column
label=
"视频分类"
prop=
"videoContentCatName"
></el-table-column>
<el-table-column
label=
"审核状态"
prop=
"auditStatus"
>
<el-table-column
label=
"审核状态"
prop=
"auditStatus"
>
...
@@ -61,7 +49,6 @@
...
@@ -61,7 +49,6 @@
<span
v-else-if=
"scope.row.auditStatus === 'APPROVED_FINAL'"
>
通过
</span>
<span
v-else-if=
"scope.row.auditStatus === 'APPROVED_FINAL'"
>
通过
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
>>>>>>> master
<el-table-column
label=
"操作"
header-align=
"center"
align=
"center"
>
<el-table-column
label=
"操作"
header-align=
"center"
align=
"center"
>
<
template
slot-scope=
"scope"
width=
"220"
>
<
template
slot-scope=
"scope"
width=
"220"
>
<div
class=
"table-btn-group"
>
<div
class=
"table-btn-group"
>
...
@@ -534,7 +521,7 @@ export default {
...
@@ -534,7 +521,7 @@ export default {
})
})
.
then
(
.
then
(
res
=>
{
res
=>
{
if
(
res
.
data
.
status
==
201
||
res
.
data
.
status
==
200
)
{
if
(
res
.
data
.
status
==
=
201
||
res
.
data
.
status
=
==
200
)
{
this
.
$message
({
this
.
$message
({
type
:
"success"
,
type
:
"success"
,
message
:
"删除成功!"
message
:
"删除成功!"
...
...
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