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
8e8e832c
Commit
8e8e832c
authored
Jun 15, 2021
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
学习项目和学习内容改动
parent
53f8b625
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
2849 additions
and
2122 deletions
+2849
-2122
main.js
src/main.js
+81
-55
uploadImg.vue
src/page/content/components/uploadVue/uploadImg.vue
+8
-7
add.vue
src/page/content/display/content/add.vue
+495
-495
add.vue
src/page/content/learn/content/add.vue
+645
-638
details.vue
src/page/content/learn/content/details.vue
+293
-293
add.vue
src/page/content/learn/project/add.vue
+671
-0
index.vue
src/page/content/learn/project/index.vue
+401
-397
learn.js
src/router/learn.js
+255
-237
No files found.
src/main.js
View file @
8e8e832c
...
@@ -45,6 +45,32 @@ Vue.use(ElementUI);
...
@@ -45,6 +45,32 @@ Vue.use(ElementUI);
Vue
.
use
(
Vuex
);
Vue
.
use
(
Vuex
);
Vue
.
config
.
productionTip
=
false
Vue
.
config
.
productionTip
=
false
Vue
.
directive
(
"defaultSelect"
,
{
componentUpdated
(
el
,
bindings
)
{
const
[
defaultValues
]
=
bindings
.
value
const
dealStyle
=
function
(
tags
)
{
// 因为不可删除原有值,所以原有值的index是不会变的,也就是将前n个tag的close隐藏掉即可。n即已有值的长度defaultValues.length
tags
.
forEach
((
el
,
index
)
=>
{
if
(
index
<=
defaultValues
.
length
-
1
&&
!
[...
el
.
classList
].
includes
(
'select-tag-close-none'
))
{
el
.
classList
.
add
(
'none'
)
}
})
}
// 设置样式 隐藏close icon
const
tags
=
el
.
querySelectorAll
(
'.el-tag__close'
)
if
(
tags
.
length
===
0
)
{
// 初始化tags为空处理
setTimeout
(()
=>
{
const
tagTemp
=
el
.
querySelectorAll
(
'.el-tag__close'
)
dealStyle
(
tagTemp
)
})
}
else
{
dealStyle
(
tags
)
}
}
});
/* eslint-disable no-new */
/* eslint-disable no-new */
new
Vue
({
new
Vue
({
el
:
'#app'
,
el
:
'#app'
,
...
...
src/page/content/components/uploadVue/uploadImg.vue
View file @
8e8e832c
...
@@ -24,17 +24,18 @@
...
@@ -24,17 +24,18 @@
<
script
>
<
script
>
export
default
{
export
default
{
props
:{
//
props:{
fileList
:{
//
fileList:{
type
:
Array
,
// type:
Array,
default
:[]
// default: () => [],
},
// },
},
//
},
data
()
{
data
()
{
return
{
return
{
fileList
:
[],
dialogImageUrl
:
""
,
dialogImageUrl
:
""
,
dialogVisible
:
false
,
dialogVisible
:
false
,
imageUrl
:
""
imageUrl
:
""
,
};
};
},
},
computed
:
{
computed
:
{
...
...
src/page/content/display/content/add.vue
View file @
8e8e832c
...
@@ -311,7 +311,7 @@ export default {
...
@@ -311,7 +311,7 @@ export default {
// 新增
// 新增
submitForm
(
formName
)
{
submitForm
(
formName
)
{
console
.
log
(
this
.
ruleForm
)
// console.log(this.ruleForm)
this
.
$refs
[
formName
].
validate
(
valid
=>
{
this
.
$refs
[
formName
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
$https
(
this
.
$https
(
...
@@ -343,7 +343,7 @@ export default {
...
@@ -343,7 +343,7 @@ export default {
delete
params
.
audioList
delete
params
.
audioList
delete
params
.
imageList
delete
params
.
imageList
delete
params
.
qrcodeList
delete
params
.
qrcodeList
console
.
log
(
params
)
// console.log(params)
this
.
$https
(
this
.
$https
(
{
{
url
:
"exhibitionBoard/update"
,
url
:
"exhibitionBoard/update"
,
...
...
src/page/content/learn/content/add.vue
View file @
8e8e832c
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
<el-form-item
label=
"所属学习项目"
class=
"w50"
prop=
"learningProjectId"
>
<el-form-item
label=
"所属学习项目"
class=
"w50"
prop=
"learningProjectId"
>
<el-select
placeholder=
"请选所属学习项目"
v-model=
"ruleForm.learningProjectId"
>
<el-select
placeholder=
"请选所属学习项目"
v-model=
"ruleForm.learningProjectId"
@
change=
"getSelect(ruleForm.learningProjectId)"
>
<el-option
<el-option
v-for=
"item in learningProjectIdList"
v-for=
"item in learningProjectIdList"
:label=
"item.name"
:label=
"item.name"
...
@@ -220,6 +220,7 @@ export default {
...
@@ -220,6 +220,7 @@ export default {
name
:
""
,
//学习内容名称
name
:
""
,
//学习内容名称
applicableScope
:
"ALL_PLAT"
,
//适用范围
applicableScope
:
"ALL_PLAT"
,
//适用范围
cover
:
""
,
//宣传图
cover
:
""
,
//宣传图
projectId
:
''
,
learningProjectId
:
""
,
//所属学习项目
learningProjectId
:
""
,
//所属学习项目
exhibitionBoardCatIdList
:
[],
//展板类别
exhibitionBoardCatIdList
:
[],
//展板类别
copyrightOwnerIdList
:
[],
//版权方
copyrightOwnerIdList
:
[],
//版权方
...
@@ -291,16 +292,15 @@ export default {
...
@@ -291,16 +292,15 @@ export default {
closeDialog
()
{
closeDialog
()
{
this
.
dialogVisible
=
false
;
this
.
dialogVisible
=
false
;
},
},
init
()
{
async
init
()
{
this
.
getLearnProject
();
// this.getAssetTypeData();
this
.
getAssetTypeData2
();
if
(
this
.
$route
.
query
.
type
===
"Update"
)
{
if
(
this
.
$route
.
query
.
type
===
"Update"
)
{
this
.
getInfo
(
this
.
$route
.
query
.
id
);
await
this
.
getInfo
(
this
.
$route
.
query
.
id
);
}
}
await
this
.
getLearnProject
();
// this.getAssetTypeData();
},
},
// 获取版权方详情
// 获取版权方详情
getInfo
(
id
)
{
async
getInfo
(
id
)
{
let
vm
=
this
;
let
vm
=
this
;
vm
.
$https
({
vm
.
$https
({
url
:
"learningContent/get/"
+
id
,
url
:
"learningContent/get/"
+
id
,
...
@@ -310,6 +310,7 @@ export default {
...
@@ -310,6 +310,7 @@ export default {
.
then
(
res
=>
{
.
then
(
res
=>
{
let
data
=
res
.
data
.
data
;
let
data
=
res
.
data
.
data
;
this
.
ruleForm
=
data
;
this
.
ruleForm
=
data
;
// console.log(11111,this.ruleForm.learningProjectId)
this
.
ruleForm
=
{
this
.
ruleForm
=
{
name
:
data
.
name
,
name
:
data
.
name
,
applicableScope
:
data
.
applicableScope
,
applicableScope
:
data
.
applicableScope
,
...
@@ -318,13 +319,14 @@ export default {
...
@@ -318,13 +319,14 @@ export default {
learningProjectId
:
data
.
learningProjectId
,
learningProjectId
:
data
.
learningProjectId
,
exhibitionBoardCatIdList
:
data
.
exhibitionBoardCatIdList
,
exhibitionBoardCatIdList
:
data
.
exhibitionBoardCatIdList
,
id
:
data
.
id
,
id
:
data
.
id
,
exhibitionBoardIdList
:
data
.
exhibitionBoardIdList
exhibitionBoardIdList
:
data
.
exhibitionBoardIdList
,
};
};
// this.tableData = data.exhibitionBoardList;
// this.tableData = data.exhibitionBoardList;
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
()
this
.
getAssetTypeData
()
this
.
getAssetTypeData2
();
})
})
.
catch
(
function
(
err
)
{
.
catch
(
function
(
err
)
{
console
.
log
(
err
);
console
.
log
(
err
);
...
@@ -357,10 +359,10 @@ export default {
...
@@ -357,10 +359,10 @@ export default {
let
vm
=
this
;
let
vm
=
this
;
if
(
this
.
ruleForm
.
copyrightOwnerIdList
.
length
>
0
){
if
(
this
.
ruleForm
.
copyrightOwnerIdList
.
length
>
0
){
vm
.
$https
({
vm
.
$https
({
url
:
"exhibitionBoardCat/getList
"
,
url
:
"exhibitionBoardCat/getList
ByProjectAndCopyright"
,
method
:
"post"
,
method
:
"post"
,
authType
:
this
.
backToken
authType
:
this
.
backToken
},
this
.
$qs
.
stringify
({
copyright
OwnerId
:
this
.
ruleForm
.
copyrightOwnerIdList
.
toString
()}))
},
this
.
$qs
.
stringify
({
copyright
Ids
:
this
.
ruleForm
.
copyrightOwnerIdList
.
toString
(),
learningProjectId
:
this
.
ruleForm
.
learningProjectId
}))
.
then
(
res
=>
{
.
then
(
res
=>
{
let
data
=
res
.
data
.
data
;
let
data
=
res
.
data
.
data
;
vm
.
videoContentCat
=
data
;
vm
.
videoContentCat
=
data
;
...
@@ -373,20 +375,24 @@ export default {
...
@@ -373,20 +375,24 @@ export default {
}
}
},
},
getSelect
()
{
this
.
getAssetTypeData2
()
},
// 获取版权方列表
// 获取版权方列表
getAssetTypeData2
()
{
getAssetTypeData2
()
{
let
vm
=
this
;
let
vm
=
this
;
// console.log(this.ruleForm)
vm
.
$https
(
vm
.
$https
(
{
{
url
:
"copyrightOwner/getList
"
,
url
:
"copyrightOwner/getList
ByLearningProjectId"
,
method
:
"get"
,
method
:
"get"
,
authType
:
this
.
backToken
authType
:
this
.
backToken
},
},
{
copyrightOwnerType
:
"EXHIBITION_BOARD"
}
{
copyrightOwnerType
:
"EXHIBITION_BOARD"
,
learningProjectId
:
vm
.
ruleForm
.
learningProjectId
}
)
)
.
then
(
res
=>
{
.
then
(
res
=>
{
let
data
=
res
.
data
.
data
;
let
data
=
res
.
data
.
data
;
console
.
log
(
data
,
"dhwdhwid"
)
// console.log(data,"dhwdhwid")
vm
.
assetType2
=
data
;
vm
.
assetType2
=
data
;
})
})
.
catch
(
function
(
err
)
{
.
catch
(
function
(
err
)
{
...
@@ -422,7 +428,7 @@ export default {
...
@@ -422,7 +428,7 @@ export default {
)
)
.
then
(
res
=>
{
.
then
(
res
=>
{
let
data
=
res
.
data
.
data
;
let
data
=
res
.
data
.
data
;
console
.
log
(
data
);
// console.log(data);
})
})
.
catch
(
function
(
err
)
{
.
catch
(
function
(
err
)
{
console
.
log
(
err
);
console
.
log
(
err
);
...
@@ -439,7 +445,7 @@ export default {
...
@@ -439,7 +445,7 @@ export default {
// 新增
// 新增
submitForm
(
formName
)
{
submitForm
(
formName
)
{
this
.
$refs
[
formName
].
validate
(
valid
=>
{
this
.
$refs
[
formName
].
validate
(
valid
=>
{
console
.
log
(
this
.
ruleForm
);
// console.log(this.ruleForm);
if
(
valid
)
{
if
(
valid
)
{
this
.
$https
(
this
.
$https
(
{
{
...
@@ -535,7 +541,8 @@ export default {
...
@@ -535,7 +541,8 @@ export default {
// debugger
// debugger
const
param
=
{
const
param
=
{
boardCopyrightOwnerIdList
:
this
.
ruleForm
.
copyrightOwnerIdList
.
toString
(),
boardCopyrightOwnerIdList
:
this
.
ruleForm
.
copyrightOwnerIdList
.
toString
(),
exhibitionBoardCatIdList
:
this
.
ruleForm
.
exhibitionBoardCatIdList
.
toString
()
exhibitionBoardCatIdList
:
this
.
ruleForm
.
exhibitionBoardCatIdList
.
toString
(),
learningProjectId
:
this
.
ruleForm
.
learningProjectId
};
};
if
((
param
.
boardCopyrightOwnerIdList
.
length
>
0
)
&&
(
param
.
exhibitionBoardCatIdList
.
length
>
0
)){
if
((
param
.
boardCopyrightOwnerIdList
.
length
>
0
)
&&
(
param
.
exhibitionBoardCatIdList
.
length
>
0
)){
this
.
getTableData
(
param
);
this
.
getTableData
(
param
);
...
@@ -549,7 +556,7 @@ export default {
...
@@ -549,7 +556,7 @@ export default {
let
vm
=
this
;
let
vm
=
this
;
vm
.
$https
(
vm
.
$https
(
{
{
url
:
"exhibitionBoard/getList
"
,
url
:
"exhibitionBoard/getList
ByLearningId"
,
method
:
"post"
,
method
:
"post"
,
authType
:
this
.
backToken
authType
:
this
.
backToken
},
},
...
...
src/page/content/learn/content/details.vue
View file @
8e8e832c
...
@@ -181,7 +181,7 @@ export default {
...
@@ -181,7 +181,7 @@ export default {
.
then
(
res
=>
{
.
then
(
res
=>
{
let
data
=
res
.
data
.
data
;
let
data
=
res
.
data
.
data
;
this
.
ruleForm
=
data
;
this
.
ruleForm
=
data
;
console
.
log
(
this
.
ruleForm
)
// console.log(this.ruleForm)
// this.ruleForm = {
// this.ruleForm = {
// name :data.name,
// name :data.name,
// applicableScope:data.applicableScope,
// applicableScope:data.applicableScope,
...
...
src/page/content/learn/project/add.vue
0 → 100644
View file @
8e8e832c
This diff is collapsed.
Click to expand it.
src/page/content/learn/project/index.vue
View file @
8e8e832c
...
@@ -249,10 +249,10 @@ export default {
...
@@ -249,10 +249,10 @@ export default {
},
},
// 添加
// 添加
addPermis
()
{
addPermis
()
{
// this.$router.push({ path: "videoContentAdd", query: { type: "add" } });
this
.
$router
.
push
({
path
:
"learnProjectAdd"
,
query
:
{
type
:
"add"
}
});
$
(
".el-dialog__title"
).
html
(
"新建"
);
// $(".el-dialog__title").html("新建");
this
.
FormVisible1
=
true
;
// this.FormVisible1 = true;
this
.
type
=
true
;
// this.type = true;
},
},
handleSubmit
(
type
)
{
handleSubmit
(
type
)
{
let
httpUrl
,
httpMethod
,
requestParams
;
let
httpUrl
,
httpMethod
,
requestParams
;
...
@@ -320,11 +320,15 @@ export default {
...
@@ -320,11 +320,15 @@ export default {
},
},
// 编辑弹框
// 编辑弹框
openEdit
(
row
)
{
openEdit
(
row
)
{
this
.
type
=
false
;
this
.
$router
.
push
({
$
(
".el-dialog__title"
).
html
(
"编辑"
);
path
:
"learnProjectUpdate"
,
let
_this
=
this
;
query
:
{
type
:
"Update"
,
id
:
row
.
id
},
_this
.
FormVisible1
=
true
;
});
this
.
getAssetTypeInfo
(
row
.
id
);
// this.type = false;
// $(".el-dialog__title").html("编辑");
// let _this = this;
// _this.FormVisible1 = true;
// this.getAssetTypeInfo(row.id);
},
},
// 获取视频分类详情
// 获取视频分类详情
getAssetTypeInfo
(
id
)
{
getAssetTypeInfo
(
id
)
{
...
...
src/router/learn.js
View file @
8e8e832c
...
@@ -178,6 +178,24 @@ export let learnRoute = [
...
@@ -178,6 +178,24 @@ export let learnRoute = [
title
:
'新建学习内容'
,
title
:
'新建学习内容'
,
}
}
},
},
{
path
:
'/learnProjectAdd'
,
name
:
'新建学习项目'
,
component
:
()
=>
import
(
'@/page/content/learn/project/add'
),
meta
:
{
showBreadcrumb
:
true
,
title
:
'新建学习项目'
,
}
},
{
path
:
'/learnProjectUpdate'
,
name
:
'修改学习项目'
,
component
:
()
=>
import
(
'@/page/content/learn/project/add'
),
meta
:
{
showBreadcrumb
:
true
,
title
:
'修改学习项目'
,
}
},
{
{
path
:
'/learnContentUpdate'
,
path
:
'/learnContentUpdate'
,
name
:
'修改学习内容'
,
name
:
'修改学习内容'
,
...
...
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