Merge branch 'dev' of http://git.sinoecare.com/sinoecare/digital_village_v2/dvcp_v2_wxcp_app into dev
This commit is contained in:
@@ -52,7 +52,7 @@ export default {
|
|||||||
{
|
{
|
||||||
title: '音频录制',
|
title: '音频录制',
|
||||||
text: '音频文件的录制',
|
text: '音频文件的录制',
|
||||||
path: './addPlay?type=1',
|
path: './AppResourcesManage/addPlay?type=1',
|
||||||
imgUrl: require('./img/bigHorn-icon33@2x.png'),
|
imgUrl: require('./img/bigHorn-icon33@2x.png'),
|
||||||
bgClass: 'bg-E5B565'
|
bgClass: 'bg-E5B565'
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -9,10 +9,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</AiTopFixed>
|
</AiTopFixed>
|
||||||
<div class="list">
|
<div class="list">
|
||||||
<div class="item" @click="toDetail">
|
<div class="item" v-for="(item, index) in list" :key="index" @click="toDetail(item)" >
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<p>韩红-我的祖国.mp3</p>
|
<p>{{ item.messageName }}</p>
|
||||||
<div>李毅 2022-06-09 09:43:05</div>
|
<div>{{item.createUserName}} {{ item.startDate }}</div>
|
||||||
<div>日常 立即播发</div>
|
<div>日常 立即播发</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
@@ -31,16 +31,14 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
list: [],
|
list: [],
|
||||||
currIndex: 1,
|
|
||||||
current: 1,
|
current: 1,
|
||||||
type: '0',
|
type: '0',
|
||||||
typeList: [{label: '全部', value: '0'}, {label: '我发布的', value: '1'}],
|
typeList: [{label: '全部', value: '0'}, {label: '我发布的', value: '1'}],
|
||||||
isMore: false,
|
|
||||||
keyword: ''
|
keyword: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(query) {
|
onLoad(query) {
|
||||||
|
this.getList()
|
||||||
},
|
},
|
||||||
|
|
||||||
onShow() {
|
onShow() {
|
||||||
@@ -53,19 +51,15 @@ export default {
|
|||||||
this.getListInit()
|
this.getListInit()
|
||||||
},
|
},
|
||||||
getListInit() {
|
getListInit() {
|
||||||
this.isMore = false
|
|
||||||
this.list = []
|
this.list = []
|
||||||
this.current = 1
|
this.current = 1
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
|
|
||||||
getList() {
|
getList() {
|
||||||
if (this.isMore) return
|
this.$http.post(`/app/appzyvideobroadcast/getBroadcastRecords`, null, {
|
||||||
|
|
||||||
this.$http.post(`/app/appdlbresource/list`, null, {
|
|
||||||
params: {
|
params: {
|
||||||
...this.search,
|
...this.search,
|
||||||
type: this.currIndex === 0 ? 1 : 3,
|
|
||||||
current: this.current,
|
current: this.current,
|
||||||
size: 10
|
size: 10
|
||||||
}
|
}
|
||||||
@@ -76,16 +70,6 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.list = res.data.records
|
this.list = res.data.records
|
||||||
}
|
}
|
||||||
|
|
||||||
uni.hideLoading()
|
|
||||||
|
|
||||||
if (res.data.records.length < 10) {
|
|
||||||
this.isMore = true
|
|
||||||
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
this.current = this.current + 1
|
|
||||||
} else {
|
} else {
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
}
|
}
|
||||||
@@ -94,15 +78,13 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
toDetail(item) {
|
toDetail(item) {
|
||||||
uni.navigateTo({url: `./detail`})
|
uni.navigateTo({url: `./detail?id=${item.id}`})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
if(this.currIndex == 1) {
|
this.current ++
|
||||||
this.current ++
|
this.getList()
|
||||||
this.getList()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -69,11 +69,15 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
isShow: false,
|
isShow: false,
|
||||||
url: ''
|
url: '',
|
||||||
|
id: '',
|
||||||
|
info: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(query) {
|
onLoad(option) {
|
||||||
|
console.log(option)
|
||||||
|
this.id = option.id
|
||||||
|
this.getDetail()
|
||||||
},
|
},
|
||||||
|
|
||||||
onShow() {
|
onShow() {
|
||||||
@@ -88,7 +92,16 @@ export default {
|
|||||||
},
|
},
|
||||||
toEquipmentList() {
|
toEquipmentList() {
|
||||||
uni.navigateTo({url: `./equipmentList`})
|
uni.navigateTo({url: `./equipmentList`})
|
||||||
}
|
},
|
||||||
|
getDetail() {
|
||||||
|
this.$http.post(`/app/appzyvideobroadcast/queryDetailById?id=${this.id}`).then(res => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.info = res.data
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
uni.hideLoading()
|
||||||
|
})
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ export default {
|
|||||||
mediaId: '',
|
mediaId: '',
|
||||||
mediaName: '请选择',
|
mediaName: '请选择',
|
||||||
serialNo: '',
|
serialNo: '',
|
||||||
serialName: '请选择',
|
serialName: '',
|
||||||
messageLevel: '',
|
messageLevel: '',
|
||||||
messageLevelName: '请选择',
|
messageLevelName: '请选择',
|
||||||
taskType: '0',
|
taskType: '0',
|
||||||
@@ -207,9 +207,10 @@ export default {
|
|||||||
if (!this.formData.mediaId) {
|
if (!this.formData.mediaId) {
|
||||||
return this.$u.toast('请选择播发内容')
|
return this.$u.toast('请选择播发内容')
|
||||||
}
|
}
|
||||||
if (!this.formData.serialNo) {
|
if (!this.equipmentList.length) {
|
||||||
return this.$u.toast('请选择播放设备')
|
return this.$u.toast('请选择播放设备')
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.formData.messageLevel) {
|
if (!this.formData.messageLevel) {
|
||||||
return this.$u.toast('播发级别')
|
return this.$u.toast('播发级别')
|
||||||
}
|
}
|
||||||
@@ -236,6 +237,11 @@ export default {
|
|||||||
if (this.formData.taskType != 0 && this.formData.cyclingType == 2) {
|
if (this.formData.taskType != 0 && this.formData.cyclingType == 2) {
|
||||||
this.formData.cyclingDate = cyclingDateList.join(',')
|
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.formData.coverageType = '4'
|
||||||
this.$http.post(`/app/appzyvideobroadcast/play`, {...this.formData,}).then((res) => {
|
this.$http.post(`/app/appzyvideobroadcast/play`, {...this.formData,}).then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
@@ -302,38 +308,6 @@ export default {
|
|||||||
this[showType] = true
|
this[showType] = true
|
||||||
this.selectList = list
|
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) {
|
checkClick(index) {
|
||||||
this.dayList[index].isCheck = !this.dayList[index].isCheck
|
this.dayList[index].isCheck = !this.dayList[index].isCheck
|
||||||
},
|
},
|
||||||
@@ -371,8 +345,6 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.$dict.load('dlbMessageUrgency', 'dlbBroadTaskType', 'dlbDyclingType').then(() => {
|
this.$dict.load('dlbMessageUrgency', 'dlbBroadTaskType', 'dlbDyclingType').then(() => {
|
||||||
this.getMediaList()
|
|
||||||
this.getEquipmentList()
|
|
||||||
this.messageLevelList = this.$dict.getDict('dlbMessageUrgency')
|
this.messageLevelList = this.$dict.getDict('dlbMessageUrgency')
|
||||||
this.cyclingTypeList = this.$dict.getDict('dlbDyclingType')
|
this.cyclingTypeList = this.$dict.getDict('dlbDyclingType')
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ export default {
|
|||||||
params: {girdId: last}
|
params: {girdId: last}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
this.slectList = [{girdName: '可选范围', id: ''}, res.data].flat()
|
this.slectList = [{girdName: '可选范围', id: ''}, res.data.filter(e => !!this.allData.find(a => a.id == e.id))].flat()
|
||||||
this.getGridsByGridMemberAndParent({id: last})
|
this.getGridsByGridMemberAndParent({id: last})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -126,8 +126,8 @@ export default {
|
|||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
},
|
},
|
||||||
handleGridSelect(e) {
|
handleGridSelect(e) {
|
||||||
this.gridName = e?.[0]?.girdName
|
this.gridName = e?.girdName
|
||||||
this.search.girdId = e?.[0]?.id
|
this.search.girdId = e?.id
|
||||||
this.getDatas()
|
this.getDatas()
|
||||||
},
|
},
|
||||||
areaSelect(e) {
|
areaSelect(e) {
|
||||||
@@ -143,13 +143,7 @@ export default {
|
|||||||
params: {...this.search, type: 0, range: 0}
|
params: {...this.search, type: 0, range: 0}
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
for (let i in res.data) {
|
this.statisticsList = Object.keys(res.data).map((label, i, arr) => ({label, value: res.data[label]}))
|
||||||
let obj = {
|
|
||||||
label: i,
|
|
||||||
value: res.data[i],
|
|
||||||
}
|
|
||||||
this.statisticsList.push(obj)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -159,13 +153,7 @@ export default {
|
|||||||
params: {...this.search, type: 0, range: 1}
|
params: {...this.search, type: 0, range: 1}
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
for (let i in res.data) {
|
this.statisticsListMon = Object.keys(res.data).map((label, i, arr) => ({label, value: res.data[label]}))
|
||||||
let obj = {
|
|
||||||
label: i,
|
|
||||||
value: res.data[i],
|
|
||||||
}
|
|
||||||
this.statisticsListMon.push(obj)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user