From 6fabf169ee373a68196d84907eed9346089af9ee Mon Sep 17 00:00:00 2001
From: 小小儁爺 <1694218219@qq.com>
Date: 星期四, 26 三月 2026 09:05:31 +0800
Subject: [PATCH] 1.sop页面优化
---
src/views/kanbanManager/cj.vue | 29 +++++++++++++++++++++--------
1 files changed, 21 insertions(+), 8 deletions(-)
diff --git a/src/views/kanbanManager/cj.vue b/src/views/kanbanManager/cj.vue
index 30f08aa..21d4073 100644
--- a/src/views/kanbanManager/cj.vue
+++ b/src/views/kanbanManager/cj.vue
@@ -9,8 +9,10 @@
<span>娴欐睙浼樻浣撹偛鐢ㄥ搧鑲′唤鏈夐檺鍏徃</span>
</div>
- <div class="kb_headTime kb_header_text" style="top: 35px;left: 828px">
- <span>杞﹂棿鏁板瓧鍖栫湅鏉�</span>
+ <!-- <div class="kb_headTime kb_header_text" style="top: 35px;left: 828px">-->
+ <div class="kb_headTime kb_header_text" style="top: 35px;left: 800px">
+ <!-- <span>杞﹂棿鏁板瓧鍖栫湅鏉�</span>-->
+ <span>{{ title }}鏁板瓧鍖栫湅鏉�</span>
</div>
<div class="kb_headTime" style="top: 35px;right: 25px">
@@ -82,6 +84,7 @@
WorkShopProduceBottomRightData,
WorkShopProduceTopData
} from '@/api/kanbanManager'
+import { PrentOrganizationNoCompany } from '@/api/GeneralBasicData'
export default {
name: 'Cjsc',
@@ -124,7 +127,9 @@
columnWidth: [200, 140, 350, 350, 130, 130, 130, 130, 130, 130, 130],
align: ['center', 'center', 'center', 'center', 'center', 'center', 'center', 'center', 'center', 'center', 'center']
// carousel: 'page'
- }
+ },
+ wkshopcode: '',
+ title: ''
}
},
@@ -137,6 +142,14 @@
}, 1000 * 60 * 120)
},
async mounted() {
+ const res = await PrentOrganizationNoCompany()
+
+ if (window.location.hash.indexOf('?') !== -1) {
+ const code = window.location.hash.split('?')[1].split('=')[1]
+ this.title = res.data.find(i => i.torg_code === code).torg_name
+ this.wkshopcode = code
+ }
+
await this.getWorkShopProduceTopData()
setInterval(() => {
this.getWorkShopProduceTopData()
@@ -152,7 +165,7 @@
},
methods: {
async getWorkShopProduceTopData() {
- WorkShopProduceTopData({ wkshopcode: '1' }).then(res => {
+ WorkShopProduceTopData({ wkshopcode: this.wkshopcode }).then(res => {
const flag = this.compareArrays(this.configTableTop.data, res.data)
if (!flag) {
this.configTableTop.data = res.data.map(i =>
@@ -189,14 +202,14 @@
// { code: '04', name: '鍠锋紗' },
// { code: '05', name: '缁勮鎴愬搧' }
- { code: '1', name: '鐢熶骇閮�' }
+ { code: this.wkshopcode, name: '鐢熶骇閮�' }
]
const res4 = await WorkShopProduceBottomLeftData({ wkshopcode: temp.map(i => i.code).join(',') })
// this.cjzl03_xData = res4.data['101,001'].map(i => i.click_date)
// this.cjzl03_yData = res4.data['101,001'].map(i => i.count)
- const a = res4.data['1'].map(i => i.click_date) // echarts妯潗鏍�
+ const a = res4.data[this.wkshopcode].map(i => i.click_date) // echarts妯潗鏍�
const b = temp.map(i => i.name)// legendData鍊�
const c = [
// res4.data['01'].map(i => i.count),
@@ -204,7 +217,7 @@
// res4.data['03'].map(i => i.count),
// res4.data['04'].map(i => i.count),
// res4.data['05'].map(i => i.count)
- res4.data['1'].map(i => i.count)
+ res4.data[this.wkshopcode].map(i => i.count)
]// 绾靛潗鏍囧��
loadEcharts('cjzl03', cjzl03(a, b, c))
@@ -223,7 +236,7 @@
// { code: '04', name: '鍠锋紗' },
// { code: '05', name: '缁勮鎴愬搧' }
- { code: '1', name: '鐢熶骇閮�' }
+ { code: this.wkshopcode, name: '鐢熶骇閮�' }
]
const res5 = await WorkShopProduceBottomRightData({ wkshopcode: temp.map(i => i.code).join(',') })
this.RightBottom = res5.data
--
Gitblit v1.9.3