大喇叭

This commit is contained in:
liuye
2022-06-10 19:18:32 +08:00
parent aa6327f539
commit 17d6a34ef3
4 changed files with 34 additions and 67 deletions

View File

@@ -106,7 +106,7 @@ export default {
mediaId: '',
mediaName: '请选择',
serialNo: '',
serialName: '请选择',
serialName: '',
messageLevel: '',
messageLevelName: '请选择',
taskType: '0',
@@ -207,9 +207,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('播发级别')
}
@@ -236,6 +237,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) {
@@ -302,38 +308,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
},
@@ -371,8 +345,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')
})