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: {