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
Hide 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
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import
Vue
from
'vue'
import
ElementUI
from
'element-ui'
import
'element-ui/lib/theme-chalk/index.css'
import
App
from
'./App'
import
router
from
'./router'
import
$
from
'jquery'
import
moment
from
'moment'
import
Vuex
from
'vuex'
import
qs
from
'qs'
import
axios
from
'axios'
import
{
backToken
}
from
'./config/env'
import
http
from
'./config/httpServer'
import
echarts
from
'echarts'
import
Video
from
'video.js'
import
'video.js/dist/video-js.css'
Vue
.
prototype
.
$echarts
=
echarts
// 引入JsPdf
import
exportToPdf
from
"@/utils/exportToPdf"
Vue
.
use
(
exportToPdf
)
Vue
.
filter
(
'dateformat'
,
function
(
dataStr
,
pattern
=
'YYYY-MM-DD HH:mm:ss'
)
{
return
moment
(
dataStr
).
format
(
pattern
)
})
Vue
.
prototype
.
$querystring
=
qs
//其他的代码用到比较多 就新增一个可以了
Vue
.
prototype
.
$qs
=
qs
Vue
.
prototype
.
$http
=
axios
Vue
.
prototype
.
$https
=
http
Vue
.
prototype
.
backToken
=
backToken
Vue
.
prototype
.
moment
=
moment
Vue
.
use
(
ElementUI
);
Vue
.
use
(
Vuex
);
Vue
.
config
.
productionTip
=
false
/* eslint-disable no-new */
new
Vue
({
el
:
'#app'
,
router
,
components
:
{
App
},
template
:
'<App/>'
})
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import
Vue
from
'vue'
import
ElementUI
from
'element-ui'
import
'element-ui/lib/theme-chalk/index.css'
import
App
from
'./App'
import
router
from
'./router'
import
$
from
'jquery'
import
moment
from
'moment'
import
Vuex
from
'vuex'
import
qs
from
'qs'
import
axios
from
'axios'
import
{
backToken
}
from
'./config/env'
import
http
from
'./config/httpServer'
import
echarts
from
'echarts'
import
Video
from
'video.js'
import
'video.js/dist/video-js.css'
Vue
.
prototype
.
$echarts
=
echarts
// 引入JsPdf
import
exportToPdf
from
"@/utils/exportToPdf"
Vue
.
use
(
exportToPdf
)
Vue
.
filter
(
'dateformat'
,
function
(
dataStr
,
pattern
=
'YYYY-MM-DD HH:mm:ss'
)
{
return
moment
(
dataStr
).
format
(
pattern
)
})
Vue
.
prototype
.
$querystring
=
qs
//其他的代码用到比较多 就新增一个可以了
Vue
.
prototype
.
$qs
=
qs
Vue
.
prototype
.
$http
=
axios
Vue
.
prototype
.
$https
=
http
Vue
.
prototype
.
backToken
=
backToken
Vue
.
prototype
.
moment
=
moment
Vue
.
use
(
ElementUI
);
Vue
.
use
(
Vuex
);
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 */
new
Vue
({
el
:
'#app'
,
router
,
components
:
{
App
},
template
:
'<App/>'
})
src/page/content/components/uploadVue/uploadImg.vue
View file @
8e8e832c
...
...
@@ -24,17 +24,18 @@
<
script
>
export
default
{
props
:{
fileList
:{
type
:
Array
,
default
:[]
},
},
//
props:{
//
fileList:{
// type:
Array,
// default: () => [],
// },
//
},
data
()
{
return
{
fileList
:
[],
dialogImageUrl
:
""
,
dialogVisible
:
false
,
imageUrl
:
""
imageUrl
:
""
,
};
},
computed
:
{
...
...
src/page/content/display/content/add.vue
View file @
8e8e832c
This diff is collapsed.
Click to expand it.
src/page/content/learn/content/add.vue
View file @
8e8e832c
This diff is collapsed.
Click to expand it.
src/page/content/learn/content/details.vue
View file @
8e8e832c
This diff is collapsed.
Click to expand it.
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
This diff is collapsed.
Click to expand it.
src/router/learn.js
View file @
8e8e832c
This diff is collapsed.
Click to expand it.
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