diff --git a/src/views/databoard/components/Container.vue b/src/views/databoard/components/Container.vue index e86c92e5..8728eb17 100644 --- a/src/views/databoard/components/Container.vue +++ b/src/views/databoard/components/Container.vue @@ -11,7 +11,7 @@ - +
-
+
+ \ No newline at end of file diff --git a/src/views/databoard/wholePlant/OrderStatus.vue b/src/views/databoard/wholePlant/OrderStatus.vue index e2ef9be3..945b7d60 100644 --- a/src/views/databoard/wholePlant/OrderStatus.vue +++ b/src/views/databoard/wholePlant/OrderStatus.vue @@ -25,7 +25,7 @@ export default { headerBGC: 'rgba(32, 55, 96, 0.8)', oddRowBGC: 'rgba(32, 55, 96, 0.8)', evenRowBGC: 'rgba(14, 32, 62, 0.8)', - columnWidth: [155, 180, 150], + columnWidth: [155, 160, 150], data: [], rowNum: 6 } @@ -33,34 +33,24 @@ export default { }, mounted() {}, watch:{ - order: { - handler(newVal, oldVal) { + order:{ + handler() { let outArr = this.order.map((item) => [ - formatDate(item.planStartTime) || '', + formatDate(item.planStartTime) || '', `${item.customerName || ''}`, `${item.specifications || ''}`, - `${item.completeRate?(item.completeRate*100).toFixed(2)+'%':'0%'} -
-
-
-
-
+ `${item.completeRate?(item.completeRate*100).toFixed(2)+'%':'0%'} +
+ + + +
` ]); this.config.data = outArr this.$refs['orderScrollBoard'].updateRows(outArr) - } - } + } + } } } - - \ No newline at end of file + \ No newline at end of file diff --git a/src/views/databoard/wholePlant/index.vue b/src/views/databoard/wholePlant/index.vue index 822f7e5c..6591c61b 100644 --- a/src/views/databoard/wholePlant/index.vue +++ b/src/views/databoard/wholePlant/index.vue @@ -107,7 +107,7 @@ export default { screenfull.toggle(this.$refs.wholePlantContainerB) }, resetSize() { - let wholePlantContainerBox = document.querySelector('#wholePlantContainer') + let wholePlantContainerBox = document.getElementById('wholePlantContainer') let rw = parseFloat(window.innerWidth) let rh = parseFloat(window.innerHeight) let bw = parseFloat(wholePlantContainerBox.style.width)