From a169bda5b19db4714d2aa476504e58105228cc40 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期二, 30 五月 2023 18:01:55 +0800
Subject: [PATCH] 1.对接移动端
---
src/views/kb/cjzl.vue | 34 ++++++++++++++++++++--------------
1 files changed, 20 insertions(+), 14 deletions(-)
diff --git a/src/views/kb/cjzl.vue b/src/views/kb/cjzl.vue
index 383bf9a..d372cb1 100644
--- a/src/views/kb/cjzl.vue
+++ b/src/views/kb/cjzl.vue
@@ -3,9 +3,9 @@
<div class="kb_dashboard">
<!-- 鏄熺┖鑳屾櫙-->
- <div ref="starsRef" class="stars">
- <div v-for="(item, index) in starsCount" :key="index" class="star" />
- </div>
+ <!-- <div ref="starsRef" class="stars">-->
+ <!-- <div v-for="(item, index) in starsCount" :key="index" class="star" />-->
+ <!-- </div>-->
<div class="kb_header">
<div class="flex_c_c kb_header_text">
@@ -50,7 +50,7 @@
<el-table
ref="tableDataLeftCenterRef"
:data="tableDataCenterTop"
- class="tableData"
+ class="tableData tableDataCell"
style="width: 100%;"
:header-cell-style="headerCellStyleCenter"
:cell-style="cellStyleCenter"
@@ -59,7 +59,7 @@
<el-table-column
prop="lm_date"
label="鏃ユ湡"
- width="115"
+ width="100"
>
<template slot-scope="{row}">
<div
@@ -72,7 +72,7 @@
</el-table-column>
<el-table-column
prop="eqp_name"
- width="95"
+ width="80"
label="浜х嚎鍚嶇О"
>
<template slot-scope="{row}">
@@ -82,7 +82,7 @@
<el-table-column
prop="wo_code"
label="鐢熶骇鍗曞彿"
- width="188"
+ width="173"
>
<template slot-scope="{row}">
<div style="color: #00FFFF">{{ row.wo_code }}</div>
@@ -91,7 +91,7 @@
<el-table-column
prop="partname"
- width="100"
+ width="190"
label="浜у搧鍚嶇О"
>
<template slot-scope="{row}">
@@ -110,16 +110,16 @@
<el-table-column
prop="ng_qty"
label="涓嶈壇鏁伴噺"
- width="92"
+ width="77"
/>
<el-table-column
prop="report_qty"
label="鎶ュ伐鏁伴噺"
- width="92"
+ width="77"
/>
<el-table-column
label="涓嶈壇鍗犳瘮"
- width="92"
+ width="77"
>
<template slot-scope="{row}">
<div>{{ parseFloat((row.ng_qty*100/(row.ng_qty+row.report_qty)).toFixed(2)) }}%</div>
@@ -191,7 +191,7 @@
this.getEcharts()
- this.setStarsRef()
+ // this.setStarsRef()
},
methods: {
setStarsRef() {
@@ -267,12 +267,11 @@
const timer = setInterval(() => {
startValue = startValue + scale
this.tableDataCenterTop = this.tableDataCenterTopTemp.slice(startValue, startValue + scale)
+ nowLoop++
if (nowLoop === loop) {
clearInterval(timer)
this.getCenterTableDataSetInterval()
}
-
- nowLoop++
}, 1000 * 10)
})
},
@@ -359,6 +358,13 @@
.el-table__empty-text{
color: $main_color;
}
+
+.tableDataCell {
+ ::v-deep .cell{
+ padding: 0 2px ;
+ }
+}
+
</style>
<!--鏄熺┖-->
--
Gitblit v1.9.3