diff --git a/packages/device/AppMediaManage/components/Play.vue b/packages/device/AppMediaManage/components/Play.vue
index 0f4a1216..dcc00417 100644
--- a/packages/device/AppMediaManage/components/Play.vue
+++ b/packages/device/AppMediaManage/components/Play.vue
@@ -16,7 +16,7 @@
:selectList="$dict.getDict('dlbMessageUrgency')">
-
+
@@ -46,7 +46,7 @@
+ value-format="yyyy-MM-dd" :picker-options="{disabledDate}"/>
- formData.serialNo = v.map(e=> e.serialNo).toString()" multiple/>
+ formData.serialNo = v.map(e=> e.serialNo).toString()" multiple/>
@@ -188,8 +189,8 @@ export default {
watch: {
userAreaId: {
- handler: function(v) {
- this.areaRootId = [v?.substr(0,6),'000000'].join("")
+ handler: function (v) {
+ this.areaRootId = [v?.substr(0, 6), '000000'].join("")
},
deep: true
}
@@ -204,7 +205,8 @@ export default {
},
methods: {
// 选择设备
- getSelect() {},
+ getSelect() {
+ },
getMediaList() {
return this.instance.post(`/app/appdlbresource/list?current=1&size=10000`).then((res) => {
if (res?.data) {
@@ -232,7 +234,7 @@ export default {
// 播放
confirm() {
- if(!this.areaId) {
+ if (!this.areaId) {
this.$message.error('请选择所要播放设备的行政区划!')
}
this.$refs['ruleForm'].validate((valid) => {
@@ -286,6 +288,9 @@ export default {
isRefresh: !!isRefresh,
})
},
+ disabledDate(time) {
+ return new Date(time).getTime() - new Date().getTime() < -24 * 60 * 60 * 1000
+ }
},
}
@@ -294,6 +299,7 @@ export default {
.Play {
.equipment {
position: relative;
+
.select {
position: absolute;
right: 0;
@@ -315,11 +321,13 @@ export default {
display: flex;
width: 100%;
height: 100%;
+
.item {
flex: 1;
display: inline-block;
height: auto;
border: 1px solid #DDD;
+
.title {
display: flex;
justify-content: space-between;
@@ -328,10 +336,12 @@ export default {
height: 50px;
align-items: center;
border-bottom: 1px solid #DDD;
+
.checkBox {
align-self: center;
}
}
+
.content {
padding: 10px;
box-sizing: border-box;