2024-08-23 13:19:20 +08:00
|
|
|
|
<!-- 真正的首页 -->
|
|
|
|
|
|
<template>
|
2025-01-06 14:07:21 +08:00
|
|
|
|
<div class='static'>
|
|
|
|
|
|
<el-row :gutter='10'>
|
|
|
|
|
|
<el-col :lg='4' :xl='4' :md='4' :sm='4'>
|
|
|
|
|
|
<div class='left_tree'>
|
|
|
|
|
|
<tree ref='treeRef' :updateSelectedTreeNode='getPieData || (() => {})' />
|
2024-08-27 18:46:35 +08:00
|
|
|
|
</div>
|
2025-01-06 14:07:21 +08:00
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :lg='20' :xl='20' :md='20' :sm='20'>
|
|
|
|
|
|
<div class='right_container'>
|
|
|
|
|
|
<!-- 功能选择 -->
|
|
|
|
|
|
<div class='container_function'>
|
|
|
|
|
|
<div
|
|
|
|
|
|
class='function_item'
|
|
|
|
|
|
:class="item.checked ? 'function_item checked_function' : 'function_item'"
|
|
|
|
|
|
v-for='(item, index) in tabsList'
|
|
|
|
|
|
:key='index'
|
|
|
|
|
|
@click='handleCheckFunction(item.value)'
|
|
|
|
|
|
>
|
|
|
|
|
|
<div class='item_img'>
|
|
|
|
|
|
<img :src='item.img' />
|
2024-12-20 10:19:58 +08:00
|
|
|
|
</div>
|
2025-01-06 14:07:21 +08:00
|
|
|
|
<div class='item_text'>
|
|
|
|
|
|
<p>{{ item.label }}</p>
|
2024-12-20 10:19:58 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2025-01-06 14:07:21 +08:00
|
|
|
|
<!--检测计划统计 饼图统计-->
|
|
|
|
|
|
<div class='container_pieShow'>
|
|
|
|
|
|
<el-collapse model-value='1' accordion @change='handleCollapseChange'>
|
|
|
|
|
|
<el-collapse-item name='1'>
|
|
|
|
|
|
<template #title>
|
|
|
|
|
|
<div class='container_pieShow_title'>
|
|
|
|
|
|
<span>检测计划统计</span>
|
|
|
|
|
|
<span>{{ planName }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<!-- 饼图 -->
|
|
|
|
|
|
<div class='container_charts'>
|
|
|
|
|
|
<div class='charts_info' ref='chartsInfoRef'>
|
|
|
|
|
|
<pie
|
|
|
|
|
|
:customData="{
|
|
|
|
|
|
title: '设备检测状态',
|
|
|
|
|
|
textAlign: 'left',
|
2025-01-14 19:05:08 +08:00
|
|
|
|
|
2025-01-06 14:07:21 +08:00
|
|
|
|
}"
|
|
|
|
|
|
:legendData="{
|
|
|
|
|
|
icon: 'circle',
|
|
|
|
|
|
left: 'left',
|
|
|
|
|
|
top: 'bottom',
|
|
|
|
|
|
}"
|
|
|
|
|
|
:chartsData='chartsData1'
|
|
|
|
|
|
ref='pieRef1'
|
|
|
|
|
|
></pie>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class='charts_info'>
|
|
|
|
|
|
<pie
|
|
|
|
|
|
:customData="{
|
|
|
|
|
|
title: '设备检测结果',
|
|
|
|
|
|
textAlign: 'left',
|
|
|
|
|
|
}"
|
|
|
|
|
|
:legendData="{
|
|
|
|
|
|
icon: 'circle',
|
|
|
|
|
|
left: 'left',
|
|
|
|
|
|
top: 'bottom',
|
|
|
|
|
|
}"
|
|
|
|
|
|
:chartsData='chartsData2'
|
|
|
|
|
|
ref='pieRef2'
|
|
|
|
|
|
></pie>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class='charts_info'>
|
|
|
|
|
|
<pie
|
|
|
|
|
|
:customData="{
|
|
|
|
|
|
title: '设备报告状态',
|
|
|
|
|
|
textAlign: 'left',
|
|
|
|
|
|
}"
|
|
|
|
|
|
:legendData="{
|
|
|
|
|
|
icon: 'circle',
|
|
|
|
|
|
left: 'left',
|
|
|
|
|
|
top: 'bottom',
|
|
|
|
|
|
}"
|
|
|
|
|
|
:chartsData='chartsData3'
|
|
|
|
|
|
ref='pieRef3'
|
|
|
|
|
|
></pie>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</el-collapse-item>
|
|
|
|
|
|
</el-collapse>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!--下方表格数据-->
|
|
|
|
|
|
<el-tabs class='tabs-menu' type='border-card' @tab-change='handleTabsChange' v-model='editableTabsValue'
|
|
|
|
|
|
:style='{ height: tabsHeight }'>
|
2025-01-08 11:40:12 +08:00
|
|
|
|
<el-tab-pane :label='tabLabel1' :style='{ height: tabPaneHeight}'>
|
2025-01-06 14:07:21 +08:00
|
|
|
|
<!-- 列表数据 -->
|
|
|
|
|
|
<div class='container_table' :style='{ height: tableHeight }'>
|
2025-01-13 21:06:24 +08:00
|
|
|
|
<Table ref='tableRef1' :id='currentId' :isTimeCheck='isTimeCheck' :plan = 'select_Plan' @batchGenerateClicked="handleBatchGenerate"></Table>
|
2025-01-06 14:07:21 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
|
</el-tabs>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
2024-08-23 13:19:20 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
2025-01-06 14:07:21 +08:00
|
|
|
|
<script lang='ts' setup>
|
|
|
|
|
|
import pie from '@/components/echarts/pie/default.vue'
|
|
|
|
|
|
import { useRouter } from 'vue-router'
|
|
|
|
|
|
import tree from '../components/tree.vue'
|
|
|
|
|
|
import Table from '../components/table.vue'
|
2024-11-29 13:45:48 +08:00
|
|
|
|
import deviceDataList from '@/api/device/device/deviceData'
|
2025-01-06 14:07:21 +08:00
|
|
|
|
import { getBoundPqDevList, getPlanListByPattern } from '@/api/plan/plan.ts'
|
|
|
|
|
|
import { onBeforeMount, onUnmounted, ref, watch } from 'vue'
|
|
|
|
|
|
import { useModeStore } from '@/stores/modules/mode' // 引入模式 store
|
|
|
|
|
|
import { useDictStore } from '@/stores/modules/dict'
|
|
|
|
|
|
import { type Plan } from '@/api/plan/interface'
|
|
|
|
|
|
import type { CollapseModelValue } from 'element-plus/es/components/collapse/src/collapse.mjs'
|
|
|
|
|
|
import { type Device } from '@/api/device/interface/device'
|
|
|
|
|
|
import { ResultData } from '@/api/interface'
|
2024-11-29 13:45:48 +08:00
|
|
|
|
|
2024-12-30 14:43:13 +08:00
|
|
|
|
const planName = ref('')
|
2024-12-13 16:35:27 +08:00
|
|
|
|
const dictStore = useDictStore()
|
2025-01-06 14:07:21 +08:00
|
|
|
|
const modeStore = useModeStore()
|
|
|
|
|
|
const chartsInfoRef = ref<HTMLElement | null>(null)
|
|
|
|
|
|
const chartsWidth = ref<number>(0)
|
2024-11-29 13:45:48 +08:00
|
|
|
|
const deviceData = deviceDataList.plan_devicedata
|
2025-01-06 14:07:21 +08:00
|
|
|
|
const treeRef = ref()
|
2024-08-23 13:19:20 +08:00
|
|
|
|
const form: any = ref({
|
2024-11-14 11:45:25 +08:00
|
|
|
|
activeTabs: 0, //功能选择,例如报告生成
|
|
|
|
|
|
activeChildTabs: 0,//子功能选择,例如未检设备报告生成,或已检设备更换误差体系生成
|
2024-08-23 13:19:20 +08:00
|
|
|
|
checkStatus: 0, //检测状态
|
|
|
|
|
|
checkReportStatus: 0, //检测报告状态
|
|
|
|
|
|
checkResult: 0, //检测结果
|
|
|
|
|
|
deviceBindStatus: 0, //绑定状态
|
|
|
|
|
|
deviceType: 0, //设备类型
|
|
|
|
|
|
manufacturer: 0, //制造厂商
|
2025-01-06 14:07:21 +08:00
|
|
|
|
})
|
|
|
|
|
|
const router = useRouter()
|
|
|
|
|
|
const tabShow = ref(false)
|
2024-11-15 09:34:43 +08:00
|
|
|
|
const tabLabel1 = ref('设备检测')
|
2024-11-12 20:35:12 +08:00
|
|
|
|
const editableTabsValue = ref('0')
|
2024-12-20 10:19:58 +08:00
|
|
|
|
const checkStateTable = ref<number[]>([0, 1, 2])
|
2025-01-06 14:07:21 +08:00
|
|
|
|
const tabsHeight = ref('calc(100vh - 522px)') // 初始高度
|
|
|
|
|
|
const tabPaneHeight = ref('calc(100% - 5px)') // 初始高度
|
|
|
|
|
|
const tableHeight = ref('calc(100% - 50px)') // 初始高度
|
2024-11-29 13:45:48 +08:00
|
|
|
|
|
2025-01-06 14:07:21 +08:00
|
|
|
|
const isTimeCheck = ref<boolean>(false)
|
|
|
|
|
|
const planList = ref<ResultData<Plan.ReqPlan[]>>()
|
2025-01-08 11:40:12 +08:00
|
|
|
|
const select_Plan = ref<Plan.ReqPlan>()
|
2024-12-13 16:35:27 +08:00
|
|
|
|
const handleCollapseChange = (val: CollapseModelValue) => {
|
2024-11-29 13:45:48 +08:00
|
|
|
|
|
|
|
|
|
|
// 计算新的高度
|
2025-01-06 14:07:21 +08:00
|
|
|
|
let newHeight
|
2024-12-13 16:35:27 +08:00
|
|
|
|
if (Array.isArray(val)) {
|
2025-01-06 14:07:21 +08:00
|
|
|
|
newHeight = val.length > 0 ? 'calc(100vh - 522px)' : 'calc(100vh - 333px)'
|
2024-12-13 16:35:27 +08:00
|
|
|
|
} else {
|
2025-01-06 14:07:21 +08:00
|
|
|
|
newHeight = val ? 'calc(100vh - 538px)' : 'calc(100vh - 333px)'
|
2024-12-13 16:35:27 +08:00
|
|
|
|
}
|
2025-01-06 14:07:21 +08:00
|
|
|
|
tabsHeight.value = newHeight
|
|
|
|
|
|
tabPaneHeight.value = `calc(100% - 5px)`
|
|
|
|
|
|
tableHeight.value = `calc(100% - 5px)`
|
|
|
|
|
|
}
|
2024-11-29 13:45:48 +08:00
|
|
|
|
|
2024-12-13 16:35:27 +08:00
|
|
|
|
const handleTabsChange = (val: any) => {
|
2025-01-06 14:07:21 +08:00
|
|
|
|
form.value.activeTabs = 0
|
|
|
|
|
|
form.value.activeTabs = 3
|
|
|
|
|
|
form.value.activeChildTabs = Number(val)
|
2024-11-14 18:36:00 +08:00
|
|
|
|
|
2024-11-12 20:35:12 +08:00
|
|
|
|
}
|
2025-01-06 14:07:21 +08:00
|
|
|
|
localStorage.setItem('color', 'red')
|
2024-08-23 13:19:20 +08:00
|
|
|
|
//功能选择数据
|
2024-08-27 14:01:26 +08:00
|
|
|
|
const tabsList = ref([
|
2024-08-23 13:19:20 +08:00
|
|
|
|
{
|
2025-01-06 14:07:21 +08:00
|
|
|
|
label: '设备检测',
|
2024-08-23 13:19:20 +08:00
|
|
|
|
value: 0,
|
2025-01-15 10:29:19 +08:00
|
|
|
|
img: new URL('/src/assets/images/plan/static/1.svg', import.meta.url).href,
|
2024-08-27 14:01:26 +08:00
|
|
|
|
checked: true,
|
2024-08-23 13:19:20 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2025-01-06 14:07:21 +08:00
|
|
|
|
label: '报告生成',
|
2024-08-23 13:19:20 +08:00
|
|
|
|
value: 3,
|
2025-01-15 10:29:19 +08:00
|
|
|
|
img: new URL('/src/assets/images/plan/static/3.svg', import.meta.url).href,
|
2024-08-27 14:01:26 +08:00
|
|
|
|
checked: false,
|
2024-08-23 13:19:20 +08:00
|
|
|
|
},
|
2024-11-18 22:04:59 +08:00
|
|
|
|
{
|
2025-01-06 14:07:21 +08:00
|
|
|
|
label: '设备归档',
|
2024-12-09 16:17:04 +08:00
|
|
|
|
value: 4,
|
2025-01-15 10:29:19 +08:00
|
|
|
|
img: new URL('/src/assets/images/plan/static/4.svg', import.meta.url).href,
|
2024-12-09 16:17:04 +08:00
|
|
|
|
checked: false,
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
2025-01-06 14:07:21 +08:00
|
|
|
|
label: '数据操作',
|
2024-11-18 22:04:59 +08:00
|
|
|
|
value: 5,
|
2025-01-15 10:29:19 +08:00
|
|
|
|
img: new URL('/src/assets/images/plan/static/5.svg', import.meta.url).href,
|
2024-11-18 22:04:59 +08:00
|
|
|
|
checked: false,
|
|
|
|
|
|
},
|
2025-01-06 14:07:21 +08:00
|
|
|
|
])
|
2024-11-29 13:45:48 +08:00
|
|
|
|
|
2025-01-06 14:07:21 +08:00
|
|
|
|
form.value.activeTabs = tabsList.value[0].value
|
|
|
|
|
|
const tableRef1 = ref()
|
|
|
|
|
|
const tableRef2 = ref()
|
|
|
|
|
|
const currentId = ref('')
|
2024-11-29 13:45:48 +08:00
|
|
|
|
|
2025-01-13 21:26:12 +08:00
|
|
|
|
|
2024-09-02 16:10:33 +08:00
|
|
|
|
watch(
|
2025-01-06 14:07:21 +08:00
|
|
|
|
() => form.value,
|
|
|
|
|
|
(val, oldVal) => {
|
|
|
|
|
|
if (val) {
|
|
|
|
|
|
|
|
|
|
|
|
if (form.value.activeTabs === 0)//设备检测
|
|
|
|
|
|
{
|
|
|
|
|
|
const tabledata = deviceData.filter((item) => item.document_State === '未归档')
|
|
|
|
|
|
tableRef1.value && tableRef1.value.changeActiveTabs(form.value.activeTabs, form.value.activeChildTabs, tabledata)
|
|
|
|
|
|
} else if (form.value.activeTabs === 4)//设备归档
|
|
|
|
|
|
{
|
|
|
|
|
|
const tabledata = deviceData.filter((item) => item.check_State === '检测完成' && item.document_State === '未归档')
|
|
|
|
|
|
tableRef1.value && tableRef1.value.changeActiveTabs(form.value.activeTabs, form.value.activeChildTabs, tabledata)
|
|
|
|
|
|
} else if (form.value.activeTabs === 3 || form.value.activeTabs === 5)//报告生成、数据查询
|
|
|
|
|
|
{
|
|
|
|
|
|
const tabledata = deviceData.filter((item) => item.check_State === '检测完成')
|
|
|
|
|
|
tableRef1.value && tableRef1.value.changeActiveTabs(form.value.activeTabs, form.value.activeChildTabs, tabledata)
|
2024-12-20 10:19:58 +08:00
|
|
|
|
}
|
2024-11-29 13:45:48 +08:00
|
|
|
|
}
|
2025-01-06 14:07:21 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
immediate: true,
|
|
|
|
|
|
deep: true,
|
|
|
|
|
|
},
|
|
|
|
|
|
)
|
2024-11-12 20:35:12 +08:00
|
|
|
|
watch(
|
2025-01-06 14:07:21 +08:00
|
|
|
|
() => form.value,
|
|
|
|
|
|
(val, oldVal) => {
|
|
|
|
|
|
if (val) {
|
|
|
|
|
|
tableRef2.value && tableRef2.value.changeActiveTabs(form.value.activeTabs, form.value.activeChildTabs)
|
2024-09-02 16:10:33 +08:00
|
|
|
|
}
|
2025-01-06 14:07:21 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
immediate: true,
|
|
|
|
|
|
deep: true,
|
|
|
|
|
|
},
|
|
|
|
|
|
)
|
2025-01-13 21:26:12 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-08-23 13:19:20 +08:00
|
|
|
|
const pieRef1 = ref(),
|
2025-01-06 14:07:21 +08:00
|
|
|
|
pieRef2 = ref(),
|
|
|
|
|
|
pieRef3 = ref()
|
2024-12-17 13:57:18 +08:00
|
|
|
|
|
2024-08-23 13:19:20 +08:00
|
|
|
|
const chartsData1: any = ref([]),
|
2025-01-06 14:07:21 +08:00
|
|
|
|
chartsData2: any = ref([]),
|
|
|
|
|
|
chartsData3: any = ref([])
|
2024-12-18 15:49:29 +08:00
|
|
|
|
|
2024-12-20 10:19:58 +08:00
|
|
|
|
const findPlanById = (plans: Plan.ReqPlan[], id: string): Plan.ReqPlan | undefined => {
|
2024-12-18 15:49:29 +08:00
|
|
|
|
for (const plan of plans) {
|
|
|
|
|
|
if (plan.id === id) {
|
2025-01-06 14:07:21 +08:00
|
|
|
|
return plan
|
2024-12-18 15:49:29 +08:00
|
|
|
|
}
|
|
|
|
|
|
if (plan.children) {
|
2025-01-06 14:07:21 +08:00
|
|
|
|
const foundPlan = findPlanById(plan.children, id)
|
2024-12-18 15:49:29 +08:00
|
|
|
|
if (foundPlan) {
|
2025-01-06 14:07:21 +08:00
|
|
|
|
return foundPlan
|
2024-12-18 15:49:29 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-01-06 14:07:21 +08:00
|
|
|
|
return undefined
|
|
|
|
|
|
}
|
2024-12-18 15:49:29 +08:00
|
|
|
|
|
2024-12-13 16:35:27 +08:00
|
|
|
|
const getPieData = async (id: string) => {
|
2025-01-06 14:07:21 +08:00
|
|
|
|
currentId.value = id // 设置当前ID
|
2024-12-16 14:09:21 +08:00
|
|
|
|
// 初始化计数对象
|
2025-01-06 14:07:21 +08:00
|
|
|
|
const checkStateCount: { [key: number]: number } = { 0: 0, 1: 0, 2: 0, 3: 0 }
|
|
|
|
|
|
const checkResultCount: { [key: number]: number } = { 0: 0, 1: 0, 2: 0 }
|
|
|
|
|
|
const reportStateCount: { [key: number]: number } = { 0: 0, 1: 0, 2: 0 }
|
2024-12-17 13:57:18 +08:00
|
|
|
|
if (id) {
|
|
|
|
|
|
const boundPqDevList = ref<Device.ResPqDev[]>([])//根据检测计划id查询出所有已绑定的设备
|
2025-01-06 14:07:21 +08:00
|
|
|
|
const plan = findPlanById(planList.value?.data || [], id)
|
|
|
|
|
|
planName.value = '所选计划:' + plan.name
|
2025-01-08 11:40:12 +08:00
|
|
|
|
select_Plan.value = plan
|
2024-12-18 15:49:29 +08:00
|
|
|
|
if (plan) {
|
2024-12-30 14:43:13 +08:00
|
|
|
|
//isTimeCheck.value = plan.timeCheck === 1; // 将 1 转换为 true,0 转换为 false
|
2025-01-06 14:07:21 +08:00
|
|
|
|
isTimeCheck.value = false // 将 1 转换为 true,0 转换为 false ----目前不用守时检测,先去除
|
2024-12-18 15:49:29 +08:00
|
|
|
|
} else {
|
|
|
|
|
|
// 处理未找到计划的情况
|
2025-01-06 14:07:21 +08:00
|
|
|
|
isTimeCheck.value = false // 或者其他默认值
|
2024-12-18 15:49:29 +08:00
|
|
|
|
}
|
2025-01-06 14:07:21 +08:00
|
|
|
|
const pqDevList_Result2 = await getBoundPqDevList({ 'planId': id, 'checkStateList': [0, 1, 2, 3] })
|
|
|
|
|
|
boundPqDevList.value = pqDevList_Result2.data as Device.ResPqDev[]
|
2024-12-17 13:57:18 +08:00
|
|
|
|
// 遍历 boundPqDevList 并更新计数对象
|
|
|
|
|
|
boundPqDevList.value.forEach(t => {
|
|
|
|
|
|
if (t.checkState !== undefined && t.checkState !== null && checkStateCount[t.checkState] !== undefined) {
|
2025-01-06 14:07:21 +08:00
|
|
|
|
checkStateCount[t.checkState]++
|
2024-12-17 13:57:18 +08:00
|
|
|
|
}
|
2025-01-06 14:07:21 +08:00
|
|
|
|
})
|
2024-12-17 13:57:18 +08:00
|
|
|
|
boundPqDevList.value.forEach(t => {
|
|
|
|
|
|
if (t.checkResult !== undefined && t.checkResult !== null && checkResultCount[t.checkResult] !== undefined) {
|
2025-01-06 14:07:21 +08:00
|
|
|
|
checkResultCount[t.checkResult]++
|
2024-12-17 13:57:18 +08:00
|
|
|
|
}
|
2025-01-06 14:07:21 +08:00
|
|
|
|
})
|
2024-12-17 13:57:18 +08:00
|
|
|
|
boundPqDevList.value.forEach(t => {
|
|
|
|
|
|
if (t.reportState !== undefined && t.reportState !== null && reportStateCount[t.reportState] !== undefined) {
|
2025-01-06 14:07:21 +08:00
|
|
|
|
reportStateCount[t.reportState]++
|
2024-12-17 13:57:18 +08:00
|
|
|
|
}
|
2025-01-06 14:07:21 +08:00
|
|
|
|
})
|
2025-01-14 15:14:37 +08:00
|
|
|
|
|
2025-01-14 19:05:08 +08:00
|
|
|
|
|
|
|
|
|
|
// 检查 checkStateCount 是否全为 0
|
|
|
|
|
|
const allZero = Object.values(checkStateCount).every(count => count === 0);
|
|
|
|
|
|
chartsData1.value = [
|
|
|
|
|
|
{ value: allZero ? 0 : checkStateCount[0] === 0 ? null : checkStateCount[0], name: '未检', itemStyle: { color: '#fac858' } },
|
|
|
|
|
|
{ value: allZero ? 0 : checkStateCount[1] === 0 ? null : checkStateCount[1], name: '检测中', itemStyle: { color: '#ee6666' } },
|
|
|
|
|
|
{ value: allZero ? 0 : checkStateCount[2] === 0 ? null : checkStateCount[2], name: '检测完成', itemStyle: { color: '#91cc75' } },
|
|
|
|
|
|
{ value: allZero ? 0 : checkStateCount[3] === 0 ? null : checkStateCount[3], name: '归档', itemStyle: { color: '#5470c6' } },
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
// 同样处理 chartsData2 和 chartsData3
|
|
|
|
|
|
const allZeroResult = Object.values(checkResultCount).every(count => count === 0);
|
|
|
|
|
|
chartsData2.value = [
|
|
|
|
|
|
{ value: allZeroResult ? 0 : checkResultCount[2] === 0 ? null : checkResultCount[2], name: '未检', itemStyle: { color: '#fac858' } },
|
|
|
|
|
|
{ value: allZeroResult ? 0 : checkResultCount[0] === 0 ? null : checkResultCount[0], name: '不符合', itemStyle: { color: '#ee6666' } },
|
|
|
|
|
|
{ value: allZeroResult ? 0 : checkResultCount[1] === 0 ? null : checkResultCount[1], name: '符合', itemStyle: { color: '#91cc75' } },
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 检查 reportStateCount 是否全为 0
|
|
|
|
|
|
const allZeroReport = Object.values(reportStateCount).every(count => count === 0);
|
|
|
|
|
|
chartsData3.value = [
|
|
|
|
|
|
{ value: allZeroReport ? 0 : reportStateCount[2] === 0 ? null : reportStateCount[2], name: '未检', itemStyle: { color: '#fac858' } },
|
|
|
|
|
|
{ value: allZeroReport ? 0 : reportStateCount[0] === 0 ? null : reportStateCount[0], name: '未生成', itemStyle: { color: '#ee6666' } },
|
|
|
|
|
|
{ value: allZeroReport ? 0 : reportStateCount[1] === 0 ? null : reportStateCount[1], name: '已生成', itemStyle: { color: '#91cc75' } },
|
|
|
|
|
|
];
|
2025-01-14 15:14:37 +08:00
|
|
|
|
}else{
|
|
|
|
|
|
|
|
|
|
|
|
planName.value = '所选计划:'
|
2024-12-17 13:57:18 +08:00
|
|
|
|
}
|
2024-12-13 16:35:27 +08:00
|
|
|
|
|
2025-01-13 18:12:36 +08:00
|
|
|
|
|
2025-01-06 14:07:21 +08:00
|
|
|
|
|
|
|
|
|
|
pieRef1.value.init()
|
|
|
|
|
|
pieRef2.value.init()
|
|
|
|
|
|
pieRef3.value.init()
|
|
|
|
|
|
}
|
2024-12-13 16:35:27 +08:00
|
|
|
|
const getTree = (data?: any) => {
|
2025-01-14 15:14:37 +08:00
|
|
|
|
|
2025-01-06 14:07:21 +08:00
|
|
|
|
treeRef.value.getTreeData(data)
|
|
|
|
|
|
}
|
2024-08-23 13:19:20 +08:00
|
|
|
|
//前往检测
|
2024-08-23 16:51:49 +08:00
|
|
|
|
const handleDetection = () => {
|
2024-08-23 13:19:20 +08:00
|
|
|
|
router.push({
|
2025-01-06 14:07:21 +08:00
|
|
|
|
path: '/detection',
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
2024-08-26 20:05:04 +08:00
|
|
|
|
//前往计划详情
|
|
|
|
|
|
const planDetail = () => {
|
|
|
|
|
|
router.push({
|
2025-01-06 14:07:21 +08:00
|
|
|
|
path: '/plan/planList',
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
2025-01-13 21:26:12 +08:00
|
|
|
|
|
|
|
|
|
|
|
2024-08-27 14:01:26 +08:00
|
|
|
|
//功能选择css切换
|
|
|
|
|
|
const handleCheckFunction = (val: any) => {
|
2025-01-06 14:07:21 +08:00
|
|
|
|
editableTabsValue.value = '0'
|
|
|
|
|
|
form.value.activeChildTabs = 0
|
2024-08-27 14:01:26 +08:00
|
|
|
|
tabsList.value.map((item: any, index: any) => {
|
2024-11-13 18:58:53 +08:00
|
|
|
|
if (val == item.value) {
|
2025-01-06 14:07:21 +08:00
|
|
|
|
item.checked = true
|
2024-08-27 14:01:26 +08:00
|
|
|
|
} else {
|
2025-01-06 14:07:21 +08:00
|
|
|
|
item.checked = false
|
2024-08-27 14:01:26 +08:00
|
|
|
|
}
|
2025-01-06 14:07:21 +08:00
|
|
|
|
})
|
2024-11-12 20:35:12 +08:00
|
|
|
|
|
2025-01-06 14:07:21 +08:00
|
|
|
|
tabShow.value = false
|
2024-12-17 13:57:18 +08:00
|
|
|
|
|
2024-11-12 20:35:12 +08:00
|
|
|
|
switch (val) {
|
|
|
|
|
|
case 0://自动检测
|
2024-12-20 10:19:58 +08:00
|
|
|
|
checkStateTable.value = [0, 1, 2]
|
2025-01-06 14:07:21 +08:00
|
|
|
|
tabLabel1.value = '设备检测'
|
|
|
|
|
|
break
|
2024-11-12 20:35:12 +08:00
|
|
|
|
case 1://手动检测
|
2025-01-06 14:07:21 +08:00
|
|
|
|
tabLabel1.value = '手动检测'
|
|
|
|
|
|
break
|
2024-11-12 20:35:12 +08:00
|
|
|
|
case 2://设备复检
|
2025-01-06 14:07:21 +08:00
|
|
|
|
tabLabel1.value = '设备复检'
|
|
|
|
|
|
break
|
2024-11-12 20:35:12 +08:00
|
|
|
|
case 3://报告生成
|
2024-12-20 10:19:58 +08:00
|
|
|
|
checkStateTable.value = [2, 3]
|
2025-01-06 14:07:21 +08:00
|
|
|
|
tabLabel1.value = '报告生成'
|
2024-12-20 10:19:58 +08:00
|
|
|
|
//tabShow.value = true;
|
2025-01-06 14:07:21 +08:00
|
|
|
|
break
|
2024-11-12 20:35:12 +08:00
|
|
|
|
case 4://设备归档
|
2024-12-20 10:19:58 +08:00
|
|
|
|
checkStateTable.value = [2]
|
2025-01-06 14:07:21 +08:00
|
|
|
|
tabLabel1.value = '设备归档'
|
|
|
|
|
|
break
|
2024-11-22 10:46:10 +08:00
|
|
|
|
case 5://数据查询
|
2024-12-20 10:19:58 +08:00
|
|
|
|
checkStateTable.value = [2, 3]
|
2025-01-06 14:07:21 +08:00
|
|
|
|
tabLabel1.value = '数据查询'
|
|
|
|
|
|
break
|
2024-11-12 20:35:12 +08:00
|
|
|
|
}
|
2025-01-06 14:07:21 +08:00
|
|
|
|
form.value.activeTabs = val
|
|
|
|
|
|
}
|
2024-10-11 08:49:31 +08:00
|
|
|
|
|
2024-12-03 17:13:47 +08:00
|
|
|
|
|
|
|
|
|
|
const resizeObserver = new ResizeObserver(entries => {
|
|
|
|
|
|
for (let entry of entries) {
|
2025-01-06 14:07:21 +08:00
|
|
|
|
chartsWidth.value = entry.contentRect.width
|
2024-12-11 19:39:09 +08:00
|
|
|
|
//console.log('Charts Info Width:', chartsWidth.value);
|
2024-12-03 17:13:47 +08:00
|
|
|
|
|
2025-01-06 14:07:21 +08:00
|
|
|
|
pieRef1.value?.reSize(chartsWidth.value * 0.95, 180, true)
|
|
|
|
|
|
pieRef2.value?.reSize(chartsWidth.value * 0.95, 180, true)
|
|
|
|
|
|
pieRef3.value?.reSize(chartsWidth.value * 0.95, 180, true)
|
2024-12-03 17:13:47 +08:00
|
|
|
|
}
|
2025-01-06 14:07:21 +08:00
|
|
|
|
})
|
2024-12-03 17:13:47 +08:00
|
|
|
|
|
2024-12-17 11:12:21 +08:00
|
|
|
|
onBeforeMount(async () => {
|
2024-12-20 10:19:58 +08:00
|
|
|
|
const patternId = dictStore.getDictData('Pattern').find(item => item.name === modeStore.currentMode)?.id ?? ''//获取数据字典中对应的id
|
|
|
|
|
|
const reqPlan: Plan.ReqPlan = {
|
|
|
|
|
|
pattern: patternId,
|
2025-01-06 14:07:21 +08:00
|
|
|
|
datasourceIds: '',
|
|
|
|
|
|
sourceIds: '',
|
|
|
|
|
|
planId: '',
|
|
|
|
|
|
scriptName: '',
|
|
|
|
|
|
errorSysName: '',
|
|
|
|
|
|
sourceName: '',
|
2024-12-20 10:19:58 +08:00
|
|
|
|
devIds: [],
|
2025-01-06 14:07:21 +08:00
|
|
|
|
id: '',
|
|
|
|
|
|
name: '',
|
|
|
|
|
|
dataSourceId: '',
|
|
|
|
|
|
scriptId: '',
|
|
|
|
|
|
errorSysId: '',
|
2024-12-20 10:19:58 +08:00
|
|
|
|
timeCheck: 0,
|
|
|
|
|
|
testState: 0,
|
|
|
|
|
|
reportState: 0,
|
|
|
|
|
|
result: 0,
|
|
|
|
|
|
code: 0,
|
2025-01-06 14:07:21 +08:00
|
|
|
|
state: 0,
|
|
|
|
|
|
}
|
|
|
|
|
|
planList.value = (await getPlanListByPattern(reqPlan)) as ResultData<Plan.ReqPlan[]>
|
2024-12-20 10:19:58 +08:00
|
|
|
|
|
2025-01-14 15:14:37 +08:00
|
|
|
|
for (let i = 0; i < planList.value.data.length; i++) {
|
|
|
|
|
|
if (Array.isArray(planList.value.data[i].children) && planList.value.data[i].children.length > 0) {
|
|
|
|
|
|
currentId.value = planList.value.data[i].children[0].id; // 直接赋值第一个 children 的 id
|
|
|
|
|
|
break; // 确保只执行一次
|
|
|
|
|
|
}
|
2024-12-17 11:12:21 +08:00
|
|
|
|
}
|
2025-01-14 15:14:37 +08:00
|
|
|
|
|
|
|
|
|
|
// if (planList.value.data[0].children[0]) {
|
|
|
|
|
|
// currentId.value = planList.value.data[0].children[0].id
|
|
|
|
|
|
// console.log('currentId.value',planList.value.data[0])
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
2024-12-20 10:19:58 +08:00
|
|
|
|
if (chartsInfoRef.value) {
|
2025-01-06 14:07:21 +08:00
|
|
|
|
resizeObserver.observe(chartsInfoRef.value)
|
2024-12-03 17:13:47 +08:00
|
|
|
|
}
|
2025-01-06 14:07:21 +08:00
|
|
|
|
getTree(planList.value.data)
|
2024-12-17 13:57:18 +08:00
|
|
|
|
|
2025-01-06 14:07:21 +08:00
|
|
|
|
getPieData(currentId.value)
|
|
|
|
|
|
})
|
2024-12-03 17:13:47 +08:00
|
|
|
|
|
|
|
|
|
|
onUnmounted(() => {
|
|
|
|
|
|
if (chartsInfoRef.value) {
|
2025-01-06 14:07:21 +08:00
|
|
|
|
resizeObserver.unobserve(chartsInfoRef.value)
|
2024-12-03 17:13:47 +08:00
|
|
|
|
}
|
2025-01-06 14:07:21 +08:00
|
|
|
|
})
|
2024-12-13 16:35:27 +08:00
|
|
|
|
|
2025-01-13 21:06:24 +08:00
|
|
|
|
const handleBatchGenerate = () => {
|
2025-01-14 11:43:35 +08:00
|
|
|
|
console.log('批量生成按钮被点击了');
|
2025-01-13 21:06:24 +08:00
|
|
|
|
// 在这里添加其他逻辑,比如显示对话框、更新状态等
|
|
|
|
|
|
getPieData(currentId.value)
|
2025-01-13 21:26:12 +08:00
|
|
|
|
|
|
|
|
|
|
if (form.value.activeTabs === 0)//设备检测
|
|
|
|
|
|
{
|
|
|
|
|
|
const tabledata = deviceData.filter((item) => item.document_State === '未归档')
|
|
|
|
|
|
tableRef1.value && tableRef1.value.changeActiveTabs(form.value.activeTabs, form.value.activeChildTabs, tabledata)
|
|
|
|
|
|
} else if (form.value.activeTabs === 4)//设备归档
|
|
|
|
|
|
{
|
|
|
|
|
|
const tabledata = deviceData.filter((item) => item.check_State === '检测完成' && item.document_State === '未归档')
|
|
|
|
|
|
tableRef1.value && tableRef1.value.changeActiveTabs(form.value.activeTabs, form.value.activeChildTabs, tabledata)
|
|
|
|
|
|
} else if (form.value.activeTabs === 3 || form.value.activeTabs === 5)//报告生成、数据查询
|
|
|
|
|
|
{
|
|
|
|
|
|
const tabledata = deviceData.filter((item) => item.check_State === '检测完成')
|
|
|
|
|
|
tableRef1.value && tableRef1.value.changeActiveTabs(form.value.activeTabs, form.value.activeChildTabs, tabledata)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-01-13 21:06:24 +08:00
|
|
|
|
};
|
2024-08-23 13:19:20 +08:00
|
|
|
|
</script>
|
2025-01-06 14:07:21 +08:00
|
|
|
|
<style lang='scss' scoped>
|
2025-01-08 11:40:12 +08:00
|
|
|
|
|
2024-08-23 13:19:20 +08:00
|
|
|
|
.static {
|
2024-09-02 16:10:33 +08:00
|
|
|
|
|
2024-08-23 13:19:20 +08:00
|
|
|
|
.left_tree {
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
}
|
2024-09-02 16:10:33 +08:00
|
|
|
|
|
2024-08-23 13:19:20 +08:00
|
|
|
|
.right_container {
|
2024-09-02 16:10:33 +08:00
|
|
|
|
flex: none;
|
|
|
|
|
|
height: 100%;
|
2024-08-23 13:19:20 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
2024-09-02 16:10:33 +08:00
|
|
|
|
|
2024-12-20 10:19:58 +08:00
|
|
|
|
|
2024-08-27 14:01:26 +08:00
|
|
|
|
.container_function {
|
|
|
|
|
|
width: 100%;
|
2024-09-02 16:10:33 +08:00
|
|
|
|
height: auto;
|
2024-08-27 14:01:26 +08:00
|
|
|
|
background: #fff;
|
2024-08-27 16:06:16 +08:00
|
|
|
|
border-radius: 4px;
|
2024-08-27 14:01:26 +08:00
|
|
|
|
display: flex;
|
2024-12-02 14:11:09 +08:00
|
|
|
|
justify-content: flex-start;
|
2024-09-02 16:10:33 +08:00
|
|
|
|
align-items: center;
|
2024-08-27 14:01:26 +08:00
|
|
|
|
margin-bottom: 10px;
|
2024-09-02 16:10:33 +08:00
|
|
|
|
padding: 10px 20px 10px 20px;
|
2024-08-27 14:01:26 +08:00
|
|
|
|
box-sizing: border-box;
|
2024-09-02 16:10:33 +08:00
|
|
|
|
|
|
|
|
|
|
.function_item {
|
|
|
|
|
|
flex: none;
|
|
|
|
|
|
width: 6%;
|
2024-11-29 13:45:48 +08:00
|
|
|
|
height: 70px;
|
2024-08-27 16:06:16 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
2024-09-02 16:10:33 +08:00
|
|
|
|
align-items: center;
|
2024-11-29 13:45:48 +08:00
|
|
|
|
flex-direction: column;
|
2024-09-02 16:10:33 +08:00
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
background-color: #607eab;
|
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
padding: 0px 30px;
|
2024-12-02 14:11:09 +08:00
|
|
|
|
margin-right: 50px;;
|
2024-12-20 10:19:58 +08:00
|
|
|
|
|
2024-09-02 16:10:33 +08:00
|
|
|
|
.item_img {
|
2024-11-29 13:45:48 +08:00
|
|
|
|
width: 60px;
|
|
|
|
|
|
height: 60px;
|
2024-09-02 16:10:33 +08:00
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
// background-color: #607eab;
|
2024-08-27 14:01:26 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
2024-09-02 16:10:33 +08:00
|
|
|
|
justify-content: center;
|
2024-11-29 13:45:48 +08:00
|
|
|
|
|
2024-09-02 16:10:33 +08:00
|
|
|
|
img {
|
2024-11-29 13:45:48 +08:00
|
|
|
|
width: 40px;
|
2024-09-02 16:10:33 +08:00
|
|
|
|
height: auto;
|
2024-08-27 14:01:26 +08:00
|
|
|
|
}
|
2024-09-02 16:10:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.item_img:nth-child(3),
|
|
|
|
|
|
.item_img:nth-child(6) {
|
|
|
|
|
|
padding: 10px !important;
|
|
|
|
|
|
|
|
|
|
|
|
img {
|
|
|
|
|
|
width: 20px !important;
|
|
|
|
|
|
height: auto;
|
2024-08-27 14:01:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-09-02 16:10:33 +08:00
|
|
|
|
|
|
|
|
|
|
.item_text {
|
|
|
|
|
|
p {
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
font-weight: 800;
|
2024-12-20 10:19:58 +08:00
|
|
|
|
color: #fff;
|
2024-09-02 16:10:33 +08:00
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
font-family: "Microsoft YaHei", "微软雅黑", "Arial", sans-serif;
|
2024-08-27 16:06:16 +08:00
|
|
|
|
}
|
2024-09-02 16:10:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.function_item:hover,
|
|
|
|
|
|
.checked_function {
|
|
|
|
|
|
background-color: var(--el-color-primary);
|
|
|
|
|
|
|
|
|
|
|
|
.item_img {
|
|
|
|
|
|
// background-color: var(--el-color-primary);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.item_text {
|
|
|
|
|
|
p {
|
|
|
|
|
|
// color: var(--el-color-primary);
|
|
|
|
|
|
color: #fff;
|
2024-08-27 14:01:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-12-20 10:19:58 +08:00
|
|
|
|
|
|
|
|
|
|
.container_pieShow {
|
2024-11-20 11:22:05 +08:00
|
|
|
|
width: 100% !important;
|
2024-12-20 10:19:58 +08:00
|
|
|
|
height: auto;
|
2024-11-20 11:22:05 +08:00
|
|
|
|
background-color: #eee;
|
|
|
|
|
|
margin-bottom: 10px;
|
2025-01-06 14:07:21 +08:00
|
|
|
|
|
|
|
|
|
|
.container_pieShow_title {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
padding: 0 15px;
|
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
width: 100%;
|
2025-01-08 11:40:12 +08:00
|
|
|
|
font-size: 14px;
|
2025-01-06 14:07:21 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2024-11-20 11:22:05 +08:00
|
|
|
|
}
|
2024-12-20 10:19:58 +08:00
|
|
|
|
|
2024-11-12 20:35:12 +08:00
|
|
|
|
.el-collapse {
|
|
|
|
|
|
width: 100% !important;
|
2024-12-20 10:19:58 +08:00
|
|
|
|
height: 100% !important;
|
2024-11-12 20:35:12 +08:00
|
|
|
|
background-color: #eee;
|
2024-11-29 13:45:48 +08:00
|
|
|
|
}
|
2024-11-12 20:35:12 +08:00
|
|
|
|
|
2024-12-20 10:19:58 +08:00
|
|
|
|
.el-collapse-item {
|
2024-11-29 13:45:48 +08:00
|
|
|
|
width: 100% !important;
|
2024-12-20 10:19:58 +08:00
|
|
|
|
height: 100% !important;
|
2024-11-12 20:35:12 +08:00
|
|
|
|
background-color: #eee;
|
2024-11-29 13:45:48 +08:00
|
|
|
|
}
|
2024-11-12 20:35:12 +08:00
|
|
|
|
|
2024-08-23 13:19:20 +08:00
|
|
|
|
.container_charts {
|
|
|
|
|
|
width: 100%;
|
2024-12-20 10:19:58 +08:00
|
|
|
|
height: 100%;
|
2024-08-23 16:51:49 +08:00
|
|
|
|
background-color: #eee;
|
2024-08-23 13:19:20 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
2024-09-02 16:10:33 +08:00
|
|
|
|
|
2024-08-23 13:19:20 +08:00
|
|
|
|
.charts_info {
|
2025-01-06 14:07:21 +08:00
|
|
|
|
margin-top: 1px;
|
2024-08-23 16:51:49 +08:00
|
|
|
|
flex: none;
|
2024-12-12 13:23:09 +08:00
|
|
|
|
width: 33.1%;
|
2024-08-23 16:51:49 +08:00
|
|
|
|
height: 100% !important;
|
2024-08-23 13:19:20 +08:00
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-09-02 16:10:33 +08:00
|
|
|
|
|
2024-12-20 10:19:58 +08:00
|
|
|
|
.el-tabs {
|
2024-11-12 20:35:12 +08:00
|
|
|
|
width: 100% !important;
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-01-06 14:07:21 +08:00
|
|
|
|
|
|
|
|
|
|
|
2024-12-20 10:19:58 +08:00
|
|
|
|
.tabs-menu {
|
2024-11-29 13:45:48 +08:00
|
|
|
|
height: 100%;
|
2025-01-06 14:07:21 +08:00
|
|
|
|
border: 0;
|
2024-11-29 13:45:48 +08:00
|
|
|
|
}
|
2024-12-20 10:19:58 +08:00
|
|
|
|
|
2024-08-23 13:19:20 +08:00
|
|
|
|
.container_table {
|
2024-09-02 16:10:33 +08:00
|
|
|
|
// width: 100%;
|
|
|
|
|
|
flex: 1 !important;
|
2024-12-02 14:11:09 +08:00
|
|
|
|
//height: calc(100vh - 360px - 180px);
|
|
|
|
|
|
height: 100% !important;
|
2024-08-23 13:19:20 +08:00
|
|
|
|
border-radius: 4px;
|
2024-09-02 16:10:33 +08:00
|
|
|
|
width: 100% !important;
|
|
|
|
|
|
// display: none;
|
|
|
|
|
|
.table_info {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
}
|
2024-08-23 13:19:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-12-20 10:19:58 +08:00
|
|
|
|
|
|
|
|
|
|
:deep(.el-collapse-item__header) {
|
2024-12-11 17:46:59 +08:00
|
|
|
|
color: var(--el-color-primary);
|
2025-01-06 14:07:21 +08:00
|
|
|
|
font-size: 14px;
|
2024-12-11 17:46:59 +08:00
|
|
|
|
font-family: "Microsoft YaHei", "微软雅黑", "Arial", sans-serif;
|
|
|
|
|
|
}
|
2024-12-20 10:19:58 +08:00
|
|
|
|
|
|
|
|
|
|
:deep(.el-collapse-item__conten) {
|
2024-12-05 11:07:54 +08:00
|
|
|
|
padding-bottom: 0px !important;
|
|
|
|
|
|
}
|
2024-12-20 10:19:58 +08:00
|
|
|
|
|
|
|
|
|
|
:deep(.el-collapse-item__content ) {
|
2024-12-05 11:07:54 +08:00
|
|
|
|
padding-bottom: 0px !important;
|
|
|
|
|
|
}
|
2025-01-06 14:07:21 +08:00
|
|
|
|
|
|
|
|
|
|
:deep(.el-tabs--border-card > .el-tabs__content) {
|
|
|
|
|
|
padding: 0 !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-01-08 11:40:12 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-08-23 13:19:20 +08:00
|
|
|
|
</style>
|