调整代码
This commit is contained in:
@@ -24,8 +24,8 @@
|
||||
</el-form-item>
|
||||
</template>
|
||||
<template #operation>
|
||||
<el-button icon="el-icon-Plus" type="primary" @click="addFormModel">新增</el-button>
|
||||
<el-button icon="el-icon-Delete" type="primary" @click="deleteEven">删除</el-button>
|
||||
<el-button icon="el-icon-Plus" type="primary" @click="addFormModel" v-if="information">新增</el-button>
|
||||
<el-button icon="el-icon-Delete" type="primary" @click="deleteEven" v-if="information">删除</el-button>
|
||||
<!-- <el-button icon="el-icon-Download" type="primary" @click="exportExcelTemplate" :loading="loading">
|
||||
模板下载
|
||||
</el-button>
|
||||
@@ -59,6 +59,7 @@ import DetailInfo from './components/detail.vue'
|
||||
import { cancelFormData, getUserReportById } from '@/api/supervision-boot/interfere/index'
|
||||
import { deleteUserReport } from '@/api/device-boot/sensitiveLoadMange'
|
||||
import { download } from '@/utils/fileDownLoad'
|
||||
|
||||
const addForms = ref()
|
||||
const dictData = useDictData()
|
||||
const sensitiveUserPopup = ref()
|
||||
@@ -73,6 +74,8 @@ defineOptions({
|
||||
|
||||
//获取登陆用户姓名和部门
|
||||
const adminInfo = useAdminInfo()
|
||||
const information = ref(adminInfo.roleCode.includes('business_manager'))
|
||||
|
||||
const tableStore = new TableStore({
|
||||
url: '/device-boot/userReport/getUserLedgerPage',
|
||||
// publicHeight: 65,
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
placeholder="电站名称,终端编号,监测点名称、电压等级、终端厂家、干扰源类型"
|
||||
v-model="tableStore.table.params.searchValue"
|
||||
clearable
|
||||
maxlength="32"
|
||||
show-word-limit
|
||||
maxlength="32"
|
||||
show-word-limit
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="电压等级:">
|
||||
@@ -152,9 +152,23 @@ const tableStore = new TableStore({
|
||||
}
|
||||
},
|
||||
{ field: 'powerFlag', title: '用户性质', width: '120px' },
|
||||
|
||||
|
||||
/* { field: 'comFlag', title: '通讯状态 ', minWidth: 120 },*/
|
||||
{ field: 'id', title: '监测点序号', minWidth: 90 },
|
||||
{
|
||||
field: 'comFlag',
|
||||
title: '通讯状态',
|
||||
render: 'tag',
|
||||
minWidth: 80,
|
||||
custom: {
|
||||
中断: 'danger',
|
||||
正常: 'success'
|
||||
},
|
||||
replaceValue: {
|
||||
中断: '中断',
|
||||
正常: '正常'
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'runFlag',
|
||||
title: '运行状态',
|
||||
@@ -166,6 +180,13 @@ const tableStore = new TableStore({
|
||||
检修: 'warning',
|
||||
调试: 'warning',
|
||||
退运: 'danger'
|
||||
},
|
||||
replaceValue: {
|
||||
投运: '投运',
|
||||
停运: '停运',
|
||||
检修: '检修',
|
||||
调试: '调试',
|
||||
退运: '退运'
|
||||
}
|
||||
},
|
||||
{ field: 'devName', title: '监测终端编号 ', minWidth: 140 },
|
||||
|
||||
Reference in New Issue
Block a user