diff --git a/src/components/cockpit/monitoringPointList/index.vue b/src/components/cockpit/monitoringPointList/index.vue index 1d002ad..32d36cf 100644 --- a/src/components/cockpit/monitoringPointList/index.vue +++ b/src/components/cockpit/monitoringPointList/index.vue @@ -229,9 +229,8 @@ const tableStore: any = new TableStore({ } }, { - title: '操作', + title: '操作', fixed: 'right', width: 150, - // fixed: 'right', render: 'buttons', buttons: [ { diff --git a/src/views/auth/audit/index.vue b/src/views/auth/audit/index.vue index 057185b..7ad9fdc 100644 --- a/src/views/auth/audit/index.vue +++ b/src/views/auth/audit/index.vue @@ -33,7 +33,7 @@ const tableStore = new TableStore({ { title: '类型', field: 'casualUserName' }, { title: '状态', field: 'stateName' }, { - title: '操作', + title: '操作', fixed: 'right', width: '180', render: 'buttons', buttons: [ diff --git a/src/views/auth/menu/api.vue b/src/views/auth/menu/api.vue index 52316da..e9253dd 100644 --- a/src/views/auth/menu/api.vue +++ b/src/views/auth/menu/api.vue @@ -1,116 +1,134 @@ - - - - 接口权限列表 - - 新增 - - - - - - + + + + 接口权限列表 + + 新增 + + + + + + diff --git a/src/views/auth/menu/menu.vue b/src/views/auth/menu/menu.vue index 0a8ff61..67c1783 100644 --- a/src/views/auth/menu/menu.vue +++ b/src/views/auth/menu/menu.vue @@ -1,140 +1,140 @@ - - - - 菜单列表 - - 新增 - - - - - - + + + + 菜单列表 + + 新增 + + + + + + diff --git a/src/views/auth/role/index.vue b/src/views/auth/role/index.vue index 3b2b6b2..04027fb 100644 --- a/src/views/auth/role/index.vue +++ b/src/views/auth/role/index.vue @@ -90,7 +90,7 @@ const tableStore = new TableStore({ } }, { - title: '操作', + title: '操作', fixed: 'right', align: 'center', width: '180', render: 'buttons', diff --git a/src/views/auth/userList/index.vue b/src/views/auth/userList/index.vue index 6ecdc8a..820ec56 100644 --- a/src/views/auth/userList/index.vue +++ b/src/views/auth/userList/index.vue @@ -79,10 +79,10 @@ const tableStore = new TableStore({ } }, { - title: '操作', + title: '操作', fixed: 'right', width: '180', render: 'buttons', - fixed: 'right', + buttons: [ { name: 'edit', diff --git a/src/views/govern/alarm/Transient.vue b/src/views/govern/alarm/Transient.vue index ca92000..7c3b791 100644 --- a/src/views/govern/alarm/Transient.vue +++ b/src/views/govern/alarm/Transient.vue @@ -141,9 +141,10 @@ const tableStore = new TableStore({ { title: '暂降(聚升)幅值(%)', minWidth: 100, field: 'evtParamVVaDepth', align: 'center', sortable: true }, { - title: '操作', + title: '操作', fixed: 'right', align: 'center', width: '180', + render: 'buttons', buttons: [ { @@ -165,9 +166,10 @@ const tableStore = new TableStore({ row.loading1 = false if (res != undefined) { boxoList.value = row + boxoList.value.persistTime = row.evtParamTm boxoList.value.featureAmplitude = - row.evtParamVVaDepth != '-' ? row.evtParamVVaDepth - 0 : null - boxoList.value.systemType = 'ZL' + row.evtParamVVaDepth != '-' ? (row.evtParamVVaDepth - 0) / 100 : null + boxoList.value.systemType = 'YPT' wp.value = res.data } loading.value = false diff --git a/src/views/govern/analyze/DVR/index.vue b/src/views/govern/analyze/DVR/index.vue index bab1afa..3d31075 100644 --- a/src/views/govern/analyze/DVR/index.vue +++ b/src/views/govern/analyze/DVR/index.vue @@ -136,6 +136,14 @@ const tableStore = new TableStore({ url: '/cs-harmonic-boot/eventUser/queryEventpageWeb', method: 'POST', column: [ + { + field: 'index', + title: '序号', + width: '80', + formatter: (row: any) => { + return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1 + } + }, { title: '事件描述', field: 'showName', minWidth: 150 }, { title: '发生位置', field: 'evtParamPosition', minWidth: 150 }, { @@ -160,6 +168,7 @@ const tableStore = new TableStore({ { title: '发生时刻', field: 'startTime', sortable: true, minWidth: 180 }, { title: '操作', + fixed: 'right', align: 'center', width: '180', render: 'buttons', @@ -184,8 +193,11 @@ const tableStore = new TableStore({ if (res != undefined) { boxoList.value = row boxoList.value.featureAmplitude = - row.evtParamVVaDepth != '-' ? row.evtParamVVaDepth - 0 : null + row.evtParamVVaDepth != '-' ? row.evtParamVVaDepth.split('%')[0] / 100 : null + boxoList.value.persistTime = + row.evtParamTm != '-' ? Math.floor(row.evtParamTm * 10000) / 100 : null // boxoList.value.systemType = 'WX' + boxoList.value.systemType = 'YPT' wp.value = res.data } loading.value = false diff --git a/src/views/govern/device/control/analysisList/index.vue b/src/views/govern/device/control/analysisList/index.vue index 0f9e697..2ad8955 100644 --- a/src/views/govern/device/control/analysisList/index.vue +++ b/src/views/govern/device/control/analysisList/index.vue @@ -82,7 +82,7 @@ const tableStore: any = new TableStore({ // }, }, { - title: '操作', + title: '操作', fixed: 'right', width: '100', render: 'buttons', buttons: [ diff --git a/src/views/govern/device/control/analysisList/popup.vue b/src/views/govern/device/control/analysisList/popup.vue index b153d41..021d0f8 100644 --- a/src/views/govern/device/control/analysisList/popup.vue +++ b/src/views/govern/device/control/analysisList/popup.vue @@ -1,123 +1,123 @@ - - - - - - - - - - - - 未解析 - 解析成功 - 解析失败 - 文件不存在 - - - - - - - - + + + + + + + + + + + + 未解析 + 解析成功 + 解析失败 + 文件不存在 + + + + + + + + diff --git a/src/views/govern/device/control/index.vue b/src/views/govern/device/control/index.vue index c3df524..c0a989c 100644 --- a/src/views/govern/device/control/index.vue +++ b/src/views/govern/device/control/index.vue @@ -50,10 +50,18 @@ --> - {{ devData.ptRatio || '/' }} + {{ + devData.ptRatio == null + ? '/' + : devData.ptRatio + (devData.pt2Ratio == null ? '' : ':' + devData.pt2Ratio) + }} - {{ devData.ctRatio || '/' }} + {{ + devData.ctRatio == null + ? '/' + : devData.ctRatio + (devData.ct2Ratio == null ? '' : ':' + devData.ct2Ratio) + }} - + 删除 { }) const mqttMessage = ref({}) const status: any = ref() -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类型 @@ -612,7 +612,6 @@ mqttRef.value.on('message', (topic: any, message: any) => { let str = JSON.parse(JSON.stringify(JSON.parse(new TextDecoder().decode(message)))) - let regex = /fileName:(.*?),allStep/ let regex1 = /allStep:(.*?),nowStep/ let regex2 = /nowStep:(.*?),userId/ diff --git a/src/views/govern/device/planData/components/transient.vue b/src/views/govern/device/planData/components/transient.vue index 87e1350..22d5acd 100644 --- a/src/views/govern/device/planData/components/transient.vue +++ b/src/views/govern/device/planData/components/transient.vue @@ -77,10 +77,10 @@ const tableStore = new TableStore({ }, sortable: true }, { - title: '操作', + title: '操作', fixed: 'right', width: 180, render: 'buttons', - fixed: 'right', + buttons: [ { name: 'edit', diff --git a/src/views/govern/log/debug.vue b/src/views/govern/log/debug.vue index 53421ec..c34fc82 100644 --- a/src/views/govern/log/debug.vue +++ b/src/views/govern/log/debug.vue @@ -1,61 +1,69 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + diff --git a/src/views/govern/log/opera.vue b/src/views/govern/log/opera.vue index decee62..110358c 100644 --- a/src/views/govern/log/opera.vue +++ b/src/views/govern/log/opera.vue @@ -17,7 +17,14 @@ defineOptions({ const tableStore = new TableStore({ url: '/cs-device-boot/cslog/queryLog', method: 'POST', - column: [ + column: [ { + field: 'index', + title: '序号', + width: '80', + formatter: (row: any) => { + return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1 + } + }, { title: '操作日期', field: 'createTime', align: 'center', sortable: true, minWidth: '150' }, { title: '操作描述', field: 'operate', align: 'center', minWidth: '300' }, { title: '用户名称', field: 'userName', align: 'center', minWidth: '130' }, diff --git a/src/views/govern/manage/basic/dictionary.vue b/src/views/govern/manage/basic/dictionary.vue index 3c93936..ecc58c7 100644 --- a/src/views/govern/manage/basic/dictionary.vue +++ b/src/views/govern/manage/basic/dictionary.vue @@ -111,10 +111,10 @@ const tableStore = new TableStore({ { title: '数据存储', field: 'classIdName', minWidth: 120 }, { title: '数据来源', field: 'resourcesIdName', minWidth: 120 }, { - title: '操作', + title: '操作', fixed: 'right', align: 'center', width: '180', - fixed: 'right', + render: 'buttons', buttons: [ { diff --git a/src/views/govern/manage/basic/template.vue b/src/views/govern/manage/basic/template.vue index 2f700ac..d70e769 100644 --- a/src/views/govern/manage/basic/template.vue +++ b/src/views/govern/manage/basic/template.vue @@ -63,12 +63,20 @@ const tableStore = new TableStore({ url: '/cs-device-boot/devmodel/queryDevModelPage', method: 'POST', column: [ + { + field: 'index', + title: '序号', + width: '80', + formatter: (row: any) => { + return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1 + } + }, { title: '装置型号', field: 'devTypeName' }, { title: '模板名称', field: 'name' }, { title: '版本号', field: 'versionNo' }, { title: '版本时间', field: 'versionDate', sortable: true }, { - title: '操作', + title: '操作', fixed: 'right', align: 'center', width: '180', render: 'buttons', diff --git a/src/views/govern/manage/basic/version.vue b/src/views/govern/manage/basic/version.vue index e91bbb4..f13ff07 100644 --- a/src/views/govern/manage/basic/version.vue +++ b/src/views/govern/manage/basic/version.vue @@ -47,16 +47,25 @@ const tableStore = new TableStore({ url: '/cs-device-boot/edData/queryEdDataPage', method: 'POST', column: [ - { title: '装置型号', field: 'devTypeName' }, - { title: '版本号', field: 'versionNo' }, - { title: '版本协议', field: 'versionAgreement' }, - { title: '版本日期', field: 'versionDate' }, - { title: '归档日期', field: 'updateTime' }, - { title: '描述', field: 'description' }, + { + field: 'index', + title: '序号', + width: '80', + formatter: (row: any) => { + return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1 + } + }, + { title: '装置型号', field: 'devTypeName' ,minWidth: '100'}, + { title: '版本号', field: 'versionNo' ,minWidth: '100'}, + { title: '版本协议', field: 'versionAgreement' ,minWidth: '100'}, + { title: '版本日期', field: 'versionDate' ,minWidth: '100'}, + { title: '归档日期', field: 'updateTime',minWidth: '150' }, + { title: '描述', field: 'description',minWidth: '200' }, { title: '状态', field: 'status', render: 'tag', + minWidth: '80', custom: { 0: 'error', 1: 'success' @@ -67,7 +76,7 @@ const tableStore = new TableStore({ } }, { - title: '操作', + title: '操作', fixed: 'right', align: 'center', width: '180', render: 'buttons', diff --git a/src/views/govern/manage/factory.vue b/src/views/govern/manage/factory.vue index 68342e5..ed94fc8 100644 --- a/src/views/govern/manage/factory.vue +++ b/src/views/govern/manage/factory.vue @@ -488,7 +488,7 @@ const tableStore = new TableStore({ minWidth: 80 }, { - title: '操作', + title: '操作', fixed: 'right', align: 'center', width: 220, render: 'buttons', diff --git a/src/views/govern/manage/feedback.vue b/src/views/govern/manage/feedback.vue index e5d53c0..e824808 100644 --- a/src/views/govern/manage/feedback.vue +++ b/src/views/govern/manage/feedback.vue @@ -1,97 +1,97 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + diff --git a/src/views/govern/manage/gplot/index.vue b/src/views/govern/manage/gplot/index.vue index 09143d0..d527080 100644 --- a/src/views/govern/manage/gplot/index.vue +++ b/src/views/govern/manage/gplot/index.vue @@ -49,7 +49,7 @@ const tableStore = new TableStore({ { title: '监测点数量', field: 'pointNum', align: 'center' }, { title: '拓扑图', field: 'filePath', align: 'center', render: 'image' }, { - title: '操作', + title: '操作', fixed: 'right', align: 'center', width: '180', render: 'buttons', diff --git a/src/views/govern/monitorRecall/steadyRecall.vue b/src/views/govern/monitorRecall/steadyRecall.vue index 92359cb..7901e9d 100644 --- a/src/views/govern/monitorRecall/steadyRecall.vue +++ b/src/views/govern/monitorRecall/steadyRecall.vue @@ -69,7 +69,7 @@ const tableStore: any = new TableStore({ } }, { - title: '操作', + title: '操作', fixed: 'right', width: '100', render: 'buttons', buttons: [ diff --git a/src/views/govern/reportForms/index.vue b/src/views/govern/reportForms/index.vue index 23fdcb3..e3997b2 100644 --- a/src/views/govern/reportForms/index.vue +++ b/src/views/govern/reportForms/index.vue @@ -47,7 +47,7 @@ const tableStore: any = new TableStore({ { field: 'createTime', title: '创建时间' , sortable: true}, { field: 'updateTime', title: '更新时间', sortable: true }, { - title: '操作', + title: '操作', fixed: 'right', width: '220', render: 'buttons', buttons: [ diff --git a/src/views/govern/sensitiveLoadMange/index.vue b/src/views/govern/sensitiveLoadMange/index.vue index 2682c54..f9cf68a 100644 --- a/src/views/govern/sensitiveLoadMange/index.vue +++ b/src/views/govern/sensitiveLoadMange/index.vue @@ -52,10 +52,10 @@ const tableStore: any = new TableStore({ { title: '用户协议容量(MVA)', field: 'userAgreementCapacity', minWidth: 100 }, { title: '装机容量(MW)', field: 'installedCapacity', minWidth: 100 }, { - title: '操作', + title: '操作', fixed: 'right', align: 'center', width: '180', - fixed: 'right', + render: 'buttons', buttons: [ { diff --git a/src/views/govern/setting/frontManagement/index.vue b/src/views/govern/setting/frontManagement/index.vue index a248d76..52dd7ae 100644 --- a/src/views/govern/setting/frontManagement/index.vue +++ b/src/views/govern/setting/frontManagement/index.vue @@ -1,7 +1,7 @@ - + @@ -39,7 +39,7 @@ @current-change="currentChangeEvent" > - + @@ -301,12 +301,21 @@ const tableStore = new TableStore({ url: '/cs-device-boot/node/nodeList', method: 'POST', column: [ - { title: '名称', field: 'name' }, - { title: 'IP', field: 'ip' }, + { + field: 'index', + title: '序号', + width: '80', + formatter: (row: any) => { + return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1 + } + }, + { title: '名称', field: 'name', minWidth: '110' }, + { title: 'IP', field: 'ip', minWidth: '110' }, { title: '等级', field: 'nodeGrade', render: 'tag', + minWidth: '80', custom: { 0: 'success', 1: 'warning', @@ -320,20 +329,24 @@ const tableStore = new TableStore({ }, { title: '最大监测点数量', - field: 'nodeDevNum' + field: 'nodeDevNum', + minWidth: '80', }, { title: '最大进程数', - field: 'maxProcessNum' + field: 'maxProcessNum', + minWidth: '80', }, { title: '排序', - field: 'sort' + field: 'sort', + minWidth: '80' }, { title: '状态', field: 'state', render: 'tag', + minWidth: '80', custom: { 0: 'warning', 1: 'success' @@ -343,11 +356,12 @@ const tableStore = new TableStore({ 1: '启用' } }, - { title: '描述', field: 'remark' }, + { title: '描述', field: 'remark', minWidth: '200', }, { title: '操作', + fixed: 'right', align: 'center', - width: '180', + width: '100', render: 'buttons', buttons: [ { @@ -626,7 +640,7 @@ onMounted(() => { height: 140px; } } -:deep(.default) { +.default { display: flex; } .custom-tree-node { diff --git a/src/views/govern/setting/statisticalType/index.vue b/src/views/govern/setting/statisticalType/index.vue index a161cea..e578ff1 100644 --- a/src/views/govern/setting/statisticalType/index.vue +++ b/src/views/govern/setting/statisticalType/index.vue @@ -66,7 +66,7 @@ const tableStore = new TableStore({ } }, { - title: '操作', + title: '操作', fixed: 'right', align: 'center', width: '200', render: 'buttons', diff --git a/src/views/govern/terminal/deviceLedger/index.vue b/src/views/govern/terminal/deviceLedger/index.vue index 6fa6be2..bc30217 100644 --- a/src/views/govern/terminal/deviceLedger/index.vue +++ b/src/views/govern/terminal/deviceLedger/index.vue @@ -227,7 +227,7 @@ const tableStore = new TableStore({ // }, }, { - title: '操作', + title: '操作', fixed: 'right', align: 'center', width: '180', render: 'buttons', diff --git a/src/views/govern/terminal/deviceMonitor/index.vue b/src/views/govern/terminal/deviceMonitor/index.vue index c02c2d3..d307fcd 100644 --- a/src/views/govern/terminal/deviceMonitor/index.vue +++ b/src/views/govern/terminal/deviceMonitor/index.vue @@ -228,7 +228,7 @@ const tableStore = new TableStore({ // }, }, { - title: '操作', + title: '操作', fixed: 'right', align: 'center', width: '180', render: 'buttons', diff --git a/src/views/setting/dictionary/component/index.vue b/src/views/setting/dictionary/component/index.vue index d86b07f..c5dbf80 100644 --- a/src/views/setting/dictionary/component/index.vue +++ b/src/views/setting/dictionary/component/index.vue @@ -127,7 +127,7 @@ const tableStore = new TableStore({ { field: 'path', title: '组件路径' }, { field: 'image', title: '组件展示', render: 'image' }, { - title: '操作', + title: '操作', fixed: 'right', render: 'buttons', width: '150', buttons: [ diff --git a/src/views/setting/dictionary/list/detail.vue b/src/views/setting/dictionary/list/detail.vue index f329aa5..882ab49 100644 --- a/src/views/setting/dictionary/list/detail.vue +++ b/src/views/setting/dictionary/list/detail.vue @@ -1,149 +1,149 @@ - - - - - - - - {{ props.detail.name }}详情信息 - - - - - - - - - 新增 - - - - - - - + + + + + + + + {{ props.detail.name }}详情信息 + + + + + + + + + 新增 + + + + + + + diff --git a/src/views/setting/dictionary/list/index.vue b/src/views/setting/dictionary/list/index.vue index 4e7f1f1..e966e35 100644 --- a/src/views/setting/dictionary/list/index.vue +++ b/src/views/setting/dictionary/list/index.vue @@ -1,124 +1,124 @@ - - - - - - - - - - 新增字典类型 - - - - - - - - + + + + + + + + + + 新增字典类型 + + + + + + + + diff --git a/src/views/setting/dictionary/tree/index.vue b/src/views/setting/dictionary/tree/index.vue index e1362a4..c5ab7ed 100644 --- a/src/views/setting/dictionary/tree/index.vue +++ b/src/views/setting/dictionary/tree/index.vue @@ -1,113 +1,113 @@ - - - - 字典树列表 - 新增字典类型 - - - - - - + + + + 字典树列表 + 新增字典类型 + + + + + + diff --git a/src/views/system/reportForms/index.vue b/src/views/system/reportForms/index.vue index ea6f4d5..e36d9b6 100644 --- a/src/views/system/reportForms/index.vue +++ b/src/views/system/reportForms/index.vue @@ -45,7 +45,7 @@ const tableStore: any = new TableStore({ { field: 'createTime', title: '创建时间', sortable: true }, { field: 'updateTime', title: '更新时间', sortable: true }, { - title: '操作', + title: '操作', fixed: 'right', width: '220', render: 'buttons', buttons: [ diff --git a/src/views/system/scheduledTasks/index.vue b/src/views/system/scheduledTasks/index.vue index 225ddc1..91d3522 100644 --- a/src/views/system/scheduledTasks/index.vue +++ b/src/views/system/scheduledTasks/index.vue @@ -66,10 +66,18 @@ const tableStore: any = new TableStore({ method: 'POST', isWebPaging: true, column: [ - { field: 'timerName', title: '任务名称' }, - { field: 'actionClass', title: '任务执行器' }, - { field: 'cron', title: '定时任务表达式' }, - { field: 'remark', title: '备注' }, + { + field: 'index', + title: '序号', + width: '80', + formatter: (row: any) => { + return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1 + } + }, + { field: 'timerName', title: '任务名称' ,minWidth: '180'}, + { field: 'actionClass', title: '任务执行器' ,minWidth: '300'}, + { field: 'cron', title: '定时任务表达式',minWidth: '140' }, + { field: 'remark', title: '备注' ,minWidth: '180'}, // { // field: 'jobStatus', title: '状态', width: '100', // render: 'tag', @@ -87,7 +95,7 @@ const tableStore: any = new TableStore({ { title: '状态', render: 'switch', - width: 100, + minWidth: 100, field: 'jobStatus', activeText: '运行中', activeValue: '1', @@ -107,9 +115,10 @@ const tableStore: any = new TableStore({ } } }, - { field: 'sort', title: '排序', width: '80' }, + { field: 'sort', title: '排序', minWidth: '80' }, { title: '操作', + fixed: 'right', width: '220', render: 'buttons', buttons: [ diff --git a/src/views/system/subject/index.vue b/src/views/system/subject/index.vue index 3280e9f..412db69 100644 --- a/src/views/system/subject/index.vue +++ b/src/views/system/subject/index.vue @@ -1,150 +1,150 @@ - - - - - 新增 - - - - - - - + + + + + 新增 + + + + + + +