调整form表单接口

This commit is contained in:
2024-05-21 16:27:27 +08:00
parent 0d3fa0d9b3
commit d57bf17605
6 changed files with 191 additions and 238 deletions

View File

@@ -18,7 +18,7 @@ export const addRunningDevice = (data: any) => {
/**
* 新设备退运
* 新设备退运
*/
export const quitRunningDeviceUpdate = (data: any) => {
return createAxios({
@@ -41,8 +41,6 @@ export const cancelQuitRunningDevice = (data: any) => {
/**
* 根据id获取设备的详细数据
*/

View File

@@ -0,0 +1,17 @@
import createAxios from '@/utils/request'
import { SUPERVISION_BOOT } from '@/utils/constantRequest'
const MAPPING_PATH = SUPERVISION_BOOT + '/generalSurvey'
/**
* 针对有问题的现场测试发起告警单
*/
export const initiateWarningLeaflet = (id: string, subId: string) => {
return createAxios({
url: MAPPING_PATH + '/initiateWarningLeaflet?id=' + id + '&subId=' + subId,
method: 'GET'
})
}

View File

@@ -1,45 +1,25 @@
<template>
<!-- <div> 普测结果 发起预告警单</div> -->
<TableHeader area datePicker ref="TableHeaderRef">
<!-- <template v-slot:select>
<el-form-item label="超标指标">
<el-select
v-model="tableStore.table.params.evaluateType"
multiple
collapse-tags
clearable
placeholder="请选择评估类型"
>
<el-option v-for="item in exceeded" :key="item.id" :label="item.name" :value="item.id" />
</el-select>
</el-form-item>
</template> -->
<template v-slot:operation>
<el-button icon="el-icon-Plus" type="primary" @click="add">新增</el-button>
</template>
<TableHeader datePicker ref='TableHeaderRef'>
</TableHeader>
<Table ref="tableRef" />
<testQuestionsForm ref="testQuestionsFormRef" />
<Table ref='tableRef' />
<testQuestionsForm ref='testQuestionsFormRef' />
</template>
<script setup lang="ts">
<script setup lang='ts'>
import { ref, onMounted, provide, nextTick } from 'vue'
import TableStore from '@/utils/tableStore'
import Table from '@/components/table/index.vue'
import TableHeader from '@/components/table/header/index.vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { useDictData } from '@/stores/dictData'
import testQuestionsForm from './form/testQuestionsForm.vue'
// Steady_Statis
const dictData = useDictData()
const exceeded = dictData.getBasicData('Steady_Statis')
import { initiateWarningLeaflet } from '@/api/supervision-boot/survey'
import { ElMessage } from 'element-plus'
const tableRef = ref()
const planAddRef = ref()
const listFormRef = ref()
const TableHeaderRef = ref()
const testQuestionsFormRef = ref()
const tableStore = new TableStore({
url: '/supervision-boot/generalSurvey/getSurvey',
url: '/supervision-boot/generalSurvey/pageProblemSubstationBySurvey',
publicHeight: 65,
method: 'POST',
column: [
@@ -52,43 +32,61 @@ const tableStore = new TableStore({
return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1
}
},
{ field: 'orgName', title: '区域' },
{ field: 'subName', title: '变电站' },
{ field: 'name', title: '普测计划名称' },
{ field: 'time', title: '普测结果上传时间' },
{ field: 'text', title: '问题描述' },
{ field: 'orgName', title: '单位', minWidth: 120 },
{ field: 'subName', title: '变电站', minWidth: 120 },
{ field: 'planName', title: '普测计划名称', minWidth: 120 },
{ field: 'planCreateTime', title: '计划生成时间', minWidth: 100 },
{ field: 'planStartTime', title: '计划开始时间', minWidth: 100 },
{ field: 'planEndTime', title: '计划结束时间', minWidth: 100 },
{ field: 'planComplateTime', title: '实际完成时间', minWidth: 100 },
{ field: 'leader', title: '测试负责人', minWidth: 120 },
{
title: '操作',
width: '180',
minWidth: '180',
align: 'center',
render: 'buttons',
fixed: 'right',
buttons: [
// {
// name: 'edit',
// title: '附件预览',
// type: 'primary',
// icon: 'el-icon-Open',
// render: 'confirmButton',
//
// click: row => {}
// },
{
name: 'edit',
title: '附件预览',
type: 'primary',
title: '发起告警单',
type: 'warning',
icon: 'el-icon-Open',
render: 'confirmButton',
click: row => {}
},
{
name: 'edit',
title: '发起预警单',
type: 'primary',
icon: 'el-icon-Open',
render: 'confirmButton',
disabled: row => {
return row.initiateWarningFlag == 1
},
popconfirm: {
confirmButtonText: '确认',
cancelButtonText: '取消',
confirmButtonType: 'primary',
title: '请确认发起发起警单!'
title: '请确认发起发起警单!'
},
click: row => {
initiateAlarm(row.planNo,row.subId)
}
},
{
name: 'edit',
title: '查看告警单',
type: 'primary',
icon: 'el-icon-Open',
render: 'confirmButton',
disabled: row => {
return row.initiateWarningFlag == 0
},
click: row => {
click: row => {}
}
}
]
}
@@ -96,17 +94,6 @@ const tableStore = new TableStore({
beforeSearchFun: () => {
tableStore.table.params.orgNo = tableStore.table.params.deptIndex
tableStore.table.params.currentPage = tableStore.table.params.pageNum
},
loadCallback: () => {
tableStore.table.data = [
{
orgName: '张家口',
subName: '张家口变电站',
name: '张家口变电站1期普测计划',
time: '2024-05-16',
text: '/'
}
]
}
})
@@ -115,11 +102,16 @@ provide('tableStore', tableStore)
onMounted(() => {
tableStore.index()
})
const add = () => {
testQuestionsFormRef.value.open({
text: '新增测试问题'
})
/**
* 发起告警单
*/
const initiateAlarm = async (id: string,subId:string) => {
await initiateWarningLeaflet(id,subId)
ElMessage.success('发起告警成功!')
// 加载数据
tableStore.index()
}
</script>
<style scoped lang="scss"></style>
<style scoped lang='scss'></style>

View File

@@ -27,11 +27,9 @@
import TableStore from '@/utils/tableStore'
import Table from '@/components/table/index.vue'
import TableHeader from '@/components/table/header/index.vue'
import { nextTick, onMounted, provide, ref } from 'vue'
import { onMounted, provide, ref } from 'vue'
import { useRouter } from 'vue-router'
import { dateFormatter, formatPast2 } from '@/utils/formatTime'
import DeviceQuitPopup from '@/views/pqs/supervise/retire/deviceQuitPopup.vue'
import { activateUser } from '@/api/user-boot/user'
import { ElMessage } from 'element-plus'
import { ElMessageBox } from 'element-plus/es'
import { cancelQuitRunningDevice } from '@/api/supervision-boot/device/quitRunningDev'

View File

@@ -1,10 +1,12 @@
<template>
<TableHeader area datePicker ref="TableHeaderRef">
<TableHeader datePicker ref="TableHeaderRef">
<template #operation>
<el-button icon="el-icon-Plus" type="primary" @click="add">新增</el-button>
<el-button icon="el-icon-Delete" type="primary">删除</el-button>
<el-button icon="el-icon-Download" type="primary">导出</el-button>
<!-- <el-button icon="el-icon-Plus" type="primary" @click="add">新增</el-button>-->
<!-- <el-button icon="el-icon-Delete" type="primary">删除</el-button>-->
<!-- <el-button icon="el-icon-Download" type="primary">导出</el-button>-->
</template>
</TableHeader ref="tableRef">
<Table ref="tableRef" />
@@ -29,12 +31,11 @@ const planAddRef = ref()
const TableHeaderRef = ref()
const listFormRef = ref()
const tableStore = new TableStore({
url: '/supervision-boot/generalSurvey/getSurvey',
url: '/supervision-boot/warningLeaflet/alarmPageData',
publicHeight: 65,
method: 'POST',
column: [
{ width: '60', type: 'checkbox' },
{
{
title: '序号',
type: 'seq',
align: 'center',
@@ -43,22 +44,40 @@ const tableStore = new TableStore({
return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1
}
},
{ field: 'billNo', title: '单据编号', minWidth: '150' },
{ field: 'billName', title: '单据名称', minWidth: '150' },
{ field: 'createrOrgName', title: '编制单位名称', minWidth: '150' },
{ field: 'specialityType', title: '所属专业', minWidth: '150' },
{ field: 'orgName', title: '责任单位名称', minWidth: '150' },
{ field: 'receiveUserName', title: '接收人名称', minWidth: '150' },
{ field: 'createrTime', title: '编制时间', minWidth: '150' },
{ field: 'managerDeptName', title: '主管部门名称', minWidth: '150' },
{ field: 'mainSenderName', title: '主送单位名称', minWidth: '150' },
{ field: 'copySenderName', title: '抄送单位名称', minWidth: '150' },
{ field: 'techSupvBasis', title: '依据标准', minWidth: '150' },
{ field: 'problemDesc', title: '问题描述', minWidth: '150' },
{ field: 'dealAdvise', title: '处理建议', minWidth: '150' },
{ field: 'problemType', title: '告警单问题来源', minWidth: '150',
render: 'tag',
custom: {
1: 'warning',
2: 'warning',
3: 'warning',
4: 'warning'
},
replaceValue: {
1: '技术监督计划',
2: '在线监测超标问题',
3: '用户投诉问题',
4: '现场测试超标问题'
}
},
{ field: 'leafletName', title: '单据名称', minWidth: '150' },
{ field: 'status', title: '告警单状态', minWidth: '150',
render: 'tag',
custom: {
1: 'primary',
2: 'success',
3: 'danger',
4: 'warning',
5: 'primary',
},
replaceValue: {
1: '审批中',
2: '审批通过',
3: '审批不通过',
4: '已取消',
5: '待反馈'
}
},
{ field: 'createTime', title: '创建时间', minWidth: '150' },
{
title: '操作',
width: '180',
@@ -72,23 +91,52 @@ const tableStore = new TableStore({
type: 'primary',
icon: 'el-icon-EditPen',
render: 'basicButton',
disabled: row => {
return row.status !== 5
},
click: row => {
// planAddRef.value.open('查看计划', row)
}
},
{
name: 'productSetting',
title: '流程详情',
type: 'primary',
icon: 'el-icon-EditPen',
render: 'basicButton',
disabled: row => {
return row.status == 5
},
click: row => {
// handleAudit(row.processInstanceId)
}
},
{
name: 'edit',
title: '修改',
title: '重新发起',
type: 'warning',
icon: 'el-icon-Open',
render: 'basicButton',
disabled: row => {
return row.status == 1 || row.status == 2 || row.status == 4 || row.status == 5
},
click: row => {
// deviceQuitPopup.value.open('重新发起退运', row)
planAddRef.value.open('重新发起计划', row)
}
},
{
name: 'cancel',
title: '取消',
type: 'danger',
icon: 'el-icon-Open',
render: 'basicButton',
disabled: row => {
return row.status == 3 || row.status == 2 || row.status == 4 || row.status == 5
},
click: row => {
// cancelLeave(row)
}
}
]
}
@@ -96,63 +144,6 @@ const tableStore = new TableStore({
beforeSearchFun: () => {
tableStore.table.params.orgNo = tableStore.table.params.deptIndex
tableStore.table.params.currentPage = tableStore.table.params.pageNum
},
loadCallback: () => {
tableStore.table.data = [{
alarmId: "49cb012b06df8cde948230d29e8a3c30",
provinceId: "13B9B47F1E483324E05338297A0A0595",
provinceName: "国网河北电力有限公司",
billType: "eba0f69f3a36826a1771d813a6eee0fc",
billNo: "衡供[告]2023年--09015号",
billName: "220千伏站544线技术监督工作预警单",
createrOrgId: "13B9B47F23B83324E05338297A0A0595",
createrOrgName: "国网衡水供电公司",
specialityType: "电能质量",
orgId: "13B9B47F23CB3324E05338297A0A0595",
orgName: "国网桃城区供电公司",
receiveUserId: null,
receiveUserName: "",
createrTime: "2023-09-14 00:00:00",
time: null,
managerDeptId: "13B9B47F23B83324E05338297A0A0595",
managerDeptName: "国网衡水供电公司",
mainSenderId: "13B9B47F23CB3324E05338297A0A0595",
mainSenderName: "国网桃城区供电公司",
copySenderId: "",
copySenderName: "",
techSupvBasis: "GB/T12325-2008《电能质量供电电压偏差》GB/T12326-2008《电能质量电压波动和闪变》GB/T14549-1993《电能质量公用电网诺波》GB/T15543-20088电能质量三相电压不平衡》GB/T15945-2008名电能质量电力系统频率偷差》 GB/T18481-2001名电能质量暂时过电压和瞬态过电压》GB/T30137-2013《电能质量电压暂降与短时中断》",
problemDesc: "2023年9月10日11日国网衡水供电公司组织对220千伏站前铺站开展电能质量专项监督检测发现544胡村站在此次检测时间段内电压上下偏差不满足国标要求电压长时闪变不满足国标要求并存在2次暂态事件。",
dealAdvise: "国网衡水市桃城区供电公司运检部组织排查544所带用户是否存在非线性、冲击性等负荷组织开展重点用户电能质量检测对存在问题用户提出治理要求跟踪落实治理措施并向市公司设备部反馈治理报告。",
isUploadHead: 0
},
{
alarmId: "4b854eebe09172eff780db3368f64e9d",
provinceId: "13B9B47F1E483324E05338297A0A0595",
provinceName: "国网河北电力有限公司",
billType: "eba0f69f3a36826a1771d813a6eee0fc",
billNo: "沧供[预]2023年--09003号",
billName: "220kV大张庄光伏电场技术监督工作预警单",
createrOrgId: "13B9B47F2C183324E05338297A0A0595",
createrOrgName: "国网沧州供电公司",
specialityType: "电能质量",
orgId: "13B9B47F2D623324E05338297A0A0595",
orgName: "国网海兴县供电公司",
receiveUserId: null,
receiveUserName: "",
createrTime: "2023-09-28 00:00:00",
time: null,
managerDeptId: "13B9B47F2C183324E05338297A0A0595",
managerDeptName: "国网沧州供电公司",
mainSenderId: "13B9B47F2D623324E05338297A0A0595",
mainSenderName: "国网海兴县供电公司",
copySenderId: "",
copySenderName: "",
techSupvBasis: "GB/T 12325-2008《电能质量 供电电压偏差》 GB/T12326-2008《电能质量电压波动和闪变》GB/T14549-1993《电能质量 公用电网谐波》 GB/T15543-2008《电能质量三相电压不平衡》GB/T15945-2008《电能质量 电力系统频率偏差》GB/T 18481-2001《电能质量暂时过电压和瞬态过电压》GB/T30137-2013 《电能质量 电压暂降与短时中断》",
problemDesc: "国网冀北电科院、国网沧州供电公司组织对220千伏边务站开展电能质量专项监督时发现235庄边线电压总谐波畸变率最大值5.22%95%概率值4.85%3、5、7次谐波电压含有率最大值分别为2.71%、3.52%、2.35%95%概率值分别为2.53%、3.31%、2.22%不满足国标限制要求怀疑光伏电场内SVG存在缺陷。",
dealAdvise: "220kV大张庄光伏电场相关管理单位组织排查光伏电场站内设备设备是否存在缺陷开展电能质量检测并向国网沧州供电公司技术监督办公室(设备部)反馈排查治理情况。",
isUploadHead: 0
},
]
}
})

View File

@@ -1,9 +1,9 @@
<template>
<TableHeader area datePicker ref="TableHeaderRef">
<template #operation>
<el-button icon="el-icon-Plus" type="primary" @click="add">新增</el-button>
<el-button icon="el-icon-Delete" type="primary">删除</el-button>
</template>
<TableHeader datePicker ref="TableHeaderRef">
<!-- <template #operation>-->
<!-- <el-button icon="el-icon-Plus" type="primary" @click="add">新增</el-button>-->
<!-- <el-button icon="el-icon-Delete" type="primary">删除</el-button>-->
<!-- </template>-->
</TableHeader>
<Table ref="tableRef" />
@@ -25,11 +25,10 @@ const listFormRef = ref()
const TableHeaderRef = ref()
const tableStore = new TableStore({
url: '/supervision-boot/generalSurvey/getSurvey',
url: '/supervision-boot/warningLeaflet/warningPageData',
publicHeight: 65,
method: 'POST',
column: [
{ width: '60', type: 'checkbox' },
{
title: '序号',
type: 'seq',
@@ -39,19 +38,40 @@ const tableStore = new TableStore({
return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1
}
},
{ field: 'billNo', title: '单据编号', minWidth: '150' },
{ field: 'billName', title: '单据名称', minWidth: '150' },
{ field: 'createrOrgName', title: '编制单位名称', minWidth: '150' },
{ field: 'specialityType', title: '所属专业', minWidth: '150' },
{ field: 'orgName', title: '责任单位名称', minWidth: '150' },
{ field: 'receiveUserName', title: '接收人名称', minWidth: '150' },
{ field: 'createrTime', title: '编制时间', minWidth: '150' },
{ field: 'managerDeptName', title: '主管部门名称', minWidth: '150' },
{ field: 'mainSenderName', title: '主送单位名称', minWidth: '150' },
{ field: 'copySenderName', title: '抄送单位名称', minWidth: '150' },
{ field: 'techSupvBasis', title: '依据标准', minWidth: '150' },
{ field: 'problemDesc', title: '问题描述', minWidth: '150' },
{ field: 'dealAdvise', title: '处理建议', minWidth: '150' },
{ field: 'problemType', title: '告警单问题来源', minWidth: '150',
render: 'tag',
custom: {
1: 'warning',
2: 'warning',
3: 'warning',
4: 'warning'
},
replaceValue: {
1: '技术监督计划',
2: '在线监测超标问题',
3: '用户投诉问题',
4: '现场测试超标问题'
}
},
{ field: 'leafletName', title: '单据名称', minWidth: '150' },
{ field: 'status', title: '告警单状态', minWidth: '150',
render: 'tag',
custom: {
1: 'primary',
2: 'success',
3: 'danger',
4: 'warning',
5: 'primary',
},
replaceValue: {
1: '审批中',
2: '审批通过',
3: '审批不通过',
4: '已取消',
5: '待反馈'
}
},
{ field: 'createTime', title: '创建时间', minWidth: '150' },
{
title: '操作',
width: '180',
@@ -87,69 +107,6 @@ const tableStore = new TableStore({
beforeSearchFun: () => {
tableStore.table.params.orgNo = tableStore.table.params.deptIndex
tableStore.table.params.currentPage = tableStore.table.params.pageNum
},
loadCallback: () => {
tableStore.table.data = [
{
alarmId: '0323fa13767c537d037cd755cc1b728e',
provinceId: '13B9B47F1E483324E05338297A0A0595',
provinceName: '国网河北电力有限公司',
billType: 'eba0f69f3a36826a1771d813a6eee0fc',
billNo: '沧供[预]2023年--09002号',
billName: '220kV东辛光伏电场技术监督工作预警单',
createrOrgId: '13B9B47F2C183324E05338297A0A0595',
createrOrgName: '国网沧州供电公司',
specialityType: '电能质量',
orgId: '13B9B47F2D623324E05338297A0A0595',
orgName: '国网海兴县供电公司',
receiveUserId: null,
receiveUserName: '',
createrTime: '2023-09-28 00:00:00',
time: null,
managerDeptId: '13B9B47F2C183324E05338297A0A0595',
managerDeptName: '国网沧州供电公司',
mainSenderId: '13B9B47F2D623324E05338297A0A0595',
mainSenderName: '国网海兴县供电公司',
copySenderId: '',
copySenderName: '',
techSupvBasis:
'GB/T 12325-2008 《电能质量 供电电压偏差》 GB/T12326-2008《电能质量电压波动和闪变》GB/T14549-1993《电能质量 公用电网谐波》 GB/T 15543-2008《电能质量三相电压不平衡》GB/T15945-2008《电能质量 电力系统频率偏差》GB/T 18481-2001《电能质量暂时过电压和瞬态过电压》GB/T30137-2013《电能质量 电压暂降与短时中断》',
problemDesc:
'国网冀北电科院、国网沧州供电公司组织对220千伏常庄站开展电能质量专项监督时发现246东常线电压总谐波畸变率最大值6.37%95%概率值6.24%3、5、7次谐波电压含有率最大值分别为4.31%、3.62%、2.61%95%概率值分别为4.2%、3.53%、2.51%不满足国标限制要求怀疑光伏电场内SVG存在缺陷。',
dealAdvise:
'220kV东辛光伏电场相关管理单位组织排查光伏电场站内设备设备是否存在缺陷开展电能质量检测并向国网沧州供电公司技术监督办公室(设备部)反馈排查治理情况。',
isUploadHead: 0
},
{
alarmId: '054deafbbcfc29f8dff517d31966657b',
provinceId: '13B9B47F1E483324E05338297A0A0595',
provinceName: '国网河北电力有限公司',
billType: 'eba0f69f3a36826a1771d813a6eee0fc',
billNo: '[预]2023—165号',
billName: '关于220kV赞皇龙门光伏站谐波电流指标超标预警',
createrOrgId: '13B9B47F1F223324E05338297A0A0595',
createrOrgName: '国网石家庄供电公司',
specialityType: '电能质量',
orgId: '13B9B47F1F223324E05338297A0A0595',
orgName: '国网石家庄供电公司',
receiveUserId: null,
receiveUserName: '',
createrTime: '2023-09-25 00:00:00',
time: null,
managerDeptId: '13B9B47F1F773324E05338297A0A0595',
managerDeptName: '国网石家庄供电公司本部',
mainSenderId: '',
mainSenderName: '',
copySenderId: '',
copySenderName: '',
techSupvBasis: 'GB/T 14549-1993《电能质量-公用电网谐波》',
problemDesc:
'国网冀北电科院、国网石家庄供电公司于2023年9月对220千伏赞皇龙门光伏站开展电能质量专项监督时发现220kV龙万线赞皇龙门光伏站并网线路ABC三相的5次谐波电流指标95%概率值分别为为17.27A、16.25A、16.85A不满足国标限值7.09A的要求。',
dealAdvise:
'赞皇龙门光伏站开展电能质量指标测试及分析,排查自有发电、用电设备是否存在谐波源,并向国网石家庄供电公司技术监督办公室(设备部)反馈排查治理情况。',
isUploadHead: 0
}
]
}
})