20 changed files with 271 additions and 39 deletions
-
2package.json
-
1src/assets/icons/iconfont.js
-
BINsrc/assets/images/n-zs.png
-
6src/assets/styles/iconfont.css
-
3src/assets/styles/index.scss
-
1src/assets/styles/sidebar.scss
-
12src/layout/components/AppMain.vue
-
2src/layout/components/Navbar.vue
-
38src/layout/components/TagsView/index.vue
-
11src/layout/index.vue
-
2src/main.js
-
18src/router/routers.js
-
2src/settings.js
-
8src/views/dashboard/AgencyData.vue
-
9src/views/dashboard/DeviceData.vue
-
8src/views/dashboard/PublishProcess.vue
-
20src/views/login.vue
-
72src/views/materialContent/index.vue
-
93src/views/materialContent/materialList/index.vue
-
2src/views/system/user/index.vue
1
src/assets/icons/iconfont.js
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
After Width: 68 | Height: 24 | Size: 2.2 KiB |
@ -0,0 +1,72 @@ |
|||||
|
<template> |
||||
|
<div class="app-container"> |
||||
|
<div class="content_warp"> |
||||
|
<el-tabs v-model="activeName" @tab-click="handleClick"> |
||||
|
<el-tab-pane label="全部" name="first"> |
||||
|
<MaterialList ref="MaterialList" /> |
||||
|
</el-tab-pane> |
||||
|
<el-tab-pane name="second"> |
||||
|
<span slot="label"> |
||||
|
图片 |
||||
|
<i class="emrgencyCount">1</i> |
||||
|
</span> |
||||
|
图片 |
||||
|
</el-tab-pane> |
||||
|
<el-tab-pane name="third"> |
||||
|
<span slot="label"> |
||||
|
视频 |
||||
|
<i class="emrgencyCount">1</i> |
||||
|
</span> |
||||
|
ship |
||||
|
</el-tab-pane> |
||||
|
<el-tab-pane name="fourth"> |
||||
|
<span slot="label"> |
||||
|
音频 |
||||
|
<i class="emrgencyCount">1</i> |
||||
|
</span> |
||||
|
yinp |
||||
|
</el-tab-pane> |
||||
|
</el-tabs> |
||||
|
</div> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import MaterialList from './materialList/index' |
||||
|
export default { |
||||
|
name: 'MaterialContent', |
||||
|
components: { MaterialList }, |
||||
|
data() { |
||||
|
return { |
||||
|
activeName: 'first' |
||||
|
} |
||||
|
}, |
||||
|
methods: { |
||||
|
handleClick(tab, event) { |
||||
|
console.log(tab, event) |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style lang="scss" scoped> |
||||
|
.app-container { |
||||
|
padding: 6px 24px 20px 24px; |
||||
|
.content_warp { |
||||
|
i { |
||||
|
font-style: normal; |
||||
|
color: #999; |
||||
|
} |
||||
|
::v-deep .el-tabs__item { |
||||
|
height: 48px; |
||||
|
line-height: 48px; |
||||
|
} |
||||
|
::v-deep .el-tabs__active-bar { |
||||
|
background-color: transparent !important; |
||||
|
} |
||||
|
::v-deep .el-tabs__nav-wrap::after { |
||||
|
height: 1px; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
</style> |
@ -0,0 +1,93 @@ |
|||||
|
<template> |
||||
|
<div class="material_content"> |
||||
|
<div class="material_item cont_upload"> |
||||
|
<el-button class="cont_upload_btn" round type="primary">上传</el-button> |
||||
|
<el-button class="mkdir_btn" round type="primary">创建文件夹</el-button> |
||||
|
</div> |
||||
|
<div class="material_item folder"> |
||||
|
<div class="icon_bg"> |
||||
|
<svg class="font-icon icon" aria-hidden="true"> |
||||
|
<use xlink:href="#icon-wenjianjia" /> |
||||
|
</svg> |
||||
|
</div> |
||||
|
<p class="file_name">文件夹</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
export default { |
||||
|
name: 'MaterialList', |
||||
|
components: {}, |
||||
|
data() { |
||||
|
return { |
||||
|
|
||||
|
} |
||||
|
}, |
||||
|
methods: { |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style lang="scss" scoped> |
||||
|
.material_content { |
||||
|
display: flex; |
||||
|
|
||||
|
.material_item { |
||||
|
width: 174px; |
||||
|
height: 182px; |
||||
|
border-radius: 4px; |
||||
|
margin-right: 24px; |
||||
|
} |
||||
|
.cont_upload { |
||||
|
display: flex; |
||||
|
flex-wrap: wrap; |
||||
|
justify-content: center; |
||||
|
align-content: center; |
||||
|
border: 1px dashed #dcdde3; |
||||
|
background: #f2f7ff; |
||||
|
.el-button { |
||||
|
display: block; |
||||
|
width: 114px; |
||||
|
height: 34px; |
||||
|
padding: 0; |
||||
|
font-size: 14px; |
||||
|
border: none; |
||||
|
} |
||||
|
.cont_upload_btn { |
||||
|
background: linear-gradient(to right, #fc8c6f, #fa544e) !important; |
||||
|
} |
||||
|
.mkdir_btn { |
||||
|
margin-left: 0; |
||||
|
margin-top: 16px; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
.folder { |
||||
|
border: 1px solid #dcdde3; |
||||
|
.icon_bg { |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
justify-content: center; |
||||
|
height: 148px; |
||||
|
background: #fff5dd; |
||||
|
.icon { |
||||
|
width: 104px; |
||||
|
height: 89px; |
||||
|
} |
||||
|
} |
||||
|
.file_name { |
||||
|
padding: 0 10px; |
||||
|
font-size: 14px; |
||||
|
color: #333; |
||||
|
height: 32px; |
||||
|
line-height: 32px; |
||||
|
display: -webkit-box; |
||||
|
-webkit-box-orient: vertical; |
||||
|
-webkit-line-clamp: 1; |
||||
|
overflow: hidden; |
||||
|
text-overflow: ellipsis; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
</style> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue