diff --git a/src/api/harmonic-boot/luckyexcel.ts b/src/api/harmonic-boot/luckyexcel.ts
index b5c5f14..209e63b 100644
--- a/src/api/harmonic-boot/luckyexcel.ts
+++ b/src/api/harmonic-boot/luckyexcel.ts
@@ -103,6 +103,14 @@ export function getTemplateByDept(params) {
params
})
}
+// 获取模版
+export function querySysExcel(params) {
+ return createAxios({
+ url: '/cs-harmonic-boot/sysExcel/querySysExcel',
+ method: 'post',
+ params
+ })
+}
//资源管理 查询数据
export function queryData(data) {
return createAxios({
@@ -168,3 +176,43 @@ export function terminalChooseTree() {
method: 'get'
})
}
+//新增模版
+export function addSysExcel(data:any) {
+ return createAxios({
+ url: '/cs-harmonic-boot/sysExcel/addSysExcel',
+ method: 'post',
+ data
+ })
+}
+//修改模版
+export function updateSysExcel(data:any) {
+ return createAxios({
+ url: '/cs-harmonic-boot/sysExcel/updateSysExcel',
+ method: 'post',
+ data
+ })
+}
+//删除模版
+export function deleteSysExcel(params:any) {
+ return createAxios({
+ url: '/cs-harmonic-boot/sysExcel/deleteSysExcel',
+ method: 'post',
+ params
+ })
+}
+//查詢綁定
+export function queryList(params:any) {
+ return createAxios({
+ url: '/cs-harmonic-boot/sysExcelRelation/queryList',
+ method: 'post',
+ params
+ })
+}
+//綁定
+export function bandRelation(data:any) {
+ return createAxios({
+ url: '/cs-harmonic-boot/sysExcelRelation/bandRelation',
+ method: 'post',
+ data
+ })
+}
diff --git a/src/components/cockpit/F47Curve/index.vue b/src/components/cockpit/F47Curve/index.vue
index 49aa85d..edb4af8 100644
--- a/src/components/cockpit/F47Curve/index.vue
+++ b/src/components/cockpit/F47Curve/index.vue
@@ -116,8 +116,8 @@ const tableStore: any = new TableStore({
loadCallback: () => {
const gongData = gongfunction(tableStore.table.data)
data.gs = tableStore.table.data.length
- data.krr = gongData.pointI.length
- data.bkrr = gongData.pointIun.length
+ data.krr = gongData.pointF.length
+ data.bkrr = gongData.pointFun.length
echartList.value = {
title: {
text: `F47曲线`
@@ -215,15 +215,7 @@ const tableStore: any = new TableStore({
// [0.4, 50, '2023-01-01 11:00:00']
// ],
legendSymbol: 'circle',
- emphasis: {
- focus: 'series',
- itemStyle: {
- borderColor: '#fff',
- borderWidth: 2,
- shadowBlur: 10,
- shadowColor: 'rgba(0, 0, 0, 0.5)'
- }
- },
+
tooltip: {
show: true,
trigger: 'item',
diff --git a/src/components/cockpit/governanceReport/index.vue b/src/components/cockpit/governanceReport/index.vue
index 12f7a22..993a89b 100644
--- a/src/components/cockpit/governanceReport/index.vue
+++ b/src/components/cockpit/governanceReport/index.vue
@@ -3,9 +3,9 @@
-
-
-
+
+
+
@@ -34,7 +34,7 @@ import { ref, onMounted, provide, reactive, watch, h, computed, nextTick } from
import TableStore from '@/utils/tableStore'
import { exportExcel } from '@/views/govern/reportForms/export.js'
import TableHeader from '@/components/table/header/index.vue'
-import { getTemplateList } from '@/api/harmonic-boot/luckyexcel'
+import { querySysExcel } from '@/api/harmonic-boot/luckyexcel'
import { getListByIds } from '@/api/harmonic-boot/cockpit/cockpit'
import { getTime } from '@/utils/formatTime'
import { ElMessage } from 'element-plus'
@@ -71,8 +71,8 @@ const initListByIds = () => {
}
const templateListData = () => {
- getTemplateList({}).then(res => {
- templateList.value = res.data.filter(item => item.reportForm == 4)
+ querySysExcel({}).then(res => {
+ templateList.value = res.data.filter(item => item.excelType == 4)
if (!tableStore.table.params.tempId && templateList.value?.length > 0) {
tableStore.table.params.tempId = templateList.value[0].id
}
diff --git a/src/components/cockpit/gridSideStatistics/components/harmonicRatio.vue b/src/components/cockpit/gridSideStatistics/components/harmonicRatio.vue
index 05cb5b1..4e232bc 100644
--- a/src/components/cockpit/gridSideStatistics/components/harmonicRatio.vue
+++ b/src/components/cockpit/gridSideStatistics/components/harmonicRatio.vue
@@ -66,7 +66,7 @@
@@ -82,11 +82,7 @@
-
+
@@ -160,28 +156,40 @@ const countOptions: any = ref([])
const legendDictList: any = ref([])
const initCode = (field: string, title: string) => {
- queryByCode('steady_state_limit_trend').then(res => {
+ queryByCode('gridSide_exceedTheLimit').then(res => {
queryCsDictTree(res.data.id).then(item => {
//排序
indexOptions.value = item.data.sort((a: any, b: any) => {
return a.sort - b.sort
})
- const titleMap: Record = {
- flickerOvertime: 0,
- uaberranceOvertime: 3,
- ubalanceOvertime: 4,
- freqDevOvertime: 5
- }
+ let codeKey = field.includes('flickerOvertime')
+ ? '闪变'
+ : field.includes('uharm')
+ ? '谐波电压'
+ : field.includes('iharm')
+ ? '谐波电流'
+ : field.includes('voltageDevOvertime')
+ ? '电压偏差'
+ : field.includes('ubalanceOvertime')
+ ? '不平衡'
+ : ''
- let defaultIndex = 0 // 默认值
+ // const titleMap: Record = {
+ // flickerOvertime: 0,
+ // uaberranceOvertime: 3,
+ // ubalanceOvertime: 4,
+ // freqDevOvertime: 5
+ // }
- if (field in titleMap) {
- defaultIndex = titleMap[field]
- } else if (field.includes('uharm')) {
- defaultIndex = 1
- } else if (field.includes('iharm')) {
- defaultIndex = 2
- }
+ // let defaultIndex = 0 // 默认值
+ let defaultIndex = indexOptions.value.findIndex((item: any) => item.name.includes(codeKey)) || 0
+ // if (field in titleMap) {
+ // defaultIndex = titleMap[field]
+ // } else if (field.includes('uharm')) {
+ // defaultIndex = indexOptions.value.findIndex((item: any) => item.code === 'uharm')
+ // } else if (field.includes('iharm')) {
+ // defaultIndex = indexOptions.value.findIndex((item: any) => item.code === 'iharm')
+ // }
searchForm.value.index[0] = indexOptions.value[defaultIndex].id
})
@@ -205,7 +213,7 @@ const initCode = (field: string, title: string) => {
if (kk.harmStart && kk.harmEnd) {
range(0, 0, 0)
- if (kk.showName == '间谐波电压含有率') {
+ if (kk.showName.includes('间谐波电压')) {
countDataCopy.value[index].countOptions = range(kk.harmStart, kk.harmEnd, 1).map(
(item: any) => {
return item - 0.5
@@ -287,14 +295,15 @@ const init = async () => {
let lists: any = []
let frequencys: any = null
countData.value.map((item: any, index: any) => {
- if (item.name.includes('谐波含有率')) {
+ if (item.name.includes('谐波')) {
frequencys = item.count
} else {
frequencys = ''
}
+
lists[index] = {
statisticalId: item.index,
- frequency: frequencys !== null && frequencys !== undefined ? String(frequencys) : ''
+ frequency: frequencys !== null && frequencys !== undefined ? String(frequencys) : ''
}
})
let obj = {
@@ -600,12 +609,12 @@ const formatCountOptions = () => {
})
countData.value.map((item: any, key: any) => {
- if (item.name == '谐波电流有效值') {
- item.name = '谐波电流次数'
- } else if (item.name == '谐波电压含有率') {
- item.name = '谐波电压次数'
- } else if (item.name == '间谐波电压含有率') {
+ if (item.name.includes('间谐波电压')) {
item.name = '间谐波电压次数'
+ } else if (item.name.includes('谐波电流')) {
+ item.name = '谐波电流次数'
+ } else if (item.name.includes('谐波电压')) {
+ item.name = '谐波电压次数'
}
})
}
diff --git a/src/components/cockpit/gridSideStatistics/components/overLimitDetails.vue b/src/components/cockpit/gridSideStatistics/components/overLimitDetails.vue
index f9cf7e5..7f45e12 100644
--- a/src/components/cockpit/gridSideStatistics/components/overLimitDetails.vue
+++ b/src/components/cockpit/gridSideStatistics/components/overLimitDetails.vue
@@ -14,7 +14,7 @@
@@ -101,16 +101,7 @@ const tableStore: any = new TableStore({
title: '谐波电流越限(%)',
children: loop50('iharm')
},
- {
- title: '三相不平衡度越限(%)',
- field: 'ubalanceOvertime',
- width: '100',
- render: 'customTemplate',
- customTemplate: (row: any) => {
- return `${row.ubalanceOvertime}`
- }
- },
- {
+ {
title: '电压偏差越限(%)',
field: 'voltageDevOvertime',
width: '100',
@@ -120,14 +111,24 @@ const tableStore: any = new TableStore({
}
},
{
- title: '频率偏差越限(%)',
- field: 'freqDevOvertime',
+ title: '三相不平衡度越限(%)',
+ field: 'ubalanceOvertime',
width: '100',
render: 'customTemplate',
customTemplate: (row: any) => {
- return `${row.freqDevOvertime}`
+ return `${row.ubalanceOvertime}`
}
- }
+ },
+
+ // {
+ // title: '频率偏差越限(%)',
+ // field: 'freqDevOvertime',
+ // width: '100',
+ // render: 'customTemplate',
+ // customTemplate: (row: any) => {
+ // return `${row.freqDevOvertime}`
+ // }
+ // }
],
beforeSearchFun: () => {
},
@@ -139,9 +140,10 @@ const tableStore: any = new TableStore({
provide('tableStore', tableStore)
tableStore.table.params.sortBy = ''
tableStore.table.params.orderBy = ''
-const open = async (row: any,searchBeginTime:any,searchEndTime:any,interval:any) => {
+const open = async (row: any,searchBeginTime:any,searchEndTime:any,interval:any,list:any) => {
dialogVisible.value = true
- initCSlineList()
+ options.value = list
+ // initCSlineList()
tableStore.table.params.lineId = row.lineId
nextTick(() => {
diff --git a/src/components/cockpit/gridSideStatistics/index.vue b/src/components/cockpit/gridSideStatistics/index.vue
index 85406a5..1131858 100644
--- a/src/components/cockpit/gridSideStatistics/index.vue
+++ b/src/components/cockpit/gridSideStatistics/index.vue
@@ -217,7 +217,8 @@ const cellClickEvent = ({ row, column }: any) => {
row,
tableStore.table.params.searchBeginTime || prop.timeValue?.[0],
tableStore.table.params.searchEndTime || prop.timeValue?.[1],
- tableStore.table.params.interval || prop.interval
+ tableStore.table.params.interval || prop.interval,
+ tableStore.table.data
)
}
diff --git a/src/components/cockpit/indicatorFittingChart/components/overLimitDetails.vue b/src/components/cockpit/indicatorFittingChart/components/overLimitDetails.vue
index 432719b..105aae4 100644
--- a/src/components/cockpit/indicatorFittingChart/components/overLimitDetails.vue
+++ b/src/components/cockpit/indicatorFittingChart/components/overLimitDetails.vue
@@ -177,8 +177,8 @@ const onHarmonicRatioClose = () => {
}
const initCSlineList = async () => {
- const res = await cslineList({})
- options.value = res.data
+ // const res = await cslineList({})
+ // options.value = res.data
}
diff --git a/src/components/cockpit/indicatorFittingChart/index.vue b/src/components/cockpit/indicatorFittingChart/index.vue
index 1642af7..6ac2a98 100644
--- a/src/components/cockpit/indicatorFittingChart/index.vue
+++ b/src/components/cockpit/indicatorFittingChart/index.vue
@@ -6,7 +6,7 @@
:timeKeyList="prop.timeKey"
@selectChange="selectChange"
v-if="fullscreen"
- datePicker
+
ref="TableHeaderRef"
>
@@ -29,7 +29,7 @@ import { ref, onMounted, provide, reactive, watch, nextTick } from 'vue'
import TableStore from '@/utils/tableStore'
import Table from '@/components/table/index.vue'
import TableHeader from '@/components/table/header/index.vue'
-import { getTime } from '@/utils/formatTime'
+import { getTimeOfTheMonth } from '@/utils/formatTime'
import OverLimitDetails from '@/components/cockpit/indicatorFittingChart/components/overLimitDetails.vue'
import { useRoute } from 'vue-router'
import { useTimeCacheStore } from '@/stores/timeCache'
@@ -66,11 +66,11 @@ const fullscreen = computed(() => {
const selectChange = (showSelect: any, height: any, datePickerValue?: any) => {
headerHeight.value = height
- if (datePickerValue && datePickerValue.timeValue) {
- // 更新时间参数
- tableStore.table.params.searchBeginTime = datePickerValue.timeValue[0]
- tableStore.table.params.searchEndTime = datePickerValue.timeValue[1]
- }
+ // if (datePickerValue && datePickerValue.timeValue) {
+ // // 更新时间参数
+ // tableStore.table.params.searchBeginTime = datePickerValue.timeValue[0]
+ // tableStore.table.params.searchEndTime = datePickerValue.timeValue[1]
+ // }
}
const tableStore: any = new TableStore({
@@ -132,32 +132,34 @@ provide('tableStore', tableStore)
// 点击行
const cellClickEvent = ({ row, column }: any) => {
if (column.field == 'lineName') {
+
+ let time = getTimeOfTheMonth('3');
OverLimitDetailsRef.value.open(
row,
- tableStore.table.params.searchBeginTime || prop.timeValue?.[0],
- tableStore.table.params.searchEndTime || prop.timeValue?.[1],
+ time[0],
+ time[1],
tableStore.table.data
)
}
}
const setTime = () => {
- const time = getTime(
- (TableHeaderRef.value?.datePickerRef.interval || prop.interval) ?? 0,
- prop.timeKey,
- fullscreen.value
- ? [tableStore.table.params.searchBeginTime, tableStore.table.params.searchEndTime]
- : prop.timeValue
- )
+ // const time = getTime(
+ // (TableHeaderRef.value?.datePickerRef.interval || prop.interval) ?? 0,
+ // prop.timeKey,
+ // fullscreen.value
+ // ? [tableStore.table.params.searchBeginTime, tableStore.table.params.searchEndTime]
+ // : prop.timeValue
+ // )
- if (Array.isArray(time)) {
- tableStore.table.params.searchBeginTime = time[0]
- tableStore.table.params.searchEndTime = time[1]
- // TableHeaderRef.value?.setInterval(time[2] - 0)
- // TableHeaderRef.value?.setTimeInterval([time[0], time[1]])
- } else {
- console.warn('获取时间失败,time 不是一个有效数组')
- }
+ // if (Array.isArray(time)) {
+ // tableStore.table.params.searchBeginTime = time[0]
+ // tableStore.table.params.searchEndTime = time[1]
+ // // TableHeaderRef.value?.setInterval(time[2] - 0)
+ // // TableHeaderRef.value?.setTimeInterval([time[0], time[1]])
+ // } else {
+ // console.warn('获取时间失败,time 不是一个有效数组')
+ // }
}
// 在组件挂载时设置缓存值到 DatePicker
diff --git a/src/components/cockpit/monitoringPointList/index.vue b/src/components/cockpit/monitoringPointList/index.vue
index 326e21e..ecbcb68 100644
--- a/src/components/cockpit/monitoringPointList/index.vue
+++ b/src/components/cockpit/monitoringPointList/index.vue
@@ -5,7 +5,7 @@
ref="TableHeaderRef"
:showReset="false"
@selectChange="selectChange"
- datePicker
+
v-if="fullscreen"
:timeKeyList="prop.timeKey"
>
@@ -86,11 +86,11 @@ const fileList = ref([])
const selectChange = (showSelect: any, height: any, datePickerValue?: any) => {
headerHeight.value = height
- if (datePickerValue && datePickerValue.timeValue) {
- // 更新时间参数
- tableStore.table.params.searchBeginTime = datePickerValue.timeValue[0]
- tableStore.table.params.searchEndTime = datePickerValue.timeValue[1]
- }
+ // if (datePickerValue && datePickerValue.timeValue) {
+ // // 更新时间参数
+ // tableStore.table.params.searchBeginTime = datePickerValue.timeValue[0]
+ // tableStore.table.params.searchEndTime = datePickerValue.timeValue[1]
+ // }
}
// 计算是否全屏展示
@@ -297,22 +297,22 @@ tableStore.table.params.keywords = ''
provide('tableStore', tableStore)
const setTime = () => {
- const time = getTime(
- (TableHeaderRef.value?.datePickerRef.interval || prop.interval) ?? 0,
- prop.timeKey,
- fullscreen.value
- ? [tableStore.table.params.searchBeginTime, tableStore.table.params.searchEndTime]
- : prop.timeValue
- )
+ // const time = getTime(
+ // (TableHeaderRef.value?.datePickerRef.interval || prop.interval) ?? 0,
+ // prop.timeKey,
+ // fullscreen.value
+ // ? [tableStore.table.params.searchBeginTime, tableStore.table.params.searchEndTime]
+ // : prop.timeValue
+ // )
- if (Array.isArray(time)) {
- tableStore.table.params.searchBeginTime = time[0]
- tableStore.table.params.searchEndTime = time[1]
- TableHeaderRef.value?.setInterval(time[2] - 0)
- TableHeaderRef.value?.setTimeInterval([time[0], time[1]])
- } else {
- console.warn('获取时间失败,time 不是一个有效数组')
- }
+ // if (Array.isArray(time)) {
+ // tableStore.table.params.searchBeginTime = time[0]
+ // tableStore.table.params.searchEndTime = time[1]
+ // TableHeaderRef.value?.setInterval(time[2] - 0)
+ // TableHeaderRef.value?.setTimeInterval([time[0], time[1]])
+ // } else {
+ // console.warn('获取时间失败,time 不是一个有效数组')
+ // }
}
// 点击行
diff --git a/src/components/cockpit/overLimitStatistics/components/harmonicRatio.vue b/src/components/cockpit/overLimitStatistics/components/harmonicRatio.vue
index 4b440c3..272e5de 100644
--- a/src/components/cockpit/overLimitStatistics/components/harmonicRatio.vue
+++ b/src/components/cockpit/overLimitStatistics/components/harmonicRatio.vue
@@ -82,11 +82,7 @@
-
+
@@ -160,28 +156,40 @@ const countOptions: any = ref([])
const legendDictList: any = ref([])
const initCode = (field: string, title: string) => {
- queryByCode('steady_state_limit_trend').then(res => {
+ queryByCode('gridSide_exceedTheLimit').then(res => {
queryCsDictTree(res.data.id).then(item => {
//排序
indexOptions.value = item.data.sort((a: any, b: any) => {
return a.sort - b.sort
})
- const titleMap: Record = {
- flickerOvertime: 0,
- uaberranceOvertime: 3,
- ubalanceOvertime: 4,
- freqDevOvertime: 5
- }
+ // const titleMap: Record = {
+ // flickerOvertime: 0,
+ // uaberranceOvertime: 3,
+ // ubalanceOvertime: 4,
+ // freqDevOvertime: 5
+ // }
- let defaultIndex = 0 // 默认值
+ // let defaultIndex = 0 // 默认值
- if (field in titleMap) {
- defaultIndex = titleMap[field]
- } else if (field.includes('uharm')) {
- defaultIndex = 1
- } else if (field.includes('iharm')) {
- defaultIndex = 2
- }
+ // if (field in titleMap) {
+ // defaultIndex = titleMap[field]
+ // } else if (field.includes('uharm')) {
+ // defaultIndex = 1
+ // } else if (field.includes('iharm')) {
+ // defaultIndex = 2
+ // }
+ let codeKey = field.includes('flickerOvertime')
+ ? '闪变'
+ : field.includes('uharm')
+ ? '谐波电压'
+ : field.includes('iharm')
+ ? '谐波电流'
+ : field.includes('voltageDevOvertime')
+ ? '电压偏差'
+ : field.includes('ubalanceOvertime')
+ ? '不平衡'
+ : ''
+ let defaultIndex = indexOptions.value.findIndex((item: any) => item.name.includes(codeKey)) || 0
searchForm.value.index[0] = indexOptions.value[defaultIndex].id
})
@@ -205,7 +213,7 @@ const initCode = (field: string, title: string) => {
if (kk.harmStart && kk.harmEnd) {
range(0, 0, 0)
- if (kk.showName == '间谐波电压含有率') {
+ if (kk.showName.includes('间谐波电压')) {
countDataCopy.value[index].countOptions = range(kk.harmStart, kk.harmEnd, 1).map(
(item: any) => {
return item - 0.5
@@ -294,7 +302,7 @@ const init = async () => {
}
lists[index] = {
statisticalId: item.index,
- frequency: frequencys !== null && frequencys !== undefined ? String(frequencys) : ''
+ frequency: frequencys !== null && frequencys !== undefined ? String(frequencys) : ''
}
})
let obj = {
@@ -600,12 +608,12 @@ const formatCountOptions = () => {
})
countData.value.map((item: any, key: any) => {
- if (item.name == '谐波电流有效值') {
- item.name = '谐波电流次数'
- } else if (item.name == '谐波电压含有率') {
- item.name = '谐波电压次数'
- } else if (item.name == '间谐波电压含有率') {
+ if (item.name.includes('间谐波电压')) {
item.name = '间谐波电压次数'
+ } else if (item.name.includes('谐波电流')) {
+ item.name = '谐波电流次数'
+ } else if (item.name.includes('谐波电压')) {
+ item.name = '谐波电压次数'
}
})
}
diff --git a/src/components/cockpit/overLimitStatistics/components/overLimitDetails.vue b/src/components/cockpit/overLimitStatistics/components/overLimitDetails.vue
index c675df2..adcf3e5 100644
--- a/src/components/cockpit/overLimitStatistics/components/overLimitDetails.vue
+++ b/src/components/cockpit/overLimitStatistics/components/overLimitDetails.vue
@@ -101,16 +101,7 @@ const tableStore: any = new TableStore({
title: '谐波电流越限(%)',
children: loop50('iharm')
},
- {
- title: '三相不平衡度越限(%)',
- field: 'ubalanceOvertime',
- width: '100',
- render: 'customTemplate',
- customTemplate: (row: any) => {
- return `${row.ubalanceOvertime}`
- }
- },
- {
+ {
title: '电压偏差越限(%)',
field: 'voltageDevOvertime',
width: '100',
@@ -120,14 +111,24 @@ const tableStore: any = new TableStore({
}
},
{
- title: '频率偏差越限(%)',
- field: 'freqDevOvertime',
+ title: '三相不平衡度越限(%)',
+ field: 'ubalanceOvertime',
width: '100',
render: 'customTemplate',
customTemplate: (row: any) => {
- return `${row.freqDevOvertime}`
+ return `${row.ubalanceOvertime}`
}
- }
+ },
+
+ // {
+ // title: '频率偏差越限(%)',
+ // field: 'freqDevOvertime',
+ // width: '100',
+ // render: 'customTemplate',
+ // customTemplate: (row: any) => {
+ // return `${row.freqDevOvertime}`
+ // }
+ // }
],
beforeSearchFun: () => {
},
diff --git a/src/components/cockpit/sensitiveLoad/index.vue b/src/components/cockpit/sensitiveLoad/index.vue
index 1bbc13f..bd8dd35 100644
--- a/src/components/cockpit/sensitiveLoad/index.vue
+++ b/src/components/cockpit/sensitiveLoad/index.vue
@@ -5,7 +5,7 @@
ref="TableHeaderRef"
:showReset="false"
@selectChange="selectChange"
- datePicker
+
v-if="fullscreen"
:timeKeyList="prop.timeKey"
>
@@ -45,11 +45,11 @@ const sensitiveUserType = dictData.getBasicData('Interference_Source')
const selectChange = (showSelect: any, height: any, datePickerValue?: any) => {
headerHeight.value = height
- if (datePickerValue && datePickerValue.timeValue) {
- // 更新时间参数
- tableStore.table.params.searchBeginTime = datePickerValue.timeValue[0]
- tableStore.table.params.searchEndTime = datePickerValue.timeValue[1]
- }
+ // if (datePickerValue && datePickerValue.timeValue) {
+ // // 更新时间参数
+ // tableStore.table.params.searchBeginTime = datePickerValue.timeValue[0]
+ // tableStore.table.params.searchEndTime = datePickerValue.timeValue[1]
+ // }
}
// 计算是否全屏展示
@@ -130,22 +130,22 @@ const cellClickEvent = ({ row, column }: any) => {
}
const setTime = () => {
- const time = getTime(
- (TableHeaderRef.value?.datePickerRef.interval || prop.interval) ?? 0,
- prop.timeKey,
- fullscreen.value
- ? [tableStore.table.params.searchBeginTime, tableStore.table.params.searchEndTime]
- : prop.timeValue
- )
+ // const time = getTime(
+ // (TableHeaderRef.value?.datePickerRef.interval || prop.interval) ?? 0,
+ // prop.timeKey,
+ // fullscreen.value
+ // ? [tableStore.table.params.searchBeginTime, tableStore.table.params.searchEndTime]
+ // : prop.timeValue
+ // )
- if (Array.isArray(time)) {
- tableStore.table.params.searchBeginTime = time[0]
- tableStore.table.params.searchEndTime = time[1]
- TableHeaderRef.value?.setInterval(time[2] - 0)
- TableHeaderRef.value?.setTimeInterval([time[0], time[1]])
- } else {
- console.warn('获取时间失败,time 不是一个有效数组')
- }
+ // if (Array.isArray(time)) {
+ // tableStore.table.params.searchBeginTime = time[0]
+ // tableStore.table.params.searchEndTime = time[1]
+ // TableHeaderRef.value?.setInterval(time[2] - 0)
+ // TableHeaderRef.value?.setTimeInterval([time[0], time[1]])
+ // } else {
+ // console.warn('获取时间失败,time 不是一个有效数组')
+ // }
}
onMounted(() => {
diff --git a/src/components/cockpit/trendComparison/index.vue b/src/components/cockpit/trendComparison/index.vue
index 7e9dd61..3512ae2 100644
--- a/src/components/cockpit/trendComparison/index.vue
+++ b/src/components/cockpit/trendComparison/index.vue
@@ -325,7 +325,6 @@ const setEchart = () => {
const xname = params[0].value[0]
let str = `${xname}
`
params.forEach((el: any, index: any) => {
- console.log('🚀 ~ setEchart ~ el:', el)
let marker = ''
marker = ``
diff --git a/src/components/tree/govern/cloudDeviceEntryTree.vue b/src/components/tree/govern/cloudDeviceEntryTree.vue
index 425d327..1e5fb72 100644
--- a/src/components/tree/govern/cloudDeviceEntryTree.vue
+++ b/src/components/tree/govern/cloudDeviceEntryTree.vue
@@ -7,7 +7,7 @@ import { ref, nextTick, onMounted, defineProps } from 'vue'
import Tree from '../index.vue'
import { getLineTree,getCldTree } from '@/api/cs-device-boot/csLedger'
import { useConfig } from '@/stores/config'
-import { getTemplateByDept } from '@/api/harmonic-boot/luckyexcel'
+import { querySysExcel } from '@/api/harmonic-boot/luckyexcel'
import { useDictData } from '@/stores/dictData'
interface Props {
@@ -158,7 +158,7 @@ const onAdd = () => {
emit('onAdd')
}
if (props.template) {
- getTemplateByDept({ id: dictData.state.area[0]?.id })
+ querySysExcel({ id: dictData.state.area[0]?.id })
.then((res: any) => {
emit('Policy', res.data)
info()
diff --git a/src/components/tree/govern/cloudDeviceEntryTreeZL.vue b/src/components/tree/govern/cloudDeviceEntryTreeZL.vue
index bd8ecf4..286845e 100644
--- a/src/components/tree/govern/cloudDeviceEntryTreeZL.vue
+++ b/src/components/tree/govern/cloudDeviceEntryTreeZL.vue
@@ -15,7 +15,7 @@ import { ref, nextTick, onMounted, defineProps } from 'vue'
import Tree from '../index.vue'
import { getLineTree, objTree } from '@/api/cs-device-boot/csLedger'
import { useConfig } from '@/stores/config'
-import { getTemplateByDept } from '@/api/harmonic-boot/luckyexcel'
+import { querySysExcel } from '@/api/harmonic-boot/luckyexcel'
import { useDictData } from '@/stores/dictData'
interface Props {
@@ -85,7 +85,7 @@ const onAdd = () => {
emit('onAdd')
}
if (props.template) {
- getTemplateByDept({ id: dictData.state.area[0]?.id })
+ querySysExcel({ id: dictData.state.area[0]?.id })
.then((res: any) => {
emit('Policy', res.data)
info()
diff --git a/src/components/tree/govern/pointTree.vue b/src/components/tree/govern/pointTree.vue
index ecffab1..ae1fa7f 100644
--- a/src/components/tree/govern/pointTree.vue
+++ b/src/components/tree/govern/pointTree.vue
@@ -7,7 +7,7 @@ import { ref, nextTick, onMounted, defineProps } from 'vue'
import Tree from '../point.vue'
import { getLineTree } from '@/api/cs-device-boot/csLedger'
import { useConfig } from '@/stores/config'
-import { getTemplateByDept } from '@/api/harmonic-boot/luckyexcel'
+import { querySysExcel } from '@/api/harmonic-boot/luckyexcel'
import { useDictData } from '@/stores/dictData'
// const props = defineProps(['template'])
interface Props {
@@ -138,7 +138,7 @@ const changePointType = (val: any, obj: any) => {
emit('pointTypeChange', val, obj)
}
if (props.template) {
- getTemplateByDept({ id: dictData.state.area[0]?.id })
+ querySysExcel({ id: dictData.state.area[0]?.id })
.then((res: any) => {
emit('Policy', res.data)
info()
diff --git a/src/components/tree/govern/pointTreeWx.vue b/src/components/tree/govern/pointTreeWx.vue
index d43db98..0128ed7 100644
--- a/src/components/tree/govern/pointTreeWx.vue
+++ b/src/components/tree/govern/pointTreeWx.vue
@@ -53,7 +53,7 @@ import { getSchemeTree, getTestRecordInfo } from '@/api/cs-device-boot/planData'
import { useConfig } from '@/stores/config'
import useCurrentInstance from '@/utils/useCurrentInstance'
import { ElTree } from 'element-plus'
-import { getTemplateByDept } from '@/api/harmonic-boot/luckyexcel'
+import { querySysExcel } from '@/api/harmonic-boot/luckyexcel'
import { useDictData } from '@/stores/dictData'
defineOptions({
name: 'govern/schemeTree'
@@ -157,7 +157,7 @@ const clickNode = (e: anyObj) => {
}
if (props.template) {
- getTemplateByDept({ id: dictData.state.area[0]?.id })
+ querySysExcel({ id: dictData.state.area[0]?.id })
.then((res: any) => {
emit('Policy', res.data)
getTreeList()
diff --git a/src/views/govern/cloudDeviceEntry/index.vue b/src/views/govern/cloudDeviceEntry/index.vue
index d2e5bf0..7a5fa37 100644
--- a/src/views/govern/cloudDeviceEntry/index.vue
+++ b/src/views/govern/cloudDeviceEntry/index.vue
@@ -230,14 +230,14 @@
补召
返回
-
-
-
+
-
+
取消
@@ -34,13 +39,20 @@
- 补召完成
+
+ 补召完成
-
-
-
+
@@ -58,10 +70,7 @@ import { useRouter, useRoute } from 'vue-router'
import { mainHeight } from '@/utils/layout'
import { VxeUI, VxeTableInstance, VxeTableEvents } from 'vxe-table'
import { SuccessFilled } from '@element-plus/icons-vue'
-import {
- Back,
- Setting, Search
-} from '@element-plus/icons-vue'
+import { Back, Setting, Search } from '@element-plus/icons-vue'
import { ElMessage } from 'element-plus'
import mqtt from 'mqtt'
defineOptions({
@@ -75,7 +84,7 @@ const loading = ref(false)
const dirList = ref([])
const route: any = ref({})
const datePickerRef = ref()
-const format = (percentage) => (percentage === 100 ? '完成' : `${percentage}%`)
+const format = percentage => (percentage === 100 ? '完成' : `${percentage}%`)
const getMakeUpDataList = (row: any) => {
route.value = row
loading.value = true
@@ -139,11 +148,11 @@ const handleUpDevice = () => {
}
const radioChangeEvent: VxeTableEvents.RadioChange = ({ row }) => {
+ datePickerRef.value.timeValue = [row.startTime.split(' ')[0] , row.endTime.split(' ')[0] ]
selectRow.value = row
// console.log('单选事件')
}
-
const clearRadioRowEvent = () => {
const $table = tableRef.value
if ($table) {
@@ -152,7 +161,7 @@ const clearRadioRowEvent = () => {
}
}
const mqttRef = ref()
-const url: any = window.localStorage.getItem('MQTTURL')
+const url: any = window.localStorage.getItem('MQTTURL')
const connectMqtt = () => {
if (mqttRef.value) {
if (mqttRef.value.connected) {
@@ -173,10 +182,10 @@ const connectMqtt = () => {
const handleSearch = () => {
getMakeUpDataList(route.value)
}
-function parseStringToObject(str:string) {
+function parseStringToObject(str: string) {
const content = str.replace(/^{|}$/g, '')
const pairs = content.split(',')
- const result:any = {}
+ const result: any = {}
pairs.forEach(pair => {
const [key, value] = pair.split(':')
// 尝试将数字转换为Number类型
@@ -210,7 +219,6 @@ mqttRef.value.on('message', (topic: any, message: any) => {
let percentage = parseInt(Number((mqttMessage.value.nowStep / mqttMessage.value.allStep) * 100)) || 0
if (percentage > 5) {
item.status = percentage
-
}
}
// })
@@ -226,6 +234,8 @@ mqttRef.value.on('close', function () {
console.log('mqtt客户端已断开连接.....')
})
onMounted(() => {
+ datePickerRef.value.setInterval(5)
+ datePickerRef.value.setTimeOptions([{ label: '自定义', value: 5 }])
})
onBeforeUnmount(() => {
if (mqttRef.value) {
@@ -261,14 +271,21 @@ defineExpose({ getMakeUpDataList })
// }
// }
:deep(.el-progress-bar__inner--striped) {
- background-image: linear-gradient(45deg, rgba(255, 255, 255, .3) 25%, transparent 0, transparent 50%, rgba(255, 255, 255, .3) 0, rgba(255, 255, 255, .3) 75%, transparent 0, transparent);
-
+ background-image: linear-gradient(
+ 45deg,
+ rgba(255, 255, 255, 0.3) 25%,
+ transparent 0,
+ transparent 50%,
+ rgba(255, 255, 255, 0.3) 0,
+ rgba(255, 255, 255, 0.3) 75%,
+ transparent 0,
+ transparent
+ );
}
:deep(.progress) {
.el-progress__text {
color: green;
-
}
}
@@ -276,6 +293,6 @@ defineExpose({ getMakeUpDataList })
display: flex;
justify-content: center;
font-weight: 550;
- color: #009688
+ color: #009688;
}
diff --git a/src/views/govern/reportCore/statistics/index.vue b/src/views/govern/reportCore/statistics/index.vue
index 6f9a250..238ae95 100644
--- a/src/views/govern/reportCore/statistics/index.vue
+++ b/src/views/govern/reportCore/statistics/index.vue
@@ -11,7 +11,7 @@
-
@@ -35,7 +35,6 @@ import PointTree from '@/components/tree/govern/pointTree.vue'
import TableHeader from '@/components/table/header/index.vue'
import { useDictData } from '@/stores/dictData'
import { mainHeight } from '@/utils/layout'
-import { getTemplateByDept } from '@/api/harmonic-boot/luckyexcel'
import { exportExcel } from '@/views/system/reportForms/export.js'
import 'splitpanes/dist/splitpanes.css'
import { Splitpanes, Pane } from 'splitpanes'
@@ -106,16 +105,11 @@ onMounted(() => {
}
})
-// getTemplateByDept({ id: dictData.state.area[0].id }).then((res: any) => {
-// templatePolicy.value = res.data
-
-
-// })
const stencil = (val: any) => {
templatePolicy.value = val
Template.value = val[0]
- reportForm.value = val[0]?.reportForm
+ reportForm.value = val[0]?.excelType
}
diff --git a/src/views/govern/reportCore/statisticsWx/index.vue b/src/views/govern/reportCore/statisticsWx/index.vue
index 30a0726..223e193 100644
--- a/src/views/govern/reportCore/statisticsWx/index.vue
+++ b/src/views/govern/reportCore/statisticsWx/index.vue
@@ -14,7 +14,7 @@
-
@@ -40,7 +40,6 @@ import pointTreeWx from '@/components/tree/govern/pointTreeWx.vue'
import TableHeader from '@/components/table/header/index.vue'
import { useDictData } from '@/stores/dictData'
import { mainHeight } from '@/utils/layout'
-import { getTemplateByDept } from '@/api/harmonic-boot/luckyexcel'
import { exportExcel } from '@/views/system/reportForms/export.js'
import 'splitpanes/dist/splitpanes.css'
import DatePicker from '@/components/form/datePicker/time.vue'
@@ -112,21 +111,16 @@ onMounted(() => {
})
})
-// getTemplateByDept({ id: dictData.state.area[0].id }).then((res: any) => {
-// templatePolicy.value = res.data
-
-
-// })
const stencil = (val: any) => {
templatePolicy.value = val
Template.value = val[0]
- reportForm.value = val[0]?.reportForm
+ reportForm.value = val[0]?.excelType
}
const changetype = (val: any) => {
- reportForm.value = val.reportForm
+ reportForm.value = val.excelType
}
const handleNodeClick = (data: any, node: any) => {
diff --git a/src/views/govern/reportCore/statisticsWx/index_ypt.vue b/src/views/govern/reportCore/statisticsWx/index_ypt.vue
index ae6d5f7..f816b90 100644
--- a/src/views/govern/reportCore/statisticsWx/index_ypt.vue
+++ b/src/views/govern/reportCore/statisticsWx/index_ypt.vue
@@ -29,7 +29,7 @@
@@ -62,7 +62,6 @@ import pointTreeWx from '@/components/tree/govern/pointTreeWx.vue'
import TableHeader from '@/components/table/header/index.vue'
import { useDictData } from '@/stores/dictData'
import { mainHeight } from '@/utils/layout'
-import { getTemplateByDept } from '@/api/harmonic-boot/luckyexcel'
import { exportExcel } from '@/views/system/reportForms/export.js'
import 'splitpanes/dist/splitpanes.css'
import DatePicker from '@/components/form/datePicker/time.vue'
@@ -144,15 +143,11 @@ onMounted(() => {
})
})
-// getTemplateByDept({ id: dictData.state.area[0].id }).then((res: any) => {
-// templatePolicy.value = res.data
-
-// })
const stencil = (val: any) => {
- templatePolicy.value = val.filter((item: any) => item.reportForm != '4')
+ templatePolicy.value = val.filter((item: any) => item.excelType != '4')
Template.value = templatePolicy.value[0]
- reportForm.value = templatePolicy.value[0]?.reportForm
+ reportForm.value = templatePolicy.value[0]?.excelType
}
const changetype = (val: any) => {
diff --git a/src/views/govern/reportCore/statisticsWx/index_zl.vue b/src/views/govern/reportCore/statisticsWx/index_zl.vue
index 1e93ec5..d8d779d 100644
--- a/src/views/govern/reportCore/statisticsWx/index_zl.vue
+++ b/src/views/govern/reportCore/statisticsWx/index_zl.vue
@@ -29,7 +29,7 @@
@@ -72,7 +72,6 @@ import pointTreeWx from '@/components/tree/govern/pointTreeWx.vue'
import TableHeader from '@/components/table/header/index.vue'
import { useDictData } from '@/stores/dictData'
import { mainHeight } from '@/utils/layout'
-import { getTemplateByDept } from '@/api/harmonic-boot/luckyexcel'
import { exportExcel } from '@/views/system/reportForms/export.js'
import 'splitpanes/dist/splitpanes.css'
import DatePicker from '@/components/form/datePicker/time.vue'
@@ -154,10 +153,6 @@ onMounted(() => {
})
})
-// getTemplateByDept({ id: dictData.state.area[0].id }).then((res: any) => {
-// templatePolicy.value = res.data
-
-// })
const idList = ref([])
// 监测对象
const initListByIds = () => {
@@ -174,13 +169,13 @@ const initListByIds = () => {
}
const stencil = (val: any) => {
console.log('🚀 ~ stencil ~ val:', val)
- templatePolicy.value = val.filter((item: any) => item.reportForm == '4')
+ templatePolicy.value = val.filter((item: any) => item.excelType == '4')
Template.value = templatePolicy.value[0]
- reportForm.value = templatePolicy.value[0]?.reportForm
+ reportForm.value = templatePolicy.value[0]?.excelType
}
const changetype = (val: any) => {
- reportForm.value = val.reportForm
+ reportForm.value = val.excelType
}
const handleNodeClick = (data: any, node: any) => {
diff --git a/src/views/govern/reportForms/PopupForm.vue b/src/views/govern/reportForms/PopupForm.vue
new file mode 100644
index 0000000..d1d5115
--- /dev/null
+++ b/src/views/govern/reportForms/PopupForm.vue
@@ -0,0 +1,111 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/govern/reportForms/form.vue b/src/views/govern/reportForms/form.vue
index 32c268f..89e8d66 100644
--- a/src/views/govern/reportForms/form.vue
+++ b/src/views/govern/reportForms/form.vue
@@ -2,8 +2,13 @@
-
+
+
+
+
+ 查看
+
+ 编辑
+
+
+
+
+ 刪除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/govern/reportForms/luckysheet.vue b/src/views/govern/reportForms/luckysheet.vue
index 1234559..e8cf2a5 100644
--- a/src/views/govern/reportForms/luckysheet.vue
+++ b/src/views/govern/reportForms/luckysheet.vue
@@ -123,6 +123,8 @@ const submitForm = (formdata: any, text: string) => {
params.append('name', formdata.name)
params.append('reportType', formdata.reportType)
params.append('reportForm', formdata.reportForm)
+ params.append('wiringMethod', formdata.wiringMethod)
+ params.append('sort', formdata.sort)
ElMessage.info('正在保存请稍等!')
if (text == '新增报表模板') {
addTemplate(params)