Compare commits
9 Commits
15e1be00af
...
2025-04
| Author | SHA1 | Date | |
|---|---|---|---|
| bb7eb039b5 | |||
| b317bf9c7d | |||
| 0a521bdcb7 | |||
| 263cd764f3 | |||
| a04bb33206 | |||
| f4a22dbed1 | |||
| 566949569a | |||
| 52a0b67f96 | |||
| 50573bb748 |
@@ -20,7 +20,7 @@ export function queryPage(data) {
|
|||||||
return request({
|
return request({
|
||||||
url: '/device-boot/cvt/queryPage',
|
url: '/device-boot/cvt/queryPage',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 修改cvt系数
|
// 修改cvt系数
|
||||||
@@ -47,3 +47,11 @@ export function queryByLineId(data) {
|
|||||||
params: data
|
params: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 执行算法
|
||||||
|
export function measurementPointExecutorByHour(data) {
|
||||||
|
return request({
|
||||||
|
url: '/prepare-boot/executor/measurementPointExecutorByHour',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@@ -8,6 +8,16 @@ export function getAllMonitorPageList(data) {
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function getAllMainUserPageList(data) {
|
||||||
|
return request({
|
||||||
|
url: '/device-boot/pms/monitor/getAllMainUserPageList',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// 新增牵引站信息
|
// 新增牵引站信息
|
||||||
export function addMonitor(data) {
|
export function addMonitor(data) {
|
||||||
return request({
|
return request({
|
||||||
|
|||||||
@@ -51,3 +51,11 @@ export function objType(data) {
|
|||||||
params: data
|
params: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function objTypeStatis(data) {
|
||||||
|
return request({
|
||||||
|
url: '/device-boot/monitorStatistics/objTypeStatis',
|
||||||
|
method: 'post',
|
||||||
|
params: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@@ -15,6 +15,14 @@ export function heBeiToken(data) {
|
|||||||
params: data,
|
params: data,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
// /超高压嵌入token校验
|
||||||
|
export function productionManagementCheck(data) {
|
||||||
|
return request({
|
||||||
|
url: "/pqs-auth/judgeToken/productionManagementCheck",
|
||||||
|
method: "post",
|
||||||
|
params: data,
|
||||||
|
});
|
||||||
|
}
|
||||||
//登录获取token
|
//登录获取token
|
||||||
export function login(data) {
|
export function login(data) {
|
||||||
return request({
|
return request({
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
v-show="!collapse"
|
v-show="!collapse"
|
||||||
class="sidebar-title"
|
class="sidebar-title"
|
||||||
:style="{ fontSize: settings.layout === 'layout1' && settings.title.length >= 8 ? '14px' : '24px'}"
|
:style="{ fontSize: settings.layout === 'layout1' && settings.title.length >= 8 ? '14px' : '24px'}"
|
||||||
>{{ settings.title }} </h1>
|
>{{ settings.title }} <span style="font-size: 14px">(v1.0.0)</span> </h1>
|
||||||
</transition>
|
</transition>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,8 +3,7 @@ import store from './store'
|
|||||||
import NProgress from 'nprogress' // progress bar
|
import NProgress from 'nprogress' // progress bar
|
||||||
import 'nprogress/nprogress.css' // progress bar style
|
import 'nprogress/nprogress.css' // progress bar style
|
||||||
import getPageTitle from '@/utils/get-page-title'
|
import getPageTitle from '@/utils/get-page-title'
|
||||||
import { logout } from '@/api/user.js'
|
import { productionManagementCheck } from '@/api/user.js'
|
||||||
|
|
||||||
// NProgress.configure({ showSpinner: false }) // NProgress Configuration
|
// NProgress.configure({ showSpinner: false }) // NProgress Configuration
|
||||||
// && from.path === '/agreement' && from.path === '/policy'
|
// && from.path === '/agreement' && from.path === '/policy'
|
||||||
const whiteList = ['/login', '/agreement', '/policy'] // no redirect whitelist
|
const whiteList = ['/login', '/agreement', '/policy'] // no redirect whitelist
|
||||||
@@ -87,7 +86,33 @@ router.beforeEach(async (to, from, next) => {
|
|||||||
// })
|
// })
|
||||||
// }
|
// }
|
||||||
} else {
|
} else {
|
||||||
proceed(to, from, next)
|
const response = await fetch('/')
|
||||||
|
const flag = response.headers.get('X-Xbqr')
|
||||||
|
console.log('🚀 ~ flag:', flag)
|
||||||
|
|
||||||
|
if (flag) {
|
||||||
|
// 超高压嵌入 接受父应用传参
|
||||||
|
window.addEventListener(
|
||||||
|
'message',
|
||||||
|
event => {
|
||||||
|
if (event.data && event.data.type === 'iframeNest') {
|
||||||
|
let { accessToken, displayMode, theme } = event.data
|
||||||
|
console.log('我是iframe,我接收到了数据:', accessToken)
|
||||||
|
productionManagementCheck({
|
||||||
|
token: accessToken
|
||||||
|
}).then(res => {
|
||||||
|
console.log('🚀 ~ receiveMessageFromOutside ~ res:', res)
|
||||||
|
if (res.code == 'A0000') {
|
||||||
|
proceed(to, from, next)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
false
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
proceed(to, from, next)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// else {
|
// else {
|
||||||
@@ -133,9 +158,13 @@ router.beforeEach(async (to, from, next) => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
async function proceed(to, from, next, HB_NAME) {
|
async function proceed(to, from, next, HB_NAME) {
|
||||||
|
// 打印当前 name 和 sessionStorage 中 cntoken 是否为空的日志
|
||||||
let name = HB_NAME || 'cdf'
|
let name = HB_NAME || 'cdf'
|
||||||
|
// 检查 sessionStorage 中是否没有 cntoken
|
||||||
console.log('🚀 ~ proceed ~ name:', name, window.sessionStorage.getItem('cntoken') == null)
|
console.log('🚀 ~ proceed ~ name:', name, window.sessionStorage.getItem('cntoken') == null)
|
||||||
|
// 定义默认密码
|
||||||
if (window.sessionStorage.getItem('cntoken') == null) {
|
if (window.sessionStorage.getItem('cntoken') == null) {
|
||||||
|
// 初始化登录表单
|
||||||
let password = '@#001njcnpqs'
|
let password = '@#001njcnpqs'
|
||||||
let loginjmForm = {
|
let loginjmForm = {
|
||||||
username: '',
|
username: '',
|
||||||
@@ -143,38 +172,53 @@ async function proceed(to, from, next, HB_NAME) {
|
|||||||
grant_type: 'captcha',
|
grant_type: 'captcha',
|
||||||
verifyCode: 0,
|
verifyCode: 0,
|
||||||
imageCode: ''
|
imageCode: ''
|
||||||
|
// 对 name 进行加密处理
|
||||||
}
|
}
|
||||||
let username = encrypt(name)
|
let username = encrypt(name)
|
||||||
|
// 设置登录表单的用户名
|
||||||
|
|
||||||
|
// 将应用高度存储到 sessionStorage 中
|
||||||
loginjmForm.username = username
|
loginjmForm.username = username
|
||||||
|
// 调用 gongkey 函数获取公钥
|
||||||
window.sessionStorage.setItem('appheight', document.body.offsetHeight - 10)
|
window.sessionStorage.setItem('appheight', document.body.offsetHeight - 10)
|
||||||
await gongkey({ loginName: username }).then(async response => {
|
await gongkey({ loginName: username }).then(async response => {
|
||||||
window.publicKey = response.data
|
window.publicKey = response.data
|
||||||
|
// 将公钥存储到全局变量和 localStorage 中
|
||||||
window.localStorage.setItem('publicKey', response.data)
|
window.localStorage.setItem('publicKey', response.data)
|
||||||
|
|
||||||
var sm3Pwd = sm3Digest(password)
|
var sm3Pwd = sm3Digest(password)
|
||||||
|
// 使用 SM3 算法对密码进行摘要处理
|
||||||
var jiamipassword = ''
|
var jiamipassword = ''
|
||||||
|
// 使用 SM2 算法对密码进行加密
|
||||||
jiamipassword = sm2(sm3Pwd + '|' + password, publicKey, 0)
|
jiamipassword = sm2(sm3Pwd + '|' + password, publicKey, 0)
|
||||||
loginjmForm.password = jiamipassword
|
loginjmForm.password = jiamipassword
|
||||||
|
// 设置登录表单的加密密码
|
||||||
|
|
||||||
store
|
store
|
||||||
|
// 调用 Vuex 的 login 方法进行登录
|
||||||
.dispatch('user/login', loginjmForm)
|
.dispatch('user/login', loginjmForm)
|
||||||
.then(async response => {
|
.then(async response => {
|
||||||
if (response.code === 'A0101' && response.message === '登录认证,密码失效,请重置') {
|
if (response.code === 'A0101' && response.message === '登录认证,密码失效,请重置') {
|
||||||
|
// 如果登录响应需要重置密码
|
||||||
CodeSr().then(response => {
|
CodeSr().then(response => {
|
||||||
|
// 调用 CodeSr 函数获取验证码图片
|
||||||
let blob = new Blob([response], { type: 'image/jpg' })
|
let blob = new Blob([response], { type: 'image/jpg' })
|
||||||
let url = window.URL.createObjectURL(blob)
|
let url = window.URL.createObjectURL(blob)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
await store.dispatch('user/getInfo')
|
await store.dispatch('user/getInfo')
|
||||||
|
// 获取用户信息
|
||||||
// 根据角色生成可访问的路线图
|
// 根据角色生成可访问的路线图
|
||||||
const accessRoutes = await store.dispatch('permission/generateRoutes')
|
const accessRoutes = await store.dispatch('permission/generateRoutes')
|
||||||
// 动态添加可访问的路由
|
// 动态添加可访问的路由
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
router.addRoutes(accessRoutes)
|
router.addRoutes(accessRoutes)
|
||||||
if (response.code === 'A0000') {
|
if (response.code === 'A0000') {
|
||||||
|
// 如果登录成功
|
||||||
loginjmForm.verifyCode = 0
|
loginjmForm.verifyCode = 0
|
||||||
|
// 重置验证码
|
||||||
SysConfig()
|
SysConfig()
|
||||||
|
// 调用 SysConfig 函数进行系统配置
|
||||||
// cgyList.indexOf(to.path) !== -1
|
// cgyList.indexOf(to.path) !== -1
|
||||||
store.dispatch('user/getmenu').then(async response => {
|
store.dispatch('user/getmenu').then(async response => {
|
||||||
await getmuen(response.data[0])
|
await getmuen(response.data[0])
|
||||||
|
|||||||
@@ -615,21 +615,24 @@ export default {
|
|||||||
//台区台账表头
|
//台区台账表头
|
||||||
tableHeaderMonitoring: [
|
tableHeaderMonitoring: [
|
||||||
// { prop: 'id', label: '监测点编号', width: 120 },
|
// { prop: 'id', label: '监测点编号', width: 120 },
|
||||||
{ prop: 'monitorObjectName', label: '监测对象名称', width: 250 },
|
|
||||||
{ prop: 'name', label: '测点名称', width: 220 },
|
{ prop: 'name', label: '测点名称', width: 220 },
|
||||||
|
{ prop: 'monitorId', label: '测点编号', width: 220 },
|
||||||
{ prop: 'orgName', label: '组织机构名称', width: 170 },
|
{ prop: 'orgName', label: '组织机构名称', width: 170 },
|
||||||
{ prop: 'operationName', label: '运维单位名称', width: 170 },
|
{ prop: 'operationName', label: '运维单位名称', width: 170 },
|
||||||
|
{ prop: 'midStation', label: '变电站编号', width: 150 },
|
||||||
{ prop: 'powerrName', label: '变电站名称', width: 120 },
|
{ prop: 'powerrName', label: '变电站名称', width: 120 },
|
||||||
//{ prop: "generatrixName", label: "母线名称", width: 120 },
|
|
||||||
{ prop: 'busId', label: '母线编号', width: 180 },
|
{ prop: 'busId', label: '母线编号', width: 180 },
|
||||||
{ prop: 'lineName', label: '母线名称', width: 180 },
|
{ prop: 'lineName', label: '母线名称', width: 180 },
|
||||||
// { prop: "lineId", label: "监测线路ID", width: 180 },
|
{ prop: "lineNum", label: "装置接线序号", width: 180 },
|
||||||
{ prop: 'voltageLevel', label: '电压等级', width: 100 },
|
{ prop: 'voltageLevel', label: '电压等级', width: 100 },
|
||||||
{ prop: 'monitorState', label: '监测点状态', width: 120 },
|
{ prop: 'monitorState', label: '监测点状态', width: 120 },
|
||||||
|
{ prop: 'monitorObjectName', label: '监测对象名称', width: 250 },
|
||||||
{ prop: 'monitorType', label: '监测点类型', width: 120 },
|
{ prop: 'monitorType', label: '监测点类型', width: 120 },
|
||||||
{ prop: 'minShortCircuitCapacity', label: '最小短路容量', width: 120 },
|
{ prop: 'minShortCircuitCapacity', label: '最小短路容量', width: 120 },
|
||||||
{ prop: 'powerSupplyEqCapacity', label: '供电设备容量', width: 120 },
|
{ prop: 'powerSupplyEqCapacity', label: '供电设备容量', width: 120 },
|
||||||
{ prop: 'userAgreementCapacity', label: '用户协议容量', width: 120 },
|
{ prop: 'userAgreementCapacity', label: '用户协议容量', width: 120 },
|
||||||
|
{ prop: 'putDate', label: '投运日期', width: 120 },
|
||||||
{
|
{
|
||||||
prop: 'voltageDeviationUpperLimit',
|
prop: 'voltageDeviationUpperLimit',
|
||||||
label: '电压偏差限值(上)',
|
label: '电压偏差限值(上)',
|
||||||
@@ -1384,7 +1387,7 @@ export default {
|
|||||||
form.pageSize = this.total
|
form.pageSize = this.total
|
||||||
getAllMonitorPageList(form).then(res => {
|
getAllMonitorPageList(form).then(res => {
|
||||||
this.$refs.Monitoringpoint.exportData({
|
this.$refs.Monitoringpoint.exportData({
|
||||||
filename: '监测点台账', // 文件名字
|
filename: '监测点台账'+new Date().getTime(), // 文件名字
|
||||||
sheetName: 'Sheet1',
|
sheetName: 'Sheet1',
|
||||||
type: 'xlsx', //导出文件类型 xlsx 和 csv
|
type: 'xlsx', //导出文件类型 xlsx 和 csv
|
||||||
useStyle: true,
|
useStyle: true,
|
||||||
|
|||||||
@@ -22,35 +22,6 @@
|
|||||||
children: 'children'
|
children: 'children'
|
||||||
}"></el-cascader>
|
}"></el-cascader>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="监测点状态:">
|
|
||||||
<el-select v-model="ruleForm.monitorState" placeholder="请选择" clearable class="select">
|
|
||||||
<el-option clearable v-for="item in monitorStateList" :key="item.id" :label="item.name"
|
|
||||||
:value="item.id"></el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="上送网公司监测点:">
|
|
||||||
<el-select v-model="ruleForm.isUpToGrid" placeholder="请选择" clearable class="select">
|
|
||||||
<el-option label="是" value="1"></el-option>
|
|
||||||
<el-option label="否" value="0"></el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="上送标识:" v-if="flag == 1">
|
|
||||||
<el-select v-model="ruleForm.isUploadHead" placeholder="请选择" clearable style="width: 120px">
|
|
||||||
<el-option label="未上送" value="0"></el-option>
|
|
||||||
<el-option label="已上送" value="1"></el-option>
|
|
||||||
<el-option label="取消上送" value="2"></el-option>
|
|
||||||
<el-option label="待重新上送" value="3"></el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="上送标识:" v-if="flag == 0">
|
|
||||||
<el-select v-model="ruleForm.monitorUploadStatus" placeholder="请选择" clearable style="width: 120px">
|
|
||||||
<el-option label="未上送" value="0"></el-option>
|
|
||||||
<el-option label="已上送" value="1"></el-option>
|
|
||||||
<el-option label="取消上送" value="2"></el-option>
|
|
||||||
<el-option label="待重新上送" value="3"></el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<!-- <el-button type="primary" icon="el-icon-download" class="pms">PMS获取数据</el-button>
|
<!-- <el-button type="primary" icon="el-icon-download" class="pms">PMS获取数据</el-button>
|
||||||
<el-button type="primary" icon="el-icon-upload2" class="ml10" @click="upload">PMS数据上传</el-button> -->
|
<el-button type="primary" icon="el-icon-upload2" class="ml10" @click="upload">PMS数据上传</el-button> -->
|
||||||
@@ -59,26 +30,13 @@
|
|||||||
>重置</el-button
|
>重置</el-button
|
||||||
> -->
|
> -->
|
||||||
<el-button type="primary" icon="el-icon-download" @click="exportEvent">导出</el-button>
|
<el-button type="primary" icon="el-icon-download" @click="exportEvent">导出</el-button>
|
||||||
<el-button v-if="flag == 1" type="primary" icon="el-icon-upload2" @click="Submission">
|
|
||||||
网公司上送
|
|
||||||
</el-button>
|
|
||||||
<el-button v-if="flag == 0" type="primary" icon="el-icon-upload2" @click="LedgerSubmission">
|
|
||||||
网公司上送
|
|
||||||
</el-button>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<span>
|
|
||||||
<el-button type="primary" size="mini" class="ml10" icon="el-icon-plus" @click="addFn">新增</el-button>
|
|
||||||
<el-button type="primary" size="mini" class="ml10" icon="el-icon-edit" @click="modifyFn">
|
|
||||||
修改
|
|
||||||
</el-button>
|
|
||||||
<el-button type="primary" size="mini" class="ml10" icon="el-icon-delete" @click="deleteFn">
|
|
||||||
删除
|
|
||||||
</el-button>
|
|
||||||
</span>
|
|
||||||
<vxe-table stripe :data="UserData" :height="height" border :row-config="{ isCurrent: true, isHover: true }"
|
<vxe-table stripe :data="UserData" :height="height" border :row-config="{ isCurrent: true, isHover: true }"
|
||||||
size="mini" ref="Monitoringpoint" style="width: 100%" v-loading="isLoading"
|
size="mini" ref="Monitoringpoint" style="width: 100%" v-loading="isLoading"
|
||||||
header-cell-class-name="table_header" @checkbox-change="handleSelectionChange" class="mt10"
|
header-cell-class-name="table_header" @checkbox-change="handleSelectionChange" class="mt10"
|
||||||
@@ -88,48 +46,7 @@
|
|||||||
<vxe-table-column v-for="(item, index) in tableHeaderMonitoring" align="center" :field="item.prop"
|
<vxe-table-column v-for="(item, index) in tableHeaderMonitoring" align="center" :field="item.prop"
|
||||||
:title="item.label" :min-width="item.width" :key="index" :formatter="formFilter"
|
:title="item.label" :min-width="item.width" :key="index" :formatter="formFilter"
|
||||||
:show-overflow="true"></vxe-table-column>
|
:show-overflow="true"></vxe-table-column>
|
||||||
<vxe-table-column v-if="flag == 1" align="center" field="isUploadHead" fixed="right" title="上送标识"
|
|
||||||
min-width="150" :show-overflow="true">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<el-tag type="primary" size="small" style="color: #409eff; background: #ecf5ff"
|
|
||||||
v-if="scope.row.isUploadHead == 0">
|
|
||||||
未上送
|
|
||||||
</el-tag>
|
|
||||||
<el-tag type="primary" size="small" style="color: #67c23a; background: #f0f9eb"
|
|
||||||
v-if="scope.row.isUploadHead == 1">
|
|
||||||
已上送
|
|
||||||
</el-tag>
|
|
||||||
<el-tag type="primary" size="small" style="color: #909399; background: #f4f4f5"
|
|
||||||
v-if="scope.row.isUploadHead == 2">
|
|
||||||
取消上送
|
|
||||||
</el-tag>
|
|
||||||
<el-tag type="primary" size="small" style="color: orange; background: #f4f4f5"
|
|
||||||
v-if="scope.row.isUploadHead == 3">
|
|
||||||
待重新上送
|
|
||||||
</el-tag>
|
|
||||||
</template>
|
|
||||||
</vxe-table-column>
|
|
||||||
<vxe-table-column v-else align="center" field="monitorUploadStatus" fixed="right" title="上送标识"
|
|
||||||
min-width="150" :show-overflow="true">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<el-tag type="primary" size="small" style="color: #409eff; background: #ecf5ff"
|
|
||||||
v-if="scope.row.monitorUploadStatus == 0">
|
|
||||||
未上送
|
|
||||||
</el-tag>
|
|
||||||
<el-tag type="primary" size="small" style="color: #67c23a; background: #f0f9eb"
|
|
||||||
v-if="scope.row.monitorUploadStatus == 1">
|
|
||||||
已上送
|
|
||||||
</el-tag>
|
|
||||||
<el-tag type="primary" size="small" style="color: #909399; background: #f4f4f5"
|
|
||||||
v-if="scope.row.monitorUploadStatus == 2">
|
|
||||||
取消上送
|
|
||||||
</el-tag>
|
|
||||||
<el-tag type="primary" size="small" style="color: orange; background: #f4f4f5"
|
|
||||||
v-if="scope.row.monitorUploadStatus == 3">
|
|
||||||
待重新上送
|
|
||||||
</el-tag>
|
|
||||||
</template>
|
|
||||||
</vxe-table-column>
|
|
||||||
</vxe-table>
|
</vxe-table>
|
||||||
<el-pagination background align="right" @size-change="handleSizeChange"
|
<el-pagination background align="right" @size-change="handleSizeChange"
|
||||||
@current-change="handleCurrentChange" :current-page="ruleForm.pageNum"
|
@current-change="handleCurrentChange" :current-page="ruleForm.pageNum"
|
||||||
@@ -137,23 +54,17 @@
|
|||||||
layout="total, sizes, prev, pager, next, jumper" :total="total" class="mt10"></el-pagination>
|
layout="total, sizes, prev, pager, next, jumper" :total="total" class="mt10"></el-pagination>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<!-- <PMS_Data
|
|
||||||
:PMSobtain="PMSobtain"
|
|
||||||
:title="title"
|
|
||||||
@Close="Close"
|
|
||||||
:Data="UserData"
|
|
||||||
:Name="tableHeaderMonitoring"
|
|
||||||
></PMS_Data> -->
|
|
||||||
|
|
||||||
<!-- 新增/修改 -->
|
<!-- 新增/修改 -->
|
||||||
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="addinformation"
|
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="addinformation"
|
||||||
:before-close="handleClose" width="50%" height="80%">
|
:before-close="handleClose" width="50%" height="80%">
|
||||||
<el-form :inline="true" :model="form" ref="rulesform" label-width="170px" :rules="rules" class="form">
|
<el-form :inline="true" :model="form" ref="rulesform" label-width="170px" :rules="rules" class="form">
|
||||||
<el-form-item label="监测点编号:" class="mt10">
|
<el-form-item label="用户编号:" class="mt10">
|
||||||
<el-input v-model="form.id" placeholder="不填写默认生成自动编号" clearable :disabled="disabled"></el-input>
|
<el-input v-model="form.id" placeholder="不填写默认生成自动编号" clearable :disabled="disabled"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="监测点名称:" prop="name" class="mt10">
|
<el-form-item label="用户名称:" prop="name" class="mt10">
|
||||||
<el-input v-model="form.name" clearable placeholder="请输入监测点名称"></el-input>
|
<el-input v-model="form.name" clearable placeholder="请输入用户名称"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="orgName" class="mt10" label="组织机构名称:" :rules="{
|
<el-form-item prop="orgName" class="mt10" label="组织机构名称:" :rules="{
|
||||||
required: true,
|
required: true,
|
||||||
@@ -197,14 +108,14 @@
|
|||||||
:value="item.id"></el-option>
|
:value="item.id"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="监测点状态:" prop="monitorState" class="mt10">
|
<el-form-item label="用户状态:" prop="monitorState" class="mt10">
|
||||||
<el-select v-model="form.monitorState" clearable placeholder="请选择监测点状态">
|
<el-select v-model="form.monitorState" clearable placeholder="请选择用户状态">
|
||||||
<el-option v-for="item in monitorStateList" :key="item.id" :label="item.name"
|
<el-option v-for="item in monitorStateList" :key="item.id" :label="item.name"
|
||||||
:value="item.id"></el-option>
|
:value="item.id"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="监测点类型:" prop="monitorType" class="mt10">
|
<el-form-item label="用户类型:" prop="monitorType" class="mt10">
|
||||||
<el-select v-model="form.monitorType" clearable placeholder="请选择监测点类型">
|
<el-select v-model="form.monitorType" clearable placeholder="请选择用户类型">
|
||||||
<el-option v-for="item in monitorTypeList" :key="item.id" :label="item.name"
|
<el-option v-for="item in monitorTypeList" :key="item.id" :label="item.name"
|
||||||
:value="item.id"></el-option>
|
:value="item.id"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
@@ -345,8 +256,8 @@
|
|||||||
:value="item.id"></el-option>
|
:value="item.id"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="是否是上送网公司监测点:" prop="isUpToGrid" class="mt10">
|
<el-form-item label="是否是上送网公司用户:" prop="isUpToGrid" class="mt10">
|
||||||
<el-select v-model="form.isUpToGrid" clearable placeholder="请选择是否是上送网公司监测点">
|
<el-select v-model="form.isUpToGrid" clearable placeholder="请选择是否是上送网公司用户">
|
||||||
<el-option v-for="item in whether" :key="item.id" :label="item.label"
|
<el-option v-for="item in whether" :key="item.id" :label="item.label"
|
||||||
:value="item.id"></el-option>
|
:value="item.id"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
@@ -383,7 +294,7 @@ import {
|
|||||||
getTerminalSelectList,
|
getTerminalSelectList,
|
||||||
getPowerClientList,
|
getPowerClientList,
|
||||||
getPowerGenerationUserList,
|
getPowerGenerationUserList,
|
||||||
getAllMonitorPageList,
|
getAllMainUserPageList,
|
||||||
addMonitor,
|
addMonitor,
|
||||||
updateMonitor,
|
updateMonitor,
|
||||||
delMonitor,
|
delMonitor,
|
||||||
@@ -491,7 +402,7 @@ export default {
|
|||||||
trigger: 'blur'
|
trigger: 'blur'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
name: [{ required: true, message: '请输入监测点名称', trigger: 'blur' }],
|
name: [{ required: true, message: '请输入用户名称', trigger: 'blur' }],
|
||||||
fieldStation: [{ required: true, message: '请输入新能源场', trigger: 'blur' }],
|
fieldStation: [{ required: true, message: '请输入新能源场', trigger: 'blur' }],
|
||||||
// valueTitle: [
|
// valueTitle: [
|
||||||
// { required: true, message: "请输入组织机构名称", trigger:["blur",'change']},
|
// { required: true, message: "请输入组织机构名称", trigger:["blur",'change']},
|
||||||
@@ -518,8 +429,8 @@ export default {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
voltageLevel: [{ required: true, message: '请选择电压等级', trigger: 'change' }],
|
voltageLevel: [{ required: true, message: '请选择电压等级', trigger: 'change' }],
|
||||||
monitorState: [{ required: true, message: '请选择监测点状态', trigger: 'change' }],
|
monitorState: [{ required: true, message: '请选择用户状态', trigger: 'change' }],
|
||||||
monitorType: [{ required: true, message: '请选择监测点类型', trigger: 'change' }],
|
monitorType: [{ required: true, message: '请选择用户类型', trigger: 'change' }],
|
||||||
pt1: [
|
pt1: [
|
||||||
{ required: true, message: '请输入pt1', trigger: 'blur' },
|
{ required: true, message: '请输入pt1', trigger: 'blur' },
|
||||||
{ pattern: /^[0-9]*$/, message: '只可以输入数字', trigger: 'blur' }
|
{ pattern: /^[0-9]*$/, message: '只可以输入数字', trigger: 'blur' }
|
||||||
@@ -599,7 +510,7 @@ export default {
|
|||||||
isUpToGrid: [
|
isUpToGrid: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: '请选择是否是上送网公司监测点',
|
message: '请选择是否是上送网公司用户',
|
||||||
trigger: 'change'
|
trigger: 'change'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -614,39 +525,18 @@ export default {
|
|||||||
monitorTagList: [],
|
monitorTagList: [],
|
||||||
//台区台账表头
|
//台区台账表头
|
||||||
tableHeaderMonitoring: [
|
tableHeaderMonitoring: [
|
||||||
// { prop: 'id', label: '监测点编号', width: 120 },
|
// { prop: 'id', label: '用户编号', width: 120 },
|
||||||
{ prop: 'monitorObjectName', label: '监测对象名称', width: 250 },
|
{ prop: 'monitorObjectName', label: '监测对象名称', width: 250 },
|
||||||
|
|
||||||
{ prop: 'orgName', label: '组织机构名称', width: 170 },
|
{ prop: 'orgName', label: '组织机构名称', width: 170 },
|
||||||
{ prop: 'operationName', label: '运维单位名称', width: 170 },
|
{ prop: 'operationName', label: '运维单位名称', width: 170 },
|
||||||
{ prop: 'powerrName', label: '变电站名称', width: 120 },
|
{ prop: 'powerrName', label: '变电站名称', width: 120 },
|
||||||
//{ prop: "generatrixName", label: "母线名称", width: 120 },
|
//{ prop: "generatrixName", label: "母线名称", width: 120 },
|
||||||
{ prop: 'busId', label: '母线编号', width: 180 },
|
|
||||||
{ prop: 'lineName', label: '母线名称', width: 180 },
|
{ prop: 'lineName', label: '母线名称', width: 180 },
|
||||||
// { prop: "lineId", label: "监测线路ID", width: 180 }
|
|
||||||
{ prop: 'name', label: '测点名称', width: 220 },
|
|
||||||
{ prop: 'voltageLevel', label: '电压等级', width: 100 },
|
{ prop: 'voltageLevel', label: '电压等级', width: 100 },
|
||||||
{ prop: 'monitorState', label: '监测点状态', width: 120 },
|
|
||||||
{ prop: 'monitorType', label: '监测点类型', width: 120 },
|
|
||||||
{ prop: 'minShortCircuitCapacity', label: '最小短路容量', width: 120 },
|
|
||||||
{ prop: 'powerSupplyEqCapacity', label: '供电设备容量', width: 120 },
|
|
||||||
{ prop: 'userAgreementCapacity', label: '用户协议容量', width: 120 },
|
|
||||||
{
|
|
||||||
prop: 'voltageDeviationUpperLimit',
|
|
||||||
label: '电压偏差限值(上)',
|
|
||||||
width: 170
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'voltageDeviationLowerLimit',
|
|
||||||
label: '电压偏差限值(下)',
|
|
||||||
width: 170
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'potentialTransFormerType',
|
|
||||||
label: '电压互感器类型',
|
|
||||||
width: 170
|
|
||||||
},
|
|
||||||
{ prop: 'neutralGroundingMode', label: '中性点接地方式', width: 170 },
|
|
||||||
{
|
{
|
||||||
prop: 'isSpecialSupplyElectricity',
|
prop: 'isSpecialSupplyElectricity',
|
||||||
label: '是否用户专线',
|
label: '是否用户专线',
|
||||||
@@ -658,14 +548,9 @@ export default {
|
|||||||
// { prop: "monitorObjectId", label: "监测对象编号", width:170 },
|
// { prop: "monitorObjectId", label: "监测对象编号", width:170 },
|
||||||
|
|
||||||
{ prop: 'tradeCode', label: '行业分类', width: 170 },
|
{ prop: 'tradeCode', label: '行业分类', width: 170 },
|
||||||
{ prop: 'statisticalInterval', label: '统计间隔(min)', width: 140 },
|
|
||||||
{ prop: 'terminalCode', label: '关联的监测终端编号', width: 190 },
|
|
||||||
{ prop: 'devIp', label: '监测终端IP', width: 150 },
|
|
||||||
{ prop: 'terminalWiringMethod', label: '监测终端接线方式', width: 160 },
|
|
||||||
{ prop: 'fieldStation', label: '新能源场', width: 120 },
|
{ prop: 'fieldStation', label: '新能源场', width: 120 },
|
||||||
{ prop: 'tractionId', label: '关联牵引站编号', width: 190 },
|
|
||||||
{ prop: 'isUpToGrid', label: '是否是上送网公司', width: 160 }
|
|
||||||
// { prop: "status", label: "数据状态", width:100 },
|
|
||||||
],
|
],
|
||||||
whether: [
|
whether: [
|
||||||
{
|
{
|
||||||
@@ -739,10 +624,10 @@ export default {
|
|||||||
TerminalNo: [], //关联的监测终端编号
|
TerminalNo: [], //关联的监测终端编号
|
||||||
voltageLevelList: [], //电压等级
|
voltageLevelList: [], //电压等级
|
||||||
industryType: [], //行业分类
|
industryType: [], //行业分类
|
||||||
monitorStateList: [], //监测点状态
|
monitorStateList: [], //用户状态
|
||||||
monitorTypeList: [], //监测点标签
|
monitorTypeList: [], //用户标签
|
||||||
MonitoringPointType: [], //监测点类型
|
MonitoringPointType: [], //用户类型
|
||||||
MonitoringPointTypes: [], //监测点类型
|
MonitoringPointTypes: [], //用户类型
|
||||||
potentialTransFormerTypeList: [], //电压互感器类型
|
potentialTransFormerTypeList: [], //电压互感器类型
|
||||||
neutralGroundingModeList: [], //中性点接地方式
|
neutralGroundingModeList: [], //中性点接地方式
|
||||||
|
|
||||||
@@ -849,23 +734,23 @@ export default {
|
|||||||
getclassificationData() {
|
getclassificationData() {
|
||||||
//电压等级
|
//电压等级
|
||||||
this.voltageLevelList = dicData('Dev_Voltage', [])
|
this.voltageLevelList = dicData('Dev_Voltage', [])
|
||||||
//监测点状态
|
//用户状态
|
||||||
this.monitorStateList = dicData('Line_State', [])
|
this.monitorStateList = dicData('Line_State', [])
|
||||||
|
|
||||||
//监测点标签
|
//用户标签
|
||||||
this.monitorTypeList = dicData('Line_Type', [])
|
this.monitorTypeList = dicData('Line_Type', [])
|
||||||
//电压互感器类型
|
//电压互感器类型
|
||||||
this.potentialTransFormerTypeList = dicData('Voltage_Transformer', [])
|
this.potentialTransFormerTypeList = dicData('Voltage_Transformer', [])
|
||||||
//中性点接地方式
|
//中性点接地方式
|
||||||
this.neutralGroundingModeList = dicData('Neutral_Point', [])
|
this.neutralGroundingModeList = dicData('Neutral_Point', [])
|
||||||
//监测点标签
|
//用户标签
|
||||||
this.monitorTagList = dicData('Monitoring_Labels', [])
|
this.monitorTagList = dicData('Monitoring_Labels', [])
|
||||||
//监测终端接线方式
|
//监测终端接线方式
|
||||||
this.terminalWiringMethodList = dicData('Dev_Connect', [])
|
this.terminalWiringMethodList = dicData('Dev_Connect', [])
|
||||||
//行业分类
|
//行业分类
|
||||||
this.industryType = dicData('industry_type', [])
|
this.industryType = dicData('industry_type', [])
|
||||||
|
|
||||||
// 监测点类型
|
// 用户类型
|
||||||
queryTree({}).then(res => {
|
queryTree({}).then(res => {
|
||||||
if (res && res.code == `A0000`) {
|
if (res && res.code == `A0000`) {
|
||||||
this.MonitoringPointType = this.getTreeData(res.data)
|
this.MonitoringPointType = this.getTreeData(res.data)
|
||||||
@@ -926,7 +811,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.ruleForm.objType = ''
|
this.ruleForm.objType = ''
|
||||||
}
|
}
|
||||||
getAllMonitorPageList(this.ruleForm).then(res => {
|
getAllMainUserPageList(this.ruleForm).then(res => {
|
||||||
this.isLoading = false
|
this.isLoading = false
|
||||||
this.UserData = res.data.records
|
this.UserData = res.data.records
|
||||||
this.total = res.data.total
|
this.total = res.data.total
|
||||||
@@ -1160,7 +1045,7 @@ export default {
|
|||||||
this.disabled = false
|
this.disabled = false
|
||||||
this.modify = false
|
this.modify = false
|
||||||
this.add = true
|
this.add = true
|
||||||
this.title = '新增主网监测点台帐'
|
this.title = '新增主网用户台帐'
|
||||||
this.addinformation = true
|
this.addinformation = true
|
||||||
// this.getData();
|
// this.getData();
|
||||||
},
|
},
|
||||||
@@ -1212,7 +1097,7 @@ export default {
|
|||||||
},
|
},
|
||||||
handleClose() {
|
handleClose() {
|
||||||
this.addinformation = false
|
this.addinformation = false
|
||||||
if (this.title == '新增主网监测点台帐') {
|
if (this.title == '新增主网用户台帐') {
|
||||||
this.$refs.Operation.form.valueTitle = ''
|
this.$refs.Operation.form.valueTitle = ''
|
||||||
this.$refs.Organization.form.valueTitle = ''
|
this.$refs.Organization.form.valueTitle = ''
|
||||||
}
|
}
|
||||||
@@ -1224,7 +1109,7 @@ export default {
|
|||||||
this.modify = true
|
this.modify = true
|
||||||
this.add = false
|
this.add = false
|
||||||
|
|
||||||
this.title = '修改主网监测点台帐'
|
this.title = '修改主网用户台帐'
|
||||||
if (this.$refs.Monitoringpoint.getCheckboxRecords().length != 1) {
|
if (this.$refs.Monitoringpoint.getCheckboxRecords().length != 1) {
|
||||||
this.$message({
|
this.$message({
|
||||||
showClose: true,
|
showClose: true,
|
||||||
@@ -1383,9 +1268,9 @@ export default {
|
|||||||
let form = JSON.parse(JSON.stringify(this.ruleForm))
|
let form = JSON.parse(JSON.stringify(this.ruleForm))
|
||||||
form.pageNum = 1
|
form.pageNum = 1
|
||||||
form.pageSize = this.total
|
form.pageSize = this.total
|
||||||
getAllMonitorPageList(form).then(res => {
|
getAllMainUserPageList(form).then(res => {
|
||||||
this.$refs.Monitoringpoint.exportData({
|
this.$refs.Monitoringpoint.exportData({
|
||||||
filename: '监测点台账', // 文件名字
|
filename: '用户台账', // 文件名字
|
||||||
sheetName: 'Sheet1',
|
sheetName: 'Sheet1',
|
||||||
type: 'xlsx', //导出文件类型 xlsx 和 csv
|
type: 'xlsx', //导出文件类型 xlsx 和 csv
|
||||||
useStyle: true,
|
useStyle: true,
|
||||||
@@ -1416,7 +1301,7 @@ export default {
|
|||||||
let flagState = true
|
let flagState = true
|
||||||
if (this.$refs.Monitoringpoint.getCheckboxRecords().length == 0) {
|
if (this.$refs.Monitoringpoint.getCheckboxRecords().length == 0) {
|
||||||
return this.$message({
|
return this.$message({
|
||||||
message: '请选择监测点!',
|
message: '请选择用户!',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -1474,18 +1359,18 @@ export default {
|
|||||||
})
|
})
|
||||||
} else if (flag == false) {
|
} else if (flag == false) {
|
||||||
return this.$message({
|
return this.$message({
|
||||||
message: '所选监测点与监测对象不符合,请重新选择!',
|
message: '所选用户与监测对象不符合,请重新选择!',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
})
|
})
|
||||||
} else if (isUpToGrid == false) {
|
} else if (isUpToGrid == false) {
|
||||||
return this.$message({
|
return this.$message({
|
||||||
message: '所选监测点存在非上送网公司监测点!',
|
message: '所选用户存在非上送网公司用户!',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
})
|
})
|
||||||
} else if (flagState == false) {
|
} else if (flagState == false) {
|
||||||
return this.$message({
|
return this.$message({
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
message: '请选择运行状态的监测点进行上送!'
|
message: '请选择运行状态的用户进行上送!'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// this.objTypeVisible = true
|
// this.objTypeVisible = true
|
||||||
@@ -1511,7 +1396,7 @@ export default {
|
|||||||
|
|
||||||
if (isUpToGrid && flagState) {
|
if (isUpToGrid && flagState) {
|
||||||
if (this.$refs.Monitoringpoint.getCheckboxRecords().length == 0) {
|
if (this.$refs.Monitoringpoint.getCheckboxRecords().length == 0) {
|
||||||
this.$confirm('是否上送全部监测点?', '提示', {
|
this.$confirm('是否上送全部用户?', '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@@ -1553,13 +1438,13 @@ export default {
|
|||||||
}
|
}
|
||||||
} else if (isUpToGrid == false) {
|
} else if (isUpToGrid == false) {
|
||||||
return this.$message({
|
return this.$message({
|
||||||
message: '所选监测点存在非上送网公司监测点!',
|
message: '所选用户存在非上送网公司用户!',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
})
|
})
|
||||||
} else if (flagState == false) {
|
} else if (flagState == false) {
|
||||||
return this.$message({
|
return this.$message({
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
message: '请选择运行状态的监测点进行上送!'
|
message: '请选择运行状态的用户进行上送!'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -23,24 +23,18 @@
|
|||||||
v-loading="isLoading"
|
v-loading="isLoading"
|
||||||
header-cell-class-name="table_header"
|
header-cell-class-name="table_header"
|
||||||
>
|
>
|
||||||
<vxe-table-column
|
|
||||||
field="prop0"
|
|
||||||
title=""
|
|
||||||
align="center"
|
|
||||||
min-width="250"
|
|
||||||
show-overflow="true"
|
|
||||||
></vxe-table-column>
|
|
||||||
|
|
||||||
<vxe-table-colgroup align="center" v-for="(item, index) in tableHeaderPower" :title="item.label">
|
|
||||||
|
|
||||||
<vxe-table-column
|
<vxe-table-column
|
||||||
v-for="(val, index) in item.children"
|
v-for="(val, index) in tableHeaderPower"
|
||||||
align="center"
|
align="center"
|
||||||
:field="val.prop"
|
:field="val.prop"
|
||||||
:title="val.label"
|
:title="val.label"
|
||||||
:min-width="val.width"
|
:min-width="val.width"
|
||||||
:show-overflow="true"
|
:show-overflow="true"
|
||||||
></vxe-table-column>
|
></vxe-table-column>
|
||||||
</vxe-table-colgroup>
|
|
||||||
</vxe-table>
|
</vxe-table>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
@@ -48,7 +42,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
// import bus from "@/assets/js/eventBus";
|
// import bus from "@/assets/js/eventBus";
|
||||||
import { objType } from '@/api/hbaccountoperation/setInformation'
|
import { objType, objTypeStatis } from '@/api/hbaccountoperation/setInformation'
|
||||||
import Area from '@/views/components/Area/Area.vue'
|
import Area from '@/views/components/Area/Area.vue'
|
||||||
import { dicData } from '@/assets/commjs/dictypeData'
|
import { dicData } from '@/assets/commjs/dictypeData'
|
||||||
|
|
||||||
@@ -95,20 +89,9 @@ export default {
|
|||||||
//查询母线信息
|
//查询母线信息
|
||||||
Power() {
|
Power() {
|
||||||
this.isLoading = true
|
this.isLoading = true
|
||||||
|
this.tableHeaderPower = []
|
||||||
this.busData = []
|
this.busData = []
|
||||||
objType(this.ruleForm).then(res => {
|
objTypeStatis(this.ruleForm).then(res => {
|
||||||
this.tableHeaderPower = [
|
|
||||||
{
|
|
||||||
label: '用户分类',
|
|
||||||
children: []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '典型用户分类',
|
|
||||||
children: []
|
|
||||||
}
|
|
||||||
]
|
|
||||||
|
|
||||||
let data = res.data
|
let data = res.data
|
||||||
let result = data[0].reduce(
|
let result = data[0].reduce(
|
||||||
(acc, item) => {
|
(acc, item) => {
|
||||||
@@ -121,23 +104,17 @@ export default {
|
|||||||
},
|
},
|
||||||
[[]]
|
[[]]
|
||||||
)
|
)
|
||||||
result[0].shift()
|
|
||||||
result[0].push('合计')
|
|
||||||
Array.from(result[0]).forEach((char, i) => {
|
Array.from(result[0]).forEach((char, i) => {
|
||||||
this.tableHeaderPower[0].children.push({
|
this.tableHeaderPower.push({
|
||||||
prop: `prop${i + 1}`,
|
prop: `prop${i}`,
|
||||||
label: char,
|
|
||||||
width: char.length > 9 ? 250 : 130
|
|
||||||
})
|
|
||||||
})
|
|
||||||
result[1].push('合计')
|
|
||||||
Array.from(result[1]).forEach((char, i) => {
|
|
||||||
this.tableHeaderPower[1].children.push({
|
|
||||||
prop: `prop${result[0].length + i + 1}`,
|
|
||||||
label: char,
|
label: char,
|
||||||
width: char.length > 9 ? 250 : 130
|
width: char.length > 9 ? 250 : 130
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
this.tableHeaderPower[0].width = 350
|
||||||
|
console.log(this.tableHeaderPower)
|
||||||
|
|
||||||
data.shift()
|
data.shift()
|
||||||
data.forEach((item, ind) => {
|
data.forEach((item, ind) => {
|
||||||
@@ -147,6 +124,9 @@ export default {
|
|||||||
this.busData[ind][`prop${i}`] = char
|
this.busData[ind][`prop${i}`] = char
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
console.log(this.busData)
|
||||||
|
|
||||||
|
|
||||||
this.isLoading = false
|
this.isLoading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ export default {
|
|||||||
{ prop: 'effectiveAccessRate', label: '有效接入率(%)' },
|
{ prop: 'effectiveAccessRate', label: '有效接入率(%)' },
|
||||||
{ prop: 'dataIntegrityRate', label: '数据完整率(%)' },
|
{ prop: 'dataIntegrityRate', label: '数据完整率(%)' },
|
||||||
{ prop: 'indexIntegrityRate', label: '指标完整率(%)' },
|
{ prop: 'indexIntegrityRate', label: '指标完整率(%)' },
|
||||||
{ prop: 'isUnusual', label: '数据是否异常' }
|
{ prop: 'isUnusual', label: '异常监测点数' }
|
||||||
],
|
],
|
||||||
qualitystatisticsData: [],
|
qualitystatisticsData: [],
|
||||||
device: '',
|
device: '',
|
||||||
@@ -154,13 +154,13 @@ export default {
|
|||||||
//判断数据是否异常
|
//判断数据是否异常
|
||||||
cellStyle(row) {
|
cellStyle(row) {
|
||||||
console.log(row)
|
console.log(row)
|
||||||
if (row.columnIndex == 6) {
|
// if (row.columnIndex == 6) {
|
||||||
if (row.row.isUnusual == 0) {
|
// if (row.row.isUnusual == 0) {
|
||||||
row.row.isUnusual = '正常 '
|
// row.row.isUnusual = '正常 '
|
||||||
} else if (row.row.isUnusual == 1) {
|
// } else if (row.row.isUnusual == 1) {
|
||||||
row.row.isUnusual = '异常'
|
// row.row.isUnusual = '异常'
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
//导出
|
//导出
|
||||||
exportEvent() {
|
exportEvent() {
|
||||||
|
|||||||
@@ -2024,12 +2024,22 @@ export default {
|
|||||||
this.$refs.ruleform.validate(value => {
|
this.$refs.ruleform.validate(value => {
|
||||||
// console.log(value);
|
// console.log(value);
|
||||||
if (value == true) {
|
if (value == true) {
|
||||||
|
if(this.ruleform.ifReleaseWarning == 1){
|
||||||
|
//需要提示预告警单不能为空
|
||||||
|
if(this.ruleform.workAlarmId == null || this.ruleform.workAlarmId == ''){
|
||||||
|
this.$message.warning("关联告预警单不可为空!");
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.$confirm('是否确认新增?', '提示', {
|
this.$confirm('是否确认新增?', '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
|
||||||
|
|
||||||
addProblem(this.ruleform).then(res => {
|
addProblem(this.ruleform).then(res => {
|
||||||
if (res.code == 'A0000') {
|
if (res.code == 'A0000') {
|
||||||
this.$message({
|
this.$message({
|
||||||
@@ -2194,6 +2204,14 @@ export default {
|
|||||||
this.$refs.ruleform.validate(value => {
|
this.$refs.ruleform.validate(value => {
|
||||||
// console.log(value);
|
// console.log(value);
|
||||||
if (value == true) {
|
if (value == true) {
|
||||||
|
if(this.ruleform.ifReleaseWarning == 1){
|
||||||
|
//需要提示预告警单不能为空
|
||||||
|
if(this.ruleform.workAlarmId == null || this.ruleform.workAlarmId == ''){
|
||||||
|
this.$message.warning("关联告预警单不可为空!");
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.$confirm('是否确认修改?', '提示', {
|
this.$confirm('是否确认修改?', '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<div class="button" style="float: left">
|
<div class="button" style="float: left">
|
||||||
<el-button type="primary" icon="el-icon-circle-plus" @click="planAdditionFn">新增计划</el-button>
|
<el-button type="primary" icon="el-icon-circle-plus" @click="planAdditionFn">新增计划</el-button>
|
||||||
<el-button type="primary" icon="el-icon-s-claim" @click="planReviewFn">提交审核</el-button>
|
<!-- <el-button type="primary" icon="el-icon-s-claim" @click="planReviewFn">提交审核</el-button>-->
|
||||||
</div>
|
</div>
|
||||||
<div class="button">
|
<div class="button">
|
||||||
|
|
||||||
@@ -667,7 +667,7 @@ export default {
|
|||||||
|
|
||||||
//获取审核人列表
|
//获取审核人列表
|
||||||
getAuditUser() {
|
getAuditUser() {
|
||||||
let param = {roleType: 3}
|
let param = {roleType: 1}
|
||||||
getAuditUser(param).then(res => {
|
getAuditUser(param).then(res => {
|
||||||
if (res && res.code === 'A0000') {
|
if (res && res.code === 'A0000') {
|
||||||
this.auditUserList = res.data
|
this.auditUserList = res.data
|
||||||
|
|||||||
@@ -1195,7 +1195,7 @@ export default {
|
|||||||
|
|
||||||
//获取审核人列表
|
//获取审核人列表
|
||||||
getAuditUser() {
|
getAuditUser() {
|
||||||
let param = {roleType: 3}
|
let param = {roleType: 1}
|
||||||
getAuditUser(param).then(res => {
|
getAuditUser(param).then(res => {
|
||||||
if (res && res.code === 'A0000') {
|
if (res && res.code === 'A0000') {
|
||||||
this.auditUserList = res.data
|
this.auditUserList = res.data
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
<el-tab-pane label="普测计划管理" name="1" :style="'height:' + vh + 'px;'">
|
<el-tab-pane label="普测计划管理" name="1" :style="'height:' + vh + 'px;'">
|
||||||
<Planmanagement v-if="activeName == '1'"></Planmanagement>
|
<Planmanagement v-if="activeName == '1'"></Planmanagement>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="普测计划审批" name="2" :style="'height:' + vh + 'px;'">
|
<!-- <el-tab-pane label="普测计划审批" name="2" :style="'height:' + vh + 'px;'">
|
||||||
<Planapproval v-if="activeName == '2'" ref="planapprovalRef" :son="planId"></Planapproval>
|
<Planapproval v-if="activeName == '2'" ref="planapprovalRef" :son="planId"></Planapproval>
|
||||||
</el-tab-pane>
|
</el-tab-pane>-->
|
||||||
<!-- <el-tab-pane label="普测结果管理" name="3" :style="'height:' + vh + 'px;'">
|
<!-- <el-tab-pane label="普测结果管理" name="3" :style="'height:' + vh + 'px;'">
|
||||||
<Resultsmanagement v-if="activeName == '3'"></Resultsmanagement>
|
<Resultsmanagement v-if="activeName == '3'"></Resultsmanagement>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
|||||||
@@ -35,13 +35,13 @@
|
|||||||
<influence v-if="activeName == '4'"></influence>
|
<influence v-if="activeName == '4'"></influence>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
|
||||||
<!-- <el-tab-pane
|
<el-tab-pane
|
||||||
label="详细数据表"
|
label="详细数据表"
|
||||||
name="5"
|
name="5"
|
||||||
:style="'height:' + vh + ';'"
|
:style="'height:' + vh + ';'"
|
||||||
>
|
>
|
||||||
<dataSheet v-if="activeName == '5'"></dataSheet>
|
<dataSheet v-if="activeName == '5'"></dataSheet>
|
||||||
</el-tab-pane> -->
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|||||||
@@ -43,14 +43,8 @@
|
|||||||
></el-option>
|
></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="CVT型号:" v-show="condition.includes('40')">
|
<!-- <el-form-item label="CVT型号:" v-show="condition.includes('40')">
|
||||||
<!-- <el-cascader
|
|
||||||
v-model="cvt"
|
|
||||||
:options="cvtList"
|
|
||||||
:props="{ expandTrigger: 'hover' }"
|
|
||||||
clearable
|
|
||||||
filterable
|
|
||||||
></el-cascader> -->
|
|
||||||
<el-select v-model="cvt" value-key="value" clearable filterable placeholder="请选择CVT型号">
|
<el-select v-model="cvt" value-key="value" clearable filterable placeholder="请选择CVT型号">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in cvtList"
|
v-for="item in cvtList"
|
||||||
@@ -59,7 +53,7 @@
|
|||||||
:value="item"
|
:value="item"
|
||||||
></el-option>
|
></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item> -->
|
||||||
<el-form-item v-show="jxb" label="间谐波次数:">
|
<el-form-item v-show="jxb" label="间谐波次数:">
|
||||||
<el-select v-model="formData.inHarmonic" placeholder="请选择间谐波">
|
<el-select v-model="formData.inHarmonic" placeholder="请选择间谐波">
|
||||||
<el-option
|
<el-option
|
||||||
|
|||||||
@@ -12,15 +12,17 @@
|
|||||||
执行日期:
|
执行日期:
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="time"
|
v-model="time"
|
||||||
type="daterange"
|
type="datetimerange"
|
||||||
range-separator="至"
|
range-separator="至"
|
||||||
start-placeholder="开始日期"
|
start-placeholder="开始日期"
|
||||||
end-placeholder="结束日期"
|
end-placeholder="结束日期"
|
||||||
value-format="yyyy-MM-dd"
|
value-format="yyyy-MM-dd HH:mm:ss"
|
||||||
format="yyyy-MM-dd"
|
format="yyyy-MM-dd HH:mm:ss"
|
||||||
|
:picker-options="pickerOptions"
|
||||||
|
:clearable="false"
|
||||||
></el-date-picker>
|
></el-date-picker>
|
||||||
</div>
|
</div>
|
||||||
<el-button type="primary" @click="handleClose">执 行</el-button>
|
<el-button type="primary" @click="execute">执 行</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-input placeholder="输入关键字检索" v-model="filterText" style="margin-bottom: 10px" clearable>
|
<el-input placeholder="输入关键字检索" v-model="filterText" style="margin-bottom: 10px" clearable>
|
||||||
<i slot="prefix" class="el-input__icon el-icon-search"></i>
|
<i slot="prefix" class="el-input__icon el-icon-search"></i>
|
||||||
@@ -56,12 +58,14 @@
|
|||||||
<script>
|
<script>
|
||||||
import api from '@/api/harmonic/onlineData'
|
import api from '@/api/harmonic/onlineData'
|
||||||
import { dicData } from '@/assets/commjs/dictypeData'
|
import { dicData } from '@/assets/commjs/dictypeData'
|
||||||
|
import { measurementPointExecutorByHour } from '@/api/CVT/index.js'
|
||||||
export default {
|
export default {
|
||||||
components: {},
|
components: {},
|
||||||
props: {},
|
props: {},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
time: [new Date(), new Date()],
|
time: [],
|
||||||
|
// value1: [new Date(2000, 10, 10, 10, 10), new Date(2000, 10, 11, 10, 10)],
|
||||||
dialogVisible: false,
|
dialogVisible: false,
|
||||||
checkedarr: [],
|
checkedarr: [],
|
||||||
fiveData: [],
|
fiveData: [],
|
||||||
@@ -79,7 +83,14 @@ export default {
|
|||||||
scale: null
|
scale: null
|
||||||
},
|
},
|
||||||
filterText: '',
|
filterText: '',
|
||||||
fiveData: []
|
fiveData: [],
|
||||||
|
fatherID: [],
|
||||||
|
pickerOptions: {
|
||||||
|
disabledDate(time) {
|
||||||
|
return time.getTime() > Date.now() - 8.64e6
|
||||||
|
// 或者return time.getTime() > Date.now();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -100,8 +111,23 @@ export default {
|
|||||||
this.chuli()
|
this.chuli()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
// 获取年份
|
||||||
|
const year = new Date().getFullYear()
|
||||||
|
// 获取月份(注意:getMonth 返回值是 0 - 11,所以要加 1),并确保是两位数
|
||||||
|
const month = String(new Date().getMonth() + 1).padStart(2, '0')
|
||||||
|
// 获取日期,并确保是两位数
|
||||||
|
const day = String(new Date().getDate()).padStart(2, '0')
|
||||||
|
// 获取小时,并确保是两位数
|
||||||
|
const hours = String(new Date().getHours()).padStart(2, '0')
|
||||||
|
// 获取分钟,并确保是两位数
|
||||||
|
const minutes = String(new Date().getMinutes()).padStart(2, '0')
|
||||||
|
// 获取秒数,并确保是两位数
|
||||||
|
const seconds = String(new Date().getSeconds()).padStart(2, '0')
|
||||||
|
|
||||||
|
this.time = [`${year}-${month}-${day} 00:00:00`, `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`]
|
||||||
},
|
},
|
||||||
chuli() {
|
chuli() {
|
||||||
|
this.fatherID = []
|
||||||
var data = this.fiveData
|
var data = this.fiveData
|
||||||
var arr = []
|
var arr = []
|
||||||
data.forEach(item => {
|
data.forEach(item => {
|
||||||
@@ -128,8 +154,10 @@ export default {
|
|||||||
if (arr[0].children[0].children[0].children.length > 0) {
|
if (arr[0].children[0].children[0].children.length > 0) {
|
||||||
arr.forEach(m => {
|
arr.forEach(m => {
|
||||||
m.icon = 'el-icon-menu'
|
m.icon = 'el-icon-menu'
|
||||||
|
this.fatherID.push(m.id)
|
||||||
m.children.forEach(n => {
|
m.children.forEach(n => {
|
||||||
n.icon = 'el-icon-share'
|
n.icon = 'el-icon-share'
|
||||||
|
this.fatherID.push(n.id)
|
||||||
n.children.forEach(d => {
|
n.children.forEach(d => {
|
||||||
d.icon = 'el-icon-s-flag'
|
d.icon = 'el-icon-s-flag'
|
||||||
d.children.forEach((f, i) => {
|
d.children.forEach((f, i) => {
|
||||||
@@ -148,8 +176,10 @@ export default {
|
|||||||
} else if (arr[0].children[0].children[0].children.length == 0) {
|
} else if (arr[0].children[0].children[0].children.length == 0) {
|
||||||
arr.forEach(m => {
|
arr.forEach(m => {
|
||||||
m.icon = 'el-icon-menu'
|
m.icon = 'el-icon-menu'
|
||||||
|
this.fatherID.push(m.id)
|
||||||
m.children.forEach(n => {
|
m.children.forEach(n => {
|
||||||
n.icon = 'el-icon-share'
|
n.icon = 'el-icon-share'
|
||||||
|
this.fatherID.push(n.id)
|
||||||
n.children.forEach((d, i) => {
|
n.children.forEach((d, i) => {
|
||||||
d.icon = 'el-icon-warning'
|
d.icon = 'el-icon-warning'
|
||||||
d.name = i + 1 + '_' + d.name
|
d.name = i + 1 + '_' + d.name
|
||||||
@@ -169,9 +199,7 @@ export default {
|
|||||||
|
|
||||||
window.sessionStorage.setItem('tree', this.tree)
|
window.sessionStorage.setItem('tree', this.tree)
|
||||||
this.expandID.push(this.currentNode)
|
this.expandID.push(this.currentNode)
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs.menuTree.setCurrentKey(this.currentNode)
|
|
||||||
})
|
|
||||||
//初始化触发默认点击方法
|
//初始化触发默认点击方法
|
||||||
//alert('初始1')
|
//alert('初始1')
|
||||||
this.$emit('chushiData', this.currentNode, this.treeMenuData)
|
this.$emit('chushiData', this.currentNode, this.treeMenuData)
|
||||||
@@ -179,6 +207,7 @@ export default {
|
|||||||
|
|
||||||
renderContent(h, { node, data, store }) {
|
renderContent(h, { node, data, store }) {
|
||||||
this.onlinename = node.label
|
this.onlinename = node.label
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<span style="flex: 1; display: flex; align-items: center; justify-content: space-between; padding-right: 8px;">
|
<span style="flex: 1; display: flex; align-items: center; justify-content: space-between; padding-right: 8px;">
|
||||||
<span class="span-ellipsis">
|
<span class="span-ellipsis">
|
||||||
@@ -191,11 +220,28 @@ export default {
|
|||||||
</span>
|
</span>
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
// 执行算法
|
||||||
|
async execute() {
|
||||||
|
if (this.$refs.menuTree.getCheckedKeys().length == 0) return this.$message.error('请选择监测点!')
|
||||||
|
|
||||||
|
let data = {
|
||||||
|
beginTime: this.time[0],
|
||||||
|
dataDate: '',
|
||||||
|
endTime: this.time[1],
|
||||||
|
fullChain: false,
|
||||||
|
idList: this.$refs.menuTree.getCheckedKeys().filter(item => !this.fatherID.includes(item)),
|
||||||
|
repair: true,
|
||||||
|
tagNames: ['dataHarmRateVCvt']
|
||||||
|
}
|
||||||
|
await measurementPointExecutorByHour(data)
|
||||||
|
this.$message.success('算法执行成功!')
|
||||||
|
this.handleClose()
|
||||||
|
},
|
||||||
|
|
||||||
// 关闭弹窗
|
// 关闭弹窗
|
||||||
handleClose() {
|
handleClose() {
|
||||||
console.log(this.time)
|
|
||||||
|
|
||||||
this.dialogVisible = false
|
this.dialogVisible = false
|
||||||
|
this.$emit('close')
|
||||||
},
|
},
|
||||||
// 过滤树节点
|
// 过滤树节点
|
||||||
filterNode(value, data, node) {
|
filterNode(value, data, node) {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<timeindex :id="1" ref="fff" :interval="3"></timeindex>
|
<timeindex :id="1" ref="fff" :interval="3"></timeindex>
|
||||||
</el-form-item> -->
|
</el-form-item> -->
|
||||||
<el-form-item label="筛选:" class="ml10">
|
<el-form-item label="筛选:" class="ml10">
|
||||||
<el-input v-model="form.searchValue" placeholder="输入关键字搜索" style="width: 100%" clearable />
|
<el-input v-model.trim="form.searchValue" placeholder="输入关键字搜索" style="width: 100%" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item class="ml10">
|
<el-form-item class="ml10">
|
||||||
@@ -218,10 +218,19 @@ export default {
|
|||||||
id: ''
|
id: ''
|
||||||
})
|
})
|
||||||
let data = this.tables.filter(item => item.id == this.radioId)
|
let data = this.tables.filter(item => item.id == this.radioId)
|
||||||
|
this.tables = this.tables.filter(item => {
|
||||||
|
// 将 a 和 b 属性的值转换为字符串,然后检查是否包含目标值转换后的字符串
|
||||||
|
return (
|
||||||
|
String(item.cvtName).includes(String(this.form.searchValue)) ||
|
||||||
|
String(item.cvtModel).includes(String(this.form.searchValue))
|
||||||
|
)
|
||||||
|
})
|
||||||
data.length > 0
|
data.length > 0
|
||||||
? this.$refs.tableRef.setRadioRow(data[0])
|
? this.$refs.tableRef.setRadioRow(data[0])
|
||||||
: this.$refs.tableRef.setRadioRow(this.tables[0])
|
: this.$refs.tableRef.setRadioRow(this.tables[0])
|
||||||
this.isLoading = false
|
this.isLoading = false
|
||||||
|
}).catch(() => {
|
||||||
|
this.isLoading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<timeindex :id="1" ref="fff" :interval="3"></timeindex>
|
<timeindex :id="1" ref="fff" :interval="3"></timeindex>
|
||||||
</el-form-item> -->
|
</el-form-item> -->
|
||||||
<el-form-item label="筛选:" class="ml10">
|
<el-form-item label="筛选:" class="ml10">
|
||||||
<el-input v-model="form.searchValue" clearable placeholder="输入关键字搜索" style="width: 100%" />
|
<el-input v-model.trim="form.searchValue" clearable placeholder="输入关键字搜索" style="width: 100%" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item class="ml10">
|
<el-form-item class="ml10">
|
||||||
@@ -23,7 +23,6 @@
|
|||||||
:row-config="{ isCurrent: true, isHover: true }"
|
:row-config="{ isCurrent: true, isHover: true }"
|
||||||
size="mini"
|
size="mini"
|
||||||
ref="classification"
|
ref="classification"
|
||||||
|
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
header-cell-class-name="table_header"
|
header-cell-class-name="table_header"
|
||||||
>
|
>
|
||||||
@@ -58,12 +57,12 @@
|
|||||||
</vxe-table-column>
|
</vxe-table-column>
|
||||||
</vxe-table>
|
</vxe-table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 新增、修改 -->
|
<!-- 新增、修改 -->
|
||||||
<forms ref="formRef" @querfromdata="querfromdata" @showForm="showForm = false" v-if="showForm" />
|
<forms ref="formRef" @querfromdata="querfromdata" @showForm="showForm = false" v-if="showForm" />
|
||||||
|
|
||||||
<!-- 执行算法 -->
|
<!-- 执行算法 -->
|
||||||
<algorithm ref="algorithmRef" />
|
<algorithm ref="algorithmRef" v-if="showAlgorithm" @close="showAlgorithm = false" />
|
||||||
<!-- <el-pagination
|
<!-- <el-pagination
|
||||||
background
|
background
|
||||||
align="right"
|
align="right"
|
||||||
@@ -89,6 +88,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
loading: false,
|
loading: false,
|
||||||
|
showAlgorithm: false,
|
||||||
form: {
|
form: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10000,
|
pageSize: 10000,
|
||||||
@@ -183,7 +183,10 @@ export default {
|
|||||||
},
|
},
|
||||||
// 执行算法
|
// 执行算法
|
||||||
handleAlgorithm() {
|
handleAlgorithm() {
|
||||||
this.$refs.algorithmRef.open()
|
this.showAlgorithm = true
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$refs.algorithmRef.open()
|
||||||
|
}, 100)
|
||||||
},
|
},
|
||||||
// 绑定监测点
|
// 绑定监测点
|
||||||
handleBind(index, row) {
|
handleBind(index, row) {
|
||||||
|
|||||||
@@ -9,13 +9,13 @@
|
|||||||
>
|
>
|
||||||
<el-form ref="form" :inline="true" :model="form" label-width="auto" :rules="rules" class="form">
|
<el-form ref="form" :inline="true" :model="form" label-width="auto" :rules="rules" class="form">
|
||||||
<el-form-item label="CVT名称:" prop="cvtName" style="width: 49%">
|
<el-form-item label="CVT名称:" prop="cvtName" style="width: 49%">
|
||||||
<el-input v-model="form.cvtName" placeholder="请输入CVT名称" />
|
<el-input v-model.trim="form.cvtName" placeholder="请输入CVT名称" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="CVT型号:" prop="cvtModel" style="width: 49%">
|
<el-form-item label="CVT型号:" prop="cvtModel" style="width: 49%">
|
||||||
<el-input v-model="form.cvtModel" placeholder="请输入CVT型号" />
|
<el-input v-model.trim="form.cvtModel" placeholder="请输入CVT型号" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-for="item in frequency" :label="`${item}次:`" :prop="`h${item}`">
|
<el-form-item v-for="item in frequency" :label="`${item}次:`" :prop="`h${item}`">
|
||||||
<el-input type="number" v-model="form[`h${item}`]" @input="handleInput($event, `h${item}`)" />
|
<el-input type="number" v-model.trim="form[`h${item}`]" @input="handleInput($event, `h${item}`)" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<!-- <el-form-item label="2次:" prop="h2">
|
<!-- <el-form-item label="2次:" prop="h2">
|
||||||
|
|||||||
@@ -542,19 +542,8 @@ export default {
|
|||||||
month = '0' + month
|
month = '0' + month
|
||||||
}
|
}
|
||||||
this.form.searchBeginTime = str1[0] + '-' + month + '-' + str1[2]
|
this.form.searchBeginTime = str1[0] + '-' + month + '-' + str1[2]
|
||||||
if (
|
|
||||||
month == 1 ||
|
this.form.searchEndTime = str2[0] + '-' + month + '-' + new Date(str2[0], month, 0).getDate()
|
||||||
month == 3 ||
|
|
||||||
month == 5 ||
|
|
||||||
month == 7 ||
|
|
||||||
month == 8 ||
|
|
||||||
month == 10 ||
|
|
||||||
month == 12
|
|
||||||
) {
|
|
||||||
this.form.searchEndTime = str2[0] + '-' + month + '-31'
|
|
||||||
} else {
|
|
||||||
this.form.searchEndTime = str2[0] + '-' + month + '-30'
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
this.form.searchBeginTime = this.$refs.fff.timeValue[0]
|
this.form.searchBeginTime = this.$refs.fff.timeValue[0]
|
||||||
this.form.searchEndTime = this.$refs.fff.timeValue[1]
|
this.form.searchEndTime = this.$refs.fff.timeValue[1]
|
||||||
@@ -938,7 +927,7 @@ export default {
|
|||||||
|
|
||||||
myChart2.clear(option)
|
myChart2.clear(option)
|
||||||
myChart2.setOption(option)
|
myChart2.setOption(option)
|
||||||
window.echartsArr.push(myChart2)
|
window.echartsArr.push(myChart2)
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
myChart2.resize()
|
myChart2.resize()
|
||||||
}, 0)
|
}, 0)
|
||||||
@@ -976,19 +965,8 @@ window.echartsArr.push(myChart2)
|
|||||||
month = '0' + month
|
month = '0' + month
|
||||||
}
|
}
|
||||||
this.form.searchBeginTime = str1[0] + '-' + month + '-' + str1[2]
|
this.form.searchBeginTime = str1[0] + '-' + month + '-' + str1[2]
|
||||||
if (
|
|
||||||
month == 1 ||
|
this.form.searchEndTime = str2[0] + '-' + month + '-' + new Date(str2[0], month, 0).getDate()
|
||||||
month == 3 ||
|
|
||||||
month == 5 ||
|
|
||||||
month == 7 ||
|
|
||||||
month == 8 ||
|
|
||||||
month == 10 ||
|
|
||||||
month == 12
|
|
||||||
) {
|
|
||||||
this.form.searchEndTime = str2[0] + '-' + month + '-31'
|
|
||||||
} else {
|
|
||||||
this.form.searchEndTime = str2[0] + '-' + month + '-30'
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
this.form.searchBeginTime = this.$refs.fff.timeValue[0]
|
this.form.searchBeginTime = this.$refs.fff.timeValue[0]
|
||||||
this.form.searchEndTime = this.$refs.fff.timeValue[1]
|
this.form.searchEndTime = this.$refs.fff.timeValue[1]
|
||||||
@@ -1320,7 +1298,7 @@ window.echartsArr.push(myChart2)
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
option && myChart2.setOption(option, true)
|
option && myChart2.setOption(option, true)
|
||||||
window.echartsArr.push(myChart2)
|
window.echartsArr.push(myChart2)
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
myChart2.resize()
|
myChart2.resize()
|
||||||
}, 0)
|
}, 0)
|
||||||
@@ -1349,19 +1327,8 @@ window.echartsArr.push(myChart2)
|
|||||||
month = '0' + month
|
month = '0' + month
|
||||||
}
|
}
|
||||||
this.form.searchBeginTime = str1[0] + '-' + month + '-' + str1[2]
|
this.form.searchBeginTime = str1[0] + '-' + month + '-' + str1[2]
|
||||||
if (
|
|
||||||
month == 1 ||
|
this.form.searchEndTime = str2[0] + '-' + month + '-' + new Date(str2[0], month, 0).getDate()
|
||||||
month == 3 ||
|
|
||||||
month == 5 ||
|
|
||||||
month == 7 ||
|
|
||||||
month == 8 ||
|
|
||||||
month == 10 ||
|
|
||||||
month == 12
|
|
||||||
) {
|
|
||||||
this.form.searchEndTime = str2[0] + '-' + month + '-31'
|
|
||||||
} else {
|
|
||||||
this.form.searchEndTime = str2[0] + '-' + month + '-30'
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
this.form.searchBeginTime = this.$refs.fff.timeValue[0]
|
this.form.searchBeginTime = this.$refs.fff.timeValue[0]
|
||||||
this.form.searchEndTime = this.$refs.fff.timeValue[1]
|
this.form.searchEndTime = this.$refs.fff.timeValue[1]
|
||||||
@@ -1545,7 +1512,7 @@ window.echartsArr.push(myChart2)
|
|||||||
}
|
}
|
||||||
|
|
||||||
option && myChart2.setOption(option, true)
|
option && myChart2.setOption(option, true)
|
||||||
window.echartsArr.push(myChart2)
|
window.echartsArr.push(myChart2)
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
myChart2.resize()
|
myChart2.resize()
|
||||||
}, 0)
|
}, 0)
|
||||||
@@ -1571,19 +1538,8 @@ window.echartsArr.push(myChart2)
|
|||||||
month = '0' + month
|
month = '0' + month
|
||||||
}
|
}
|
||||||
this.form.searchBeginTime = str1[0] + '-' + month + '-' + str1[2]
|
this.form.searchBeginTime = str1[0] + '-' + month + '-' + str1[2]
|
||||||
if (
|
|
||||||
month == 1 ||
|
this.form.searchEndTime = str2[0] + '-' + month + '-' + new Date(str2[0], month, 0).getDate()
|
||||||
month == 3 ||
|
|
||||||
month == 5 ||
|
|
||||||
month == 7 ||
|
|
||||||
month == 8 ||
|
|
||||||
month == 10 ||
|
|
||||||
month == 12
|
|
||||||
) {
|
|
||||||
this.form.searchEndTime = str2[0] + '-' + month + '-31'
|
|
||||||
} else {
|
|
||||||
this.form.searchEndTime = str2[0] + '-' + month + '-30'
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
this.form.searchBeginTime = this.$refs.fff.timeValue[0]
|
this.form.searchBeginTime = this.$refs.fff.timeValue[0]
|
||||||
this.form.searchEndTime = this.$refs.fff.timeValue[1]
|
this.form.searchEndTime = this.$refs.fff.timeValue[1]
|
||||||
@@ -1768,7 +1724,7 @@ window.echartsArr.push(myChart2)
|
|||||||
}
|
}
|
||||||
|
|
||||||
option && myChart2.setOption(option, true)
|
option && myChart2.setOption(option, true)
|
||||||
window.echartsArr.push(myChart2)
|
window.echartsArr.push(myChart2)
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
myChart2.resize()
|
myChart2.resize()
|
||||||
}, 0)
|
}, 0)
|
||||||
@@ -1796,19 +1752,8 @@ window.echartsArr.push(myChart2)
|
|||||||
month = '0' + month
|
month = '0' + month
|
||||||
}
|
}
|
||||||
this.form.searchBeginTime = str1[0] + '-' + month + '-' + str1[2]
|
this.form.searchBeginTime = str1[0] + '-' + month + '-' + str1[2]
|
||||||
if (
|
|
||||||
month == 1 ||
|
this.form.searchEndTime = str2[0] + '-' + month + '-' + new Date(str2[0], month, 0).getDate()
|
||||||
month == 3 ||
|
|
||||||
month == 5 ||
|
|
||||||
month == 7 ||
|
|
||||||
month == 8 ||
|
|
||||||
month == 10 ||
|
|
||||||
month == 12
|
|
||||||
) {
|
|
||||||
this.form.searchEndTime = str2[0] + '-' + month + '-31'
|
|
||||||
} else {
|
|
||||||
this.form.searchEndTime = str2[0] + '-' + month + '-30'
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
this.form.searchBeginTime = this.$refs.fff.timeValue[0]
|
this.form.searchBeginTime = this.$refs.fff.timeValue[0]
|
||||||
this.form.searchEndTime = this.$refs.fff.timeValue[1]
|
this.form.searchEndTime = this.$refs.fff.timeValue[1]
|
||||||
@@ -2030,7 +1975,7 @@ window.echartsArr.push(myChart2)
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
option && myChart2.setOption(option, true)
|
option && myChart2.setOption(option, true)
|
||||||
window.echartsArr.push(myChart2)
|
window.echartsArr.push(myChart2)
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
myChart2.resize()
|
myChart2.resize()
|
||||||
}, 0)
|
}, 0)
|
||||||
|
|||||||
@@ -805,19 +805,9 @@ export default {
|
|||||||
month = '0' + month
|
month = '0' + month
|
||||||
}
|
}
|
||||||
this.formData.searchBeginTime = str1[0] + '-' + month + '-' + str1[2]
|
this.formData.searchBeginTime = str1[0] + '-' + month + '-' + str1[2]
|
||||||
if (
|
|
||||||
month == 1 ||
|
this.formData.searchEndTime = str2[0] + '-' + month + '-' + new Date(str2[0], month, 0).getDate()
|
||||||
month == 3 ||
|
|
||||||
month == 5 ||
|
|
||||||
month == 7 ||
|
|
||||||
month == 8 ||
|
|
||||||
month == 10 ||
|
|
||||||
month == 12
|
|
||||||
) {
|
|
||||||
this.formData.searchEndTime = str2[0] + '-' + month + '-31'
|
|
||||||
} else {
|
|
||||||
this.formData.searchEndTime = str2[0] + '-' + month + '-30'
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
this.formData.searchBeginTime = this.$refs.timelist.timeValue[0]
|
this.formData.searchBeginTime = this.$refs.timelist.timeValue[0]
|
||||||
this.formData.searchEndTime = this.$refs.timelist.timeValue[1]
|
this.formData.searchEndTime = this.$refs.timelist.timeValue[1]
|
||||||
|
|||||||
@@ -676,19 +676,9 @@ export default {
|
|||||||
month = '0' + month
|
month = '0' + month
|
||||||
}
|
}
|
||||||
this.formData.searchBeginTime = str1[0] + '-' + month + '-' + str1[2]
|
this.formData.searchBeginTime = str1[0] + '-' + month + '-' + str1[2]
|
||||||
if (
|
|
||||||
month == 1 ||
|
this.formData.searchEndTime = str2[0] + '-' + month + '-' + new Date(str2[0], month, 0).getDate()
|
||||||
month == 3 ||
|
|
||||||
month == 5 ||
|
|
||||||
month == 7 ||
|
|
||||||
month == 8 ||
|
|
||||||
month == 10 ||
|
|
||||||
month == 12
|
|
||||||
) {
|
|
||||||
this.formData.searchEndTime = str2[0] + '-' + month + '-31'
|
|
||||||
} else {
|
|
||||||
this.formData.searchEndTime = str2[0] + '-' + month + '-30'
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
this.formData.searchBeginTime = this.$refs.fkf.timeValue[0]
|
this.formData.searchBeginTime = this.$refs.fkf.timeValue[0]
|
||||||
this.formData.searchEndTime = this.$refs.fkf.timeValue[1]
|
this.formData.searchEndTime = this.$refs.fkf.timeValue[1]
|
||||||
|
|||||||
@@ -910,19 +910,9 @@ export default {
|
|||||||
month = '0' + month
|
month = '0' + month
|
||||||
}
|
}
|
||||||
this.formData.searchBeginTime = str1[0] + '-' + month + '-' + str1[2]
|
this.formData.searchBeginTime = str1[0] + '-' + month + '-' + str1[2]
|
||||||
if (
|
|
||||||
month == 1 ||
|
this.formData.searchEndTime = str2[0] + '-' + month + '-' + new Date(str2[0], month, 0).getDate()
|
||||||
month == 3 ||
|
|
||||||
month == 5 ||
|
|
||||||
month == 7 ||
|
|
||||||
month == 8 ||
|
|
||||||
month == 10 ||
|
|
||||||
month == 12
|
|
||||||
) {
|
|
||||||
this.formData.searchEndTime = str2[0] + '-' + month + '-31'
|
|
||||||
} else {
|
|
||||||
this.formData.searchEndTime = str2[0] + '-' + month + '-30'
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
this.formData.searchBeginTime = this.$refs.fyf.timeValue[0]
|
this.formData.searchBeginTime = this.$refs.fyf.timeValue[0]
|
||||||
this.formData.searchEndTime = this.$refs.fyf.timeValue[1]
|
this.formData.searchEndTime = this.$refs.fyf.timeValue[1]
|
||||||
|
|||||||
@@ -264,7 +264,7 @@ export default {
|
|||||||
|
|
||||||
//获取审核人列表
|
//获取审核人列表
|
||||||
getAuditUser() {
|
getAuditUser() {
|
||||||
let param = {roleType: 3}
|
let param = {roleType: 1}
|
||||||
getAuditUser(param).then(res => {
|
getAuditUser(param).then(res => {
|
||||||
if (res && res.code === 'A0000') {
|
if (res && res.code === 'A0000') {
|
||||||
this.auditUserList = res.data
|
this.auditUserList = res.data
|
||||||
|
|||||||
@@ -657,19 +657,9 @@ export default {
|
|||||||
month = '0' + month
|
month = '0' + month
|
||||||
}
|
}
|
||||||
this.formData.searchBeginTime = str1[0] + '-' + month + '-' + str1[2]
|
this.formData.searchBeginTime = str1[0] + '-' + month + '-' + str1[2]
|
||||||
if (
|
|
||||||
month == 1 ||
|
this.formData.searchEndTime = str2[0] + '-' + month + '-' + new Date(str2[0], month, 0).getDate()
|
||||||
month == 3 ||
|
|
||||||
month == 5 ||
|
|
||||||
month == 7 ||
|
|
||||||
month == 8 ||
|
|
||||||
month == 10 ||
|
|
||||||
month == 12
|
|
||||||
) {
|
|
||||||
this.formData.searchEndTime = str2[0] + '-' + month + '-31'
|
|
||||||
} else {
|
|
||||||
this.formData.searchEndTime = str2[0] + '-' + month + '-30'
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
this.formData.searchBeginTime = this.$refs.timepg.timeValue[0]
|
this.formData.searchBeginTime = this.$refs.timepg.timeValue[0]
|
||||||
this.formData.searchEndTime = this.$refs.timepg.timeValue[1]
|
this.formData.searchEndTime = this.$refs.timepg.timeValue[1]
|
||||||
|
|||||||
@@ -69,7 +69,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item style="float: right;margin-right: 50px">
|
<el-form-item style="float: right;margin-right: 50px">
|
||||||
<el-button :disabled="store.params.dataType === '01'" type="primary" @click="reCalUpload(activeName)">
|
<el-button :disabled="store.params.dataType === '01'" type="primary" @click="reCalUpload('1')">
|
||||||
{{ storeList[activeName].label + '重新计算' }}
|
{{ storeList[activeName].label + '重新计算' }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -605,7 +605,7 @@ export default {
|
|||||||
let dateMonth = this.store.params.searchBeginTime.substring(0, 7)
|
let dateMonth = this.store.params.searchBeginTime.substring(0, 7)
|
||||||
//月
|
//月
|
||||||
request
|
request
|
||||||
.get('/prepare-boot/dimGlobal/reCalMonthUploadAlgorithm?statisticDate=' + dateMonth + '&type=' + type)
|
.get('/prepare-boot/dimGlobal/reCalMonthUploadAlgorithm?statisticDate=' + dateMonth + '&type=1')
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res && res.code === 'A0000') {
|
if (res && res.code === 'A0000') {
|
||||||
this.$message({
|
this.$message({
|
||||||
@@ -617,7 +617,7 @@ export default {
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
request
|
request
|
||||||
.get('/prepare-boot/dimGlobal/reCalUploadAlgorithm?statisticDate=' + this.store.params.searchBeginTime + '&type=' + type)
|
.get('/prepare-boot/dimGlobal/reCalUploadAlgorithm?statisticDate=' + this.store.params.searchBeginTime + '&type=1')
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res && res.code === 'A0000') {
|
if (res && res.code === 'A0000') {
|
||||||
this.$message({
|
this.$message({
|
||||||
|
|||||||
Reference in New Issue
Block a user