西安一强制站控转为站控调整

This commit is contained in:
fan 2022-12-27 18:04:28 +08:00
parent 56bfd76ba6
commit edadc872ed

View File

@ -31,7 +31,7 @@
<el-row>
<el-col :span="9">
<el-form-item :label="$t('menu.passiveDialog.alarmDate')">
<el-date-picker v-model="model.alarmDate" type="datetime" :placeholder="$t('menu.passiveDialog.selectDate')" disabled />
<el-input v-model="model.alarmDate" disabled />
</el-form-item>
</el-col>
<el-col :span="7">
@ -85,7 +85,7 @@
import { mapGetters } from 'vuex';
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
import { UserOperationType } from '@/scripts/ConstDic';
import { parseTime } from '@/utils/index';
export default {
name: 'AlarmDetail',
data() {
@ -126,19 +126,15 @@ export default {
},
watch: {
'$store.state.socket.msgHead': function (elem) {
if (elem && elem.type == 'resp' && elem.agree) {
if (elem.agree) {
const operate = this.$store.state.training.operate;
const control = this.$store.getters['map/getDeviceByCode'](elem.stationControlCode);
const station = this.$store.getters['map/getDeviceByCode'](control.stationCode);
const newOperate = {
type: operate.type,
name: station.name,
currentMode: elem.currentMode
};
this.doShow(newOperate);
}
if (elem && elem.success) {
const operate = this.$store.state.training.operate;
const station = this.$store.getters['map/getDeviceByCode'](elem.stationCodes[0]);
const newOperate = {
type: operate.type,
name: station.name,
currentMode: elem.currentMode
};
this.doShow(newOperate);
}
}
},
@ -151,7 +147,7 @@ export default {
moduleName: this.$t('menu.passiveDialog.cmmControlModeConversionMode'),
level: this.$t('menu.passiveDialog.zeroLevelAlarm'),
confirm: this.$t('menu.passiveDialog.confirmStatus'),
alarmDate: new Date(),
alarmDate: parseTime(this.$store.state.training.initTime),
type: this.$t('menu.passiveDialog.systemEvent'),
childType: this.$t('menu.passiveDialog.childTypeTips'),
timeSummary: this.$t('menu.passiveDialog.controlModeSummary'),