微调
This commit is contained in:
@@ -3,7 +3,7 @@ export namespace ChannelsTest {
|
|||||||
|
|
||||||
// 系数校准列表
|
// 系数校准列表
|
||||||
export interface CoefficientVO {
|
export interface CoefficientVO {
|
||||||
devName?: string;//设备名称
|
devName?: string;//设备名称
|
||||||
type?:string;//区分大小电压
|
type?:string;//区分大小电压
|
||||||
monitorNum: string;//监测点序号
|
monitorNum: string;//监测点序号
|
||||||
desc: string;//描述
|
desc: string;//描述
|
||||||
@@ -20,7 +20,12 @@ export namespace ChannelsTest {
|
|||||||
cIeData:string;//电流通道C数据
|
cIeData:string;//电流通道C数据
|
||||||
cIeXi:string;//电流通道C系数
|
cIeXi:string;//电流通道C系数
|
||||||
loading: boolean;
|
loading: boolean;
|
||||||
reason?:string;//(不)合格原因
|
aV:string;
|
||||||
|
bV:string;
|
||||||
|
cV:string;
|
||||||
|
aI:string;
|
||||||
|
bI:string;
|
||||||
|
cI:string;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -38,7 +38,7 @@ export const staticRouter: RouteRecordRaw[] = [
|
|||||||
isHide: false,
|
isHide: false,
|
||||||
isFull: false,
|
isFull: false,
|
||||||
isAffix: false,
|
isAffix: false,
|
||||||
isKeepAlive: false,
|
isKeepAlive: true,//缓存改成true
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -52,7 +52,7 @@ export const staticRouter: RouteRecordRaw[] = [
|
|||||||
isHide: false,
|
isHide: false,
|
||||||
isFull: false,
|
isFull: false,
|
||||||
isAffix: false,
|
isAffix: false,
|
||||||
isKeepAlive: false,
|
isKeepAlive: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -82,7 +82,7 @@ export const staticRouter: RouteRecordRaw[] = [
|
|||||||
isHide: false,
|
isHide: false,
|
||||||
isFull: false,
|
isFull: false,
|
||||||
isAffix: false,
|
isAffix: false,
|
||||||
isKeepAlive: false,
|
isKeepAlive: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
// 错误页面路由
|
// 错误页面路由
|
||||||
|
|||||||
@@ -34,6 +34,9 @@
|
|||||||
import ResourcePopup from './components/resourcePopup.vue'
|
import ResourcePopup from './components/resourcePopup.vue'
|
||||||
import {deleteFunction,getFunctionList} from '@/api/user/function/index'
|
import {deleteFunction,getFunctionList} from '@/api/user/function/index'
|
||||||
import * as Icons from '@element-plus/icons-vue'
|
import * as Icons from '@element-plus/icons-vue'
|
||||||
|
defineOptions({
|
||||||
|
name: 'resource'
|
||||||
|
})
|
||||||
const dictStore = useDictStore()
|
const dictStore = useDictStore()
|
||||||
const resourcePopup = ref()
|
const resourcePopup = ref()
|
||||||
// ProTable 实例
|
// ProTable 实例
|
||||||
|
|||||||
@@ -39,6 +39,9 @@ import RolePopup from './components/rolePopup.vue'
|
|||||||
import RoleResourcePopup from './components/roleResourcePopup.vue'
|
import RoleResourcePopup from './components/roleResourcePopup.vue'
|
||||||
import { onMounted, reactive, ref } from 'vue'
|
import { onMounted, reactive, ref } from 'vue'
|
||||||
import {useDictStore} from '@/stores/modules/dict'
|
import {useDictStore} from '@/stores/modules/dict'
|
||||||
|
defineOptions({
|
||||||
|
name: 'role'
|
||||||
|
})
|
||||||
const rolePopup = ref()
|
const rolePopup = ref()
|
||||||
const roleResourcePopup = ref()
|
const roleResourcePopup = ref()
|
||||||
const dictStore = useDictStore()
|
const dictStore = useDictStore()
|
||||||
|
|||||||
@@ -43,6 +43,9 @@
|
|||||||
import {getUserList, deleteUser,getRoleList} from '@/api/user/user'
|
import {getUserList, deleteUser,getRoleList} from '@/api/user/user'
|
||||||
import { onMounted, reactive, ref } from 'vue'
|
import { onMounted, reactive, ref } from 'vue'
|
||||||
import { type Role } from '@/api/user/interface/role'
|
import { type Role } from '@/api/user/interface/role'
|
||||||
|
defineOptions({
|
||||||
|
name: 'user'
|
||||||
|
})
|
||||||
const roleList = ref<Role.RoleBO[]>([])
|
const roleList = ref<Role.RoleBO[]>([])
|
||||||
const dictStore = useDictStore()
|
const dictStore = useDictStore()
|
||||||
const userPopup = ref()
|
const userPopup = ref()
|
||||||
|
|||||||
@@ -71,7 +71,8 @@
|
|||||||
</template>
|
</template>
|
||||||
<channelsTestTable
|
<channelsTestTable
|
||||||
:tableData="getTableDataForChannel(index)"
|
:tableData="getTableDataForChannel(index)"
|
||||||
:big_V_loading="big_V_loadingStates">
|
:big_V_loading="big_V_loadingStates"
|
||||||
|
:curV="CurV">
|
||||||
</channelsTestTable>
|
</channelsTestTable>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
@@ -112,6 +113,7 @@ const devIdArray = ref<string[]>([])//系数校准所选设备ID数组
|
|||||||
const select_Plan = ref<Plan.ReqPlan>()
|
const select_Plan = ref<Plan.ReqPlan>()
|
||||||
const planId = ref('')
|
const planId = ref('')
|
||||||
const isButtonDisabled = ref(false);
|
const isButtonDisabled = ref(false);
|
||||||
|
const CurV= ref<number>()//额定电压
|
||||||
// 在 setup 函数中
|
// 在 setup 函数中
|
||||||
const errorStates = ref(new Array(name.value.length).fill(false));
|
const errorStates = ref(new Array(name.value.length).fill(false));
|
||||||
//const loadingStates = ref(new Array(name.value.length).fill(false)); // 初始化 loading 状态
|
//const loadingStates = ref(new Array(name.value.length).fill(false)); // 初始化 loading 状态
|
||||||
@@ -152,6 +154,33 @@ watch(webMsgSend,function (newValue,oldValue){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 'YJC_xujy':
|
||||||
|
switch (newValue.operateCode) {
|
||||||
|
case 'OPER_GATHER':
|
||||||
|
if (newValue.code == 10552) {
|
||||||
|
ElMessageBox.alert('存在已经初始化步骤,执行自动关闭,请重新发起检测', '初始化失败', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
type: 'error',
|
||||||
|
})
|
||||||
|
} else if (newValue.code == 10520) {
|
||||||
|
ElMessageBox.alert('解析报文异常,执行自动关闭,请重新发起检测', '解析报文异常', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
type: 'error',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
TableInit();
|
||||||
|
break;
|
||||||
|
case 'DATA_REQUEST$02':
|
||||||
|
if (newValue.code == 25003) {
|
||||||
|
ElMessageBox.alert('相序校验未通过,执行自动关闭,请重新发起检测', '相序校验未通过', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
type: 'error',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
TableInit();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
case 'yjc_sbtxjy':
|
case 'yjc_sbtxjy':
|
||||||
switch (newValue.operateCode) {
|
switch (newValue.operateCode) {
|
||||||
case 'INIT_GATHER$01':
|
case 'INIT_GATHER$01':
|
||||||
@@ -165,12 +194,19 @@ watch(webMsgSend,function (newValue,oldValue){
|
|||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
})
|
})
|
||||||
|
TableInit();
|
||||||
} else if (newValue.code == 10552) {
|
} else if (newValue.code == 10552) {
|
||||||
ElMessageBox.alert('存在已经初始化步骤,执行自动关闭,请重新发起检测', '初始化失败', {
|
ElMessageBox.alert('存在已经初始化步骤,执行自动关闭,请重新发起检测', '初始化失败', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
})
|
})
|
||||||
|
} else if (newValue.code == 10520) {
|
||||||
|
ElMessageBox.alert('解析报文异常,执行自动关闭,请重新发起检测', '解析报文异常', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
type: 'error',
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
TableInit();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -287,6 +323,13 @@ watch(webMsgSend,function (newValue,oldValue){
|
|||||||
} else {
|
} else {
|
||||||
firstCoefficientVO.cIeXi = newValue.data.cIeXi;
|
firstCoefficientVO.cIeXi = newValue.data.cIeXi;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
firstCoefficientVO.aV = newValue.data.aV;
|
||||||
|
firstCoefficientVO.bV = newValue.data.bV;
|
||||||
|
firstCoefficientVO.cV = newValue.data.cV;
|
||||||
|
firstCoefficientVO.aI = newValue.data.aI;
|
||||||
|
firstCoefficientVO.bI = newValue.data.bI;
|
||||||
|
firstCoefficientVO.cI = newValue.data.cI;
|
||||||
//console.log(newValue.data.devName + '对象:', firstCoefficientVO);
|
//console.log(newValue.data.devName + '对象:', firstCoefficientVO);
|
||||||
activeIndex.value++;
|
activeIndex.value++;
|
||||||
} else {
|
} else {
|
||||||
@@ -309,6 +352,7 @@ watch(webMsgSend,function (newValue,oldValue){
|
|||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
})
|
})
|
||||||
|
TableInit();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -327,11 +371,22 @@ watch(webMsgSend,function (newValue,oldValue){
|
|||||||
})
|
})
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
TableInit();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
//出错系数检测初始化
|
||||||
|
const TableInit = () => {
|
||||||
|
isButtonDisabled.value = false; // 恢复按钮
|
||||||
|
for (let i = 0; i < channel.value.length; i++) {
|
||||||
|
const currentTableData = initializeTableData(dataTemplates, i);
|
||||||
|
tableDataMap.set(i,currentTableData)
|
||||||
|
}
|
||||||
|
activeIndex.value = 0
|
||||||
|
qualified.value = 0
|
||||||
|
active.value = 0
|
||||||
|
}
|
||||||
|
|
||||||
//按行图标转动
|
//按行图标转动
|
||||||
const tableLoading = (type: string, desc: string) => {
|
const tableLoading = (type: string, desc: string) => {
|
||||||
@@ -373,7 +428,12 @@ const dataTemplates : ChannelsTest.CoefficientVO[]= [
|
|||||||
cIeXi: '—',
|
cIeXi: '—',
|
||||||
loading:false,
|
loading:false,
|
||||||
devName:'',
|
devName:'',
|
||||||
reason:'',
|
aV:'—',
|
||||||
|
bV:'—',
|
||||||
|
cV:'—',
|
||||||
|
aI:'—',
|
||||||
|
bI:'—',
|
||||||
|
cI:'—',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
monitorNum: '2',
|
monitorNum: '2',
|
||||||
@@ -393,7 +453,12 @@ const dataTemplates : ChannelsTest.CoefficientVO[]= [
|
|||||||
cIeXi: '—',
|
cIeXi: '—',
|
||||||
loading:false,
|
loading:false,
|
||||||
devName:'',
|
devName:'',
|
||||||
reason:'',
|
aV:'—',
|
||||||
|
bV:'—',
|
||||||
|
cV:'—',
|
||||||
|
aI:'—',
|
||||||
|
bI:'—',
|
||||||
|
cI:'—',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
monitorNum: '3',
|
monitorNum: '3',
|
||||||
@@ -413,7 +478,12 @@ const dataTemplates : ChannelsTest.CoefficientVO[]= [
|
|||||||
cIeXi: '—',
|
cIeXi: '—',
|
||||||
loading:false,
|
loading:false,
|
||||||
devName:'',
|
devName:'',
|
||||||
reason:'',
|
aV:'—',
|
||||||
|
bV:'—',
|
||||||
|
cV:'—',
|
||||||
|
aI:'—',
|
||||||
|
bI:'—',
|
||||||
|
cI:'—',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
monitorNum: '4',
|
monitorNum: '4',
|
||||||
@@ -433,7 +503,12 @@ const dataTemplates : ChannelsTest.CoefficientVO[]= [
|
|||||||
cIeXi: '—',
|
cIeXi: '—',
|
||||||
loading:false,
|
loading:false,
|
||||||
devName:'',
|
devName:'',
|
||||||
reason:'',
|
aV:'—',
|
||||||
|
bV:'—',
|
||||||
|
cV:'—',
|
||||||
|
aI:'—',
|
||||||
|
bI:'—',
|
||||||
|
cI:'—',
|
||||||
},
|
},
|
||||||
|
|
||||||
];
|
];
|
||||||
@@ -525,6 +600,7 @@ const updateErrorState = (index: number, hasError: boolean) => {
|
|||||||
|
|
||||||
// 打开弹窗,可能是新增,也可能是编辑
|
// 打开弹窗,可能是新增,也可能是编辑
|
||||||
const open = (selection: Device.ResPqDev[],plan:Plan.ReqPlan) => {
|
const open = (selection: Device.ResPqDev[],plan:Plan.ReqPlan) => {
|
||||||
|
CurV.value = selection[0]?.devVolt || 57.74;
|
||||||
isButtonDisabled.value = false; // 恢复按钮
|
isButtonDisabled.value = false; // 恢复按钮
|
||||||
select_Plan.value = plan
|
select_Plan.value = plan
|
||||||
planId.value = selection[0]?.planId || '';
|
planId.value = selection[0]?.planId || '';
|
||||||
|
|||||||
@@ -27,8 +27,11 @@
|
|||||||
class="item"
|
class="item"
|
||||||
effect="dark"
|
effect="dark"
|
||||||
placement="bottom-start"
|
placement="bottom-start"
|
||||||
:content="'电压L1系数校准不合格原因:'+scope.row.aVuData"
|
|
||||||
>
|
>
|
||||||
|
<template #content>
|
||||||
|
误差范围: {{ (-0.1 * props.curV).toFixed(4) + '~' + (0.1 * props.curV).toFixed(4)}}<br/>
|
||||||
|
误差值:{{ scope.row.aV }}
|
||||||
|
</template>
|
||||||
<el-tag type="danger" class="tooltip-content">
|
<el-tag type="danger" class="tooltip-content">
|
||||||
{{ scope.row.aVuXi }}
|
{{ scope.row.aVuXi }}
|
||||||
</el-tag>
|
</el-tag>
|
||||||
@@ -38,8 +41,11 @@
|
|||||||
class="item"
|
class="item"
|
||||||
effect="dark"
|
effect="dark"
|
||||||
placement="bottom-start"
|
placement="bottom-start"
|
||||||
:content="'电压L1系数校准合格原因:'+scope.row.aVuData"
|
|
||||||
>
|
>
|
||||||
|
<template #content>
|
||||||
|
误差范围: {{ (-0.1 * props.curV).toFixed(4) + '~' + (0.1 * props.curV).toFixed(4)}}<br/>
|
||||||
|
误差值:{{ scope.row.aV }}
|
||||||
|
</template>
|
||||||
<el-tag type="success" class="tooltip-content">{{ scope.row.aVuXi }}</el-tag>
|
<el-tag type="success" class="tooltip-content">{{ scope.row.aVuXi }}</el-tag>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<!-- <el-tag type="danger" v-if="scope.row.aVuXi === '不合格'">
|
<!-- <el-tag type="danger" v-if="scope.row.aVuXi === '不合格'">
|
||||||
@@ -72,8 +78,11 @@
|
|||||||
class="item"
|
class="item"
|
||||||
effect="dark"
|
effect="dark"
|
||||||
placement="bottom-start"
|
placement="bottom-start"
|
||||||
:content="'电压L2系数校准不合格原因:'+scope.row.bVuData"
|
|
||||||
>
|
>
|
||||||
|
<template #content>
|
||||||
|
误差范围: {{ (-0.1 * props.curV).toFixed(4) + '~' + (0.1 * props.curV).toFixed(4)}}<br/>
|
||||||
|
误差值:{{ scope.row.bV }}
|
||||||
|
</template>
|
||||||
<el-tag type="danger" class="tooltip-content">
|
<el-tag type="danger" class="tooltip-content">
|
||||||
{{ scope.row.bVuXi }}
|
{{ scope.row.bVuXi }}
|
||||||
</el-tag>
|
</el-tag>
|
||||||
@@ -83,8 +92,11 @@
|
|||||||
class="item"
|
class="item"
|
||||||
effect="dark"
|
effect="dark"
|
||||||
placement="bottom-start"
|
placement="bottom-start"
|
||||||
:content="'电压L2系数校准合格原因:'+scope.row.bVuData"
|
|
||||||
>
|
>
|
||||||
|
<template #content>
|
||||||
|
误差范围: {{ (-0.1 * props.curV).toFixed(4) + '~' + (0.1 * props.curV).toFixed(4)}}<br/>
|
||||||
|
误差值:{{ scope.row.bV }}
|
||||||
|
</template>
|
||||||
<el-tag type="success" class="tooltip-content">{{ scope.row.bVuXi }}</el-tag>
|
<el-tag type="success" class="tooltip-content">{{ scope.row.bVuXi }}</el-tag>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<el-icon v-else-if="scope.row.bVuXi === '—'&& scope.row.loading" class="loading-box">
|
<el-icon v-else-if="scope.row.bVuXi === '—'&& scope.row.loading" class="loading-box">
|
||||||
@@ -111,8 +123,11 @@
|
|||||||
class="item"
|
class="item"
|
||||||
effect="dark"
|
effect="dark"
|
||||||
placement="bottom-start"
|
placement="bottom-start"
|
||||||
:content="'电压L3系数校准不合格原因:'+scope.row.cVuData"
|
|
||||||
>
|
>
|
||||||
|
<template #content>
|
||||||
|
误差范围: {{ (-0.1 * props.curV).toFixed(4) + '~' + (0.1 * props.curV).toFixed(4)}}<br/>
|
||||||
|
误差值:{{ scope.row.cV }}
|
||||||
|
</template>
|
||||||
<el-tag type="danger" class="tooltip-content">
|
<el-tag type="danger" class="tooltip-content">
|
||||||
{{ scope.row.cVuXi }}
|
{{ scope.row.cVuXi }}
|
||||||
</el-tag>
|
</el-tag>
|
||||||
@@ -122,8 +137,11 @@
|
|||||||
class="item"
|
class="item"
|
||||||
effect="dark"
|
effect="dark"
|
||||||
placement="bottom-start"
|
placement="bottom-start"
|
||||||
:content="'电压L3系数校准合格原因:'+scope.row.cVuData"
|
|
||||||
>
|
>
|
||||||
|
<template #content>
|
||||||
|
误差范围: {{ (-0.1 * props.curV).toFixed(4) + '~' + (0.1 * props.curV).toFixed(4)}}<br/>
|
||||||
|
误差值:{{ scope.row.cV }}
|
||||||
|
</template>
|
||||||
<el-tag type="success" class="tooltip-content">{{ scope.row.cVuXi }}</el-tag>
|
<el-tag type="success" class="tooltip-content">{{ scope.row.cVuXi }}</el-tag>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<el-icon v-else-if="scope.row.cVuXi === '—'&& scope.row.loading" class="loading-box">
|
<el-icon v-else-if="scope.row.cVuXi === '—'&& scope.row.loading" class="loading-box">
|
||||||
@@ -152,8 +170,11 @@
|
|||||||
class="item"
|
class="item"
|
||||||
effect="dark"
|
effect="dark"
|
||||||
placement="bottom-start"
|
placement="bottom-start"
|
||||||
:content="'电流L1系数校准不合格原因:'+scope.row.aIeData"
|
|
||||||
>
|
>
|
||||||
|
<template #content>
|
||||||
|
误差范围: {{ -0.5 + "~" +0.5 }}<br/>
|
||||||
|
误差值:{{ scope.row.aI }}
|
||||||
|
</template>
|
||||||
<el-tag type="danger" class="tooltip-content">
|
<el-tag type="danger" class="tooltip-content">
|
||||||
{{ scope.row.aIeXi }}
|
{{ scope.row.aIeXi }}
|
||||||
</el-tag>
|
</el-tag>
|
||||||
@@ -163,8 +184,11 @@
|
|||||||
class="item"
|
class="item"
|
||||||
effect="dark"
|
effect="dark"
|
||||||
placement="bottom-start"
|
placement="bottom-start"
|
||||||
:content="'电流L1系数校准合格原因:'+scope.row.aIeData"
|
|
||||||
>
|
>
|
||||||
|
<template #content>
|
||||||
|
误差范围: {{ -0.5 + "~" +0.5 }}<br/>
|
||||||
|
误差值:{{ scope.row.aI }}
|
||||||
|
</template>
|
||||||
<el-tag type="success" class="tooltip-content">{{ scope.row.aIeXi }}</el-tag>
|
<el-tag type="success" class="tooltip-content">{{ scope.row.aIeXi }}</el-tag>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<el-icon v-else-if="scope.row.aIeXi === '—'&& scope.row.loading" class="loading-box">
|
<el-icon v-else-if="scope.row.aIeXi === '—'&& scope.row.loading" class="loading-box">
|
||||||
@@ -191,8 +215,11 @@
|
|||||||
class="item"
|
class="item"
|
||||||
effect="dark"
|
effect="dark"
|
||||||
placement="bottom-start"
|
placement="bottom-start"
|
||||||
:content="'电流L2系数校准不合格原因:'+scope.row.bIeData"
|
|
||||||
>
|
>
|
||||||
|
<template #content>
|
||||||
|
误差范围: {{ -0.5 + "~" +0.5 }}<br/>
|
||||||
|
误差值:{{ scope.row.bI }}
|
||||||
|
</template>
|
||||||
<el-tag type="danger" class="tooltip-content">
|
<el-tag type="danger" class="tooltip-content">
|
||||||
{{ scope.row.bIeXi }}
|
{{ scope.row.bIeXi }}
|
||||||
</el-tag>
|
</el-tag>
|
||||||
@@ -202,8 +229,11 @@
|
|||||||
class="item"
|
class="item"
|
||||||
effect="dark"
|
effect="dark"
|
||||||
placement="bottom-start"
|
placement="bottom-start"
|
||||||
:content="'电流L2系数校准合格原因:'+scope.row.bIeData"
|
|
||||||
>
|
>
|
||||||
|
<template #content>
|
||||||
|
误差范围: {{ -0.5 + "~" +0.5 }}<br/>
|
||||||
|
误差值:{{ scope.row.bI }}
|
||||||
|
</template>
|
||||||
<el-tag type="success" class="tooltip-content">{{ scope.row.bIeXi }}</el-tag>
|
<el-tag type="success" class="tooltip-content">{{ scope.row.bIeXi }}</el-tag>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<el-icon v-else-if="scope.row.bIeXi === '—'&& scope.row.loading" class="loading-box">
|
<el-icon v-else-if="scope.row.bIeXi === '—'&& scope.row.loading" class="loading-box">
|
||||||
@@ -230,8 +260,11 @@
|
|||||||
class="item"
|
class="item"
|
||||||
effect="dark"
|
effect="dark"
|
||||||
placement="bottom-start"
|
placement="bottom-start"
|
||||||
:content="'电流L3系数校准不合格原因:'+scope.row.cIeData"
|
|
||||||
>
|
>
|
||||||
|
<template #content>
|
||||||
|
误差范围: {{ -0.5 + "~" +0.5 }}<br/>
|
||||||
|
误差值:{{ scope.row.cI }}
|
||||||
|
</template>
|
||||||
<el-tag type="danger" class="tooltip-content">
|
<el-tag type="danger" class="tooltip-content">
|
||||||
{{ scope.row.cIeXi }}
|
{{ scope.row.cIeXi }}
|
||||||
</el-tag>
|
</el-tag>
|
||||||
@@ -241,8 +274,11 @@
|
|||||||
class="item"
|
class="item"
|
||||||
effect="dark"
|
effect="dark"
|
||||||
placement="bottom-start"
|
placement="bottom-start"
|
||||||
:content="'电流L3系数校准合格原因:'+scope.row.cIeData"
|
|
||||||
>
|
>
|
||||||
|
<template #content>
|
||||||
|
误差范围: {{ -0.5 + "~" +0.5 }}<br/>
|
||||||
|
误差值:{{ scope.row.cI }}
|
||||||
|
</template>
|
||||||
<el-tag type="success" class="tooltip-content">{{ scope.row.cIeXi }}</el-tag>
|
<el-tag type="success" class="tooltip-content">{{ scope.row.cIeXi }}</el-tag>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<el-icon v-else-if="scope.row.cIeXi === '—'&& scope.row.loading" class="loading-box">
|
<el-icon v-else-if="scope.row.cIeXi === '—'&& scope.row.loading" class="loading-box">
|
||||||
@@ -257,13 +293,22 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup name="ErrorSystemDialog">
|
<script lang="ts" setup name="ErrorSystemDialog">
|
||||||
import { defineProps } from 'vue';
|
import { defineProps, type PropType } from 'vue';
|
||||||
import { ElIcon, ElLoading, ElTag } from 'element-plus';
|
import { ElIcon, ElLoading, ElTag } from 'element-plus';
|
||||||
import type { ChannelsTest } from '@/api/home/interface/channelsTest';
|
import type { ChannelsTest } from '@/api/home/interface/channelsTest';
|
||||||
|
import { number } from 'echarts';
|
||||||
|
|
||||||
const props = defineProps<{
|
interface Props {
|
||||||
tableData: Array<ChannelsTest.CoefficientVO>;
|
tableData: ChannelsTest.CoefficientVO[];
|
||||||
}>();
|
big_V_loading: boolean;
|
||||||
|
curV: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
const props = withDefaults(defineProps<Props>(), {
|
||||||
|
tableData: () => [],
|
||||||
|
big_V_loading: false,
|
||||||
|
curV: 0,
|
||||||
|
});
|
||||||
|
|
||||||
function objectSpanMethod({ row, column, rowIndex, columnIndex }: { row: any, column: any, rowIndex: number, columnIndex: number }) {
|
function objectSpanMethod({ row, column, rowIndex, columnIndex }: { row: any, column: any, rowIndex: number, columnIndex: number }) {
|
||||||
if (columnIndex === 0) {
|
if (columnIndex === 0) {
|
||||||
|
|||||||
@@ -968,7 +968,7 @@ const handleTest = async (val:string) => {
|
|||||||
const data = reactive({
|
const data = reactive({
|
||||||
socketServe: socketClient.Instance,
|
socketServe: socketClient.Instance,
|
||||||
});
|
});
|
||||||
const url = 'ws://localhost:7777/hello?name=cdf';
|
const url = 'ws://192.168.1.127:7777/hello?name=cdf';
|
||||||
socketClient.Instance.connect(url);
|
socketClient.Instance.connect(url);
|
||||||
data.socketServe = socketClient.Instance;
|
data.socketServe = socketClient.Instance;
|
||||||
data.socketServe.registerCallBack('aaa', (res: { code: number; }) => {
|
data.socketServe.registerCallBack('aaa', (res: { code: number; }) => {
|
||||||
|
|||||||
@@ -38,6 +38,9 @@ import { useAuthStore } from "@/stores/modules/auth";
|
|||||||
import model from "./tabs/model.vue";
|
import model from "./tabs/model.vue";
|
||||||
import dashboard from "./tabs/dashboard.vue";
|
import dashboard from "./tabs/dashboard.vue";
|
||||||
import { onMounted, ref } from "vue";
|
import { onMounted, ref } from "vue";
|
||||||
|
defineOptions({
|
||||||
|
name: 'home'
|
||||||
|
})
|
||||||
const authStore = useAuthStore();
|
const authStore = useAuthStore();
|
||||||
|
|
||||||
const activeIndex = ref("1-1");
|
const activeIndex = ref("1-1");
|
||||||
|
|||||||
@@ -28,6 +28,11 @@ import logDataList from '@/api/system/log/logData'
|
|||||||
import type { ColumnProps, ProTableInstance } from '@/components/ProTable/interface'
|
import type { ColumnProps, ProTableInstance } from '@/components/ProTable/interface'
|
||||||
import { reactive,ref,watch } from 'vue'
|
import { reactive,ref,watch } from 'vue'
|
||||||
import { useDictStore } from '@/stores/modules/dict'
|
import { useDictStore } from '@/stores/modules/dict'
|
||||||
|
|
||||||
|
defineOptions({
|
||||||
|
name: 'log'
|
||||||
|
})
|
||||||
|
|
||||||
let multipleSelection = ref<string[]>([])
|
let multipleSelection = ref<string[]>([])
|
||||||
const logData = logDataList
|
const logData = logDataList
|
||||||
const dictStore = useDictStore()
|
const dictStore = useDictStore()
|
||||||
@@ -37,6 +42,10 @@ const excludedUnits = ['季度','年']; // 要排除的单位
|
|||||||
const defaultUnits = '日'; // 默认的单位
|
const defaultUnits = '日'; // 默认的单位
|
||||||
// ProTable 实例
|
// ProTable 实例
|
||||||
const proTable = ref<ProTableInstance>()
|
const proTable = ref<ProTableInstance>()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 表格配置项
|
// 表格配置项
|
||||||
const columns = reactive<ColumnProps<Sys_Log_Audit.Audit_LogList>[]>([
|
const columns = reactive<ColumnProps<Sys_Log_Audit.Audit_LogList>[]>([
|
||||||
{ type: 'selection', fixed: 'left', width: 70 },
|
{ type: 'selection', fixed: 'left', width: 70 },
|
||||||
|
|||||||
@@ -43,7 +43,9 @@ import { getPqDevList, deletePqDev, exportPqDev, downloadTemplate, importPqDev,g
|
|||||||
import { ElMessageBox } from 'element-plus'
|
import { ElMessageBox } from 'element-plus'
|
||||||
import { computed, onBeforeMount, onMounted, reactive, ref } from 'vue'
|
import { computed, onBeforeMount, onMounted, reactive, ref } from 'vue'
|
||||||
import { useModeStore , useAppSceneStore} from '@/stores/modules/mode'; // 引入模式 store
|
import { useModeStore , useAppSceneStore} from '@/stores/modules/mode'; // 引入模式 store
|
||||||
|
defineOptions({
|
||||||
|
name: 'device'
|
||||||
|
})
|
||||||
const modeStore = useModeStore();
|
const modeStore = useModeStore();
|
||||||
const dictStore = useDictStore()
|
const dictStore = useDictStore()
|
||||||
const appSceneStore = useAppSceneStore()
|
const appSceneStore = useAppSceneStore()
|
||||||
|
|||||||
@@ -37,6 +37,9 @@ import ErrorStandardPopup from '@/views/machine/errorSystem/components/errorStan
|
|||||||
import type { ErrorSystem } from '@/api/device/interface/error'
|
import type { ErrorSystem } from '@/api/device/interface/error'
|
||||||
import { useDictStore } from '@/stores/modules/dict'
|
import { useDictStore } from '@/stores/modules/dict'
|
||||||
import { getPqErrSysList, deletePqErrSys} from '@/api/device/error/index'
|
import { getPqErrSysList, deletePqErrSys} from '@/api/device/error/index'
|
||||||
|
defineOptions({
|
||||||
|
name: 'errorSystem'
|
||||||
|
})
|
||||||
const dictStore = useDictStore()
|
const dictStore = useDictStore()
|
||||||
// ProTable 实例
|
// ProTable 实例
|
||||||
const proTable = ref<ProTableInstance>()
|
const proTable = ref<ProTableInstance>()
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ import ValueTypePopup from './components/valueTypePopup.vue'
|
|||||||
import { computed, reactive, ref } from 'vue'
|
import { computed, reactive, ref } from 'vue'
|
||||||
import { useModeStore } from '@/stores/modules/mode'; // 引入模式 store
|
import { useModeStore } from '@/stores/modules/mode'; // 引入模式 store
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: '/testScript'
|
name: 'testScript'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -43,6 +43,9 @@
|
|||||||
} from '@/api/device/testSource/index'
|
} from '@/api/device/testSource/index'
|
||||||
import { reactive, ref } from 'vue'
|
import { reactive, ref } from 'vue'
|
||||||
import { useModeStore } from '@/stores/modules/mode'; // 引入模式 store
|
import { useModeStore } from '@/stores/modules/mode'; // 引入模式 store
|
||||||
|
defineOptions({
|
||||||
|
name: 'testSource'
|
||||||
|
})
|
||||||
const testSourcePopup = ref()
|
const testSourcePopup = ref()
|
||||||
const dictStore = useDictStore()
|
const dictStore = useDictStore()
|
||||||
const modeStore = useModeStore();
|
const modeStore = useModeStore();
|
||||||
|
|||||||
@@ -64,6 +64,10 @@ import {getTestSourceById} from '@/api/device/testSource/index'
|
|||||||
import ImportExcel from "@/components/ImportExcel/index.vue";
|
import ImportExcel from "@/components/ImportExcel/index.vue";
|
||||||
import {useDownload} from "@/hooks/useDownload";
|
import {useDownload} from "@/hooks/useDownload";
|
||||||
import {exportPqDev} from "@/api/device/device";
|
import {exportPqDev} from "@/api/device/device";
|
||||||
|
|
||||||
|
defineOptions({
|
||||||
|
name: 'planList'
|
||||||
|
})
|
||||||
const dictStore = useDictStore()
|
const dictStore = useDictStore()
|
||||||
const openDeviceView = ref()
|
const openDeviceView = ref()
|
||||||
const openSourceView = ref()
|
const openSourceView = ref()
|
||||||
|
|||||||
@@ -176,6 +176,7 @@ import {
|
|||||||
Search,
|
Search,
|
||||||
} from "@element-plus/icons-vue";
|
} from "@element-plus/icons-vue";
|
||||||
import { getPlanList } from "@/api/plan/planList";
|
import { getPlanList } from "@/api/plan/planList";
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const value1 = ref("");
|
const value1 = ref("");
|
||||||
const value2 = ref("");
|
const value2 = ref("");
|
||||||
|
|||||||
@@ -192,7 +192,9 @@
|
|||||||
import {getRegRes,updateRegRes } from '@/api/system/versionRegister/index'
|
import {getRegRes,updateRegRes } from '@/api/system/versionRegister/index'
|
||||||
import { ElMessage, FormItemRule } from 'element-plus'
|
import { ElMessage, FormItemRule } from 'element-plus'
|
||||||
import { useModeStore } from '@/stores/modules/mode'; // 引入模式 store
|
import { useModeStore } from '@/stores/modules/mode'; // 引入模式 store
|
||||||
|
defineOptions({
|
||||||
|
name: 'base'
|
||||||
|
})
|
||||||
|
|
||||||
const modeStore = useModeStore();
|
const modeStore = useModeStore();
|
||||||
const dictStore = useDictStore()
|
const dictStore = useDictStore()
|
||||||
|
|||||||
@@ -33,7 +33,9 @@ import {useHandleData} from '@/hooks/useHandleData'
|
|||||||
import {deleteDictData, getDictDataListByTypeId, exportDictData} from "@/api/system/dictionary/dictData/index";
|
import {deleteDictData, getDictDataListByTypeId, exportDictData} from "@/api/system/dictionary/dictData/index";
|
||||||
import {useDownload} from "@/hooks/useDownload";
|
import {useDownload} from "@/hooks/useDownload";
|
||||||
import {exportDictType} from "@/api/system/dictionary/dictType";
|
import {exportDictType} from "@/api/system/dictionary/dictType";
|
||||||
|
defineOptions({
|
||||||
|
name: 'dict'
|
||||||
|
})
|
||||||
const proTable = ref<ProTableInstance>()
|
const proTable = ref<ProTableInstance>()
|
||||||
const dialogVisible = ref(false)
|
const dialogVisible = ref(false)
|
||||||
//字典数据所属的字典类型Id
|
//字典数据所属的字典类型Id
|
||||||
|
|||||||
@@ -34,7 +34,9 @@ import {
|
|||||||
deleteDictPq,
|
deleteDictPq,
|
||||||
} from '@/api/system/dictionary/dictPq'
|
} from '@/api/system/dictionary/dictPq'
|
||||||
import { reactive, ref } from 'vue'
|
import { reactive, ref } from 'vue'
|
||||||
|
defineOptions({
|
||||||
|
name: 'dictPq'
|
||||||
|
})
|
||||||
const dictStore = useDictStore()
|
const dictStore = useDictStore()
|
||||||
const proTable = ref<ProTableInstance>()
|
const proTable = ref<ProTableInstance>()
|
||||||
const pqPopup = ref()
|
const pqPopup = ref()
|
||||||
|
|||||||
@@ -33,7 +33,9 @@
|
|||||||
deleteDictTree,
|
deleteDictTree,
|
||||||
} from '@/api/system/dictionary/dictTree'
|
} from '@/api/system/dictionary/dictTree'
|
||||||
import { reactive, ref } from 'vue'
|
import { reactive, ref } from 'vue'
|
||||||
|
defineOptions({
|
||||||
|
name: 'dictTree'
|
||||||
|
})
|
||||||
const dictStore = useDictStore()
|
const dictStore = useDictStore()
|
||||||
|
|
||||||
const proTable = ref<ProTableInstance>()
|
const proTable = ref<ProTableInstance>()
|
||||||
|
|||||||
@@ -35,7 +35,9 @@ import { useViewSize } from '@/hooks/useViewSize'
|
|||||||
import { useDownload } from '@/hooks/useDownload'
|
import { useDownload } from '@/hooks/useDownload'
|
||||||
import { deleteDictType, getDictTypeList, exportDictType } from '@/api/system/dictionary/dictType'
|
import { deleteDictType, getDictTypeList, exportDictType } from '@/api/system/dictionary/dictType'
|
||||||
import { reactive, ref } from 'vue'
|
import { reactive, ref } from 'vue'
|
||||||
|
defineOptions({
|
||||||
|
name: 'dict'
|
||||||
|
})
|
||||||
const { popupBaseView, viewWidth, viewHeight } = useViewSize()
|
const { popupBaseView, viewWidth, viewHeight } = useViewSize()
|
||||||
|
|
||||||
const proTable = ref<ProTableInstance>()
|
const proTable = ref<ProTableInstance>()
|
||||||
|
|||||||
Reference in New Issue
Block a user