From 94d88e4df729608700da376f710bf81b42013f6d Mon Sep 17 00:00:00 2001 From: xuhuajiao <13476289682@163.com> Date: Fri, 11 Mar 2022 14:37:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=B3=E6=97=B6/=E5=AE=9A=E6=97=B6=E5=8F=91?= =?UTF-8?q?=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/styles/adminIndex.scss | 2 +- src/router/routers.js | 8 +- src/views/dashboard/ThemeGallery.vue | 11 +- src/views/device/deviceConfig.vue | 2 +- src/views/immediateRelease/index.vue | 433 +++++++++++++++++++++++++-- 5 files changed, 420 insertions(+), 36 deletions(-) diff --git a/src/assets/styles/adminIndex.scss b/src/assets/styles/adminIndex.scss index cf8b340..d35f2a0 100644 --- a/src/assets/styles/adminIndex.scss +++ b/src/assets/styles/adminIndex.scss @@ -151,7 +151,7 @@ } .el-input__inner { - width: 336px; + // width: 336px; height: 40px; line-height: 40px; } diff --git a/src/router/routers.js b/src/router/routers.js index ae103a6..a1f5ae0 100644 --- a/src/router/routers.js +++ b/src/router/routers.js @@ -165,12 +165,8 @@ export const constantRouterMap = [ } }, { - path: '/inRelease', - component: () => import('@/views/immediateRelease/index'), - meta: { - title: '即时发布', - icon: 'edit' - } + path: '/release', + component: () => import('@/views/immediateRelease/index') }] } // { diff --git a/src/views/dashboard/ThemeGallery.vue b/src/views/dashboard/ThemeGallery.vue index 0a5b205..c256eee 100644 --- a/src/views/dashboard/ThemeGallery.vue +++ b/src/views/dashboard/ThemeGallery.vue @@ -20,8 +20,8 @@ 书法
- 即时发布 - 定时发布 + 即时发布 + 定时发布
@@ -39,6 +39,13 @@ export default { methods: { handleClick(tab, event) { console.log(tab, event) + }, + publishHandle(index) { + this.$router.push( + { + path: '/release', query: { tag: index } + } + ) } } } diff --git a/src/views/device/deviceConfig.vue b/src/views/device/deviceConfig.vue index 4b71424..34aba5d 100644 --- a/src/views/device/deviceConfig.vue +++ b/src/views/device/deviceConfig.vue @@ -88,7 +88,7 @@ - + - 创建即时发布 + 创建{{ publishType === 0 ? "即时发布" : "定时发布" }}
名称
@@ -36,6 +36,13 @@ label-width="100px" > +
+ + + + + + + + + + + + + + + + + @@ -63,7 +103,7 @@
内容总时长:0.00s
-
+
+ +
+ +
+ 素材库 + 主题库 +
+ +
+
    +
  • {{ item.name }}{{ item.num }}
  • +
+
+
+ +
+
+ {{ item.type }} + 03:00 +
+
{{ item.name }}
+
+
+ +
+
+ +
+
+
+
+
+ +
+
    +
  • {{ item.name }}
  • +
+
+ +
+
+
+
+
+
+ 内容总时长:3m15s +
{{ index+1 }}
+
+
+

{{ item.name }}

+ {{ item.type }} + {{ item.size }} +
+
+
+ 展示时长 + + +
+
+ 切换动效 + + 无动画 + 动画1 + 动画2 + +
+
+
内容时长:{{ item.time }}
+
保存
@@ -191,9 +329,11 @@ import draggable from 'vuedraggable' import CRUD, { presenter, header, form, crud } from '@crud/crud' const defaultForm = { name: '', - date: [], + date: null, isTop: null, - deviceSelect: '' + deviceSelect: '', + timePeriod: null, + onweek: [] } export default { name: 'ImmediateRelease', @@ -210,8 +350,14 @@ export default { mixins: [presenter(), header(), form(defaultForm), crud()], data() { return { + publishType: 0, + time: 15, + animation: null, selectDeviceVisible: false, listEditVisible: false, + selectContVisible: false, + activeIndex: 0, + activeItemIndex: 0, deviceAllTags: ['GCXR1', 'GCXR2', 'GCXR3', 'GCXR4', 'GCXR5'], deviceTags: [], listData: [ @@ -219,40 +365,97 @@ export default { id: '1', name: '1', type: 'JPG', + size: '12kb', coverImg: require('@/assets/images/background.jpg'), time: '' }, { id: '2', name: '2', - type: 'vedio', + type: 'VEDIO', + size: '12kb', coverImg: require('@/assets/images/background.jpg'), time: '03:00' }, { id: '3', name: '3', - type: 'vedio', - coverImg: require('@/assets/images/background.jpg'), - time: '03:00' - }, - { - id: '4', - name: '4', - type: 'vedio', - coverImg: require('@/assets/images/background.jpg'), - time: '03:00' - }, - { - id: '5', - name: '5', type: 'audio', + size: '12kb', coverImg: '', time: '01:20' } ], contentIds: [], - selectedData: [] + selectedData: [], + materialTabItem: [ + { + key: 1, + name: '全部', + num: '3' + }, + { + key: 2, + name: '图片', + num: '1' + }, + { + key: 3, + name: '视频', + num: '1' + }, + { + key: 4, + name: '音频', + num: '1' + } + ], + tabItem: [ + { + key: 1, + name: '为你推荐' + }, + { + key: 2, + name: '人工智能' + }, + { + key: 3, + name: '党建文化' + }, + { + key: 4, + name: '节日节气' + }, + { + key: 5, + name: '艺术鉴赏' + }, + { + key: 6, + name: '名人介绍' + }, + { + key: 7, + name: '摄影' + }, + { + key: 8, + name: '书法' + } + ] + } + }, + + computed: { + changePlaceholder() { + return this.publishType === 0 ? '即时发布 2022-01-01' : '定时发布 2022-01-01' + } + }, + mounted() { + console.log(this.$route.query.tag) + if (this.$route.query.tag) { + this.publishType = this.$route.query.tag } }, methods: { @@ -296,11 +499,23 @@ export default { }, clearDevice() { this.deviceTags = [] + }, + tabAll(index) { + this.activeIndex = index + this.activeItemIndex = 0 + }, + tab(index) { + this.activeItemIndex = index + }, + clearCheckbox() { + if (this.form.timePeriod === '每天') { + this.form.onweek = [] + } } } } -