From bf2f6079c6b94e1e429c48501a13fa38be71ecd0 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期五, 02 十二月 2022 10:08:26 +0800
Subject: [PATCH] 1.看板接口接入
---
src/views/kb/cjsc.vue | 2 +-
src/views/kb/cjzl.vue | 22 ++++++++++++----------
src/views/scgl/sckbg.vue | 2 +-
src/views/kb/zhkb.vue | 33 +++++++++++++++++++--------------
4 files changed, 33 insertions(+), 26 deletions(-)
diff --git a/src/views/kb/cjsc.vue b/src/views/kb/cjsc.vue
index 55518ac..7e07154 100644
--- a/src/views/kb/cjsc.vue
+++ b/src/views/kb/cjsc.vue
@@ -370,7 +370,7 @@
let startValue = 0 // 鍒濆鍊�
const scale = 10// 鍒诲害
- WkshpLineData({ LineCode: 'DEV06' }).then(res => {
+ WkshpLineData({ LineCode: 'DEV01' }).then(res => {
this.tableDataLeftTopTemp = res.data
this.tableDataLeftTop = this.tableDataLeftTopTemp.slice(startValue, startValue + scale)
diff --git a/src/views/kb/cjzl.vue b/src/views/kb/cjzl.vue
index 4eb0e90..d962a3f 100644
--- a/src/views/kb/cjzl.vue
+++ b/src/views/kb/cjzl.vue
@@ -65,12 +65,12 @@
</template>
</el-table-column>
<el-table-column
- prop="cxmc"
+ prop="eqp_name"
width="95"
label="浜х嚎鍚嶇О"
>
<template slot-scope="{row}">
- <div>{{ row.cxmc }}</div>
+ <div>{{ row.eqp_name }}</div>
</template>
</el-table-column>
<el-table-column
@@ -84,12 +84,12 @@
</el-table-column>
<el-table-column
- prop="cpmc"
+ prop="partname"
width="100"
label="浜у搧鍚嶇О"
>
<template slot-scope="{row}">
- <div class="ellipsis">{{ row.cpmc }}</div>
+ <div class="ellipsis">{{ row.partname }}</div>
</template>
</el-table-column>
<el-table-column
@@ -162,7 +162,9 @@
headTime: '',
tableDataCenterTop: [],
- tableDataCenterTopTemp: []
+ tableDataCenterTopTemp: [],
+
+ StepCode: 'Step02'
}
},
created() {
@@ -204,26 +206,26 @@
}, 1000 * 10)
},
getLeftTopEcharts() {
- BadTop5({ StepCode: 'Step02' }).then(res => {
+ BadTop5({ StepCode: this.StepCode }).then(res => {
const dataArr = res.data.map(i => i.cont)
const titlenameArr = res.data.map(i => i.name)
loadEcharts('bar01', bar02(dataArr, titlenameArr))
})
},
getLeftBottomEcharts() {
- BadWeek({ StepCode: 'Step02' }).then(res => {
+ BadWeek({ StepCode: this.StepCode }).then(res => {
const dataX = res.data.map(i => i.click_date)
const dataY = res.data.map(i => i.count)
loadEcharts('line01', line02(dataX, dataY))
})
},
getRightTopEcharts() {
- BadDayDistriBute({ StepCode: 'Step02' }).then(res => {
+ BadDayDistriBute({ StepCode: this.StepCode }).then(res => {
loadEcharts('bar02', bar04(res.data))
})
},
getRightBottomEcharts() {
- BadWeekDistriBute({ StepCode: 'Step02' }).then(res => {
+ BadWeekDistriBute({ StepCode: this.StepCode }).then(res => {
loadEcharts('pie01', pie02(res.data))
})
},
@@ -231,7 +233,7 @@
getCenterTableDataSetInterval() {
let startValue = 0 // 鍒濆鍊�
const scale = 23// 鍒诲害
- BadContManger({ StepCode: 'Step02' }).then(res => {
+ BadContManger({ StepCode: this.StepCode }).then(res => {
this.tableDataCenterTopTemp = res.data
this.tableDataCenterTop = this.tableDataCenterTopTemp.slice(startValue, startValue + scale)
diff --git a/src/views/kb/zhkb.vue b/src/views/kb/zhkb.vue
index eee8119..71306e9 100644
--- a/src/views/kb/zhkb.vue
+++ b/src/views/kb/zhkb.vue
@@ -313,21 +313,26 @@
res1.data.forEach(item => {
this.ShopArr.push(item.org_code)
})
- this.getShopSearchLine()
- this.getRightRightData()
- this.getLeftBottomData()
- this.getEcharts()
+
+ if (this.ShopArr.length > 0) {
+ this.getShopSearchLine()
+ this.getRightRightData()
+ this.getLeftBottomData()
+ this.getEcharts()
+ }
}
- setInterval(() => {
- this.ShopSearchTask = ShopSearch().then(res1 => {
- if (res1.code === '200') {
- this.ShopArr = []
- res1.data.forEach(item => {
- this.ShopArr.push(item.org_code)
- })
- }
- })
- }, 1000 * 60)
+ if (this.ShopArr.length > 0) {
+ setInterval(() => {
+ this.ShopSearchTask = ShopSearch().then(res1 => {
+ if (res1.code === '200') {
+ this.ShopArr = []
+ res1.data.forEach(item => {
+ this.ShopArr.push(item.org_code)
+ })
+ }
+ })
+ }, 1000 * 60)
+ }
},
// 浜х嚎鍔犲伐涓换鍔�
getShopSearchLine() {
diff --git a/src/views/scgl/sckbg.vue b/src/views/scgl/sckbg.vue
index 8b06dd7..e4fbd71 100644
--- a/src/views/scgl/sckbg.vue
+++ b/src/views/scgl/sckbg.vue
@@ -297,7 +297,7 @@
sortable="custom"
/>
<el-table-column
- label="鏈姤宸ユ暟閲�"
+ label="鏈敹鏂欐暟閲�"
width="120"
>
<!-- sortable="custom"-->
--
Gitblit v1.9.3