2024-08-07 16:37:15 +08:00
|
|
|
|
<template>
|
2024-08-08 10:09:50 +08:00
|
|
|
|
<div class="default-main online">
|
2024-08-07 16:37:15 +08:00
|
|
|
|
<div class="online_header">
|
|
|
|
|
|
<TableHeader date-picker ref="tableHeaderRef">
|
|
|
|
|
|
<template #select>
|
|
|
|
|
|
<el-form-item label="统计类型:">
|
|
|
|
|
|
<el-select
|
|
|
|
|
|
v-model="formData.statisticalType"
|
|
|
|
|
|
placeholder="请选择统计类型"
|
|
|
|
|
|
value-key="id"
|
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
|
>
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
v-for="item in classificationData"
|
|
|
|
|
|
:key="item.id"
|
|
|
|
|
|
:label="item.name"
|
|
|
|
|
|
:value="item"
|
|
|
|
|
|
></el-option>
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="区域选择:">
|
|
|
|
|
|
<!-- <el-select ref="select1" v-model="deptName" placeholder="请选择所属部门区域" style="width: 100%">
|
|
|
|
|
|
<el-option :value="formData.deptIndex" style="height: auto"> -->
|
|
|
|
|
|
<!-- {{ formData.deptIndex }} -->
|
|
|
|
|
|
<el-cascader
|
|
|
|
|
|
v-model="formData.deptIndex"
|
|
|
|
|
|
:props="defaultProps"
|
|
|
|
|
|
:options="treeData"
|
|
|
|
|
|
filterable
|
|
|
|
|
|
collapse-tags
|
|
|
|
|
|
placeholder="请选择区域"
|
|
|
|
|
|
/>
|
|
|
|
|
|
<!-- <el-tree
|
|
|
|
|
|
ref="tree"
|
|
|
|
|
|
v-model="formData.deptName"
|
|
|
|
|
|
:data="treeData"
|
|
|
|
|
|
node-key="id"
|
|
|
|
|
|
accordion
|
|
|
|
|
|
:default-expanded-keys="idArr"
|
|
|
|
|
|
:props="defaultProps"
|
|
|
|
|
|
@node-click="handleNodeClick"
|
|
|
|
|
|
>
|
|
|
|
|
|
<template #default="{ node, data }">
|
|
|
|
|
|
<span :title="data.name">{{ data?.name }}</span>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-tree> -->
|
|
|
|
|
|
<!-- </el-option>
|
|
|
|
|
|
</el-select> -->
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="电压等级:">
|
|
|
|
|
|
<el-select
|
|
|
|
|
|
v-model="formData.scale"
|
|
|
|
|
|
multiple
|
|
|
|
|
|
collapse-tags
|
|
|
|
|
|
clearable
|
|
|
|
|
|
placeholder="请选择电压等级"
|
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
|
value-key="id"
|
|
|
|
|
|
>
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
v-for="item in voltageleveloption"
|
|
|
|
|
|
:key="item.id"
|
|
|
|
|
|
:label="item.name"
|
|
|
|
|
|
:value="item"
|
|
|
|
|
|
></el-option>
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="终端厂家:">
|
|
|
|
|
|
<el-select
|
|
|
|
|
|
v-model="formData.manufacturer"
|
|
|
|
|
|
multiple
|
|
|
|
|
|
collapse-tags
|
|
|
|
|
|
clearable
|
|
|
|
|
|
placeholder="请选择终端厂家"
|
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
|
value-key="id"
|
|
|
|
|
|
>
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
v-for="(item, index) in terminaloption"
|
|
|
|
|
|
:key="index"
|
|
|
|
|
|
:label="item.name"
|
|
|
|
|
|
:value="item"
|
|
|
|
|
|
></el-option>
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="干扰源类型:">
|
|
|
|
|
|
<el-select
|
|
|
|
|
|
v-model="formData.loadType"
|
|
|
|
|
|
multiple
|
|
|
|
|
|
collapse-tags
|
|
|
|
|
|
clearable
|
|
|
|
|
|
placeholder="请选择干扰源类型"
|
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
|
value-key="id"
|
|
|
|
|
|
>
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
v-for="(item, index) in interfereoption"
|
|
|
|
|
|
:key="index"
|
|
|
|
|
|
:label="item.name"
|
|
|
|
|
|
:value="item"
|
|
|
|
|
|
></el-option>
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</template>
|
2025-04-30 16:00:26 +08:00
|
|
|
|
<template #operation>
|
2025-05-06 14:31:17 +08:00
|
|
|
|
<el-button type="primary" icon="el-icon-Tickets" @click="makeUp">补招</el-button>
|
2025-04-30 16:00:26 +08:00
|
|
|
|
</template>
|
2024-08-07 16:37:15 +08:00
|
|
|
|
</TableHeader>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="online_main">
|
|
|
|
|
|
<el-tabs v-model="activeName" type="border-card" @tab-click="handleClick">
|
2024-08-08 10:09:50 +08:00
|
|
|
|
<el-tab-pane :name="0" :lazy="true" label="数据完整性列表">
|
2025-07-30 15:17:28 +08:00
|
|
|
|
<Table
|
|
|
|
|
|
ref="tableRef"
|
|
|
|
|
|
:tree-config="{ transform: true, parentField: 'uPid', rowField: 'uId' }"
|
|
|
|
|
|
:checkbox-config="{ labelField: 'name', checkMethod: ({ row }) => true }"
|
|
|
|
|
|
:scroll-y="{ enabled: true }"
|
|
|
|
|
|
v-if="activeName == 0"
|
|
|
|
|
|
/>
|
2024-08-07 16:37:15 +08:00
|
|
|
|
</el-tab-pane>
|
2024-08-08 10:09:50 +08:00
|
|
|
|
<el-tab-pane :name="1" :lazy="true" label="数据完整性图表">
|
|
|
|
|
|
<charts v-if="activeName == 1" ref="chartsRef" />
|
2024-08-07 16:37:15 +08:00
|
|
|
|
</el-tab-pane>
|
|
|
|
|
|
</el-tabs>
|
|
|
|
|
|
</div>
|
2025-05-06 14:31:17 +08:00
|
|
|
|
<el-dialog v-model="dialogVisible" draggable title="补招" width="500">
|
|
|
|
|
|
补招时间:
|
|
|
|
|
|
<el-date-picker
|
|
|
|
|
|
v-model="timeData"
|
2025-07-30 15:17:28 +08:00
|
|
|
|
type="datetimerange"
|
|
|
|
|
|
format="YYYY-MM-DD HH:mm:00"
|
|
|
|
|
|
value-format="YYYY-MM-DD HH:mm:00"
|
2025-05-06 14:31:17 +08:00
|
|
|
|
range-separator="至"
|
2025-07-30 15:17:28 +08:00
|
|
|
|
date-format="YYYY-MM-DD"
|
|
|
|
|
|
time-format="HH:mm:00"
|
2025-05-06 14:31:17 +08:00
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
|
|
end-placeholder="结束日期"
|
2025-07-30 15:17:28 +08:00
|
|
|
|
style="width: 400px"
|
2025-05-06 14:31:17 +08:00
|
|
|
|
:disabledDate="disabledDate"
|
|
|
|
|
|
/>
|
|
|
|
|
|
<template #footer>
|
|
|
|
|
|
<div class="dialog-footer">
|
|
|
|
|
|
<el-button @click="dialogVisible = false">取消</el-button>
|
|
|
|
|
|
<el-button type="primary" @click="makeUpSubmit">确认</el-button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-dialog>
|
2024-08-07 16:37:15 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
|
import { ref, onMounted, watch } from 'vue'
|
|
|
|
|
|
import { useDictData } from '@/stores/dictData'
|
|
|
|
|
|
import DatePicker from '@/components/form/datePicker/index.vue'
|
2025-07-30 15:17:28 +08:00
|
|
|
|
import { getAreaDept, FullRecall } from '@/api/harmonic-boot/area'
|
2024-08-07 16:37:15 +08:00
|
|
|
|
import TableHeader from '@/components/table/header/index.vue'
|
|
|
|
|
|
import TableStore from '@/utils/tableStore'
|
|
|
|
|
|
import Table from '@/components/table/index.vue'
|
|
|
|
|
|
import charts from './components/charts.vue'
|
2025-05-06 14:31:17 +08:00
|
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
2025-07-25 14:15:26 +08:00
|
|
|
|
import { el, fa, tr } from 'element-plus/es/locale'
|
2024-11-07 15:23:04 +08:00
|
|
|
|
defineOptions({
|
|
|
|
|
|
name: 'harmonic-boot/harmonic/getIntegrityData'
|
|
|
|
|
|
})
|
2024-08-07 16:37:15 +08:00
|
|
|
|
const tableRef = ref()
|
|
|
|
|
|
const chartsRef = ref()
|
|
|
|
|
|
const dictData = useDictData()
|
2025-05-06 14:31:17 +08:00
|
|
|
|
const dialogVisible = ref(false)
|
2024-08-07 16:37:15 +08:00
|
|
|
|
//字典获取电压等级
|
|
|
|
|
|
const voltageleveloption = dictData.getBasicData('Dev_Voltage_Stand')
|
|
|
|
|
|
//字典获取终端厂家
|
|
|
|
|
|
const terminaloption = dictData.getBasicData('Dev_Manufacturers')
|
|
|
|
|
|
//字典获取干扰源类型
|
|
|
|
|
|
const interfereoption = dictData.getBasicData('Interference_Source')
|
|
|
|
|
|
//字典获取统计类型
|
|
|
|
|
|
const classificationData = dictData.getBasicData('Statistical_Type', ['Report_Type'])
|
|
|
|
|
|
//调用区域接口获取区域
|
|
|
|
|
|
const treeData = ref([])
|
|
|
|
|
|
const idArr = ref([])
|
2025-05-06 14:31:17 +08:00
|
|
|
|
const timeData = ref([])
|
2024-08-07 16:37:15 +08:00
|
|
|
|
const activeName = ref(0)
|
|
|
|
|
|
const getTreeData = async () => {
|
|
|
|
|
|
await getAreaDept().then(res => {
|
|
|
|
|
|
var data = res.data
|
|
|
|
|
|
data.forEach(element => {
|
|
|
|
|
|
idArr.value.push(element.id)
|
|
|
|
|
|
})
|
|
|
|
|
|
treeData.value = JSON.parse(JSON.stringify(res.data))
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
2025-05-06 14:31:17 +08:00
|
|
|
|
|
2024-08-07 16:37:15 +08:00
|
|
|
|
getTreeData()
|
|
|
|
|
|
|
|
|
|
|
|
const formData = ref({
|
|
|
|
|
|
statisticalType: classificationData[0], //统计类型
|
|
|
|
|
|
deptIndex: treeData.value[0]?.id, //区域选择
|
|
|
|
|
|
scale: voltageleveloption, //电压等级
|
|
|
|
|
|
manufacturer: terminaloption, //终端厂家
|
|
|
|
|
|
loadType: interfereoption //干扰源类型
|
|
|
|
|
|
// searchBeginTime: '',
|
|
|
|
|
|
// searchEndTime: ''
|
|
|
|
|
|
})
|
|
|
|
|
|
formData.value.deptIndex = treeData.value[0]?.id
|
|
|
|
|
|
const defaultProps = ref({
|
|
|
|
|
|
label: 'name',
|
|
|
|
|
|
value: 'id',
|
|
|
|
|
|
checkStrictly: true,
|
|
|
|
|
|
emitPath: false,
|
|
|
|
|
|
expandTrigger: 'click' as const
|
|
|
|
|
|
})
|
2024-08-08 10:09:50 +08:00
|
|
|
|
const handleClick = (tab: any, e: any) => {
|
2024-08-07 16:37:15 +08:00
|
|
|
|
// if(activeName.value===1){
|
|
|
|
|
|
tableStore.index()
|
|
|
|
|
|
// }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const tableHeaderRef = ref()
|
|
|
|
|
|
const tableStore = new TableStore({
|
2024-11-07 15:23:04 +08:00
|
|
|
|
publicHeight: 60,
|
2024-08-07 16:37:15 +08:00
|
|
|
|
showPage: false,
|
|
|
|
|
|
url: '/device-boot/LineIntegrityData/getLineIntegrityData',
|
|
|
|
|
|
method: 'POST',
|
|
|
|
|
|
column: [
|
|
|
|
|
|
{
|
|
|
|
|
|
title: formData.value.statisticalType.name,
|
|
|
|
|
|
field: 'name',
|
|
|
|
|
|
align: 'left',
|
2025-04-30 16:00:26 +08:00
|
|
|
|
type: 'checkbox',
|
2025-04-25 09:18:50 +08:00
|
|
|
|
treeNode: true,
|
2025-04-25 15:15:25 +08:00
|
|
|
|
width: 350,
|
2025-04-30 16:00:26 +08:00
|
|
|
|
formatter: function (row) {
|
2025-07-24 09:31:47 +08:00
|
|
|
|
return row.cellValue ? row.cellValue : '/'
|
2025-04-30 16:00:26 +08:00
|
|
|
|
}
|
2025-07-25 16:28:14 +08:00
|
|
|
|
},
|
2024-08-07 16:37:15 +08:00
|
|
|
|
{
|
|
|
|
|
|
title: '网络参数',
|
2024-08-08 10:09:50 +08:00
|
|
|
|
field: 'ip',
|
2024-08-07 16:37:15 +08:00
|
|
|
|
align: 'center',
|
|
|
|
|
|
formatter: function (row) {
|
|
|
|
|
|
return row.cellValue ? row.cellValue : '/'
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
2024-08-08 10:09:50 +08:00
|
|
|
|
title: '厂家',
|
|
|
|
|
|
field: 'manufacturer',
|
2024-08-07 16:37:15 +08:00
|
|
|
|
align: 'center',
|
|
|
|
|
|
formatter: function (row) {
|
|
|
|
|
|
return row.cellValue ? row.cellValue : '/'
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
2024-08-08 10:09:50 +08:00
|
|
|
|
title: '终端名称',
|
|
|
|
|
|
field: 'deviceName',
|
2024-08-07 16:37:15 +08:00
|
|
|
|
align: 'center',
|
|
|
|
|
|
formatter: function (row) {
|
|
|
|
|
|
return row.cellValue ? row.cellValue : '/'
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
title: '通讯状态',
|
|
|
|
|
|
field: 'comFlag',
|
|
|
|
|
|
align: 'center',
|
|
|
|
|
|
render: 'tag',
|
|
|
|
|
|
custom: {
|
|
|
|
|
|
null: 'primary',
|
|
|
|
|
|
0: 'danger',
|
|
|
|
|
|
1: 'success'
|
|
|
|
|
|
},
|
|
|
|
|
|
replaceValue: {
|
|
|
|
|
|
null: '/',
|
|
|
|
|
|
0: '中断',
|
|
|
|
|
|
1: '正常'
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
title: '最新数据时间',
|
|
|
|
|
|
field: 'updateTime',
|
|
|
|
|
|
align: 'center',
|
|
|
|
|
|
formatter: function (row) {
|
|
|
|
|
|
return row.cellValue ? row.cellValue : '/'
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
2024-08-08 10:09:50 +08:00
|
|
|
|
title: '完整性(%)',
|
|
|
|
|
|
field: 'integrityData',
|
2024-08-07 16:37:15 +08:00
|
|
|
|
align: 'center',
|
|
|
|
|
|
formatter: function (row) {
|
2024-08-08 10:09:50 +08:00
|
|
|
|
return row.cellValue == 3.14159 ? '暂无数据' : row.cellValue.toFixed(2)
|
2024-08-07 16:37:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
title: '评估',
|
|
|
|
|
|
field: 'valueOver',
|
|
|
|
|
|
align: 'center',
|
|
|
|
|
|
render: 'tag',
|
|
|
|
|
|
custom: {
|
|
|
|
|
|
null: 'danger',
|
|
|
|
|
|
0: 'danger',
|
|
|
|
|
|
1: 'success',
|
|
|
|
|
|
2: 'primary',
|
|
|
|
|
|
3: 'danger'
|
|
|
|
|
|
},
|
|
|
|
|
|
replaceValue: {
|
|
|
|
|
|
null: '暂无评估',
|
|
|
|
|
|
0: '暂无评估',
|
|
|
|
|
|
1: '优秀',
|
|
|
|
|
|
2: '合格',
|
|
|
|
|
|
3: '不合格'
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
beforeSearchFun: () => {
|
|
|
|
|
|
tableStore.table.params.deptIndex = formData.value.deptIndex
|
|
|
|
|
|
tableStore.table.params.statisticalType = formData.value.statisticalType
|
|
|
|
|
|
tableStore.table.params.scale = formData.value.scale
|
|
|
|
|
|
tableStore.table.params.manufacturer = formData.value.manufacturer
|
|
|
|
|
|
tableStore.table.params.loadType = formData.value.loadType
|
|
|
|
|
|
tableStore.table.params.serverName = 'harmonicBoot'
|
|
|
|
|
|
delete tableStore.table.params.timeFlag
|
|
|
|
|
|
delete tableStore.table.params.startTime
|
|
|
|
|
|
delete tableStore.table.params.endTime
|
|
|
|
|
|
delete tableStore.table.params.pageNum
|
|
|
|
|
|
delete tableStore.table.params.pageSize
|
|
|
|
|
|
// tableStore.table.params.searchBeginTime = tableHeaderRef.value.datePickerRef.timeValue[0]
|
|
|
|
|
|
// tableStore.table.params.searchEndTime = tableHeaderRef.value.datePickerRef.timeValue[1]
|
|
|
|
|
|
},
|
|
|
|
|
|
loadCallback: () => {
|
2025-04-30 16:00:26 +08:00
|
|
|
|
tableStore.table.data = tree2List(tableStore.table.data, Math.random() * 1000)
|
2024-08-07 16:37:15 +08:00
|
|
|
|
tableStore.table.column[0].title = formData.value.statisticalType.name
|
2025-07-30 15:17:28 +08:00
|
|
|
|
|
2024-08-08 10:09:50 +08:00
|
|
|
|
chartsRef.value && chartsRef.value.getTableStoreParams(tableStore.table.params)
|
2024-08-07 16:37:15 +08:00
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
activeName.value == 0 && tableRef.value && tableRef.value.getRef().setAllTreeExpand(true)
|
|
|
|
|
|
}, 0)
|
2025-07-24 09:31:47 +08:00
|
|
|
|
},
|
2025-07-30 15:17:28 +08:00
|
|
|
|
resetCallback: () => {
|
|
|
|
|
|
// 重置表单数据到默认值
|
2025-07-24 09:31:47 +08:00
|
|
|
|
formData.value.statisticalType = classificationData[0]
|
|
|
|
|
|
formData.value.deptIndex = treeData.value[0]?.id
|
|
|
|
|
|
formData.value.scale = voltageleveloption
|
|
|
|
|
|
formData.value.manufacturer = terminaloption
|
2025-07-30 15:17:28 +08:00
|
|
|
|
formData.value.loadType = interfereoption
|
2024-08-07 16:37:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
})
|
2025-04-30 16:00:26 +08:00
|
|
|
|
|
2024-08-07 16:37:15 +08:00
|
|
|
|
tableStore.table.params.deptIndex = ''
|
2025-05-06 14:31:17 +08:00
|
|
|
|
tableStore.table.params.filterName = ''
|
2024-08-07 16:37:15 +08:00
|
|
|
|
tableStore.table.params.statisticalType = []
|
|
|
|
|
|
tableStore.table.params.scale = []
|
|
|
|
|
|
tableStore.table.params.manufacturer = []
|
|
|
|
|
|
tableStore.table.params.loadType = []
|
|
|
|
|
|
provide('tableStore', tableStore)
|
2025-04-30 16:00:26 +08:00
|
|
|
|
const tree2List = (list: any, id?: string) => {
|
2024-08-07 16:37:15 +08:00
|
|
|
|
//存储结果的数组
|
|
|
|
|
|
let arr: any = []
|
|
|
|
|
|
// 遍历 tree 数组
|
|
|
|
|
|
list.forEach((item: any) => {
|
2025-04-30 16:00:26 +08:00
|
|
|
|
item.uPid = id
|
|
|
|
|
|
item.uId = Math.random() * 1000
|
2024-08-08 10:09:50 +08:00
|
|
|
|
item.valueOver =
|
|
|
|
|
|
item.integrityData == 3.14159
|
|
|
|
|
|
? 0
|
|
|
|
|
|
: item.integrityData >= 90
|
|
|
|
|
|
? 1
|
|
|
|
|
|
: item.integrityData >= 60 && item.integrityData < 90
|
|
|
|
|
|
? 2
|
|
|
|
|
|
: 3
|
2024-08-07 16:37:15 +08:00
|
|
|
|
// 判断item是否存在children
|
|
|
|
|
|
if (!item.children) return arr.push(item)
|
|
|
|
|
|
// 函数递归,对children数组进行tree2List的转换
|
2025-04-30 16:00:26 +08:00
|
|
|
|
const children = tree2List(item.children, item.uId)
|
2024-08-07 16:37:15 +08:00
|
|
|
|
// 删除item的children属性
|
|
|
|
|
|
delete item.children
|
|
|
|
|
|
// 把item和children数组添加至结果数组
|
|
|
|
|
|
//..children: 意思是把children数组展开
|
|
|
|
|
|
arr.push(item, ...children)
|
|
|
|
|
|
})
|
|
|
|
|
|
// 返回结果数组
|
|
|
|
|
|
return arr
|
|
|
|
|
|
}
|
2025-05-06 14:31:17 +08:00
|
|
|
|
|
|
|
|
|
|
// 禁用超过当前日期的选择
|
|
|
|
|
|
const disabledDate = (date: Date) => {
|
|
|
|
|
|
return date > new Date() // 如果日期大于当前日期,则禁用
|
|
|
|
|
|
}
|
2024-08-07 16:37:15 +08:00
|
|
|
|
onMounted(() => {})
|
2025-04-30 16:00:26 +08:00
|
|
|
|
// 补招
|
|
|
|
|
|
const makeUp = () => {
|
2025-05-06 14:31:17 +08:00
|
|
|
|
// tableRef.value && tableRef.value.getRef().getCheckboxRecords()
|
|
|
|
|
|
let list =
|
|
|
|
|
|
tableRef.value
|
|
|
|
|
|
.getRef()
|
|
|
|
|
|
.getCheckboxRecords()
|
|
|
|
|
|
.find((item: any) => item.level == '6') || []
|
|
|
|
|
|
|
|
|
|
|
|
if (list.length == 0) {
|
|
|
|
|
|
return ElMessage({
|
|
|
|
|
|
message: '请选择监测点',
|
|
|
|
|
|
type: 'warning'
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
dialogVisible.value = true
|
|
|
|
|
|
}
|
|
|
|
|
|
// 补招提交
|
|
|
|
|
|
const makeUpSubmit = () => {
|
|
|
|
|
|
if (timeData.value.length == 0) {
|
|
|
|
|
|
return ElMessage({
|
|
|
|
|
|
message: '请选择补招时间',
|
|
|
|
|
|
type: 'warning'
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-07-30 15:17:28 +08:00
|
|
|
|
FullRecall({
|
2025-05-06 14:31:17 +08:00
|
|
|
|
monitorId: tableRef.value
|
|
|
|
|
|
.getRef()
|
|
|
|
|
|
.getCheckboxRecords()
|
|
|
|
|
|
.filter(item => item.level == 6)
|
|
|
|
|
|
.map(item => item.id),
|
|
|
|
|
|
reCallEndTime: timeData.value[1],
|
|
|
|
|
|
reCallStartTime: timeData.value[0]
|
|
|
|
|
|
}).then(res => {
|
|
|
|
|
|
ElMessage({
|
2025-07-30 15:17:28 +08:00
|
|
|
|
message: '补招命令下发成功',
|
2025-05-06 14:31:17 +08:00
|
|
|
|
type: 'success'
|
|
|
|
|
|
})
|
|
|
|
|
|
dialogVisible.value = false
|
|
|
|
|
|
})
|
2025-04-30 16:00:26 +08:00
|
|
|
|
}
|
2024-08-07 16:37:15 +08:00
|
|
|
|
watch(
|
|
|
|
|
|
() => treeData.value,
|
|
|
|
|
|
(val, oldVal) => {
|
|
|
|
|
|
if (val && val.length != 0) {
|
2025-07-30 15:17:28 +08:00
|
|
|
|
formData.value.deptIndex = val[0].id
|
2024-08-07 16:37:15 +08:00
|
|
|
|
tableStore.index()
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
immediate: true,
|
|
|
|
|
|
deep: true
|
|
|
|
|
|
}
|
|
|
|
|
|
)
|
|
|
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
2024-11-07 15:23:04 +08:00
|
|
|
|
// .online {
|
|
|
|
|
|
// width: 100%;
|
|
|
|
|
|
// height: 100%;
|
|
|
|
|
|
// .online_header {
|
|
|
|
|
|
// width: 100%;
|
|
|
|
|
|
// max-height: 140px;
|
|
|
|
|
|
// padding: 10px;
|
|
|
|
|
|
// box-sizing: border-box;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// .online_main {
|
|
|
|
|
|
// padding: 0 10px;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
2025-07-28 13:25:49 +08:00
|
|
|
|
|
|
|
|
|
|
// 修复VXE表格树表checkbox的样式问题
|
|
|
|
|
|
:deep(.vxe-table--main-wrapper) {
|
|
|
|
|
|
.vxe-table--body-wrapper {
|
|
|
|
|
|
.vxe-body--row {
|
|
|
|
|
|
.vxe-cell--checkbox {
|
|
|
|
|
|
.vxe-checkbox--icon {
|
|
|
|
|
|
color: var(--el-color-primary-light-3);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 确保空数据状态下没有灰色遮罩层
|
|
|
|
|
|
:deep(.vxe-table--empty-block) {
|
|
|
|
|
|
background: transparent;
|
2025-07-30 15:17:28 +08:00
|
|
|
|
|
2025-07-28 13:25:49 +08:00
|
|
|
|
.vxe-table--empty-content {
|
|
|
|
|
|
color: #909399;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 修复树表header的样式
|
|
|
|
|
|
:deep(.vxe-table--header-wrapper) {
|
|
|
|
|
|
.vxe-header--row {
|
|
|
|
|
|
.vxe-cell--checkbox {
|
|
|
|
|
|
.vxe-checkbox--icon {
|
|
|
|
|
|
color: var(--el-color-primary-light-3);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 精确修复checkbox的disabled状态样式
|
|
|
|
|
|
:deep(.vxe-checkbox.is--disabled) {
|
|
|
|
|
|
.vxe-checkbox--icon {
|
|
|
|
|
|
color: var(--el-color-primary-light-3) !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 确保树表节点没有灰色背景,但保留边框
|
|
|
|
|
|
:deep(.vxe-tree-cell) {
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 精确修复空数据状态下的灰色背景
|
|
|
|
|
|
:deep(.vxe-table--empty-block) {
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 修复checkbox在空数据状态下的样式
|
|
|
|
|
|
:deep(.vxe-table--body-wrapper:empty) {
|
|
|
|
|
|
.vxe-cell--checkbox {
|
|
|
|
|
|
background: transparent;
|
2025-07-30 15:17:28 +08:00
|
|
|
|
|
2025-07-28 13:25:49 +08:00
|
|
|
|
.vxe-checkbox--icon {
|
|
|
|
|
|
color: var(--el-color-primary-light-3);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 专门修复checkbox和treeNode组合的样式问题
|
|
|
|
|
|
:deep(.vxe-cell--checkbox) {
|
|
|
|
|
|
background: transparent !important;
|
2025-07-30 15:17:28 +08:00
|
|
|
|
|
2025-07-28 13:25:49 +08:00
|
|
|
|
.vxe-checkbox--icon {
|
|
|
|
|
|
color: var(--el-color-primary-light-3) !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 修复树表checkbox的特殊样式
|
|
|
|
|
|
:deep(.vxe-tree-cell .vxe-cell--checkbox) {
|
|
|
|
|
|
background: transparent !important;
|
2025-07-30 15:17:28 +08:00
|
|
|
|
|
2025-07-28 13:25:49 +08:00
|
|
|
|
.vxe-checkbox--icon {
|
|
|
|
|
|
color: var(--el-color-primary-light-3) !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 确保checkbox在树表中的正确显示
|
|
|
|
|
|
:deep(.vxe-body--row .vxe-cell--checkbox) {
|
|
|
|
|
|
background: transparent !important;
|
2025-07-30 15:17:28 +08:00
|
|
|
|
|
2025-07-28 13:25:49 +08:00
|
|
|
|
.vxe-checkbox--icon {
|
|
|
|
|
|
color: var(--el-color-primary-light-3) !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-08-07 16:37:15 +08:00
|
|
|
|
</style>
|