From 08bb2b0d453479e12ab2d35fbe9c167a85e28c5e Mon Sep 17 00:00:00 2001
From: songguoqiang <765017469@qq.com>
Date: Fri, 15 Dec 2023 13:24:36 +0800
Subject: [PATCH] =?UTF-8?q?=E7=9C=8B=E6=9D=BF=E6=A0=B7=E5=BC=8F=E8=B0=83?=
=?UTF-8?q?=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/permission.ts | 3 +-
src/router/modules/remaining.ts | 10 +
src/views/board/Index.vue | 11 +-
src/views/board/Index1.vue | 566 ++++++++++++++++++
.../detectionTemplate.data.ts | 6 +-
src/views/tjanalysis/zlanalysis/index.vue | 8 +-
6 files changed, 597 insertions(+), 7 deletions(-)
create mode 100644 src/views/board/Index1.vue
diff --git a/src/permission.ts b/src/permission.ts
index 715dde0..25c2a56 100644
--- a/src/permission.ts
+++ b/src/permission.ts
@@ -20,7 +20,8 @@ const whiteList = [
'/bind',
'/register',
'/oauthLogin/gitee',
- '/board'
+ '/board',
+ '/board1',
]
// 路由加载前
diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts
index 2bcd643..4dfd951 100644
--- a/src/router/modules/remaining.ts
+++ b/src/router/modules/remaining.ts
@@ -195,6 +195,16 @@ const remainingRouter: AppRouteRecordRaw[] = [
noTagsView: true
}
},
+ {
+ path: '/board1',
+ component: () => import('@/views/board/index1.vue'),
+ name: 'Board1',
+ meta: {
+ hidden: true,
+ title: '看板1',
+ noTagsView: true
+ }
+ },
{
path: '/sso',
component: () => import('@/views/Login/Login.vue'),
diff --git a/src/views/board/Index.vue b/src/views/board/Index.vue
index d9fda43..ba03ced 100644
--- a/src/views/board/Index.vue
+++ b/src/views/board/Index.vue
@@ -130,7 +130,7 @@ const standardDataTotal = ref(0)
const standardDataTime = ref()
const standardData = ref({
columnWidth: [300, 120, 170, 170, 170, 170],
- header: ['零件号', '检测类型', '检测项', '检测日期', '标准', '实测值'],
+ header: ['零件号', '类型', '检测项', '检测日期', '标准', '实测值'],
indexHeader: '序号',
index: false,
data: [],
@@ -152,7 +152,7 @@ const noStandardDataTotal = ref(0)
const noStandardDataTime = ref()
const noStandardData = ref({
columnWidth: [300, 120, 170, 170, 170, 170],
- header: ['零件号', '检测类型', '检测项', '检测日期', '标准', '实测值'],
+ header: ['零件号', '类型', '检测项', '检测日期', '标准', '实测值'],
indexHeader: '序号',
index: false,
data: [],
@@ -193,6 +193,13 @@ const getpieData = async () => {
name: '',
type: 'pie',
radius: '70%',
+ label: {
+ show: true,
+ formatter(param) {
+ // correct the percentage
+ return param.name + ' (' + param.percent+ '%)';
+ }
+ },
center: ['30%', '50%'],
data: data.map((v) => {
return {
diff --git a/src/views/board/Index1.vue b/src/views/board/Index1.vue
new file mode 100644
index 0000000..1e1e498
--- /dev/null
+++ b/src/views/board/Index1.vue
@@ -0,0 +1,566 @@
+
+
+
+
+
+
{{date}}
+
+
+
+
+
+
+
+ - 外观
+ - {{ tableData.facade.wg_zs }}
+ - {{ tableData.facade.wg_ok }}
+ - {{ tableData.facade.wg_no }}
+ - {{ tableData.facade.wg_buhegelv }}
+
+
+ - 性能
+ - {{ tableData.performance.xn_zs }}
+ - {{ tableData.performance.xn_ok }}
+ - {{ tableData.performance.xn_no }}
+ - {{ tableData.performance.xn_buhegelv }}
+
+
+ - 尺寸
+ - {{ tableData.size.cc_zs }}
+ - {{ tableData.size.cc_ok }}
+ - {{ tableData.size.cc_no }}
+ - {{ tableData.size.cc_buhegelv }}
+
+
+ - 数量合计
+ - {{ tableData.sum.sum_zs }}
+ - {{ tableData.sum.sum_ok }}
+ - {{ tableData.sum.sum_no }}
+ - {{ tableData.sum.sum_buhegelv }}
+
+
+
+
+
+
+
+
+
+
+
CPK(色差)
+
{{ lineData?.CPK }}
+
CPK
+
+
+
PPK(色差)
+
{{ lineData?.PPK }}
+
PPK
+
+
+
+
+
+
+
+
合格数据
+
+
+
+
不合格数据
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/spc/detectiontemplate/detectionTemplate.data.ts b/src/views/spc/detectiontemplate/detectionTemplate.data.ts
index c0347b5..441b8a9 100644
--- a/src/views/spc/detectiontemplate/detectionTemplate.data.ts
+++ b/src/views/spc/detectiontemplate/detectionTemplate.data.ts
@@ -189,9 +189,9 @@ export const rules = reactive({
itemName: [
{ required: true, message: '请输入物料名称', trigger: 'blur' }
],
- projectName: [
- { required: true, message: '请输入项目名称', trigger: 'blur' }
- ],
+ // projectName: [
+ // { required: true, message: '请输入项目名称', trigger: 'blur' }
+ // ],
itemType: [
{ required: true, message: '请选择物料类型', trigger: 'change' }
],
diff --git a/src/views/tjanalysis/zlanalysis/index.vue b/src/views/tjanalysis/zlanalysis/index.vue
index c2f301f..7137dbd 100644
--- a/src/views/tjanalysis/zlanalysis/index.vue
+++ b/src/views/tjanalysis/zlanalysis/index.vue
@@ -643,9 +643,15 @@ function resetDats() {
datas.echatrtData = null
datas.ranData = null
}
-
+const handleResize = () => {
+ window.location.reload()
+}
onMounted(async () => {
initQuerys()
+ window.addEventListener('resize', handleResize)
+})
+onUnmounted(() => {
+ window.removeEventListener('resize', handleResize);
})