测试去掉集中站
This commit is contained in:
parent
d94ae6b975
commit
c06a9d7e85
@ -9,7 +9,6 @@ export function mockLocalDemoTestSet(
|
||||
alertType: string,
|
||||
data: {
|
||||
lineId: number;
|
||||
rtuId: number;
|
||||
deviceInfos: { deviceName: string; deviceType: string }[];
|
||||
status: string;
|
||||
groupId?: string;
|
||||
|
@ -114,7 +114,8 @@ export const GuardConfigTypeData = {
|
||||
},
|
||||
};
|
||||
|
||||
export function isArraysEqual(arr1: string[], arr2: string[]) {
|
||||
type findType = string | number;
|
||||
export function isArraysEqual(arr1: findType[], arr2: findType[]) {
|
||||
if (arr1.length !== arr2.length) {
|
||||
return false;
|
||||
}
|
||||
|
@ -19,14 +19,6 @@
|
||||
lazy-rules
|
||||
:rules="[(val) => val || '请输入线路ID!']"
|
||||
/>
|
||||
<q-input
|
||||
outlined
|
||||
label="集中站ID"
|
||||
v-model.number="setAlartTextData.rtuId"
|
||||
type="number"
|
||||
lazy-rules
|
||||
:rules="[(val) => val || '请输入集中站ID!']"
|
||||
/>
|
||||
<q-select
|
||||
outlined
|
||||
label="故障类型"
|
||||
@ -109,14 +101,12 @@ import { isArraysEqual, saveAlertTypeData } from './alarmInfoEnum';
|
||||
const lineStore = useLineStore();
|
||||
const setAlartTextData = ref<{
|
||||
lineId: string;
|
||||
rtuId: string;
|
||||
alertType: string;
|
||||
deviceInfos: { deviceName: string; deviceType: string }[];
|
||||
status: string;
|
||||
groupId: string;
|
||||
}>({
|
||||
lineId: '',
|
||||
rtuId: '',
|
||||
alertType: '',
|
||||
deviceInfos: [],
|
||||
status: '',
|
||||
@ -221,7 +211,6 @@ async function onSubmit() {
|
||||
try {
|
||||
const params = {
|
||||
lineId: +setAlartTextData.value.lineId,
|
||||
rtuId: +setAlartTextData.value.rtuId,
|
||||
deviceInfos: setAlartTextData.value.deviceInfos,
|
||||
status: setAlartTextData.value.status,
|
||||
groupId: setAlartTextData.value.groupId,
|
||||
@ -266,7 +255,6 @@ function clearSelect() {
|
||||
function onReset() {
|
||||
setAlartTextData.value = {
|
||||
lineId: lineStore.lineId as unknown as string,
|
||||
rtuId: '',
|
||||
alertType: '',
|
||||
deviceInfos: [],
|
||||
status: '',
|
||||
|
@ -115,7 +115,7 @@ onMounted(() => {
|
||||
.queryStore.queryByType<Station>(Station.Type);
|
||||
centralizedStations.value = [{ label: '', value: 0 }];
|
||||
stations.forEach((station) => {
|
||||
if (station.datas.concentrationStations) {
|
||||
if (station.datas.concentrationStations || station.datas.depots) {
|
||||
centralizedStations.value.push({
|
||||
label: station.datas.name,
|
||||
value: station.datas.id,
|
||||
|
Loading…
Reference in New Issue
Block a user