From 1df2b26b0432f8392a89d66d20ebc583fc18b13a Mon Sep 17 00:00:00 2001
From: GGJ <357021191@qq.com>
Date: Wed, 30 Oct 2024 09:29:39 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B5=B7=E5=8D=97=E6=B5=8B?=
=?UTF-8?q?=E8=AF=95=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/form/areaCascard/index.vue | 71 ++---------
src/components/wangEditor/index.vue | 9 +-
src/styles/element.scss | 1 +
src/styles/vxeTable.scss | 4 +
.../harmonicSurvey/components/planManage.vue | 96 +++++++--------
.../pqs/supervise/harmonicSurvey/index.vue | 3 +-
src/views/pqs/supervise/interfere/index.vue | 15 +--
src/views/pqs/supervise/retire/index.vue | 11 +-
src/views/pqs/supervise/retire/monitor.vue | 65 ++++++-----
src/views/pqs/supervise/retire/terminal.vue | 10 +-
.../supervise/technology/components/alarm.vue | 110 ++++++++++--------
.../technology/components/earlyWarn.vue | 24 ++--
.../supervise/technology/feedbackPopup.vue | 51 +++-----
src/views/pqs/supervise/technology/index.vue | 7 +-
.../terminal/components/deviceLedgerTable.vue | 4 +-
.../components/interferenceUserTable.vue | 20 +++-
.../components/sensitiveUserTable.vue | 19 ++-
src/views/pqs/supervise/terminal/index.vue | 27 ++---
.../components/jointDebugList/index.vue | 22 +++-
.../components/monitorpoint/index.vue | 71 +++++------
.../components/terminainal/index.vue | 26 +++--
.../terminalNetworkDetection/index.vue | 19 +--
src/views/pqs/supervise/testRun/index.vue | 109 ++++++++---------
.../analyse/eventwaveform/index.vue | 2 +-
.../voltageSags/analyse/impactscope/index.vue | 79 ++++---------
.../businessUser/incomingLinePopup.vue | 2 +-
.../sensitiveUnit/machineDetail.vue | 2 +-
.../businessUser/sensitiveUnit/unitTable.vue | 14 +--
.../sagGovern/businessUser/userPopup.vue | 14 +--
.../sagGovern/scheme/history/index.vue | 6 +-
.../voltageSags/sagGovern/scheme/index.vue | 30 ++---
src/views/system/auth/menu/api.vue | 4 +-
32 files changed, 469 insertions(+), 478 deletions(-)
diff --git a/src/components/form/areaCascard/index.vue b/src/components/form/areaCascard/index.vue
index 11c241f6..d7cd4744 100644
--- a/src/components/form/areaCascard/index.vue
+++ b/src/components/form/areaCascard/index.vue
@@ -5,7 +5,7 @@
:options='options'
:props='isMultiple?baseMultipleCascader:baseCascader'
@change='change'
- clearable
+
collapse-tags
collapse-tags-tooltip
/>
@@ -14,76 +14,19 @@
diff --git a/src/views/pqs/supervise/harmonicSurvey/index.vue b/src/views/pqs/supervise/harmonicSurvey/index.vue
index 13b536ab..d8116b93 100644
--- a/src/views/pqs/supervise/harmonicSurvey/index.vue
+++ b/src/views/pqs/supervise/harmonicSurvey/index.vue
@@ -34,7 +34,8 @@ const layout = mainHeight(63) as any
watch(() => route.query.t, async (newValue, oldValue) => {
if (route.fullPath.includes('supervision/harmonicmanagement')) {
let type = (route.query.type as string) || 'null'
- if (type == 'null' || type == '1') {
+ if (type == 'null') { }
+ else if (type == '1') {
activeName.value = '1'
} else {
activeName.value = '2'
diff --git a/src/views/pqs/supervise/interfere/index.vue b/src/views/pqs/supervise/interfere/index.vue
index 48ac7f38..0c974aba 100644
--- a/src/views/pqs/supervise/interfere/index.vue
+++ b/src/views/pqs/supervise/interfere/index.vue
@@ -2,21 +2,21 @@
-
+
-
+
diff --git a/src/views/pqs/supervise/technology/components/earlyWarn.vue b/src/views/pqs/supervise/technology/components/earlyWarn.vue
index 317c4fab..aa0f73ca 100644
--- a/src/views/pqs/supervise/technology/components/earlyWarn.vue
+++ b/src/views/pqs/supervise/technology/components/earlyWarn.vue
@@ -281,13 +281,23 @@ const deleteEven = () => {
message: '请选择要删除的数据'
})
} else {
- deleteWarningLeaflet(tableStore.table.selection.map(item => item.id)).then(res => {
- ElMessage({
- type: 'success',
- message: '删除成功!'
+
+ ElMessageBox.confirm('此操作将永久删除, 是否继续?', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ })
+ .then(() => {
+ deleteWarningLeaflet(tableStore.table.selection.map(item => item.id)).then(res => {
+ ElMessage({
+ type: 'success',
+ message: '删除成功!'
+ })
+ tableStore.index()
})
- tableStore.index()
+
})
+
}
}
/**取消流程操作*/
@@ -325,10 +335,10 @@ const handleAudit = (instanceId: any, historyInstanceId: any) => {
const props = defineProps(['id','businessKey'])
watch(() => props.id, async (newValue, oldValue) => {
if (newValue === 'null') return // 直接返回,避免后续逻辑执行
- const fullId = newValue.split('@')[0]
+ let fullId = newValue.split('@')[0]
let nowTime = Date.now()
const routeTime = Number(newValue.split('@')[1])
- if (isNaN(routeTime) || nowTime - routeTime > import.meta.env.VITE_ROUTE_TIME_OUT) return // 路由时间超过500ms,则不执行
+ if (isNaN(routeTime) || nowTime - routeTime > import.meta.env.VITE_ROUTE_TIME_OUT || fullId == 'null') return // 路由时间超过500ms,则不执行
await getById(fullId).then(res => {
if (res && res.code == 'A0000') {
if(props.businessKey == '3'){
diff --git a/src/views/pqs/supervise/technology/feedbackPopup.vue b/src/views/pqs/supervise/technology/feedbackPopup.vue
index 8f429e78..f4e5e1b1 100644
--- a/src/views/pqs/supervise/technology/feedbackPopup.vue
+++ b/src/views/pqs/supervise/technology/feedbackPopup.vue
@@ -3,22 +3,12 @@
-
+
-
+
@@ -38,26 +28,12 @@
-
+
-
+
上传文件
@@ -70,8 +46,8 @@
@@ -160,8 +136,8 @@ const open = async (
}
form.value.id = id
form.value.status = status
- form.value.issueDetail = issueDetail
- form.value.reformAdvice = reformAdvice
+ form.value.issueDetail = issueDetail || ''
+ form.value.reformAdvice = reformAdvice || ''
reportFilePath.value = reportPath
//判断附件是否存在,如果存在则回显出让用户可以点击下载
if (problemPath) {
@@ -207,7 +183,7 @@ const close = () => {
/**
* 提交用户表单数据
*/
-const submit =async (flag: boolean) => {
+const submit = async (flag: boolean) => {
loading.value = true
if (flag) {
let subForm = JSON.parse(JSON.stringify(form.value))
@@ -292,6 +268,7 @@ const uploadFileName = val => {
.el-select {
min-width: 180px;
}
+
.elView {
cursor: pointer;
margin-right: 10px;
diff --git a/src/views/pqs/supervise/technology/index.vue b/src/views/pqs/supervise/technology/index.vue
index 17422e7e..89c3ea32 100644
--- a/src/views/pqs/supervise/technology/index.vue
+++ b/src/views/pqs/supervise/technology/index.vue
@@ -27,13 +27,14 @@ defineOptions({
name: 'supervision/supervision/manage'
})
-const activeName: any = ref(null)
+const activeName: any = ref('3')
watch(() => route.query.t, async (newValue, oldValue) => {
if (route.fullPath.includes('supervision/supervision/manage')) {
let type = (route.query.type as string) || 'null'
- if (type == 'null' || type == '0' || type == '3') {
+ if (type == 'null') { }
+ else if (type == '0' || type == '3') {
activeName.value = '3'
} else {
activeName.value = '4'
@@ -42,7 +43,7 @@ watch(() => route.query.t, async (newValue, oldValue) => {
key.value = (route.query.key as string) || 'null'
id.value = id.value + '@' + route.query.t
}
-}, {deep: true, immediate: true})
+}, { deep: true, immediate: true })
const layout = mainHeight(63) as any
diff --git a/src/views/pqs/supervise/terminal/components/deviceLedgerTable.vue b/src/views/pqs/supervise/terminal/components/deviceLedgerTable.vue
index 26c3a6cc..1ac96dab 100644
--- a/src/views/pqs/supervise/terminal/components/deviceLedgerTable.vue
+++ b/src/views/pqs/supervise/terminal/components/deviceLedgerTable.vue
@@ -109,6 +109,8 @@ const tableStore = new TableStore({
name: '电网拓扑',
code: 'Power_Network'
}
+
+ tableStore.table.params.runFlag = []
if(tableStore.table.params.runF!=null){
tableStore.table.params.runFlag = [tableStore.table.params.runF]
}
@@ -121,7 +123,7 @@ tableStore.table.params.runF=null
tableStore.table.params.runFlag=[]
tableStore.table.params.searchValue=''
-const runFlagList = [{id:0,name:'运行'},{id:1,name:'检修'},{id:2,name:'停运'},{id:3,name:'调试'},{id:4,name:'退运'}]
+const runFlagList = [{id:0,name:'投运'},{id:1,name:'检修'},{id:2,name:'停运'},{id:3,name:'调试'},{id:4,name:'退运'}]
provide('tableStore', tableStore)
diff --git a/src/views/pqs/supervise/terminal/components/interferenceUserTable.vue b/src/views/pqs/supervise/terminal/components/interferenceUserTable.vue
index 494e8dc8..a286f7fd 100644
--- a/src/views/pqs/supervise/terminal/components/interferenceUserTable.vue
+++ b/src/views/pqs/supervise/terminal/components/interferenceUserTable.vue
@@ -254,13 +254,23 @@ const deleteEven = () => {
message: '请选择要删除的数据'
})
} else {
- deleteUserReport(tableStore.table.selection.map(item => item.id)).then(res => {
- ElMessage({
- type: 'success',
- message: '删除成功!'
+
+ ElMessageBox.confirm('此操作将永久删除, 是否继续?', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ })
+ .then(() => {
+
+ deleteUserReport(tableStore.table.selection.map(item => item.id)).then(res => {
+ ElMessage({
+ type: 'success',
+ message: '删除成功!'
+ })
+ tableStore.index()
})
- tableStore.index()
})
+
}
}
/**取消流程操作*/
diff --git a/src/views/pqs/supervise/terminal/components/sensitiveUserTable.vue b/src/views/pqs/supervise/terminal/components/sensitiveUserTable.vue
index d5b69ee9..ca83b4e1 100644
--- a/src/views/pqs/supervise/terminal/components/sensitiveUserTable.vue
+++ b/src/views/pqs/supervise/terminal/components/sensitiveUserTable.vue
@@ -205,13 +205,22 @@ const deleteEven = () => {
message: '请选择要删除的数据'
})
} else {
- deleteUserReport(tableStore.table.selection.map(item => item.id)).then(res => {
- ElMessage({
- type: 'success',
- message: '删除成功!'
+ ElMessageBox.confirm('此操作将永久删除, 是否继续?', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ })
+ .then(() => {
+
+ deleteUserReport(tableStore.table.selection.map(item => item.id)).then(res => {
+ ElMessage({
+ type: 'success',
+ message: '删除成功!'
+ })
+ tableStore.index()
})
- tableStore.index()
})
+
}
}
diff --git a/src/views/pqs/supervise/terminal/index.vue b/src/views/pqs/supervise/terminal/index.vue
index b7a5765b..bef8d7b7 100644
--- a/src/views/pqs/supervise/terminal/index.vue
+++ b/src/views/pqs/supervise/terminal/index.vue
@@ -1,20 +1,20 @@
-
+
-
+
-
+
-
+
-
+
@@ -39,15 +39,16 @@ const activeName = ref('1')
watch(() => route.query.t, async (newValue, oldValue) => {
- if (route.fullPath.includes('Supervision/Terminaldetection')) {
- let type = (route.query.type as string) || 'null'
- if (type == '1') {
- activeName.value = '1'
+ if (route.fullPath.includes('Supervision/Terminaldetection')) {
+ let type = (route.query.type as string) || 'null'
+ if (type == 'null') { }
+ else if (type == '1') {
+ activeName.value = '1'
+ }
+ id.value = (route.query.id as string) || 'null'
+ id.value = id.value + '@' + route.query.t
}
- id.value = (route.query.id as string) || 'null'
- id.value = id.value + '@' + route.query.t
- }
-}, {deep: true, immediate: true})
+}, { deep: true, immediate: true })
const layout = mainHeight(63) as any
diff --git a/src/views/pqs/supervise/terminalNetworkDetection/components/jointDebugList/index.vue b/src/views/pqs/supervise/terminalNetworkDetection/components/jointDebugList/index.vue
index 243b4f80..c023fbd1 100644
--- a/src/views/pqs/supervise/terminalNetworkDetection/components/jointDebugList/index.vue
+++ b/src/views/pqs/supervise/terminalNetworkDetection/components/jointDebugList/index.vue
@@ -265,12 +265,22 @@ const deleteEven = () => {
message: '请选择要删除的数据'
})
} else {
- deleteTempLineDebugReport(tableStore.table.selection.map(item => item.id)).then(res => {
- ElMessage({
- type: 'success',
- message: '删除成功!'
- })
- tableStore.index()
+
+ ElMessageBox.confirm('此操作将永久删除, 是否继续?', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ })
+ .then(() => {
+
+ deleteTempLineDebugReport(tableStore.table.selection.map(item => item.id)).then(res => {
+ ElMessage({
+ type: 'success',
+ message: '删除成功!'
+ })
+ tableStore.index()
+ })
+
})
}
}
diff --git a/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/index.vue b/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/index.vue
index 71cb5771..a2e53fe5 100644
--- a/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/index.vue
+++ b/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/index.vue
@@ -3,20 +3,13 @@
-
+
-
+
@@ -43,9 +36,9 @@ import addForm from './addForm.vue'
import { useAdminInfo } from '@/stores/adminInfo'
import { ElMessage } from 'element-plus'
import { ElMessageBox } from 'element-plus/es'
-import {cancelMointorPointFormData, getTempLineDetailsById} from '@/api/supervision-boot/monitorpoint/index'
+import { cancelMointorPointFormData, getTempLineDetailsById } from '@/api/supervision-boot/monitorpoint/index'
import { deleteTempLineReport } from '@/api/supervision-boot/delete/index'
-import {getTerminalDetailsById} from "@/api/supervision-boot/terminal";
+import { getTerminalDetailsById } from "@/api/supervision-boot/terminal";
//获取登陆用户姓名和部门
const adminInfo = useAdminInfo()
const dictData = useDictData()
@@ -240,13 +233,23 @@ const deleteEven = () => {
message: '请选择要删除的数据'
})
} else {
- deleteTempLineReport(tableStore.table.selection.map(item => item.id)).then(res => {
- ElMessage({
- type: 'success',
- message: '删除成功!'
- })
- tableStore.index()
+
+ ElMessageBox.confirm('此操作将永久删除, 是否继续?', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
})
+ .then(() => {
+
+ deleteTempLineReport(tableStore.table.selection.map(item => item.id)).then(res => {
+ ElMessage({
+ type: 'success',
+ message: '删除成功!'
+ })
+ tableStore.index()
+ })
+ })
+
}
}
@@ -294,22 +297,22 @@ const handleAudit = (instanceId: any, historyInstanceId: any) => {
})
}
-const props = defineProps({id: {type: String, default: 'null'}})
+const props = defineProps({ id: { type: String, default: 'null' } })
watch(() => props.id, async (newValue, oldValue) => {
- if (newValue === 'null') return // 直接返回,避免后续逻辑执行
- const fullId = newValue.split('@')[0]
- let nowTime = Date.now()
- const routeTime = Number(newValue.split('@')[1])
- if (isNaN(routeTime) || nowTime - routeTime > import.meta.env.VITE_ROUTE_TIME_OUT) return // 路由时间超过500ms,则不执行
- await getTempLineDetailsById({id:fullId}).then(res => {
- if (res && res.code == 'A0000') {
- addForms.value.open({
- title: '重新发起',
- row: res.data
- })
- }
- })
-}, {immediate: true})
+ if (newValue === 'null') return // 直接返回,避免后续逻辑执行
+ const fullId = newValue.split('@')[0]
+ let nowTime = Date.now()
+ const routeTime = Number(newValue.split('@')[1])
+ if (isNaN(routeTime) || nowTime - routeTime > import.meta.env.VITE_ROUTE_TIME_OUT) return // 路由时间超过500ms,则不执行
+ await getTempLineDetailsById({ id: fullId }).then(res => {
+ if (res && res.code == 'A0000') {
+ addForms.value.open({
+ title: '重新发起',
+ row: res.data
+ })
+ }
+ })
+}, { immediate: true })
diff --git a/src/views/pqs/voltageSags/analyse/eventwaveform/index.vue b/src/views/pqs/voltageSags/analyse/eventwaveform/index.vue
index b41f16a5..6cb7bd27 100644
--- a/src/views/pqs/voltageSags/analyse/eventwaveform/index.vue
+++ b/src/views/pqs/voltageSags/analyse/eventwaveform/index.vue
@@ -17,7 +17,7 @@
事件关联编号为:{{ AssociationNumber }}
导出
- 波形对比
+
事件关联编号为:{{ AssociationNumber }}
导出
-
+
{{ (form.pageNum - 1) * form.pageSize + row.rowIndex + 1 }}
-
+
-
+
@@ -50,32 +36,14 @@
-
-
+
+
-
+
@@ -142,19 +110,19 @@ const tableStore = new TableStore({
source()
}
},
- {
- name: 'edit',
- title: '范围查看',
- type: 'primary',
+ // {
+ // name: 'edit',
+ // title: '范围查看',
+ // type: 'primary',
- icon: 'el-icon-Plus',
- render: 'basicButton'
- }
+ // icon: 'el-icon-Plus',
+ // render: 'basicButton'
+ // }
]
}
],
- loadCallback: () => {}
+ loadCallback: () => { }
})
tableStore.table.params.searchValue = ''
provide('tableStore', tableStore)
@@ -169,7 +137,7 @@ onMounted(() => {
})
// 启动关联分析
-const firing = () => {}
+const firing = () => { }
// 暂降源定位
const source = () => {
queryEventDetailByAssId(form.value).then(res => {
@@ -243,7 +211,8 @@ const positioningexport = () => {
sheetName: 'Sheet1',
type: 'xlsx', //导出文件类型 xlsx 和 csv
useStyle: true,
- data: dialogAnalysis.value, // 数据源 // 过滤那个字段导出
+ download: false,
+ data: AnalysisData.value, // 数据源 // 过滤那个字段导出
columnFilterMethod: function (column, $columnIndex) {
return !(column.$columnIndex === 0)
}
@@ -256,4 +225,6 @@ const positioningexport = () => {
min-width: 128px;
}
}
+
+
diff --git a/src/views/pqs/voltageSags/sagGovern/businessUser/incomingLinePopup.vue b/src/views/pqs/voltageSags/sagGovern/businessUser/incomingLinePopup.vue
index 632741a2..28fd9acd 100644
--- a/src/views/pqs/voltageSags/sagGovern/businessUser/incomingLinePopup.vue
+++ b/src/views/pqs/voltageSags/sagGovern/businessUser/incomingLinePopup.vue
@@ -4,7 +4,7 @@
class="cn-operate-dialog"
v-model="incomingDialogVisible"
:title="title"
- style="width: 415px; height: 300px"
+ style="width: 415px;"
>
diff --git a/src/views/pqs/voltageSags/sagGovern/businessUser/sensitiveUnit/machineDetail.vue b/src/views/pqs/voltageSags/sagGovern/businessUser/sensitiveUnit/machineDetail.vue
index 4d2d1deb..587c694b 100644
--- a/src/views/pqs/voltageSags/sagGovern/businessUser/sensitiveUnit/machineDetail.vue
+++ b/src/views/pqs/voltageSags/sagGovern/businessUser/sensitiveUnit/machineDetail.vue
@@ -1,6 +1,6 @@
-
+
diff --git a/src/views/pqs/voltageSags/sagGovern/businessUser/sensitiveUnit/unitTable.vue b/src/views/pqs/voltageSags/sagGovern/businessUser/sensitiveUnit/unitTable.vue
index d19b802b..844ba39a 100644
--- a/src/views/pqs/voltageSags/sagGovern/businessUser/sensitiveUnit/unitTable.vue
+++ b/src/views/pqs/voltageSags/sagGovern/businessUser/sensitiveUnit/unitTable.vue
@@ -30,9 +30,9 @@ const tableStore = new TableStore({
publicHeight: 300,
showPage: false,
column: [
- { title: '元器件名称', width: 110, field: 'name' },
+ { title: '元器件名称', minWidth: 110, field: 'name' },
{
- title: '灵敏度', width: 80, field: 'sensitivity',
+ title: '灵敏度', minWidth: 80, field: 'sensitivity',
formatter: (row: any) => {
let temp
switch (row.sensitivity) {
@@ -52,7 +52,7 @@ const tableStore = new TableStore({
}
},
{
- title: '耐受能力', width: 90, field: 'standardFlag',
+ title: '耐受能力', minWidth: 90, field: 'standardFlag',
formatter: (row: any) => {
return row.standardFlag == 0 ? '否' : '是'
}
@@ -60,15 +60,15 @@ const tableStore = new TableStore({
{
title: '上限曲线',
children: [
- { title: '持续时间(ms)', width: '110', field: 'vtcTimeUpper' },
- { title: '暂降幅值(p.u.)', width: '110', field: 'vtcAmpUpper' }
+ { title: '持续时间(ms)', minWidth: '110', field: 'vtcTimeUpper' },
+ { title: '暂降幅值(p.u.)', minWidth: '110', field: 'vtcAmpUpper' }
]
},
{
title: '下限曲线',
children: [
- { title: '持续时间(ms)', width: '110', field: 'vtcTimeLower' },
- { title: '暂降幅值(p.u.)', width: '110', field: 'vtcAmpLower' }
+ { title: '持续时间(ms)', minWidth: '110', field: 'vtcTimeLower' },
+ { title: '暂降幅值(p.u.)', minWidth: '110', field: 'vtcAmpLower' }
]
},
{
diff --git a/src/views/pqs/voltageSags/sagGovern/businessUser/userPopup.vue b/src/views/pqs/voltageSags/sagGovern/businessUser/userPopup.vue
index 00a70668..284df0dc 100644
--- a/src/views/pqs/voltageSags/sagGovern/businessUser/userPopup.vue
+++ b/src/views/pqs/voltageSags/sagGovern/businessUser/userPopup.vue
@@ -4,8 +4,8 @@
-
-
+
+
@@ -18,21 +18,21 @@
-
+
-
+
-
+
-
+
-
+
diff --git a/src/views/pqs/voltageSags/sagGovern/scheme/history/index.vue b/src/views/pqs/voltageSags/sagGovern/scheme/history/index.vue
index f4b9b8c7..80de5f6d 100644
--- a/src/views/pqs/voltageSags/sagGovern/scheme/history/index.vue
+++ b/src/views/pqs/voltageSags/sagGovern/scheme/history/index.vue
@@ -9,7 +9,7 @@
-
+
@@ -30,8 +30,8 @@ const { query } = useRoute()
onMounted(() => {
governTotalContent.value.style.height = mainHeight().height
- schemeContent.value.style.height = mainHeight(45).height
- schemeContent.value.style.maxheight = mainHeight(45).height
+ schemeContent.value.style.height = mainHeight(65).height
+ schemeContent.value.style.maxheight = mainHeight(65).height
schemeContent.value.style.overflowY = 'scroll'
schemeContent.value.style.overflowX = 'hidden'
})
diff --git a/src/views/pqs/voltageSags/sagGovern/scheme/index.vue b/src/views/pqs/voltageSags/sagGovern/scheme/index.vue
index 5b0df796..b8a685a4 100644
--- a/src/views/pqs/voltageSags/sagGovern/scheme/index.vue
+++ b/src/views/pqs/voltageSags/sagGovern/scheme/index.vue
@@ -61,12 +61,12 @@ const tableStore = new TableStore({
method: 'POST',
column: [
{ title: '序号', type: 'seq', width: 80 },
- { title: '用户', field: 'userName', width: 160 },
- { title: '生产线名称', field: 'productLineName', width: 160 },
- { title: '期望回报(年)', field: 'payBackPeriod', width: 150 },
- { title: '数据时间范围', field: 'timeScope', width: 170 },
+ { title: '用户', field: 'userName', minWidth: 160 },
+ { title: '生产线名称', field: 'productLineName', minWidth: 160 },
+ { title: '期望回报(年)', field: 'payBackPeriod', minWidth: 150 },
+ { title: '数据时间范围', field: 'timeScope', minWidth: 170 },
{
- title: '治理容量(kW)', field: 'governPower', width: 150, type: 'html',
+ title: '治理容量(kW)', field: 'governPower', minWidth: 150, type: 'html',
formatter: (obj: any) => {
const val = obj.row.governPower
const id = obj.row.productLineId
@@ -77,7 +77,7 @@ const tableStore = new TableStore({
title: '最佳方案',
children: [
{
- title: '方案名称', width: '110', field: 'schemeType',
+ title: '方案名称', minWidth: '110', field: 'schemeType',
formatter: (obj: any) => {
let temp
switch (obj.row.schemeType) {
@@ -97,13 +97,13 @@ const tableStore = new TableStore({
}
},
{
- title: '初期投资(万元)', width: '150', field: 'initialInvest',
+ title: '初期投资(万元)', minWidth: '150', field: 'initialInvest',
formatter: (obj: any) => {
- return Number(obj.row.schemeEquipment) + Number(obj.row.schemeMaintain)
+ return (Number(obj.row.schemeEquipment) + Number(obj.row.schemeMaintain)).toFixed(2)
}
},
- { title: '投资回收期(年)', width: '150', field: 'payBackYear' },
- { title: '治理效果(万元/年)', width: '150', field: 'governEffect' }
+ { title: '投资回收期(年)', minWidth: '150', field: 'payBackYear' },
+ { title: '治理效果(万元/年)', minWidth: '150', field: 'governEffect' }
]
},
{
@@ -149,11 +149,11 @@ const tableStore = new TableStore({
if (tableStore.table.params.addr) {
tableStore.table.params.addrStrOption = tableStore.table.params.addr.map(tempArray => tempArray.join('/'))
}
- for (let key in tableStore.table.params) {
- if (tableStore.table.params[key] === '') {
- delete tableStore.table.params[key]
- }
- }
+ // for (let key in tableStore.table.params) {
+ // if (tableStore.table.params[key] === '') {
+ // delete tableStore.table.params[key]
+ // }
+ // }
}
})
diff --git a/src/views/system/auth/menu/api.vue b/src/views/system/auth/menu/api.vue
index 791a6251..b8aa07b0 100644
--- a/src/views/system/auth/menu/api.vue
+++ b/src/views/system/auth/menu/api.vue
@@ -45,7 +45,9 @@ const tableStore = new TableStore({
url: '/user-boot/function/getButtonById',
publicHeight: 60,
column: [
- { title: '普通接口/接口名称', field: 'name' },
+ { title: '普通接口/接口名称', field: 'name', formatter: row => {
+ return row.cellValue == 1 ? '普通接口' : '公用接口'
+ } },
{ title: '接口类型', field: 'type' },
{ title: 'URL接口路径', field: 'path' },
{