优化表格
This commit is contained in:
@@ -229,9 +229,8 @@ const tableStore: any = new TableStore({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作', fixed: 'right',
|
||||||
width: 150,
|
width: 150,
|
||||||
// fixed: 'right',
|
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ const tableStore = new TableStore({
|
|||||||
{ title: '类型', field: 'casualUserName' },
|
{ title: '类型', field: 'casualUserName' },
|
||||||
{ title: '状态', field: 'stateName' },
|
{ title: '状态', field: 'stateName' },
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作', fixed: 'right',
|
||||||
width: '180',
|
width: '180',
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
buttons: [
|
buttons: [
|
||||||
|
|||||||
@@ -2,8 +2,16 @@
|
|||||||
<div>
|
<div>
|
||||||
<div class="custom-table-header">
|
<div class="custom-table-header">
|
||||||
<div class="title">接口权限列表</div>
|
<div class="title">接口权限列表</div>
|
||||||
<el-input maxlength="32" show-word-limit v-model.trim="tableStore.table.params.searchValue"
|
<el-input
|
||||||
style="width: 240px" placeholder="请输入菜单名称" class="ml10" clearable @input="search" />
|
maxlength="32"
|
||||||
|
show-word-limit
|
||||||
|
v-model.trim="tableStore.table.params.searchValue"
|
||||||
|
style="width: 240px"
|
||||||
|
placeholder="请输入菜单名称"
|
||||||
|
class="ml10"
|
||||||
|
clearable
|
||||||
|
@input="search"
|
||||||
|
/>
|
||||||
<el-button :icon="Plus" type="primary" @click="addMenu" class="ml10" :disabled="!props.id">新增</el-button>
|
<el-button :icon="Plus" type="primary" @click="addMenu" class="ml10" :disabled="!props.id">新增</el-button>
|
||||||
</div>
|
</div>
|
||||||
<Table ref="tableRef" />
|
<Table ref="tableRef" />
|
||||||
@@ -38,19 +46,29 @@ const tableStore = new TableStore({
|
|||||||
url: '/user-boot/function/getButtonById',
|
url: '/user-boot/function/getButtonById',
|
||||||
publicHeight: 60,
|
publicHeight: 60,
|
||||||
column: [
|
column: [
|
||||||
{ title: '普通接口/接口名称', field: 'name' },
|
{
|
||||||
|
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: '180' },
|
||||||
{
|
{
|
||||||
title: '接口类型',
|
title: '接口类型',
|
||||||
field: 'type',
|
field: 'type',
|
||||||
|
minWidth: '140',
|
||||||
formatter: row => {
|
formatter: row => {
|
||||||
return row.cellValue == 1 ? '普通接口' : '公用接口'
|
return row.cellValue == 1 ? '普通接口' : '公用接口'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ title: 'URL接口路径', field: 'path' },
|
{ title: 'URL接口路径', field: 'path', minWidth: '200' },
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
|
fixed: 'right',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '180',
|
width: '140',
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ const tableStore = new TableStore({
|
|||||||
render: 'icon'
|
render: 'icon'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作', fixed: 'right',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '180',
|
width: '180',
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ const tableStore = new TableStore({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作', fixed: 'right',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '180',
|
width: '180',
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
|
|||||||
@@ -79,10 +79,10 @@ const tableStore = new TableStore({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作', fixed: 'right',
|
||||||
width: '180',
|
width: '180',
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
fixed: 'right',
|
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
name: 'edit',
|
name: 'edit',
|
||||||
|
|||||||
@@ -141,9 +141,10 @@ const tableStore = new TableStore({
|
|||||||
{ title: '暂降(聚升)幅值(%)', minWidth: 100, field: 'evtParamVVaDepth', align: 'center', sortable: true },
|
{ title: '暂降(聚升)幅值(%)', minWidth: 100, field: 'evtParamVVaDepth', align: 'center', sortable: true },
|
||||||
|
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作', fixed: 'right',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '180',
|
width: '180',
|
||||||
|
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
@@ -165,9 +166,10 @@ const tableStore = new TableStore({
|
|||||||
row.loading1 = false
|
row.loading1 = false
|
||||||
if (res != undefined) {
|
if (res != undefined) {
|
||||||
boxoList.value = row
|
boxoList.value = row
|
||||||
|
boxoList.value.persistTime = row.evtParamTm
|
||||||
boxoList.value.featureAmplitude =
|
boxoList.value.featureAmplitude =
|
||||||
row.evtParamVVaDepth != '-' ? row.evtParamVVaDepth - 0 : null
|
row.evtParamVVaDepth != '-' ? (row.evtParamVVaDepth - 0) / 100 : null
|
||||||
boxoList.value.systemType = 'ZL'
|
boxoList.value.systemType = 'YPT'
|
||||||
wp.value = res.data
|
wp.value = res.data
|
||||||
}
|
}
|
||||||
loading.value = false
|
loading.value = false
|
||||||
|
|||||||
@@ -136,6 +136,14 @@ const tableStore = new TableStore({
|
|||||||
url: '/cs-harmonic-boot/eventUser/queryEventpageWeb',
|
url: '/cs-harmonic-boot/eventUser/queryEventpageWeb',
|
||||||
method: 'POST',
|
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: 'showName', minWidth: 150 },
|
{ title: '事件描述', field: 'showName', minWidth: 150 },
|
||||||
{ title: '发生位置', field: 'evtParamPosition', minWidth: 150 },
|
{ title: '发生位置', field: 'evtParamPosition', minWidth: 150 },
|
||||||
{
|
{
|
||||||
@@ -160,6 +168,7 @@ const tableStore = new TableStore({
|
|||||||
{ title: '发生时刻', field: 'startTime', sortable: true, minWidth: 180 },
|
{ title: '发生时刻', field: 'startTime', sortable: true, minWidth: 180 },
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
|
fixed: 'right',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '180',
|
width: '180',
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
@@ -184,8 +193,11 @@ const tableStore = new TableStore({
|
|||||||
if (res != undefined) {
|
if (res != undefined) {
|
||||||
boxoList.value = row
|
boxoList.value = row
|
||||||
boxoList.value.featureAmplitude =
|
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 = 'WX'
|
||||||
|
boxoList.value.systemType = 'YPT'
|
||||||
wp.value = res.data
|
wp.value = res.data
|
||||||
}
|
}
|
||||||
loading.value = false
|
loading.value = false
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ const tableStore: any = new TableStore({
|
|||||||
// },
|
// },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作', fixed: 'right',
|
||||||
width: '100',
|
width: '100',
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
buttons: [
|
buttons: [
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ const tableStore: any = new TableStore({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作', fixed: 'right',
|
||||||
width: '180',
|
width: '180',
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
buttons: [
|
buttons: [
|
||||||
|
|||||||
@@ -50,10 +50,18 @@
|
|||||||
</el-descriptions-item> -->
|
</el-descriptions-item> -->
|
||||||
|
|
||||||
<el-descriptions-item label="PT变比" width="160">
|
<el-descriptions-item label="PT变比" width="160">
|
||||||
{{ devData.ptRatio || '/' }}
|
{{
|
||||||
|
devData.ptRatio == null
|
||||||
|
? '/'
|
||||||
|
: devData.ptRatio + (devData.pt2Ratio == null ? '' : ':' + devData.pt2Ratio)
|
||||||
|
}}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="CT变比" width="160">
|
<el-descriptions-item label="CT变比" width="160">
|
||||||
{{ devData.ctRatio || '/' }}
|
{{
|
||||||
|
devData.ctRatio == null
|
||||||
|
? '/'
|
||||||
|
: devData.ctRatio + (devData.ct2Ratio == null ? '' : ':' + devData.ct2Ratio)
|
||||||
|
}}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
|
||||||
<!-- <el-descriptions-item label="名称">
|
<!-- <el-descriptions-item label="名称">
|
||||||
|
|||||||
@@ -236,7 +236,7 @@ const tableStore = new TableStore({
|
|||||||
// },
|
// },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作', fixed: 'right',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '180',
|
width: '180',
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
|
|||||||
@@ -56,11 +56,11 @@ const tableStore: any = new TableStore({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ field: 'startTime', title: '发生时刻', minWidth: 170, sortable: true },
|
{ field: 'startTime', title: '发生时刻', minWidth: 170, sortable: true },
|
||||||
{ field: 'showName', title: '事件描述', minWidth: 170 },
|
{ field: 'showName', title: '事件描述', minWidth: 120 },
|
||||||
{
|
{
|
||||||
field: 'phaseType',
|
field: 'phaseType',
|
||||||
title: '相别',
|
title: '相别',
|
||||||
minWidth: 100,
|
minWidth: 80,
|
||||||
formatter: (row: any) => {
|
formatter: (row: any) => {
|
||||||
row.cellValue = row.cellValue ? row.cellValue : '/'
|
row.cellValue = row.cellValue ? row.cellValue : '/'
|
||||||
return row.cellValue
|
return row.cellValue
|
||||||
@@ -69,7 +69,7 @@ const tableStore: any = new TableStore({
|
|||||||
{
|
{
|
||||||
field: 'persistTime',
|
field: 'persistTime',
|
||||||
title: '持续时间(s)',
|
title: '持续时间(s)',
|
||||||
minWidth: 100,
|
minWidth: 110,
|
||||||
formatter: (row: any) => {
|
formatter: (row: any) => {
|
||||||
console.log('row.cellValue', row.cellValue)
|
console.log('row.cellValue', row.cellValue)
|
||||||
row.cellValue = row.cellValue ? row.cellValue.toFixed(2) : '/'
|
row.cellValue = row.cellValue ? row.cellValue.toFixed(2) : '/'
|
||||||
@@ -80,7 +80,7 @@ const tableStore: any = new TableStore({
|
|||||||
{
|
{
|
||||||
field: 'featureAmplitude',
|
field: 'featureAmplitude',
|
||||||
title: '暂降(聚升)幅值(%)',
|
title: '暂降(聚升)幅值(%)',
|
||||||
width: 100,
|
minWidth: 130,
|
||||||
formatter: (row: any) => {
|
formatter: (row: any) => {
|
||||||
//row.cellValue = row.cellValue + '' ? row.cellValue.toFixed(2) : '/'
|
//row.cellValue = row.cellValue + '' ? row.cellValue.toFixed(2) : '/'
|
||||||
row.cellValue = row.cellValue != null ? Number(row.cellValue).toFixed(2) : '/'
|
row.cellValue = row.cellValue != null ? Number(row.cellValue).toFixed(2) : '/'
|
||||||
@@ -91,10 +91,10 @@ const tableStore: any = new TableStore({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作', fixed: 'right',
|
||||||
width: 180,
|
width: 180,
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
fixed: 'right',
|
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
name: 'edit',
|
name: 'edit',
|
||||||
@@ -118,7 +118,9 @@ const tableStore: any = new TableStore({
|
|||||||
boxoList.value = row
|
boxoList.value = row
|
||||||
boxoList.value.systemType = 'YPT'
|
boxoList.value.systemType = 'YPT'
|
||||||
boxoList.value.engineeringName = tableParams.value.engineeringName
|
boxoList.value.engineeringName = tableParams.value.engineeringName
|
||||||
console.log("🚀 ~ tableParams.value.engineeringName:", tableParams.value.engineeringName)
|
boxoList.value.featureAmplitude =
|
||||||
|
row.featureAmplitude != null ? Number(row.featureAmplitude / 100) : '-'
|
||||||
|
boxoList.value.persistTime = row.persistTime ? row.persistTime.toFixed(2) : '-'
|
||||||
wp.value = res.data
|
wp.value = res.data
|
||||||
view.value = false
|
view.value = false
|
||||||
view2.value = true
|
view2.value = true
|
||||||
|
|||||||
@@ -71,7 +71,7 @@
|
|||||||
v-bind="defaultAttribute"
|
v-bind="defaultAttribute"
|
||||||
>
|
>
|
||||||
<vxe-column type="seq" title="序号" width="80"></vxe-column>
|
<vxe-column type="seq" title="序号" width="80"></vxe-column>
|
||||||
<vxe-column field="prjDataPath" align="center" title="名称" #default="{ row }">
|
<vxe-column field="prjDataPath" align="center" title="名称" minWidth="180" #default="{ row }">
|
||||||
<span
|
<span
|
||||||
style="cursor: pointer; color: #551a8b"
|
style="cursor: pointer; color: #551a8b"
|
||||||
:style="{
|
:style="{
|
||||||
@@ -91,15 +91,15 @@
|
|||||||
</span>
|
</span>
|
||||||
</vxe-column>
|
</vxe-column>
|
||||||
|
|
||||||
<vxe-column field="startTime" align="center" title="文件时间" width="240" #default="{ row }">
|
<vxe-column field="startTime" align="center" title="文件时间" minWidth="140" #default="{ row }">
|
||||||
{{ row.startTime ? row.startTime : '/' }}
|
{{ row.startTime ? row.startTime : '/' }}
|
||||||
</vxe-column>
|
</vxe-column>
|
||||||
<vxe-column field="type" align="center" title="类型" width="120" #default="{ row }">
|
<vxe-column field="type" align="center" title="类型" minWidth="100" #default="{ row }">
|
||||||
<span>
|
<span>
|
||||||
{{ row.type == 'dir' ? '文件夹' : row.type == 'file' ? '文件' : '/' }}
|
{{ row.type == 'dir' ? '文件夹' : row.type == 'file' ? '文件' : '/' }}
|
||||||
</span>
|
</span>
|
||||||
</vxe-column>
|
</vxe-column>
|
||||||
<vxe-column field="size" align="center" width="120" title="大小" #default="{ row }">
|
<vxe-column field="size" align="center" minWidth="100" title="大小" #default="{ row }">
|
||||||
<span>
|
<span>
|
||||||
{{ row.size && row.type == 'file' ? row.size + 'KB' : '/' }}
|
{{ row.size && row.type == 'file' ? row.size + 'KB' : '/' }}
|
||||||
</span>
|
</span>
|
||||||
@@ -107,7 +107,7 @@
|
|||||||
<!--<vxe-column field="fileCheck" align="center" title="文件校验码" width="100" #default="{ row }">
|
<!--<vxe-column field="fileCheck" align="center" title="文件校验码" width="100" #default="{ row }">
|
||||||
{{ row.fileCheck ? row.fileCheck : '/' }}
|
{{ row.fileCheck ? row.fileCheck : '/' }}
|
||||||
</vxe-column> -->
|
</vxe-column> -->
|
||||||
<vxe-column title="操作" width="200px">
|
<vxe-column title="操作" width="120px" fixed="right">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button link size="small" type="danger" @click="handleDelDirOrFile(row)">删除</el-button>
|
<el-button link size="small" type="danger" @click="handleDelDirOrFile(row)">删除</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
@@ -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 str = JSON.parse(JSON.stringify(JSON.parse(new TextDecoder().decode(message))))
|
||||||
|
|
||||||
|
|
||||||
let regex = /fileName:(.*?),allStep/
|
let regex = /fileName:(.*?),allStep/
|
||||||
let regex1 = /allStep:(.*?),nowStep/
|
let regex1 = /allStep:(.*?),nowStep/
|
||||||
let regex2 = /nowStep:(.*?),userId/
|
let regex2 = /nowStep:(.*?),userId/
|
||||||
|
|||||||
@@ -77,10 +77,10 @@ const tableStore = new TableStore({
|
|||||||
}, sortable: true
|
}, sortable: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作', fixed: 'right',
|
||||||
width: 180,
|
width: 180,
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
fixed: 'right',
|
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
name: 'edit',
|
name: 'edit',
|
||||||
|
|||||||
@@ -25,6 +25,14 @@ const tableStore = new TableStore({
|
|||||||
url: '/cs-device-boot/process/queryPage',
|
url: '/cs-device-boot/process/queryPage',
|
||||||
method: 'POST',
|
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: 'devName', align: 'center' },
|
{ title: '设备名称', field: 'devName', align: 'center' },
|
||||||
{ title: '操作用户', field: 'operatorName', align: 'center' },
|
{ title: '操作用户', field: 'operatorName', align: 'center' },
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -17,7 +17,14 @@ defineOptions({
|
|||||||
const tableStore = new TableStore({
|
const tableStore = new TableStore({
|
||||||
url: '/cs-device-boot/cslog/queryLog',
|
url: '/cs-device-boot/cslog/queryLog',
|
||||||
method: 'POST',
|
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: 'createTime', align: 'center', sortable: true, minWidth: '150' },
|
||||||
{ title: '操作描述', field: 'operate', align: 'center', minWidth: '300' },
|
{ title: '操作描述', field: 'operate', align: 'center', minWidth: '300' },
|
||||||
{ title: '用户名称', field: 'userName', align: 'center', minWidth: '130' },
|
{ title: '用户名称', field: 'userName', align: 'center', minWidth: '130' },
|
||||||
|
|||||||
@@ -111,10 +111,10 @@ const tableStore = new TableStore({
|
|||||||
{ title: '数据存储', field: 'classIdName', minWidth: 120 },
|
{ title: '数据存储', field: 'classIdName', minWidth: 120 },
|
||||||
{ title: '数据来源', field: 'resourcesIdName', minWidth: 120 },
|
{ title: '数据来源', field: 'resourcesIdName', minWidth: 120 },
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作', fixed: 'right',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '180',
|
width: '180',
|
||||||
fixed: 'right',
|
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -63,12 +63,20 @@ const tableStore = new TableStore({
|
|||||||
url: '/cs-device-boot/devmodel/queryDevModelPage',
|
url: '/cs-device-boot/devmodel/queryDevModelPage',
|
||||||
method: 'POST',
|
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: 'devTypeName' },
|
{ title: '装置型号', field: 'devTypeName' },
|
||||||
{ title: '模板名称', field: 'name' },
|
{ title: '模板名称', field: 'name' },
|
||||||
{ title: '版本号', field: 'versionNo' },
|
{ title: '版本号', field: 'versionNo' },
|
||||||
{ title: '版本时间', field: 'versionDate', sortable: true },
|
{ title: '版本时间', field: 'versionDate', sortable: true },
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作', fixed: 'right',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '180',
|
width: '180',
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
|
|||||||
@@ -47,16 +47,25 @@ const tableStore = new TableStore({
|
|||||||
url: '/cs-device-boot/edData/queryEdDataPage',
|
url: '/cs-device-boot/edData/queryEdDataPage',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
column: [
|
column: [
|
||||||
{ title: '装置型号', field: 'devTypeName' },
|
{
|
||||||
{ title: '版本号', field: 'versionNo' },
|
field: 'index',
|
||||||
{ title: '版本协议', field: 'versionAgreement' },
|
title: '序号',
|
||||||
{ title: '版本日期', field: 'versionDate' },
|
width: '80',
|
||||||
{ title: '归档日期', field: 'updateTime' },
|
formatter: (row: any) => {
|
||||||
{ title: '描述', field: 'description' },
|
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: '状态',
|
title: '状态',
|
||||||
field: 'status',
|
field: 'status',
|
||||||
render: 'tag',
|
render: 'tag',
|
||||||
|
minWidth: '80',
|
||||||
custom: {
|
custom: {
|
||||||
0: 'error',
|
0: 'error',
|
||||||
1: 'success'
|
1: 'success'
|
||||||
@@ -67,7 +76,7 @@ const tableStore = new TableStore({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作', fixed: 'right',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '180',
|
width: '180',
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
|
|||||||
@@ -488,7 +488,7 @@ const tableStore = new TableStore({
|
|||||||
minWidth: 80
|
minWidth: 80
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作', fixed: 'right',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 220,
|
width: 220,
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ const tableStore = new TableStore({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作', fixed: 'right',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '180',
|
width: '180',
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ const tableStore = new TableStore({
|
|||||||
{ title: '监测点数量', field: 'pointNum', align: 'center' },
|
{ title: '监测点数量', field: 'pointNum', align: 'center' },
|
||||||
{ title: '拓扑图', field: 'filePath', align: 'center', render: 'image' },
|
{ title: '拓扑图', field: 'filePath', align: 'center', render: 'image' },
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作', fixed: 'right',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '180',
|
width: '180',
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ const tableStore: any = new TableStore({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作', fixed: 'right',
|
||||||
width: '100',
|
width: '100',
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
buttons: [
|
buttons: [
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ const tableStore: any = new TableStore({
|
|||||||
{ field: 'createTime', title: '创建时间' , sortable: true},
|
{ field: 'createTime', title: '创建时间' , sortable: true},
|
||||||
{ field: 'updateTime', title: '更新时间', sortable: true },
|
{ field: 'updateTime', title: '更新时间', sortable: true },
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作', fixed: 'right',
|
||||||
width: '220',
|
width: '220',
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
buttons: [
|
buttons: [
|
||||||
|
|||||||
@@ -52,10 +52,10 @@ const tableStore: any = new TableStore({
|
|||||||
{ title: '用户协议容量(MVA)', field: 'userAgreementCapacity', minWidth: 100 },
|
{ title: '用户协议容量(MVA)', field: 'userAgreementCapacity', minWidth: 100 },
|
||||||
{ title: '装机容量(MW)', field: 'installedCapacity', minWidth: 100 },
|
{ title: '装机容量(MW)', field: 'installedCapacity', minWidth: 100 },
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作', fixed: 'right',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '180',
|
width: '180',
|
||||||
fixed: 'right',
|
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="default-main">
|
<div class="default-main">
|
||||||
<div class="default">
|
<div class="default">
|
||||||
<div style="flex: 1">
|
<div style="width: calc(100% - 300px);">
|
||||||
<TableHeader>
|
<TableHeader>
|
||||||
<template v-slot:select>
|
<template v-slot:select>
|
||||||
<el-form-item label="前置等级">
|
<el-form-item label="前置等级">
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
@current-change="currentChangeEvent"
|
@current-change="currentChangeEvent"
|
||||||
></Table>
|
></Table>
|
||||||
</div>
|
</div>
|
||||||
<div class="pd10" style="width: 400px" v-loading="loading">
|
<div class="pd10" style="width: 300px" v-loading="loading">
|
||||||
<el-input v-model="filterText" placeholder="请输入内容" clearable show-word-limit @input="change">
|
<el-input v-model="filterText" placeholder="请输入内容" clearable show-word-limit @input="change">
|
||||||
<template #prefix>
|
<template #prefix>
|
||||||
<Icon name="el-icon-Search" style="font-size: 16px" />
|
<Icon name="el-icon-Search" style="font-size: 16px" />
|
||||||
@@ -301,12 +301,21 @@ const tableStore = new TableStore({
|
|||||||
url: '/cs-device-boot/node/nodeList',
|
url: '/cs-device-boot/node/nodeList',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
column: [
|
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: '等级',
|
title: '等级',
|
||||||
field: 'nodeGrade',
|
field: 'nodeGrade',
|
||||||
render: 'tag',
|
render: 'tag',
|
||||||
|
minWidth: '80',
|
||||||
custom: {
|
custom: {
|
||||||
0: 'success',
|
0: 'success',
|
||||||
1: 'warning',
|
1: 'warning',
|
||||||
@@ -320,20 +329,24 @@ const tableStore = new TableStore({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '最大监测点数量',
|
title: '最大监测点数量',
|
||||||
field: 'nodeDevNum'
|
field: 'nodeDevNum',
|
||||||
|
minWidth: '80',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '最大进程数',
|
title: '最大进程数',
|
||||||
field: 'maxProcessNum'
|
field: 'maxProcessNum',
|
||||||
|
minWidth: '80',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '排序',
|
title: '排序',
|
||||||
field: 'sort'
|
field: 'sort',
|
||||||
|
minWidth: '80'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '状态',
|
title: '状态',
|
||||||
field: 'state',
|
field: 'state',
|
||||||
render: 'tag',
|
render: 'tag',
|
||||||
|
minWidth: '80',
|
||||||
custom: {
|
custom: {
|
||||||
0: 'warning',
|
0: 'warning',
|
||||||
1: 'success'
|
1: 'success'
|
||||||
@@ -343,11 +356,12 @@ const tableStore = new TableStore({
|
|||||||
1: '启用'
|
1: '启用'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ title: '描述', field: 'remark' },
|
{ title: '描述', field: 'remark', minWidth: '200', },
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
|
fixed: 'right',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '180',
|
width: '100',
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
@@ -626,7 +640,7 @@ onMounted(() => {
|
|||||||
height: 140px;
|
height: 140px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
:deep(.default) {
|
.default {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
.custom-tree-node {
|
.custom-tree-node {
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ const tableStore = new TableStore({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作', fixed: 'right',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '200',
|
width: '200',
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
|
|||||||
@@ -227,7 +227,7 @@ const tableStore = new TableStore({
|
|||||||
// },
|
// },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作', fixed: 'right',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '180',
|
width: '180',
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
|
|||||||
@@ -228,7 +228,7 @@ const tableStore = new TableStore({
|
|||||||
// },
|
// },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作', fixed: 'right',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '180',
|
width: '180',
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ const tableStore = new TableStore({
|
|||||||
{ field: 'path', title: '组件路径' },
|
{ field: 'path', title: '组件路径' },
|
||||||
{ field: 'image', title: '组件展示', render: 'image' },
|
{ field: 'image', title: '组件展示', render: 'image' },
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作', fixed: 'right',
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
width: '150',
|
width: '150',
|
||||||
buttons: [
|
buttons: [
|
||||||
|
|||||||
@@ -58,10 +58,10 @@ const tableStore = new TableStore({
|
|||||||
{ title: '算法描述', field: 'algoDescribe' },
|
{ title: '算法描述', field: 'algoDescribe' },
|
||||||
{ title: '状态', field: 'stateName' },
|
{ title: '状态', field: 'stateName' },
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作', fixed: 'right',
|
||||||
width: '180',
|
width: '180',
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
fixed: 'right',
|
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
title: '编辑',
|
title: '编辑',
|
||||||
|
|||||||
@@ -59,10 +59,10 @@ const tableStore = new TableStore({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作', fixed: 'right',
|
||||||
width: '180',
|
width: '180',
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
fixed: 'right',
|
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
title: '查看',
|
title: '查看',
|
||||||
|
|||||||
@@ -48,10 +48,10 @@ const tableStore = new TableStore({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作', fixed: 'right',
|
||||||
width: '180',
|
width: '180',
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
fixed: 'right',
|
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
title: '新增',
|
title: '新增',
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ const tableStore: any = new TableStore({
|
|||||||
{ field: 'createTime', title: '创建时间', sortable: true },
|
{ field: 'createTime', title: '创建时间', sortable: true },
|
||||||
{ field: 'updateTime', title: '更新时间', sortable: true },
|
{ field: 'updateTime', title: '更新时间', sortable: true },
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作', fixed: 'right',
|
||||||
width: '220',
|
width: '220',
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
buttons: [
|
buttons: [
|
||||||
|
|||||||
@@ -66,10 +66,18 @@ const tableStore: any = new TableStore({
|
|||||||
method: 'POST',
|
method: 'POST',
|
||||||
isWebPaging: true,
|
isWebPaging: true,
|
||||||
column: [
|
column: [
|
||||||
{ field: 'timerName', title: '任务名称' },
|
{
|
||||||
{ field: 'actionClass', title: '任务执行器' },
|
field: 'index',
|
||||||
{ field: 'cron', title: '定时任务表达式' },
|
title: '序号',
|
||||||
{ field: 'remark', 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',
|
// field: 'jobStatus', title: '状态', width: '100',
|
||||||
// render: 'tag',
|
// render: 'tag',
|
||||||
@@ -87,7 +95,7 @@ const tableStore: any = new TableStore({
|
|||||||
{
|
{
|
||||||
title: '状态',
|
title: '状态',
|
||||||
render: 'switch',
|
render: 'switch',
|
||||||
width: 100,
|
minWidth: 100,
|
||||||
field: 'jobStatus',
|
field: 'jobStatus',
|
||||||
activeText: '运行中',
|
activeText: '运行中',
|
||||||
activeValue: '1',
|
activeValue: '1',
|
||||||
@@ -107,9 +115,10 @@ const tableStore: any = new TableStore({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ field: 'sort', title: '排序', width: '80' },
|
{ field: 'sort', title: '排序', minWidth: '80' },
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
|
fixed: 'right',
|
||||||
width: '220',
|
width: '220',
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
buttons: [
|
buttons: [
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ const tableStore: any = new TableStore({
|
|||||||
{ field: 'logoUrl', title: '主题图标', render: 'image' },
|
{ field: 'logoUrl', title: '主题图标', render: 'image' },
|
||||||
|
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作', fixed: 'right',
|
||||||
width: '180',
|
width: '180',
|
||||||
render: 'buttons',
|
render: 'buttons',
|
||||||
buttons: [
|
buttons: [
|
||||||
|
|||||||
Reference in New Issue
Block a user