修改调度命令报错,添加中转识别号

This commit is contained in:
dong 2022-07-08 11:14:36 +08:00
parent 998f5dbced
commit 5b191b60b7
2 changed files with 21 additions and 14 deletions

View File

@ -192,6 +192,7 @@ export default {
return 'unsigned-row';
},
doShow() {
this.currentInfo = {};
this.searchCmd();
this.dialogShow = true;
this.$store.commit('socket/clearDispatchCommandMsg');
@ -200,6 +201,7 @@ export default {
this.dialogShow = false;
},
handleCurrentChange(obj) {
if (!obj) { return; }
this.currentInfo = obj;
if (!this.getSignInfo(obj.receiverInfos).receivedTime) {
const data = {

View File

@ -46,7 +46,7 @@
<div v-show="active1" class="left-table1">
<el-table ref="table1" :data="cacheTableData" border style="width: 100%" height="100" highlight-current-row @current-change="handleCurrentChange($event, 'table1')">
<el-table-column prop="number" label="命令号" width="80" />
<el-table-column prop="deviceName" label="识别号" width="80" />
<el-table-column prop="transferNumber" label="识别号" width="80" />
<el-table-column prop="title" label="命令标题" show-overflow-tooltip />
<el-table-column prop="sendTime" label="接收单位" show-overflow-tooltip width="160">
<template slot-scope="scope">
@ -160,22 +160,25 @@
<div class="middle">
<el-tabs v-model="cmdTab" type="border-card">
<el-tab-pane label="调度命令" name="cmd">
<el-form ref="form" :model="command" label-width="80px">
<el-form ref="form" :model="command" label-width="85px">
<el-form-item label="命令标题">
<el-input v-model="command.title" />
</el-form-item>
<el-row>
<el-col :span="12">
<el-form-item label="命令号">
<el-input v-model="command.number" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="发令时间">
<el-date-picker v-model="command.sendTime" type="datetime" placeholder="选择日期时间" style="width: 100%;" value-format="yyyy-MM-dd HH:mm:ss" />
</el-form-item>
</el-col>
</el-row>
<el-col :span="12">
<el-form-item label="命令号">
<el-input v-model="command.number" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="中转识别号">
<el-input v-model="command.transferNumber" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="发令时间">
<el-date-picker v-model="command.sendTime" type="datetime" placeholder="选择日期时间" style="width: 100%;" value-format="yyyy-MM-dd HH:mm:ss" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="发令人">
<el-select v-model="command.senderName" disabled placeholder="请选择" style="width: 100%;" @change="senderChange">
@ -322,6 +325,7 @@ export default {
command: {
title: '',
number: '',
transferNumber: '',
sendTime: '',
senderId: '',
senderName: '',
@ -520,6 +524,7 @@ export default {
this.command = {
title: '',
number: '',
transferNumber: '',
sendTime: '',
senderId: '',
senderName: this.command.senderName,