From ea85e1c82bc109bc7efc23be0521feb1d872f888 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Mon, 13 Jun 2022 09:56:13 +0800 Subject: [PATCH] 30155 --- .../device/AppMediaManage/components/Play.vue | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/packages/device/AppMediaManage/components/Play.vue b/packages/device/AppMediaManage/components/Play.vue index e94fc088..8ef2a71a 100644 --- a/packages/device/AppMediaManage/components/Play.vue +++ b/packages/device/AppMediaManage/components/Play.vue @@ -58,7 +58,7 @@ :picker-options="{ start: formData.startTime, minTime: formData.startTime}" value-format="HH:mm:ss"> - + @@ -171,6 +171,7 @@ export default { serialNoList: [], areaId: '', areaName: '', + userAreaId: '', } }, computed: { @@ -183,15 +184,26 @@ export default { var myDate = new Date(); return myDate.getHours() + ':' + myDate.getMinutes() + ':' + myDate.getSeconds() }, - areaRoot() { - return this.areaRootId = [this.user.info.areaId.substr(0,6),'000000'].join("") - } + // areaRoot() { + // return this.areaRootId = [this.user.info.areaId.substr(0,6),'000000'].join("") + // } }, + + watch: { + userAreaId: { + handler: function(v) { + this.areaRootId = [v.substr(0,6),'000000'].join("") + }, + deep: true + } + }, + created() { this.dict.load('dlbMessageUrgency', 'dlbBroadTaskType', 'dlbDyclingType') Promise.all([this.getEquipmentList(), this.getMediaList()]).then(() => { this.formData.mediaId = this.params.id + this.userAreaId = this.user.info.areaId }) }, methods: {