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

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