Merge remote-tracking branch 'origin/dev' into dev
@@ -3,12 +3,12 @@
|
||||
<div class="header">
|
||||
<img src="./img/bigHorn-bg.png" alt="">
|
||||
<div class="content">
|
||||
<div class="item" @click="linkTo('./onlineList')">
|
||||
<div class="item" @click="linkTo('./AppEquipment/AppEquipment')">
|
||||
<img src="./img/bigHorn-icon1@2x.png" alt="">
|
||||
<div>在线设备</div>
|
||||
<div>广播设备</div>
|
||||
<!-- <h2>1</h2> -->
|
||||
</div>
|
||||
<div class="item" @click="linkTo('./playList')">
|
||||
<div class="item" @click="linkTo('./AppPlayList/AppPlayList')">
|
||||
<img src="./img/bigHorn-icon2@2x.png" alt="">
|
||||
<div>播放记录</div>
|
||||
</div>
|
||||
@@ -30,8 +30,8 @@
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: "AppBroadcast2",
|
||||
appName: "云广播2",
|
||||
name: "AppBroadcast",
|
||||
appName: "云广播",
|
||||
data() {
|
||||
return {
|
||||
bannerList: [
|
||||
@@ -42,22 +42,23 @@ export default {
|
||||
path: './addPlay',
|
||||
bgClass: 'bg-67A3F4'
|
||||
},
|
||||
// {
|
||||
// title: '实时喊话',
|
||||
// text: '实时在线喊话,远程广播通知',
|
||||
// imgUrl: require('./img/bigHorn-icon22@2x.png'),
|
||||
// bgClass: 'bg-4ED5BB'
|
||||
// },
|
||||
{
|
||||
title: '实时喊话',
|
||||
path: './LiveBroadcast',
|
||||
text: '实时在线喊话,远程广播通知',
|
||||
imgUrl: require('./img/bigHorn-icon22@2x.png'),
|
||||
bgClass: 'bg-4ED5BB'
|
||||
},
|
||||
{
|
||||
title: '音频录制',
|
||||
text: '音频文件的录制',
|
||||
path: '/apps/AppResourcesManage/addPlay?type=1',
|
||||
path: './AppResourcesManage/addMedia?type=1',
|
||||
imgUrl: require('./img/bigHorn-icon33@2x.png'),
|
||||
bgClass: 'bg-E5B565'
|
||||
},
|
||||
{
|
||||
title: '媒资管理',
|
||||
path: '/apps/AppResourcesManage/AppResourcesManage',
|
||||
path: './AppResourcesManage/AppResourcesManage',
|
||||
text: '支持音频文件和录音内容添加',
|
||||
imgUrl: require('./img/bigHorn-icon44@2x.png'),
|
||||
bgClass: 'bg-F19661'
|
||||
|
||||
|
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 979 B After Width: | Height: | Size: 979 B |
|
Before Width: | Height: | Size: 795 B After Width: | Height: | Size: 795 B |
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 269 B After Width: | Height: | Size: 269 B |
|
Before Width: | Height: | Size: 269 B After Width: | Height: | Size: 269 B |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 531 B After Width: | Height: | Size: 531 B |
|
Before Width: | Height: | Size: 577 B After Width: | Height: | Size: 577 B |
@@ -3,15 +3,17 @@
|
||||
<div class="content">
|
||||
<div class="item">
|
||||
<div class="label">播发内容</div>
|
||||
<div class="value" @click="nameClick">
|
||||
<div class="value" @click="toSelectMedia">
|
||||
<span :class="formData.mediaName == '请选择' ? 'color-999' : ''">{{ formData.mediaName }}</span>
|
||||
<img src="./img/right-icon.png" alt="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="label">播放设备</div>
|
||||
<div class="value" @click="selectClick('showEquipment', equipmentList)">
|
||||
<span :class="formData.serialName == '请选择' ? 'color-999' : ''">{{ formData.serialName }}</span>
|
||||
<div class="value" @click="toSelectEquipment">
|
||||
<!-- @click="selectClick('showEquipment', equipmentList)" -->
|
||||
<span v-if="equipmentList.length">已选择<span style="color:#4E8EEE;">{{equipmentList.length}}</span>台设备</span>
|
||||
<span v-else style="color:#999;">请选择</span>
|
||||
<img src="./img/right-icon.png" alt="">
|
||||
</div>
|
||||
</div>
|
||||
@@ -25,10 +27,12 @@
|
||||
</div>
|
||||
<div class="radio-content">
|
||||
<div class="title">播放方式</div>
|
||||
<div class="item mar-r50" :class="formData.taskType == 0 ? 'active' : ''" @click="formData.taskType = 0">立即播放<img
|
||||
<div class="flex">
|
||||
<div class="item mar-r50" :class="formData.taskType == 0 ? 'active' : ''" @click="formData.taskType = 0">立即播放<img
|
||||
src="./img/bigHorn-xz.png" alt=""></div>
|
||||
<div class="item" :class="formData.taskType == 1 ? 'active' : ''" @click="formData.taskType = 1"><img
|
||||
src="./img/bigHorn-xz.png" alt="">定时播放
|
||||
<div class="item" :class="formData.taskType == 1 ? 'active' : ''" @click="formData.taskType = 1"><img
|
||||
src="./img/bigHorn-xz.png" alt="">定时播放
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content" v-if="formData.taskType != 0">
|
||||
@@ -50,8 +54,7 @@
|
||||
<div class="item">
|
||||
<div class="label">播放天数</div>
|
||||
<div class="value">
|
||||
<u-input type="text" placeholder="请输入" height="18" input-align="right" v-model="formData.broadcastDay"
|
||||
maxlength="4"/>
|
||||
<u-input type="text" placeholder="请输入" height="18" input-align="right" v-model="formData.broadcastDay" maxlength="4"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -105,7 +108,7 @@ export default {
|
||||
mediaId: '',
|
||||
mediaName: '请选择',
|
||||
serialNo: '',
|
||||
serialName: '请选择',
|
||||
serialName: '',
|
||||
messageLevel: '',
|
||||
messageLevelName: '请选择',
|
||||
taskType: '0',
|
||||
@@ -166,22 +169,34 @@ export default {
|
||||
minute: false,
|
||||
second: false
|
||||
},
|
||||
equipmentList: []
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
uni.$on('choose', e => {
|
||||
onLoad(option) {
|
||||
uni.$on('chooseMedia', e => {
|
||||
console.log(e)
|
||||
this.formData.mediaId = e.mediaId
|
||||
this.formData.mediaName = e.mediaName
|
||||
})
|
||||
uni.$on('chooseEquipment', e => {
|
||||
console.log(e)
|
||||
this.equipmentList = e.equipmentList
|
||||
})
|
||||
if(option.mediaId) {
|
||||
this.formData.mediaName = option.mediaName
|
||||
this.formData.mediaId = option.mediaId
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
document.title = '音频播放'
|
||||
},
|
||||
|
||||
methods: {
|
||||
nameClick() {
|
||||
uni.navigateTo({url: '../AppResourcesManage/AppResourcesManage?isChoose=1'})
|
||||
toSelectMedia() {
|
||||
uni.navigateTo({url: `./selectMedia?mediaId=${this.formData.mediaId}`})
|
||||
},
|
||||
toSelectEquipment() {
|
||||
uni.navigateTo({url: `./selectEquipment`})
|
||||
},
|
||||
addConfirm() {
|
||||
var cyclingDateList = []
|
||||
@@ -194,9 +209,10 @@ export default {
|
||||
if (!this.formData.mediaId) {
|
||||
return this.$u.toast('请选择播发内容')
|
||||
}
|
||||
if (!this.formData.serialNo) {
|
||||
if (!this.equipmentList.length) {
|
||||
return this.$u.toast('请选择播放设备')
|
||||
}
|
||||
|
||||
if (!this.formData.messageLevel) {
|
||||
return this.$u.toast('播发级别')
|
||||
}
|
||||
@@ -223,6 +239,11 @@ export default {
|
||||
if (this.formData.taskType != 0 && this.formData.cyclingType == 2) {
|
||||
this.formData.cyclingDate = cyclingDateList.join(',')
|
||||
}
|
||||
var serialNoList = []
|
||||
this.equipmentList.map(item => {
|
||||
serialNoList.push(item.serialNo)
|
||||
})
|
||||
this.formData.serialNo = serialNoList.join(',')
|
||||
this.formData.coverageType = '4'
|
||||
this.$http.post(`/app/appzyvideobroadcast/play`, {...this.formData,}).then((res) => {
|
||||
if (res.code == 0) {
|
||||
@@ -289,38 +310,6 @@ export default {
|
||||
this[showType] = true
|
||||
this.selectList = list
|
||||
},
|
||||
getMediaList() {
|
||||
this.$http.post(`/app/appdlbresource/list?current=1&size=10000`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.mediaList = []
|
||||
if (res.data && res.data.records.length) {
|
||||
res.data.records.map((item) => {
|
||||
let info = {
|
||||
dictName: item.name,
|
||||
dictValue: item.id
|
||||
}
|
||||
this.mediaList.push(info)
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
getEquipmentList() {
|
||||
this.$http.post(`/app/appdlbquipment/getDlbDeviceList?current=1&size=10000&keyword=`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.equipmentList = []
|
||||
if (res.data && res.data.records.length) {
|
||||
res.data.records.map((item) => {
|
||||
let info = {
|
||||
dictName: item.deviceName,
|
||||
dictValue: item.serialNo
|
||||
}
|
||||
this.equipmentList.push(info)
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
checkClick(index) {
|
||||
this.dayList[index].isCheck = !this.dayList[index].isCheck
|
||||
},
|
||||
@@ -358,8 +347,6 @@ export default {
|
||||
},
|
||||
created() {
|
||||
this.$dict.load('dlbMessageUrgency', 'dlbBroadTaskType', 'dlbDyclingType').then(() => {
|
||||
this.getMediaList()
|
||||
this.getEquipmentList()
|
||||
this.messageLevelList = this.$dict.getDict('dlbMessageUrgency')
|
||||
this.cyclingTypeList = this.$dict.getDict('dlbDyclingType')
|
||||
})
|
||||
@@ -441,9 +428,13 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
.flex{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.item {
|
||||
display: inline-block;
|
||||
width: 320px;
|
||||
flex: 1;
|
||||
height: 112px;
|
||||
line-height: 112px;
|
||||
text-align: center;
|
||||
|
||||
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 288 B After Width: | Height: | Size: 288 B |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 762 B After Width: | Height: | Size: 762 B |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
@@ -1,112 +1,163 @@
|
||||
<template>
|
||||
<div class="selectEquipment">
|
||||
<div class="search">
|
||||
<div class="search-bg">
|
||||
<img src="./img/search-icon.png" alt="">
|
||||
<u-input v-model="value" type="text" placeholder="搜索设备名称" class="search-input" height="18"/>
|
||||
<AiTopFixed>
|
||||
<div class="currentLeft-top">
|
||||
<div class="left">
|
||||
<AiAreaPicker v-model="areaId" :areaId="user.areaId" @select="areaSelect" :name.sync="areaName" selectRoot>
|
||||
<span class="label" v-if="areaName">{{ areaName }}</span>
|
||||
<span v-else>请选择</span>
|
||||
<u-icon name="arrow-down" color="#666" size="24" style="margin-left: 4px" />
|
||||
</AiAreaPicker>
|
||||
</div>
|
||||
<u-search v-model="keyword" :clearabled="true" placeholder="请输入设备名称" :show-action="false" bg-color="#F5F5F5" search-icon-color="#ccc" color="#666" height="58" @search="getList" @clear="handerClear"></u-search>
|
||||
</div>
|
||||
</div>
|
||||
</AiTopFixed>
|
||||
<div class="record">
|
||||
<div class="item">
|
||||
<img src="./img/cir.png" alt="" class="check-img">
|
||||
<div class="item" v-for="(item, index) in list" :key="index" @click="checkClick(index)">
|
||||
<img src="./img/select-blue.png" mode="aspectFill" alt="" class="check-img" v-if="item.isCheck">
|
||||
<img src="./img/cir.png" alt="" mode="aspectFill" class="check-img" v-else>
|
||||
<img src="./img/lb@2x.png" alt="" class="voice-img">
|
||||
<div class="info">
|
||||
<div class="text">
|
||||
<p>村头大喇叭</p>
|
||||
<span>刘家河居委会</span>
|
||||
<p>{{item.name}}</p>
|
||||
<span>{{item.areaName}}</span>
|
||||
</div>
|
||||
<div class="status">在线</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<img src="./img/cir.png" alt="" class="check-img">
|
||||
<img src="./img/lb@2x.png" alt="" class="voice-img">
|
||||
<div class="info">
|
||||
<div class="text">
|
||||
<p>村头大喇叭</p>
|
||||
<span>刘家河居委会</span>
|
||||
</div>
|
||||
<div class="status">在线</div>
|
||||
<div class="status">{{ $dict.getLabel('dlbDevStatus', item.devStatus) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<AiEmpty v-if="!list.length"></AiEmpty>
|
||||
<div class="btn">
|
||||
<div>确定选择</div>
|
||||
<div @click="confirm">确定选择</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { mapState } from 'vuex'
|
||||
export default {
|
||||
name: "selectEquipment",
|
||||
data() {
|
||||
return {
|
||||
areaId: '',
|
||||
areaName: '',
|
||||
keyword: '',
|
||||
list: [],
|
||||
selectList: []
|
||||
}
|
||||
},
|
||||
computed: { ...mapState(['user']) },
|
||||
onLoad(option) {
|
||||
this.areaId = this.user.areaId
|
||||
this.areaName = this.user.areaName
|
||||
this.$dict.load(['dlbDevStatus']).then(() => {
|
||||
this.getList()
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
areaSelect(e) {
|
||||
this.areaId = e
|
||||
// this.getList()
|
||||
},
|
||||
getList() {
|
||||
this.$http.post(`/app/appdlbquipment/list?current=1&size=20&name=${this.keyword}&devStatus=5&areaId=${this.areaId}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
res.data.records.map(item => {
|
||||
item.isCheck = false
|
||||
})
|
||||
if (this.current > 1) {
|
||||
this.list = [...this.list, ...res.data.records]
|
||||
} else {
|
||||
this.list = res.data.records
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
checkClick(index) {
|
||||
this.list[index].isCheck = !this.list[index].isCheck
|
||||
},
|
||||
confirm() {
|
||||
this.selectList = []
|
||||
this.list.map(item => {
|
||||
if(item.isCheck) {
|
||||
var info = {
|
||||
serialNo: item.serialNo,
|
||||
serialName: item.name
|
||||
}
|
||||
this.selectList.push(info)
|
||||
}
|
||||
})
|
||||
if(!this.selectList.length) {
|
||||
return this.$u.toast('请选择播放设备')
|
||||
}
|
||||
uni.$emit('chooseEquipment', {
|
||||
equipmentList: this.selectList
|
||||
})
|
||||
uni.navigateBack({
|
||||
delta: 1
|
||||
})
|
||||
|
||||
}
|
||||
},
|
||||
onReachBottom() {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.selectEquipment {
|
||||
padding-bottom: 128px;
|
||||
|
||||
.search {
|
||||
width: 100%;
|
||||
height: 104px;
|
||||
background: #FFF;
|
||||
margin-bottom: 4px;
|
||||
padding: 20px 32px;
|
||||
box-sizing: border-box;
|
||||
.currentLeft-top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.search-bg {
|
||||
width: 686px;
|
||||
height: 64px;
|
||||
padding: 14px 0;
|
||||
box-sizing: border-box;
|
||||
background: #F5F5F5;
|
||||
border-radius: 32px;
|
||||
position: relative;
|
||||
.left {
|
||||
width: 200px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
img {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
position: absolute;
|
||||
top: 16px;
|
||||
left: 32px;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
width: 590px;
|
||||
height: 36px;
|
||||
line-height: 36px;
|
||||
font-size: 28px;
|
||||
margin-left: 70px;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.record {
|
||||
margin-top: 8px;
|
||||
padding-left: 32px;
|
||||
background-color: #fff;
|
||||
|
||||
.item {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 110rpx;
|
||||
border-bottom: 1px solid #ddd;
|
||||
|
||||
&:last-child {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.check-img {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
margin: 32px 32px 0 0;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
margin-right: 32px;
|
||||
}
|
||||
|
||||
.voice-img {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
margin: 28px 16px 0 0;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
margin-right: 32px;
|
||||
}
|
||||
|
||||
.info {
|
||||
width: calc(100% - 148px);
|
||||
padding: 18px 0;
|
||||
flex: 1;
|
||||
line-height: 44px;
|
||||
padding-right: 32px;
|
||||
font-size: 34px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
.text {
|
||||
p {
|
||||
|
||||
@@ -1,77 +0,0 @@
|
||||
<template>
|
||||
<div class="selectMp3">
|
||||
<div class="record">
|
||||
<div class="item">
|
||||
<img src="./img/cir.png" alt="">
|
||||
<div class="info">
|
||||
<p>村头大喇叭</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btn">
|
||||
<div>确定选择</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: "selectMp3",
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.selectMp3 {
|
||||
padding-bottom: 128px;
|
||||
|
||||
.record {
|
||||
padding-left: 32px;
|
||||
background-color: #fff;
|
||||
|
||||
.item {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
|
||||
img {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
margin: 40px 16px 0 0;
|
||||
}
|
||||
|
||||
.info {
|
||||
width: calc(100% - 60px);
|
||||
padding: 34px 0;
|
||||
line-height: 44px;
|
||||
border-bottom: 1px solid #ddd;
|
||||
font-size: 34px;
|
||||
font-family: PingFang-SC-Medium, PingFang-SC;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
margin-left: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.btn {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 128px;
|
||||
background: #FFF;
|
||||
border-top: 1px solid #ddd;
|
||||
padding: 24px 32px 24px 0;
|
||||
box-sizing: border-box;
|
||||
|
||||
div {
|
||||
width: 192px;
|
||||
height: 80px;
|
||||
line-height: 80px;
|
||||
text-align: center;
|
||||
background: #3975C6;
|
||||
border-radius: 4px;
|
||||
color: #fff;
|
||||
font-size: 32px;
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,185 +0,0 @@
|
||||
<template>
|
||||
<div class="AppBroadcast">
|
||||
<div class="header">
|
||||
<img src="./img/bigHorn-bg.png" alt="">
|
||||
<div class="content">
|
||||
<div class="item" @click="linkTo('./AppEquipment/AppEquipment')">
|
||||
<img src="./img/bigHorn-icon1@2x.png" alt="">
|
||||
<div>广播设备</div>
|
||||
<!-- <h2>1</h2> -->
|
||||
</div>
|
||||
<div class="item" @click="linkTo('./AppPlayList/AppPlayList')">
|
||||
<img src="./img/bigHorn-icon2@2x.png" alt="">
|
||||
<div>播放记录</div>
|
||||
</div>
|
||||
<!-- <div class="item" @click="linkTo('./onlinePlayList')">
|
||||
<img src="./img/bigHorn-icon3@2x.png" alt="">
|
||||
<div>在播设备</div>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="banner">
|
||||
<div class="item" :class="item.bgClass" v-for="(item, index) in bannerList" :key="index"
|
||||
@click="linkTo(item.path)">
|
||||
<h2>{{ item.title }}</h2>
|
||||
<div>{{ item.text }}</div>
|
||||
<img :src="item.imgUrl" alt="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: "AppBroadcast",
|
||||
appName: "云广播",
|
||||
data() {
|
||||
return {
|
||||
bannerList: [
|
||||
{
|
||||
title: '素材播放',
|
||||
text: '支持音频立即播发和定时播发',
|
||||
imgUrl: require('./img/bigHorn-icon11@2x.png'),
|
||||
path: './addPlay',
|
||||
bgClass: 'bg-67A3F4'
|
||||
},
|
||||
{
|
||||
title: '实时喊话',
|
||||
path: './LiveBroadcast',
|
||||
text: '实时在线喊话,远程广播通知',
|
||||
imgUrl: require('./img/bigHorn-icon22@2x.png'),
|
||||
bgClass: 'bg-4ED5BB'
|
||||
},
|
||||
{
|
||||
title: '音频录制',
|
||||
text: '音频文件的录制',
|
||||
path: './AppResourcesManage/addMedia?type=1',
|
||||
imgUrl: require('./img/bigHorn-icon33@2x.png'),
|
||||
bgClass: 'bg-E5B565'
|
||||
},
|
||||
{
|
||||
title: '媒资管理',
|
||||
path: './AppResourcesManage/AppResourcesManage',
|
||||
text: '支持音频文件和录音内容添加',
|
||||
imgUrl: require('./img/bigHorn-icon44@2x.png'),
|
||||
bgClass: 'bg-F19661'
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
linkTo(url) {
|
||||
uni.navigateTo({url})
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
document.title = '云广播'
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.AppBroadcast {
|
||||
.header {
|
||||
position: relative;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 306px;
|
||||
}
|
||||
|
||||
.content {
|
||||
width: 686px;
|
||||
padding: 40px 0;
|
||||
background: #FFFFFF;
|
||||
box-shadow: 0 4px 8px 4px rgba(0, 0, 0, 0.06);
|
||||
border-radius: 12px;
|
||||
position: absolute;
|
||||
top: 210px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
display: flex;
|
||||
|
||||
.item {
|
||||
text-align: center;
|
||||
flex: 1;
|
||||
|
||||
img {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
div {
|
||||
font-size: 30px;
|
||||
font-family: PingFang-SC-Medium, PingFang-SC;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
line-height: 42px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 40px;
|
||||
font-family: DINAlternate-Bold, DINAlternate;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
line-height: 48px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.banner {
|
||||
margin-top: 150px;
|
||||
|
||||
.item {
|
||||
width: 686px;
|
||||
height: 190px;
|
||||
border-radius: 12px;
|
||||
margin: 0 auto 24px auto;
|
||||
padding: 40px 46px 0 80px;
|
||||
box-sizing: border-box;
|
||||
color: #FFF;
|
||||
position: relative;
|
||||
|
||||
h2 {
|
||||
font-size: 42px;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
font-weight: 500;
|
||||
line-height: 60px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
div {
|
||||
font-size: 26px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #FFF;
|
||||
line-height: 32px;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 160px;
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
.bg-67A3F4 {
|
||||
background: #67A3F4;
|
||||
}
|
||||
|
||||
.bg-4ED5BB {
|
||||
background: #4ED5BB;
|
||||
}
|
||||
|
||||
.bg-E5B565 {
|
||||
background: #E5B565;
|
||||
}
|
||||
|
||||
.bg-F19661 {
|
||||
background: #F19661;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,512 +0,0 @@
|
||||
<template>
|
||||
<div class="addPlay">
|
||||
<div class="content">
|
||||
<div class="item">
|
||||
<div class="label">播发内容</div>
|
||||
<div class="value" @click="toSelectMedia">
|
||||
<span :class="formData.mediaName == '请选择' ? 'color-999' : ''">{{ formData.mediaName }}</span>
|
||||
<img src="./img/right-icon.png" alt="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="label">播放设备</div>
|
||||
<div class="value" @click="toSelectEquipment">
|
||||
<!-- @click="selectClick('showEquipment', equipmentList)" -->
|
||||
<span v-if="equipmentList.length">已选择<span style="color:#4E8EEE;">{{equipmentList.length}}</span>台设备</span>
|
||||
<span v-else style="color:#999;">请选择</span>
|
||||
<img src="./img/right-icon.png" alt="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="label">播发级别</div>
|
||||
<div class="value" @click="selectClick('showMessageLevel', messageLevelList)">
|
||||
<span :class="formData.messageLevelName == '请选择' ? 'color-999' : ''">{{ formData.messageLevelName }}</span>
|
||||
<img src="./img/right-icon.png" alt="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="radio-content">
|
||||
<div class="title">播放方式</div>
|
||||
<div class="flex">
|
||||
<div class="item mar-r50" :class="formData.taskType == 0 ? 'active' : ''" @click="formData.taskType = 0">立即播放<img
|
||||
src="./img/bigHorn-xz.png" alt=""></div>
|
||||
<div class="item" :class="formData.taskType == 1 ? 'active' : ''" @click="formData.taskType = 1"><img
|
||||
src="./img/bigHorn-xz.png" alt="">定时播放
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content" v-if="formData.taskType != 0">
|
||||
<div class="item">
|
||||
<div class="label">定时策略</div>
|
||||
<div class="value" @click="selectClick('showCyclingType', cyclingTypeList)">
|
||||
<span :class="formData.cyclingTypeName == '请选择' ? 'color-999' : ''">{{ formData.cyclingTypeName }}</span>
|
||||
<img src="./img/right-icon.png" alt="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="radio-content" v-if="formData.taskType != 0 && formData.cyclingType == 2">
|
||||
<div class="title">播放天数</div>
|
||||
<div class="mini-item" :class="item.isCheck ? 'mini-active' : ''" v-for="(item, index) in dayList" :key="index"
|
||||
@click="checkClick(index)">{{ item.label }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="content" v-if="formData.taskType != 0 && formData.cyclingType == 3">
|
||||
<div class="item">
|
||||
<div class="label">播放天数</div>
|
||||
<div class="value">
|
||||
<u-input type="text" placeholder="请输入" height="18" input-align="right" v-model="formData.broadcastDay" maxlength="4"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content" v-if="formData.taskType != 0">
|
||||
<div class="item">
|
||||
<div class="label">开始日期</div>
|
||||
<div class="value" @click="timeClick(true, 'showDate')">
|
||||
<span :class="formData.startDate ? 'color-999' : ''">{{ formData.startDate || '请选择' }}</span>
|
||||
<img src="./img/right-icon.png" alt="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="label">开始时间</div>
|
||||
<div class="value" @click="timeClick(false, 'showSatrt')">
|
||||
<span :class="formData.startTime ? 'color-999' : ''">{{ formData.startTime || '请选择' }}</span>
|
||||
<img src="./img/right-icon.png" alt="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="label">结束时间</div>
|
||||
<div class="value" @click="timeClick(false, 'showEnd')">
|
||||
<span :class="formData.endTime ? 'color-999' : ''">{{ formData.endTime || '请选择' }}</span>
|
||||
<img src="./img/right-icon.png" alt="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btn" @click="addConfirm">确认</div>
|
||||
<u-select v-model="showSelect" :list="selectList" @confirm="confirm" label-name="dictName"
|
||||
value-name="dictValue"></u-select>
|
||||
<u-picker v-model="showDateTime" mode="time" :params="params" @confirm="confirm"></u-picker>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: "addPlay",
|
||||
data() {
|
||||
return {
|
||||
showSelect: false,
|
||||
selectList: [],
|
||||
showMedia: false,
|
||||
mediaList: [],
|
||||
showEquipment: false,
|
||||
equipmentList: [],
|
||||
showMessageLevel: false,
|
||||
messageLevelList: [],
|
||||
showCyclingType: false,
|
||||
cyclingTypeList: [],
|
||||
formData: {
|
||||
mediaId: '',
|
||||
mediaName: '请选择',
|
||||
serialNo: '',
|
||||
serialName: '',
|
||||
messageLevel: '',
|
||||
messageLevelName: '请选择',
|
||||
taskType: '0',
|
||||
cyclingTypeName: '请选择',
|
||||
cyclingType: '',
|
||||
startDate: '',
|
||||
startTime: '',
|
||||
endTime: '',
|
||||
broadcastDay: '',
|
||||
cyclingDate: ''
|
||||
},
|
||||
dayList: [
|
||||
{
|
||||
isCheck: false,
|
||||
value: 1,
|
||||
label: '每周一'
|
||||
},
|
||||
{
|
||||
isCheck: false,
|
||||
value: 2,
|
||||
label: '每周二'
|
||||
},
|
||||
{
|
||||
isCheck: false,
|
||||
value: 3,
|
||||
label: '每周三'
|
||||
},
|
||||
{
|
||||
isCheck: false,
|
||||
value: 4,
|
||||
label: '每周四'
|
||||
},
|
||||
{
|
||||
isCheck: false,
|
||||
value: 5,
|
||||
label: '每周五'
|
||||
},
|
||||
{
|
||||
isCheck: false,
|
||||
value: 6,
|
||||
label: '每周六'
|
||||
},
|
||||
{
|
||||
isCheck: false,
|
||||
value: 7,
|
||||
label: '每周日'
|
||||
}
|
||||
],
|
||||
showDateTime: false,
|
||||
showDate: false,
|
||||
showSatrt: false,
|
||||
showEnd: false,
|
||||
params: {
|
||||
year: true,
|
||||
month: true,
|
||||
day: true,
|
||||
hour: false,
|
||||
minute: false,
|
||||
second: false
|
||||
},
|
||||
equipmentList: []
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
uni.$on('chooseMedia', e => {
|
||||
console.log(e)
|
||||
this.formData.mediaId = e.mediaId
|
||||
this.formData.mediaName = e.mediaName
|
||||
})
|
||||
uni.$on('chooseEquipment', e => {
|
||||
console.log(e)
|
||||
this.equipmentList = e.equipmentList
|
||||
})
|
||||
if(option.mediaId) {
|
||||
this.formData.mediaName = option.mediaName
|
||||
this.formData.mediaId = option.mediaId
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
document.title = '音频播放'
|
||||
},
|
||||
|
||||
methods: {
|
||||
toSelectMedia() {
|
||||
uni.navigateTo({url: `./selectMedia?mediaId=${this.formData.mediaId}`})
|
||||
},
|
||||
toSelectEquipment() {
|
||||
uni.navigateTo({url: `./selectEquipment`})
|
||||
},
|
||||
addConfirm() {
|
||||
var cyclingDateList = []
|
||||
this.dayList.map((item) => {
|
||||
if (item.isCheck) {
|
||||
cyclingDateList.push(item.value)
|
||||
}
|
||||
})
|
||||
|
||||
if (!this.formData.mediaId) {
|
||||
return this.$u.toast('请选择播发内容')
|
||||
}
|
||||
if (!this.equipmentList.length) {
|
||||
return this.$u.toast('请选择播放设备')
|
||||
}
|
||||
|
||||
if (!this.formData.messageLevel) {
|
||||
return this.$u.toast('播发级别')
|
||||
}
|
||||
|
||||
//播放方式(定时播放)
|
||||
if (this.formData.taskType != 0 && this.formData.startDate == '请选择') {
|
||||
return this.$u.toast('请选择开始日期')
|
||||
}
|
||||
if (this.formData.taskType != 0 && this.formData.startTime == '请选择') {
|
||||
return this.$u.toast('请选择开始时间')
|
||||
}
|
||||
if (this.formData.taskType != 0 && this.formData.endTime == '请选择') {
|
||||
return this.$u.toast('请选择结束时间')
|
||||
}
|
||||
//播放方式(定时播放)定时策略(时长)
|
||||
if (this.formData.taskType != 0 && this.formData.cyclingType == 3 && !this.formData.broadcastDay) {
|
||||
return this.$u.toast('请输入播放天数')
|
||||
}
|
||||
//播放方式(定时播放)定时策略(自定义)
|
||||
if (this.formData.taskType != 0 && this.formData.cyclingType == 2 && !cyclingDateList.length) {
|
||||
return this.$u.toast('请选择播放天数')
|
||||
}
|
||||
|
||||
if (this.formData.taskType != 0 && this.formData.cyclingType == 2) {
|
||||
this.formData.cyclingDate = cyclingDateList.join(',')
|
||||
}
|
||||
var serialNoList = []
|
||||
this.equipmentList.map(item => {
|
||||
serialNoList.push(item.serialNo)
|
||||
})
|
||||
this.formData.serialNo = serialNoList.join(',')
|
||||
this.formData.coverageType = '4'
|
||||
this.$http.post(`/app/appzyvideobroadcast/play`, {...this.formData,}).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.$u.toast('提交成功')
|
||||
setTimeout(() => {
|
||||
uni.navigateBack()
|
||||
}, 1000)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
confirm(e) {
|
||||
if (this.showMedia) {
|
||||
this.formData.mediaId = e[0].value
|
||||
this.formData.mediaName = e[0].label
|
||||
}
|
||||
if (this.showEquipment) {
|
||||
this.formData.serialNo = e[0].value
|
||||
this.formData.serialName = e[0].label
|
||||
}
|
||||
if (this.showMessageLevel) {
|
||||
this.formData.messageLevel = e[0].value
|
||||
this.formData.messageLevelName = e[0].label
|
||||
}
|
||||
if (this.showCyclingType) {
|
||||
this.formData.cyclingType = e[0].value
|
||||
this.formData.cyclingTypeName = e[0].label
|
||||
}
|
||||
if (this.showDate) {
|
||||
this.formData.startDate = e.year + '-' + e.month + '-' + e.day
|
||||
}
|
||||
if (this.showSatrt) {
|
||||
var startTime = e.hour + ':' + e.minute + ':' + e.second
|
||||
var myDate = new Date();
|
||||
var time = myDate.getHours() + ':' + myDate.getMinutes() + ':' + myDate.getSeconds()
|
||||
if (this.timeToSec(startTime) - this.timeToSec(time) > 0) {
|
||||
this.formData.startTime = startTime
|
||||
} else {
|
||||
this.$u.toast('开始时间要大于当前时间')
|
||||
}
|
||||
}
|
||||
if (this.showEnd) {
|
||||
var endTime = e.hour + ':' + e.minute + ':' + e.second
|
||||
console.log(this.timeToSec(endTime), this.timeToSec(this.formData.startTime))
|
||||
if (this.timeToSec(endTime) - this.timeToSec(this.formData.startTime) > 0) {
|
||||
this.formData.endTime = endTime
|
||||
} else {
|
||||
this.$u.toast('结束时间要大于开始时间')
|
||||
}
|
||||
}
|
||||
this.init()
|
||||
},
|
||||
init() {
|
||||
this.showMedia = false
|
||||
this.showEquipment = false
|
||||
this.showMessageLevel = false
|
||||
this.showCyclingType = false
|
||||
this.showDate = false
|
||||
this.showSatrt = false
|
||||
this.showEnd = false
|
||||
},
|
||||
selectClick(showType, list) {
|
||||
this.showSelect = true
|
||||
this[showType] = true
|
||||
this.selectList = list
|
||||
},
|
||||
checkClick(index) {
|
||||
this.dayList[index].isCheck = !this.dayList[index].isCheck
|
||||
},
|
||||
timeClick(showYear, showType) {
|
||||
this[showType] = true
|
||||
this.showDateTime = true
|
||||
if (showYear) {
|
||||
this.params = {
|
||||
year: true,
|
||||
month: true,
|
||||
day: true,
|
||||
hour: false,
|
||||
minute: false,
|
||||
second: false
|
||||
}
|
||||
} else {
|
||||
this.params = {
|
||||
year: false,
|
||||
month: false,
|
||||
day: false,
|
||||
hour: true,
|
||||
minute: true,
|
||||
second: true
|
||||
}
|
||||
}
|
||||
},
|
||||
timeToSec(time) {
|
||||
var s = "";
|
||||
var hour = time.split(":")[0];
|
||||
var min = time.split(":")[1];
|
||||
var second = time.split(":")[2];
|
||||
s = Number(hour * 3600) + Number(min * 60) + Number(second)
|
||||
return s;
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.$dict.load('dlbMessageUrgency', 'dlbBroadTaskType', 'dlbDyclingType').then(() => {
|
||||
this.messageLevelList = this.$dict.getDict('dlbMessageUrgency')
|
||||
this.cyclingTypeList = this.$dict.getDict('dlbDyclingType')
|
||||
})
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.addPlay {
|
||||
padding-bottom: 128px;
|
||||
|
||||
.content {
|
||||
padding-left: 32px;
|
||||
background-color: #fff;
|
||||
|
||||
.item {
|
||||
width: 100%;
|
||||
padding: 34px 0;
|
||||
font-size: 32px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
line-height: 44px;
|
||||
border-bottom: 1px solid #ddd;
|
||||
display: flex;
|
||||
color: #333;
|
||||
justify-content: space-between;
|
||||
|
||||
.label {
|
||||
width: 198px;
|
||||
font-size: 32px;
|
||||
}
|
||||
|
||||
.value {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
font-size: 28px;
|
||||
flex: 1;
|
||||
padding-right: 32px;
|
||||
max-width: calc(100% - 198px);
|
||||
box-sizing: border-box;
|
||||
text-align: right;
|
||||
|
||||
span {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
vertical-align: middle;
|
||||
margin-left: 6px;
|
||||
}
|
||||
}
|
||||
|
||||
.color-999 {
|
||||
color: #999;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.radio-content {
|
||||
padding: 34px 32px 38px;
|
||||
border-bottom: 1px solid #ddd;
|
||||
background-color: #fff;
|
||||
|
||||
.title {
|
||||
font-size: 32px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #333;
|
||||
line-height: 44px;
|
||||
margin-bottom: 54px;
|
||||
|
||||
span {
|
||||
font-size: 24px;
|
||||
font-weight: 400;
|
||||
}
|
||||
}
|
||||
|
||||
.flex{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.item {
|
||||
flex: 1;
|
||||
height: 112px;
|
||||
line-height: 112px;
|
||||
text-align: center;
|
||||
background: #F5F5F5;
|
||||
border-radius: 4px;
|
||||
font-size: 30px;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
|
||||
img {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.active {
|
||||
background: #E7F1FE;
|
||||
color: #1174FE;
|
||||
position: relative;
|
||||
|
||||
img {
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
width: 46px;
|
||||
height: 46px;
|
||||
}
|
||||
}
|
||||
|
||||
.mar-r50 {
|
||||
margin-right: 50px;
|
||||
}
|
||||
|
||||
.mini-item {
|
||||
display: inline-block;
|
||||
width: 128px;
|
||||
height: 72px;
|
||||
line-height: 72px;
|
||||
text-align: center;
|
||||
background: #F9F9F9;
|
||||
border-radius: 16px;
|
||||
color: #333;
|
||||
font-size: 28px;
|
||||
margin-right: 58px;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
|
||||
.mini-item:nth-of-type(5) {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.mini-active {
|
||||
background: #F2F8FE;
|
||||
border: 1px solid #89B2EE;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
}
|
||||
|
||||
.btn {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 112px;
|
||||
line-height: 112px;
|
||||
text-align: center;
|
||||
background: #3975C6;
|
||||
font-size: 32px;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
Before Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 795 B |
|
Before Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 269 B |
|
Before Width: | Height: | Size: 766 B |
|
Before Width: | Height: | Size: 1.1 KiB |
@@ -1,95 +0,0 @@
|
||||
<template>
|
||||
<div class="onlineList">
|
||||
<div class="record">
|
||||
<div class="item" v-for="(item, index) in list" :key="index">
|
||||
<img src="./img/bigHorn-lb@2x.png" alt="">
|
||||
<div class="info">
|
||||
<p>{{ item.deviceName }}</p>
|
||||
<span>{{ item.areaName }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<AiEmpty v-if="!list.length"/>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: "onlineList",
|
||||
data() {
|
||||
return {
|
||||
page: {current: 1, size: 10, total: 0},
|
||||
list: []
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getList() {
|
||||
this.$http.post("/app/appdlbquipment/getDlbDeviceList", null, {
|
||||
params: {...this.page, devStatus: 5}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
if (this.page.current > 1) {
|
||||
this.list = [...this.list, ...res.data.records]
|
||||
} else this.list = res.data.records
|
||||
this.page.total = res.data.total
|
||||
}
|
||||
})
|
||||
},
|
||||
reachBottom() {
|
||||
if (this.page.total > this.list.length) {
|
||||
this.page.current++
|
||||
this.getList()
|
||||
}
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.getList()
|
||||
},
|
||||
onShow() {
|
||||
document.title = '在线设备'
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.onlineList {
|
||||
.record {
|
||||
padding-left: 32px;
|
||||
background-color: #fff;
|
||||
|
||||
.item {
|
||||
width: 100%;
|
||||
border-bottom: 1px solid #ddd;
|
||||
display: flex;
|
||||
padding: 12px 40px 16px 0;
|
||||
|
||||
img {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
margin: 12px 16px 0 0;
|
||||
}
|
||||
|
||||
.info {
|
||||
width: calc(100% - 100px);
|
||||
|
||||
p {
|
||||
font-size: 34px;
|
||||
font-family: PingFang-SC-Medium, PingFang-SC;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
line-height: 48px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
span {
|
||||
font-size: 22px;
|
||||
font-family: PingFang-SC-Medium, PingFang-SC;
|
||||
font-weight: 500;
|
||||
color: #999;
|
||||
line-height: 32px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,97 +0,0 @@
|
||||
<template>
|
||||
<div class="onlinePlayList">
|
||||
<div class="record">
|
||||
<div class="item" v-for="(item, index) in list" :key="index">
|
||||
<img src="./img/bigHorn-lb@2x.png" alt="">
|
||||
<div class="info">
|
||||
<p>{{ item.deviceName }}</p>
|
||||
<span>{{ item.createTime }}</span><br/>
|
||||
<span>{{ item.name }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<AiEmpty v-if="!list.length"></AiEmpty>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: "onlinePlayList",
|
||||
data() {
|
||||
return {
|
||||
page: {current: 1, size: 10, total: 0},
|
||||
list: []
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
getList() {
|
||||
this.$http.post("/app/appdlbquipment/getDlbDeviceList", null, {
|
||||
params: {...this.page, devStatus: 1}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
if (this.page.current > 1) {
|
||||
this.list = [...this.list, ...res.data.records]
|
||||
} else this.list = res.data.records
|
||||
this.page.total = res.data.total
|
||||
}
|
||||
})
|
||||
},
|
||||
reachBottom() {
|
||||
if (this.page.total > this.list.length) {
|
||||
this.page.current++
|
||||
this.getList()
|
||||
}
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.getList()
|
||||
},
|
||||
onShow() {
|
||||
document.title = '在播设备'
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.onlinePlayList {
|
||||
.record {
|
||||
padding-left: 32px;
|
||||
background-color: #fff;
|
||||
|
||||
.item {
|
||||
width: 100%;
|
||||
border-bottom: 1px solid #ddd;
|
||||
display: flex;
|
||||
padding: 12px 40px 16px 0;
|
||||
|
||||
img {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
margin: 12px 16px 0 0;
|
||||
}
|
||||
|
||||
.info {
|
||||
width: calc(100% - 100px);
|
||||
|
||||
p {
|
||||
font-size: 34px;
|
||||
font-family: PingFang-SC-Medium, PingFang-SC;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
line-height: 48px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
span {
|
||||
font-size: 22px;
|
||||
font-family: PingFang-SC-Medium, PingFang-SC;
|
||||
font-weight: 500;
|
||||
color: #999;
|
||||
line-height: 32px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,148 +0,0 @@
|
||||
<template>
|
||||
<div class="playList">
|
||||
<div class="title">
|
||||
<span>播放记录</span>
|
||||
<span>操作</span>
|
||||
</div>
|
||||
<div class="record">
|
||||
<div class="item" v-for="(item, index) in list" :key="index">
|
||||
<div class="info">
|
||||
<p>{{ item.messageName }}</p>
|
||||
<span>{{ item.startDate }}</span><br/>
|
||||
<span>{{ item.deviceName }}</span>
|
||||
</div>
|
||||
<div class="btn bg-3975C6"
|
||||
v-if="item.broadcastStatus == 0 || item.broadcastStatus == 1 || item.broadcastStatus == 2"
|
||||
@click="cancel(item.broadcastId)">撤销
|
||||
</div>
|
||||
<div class="btn bg-AFD0FC" v-if="item.broadcastStatus == 6">已取消</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: "playList",
|
||||
data() {
|
||||
return {
|
||||
page: {current: 1, size: 10, total: 0},
|
||||
list: []
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getList() {
|
||||
this.$http.post("/app/appzyvideobroadcast/getBroadcastRecords", null, {
|
||||
params: {...this.page}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
if (this.page.current > 1) {
|
||||
this.list = [...this.list, ...res.data.records]
|
||||
} else this.list = res.data.records
|
||||
this.page.total = res.data.total
|
||||
}
|
||||
})
|
||||
},
|
||||
reachBottom() {
|
||||
if (this.page.total > this.list.length) {
|
||||
this.page.current++
|
||||
this.getList()
|
||||
}
|
||||
},
|
||||
cancel(id) {
|
||||
this.$confirm('确定撤回该广播?').then(() => {
|
||||
this.$http.post(`/app/appzyvideobroadcast/getBroadcastRecall?broadcastId=${id}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.$u.toast('撤回成功!')
|
||||
this.getList()
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.$dict.load('dlbBroadcastStatus').then(() => {
|
||||
this.getList()
|
||||
})
|
||||
},
|
||||
onShow() {
|
||||
document.title = '播放记录'
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.playList {
|
||||
.title {
|
||||
width: 100%;
|
||||
height: 88px;
|
||||
line-height: 88px;
|
||||
background: #FFF;
|
||||
padding: 0 80px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
color: #333;
|
||||
font-size: 34px;
|
||||
box-sizing: border-box;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
|
||||
.record {
|
||||
padding-left: 32px;
|
||||
background-color: #fff;
|
||||
|
||||
.item {
|
||||
width: 100%;
|
||||
border-bottom: 1px solid #ddd;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 12px 40px 16px 0;
|
||||
box-sizing: border-box;
|
||||
|
||||
.info {
|
||||
width: 480px;
|
||||
margin-right: 40px;
|
||||
word-break: break-all;
|
||||
|
||||
p {
|
||||
font-size: 34px;
|
||||
font-family: PingFang-SC-Medium, PingFang-SC;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
line-height: 48px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
span {
|
||||
font-size: 22px;
|
||||
font-family: PingFang-SC-Medium, PingFang-SC;
|
||||
font-weight: 500;
|
||||
color: #999;
|
||||
line-height: 32px;
|
||||
}
|
||||
}
|
||||
|
||||
.btn {
|
||||
width: 154px;
|
||||
height: 60px;
|
||||
border-radius: 8px;
|
||||
text-align: center;
|
||||
line-height: 60px;
|
||||
font-size: 30px;
|
||||
font-family: PingFang-SC-Medium, PingFang-SC;
|
||||
font-weight: 500;
|
||||
color: #FFF;
|
||||
margin-top: 18px;
|
||||
}
|
||||
|
||||
.bg-3975C6 {
|
||||
background: #3975C6;
|
||||
}
|
||||
|
||||
.bg-AFD0FC {
|
||||
background: #AFD0FC;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,214 +0,0 @@
|
||||
<template>
|
||||
<div class="selectEquipment">
|
||||
<AiTopFixed>
|
||||
<div class="currentLeft-top">
|
||||
<div class="left">
|
||||
<AiAreaPicker v-model="areaId" :areaId="user.areaId" @select="areaSelect" :name.sync="areaName" selectRoot>
|
||||
<span class="label" v-if="areaName">{{ areaName }}</span>
|
||||
<span v-else>请选择</span>
|
||||
<u-icon name="arrow-down" color="#666" size="24" style="margin-left: 4px" />
|
||||
</AiAreaPicker>
|
||||
</div>
|
||||
<u-search v-model="keyword" :clearabled="true" placeholder="请输入设备名称" :show-action="false" bg-color="#F5F5F5" search-icon-color="#ccc" color="#666" height="58" @search="getList" @clear="handerClear"></u-search>
|
||||
</div>
|
||||
</AiTopFixed>
|
||||
<div class="record">
|
||||
<div class="item" v-for="(item, index) in list" :key="index" @click="checkClick(index)">
|
||||
<img src="./img/select-blue.png" mode="aspectFill" alt="" class="check-img" v-if="item.isCheck">
|
||||
<img src="./img/cir.png" alt="" mode="aspectFill" class="check-img" v-else>
|
||||
<img src="./img/lb@2x.png" alt="" class="voice-img">
|
||||
<div class="info">
|
||||
<div class="text">
|
||||
<p>{{item.name}}</p>
|
||||
<span>{{item.areaName}}</span>
|
||||
</div>
|
||||
<div class="status">{{ $dict.getLabel('dlbDevStatus', item.devStatus) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<AiEmpty v-if="!list.length"></AiEmpty>
|
||||
<div class="btn">
|
||||
<div @click="confirm">确定选择</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { mapState } from 'vuex'
|
||||
export default {
|
||||
name: "selectEquipment",
|
||||
data() {
|
||||
return {
|
||||
areaId: '',
|
||||
areaName: '',
|
||||
keyword: '',
|
||||
list: [],
|
||||
selectList: []
|
||||
}
|
||||
},
|
||||
computed: { ...mapState(['user']) },
|
||||
onLoad(option) {
|
||||
this.areaId = this.user.areaId
|
||||
this.areaName = this.user.areaName
|
||||
this.$dict.load(['dlbDevStatus']).then(() => {
|
||||
this.getList()
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
areaSelect(e) {
|
||||
this.areaId = e
|
||||
// this.getList()
|
||||
},
|
||||
getList() {
|
||||
this.$http.post(`/app/appdlbquipment/list?current=1&size=20&name=${this.keyword}&devStatus=5&areaId=${this.areaId}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
res.data.records.map(item => {
|
||||
item.isCheck = false
|
||||
})
|
||||
if (this.current > 1) {
|
||||
this.list = [...this.list, ...res.data.records]
|
||||
} else {
|
||||
this.list = res.data.records
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
checkClick(index) {
|
||||
this.list[index].isCheck = !this.list[index].isCheck
|
||||
},
|
||||
confirm() {
|
||||
this.selectList = []
|
||||
this.list.map(item => {
|
||||
if(item.isCheck) {
|
||||
var info = {
|
||||
serialNo: item.serialNo,
|
||||
serialName: item.name
|
||||
}
|
||||
this.selectList.push(info)
|
||||
}
|
||||
})
|
||||
if(!this.selectList.length) {
|
||||
return this.$u.toast('请选择播放设备')
|
||||
}
|
||||
uni.$emit('chooseEquipment', {
|
||||
equipmentList: this.selectList
|
||||
})
|
||||
uni.navigateBack({
|
||||
delta: 1
|
||||
})
|
||||
|
||||
}
|
||||
},
|
||||
onReachBottom() {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.selectEquipment {
|
||||
padding-bottom: 128px;
|
||||
|
||||
.currentLeft-top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.left {
|
||||
width: 200px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
img {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.record {
|
||||
margin-top: 8px;
|
||||
padding-left: 32px;
|
||||
background-color: #fff;
|
||||
|
||||
.item {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 110rpx;
|
||||
border-bottom: 1px solid #ddd;
|
||||
|
||||
&:last-child {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.check-img {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
margin-right: 32px;
|
||||
}
|
||||
|
||||
.voice-img {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
margin-right: 32px;
|
||||
}
|
||||
|
||||
.info {
|
||||
flex: 1;
|
||||
line-height: 44px;
|
||||
padding-right: 32px;
|
||||
font-size: 34px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
.text {
|
||||
p {
|
||||
font-family: PingFang-SC-Medium, PingFang-SC;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
span {
|
||||
font-size: 26px;
|
||||
font-family: PingFang-SC-Medium, PingFang-SC;
|
||||
font-weight: 500;
|
||||
color: #999;
|
||||
line-height: 36px;
|
||||
}
|
||||
}
|
||||
|
||||
.status {
|
||||
font-size: 34px;
|
||||
font-family: PingFang-SC-Medium, PingFang-SC;
|
||||
font-weight: 500;
|
||||
color: #4E8EEE;
|
||||
line-height: 48px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.btn {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 128px;
|
||||
background: #FFF;
|
||||
border-top: 1px solid #ddd;
|
||||
padding: 24px 32px 24px 0;
|
||||
box-sizing: border-box;
|
||||
|
||||
div {
|
||||
width: 192px;
|
||||
height: 80px;
|
||||
line-height: 80px;
|
||||
text-align: center;
|
||||
background: #3975C6;
|
||||
border-radius: 4px;
|
||||
color: #fff;
|
||||
font-size: 32px;
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||