From 3fdc528ffedae7fdde5f4209bc4e9d5bb97de501 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Fri, 10 Jun 2022 17:52:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../device/AppBroadcast/components/Detail.vue | 12 +++++ .../device/AppBroadcast/components/List.vue | 7 ++- .../device/AppMediaManage/components/Play.vue | 46 +++---------------- 3 files changed, 24 insertions(+), 41 deletions(-) diff --git a/packages/device/AppBroadcast/components/Detail.vue b/packages/device/AppBroadcast/components/Detail.vue index 858c0124..ddd1681d 100644 --- a/packages/device/AppBroadcast/components/Detail.vue +++ b/packages/device/AppBroadcast/components/Detail.vue @@ -76,6 +76,12 @@ export default { ], } }, + created() { + if(this.params.id) { + this.getDetail() + } + + }, methods: { cancel(isRefresh) { this.$emit('change', { @@ -83,6 +89,12 @@ export default { isRefresh: !!isRefresh, }) }, + getDetail() { + this.instance.post(`/app/appzyvideobroadcast/queryDetailById?id=${this.params.id}`).then((res) => { + console.log(res); + }) + }, + getList() {}, } } diff --git a/packages/device/AppBroadcast/components/List.vue b/packages/device/AppBroadcast/components/List.vue index c79d6bc2..9bd656b9 100644 --- a/packages/device/AppBroadcast/components/List.vue +++ b/packages/device/AppBroadcast/components/List.vue @@ -25,7 +25,7 @@ - @@ -82,6 +82,7 @@ export default { ], tableData: [], areaId: '', + loading: false, } }, @@ -101,6 +102,7 @@ export default { this.areaId = this.user.info.areaId this.dict.load('dlbResourceType', 'dlbMessageUrgency', 'dlbBroadTaskType', 'dlbBroadcastStatus', 'dlbMessageUrgency').then(() => { this.getList() + this.loading = true }) }, @@ -116,7 +118,10 @@ export default { if (res.code == 0) { this.tableData = res.data.records this.total = parseInt(res.data.total) + this.loading = false } + }).catch(() => { + this.loading = false }) }, onAdd(id) { diff --git a/packages/device/AppMediaManage/components/Play.vue b/packages/device/AppMediaManage/components/Play.vue index fddf8025..2aa1630f 100644 --- a/packages/device/AppMediaManage/components/Play.vue +++ b/packages/device/AppMediaManage/components/Play.vue @@ -16,7 +16,7 @@ :selectList="$dict.getDict('dlbMessageUrgency')"> - + @@ -59,8 +59,8 @@ value-format="HH:mm:ss"> - + @@ -269,44 +269,10 @@ export default { }, // 地区选择 handleAreaSelect() { - this.areaName = v?.[0]?.label - }, - // 全选按钮 - handleCheckAllChange(val) { - this.checkedCities = val ? this.cities : []; - this.isIndeterminate = false; - }, - // 复选框 - handleCheckedCitiesChange(value) { - let checkedCount = value.length; - this.checkAll = checkedCount == this.cities.length; - this.isIndeterminate = checkedCount > 0 && checkedCount < this.cities.length; - }, - // 搜索设备 - searchEquipment() { - console.log('搜索设备'); - }, - // 关闭标签 - closeTags(tag) { - this.tags.splice(this.tags.indexOf(tag), 1); - }, - // 清空标签 - emptyBtn() { - this.tags = [] - }, - handleNodeClick(data) { - console.log(data); - }, - // 行政区划 - bindAdministrative() { - this.instance.post(`/app/appdlbquipment/addOrUpdate`, this.changeInfo).then((res) => { - if (res.code == 0) { - // this.$message.success('绑定行政区划成功!') - // this.bindVisible = false - // this.getList() - } - }) + this.form.areaName = v?.[0]?.label }, + + // 播放 confirm() { this.$refs['ruleForm'].validate((valid) => { if (valid) {