终端在线率调整

This commit is contained in:
zhujiyan
2024-08-07 14:26:09 +08:00
parent d7c9283217
commit a73203e9cf
4 changed files with 254 additions and 728 deletions

View File

@@ -116,7 +116,7 @@
/>
</el-tab-pane>
<el-tab-pane :name="1" label="终端在线率图表">
<onlineCharts ref="onlineChartsRef" />
<charts ref="chartsRef" />
</el-tab-pane>
</el-tabs>
</div>
@@ -130,9 +130,9 @@ import { getAreaDept } from '@/api/harmonic-boot/area'
import TableHeader from '@/components/table/header/index.vue'
import TableStore from '@/utils/tableStore'
import Table from '@/components/table/index.vue'
import onlineCharts from './components/onlineCharts.vue'
import charts from './components/charts.vue'
const tableRef = ref()
const onlineChartsRef = ref()
const chartsRef = ref()
const dictData = useDictData()
//字典获取电压等级
const voltageleveloption = dictData.getBasicData('Dev_Voltage_Stand')
@@ -141,7 +141,7 @@ const terminaloption = dictData.getBasicData('Dev_Manufacturers')
//字典获取干扰源类型
const interfereoption = dictData.getBasicData('Interference_Source')
//字典获取统计类型
const classificationData = dictData.getBasicData('Statistical_Type')
const classificationData = dictData.getBasicData('Statistical_Type', ['Report_Type'])
//调用区域接口获取区域
const treeData = ref([])
const idArr = ref([])
@@ -174,10 +174,10 @@ const defaultProps = ref({
emitPath: false,
expandTrigger: 'click' as const
})
const handleClick = (tab: any, e: any) => {
// console.log(tab,e,"??????????");
const handleClick = (tab: any, e: any) => {
// if(activeName.value===1){
tableStore.index()
chartsRef.value.getTableStoreParams(tableStore.table.params)
// }
}
@@ -271,45 +271,6 @@ const tableStore = new TableStore({
3: '不合格'
}
}
// {
// title: '操作',
// align: 'center',
// width: '180',
// render: 'buttons',
// buttons: [
// {
// name: 'edit',
// text: '新增',
// type: 'primary',
// icon: 'el-icon-Plus',
// render: 'basicButton'
// },
// {
// name: 'edit',
// text: '编辑',
// type: 'primary',
// icon: 'el-icon-EditPen',
// render: 'basicButton'
// },
// {
// name: 'del',
// text: '删除',
// type: 'danger',
// icon: 'el-icon-Delete',
// render: 'basicButton'
// },
// {
// name: 'edit',
// text: '绑定监测点',
// type: 'primary',
// icon: 'el-icon-Plus',
// render: 'basicButton',
// disabled: (row: any) => {
// return row.children.length > 0
// }
// }
// ]
// }
],
beforeSearchFun: () => {
tableStore.table.params.deptIndex = formData.value.deptIndex
@@ -323,7 +284,6 @@ const tableStore = new TableStore({
delete tableStore.table.params.endTime
delete tableStore.table.params.pageNum
delete tableStore.table.params.pageSize
onlineChartsRef.value.getTableStoreParams(tableStore.table.params)
// tableStore.table.params.searchBeginTime = tableHeaderRef.value.datePickerRef.timeValue[0]
// tableStore.table.params.searchEndTime = tableHeaderRef.value.datePickerRef.timeValue[1]
},