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
1fbff58e
Commit
1fbff58e
authored
Apr 14, 2021
by
xulili
Browse files
Options
Browse Files
Download
Plain Diff
删除不必要代码
parents
1a025f1a
350e477d
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
79 additions
and
28 deletions
+79
-28
index.vue
src/page/STB/base/index.vue
+1
-0
index.vue
src/page/STB/operation/index.vue
+1
-0
uploadImg.vue
src/page/content/components/uploadVue/uploadImg.vue
+17
-1
uploadQrcode.vue
src/page/content/components/uploadVue/uploadQrcode.vue
+29
-7
index.vue
src/page/content/display/classify/index.vue
+1
-1
add.vue
src/page/content/display/content/add.vue
+7
-3
index.vue
src/page/content/display/content/index.vue
+4
-4
add.vue
src/page/content/learn/content/add.vue
+3
-2
index.vue
src/page/content/learn/project/index.vue
+0
-1
add.vue
src/page/content/video/content/add.vue
+11
-4
index.vue
src/page/content/video/content/index.vue
+4
-4
index.vue
src/page/content/video/remit/index.vue
+1
-1
No files found.
src/page/STB/base/index.vue
View file @
1fbff58e
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-cascader
<el-cascader
placeholder=
"请选择区域"
v-model=
"form.areaId"
v-model=
"form.areaId"
:options=
"areaOptions"
:options=
"areaOptions"
:props=
"defaultProps"
:props=
"defaultProps"
...
...
src/page/STB/operation/index.vue
View file @
1fbff58e
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-cascader
<el-cascader
placeholder=
"请选择区域"
v-model=
"form.areaId"
v-model=
"form.areaId"
:options=
"areaOptions"
:options=
"areaOptions"
:props=
"defaultProps"
:props=
"defaultProps"
...
...
src/page/content/components/uploadVue/uploadImg.vue
View file @
1fbff58e
<
template
>
<
template
>
<div>
<div>
<el-upload
<el-upload
accept=
".jpg,.jpeg,.png.JPG,.JPEG,.PNG"
:class=
"
{disabled:uploadDisabled}"
action="http://111.203.232.175:8088/mall/file/image/upload"
action="http://111.203.232.175:8088/mall/file/image/upload"
list-type="picture-card"
list-type="picture-card"
:on-preview="handlePictureCardPreview"
:on-preview="handlePictureCardPreview"
...
@@ -12,6 +14,7 @@
...
@@ -12,6 +14,7 @@
:multiple ="false"
:multiple ="false"
>
>
<i
class=
"el-icon-plus"
></i>
<i
class=
"el-icon-plus"
></i>
<div
slot=
"tip"
class=
"el-upload__tip color_red"
>
只能上传.jpg/.jpeg/.png文件
</div>
</el-upload>
</el-upload>
<el-dialog
:visible
.
sync=
"dialogVisible"
>
<el-dialog
:visible
.
sync=
"dialogVisible"
>
<img
width=
"100%"
:src=
"dialogImageUrl"
alt
/>
<img
width=
"100%"
:src=
"dialogImageUrl"
alt
/>
...
@@ -31,6 +34,7 @@ export default {
...
@@ -31,6 +34,7 @@ export default {
return
{
return
{
dialogImageUrl
:
""
,
dialogImageUrl
:
""
,
dialogVisible
:
false
,
dialogVisible
:
false
,
imageUrl
:
""
};
};
},
},
computed
:
{
computed
:
{
...
@@ -39,6 +43,9 @@ export default {
...
@@ -39,6 +43,9 @@ export default {
Authorization
:
localStorage
.
getItem
(
"backToken"
)
||
""
,
Authorization
:
localStorage
.
getItem
(
"backToken"
)
||
""
,
};
};
},
},
uploadDisabled
:
function
()
{
return
this
.
imageUrl
!==
''
},
},
},
methods
:
{
methods
:
{
// 图片上传成功的返回值
// 图片上传成功的返回值
...
@@ -52,6 +59,7 @@ export default {
...
@@ -52,6 +59,7 @@ export default {
},
},
handleRemove
(
file
,
fileList
)
{
handleRemove
(
file
,
fileList
)
{
this
.
$emit
(
"imgUrl"
,
""
);
this
.
$emit
(
"imgUrl"
,
""
);
this
.
imageUrl
=
""
},
},
handlePictureCardPreview
(
file
)
{
handlePictureCardPreview
(
file
)
{
this
.
dialogImageUrl
=
file
.
url
;
this
.
dialogImageUrl
=
file
.
url
;
...
@@ -68,9 +76,17 @@ export default {
...
@@ -68,9 +76,17 @@ export default {
};
};
</
script
>
</
script
>
<
style
>
<
style
lang=
"less"
>
.avatar {
.avatar {
width: 100%;
width: 100%;
height: 100%;
height: 100%;
}
}
.color_red{
color:red;
}
.disabled .el-upload--picture-card {
display: none;
}
</
style
>
</
style
>
src/page/content/components/uploadVue/uploadQrcode.vue
View file @
1fbff58e
<
template
>
<
template
>
<div>
<div>
<el-upload
<el-upload
accept=
".jpg,.jpeg,.png,.JPG,.JPEG,.PBG"
:class=
"
{disabled:uploadDisabled}"
action="http://111.203.232.175:8088/mall/file/image/upload"
action="http://111.203.232.175:8088/mall/file/image/upload"
list-type="picture-card"
list-type="picture-card"
:on-preview="handlePictureCardPreview"
:on-preview="handlePictureCardPreview"
...
@@ -12,6 +14,7 @@
...
@@ -12,6 +14,7 @@
:multiple ="false"
:multiple ="false"
>
>
<i
class=
"el-icon-plus"
></i>
<i
class=
"el-icon-plus"
></i>
<div
slot=
"tip"
class=
"el-upload__tip color_red"
>
只能上传.jpg/.jpeg/.png文件
</div>
</el-upload>
</el-upload>
<el-dialog
:visible
.
sync=
"dialogVisible"
>
<el-dialog
:visible
.
sync=
"dialogVisible"
>
<img
width=
"100%"
:src=
"dialogImageUrl"
alt
/>
<img
width=
"100%"
:src=
"dialogImageUrl"
alt
/>
...
@@ -35,26 +38,38 @@ export default {
...
@@ -35,26 +38,38 @@ export default {
data
()
{
data
()
{
return
{
return
{
dialogImageUrl
:
""
,
dialogImageUrl
:
""
,
dialogVisible
:
false
dialogVisible
:
false
,
imageUrl
:
""
};
};
},
},
computed
:
{
computed
:
{
headers
()
{
headers
()
{
// return { 'token': this.backToken }
// return { 'token': this.backToken }
return
{
'Authorization'
:
localStorage
.
getItem
(
'backToken'
)}
return
{
'Authorization'
:
localStorage
.
getItem
(
'backToken'
)}
}
},
uploadDisabled
:
function
()
{
return
this
.
imageUrl
!==
''
},
},
},
methods
:
{
methods
:
{
// 图片上传成功的返回值
// 图片上传成功的返回值
handleAvatarSuccess
(
res
,
file
)
{
handleAvatarSuccess
(
res
,
file
)
{
console
.
log
(
res
)
// console.log(res.url)
// this.$emit('qrcodeUrl', res.data.url)
console
.
log
(
res
.
data
.
url
)
this
.
$emit
(
'qrcodeUrl'
,
res
.
data
.
url
)
if
(
res
.
resultCode
==
200
)
{
// this.imageUrl = URL.createObjectURL(file.raw);
this
.
$emit
(
'qrcodeUrl'
,
res
.
data
.
url
)
this
.
imageUrl
=
res
.
data
.
url
;
}
else
{
this
.
$message
.
error
(
res
.
message
);
}
},
},
handleRemove
(
file
,
fileList
)
{
handleRemove
(
file
,
fileList
)
{
console
.
log
(
file
,
fileList
);
console
.
log
(
file
,
fileList
);
this
.
$emit
(
"qrcodeUrl"
,
""
);
this
.
imageUrl
=
""
},
},
handlePictureCardPreview
(
file
)
{
handlePictureCardPreview
(
file
)
{
this
.
dialogImageUrl
=
file
.
url
;
this
.
dialogImageUrl
=
file
.
url
;
...
@@ -65,4 +80,11 @@ export default {
...
@@ -65,4 +80,11 @@ export default {
</
script
>
</
script
>
<
style
>
<
style
>
.color_red
{
color
:
red
;
}
.disabled
.el-upload--picture-card
{
display
:
none
;
}
</
style
>
</
style
>
src/page/content/display/classify/index.vue
View file @
1fbff58e
...
@@ -93,7 +93,7 @@
...
@@ -93,7 +93,7 @@
</div>
</div>
<!--新增弹框-->
<!--新增弹框-->
<el-dialog
<el-dialog
:title=
"type?'新建
版权方':'编辑版权方
'"
:title=
"type?'新建
展板分类':'编辑展板分类
'"
custom-class=
"party-dialog"
custom-class=
"party-dialog"
width=
"468px"
width=
"468px"
:visible
.
sync=
"FormVisible"
:visible
.
sync=
"FormVisible"
...
...
src/page/content/display/content/add.vue
View file @
1fbff58e
...
@@ -120,11 +120,11 @@
...
@@ -120,11 +120,11 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item></el-form-item>
<el-form-item></el-form-item>
<el-form-item
label=
"导览音频"
prop=
"audioIdList"
required
>
<el-form-item
label=
"导览音频"
prop=
"audioIdList"
>
<div
style=
"color:red;"
>
(可上传汉语、蒙语、藏语、维吾尔语、英语五种语言音频资料,命名方式为展板名称+语言)
</div>
<div
style=
"color:red;"
>
(可上传汉语、蒙语、藏语、维吾尔语、英语五种语言音频资料,命名方式为展板名称+语言)
</div>
<upload-audio
:fileList=
"ruleForm.audioList"
@
audioList=
"audioList"
></upload-audio>
<upload-audio
:fileList=
"ruleForm.audioList"
@
audioList=
"audioList"
></upload-audio>
</el-form-item>
</el-form-item>
<el-form-item
label=
"参考资料"
prop=
"datumIdList"
required
>
<el-form-item
label=
"参考资料"
prop=
"datumIdList"
>
<div
style=
"color:red;"
>
<div
style=
"color:red;"
>
(可支持word、excel、PDF、ppt、视频类型文件及图片上传)
(可支持word、excel、PDF、ppt、视频类型文件及图片上传)
</div>
</div>
...
@@ -225,6 +225,7 @@ export default {
...
@@ -225,6 +225,7 @@ export default {
// this.getVideoData();
// this.getVideoData();
if
(
this
.
$route
.
query
.
type
===
"Update"
)
{
if
(
this
.
$route
.
query
.
type
===
"Update"
)
{
this
.
getInfo
(
this
.
$route
.
query
.
id
);
this
.
getInfo
(
this
.
$route
.
query
.
id
);
}
}
},
},
// 更换展板版权方,展板分类清空
// 更换展板版权方,展板分类清空
...
@@ -265,7 +266,10 @@ export default {
...
@@ -265,7 +266,10 @@ export default {
imageList
:[{
url
:
data
.
cover
}],
imageList
:[{
url
:
data
.
cover
}],
qrcodeList
:[{
url
:
data
.
qrcodeUrl
}]
qrcodeList
:[{
url
:
data
.
qrcodeUrl
}]
}
}
console
.
log
(
this
.
ruleForm
)
// console.log(this.ruleForm)
this
.
getVideoContentCatData
();
this
.
getExhibitionBoardCatId
();
this
.
getVideoData
();
}).
catch
(
function
(
err
)
{
}).
catch
(
function
(
err
)
{
console
.
log
(
err
);
console
.
log
(
err
);
});
});
...
...
src/page/content/display/content/index.vue
View file @
1fbff58e
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</el-form>
</el-form>
<div
class=
"page-tip"
>
<div
class=
"page-tip"
>
<span
class=
"page-tip-title"
>
页面说明:
</span>
<span
class=
"page-tip-title"
>
页面说明:
</span>
<span
class=
"page-tips"
>
可通过展板名称、创建时间对展板信息进行快速检索。可对展板进行上架、下架、删除、修改及查看展板详情等操作。
其中已上架的展板不能被
删除。
</span>
<span
class=
"page-tips"
>
可通过展板名称、创建时间对展板信息进行快速检索。可对展板进行上架、下架、删除、修改及查看展板详情等操作。
已上架展板需先下架才能
删除。
</span>
</div>
</div>
</div>
</div>
<div
class=
"table-content"
>
<div
class=
"table-content"
>
...
@@ -302,14 +302,14 @@ export default {
...
@@ -302,14 +302,14 @@ export default {
// des: `申请已提交,待审核…`,
// des: `申请已提交,待审核…`,
// };
// };
if
(
res
.
data
.
resultCode
===
"200"
){
if
(
res
.
data
.
resultCode
===
"200"
){
if
(
_isPublish
){
if
(
_isPublish
){
this
.
$message
({
type
:
"success"
,
message
:
"上架申请已提交,待审核!"
});
this
.
$message
({
type
:
"success"
,
message
:
"上架申请已提交,待审核!"
});
}
else
{
}
else
{
this
.
$message
({
type
:
"success"
,
message
:
"下架申请已提交,待审核!"
});
this
.
$message
({
type
:
"success"
,
message
:
"下架申请已提交,待审核!"
});
}
}
_this
.
onSearch
();
_this
.
Search
();
}
else
{
}
else
{
this
.
$message
({
type
:
"error"
,
message
:
res
.
data
.
message
});
this
.
$message
({
type
:
"error"
,
message
:
res
.
data
.
message
});
}
}
...
...
src/page/content/learn/content/add.vue
View file @
1fbff58e
...
@@ -318,6 +318,7 @@ export default {
...
@@ -318,6 +318,7 @@ export default {
this
.
multipleSelection
=
data
.
exhibitionBoardList
;
this
.
multipleSelection
=
data
.
exhibitionBoardList
;
this
.
$refs
.
uploadImg
.
showImg
(
this
.
ruleForm
.
cover
);
this
.
$refs
.
uploadImg
.
showImg
(
this
.
ruleForm
.
cover
);
this
.
getExhibitionBoardTable
();
this
.
getExhibitionBoardTable
();
this
.
getAssetTypeData
()
})
})
.
catch
(
function
(
err
)
{
.
catch
(
function
(
err
)
{
console
.
log
(
err
);
console
.
log
(
err
);
...
@@ -352,7 +353,7 @@ export default {
...
@@ -352,7 +353,7 @@ export default {
url
:
"exhibitionBoardCat/getList"
,
url
:
"exhibitionBoardCat/getList"
,
method
:
"post"
,
method
:
"post"
,
authType
:
this
.
backToken
authType
:
this
.
backToken
},
{
copyrightOwnerId
:
this
.
ruleForm
.
exhibitionBoardCatIdList
.
toString
}
)
},
this
.
$qs
.
stringify
({
copyrightOwnerId
:
this
.
ruleForm
.
copyrightOwnerIdList
.
toString
()})
)
.
then
(
res
=>
{
.
then
(
res
=>
{
let
data
=
res
.
data
.
data
;
let
data
=
res
.
data
.
data
;
vm
.
videoContentCat
=
data
;
vm
.
videoContentCat
=
data
;
...
@@ -497,7 +498,7 @@ export default {
...
@@ -497,7 +498,7 @@ export default {
}
else
{
}
else
{
this
.
checkedThing2
=
false
;
this
.
checkedThing2
=
false
;
}
}
this
.
getTableParam
()
//
this.getTableParam()
},
},
// 筛选展板备选清单选项条件
// 筛选展板备选清单选项条件
getTableParam
(){
getTableParam
(){
...
...
src/page/content/learn/project/index.vue
View file @
1fbff58e
...
@@ -80,7 +80,6 @@
...
@@ -80,7 +80,6 @@
</div>
</div>
<div
class=
"partyt-pagination"
>
<div
class=
"partyt-pagination"
>
<el-pagination
<el-pagination
background
@
current-change=
"handleCurrentChange"
@
current-change=
"handleCurrentChange"
:current-page=
"page.currentPage"
:current-page=
"page.currentPage"
:page-size=
"page.pageSize"
:page-size=
"page.pageSize"
...
...
src/page/content/video/content/add.vue
View file @
1fbff58e
...
@@ -238,8 +238,8 @@ export default {
...
@@ -238,8 +238,8 @@ export default {
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
.
getVideoContentCatData
()
this
.
getVideoContentCopyrightData
()
}
}
},
},
getVideoContentCat
(
data
){
getVideoContentCat
(
data
){
...
@@ -267,6 +267,8 @@ export default {
...
@@ -267,6 +267,8 @@ export default {
this
.
ruleForm
.
videoFileIdList
=
data
.
videoFileIdList
this
.
ruleForm
.
videoFileIdList
=
data
.
videoFileIdList
this
.
ruleForm
.
imageList
=
[{
url
:
data
.
thumbnail
}]
this
.
ruleForm
.
imageList
=
[{
url
:
data
.
thumbnail
}]
this
.
ruleForm
.
videoList
=
data
.
videoFileList
.
map
(
item
=>
{
return
{
id
:
item
.
id
,
name
:
item
.
fileName
,
url
:
item
.
fileUrl
}})
this
.
ruleForm
.
videoList
=
data
.
videoFileList
.
map
(
item
=>
{
return
{
id
:
item
.
id
,
name
:
item
.
fileName
,
url
:
item
.
fileUrl
}})
this
.
getVideoContentCatData
()
this
.
getVideoContentCopyrightData
()
}).
catch
(
function
(
err
)
{
}).
catch
(
function
(
err
)
{
console
.
log
(
err
);
console
.
log
(
err
);
});
});
...
@@ -393,15 +395,20 @@ export default {
...
@@ -393,15 +395,20 @@ export default {
// 获取视频分类列表
// 获取视频分类列表
getVideoContentCatData
()
{
getVideoContentCatData
()
{
let
vm
=
this
;
let
vm
=
this
;
vm
.
$https
({
if
(
this
.
ruleForm
.
videoContentCopyrightOwnerId
){
vm
.
$https
({
url
:
"videoContentCat/getList"
,
url
:
"videoContentCat/getList"
,
method
:
"get"
,
method
:
"get"
,
authType
:
this
.
backToken
authType
:
this
.
backToken
}).
then
(
res
=>
{
}
,{
copyrightOwnerId
:
this
.
ruleForm
.
videoContentCopyrightOwnerId
}
).
then
(
res
=>
{
this
.
videoContentCat
=
res
.
data
.
data
;
this
.
videoContentCat
=
res
.
data
.
data
;
}).
catch
(
function
(
err
)
{
}).
catch
(
function
(
err
)
{
console
.
log
(
err
);
console
.
log
(
err
);
});
});
}
else
{
this
.
$message
.
warning
(
"请先选择视频版权方!"
)
}
},
},
getSelectDep
(
videoContentCatIdList
)
{
getSelectDep
(
videoContentCatIdList
)
{
this
.
checkedThing
=
videoContentCatIdList
.
length
===
this
.
videoContentCat
.
length
;
this
.
checkedThing
=
videoContentCatIdList
.
length
===
this
.
videoContentCat
.
length
;
...
...
src/page/content/video/content/index.vue
View file @
1fbff58e
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
<el-form
:inline=
"true"
:model=
"form"
class=
"search-form"
onsubmit=
"return false;"
>
<el-form
:inline=
"true"
:model=
"form"
class=
"search-form"
onsubmit=
"return false;"
>
<el-form-item
label=
""
>
<el-form-item
label=
""
>
<el-input
<el-input
placeholder=
"请输入
版权方
名称"
placeholder=
"请输入
视频
名称"
v-model=
"form.name"
v-model=
"form.name
OrCode
"
@
keyup
.
enter
.
native=
"Search"
@
keyup
.
enter
.
native=
"Search"
clearable
clearable
></el-input>
></el-input>
...
@@ -104,7 +104,7 @@
...
@@ -104,7 +104,7 @@
<i
class=
"icon-table icon-del"
></i>
<i
class=
"icon-table icon-del"
></i>
</el-button>
</el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
content=
"详情"
placement=
"top"
>
<el-tooltip
content=
"
审核
详情"
placement=
"top"
>
<el-button
circle
@
click=
"openDetails(scope.row)"
>
<el-button
circle
@
click=
"openDetails(scope.row)"
>
<i
class=
"icon-table icon-detail"
></i>
<i
class=
"icon-table icon-detail"
></i>
</el-button>
</el-button>
...
@@ -389,7 +389,7 @@ export default {
...
@@ -389,7 +389,7 @@ export default {
let
searchObj
=
{
let
searchObj
=
{
_index
:
1
,
_index
:
1
,
_size
:
_this
.
page
.
pageSize
,
_size
:
_this
.
page
.
pageSize
,
name
:
_this
.
form
.
nam
e
,
name
OrCode
:
_this
.
form
.
nameOrCod
e
,
videoContentCatId
:
_this
.
form
.
videoContentCatId
,
videoContentCatId
:
_this
.
form
.
videoContentCatId
,
videoContentCopyrightOwnerId
:
_this
.
form
.
videoContentCopyrightOwnerId
videoContentCopyrightOwnerId
:
_this
.
form
.
videoContentCopyrightOwnerId
};
};
...
...
src/page/content/video/remit/index.vue
View file @
1fbff58e
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
</el-form>
</el-form>
<div
class=
"page-tip"
>
<div
class=
"page-tip"
>
<span
class=
"page-tip-title"
>
页面说明:
</span>
<span
class=
"page-tip-title"
>
页面说明:
</span>
<span
class=
"page-tips"
>
可使用版权方、视频分类、视频名称模糊搜索对需要汇出的视频进行快速检索,
选定视频后将视频汇出到指定U盘
。
</span>
<span
class=
"page-tips"
>
可使用版权方、视频分类、视频名称模糊搜索对需要汇出的视频进行快速检索,
下载至本地
。
</span>
</div>
</div>
</div>
</div>
<div
class=
"table-content"
>
<div
class=
"table-content"
>
...
...
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