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