电压暂降

This commit is contained in:
仲么了
2023-12-28 09:59:28 +08:00
parent b24fc5dd68
commit afeadbe26a
4 changed files with 125 additions and 19 deletions

View File

@@ -0,0 +1,59 @@
<template>
<div class="default-main">
<TableHeader date-picker>
<template v-slot:select>
<!-- <el-form-item label="用户名">
<el-select v-model="value" class="m-2" placeholder="Select" size="large">
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
</el-select>
</el-form-item>
<el-form-item label="操作类型">
<el-input v-model="tableStore.table.params.loginName" placeholder="Please input" />
</el-form-item> -->
</template>
<template v-slot:operation>
<el-button :icon="Plus" type="primary" @click="addMenu">添加</el-button>
</template>
</TableHeader>
<Table ref="tableRef" />
</div>
</template>
<script setup lang="ts">
import { Plus } from '@element-plus/icons-vue'
import { ref, onMounted, provide } from 'vue'
import TableStore from '@/utils/tableStore'
import Table from '@/components/table/index.vue'
import TableHeader from '@/components/table/header/index.vue'
defineOptions({
name: 'comptroller/list'
})
const tableStore = new TableStore({
isWebPaging: true,
url: '/device-boot/runManage/getRuntimeData',
method: 'POST',
column: [
{ title: '序号', type: 'seq', align: 'center', width: 60 },
{ title: '区域', field: 'userName', align: 'center', width: 120 },
{ title: '供电公司', field: 'operate', align: 'center', width: 220 },
{ title: '变电站', field: 'describe', align: 'center', showOverflow: true, minWidth: 200 },
{ title: '终端编号', field: 'type', align: 'center', width: 160 },
{ title: '投运时间', field: 'type', align: 'center', width: 100 },
{ title: '厂家', field: 'ip', align: 'center', width: 160 },
{ title: '', field: 'level', align: 'center', width: 100 }
]
})
tableStore.table.params.deptIndex = '5699e5916a18a6381e1ac92da5bd2628'
tableStore.table.params.serverName = 'event-boot'
tableStore.table.params.statisticalType = {}
tableStore.table.params.comFlag = []
tableStore.table.params.manufacturer = []
tableStore.table.params.runFlag = []
provide('tableStore', tableStore)
onMounted(() => {
tableStore.index()
})
const addMenu = () => {}
</script>