西安一强制站控转为站控调整
This commit is contained in:
parent
56bfd76ba6
commit
edadc872ed
@ -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,21 +126,17 @@ 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 control = this.$store.getters['map/getDeviceByCode'](elem.stationControlCode);
|
const station = this.$store.getters['map/getDeviceByCode'](elem.stationCodes[0]);
|
||||||
const station = this.$store.getters['map/getDeviceByCode'](control.stationCode);
|
|
||||||
const newOperate = {
|
const newOperate = {
|
||||||
type: operate.type,
|
type: operate.type,
|
||||||
name: station.name,
|
name: station.name,
|
||||||
currentMode: elem.currentMode
|
currentMode: elem.currentMode
|
||||||
};
|
};
|
||||||
|
|
||||||
this.doShow(newOperate);
|
this.doShow(newOperate);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
doShow(operate) {
|
doShow(operate) {
|
||||||
@ -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'),
|
||||||
|
Loading…
Reference in New Issue
Block a user