diff --git a/src/components/isolate-area-1/Area.vue b/src/components/isolate-area-1/Area.vue index 2107b84..389c37c 100644 --- a/src/components/isolate-area-1/Area.vue +++ b/src/components/isolate-area-1/Area.vue @@ -1,12 +1,20 @@ @@ -22,6 +30,8 @@ export default { components: { DragabbleContainer, SmallBox2 }, data() { return { + pressure: '10.1'.split(''), + runtime: '0012'.split(''), rdata: [ // { icon: "temp", title: "车间温度", value: "27℃" }, { icon: "fire", title: "当前火向", value: "" }, @@ -31,13 +41,13 @@ export default { }; }, watch: { - fireDirection: function(val) { + fireDirection: function (val) { this.$set(this.rdata[0], 'value', val) }, - fireChangeTime: function(val) { + fireChangeTime: function (val) { this.$set(this.rdata[1], 'value', val) }, - lastFireChangeTime: function(val) { + lastFireChangeTime: function (val) { let [_, min, sec] = /(\d+)分(\d+)秒/.exec(val || '0分0秒') if (timeFun) clearInterval(timeFun) timeFun = setInterval(() => { @@ -65,11 +75,23 @@ export default { .isolate-area-1 { display: flex; + color: $main-color; + background: lightyellow; - > .small-box-2:not(:last-child) { + > *:not(:last-child) { margin: { - right: adjust(15px); + right: adjust(10px); } } + + > .data { + background: lightgreen; + } + + // > .data-center + .data-center { + // margin: { + // left: adjust(15px); + // } + // } }