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 @@ + + + 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); })