添加周期

This commit is contained in:
2026-07-07 10:18:22 +08:00
parent 5044c88946
commit 1a44a2f9e0
19 changed files with 556 additions and 87 deletions

View File

@@ -14,8 +14,8 @@
<template v-slot:select>
<el-form-item >
<el-radio-group v-model="isStatisticData" @change="onStatisticDataChange">
<el-radio-button value="1">统计数据</el-radio-button>
<el-radio-button value="0">分钟数据</el-radio-button>
<el-radio-button value="0">统计数据</el-radio-button>
<el-radio-button value="1">分钟数据</el-radio-button>
</el-radio-group>
</el-form-item>
<el-form-item label="模板策略">
@@ -79,7 +79,7 @@ const dotList: any = ref({})
const Template: any = ref({})
const reportForm: any = ref('')
const name = ref('')
const isStatisticData = ref('1')
const isStatisticData = ref('0')
const templatePolicy: any = ref([])
const reportFormList: any = ref([
{
@@ -103,8 +103,8 @@ const tableStore = new TableStore({
tableStore.table.params.tempId = Template.value.id
tableStore.table.params.lineId = dotList.value.id
name.value = dotList.value.name
if (Number(isStatisticData.value) === 0) {
tableStore.table.params.isStatisticData = 0
if (Number(isStatisticData.value) === 1) {
tableStore.table.params.isStatisticData = 1
} else {
delete tableStore.table.params.isStatisticData
}
@@ -163,7 +163,7 @@ const changetype = (val: any) => {
const onStatisticDataChange = () => {
TableHeaderRef.value?.setTheDate(3)
if (dotList.value?.id) {
// tableStore.index()
}
}
const selectChange = () => {