泰国翻译
This commit is contained in:
parent
334710bb94
commit
4c65f22c8a
@ -60,14 +60,14 @@ export default {
|
||||
isShow: (section, work) => ['01', '02', '03'].includes(section.type)
|
||||
},
|
||||
{
|
||||
label: '分路不良',
|
||||
label: 'Bad split',
|
||||
handler: this.forkDirective,
|
||||
cmdType: CMD.Section.CMD_SECTION_DEFECTIVE_SHUNTING,
|
||||
isDisabled: (section, station, work) => station.controlMode === 'Interlock' && work === 'ctcWork',
|
||||
isShow: (section, work) => ['01', '02', '03'].includes(section.type) && work === 'ctcWork'
|
||||
},
|
||||
{
|
||||
label: '空闲',
|
||||
label: 'Spare',
|
||||
handler: this.cancleForkDirective,
|
||||
cmdType: CMD.Section.CMD_SECTION_DEFECTIVE_SHUNTING,
|
||||
isDisabled: (section, station, work) => station.controlMode === 'Interlock' && work === 'ctcWork',
|
||||
|
@ -60,20 +60,20 @@
|
||||
{{ $t('login.unableToLogin') }}
|
||||
</div>
|
||||
</el-popover> -->
|
||||
<div class="popover_box active" @click="registerUser">
|
||||
{{ $t('login.registerAccount') }}
|
||||
</div>
|
||||
<!-- <div class="popover_box active" @click="registerUser">-->
|
||||
<!-- {{ $t('login.registerAccount') }}-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
<el-form-item>
|
||||
<el-button type="primary" style="width:100%;" @click.native.prevent="handleLogin">
|
||||
{{ $t('login.login') }}
|
||||
Login
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
<div v-if="!localProject" style="display: inline-block;width: 100%;">
|
||||
<div class="popover_box active" style="bottom: 50px;" @click="forgetPassword">
|
||||
{{ $t('login.forgetPassword') }}
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div v-if="!localProject" style="display: inline-block;width: 100%;">-->
|
||||
<!-- <div class="popover_box active" style="bottom: 50px;" @click="forgetPassword">-->
|
||||
<!-- {{ $t('login.forgetPassword') }}-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
</el-form>
|
||||
</template>
|
||||
<script>
|
||||
|
@ -4,27 +4,27 @@
|
||||
<el-col :span="5" style="height: 100%;">
|
||||
<div class="left">
|
||||
<el-tabs v-model="activeTab" type="border-card" @tab-click="tabClick">
|
||||
<el-tab-pane label="操作" name="operate">
|
||||
<el-tab-pane label="Operation" name="operate">
|
||||
<div class="operate-box">
|
||||
<div class="create-cmd">
|
||||
<!-- <span>数据库正常</span> -->
|
||||
<div>
|
||||
<el-select v-model="numTime" placeholder="请选择" style="width: 66px;">
|
||||
<el-select v-model="numTime" placeholder="Please select" style="width: 66px;">
|
||||
<el-option label="24" value="24" />
|
||||
<el-option label="12" value="12" />
|
||||
</el-select>
|
||||
<span>小时</span>
|
||||
<span>Hour</span>
|
||||
</div>
|
||||
<span style="width: 85px; font-weight: bold; text-align: end;">{{ getSimulationTime }}</span>
|
||||
</div>
|
||||
<div class="create-cmd">
|
||||
<!-- <span>通信正常</span> -->
|
||||
<el-button :id="getDomObj('refreshSearch').domId" type="primary" @click="refreshSearch">刷新</el-button>
|
||||
<el-button :id="getDomObj('createCmd').domId" type="primary" style="width: 100px" @click="createCmd">新建调度命令</el-button>
|
||||
<el-button :id="getDomObj('refreshSearch').domId" type="primary" @click="refreshSearch">Refresh</el-button>
|
||||
<el-button :id="getDomObj('createCmd').domId" type="primary" style="width: 100px" @click="createCmd">New scheduling command</el-button>
|
||||
</div>
|
||||
<div class="box-title">
|
||||
<div class="contant-null" />
|
||||
<div class="contant-text">缓存命令</div>
|
||||
<div class="contant-text">Cache command</div>
|
||||
<div class="contant-icon" @click="activeChange('active1')">
|
||||
<i v-if="active1" class="el-icon-arrow-down" />
|
||||
<i v-else class="el-icon-arrow-up" />
|
||||
@ -32,31 +32,31 @@
|
||||
</div>
|
||||
<div v-show="active1" class="left-table1">
|
||||
<el-table ref="table1" :data="filterDisCmdData('Cache')" border style="width: 100%" :height="operateTableHeight" highlight-current-row @current-change="handleCurrentChange($event, 'table1')">
|
||||
<el-table-column prop="cmdCode" label="命令号" width="80" />
|
||||
<el-table-column prop="transitId" label="识别号" width="80" />
|
||||
<el-table-column prop="title" label="命令标题" show-overflow-tooltip />
|
||||
<el-table-column label="接收单位" show-overflow-tooltip width="160">
|
||||
<el-table-column prop="cmdCode" label="Command number" width="80" />
|
||||
<el-table-column prop="transitId" label="Identification number" width="80" />
|
||||
<el-table-column prop="title" label="Command title" show-overflow-tooltip />
|
||||
<el-table-column label="Receiving Unit" show-overflow-tooltip width="160">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ JoinDeviceNameStr(scope.row.rcvCompanies) || '' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="sender" label="发令人" />
|
||||
<el-table-column label="发令单位">
|
||||
<el-table-column prop="sender" label="Sender" />
|
||||
<el-table-column label="Issuing Unit">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ scope.row.sendCompany ? scope.row.sendCompany.name: '' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="命令类型" width="100">
|
||||
<el-table-column label="Order Type" width="100">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ typeObj[scope.row.type] || '' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="content" label="命令正文" show-overflow-tooltip />
|
||||
<el-table-column prop="content" label="Body of order" show-overflow-tooltip />
|
||||
</el-table>
|
||||
</div>
|
||||
<div class="box-title">
|
||||
<div class="contant-null" />
|
||||
<div class="contant-text">接受命令</div>
|
||||
<div class="contant-text">Accepted order</div>
|
||||
<div class="contant-icon" @click="activeChange('active2')">
|
||||
<i v-if="active2" class="el-icon-arrow-down" />
|
||||
<i v-else class="el-icon-arrow-up" />
|
||||
@ -64,31 +64,31 @@
|
||||
</div>
|
||||
<div v-show="active2" class="left-table1">
|
||||
<el-table ref="table2" :data="filterDisCmdData('Receive')" border style="width: 100%" :height="operateTableHeight" highlight-current-row @current-change="handleCurrentChange($event, 'table2')">
|
||||
<el-table-column prop="cmdCode" label="命令号" width="80" />
|
||||
<el-table-column prop="title" label="命令标题" show-overflow-tooltip />
|
||||
<el-table-column label="接收单位" show-overflow-tooltip width="160">
|
||||
<el-table-column prop="cmdCode" label="Command number" width="80" />
|
||||
<el-table-column prop="title" label="Command title" show-overflow-tooltip />
|
||||
<el-table-column label="Receiving Unit" show-overflow-tooltip width="160">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ JoinDeviceNameStr(scope.row.rcvCompanies) || '' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="sendTime" label="发令时间" />
|
||||
<el-table-column prop="sender" label="发令人" />
|
||||
<el-table-column label="发令单位">
|
||||
<el-table-column prop="sendTime" label="Time of issuance" />
|
||||
<el-table-column prop="sender" label="Sender" />
|
||||
<el-table-column label="Issuing Unit">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ scope.row.sendCompany ? scope.row.sendCompany.name: '' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="命令类型" width="100">
|
||||
<el-table-column label="Order Type" width="100">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ typeObj[scope.row.type] || '' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="content" label="命令正文" show-overflow-tooltip />
|
||||
<el-table-column prop="content" label="Body of order" show-overflow-tooltip />
|
||||
</el-table>
|
||||
</div>
|
||||
<div class="box-title">
|
||||
<div class="contant-null" />
|
||||
<div class="contant-text">发送命令</div>
|
||||
<div class="contant-text">Order sent</div>
|
||||
<div class="contant-icon" @click="activeChange('active3')">
|
||||
<i v-if="active3" class="el-icon-arrow-down" />
|
||||
<i v-else class="el-icon-arrow-up" />
|
||||
@ -96,31 +96,31 @@
|
||||
</div>
|
||||
<div v-show="active3" class="left-table1">
|
||||
<el-table ref="table3" :data="filterDisCmdData('Sent')" border style="width: 100%" :height="operateTableHeight" highlight-current-row @current-change="handleCurrentChange($event, 'table3')">
|
||||
<el-table-column prop="cmdCode" label="命令号" width="80" />
|
||||
<el-table-column prop="title" label="命令标题" show-overflow-tooltip />
|
||||
<el-table-column label="接收单位" show-overflow-tooltip width="160">
|
||||
<el-table-column prop="cmdCode" label="Command number" width="80" />
|
||||
<el-table-column prop="title" label="Command title" show-overflow-tooltip />
|
||||
<el-table-column label="Receiving Unit" show-overflow-tooltip width="160">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ JoinDeviceNameStr(scope.row.rcvCompanies) || '' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="sendTime" label="发令时间" width="160" />
|
||||
<el-table-column prop="sender" label="发令人" />
|
||||
<el-table-column label="发令单位">
|
||||
<el-table-column prop="sendTime" label="Time of issuance" width="160" />
|
||||
<el-table-column prop="sender" label="Sender" />
|
||||
<el-table-column label="Issuing Unit">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ scope.row.sendCompany ? scope.row.sendCompany.name: '' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="命令类型" width="100">
|
||||
<el-table-column label="Order Type" width="100">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ typeObj[scope.row.type] || '' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="content" label="命令正文" show-overflow-tooltip />
|
||||
<el-table-column prop="content" label="Body of order" show-overflow-tooltip />
|
||||
</el-table>
|
||||
</div>
|
||||
<div class="box-title">
|
||||
<div class="contant-null" />
|
||||
<div class="contant-text">签收完成</div>
|
||||
<div class="contant-text">Sign off completed</div>
|
||||
<div class="contant-icon" @click="activeChange('active4')">
|
||||
<i v-if="active4" class="el-icon-arrow-down" />
|
||||
<i v-else class="el-icon-arrow-up" />
|
||||
@ -128,35 +128,35 @@
|
||||
</div>
|
||||
<div v-show="active4" class="left-table1">
|
||||
<el-table ref="table4" :data="filterDisCmdData('Signed')" border style="width: 100%" :height="operateTableHeight" highlight-current-row @current-change="handleCurrentChange($event, 'table4')">
|
||||
<el-table-column prop="cmdCode" label="命令号" width="80" />
|
||||
<el-table-column prop="title" label="命令标题" show-overflow-tooltip />
|
||||
<el-table-column label="接收单位" show-overflow-tooltip width="160">
|
||||
<el-table-column prop="cmdCode" label="Command number" width="80" />
|
||||
<el-table-column prop="title" label="Command title" show-overflow-tooltip />
|
||||
<el-table-column label="Receiving Unit" show-overflow-tooltip width="160">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ JoinDeviceNameStr(scope.row.rcvCompanies) || '' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="sendTime" label="发令时间" width="160" />
|
||||
<el-table-column prop="sender" label="发令人" />
|
||||
<el-table-column label="发令单位">
|
||||
<el-table-column prop="sendTime" label="Time of issuance" width="160" />
|
||||
<el-table-column prop="sender" label="Sender" />
|
||||
<el-table-column label="Issuing Unit">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ scope.row.sendCompany ? scope.row.sendCompany.name: '' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="命令类型" width="100">
|
||||
<el-table-column label="Order Type" width="100">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ typeObj[scope.row.type] || '' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="content" label="命令正文" show-overflow-tooltip />
|
||||
<el-table-column prop="content" label="Body of order" show-overflow-tooltip />
|
||||
</el-table>
|
||||
</div>
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="查询" name="search">
|
||||
<el-tab-pane label="Query" name="search">
|
||||
<div class="search-box">
|
||||
<div class="box-title">
|
||||
<div class="contant-null" />
|
||||
<div class="contant-text">查询条件</div>
|
||||
<div class="contant-text">Query criteria</div>
|
||||
<div class="contant-icon" @click="activeChange('active5')">
|
||||
<i v-if="active1" class="el-icon-arrow-down" />
|
||||
<i v-else class="el-icon-arrow-up" />
|
||||
@ -164,44 +164,44 @@
|
||||
</div>
|
||||
<div v-show="active5" class="search-condition">
|
||||
<div class="condition-top">
|
||||
<el-radio v-model="searchObj.timeType" label="1">时间范围</el-radio>
|
||||
<el-radio v-model="searchObj.timeType" label="2">精确匹配发令时间</el-radio>
|
||||
<el-radio v-model="searchObj.timeType" label="1">Time Range</el-radio>
|
||||
<el-radio v-model="searchObj.timeType" label="2">Exact match of time of issue</el-radio>
|
||||
</div>
|
||||
<div class="condition-border" style="padding: 5px 10px">
|
||||
<div v-if="searchObj.timeType==1">
|
||||
<div class="condition-row">
|
||||
<span style="margin-right: 5px">从</span>
|
||||
<el-date-picker v-model="searchObj.startTime" style="flex: 1" type="datetime" placeholder="选择日期时间" value-format="yyyy-MM-dd HH:mm:ss" />
|
||||
<span style="margin-right: 5px">from</span>
|
||||
<el-date-picker v-model="searchObj.startTime" style="flex: 1" type="datetime" placeholder="Select date and time" value-format="yyyy-MM-dd HH:mm:ss" />
|
||||
</div>
|
||||
<div class="condition-row">
|
||||
<span style="margin-right: 5px">至</span>
|
||||
<el-date-picker v-model="searchObj.endTime" style="flex: 1" type="datetime" placeholder="选择日期时间" value-format="yyyy-MM-dd HH:mm:ss" />
|
||||
<span style="margin-right: 5px">to</span>
|
||||
<el-date-picker v-model="searchObj.endTime" style="flex: 1" type="datetime" placeholder="Select date and time" value-format="yyyy-MM-dd HH:mm:ss" />
|
||||
</div>
|
||||
</div>
|
||||
<div v-else class="condition-row">
|
||||
<span style="margin-right: 5px">发令时间</span>
|
||||
<el-date-picker v-model="searchObj.sendTime" style="flex: 1" type="datetime" placeholder="选择日期时间" value-format="yyyy-MM-dd HH:mm:ss" />
|
||||
<span style="margin-right: 5px">Time of issuance</span>
|
||||
<el-date-picker v-model="searchObj.sendTime" style="flex: 1" type="datetime" placeholder="Select date and time" value-format="yyyy-MM-dd HH:mm:ss" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="condition-row">
|
||||
<el-checkbox v-model="searchObj.hasNumber">命令号</el-checkbox>
|
||||
<el-checkbox v-model="searchObj.hasNumber">Command number</el-checkbox>
|
||||
<el-input v-model="searchObj.cmdCode" />
|
||||
</div>
|
||||
<div class="condition-border">
|
||||
<div class="condition-row">
|
||||
<el-checkbox v-model="searchObj.hasCompanyOfSender">发令单位</el-checkbox>
|
||||
<el-checkbox v-model="searchObj.hasCompanyOfSender">Issuing Unit</el-checkbox>
|
||||
<el-input v-model="searchObj.sendCompany.name" />
|
||||
</div>
|
||||
<div class="condition-row">
|
||||
<el-checkbox v-model="searchObj.hasCompanyOfReceiver">受令单位</el-checkbox>
|
||||
<el-checkbox v-model="searchObj.hasCompanyOfReceiver">Ordered by</el-checkbox>
|
||||
<el-input v-model="searchObj.companyOfReceiver" />
|
||||
</div>
|
||||
<div>
|
||||
<el-checkbox v-model="searchObj.hasTitleKey">命令标题或者内容 关键字</el-checkbox>
|
||||
<el-checkbox v-model="searchObj.hasTitleKey">Command title or content keyword</el-checkbox>
|
||||
<el-input v-model="searchObj.titleKey" />
|
||||
</div>
|
||||
<div>
|
||||
<el-select v-model="searchObj.allSigned" placeholder="请选择">
|
||||
<el-select v-model="searchObj.allSigned" placeholder="Please select">
|
||||
<el-option
|
||||
v-for="item in searchSignedOption"
|
||||
:key="item.value"
|
||||
@ -212,32 +212,32 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="condition-btn">
|
||||
<el-button :id="getDomObj('search').domId" type="primary" @click="search">查询</el-button>
|
||||
<el-button type="primary" style="width: 100px" @click="clearCondition">清除</el-button>
|
||||
<el-button :id="getDomObj('search').domId" type="primary" @click="search">Query</el-button>
|
||||
<el-button type="primary" style="width: 100px" @click="clearCondition">Clear</el-button>
|
||||
</div>
|
||||
</div>
|
||||
<el-table ref="table5" class="search-table" :data="searchTable" border style="width: 100%" :height="searchTableHeight" highlight-current-row @current-change="handleCurrentChange($event, 'table5')">
|
||||
<el-table-column prop="cmdCode" label="命令号" width="80" />
|
||||
<el-table-column prop="transitId" label="识别号" width="80" />
|
||||
<el-table-column prop="title" label="命令标题" show-overflow-tooltip />
|
||||
<el-table-column label="接收单位" show-overflow-tooltip width="160">
|
||||
<el-table-column prop="cmdCode" label="Command number" width="80" />
|
||||
<el-table-column prop="transitId" label="Identification number" width="80" />
|
||||
<el-table-column prop="title" label="Command title" show-overflow-tooltip />
|
||||
<el-table-column label="Receiving Unit" show-overflow-tooltip width="160">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ JoinDeviceNameStr(scope.row.rcvCompanies) || '' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="sendTime" label="发令时间" width="160" />
|
||||
<el-table-column prop="sender" label="发令人" />
|
||||
<el-table-column label="发令单位">
|
||||
<el-table-column prop="sendTime" label="Time of issuance" width="160" />
|
||||
<el-table-column prop="sender" label="Sender" />
|
||||
<el-table-column label="Issuing Unit">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ scope.row.sendCompany ? scope.row.sendCompany.name: '' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="命令类型" width="100">
|
||||
<el-table-column label="Order Type" width="100">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ typeObj[scope.row.type] || '' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="content" label="命令正文" show-overflow-tooltip />
|
||||
<el-table-column prop="content" label="Body of order" show-overflow-tooltip />
|
||||
</el-table>
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
@ -247,34 +247,34 @@
|
||||
<el-col :span="15">
|
||||
<div class="middle">
|
||||
<el-tabs v-model="cmdTab" type="border-card" class="middle-padding">
|
||||
<el-tab-pane label="调度命令" name="cmd">
|
||||
<el-tab-pane label="Scheduling order" name="cmd">
|
||||
<el-form ref="form" :model="command" :rules="rules" label-width="95px">
|
||||
<el-form-item label="命令标题" prop="title">
|
||||
<el-form-item label="Command title" prop="title">
|
||||
<el-input v-model="command.title" />
|
||||
</el-form-item>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="命令号" prop="cmdCode">
|
||||
<el-form-item label="Command number" prop="cmdCode">
|
||||
<el-input v-model="command.cmdCode" disabled />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="中转识别号">
|
||||
<el-form-item label="Transit identification number">
|
||||
<el-input v-model="command.transitId" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="当前状态">
|
||||
<el-form-item label="Current status">
|
||||
<el-input v-model="currentStatus" disabled />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<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 label="Time of issuance">
|
||||
<el-date-picker v-model="command.sendTime" type="datetime" placeholder="Select date and time" style="width: 100%;" value-format="yyyy-MM-dd HH:mm:ss" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="发令人">
|
||||
<el-select v-model="command.sender" placeholder="请选择" style="width: 100%;" @change="senderChange">
|
||||
<el-form-item label="Sender">
|
||||
<el-select v-model="command.sender" placeholder="Please select" style="width: 100%;" @change="senderChange">
|
||||
<el-option
|
||||
v-for="item in memberDataList"
|
||||
:key="item.id"
|
||||
@ -285,18 +285,18 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="发令单位">
|
||||
<el-form-item label="Issuing Unit">
|
||||
<el-input v-model="command.sendCompany.name" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="授权时间">
|
||||
<el-date-picker v-model="command.authTime" type="datetime" placeholder="选择日期时间" style="width: 100%;" value-format="yyyy-MM-dd HH:mm:ss" />
|
||||
<el-form-item label="Authorisation time">
|
||||
<el-date-picker v-model="command.authTime" type="datetime" placeholder="Select date and time" style="width: 100%;" value-format="yyyy-MM-dd HH:mm:ss" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="值班主任">
|
||||
<el-select v-model="command.chiefOnDuty" placeholder="请选择" style="width: 100%;">
|
||||
<el-form-item label="Duty Officer">
|
||||
<el-select v-model="command.chiefOnDuty" placeholder="Please select" style="width: 100%;">
|
||||
<el-option
|
||||
v-for="item in memberDataList"
|
||||
:key="item.id"
|
||||
@ -307,18 +307,18 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="授权状态">
|
||||
<el-form-item label="Authorization status">
|
||||
<el-input v-model="command.authState" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="定稿时间">
|
||||
<el-date-picker v-model="command.finishedTime" type="datetime" placeholder="选择日期时间" style="width: 100%;" value-format="yyyy-MM-dd HH:mm:ss" />
|
||||
<el-form-item label="Finalization time">
|
||||
<el-date-picker v-model="command.finishedTime" type="datetime" placeholder="Select date and time" style="width: 100%;" value-format="yyyy-MM-dd HH:mm:ss" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="审核人">
|
||||
<el-select v-model="command.reviewer" placeholder="请选择" style="width: 100%;">
|
||||
<el-form-item label="Reviewed by">
|
||||
<el-select v-model="command.reviewer" placeholder="Please select" style="width: 100%;">
|
||||
<el-option
|
||||
v-for="item in memberDataList"
|
||||
:key="item.id"
|
||||
@ -330,17 +330,17 @@
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<div style="height: 40px; line-height: 40px; margin-left: 20px;">
|
||||
<el-checkbox v-model="command.chiefOnDutyAuth">需值班主任授权</el-checkbox>
|
||||
<el-checkbox v-model="command.chiefOnDutyAuth">Authorisation required from the Duty Officer</el-checkbox>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="日计划号">
|
||||
<el-form-item label="Day planned">
|
||||
<el-input v-model="command.dailyPlanNum" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="拟令人">
|
||||
<el-select v-model="command.designer" placeholder="请选择" style="width: 100%;">
|
||||
<el-form-item label="To be authorised by">
|
||||
<el-select v-model="command.designer" placeholder="Please select" style="width: 100%;">
|
||||
<el-option
|
||||
v-for="item in memberDataList"
|
||||
:key="item.id"
|
||||
@ -351,8 +351,8 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="命令分类">
|
||||
<el-select v-model="command.type" placeholder="请选择" style="width: 100%;">
|
||||
<el-form-item label="Order classification">
|
||||
<el-select v-model="command.type" placeholder="Please select" style="width: 100%;">
|
||||
<el-option
|
||||
v-for="item in typeOptions"
|
||||
:key="item.value"
|
||||
@ -369,32 +369,32 @@
|
||||
<el-tab-pane :label="getContentLable" name="text">
|
||||
<div class="cmd-box">
|
||||
<div>
|
||||
<el-input v-model="command.content" type="textarea" :rows="6" placeholder="请输入内容" maxlength="200" />
|
||||
<el-input v-model="command.content" type="textarea" :rows="6" placeholder="Please enter the content" maxlength="200" />
|
||||
</div>
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
<div>
|
||||
<div class="table-title">
|
||||
<span>受令列表</span>
|
||||
<span>List of Orders Received</span>
|
||||
<!-- <el-checkbox v-model="tableChecked">全选</el-checkbox> -->
|
||||
</div>
|
||||
<div class="table">
|
||||
<el-table ref="table" :data="getTableData" border style="width: 100%" :header-cell-class-name="cellClass" :height="tableHeight" highlight-current-row @select="selectionChange" @select-all="selectionChange" @row-click="tableRowChange">
|
||||
<el-table-column type="selection" :selectable="selectableFn" width="40" />
|
||||
<el-table-column prop="name" label="受令单位" width="160" />
|
||||
<el-table-column prop="copyers" label="抄送" width="120" show-overflow-tooltip />
|
||||
<el-table-column label="签收状态">
|
||||
<el-table-column prop="name" label="Ordered by" width="160" />
|
||||
<el-table-column prop="copyers" label="Copy to" width="120" show-overflow-tooltip />
|
||||
<el-table-column label="Receiving status">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ getSignedStatus(getCurrentState(scope.row)) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="签收人">
|
||||
<el-table-column label="Received by">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ getSignedBy(getCurrentState(scope.row)) || '' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="签收时间" width="160">
|
||||
<el-table-column label="Time of receipt" width="160">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ getCurrentState(scope.row).time || '' }}</span>
|
||||
</template>
|
||||
@ -403,9 +403,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="midle-bottom">
|
||||
<el-button :id="getDomObj('allographCmd').domId" type="primary" :disabled="!allographRow" @click="allographCmd">代签</el-button>
|
||||
<el-button :id="getDomObj('sendCmd').domId" type="primary" :disabled="disabledSent" @click="sendCmd">下达</el-button>
|
||||
<el-button :id="getDomObj('saveCacheData').domId" type="primary" :disabled="disabledSent" @click="saveCacheData(true)">缓存</el-button>
|
||||
<el-button :id="getDomObj('allographCmd').domId" type="primary" :disabled="!allographRow" @click="allographCmd">Signed on behalf of</el-button>
|
||||
<el-button :id="getDomObj('sendCmd').domId" type="primary" :disabled="disabledSent" @click="sendCmd">placed</el-button>
|
||||
<el-button :id="getDomObj('saveCacheData').domId" type="primary" :disabled="disabledSent" @click="saveCacheData(true)">Cache</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</el-col>
|
||||
@ -413,7 +413,7 @@
|
||||
<div class="right">
|
||||
<div class="right-top">
|
||||
<el-tabs v-model="wordTab" type="border-card">
|
||||
<el-tab-pane label="常用词汇" name="word">
|
||||
<el-tab-pane label="Frequently used terms" name="word">
|
||||
<div class="word-box">
|
||||
<div v-for="(item, index) in getTableData" :key="index">{{ item.name }}</div>
|
||||
</div>
|
||||
@ -424,13 +424,13 @@
|
||||
<el-tabs v-model="wirelessTab" type="border-card">
|
||||
<el-tab-pane label="无线受令列表" name="wireless">
|
||||
<el-form ref="form" :model="wirelessObj" label-width="80px" :disabled="!permissionWireless">
|
||||
<el-form-item label="命令类型">
|
||||
<el-select v-model="wirelessObj.type" placeholder="请选择" style="width: 100%;">
|
||||
<el-option label="调度命令" value="dispatchCmd" />
|
||||
<el-form-item label="Order Type">
|
||||
<el-select v-model="wirelessObj.type" placeholder="Please select" style="width: 100%;">
|
||||
<el-option label="Scheduling order" value="dispatchCmd" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="中转车站">
|
||||
<el-select v-model="wirelessObj.transStationCode" placeholder="请选择" style="width: 100%;">
|
||||
<el-select v-model="wirelessObj.transStationCode" placeholder="Please select" style="width: 100%;">
|
||||
<el-option
|
||||
v-for="item in transStationOption"
|
||||
:key="item.code"
|
||||
@ -439,7 +439,7 @@
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="车次">
|
||||
<el-form-item label="tripNumber">
|
||||
<el-input v-model="wirelessObj.trainNum" />
|
||||
</el-form-item>
|
||||
<el-col :span="16">
|
||||
@ -456,23 +456,23 @@
|
||||
</el-tab-pane>
|
||||
<div class="table">
|
||||
<el-table ref="table6" :data="trainTableData" border style="width: 100%" :header-cell-class-name="cellClass" :height="trainTableHeight" highlight-current-row @current-change="trainTableRowChange">
|
||||
<el-table-column prop="trainNum" label="车次号" width="100" />
|
||||
<el-table-column prop="trainNum" label="tripNumber" width="100" />
|
||||
<el-table-column prop="code" label="机车号">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.code || 'XXXXXX' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="签收状态">
|
||||
<el-table-column label="Receiving status">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ getSignedStatus(getCurrentState(scope.row)) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="签收人">
|
||||
<el-table-column label="Received by">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ getSignedBy(getCurrentState(scope.row)) || '' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="签收时间" width="160">
|
||||
<el-table-column label="Time of receipt" width="160">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ getCurrentState(scope.row).time || '' }}</span>
|
||||
</template>
|
||||
@ -485,9 +485,9 @@
|
||||
</el-table>
|
||||
</div>
|
||||
<div class="midle-bottom">
|
||||
<el-button :id="getDomObj('permissionAddWireless').domId" type="primary" :disabled="disabledSent || permissionWireless" @click="permissionAdd">增加</el-button>
|
||||
<el-button :id="getDomObj('trainAllographCmd').domId" type="primary" :disabled="disabledTrainAllograph" @click="trainAllographCmd">代签</el-button>
|
||||
<el-button :id="getDomObj('deleteTrainTable').domId" type="primary" :disabled="disabledSent || !trainRow" @click="deleteTrainTable">删除</el-button>
|
||||
<el-button :id="getDomObj('permissionAddWireless').domId" type="primary" :disabled="disabledSent || permissionWireless" @click="permissionAdd">Add</el-button>
|
||||
<el-button :id="getDomObj('trainAllographCmd').domId" type="primary" :disabled="disabledTrainAllograph" @click="trainAllographCmd">Signed on behalf of</el-button>
|
||||
<el-button :id="getDomObj('deleteTrainTable').domId" type="primary" :disabled="disabledSent || !trainRow" @click="deleteTrainTable">Delete</el-button>
|
||||
</div>
|
||||
</el-tabs>
|
||||
</div>
|
||||
@ -516,16 +516,16 @@ export default {
|
||||
wirelessTab: 'wireless',
|
||||
textTab: 'text',
|
||||
typeObj: {
|
||||
Normal: '普通调度命令',
|
||||
Construct: '施工调度命令',
|
||||
Forward: '转发调度命令',
|
||||
Request: '请求调度命令',
|
||||
LongTerm: '长效调度命令',
|
||||
ShiftScheduling: '班计划调度命令',
|
||||
Other: '其他调度命令'
|
||||
Normal: 'General scheduling orders',
|
||||
Construct: 'Construction scheduling orders',
|
||||
Forward: 'Forwarding scheduling orders',
|
||||
Request: 'Request scheduling orders',
|
||||
LongTerm: 'Long-term scheduling orders',
|
||||
ShiftScheduling: 'Shift plan scheduling commands',
|
||||
Other: 'Other scheduling orders'
|
||||
},
|
||||
signedStatusObj: {
|
||||
Cache: '缓存',
|
||||
Cache: 'Cache',
|
||||
Sent: '已发送',
|
||||
SrmReceived: '自律机接收',
|
||||
Received: '已接收',
|
||||
@ -566,11 +566,11 @@ export default {
|
||||
rules: {
|
||||
title: [
|
||||
{ required: true, message: '命令标题不能为空', trigger: 'blur' },
|
||||
{ min: 1, max: 20, message: '长度在 1 到 20 个字符', trigger: 'blur' }
|
||||
{ min: 1, max: 20, message: 'The value contains 1 to 20 characters', trigger: 'blur' }
|
||||
],
|
||||
cmdCode: [
|
||||
{ required: true, message: '命令号不能为空', trigger: 'blur' },
|
||||
{ min: 1, max: 7, message: '长度在 1 到 7 个字符', trigger: 'blur' }
|
||||
{ min: 1, max: 7, message: 'The value contains 1 to 7 characters', trigger: 'blur' }
|
||||
]
|
||||
},
|
||||
typeTransition: {
|
||||
@ -606,7 +606,7 @@ export default {
|
||||
},
|
||||
searchTable: [],
|
||||
searchSignedOption: [
|
||||
{ value: '', label: '全部'},
|
||||
{ value: '', label: 'All'},
|
||||
{ value: true, label: '只显示签收完成的'},
|
||||
{ value: false, label: '只显示未签收完成的'}
|
||||
],
|
||||
@ -629,22 +629,22 @@ export default {
|
||||
'dispatchCommandState', 'simulationTimeSync'
|
||||
]),
|
||||
currentStatus() {
|
||||
let s = '编辑';
|
||||
let s = 'Edit';
|
||||
const cpId = this.command.sendCompany.id;
|
||||
if (this.queryResData.companyStateMap && this.queryResData.companyStateMap[cpId]) {
|
||||
const state = this.queryResData.companyStateMap[cpId].state;
|
||||
s = this.signedStatusObj[state] ? this.signedStatusObj[state] : '编辑';
|
||||
s = this.signedStatusObj[state] ? this.signedStatusObj[state] : 'Edit';
|
||||
}
|
||||
return s;
|
||||
},
|
||||
getContentLable() {
|
||||
const text = '命令正文';
|
||||
const text = 'Body of order';
|
||||
const fontLength = this.command.content.length;
|
||||
return `${text} ${fontLength}字`;
|
||||
return `${text} ${fontLength}`;
|
||||
},
|
||||
disabledSent() {
|
||||
let s = false;
|
||||
const sentArr = ['编辑', '缓存'];
|
||||
const sentArr = ['Edit', 'Cache'];
|
||||
if (!this.command.cmdCode || !sentArr.includes(this.currentStatus)) {
|
||||
s = true;
|
||||
}
|
||||
@ -765,11 +765,11 @@ export default {
|
||||
const h = this.$createElement;
|
||||
messageData.push(h('p', null, '代签之前,请务必与本次列车司机联系确认!'));
|
||||
messageData.push(h('p', null, '您确定要进行【无线调度命令 代签】操作吗?'));
|
||||
this.$confirm('提示', {
|
||||
this.$confirm('Hint', {
|
||||
title: '无线代签操作提示',
|
||||
message: h('div', null, messageData),
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
confirmButtonText: 'Confirm',
|
||||
cancelButtonText: 'Cancel',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
const rcId = this.getRcId(this.trainRow.code);
|
||||
@ -786,7 +786,7 @@ export default {
|
||||
this.searchCmd();
|
||||
this.initData();
|
||||
}).catch(error => {
|
||||
this.$messageBox('无线受令代签令失败:' + error.message);
|
||||
this.$messageBox('无线受令代签令失败!');
|
||||
});
|
||||
}
|
||||
});
|
||||
@ -883,7 +883,7 @@ export default {
|
||||
this.command.rcvCompanies.push(obj);
|
||||
}
|
||||
}).catch(error => {
|
||||
this.$messageBox('查找机车失败:' + error.message);
|
||||
this.$messageBox('查找机车失败!');
|
||||
});
|
||||
}
|
||||
});
|
||||
@ -997,7 +997,7 @@ export default {
|
||||
getSignedStatus(row) {
|
||||
let s = '';
|
||||
if (row.signedByProxy) {
|
||||
s = '代签';
|
||||
s = 'Signed on behalf of';
|
||||
} else {
|
||||
s = this.signedStatusObj[row.state] || '';
|
||||
}
|
||||
@ -1207,9 +1207,9 @@ export default {
|
||||
});
|
||||
new Promise((resolve, reject) => {
|
||||
if (findDiff) {
|
||||
this.$confirm('当前调度命令已经被编辑修改过了,你要放弃所有的修改吗?', '操作提示', {
|
||||
confirmButtonText: '是',
|
||||
cancelButtonText: '否'
|
||||
this.$confirm('当前调度命令已经被编辑修改过了,你要放弃所有的修改吗?', 'Hint', {
|
||||
confirmButtonText: 'Confirm',
|
||||
cancelButtonText: 'Cancel'
|
||||
}).then(() => {
|
||||
resolve();
|
||||
}).catch(() => {
|
||||
@ -1230,7 +1230,7 @@ export default {
|
||||
this.command.cmdCode = res.data.cmdCode;
|
||||
this.command.cmdId = res.data.cmdId;
|
||||
}).catch(error => {
|
||||
this.$messageBox('新建调度命令号失败:' + error.message);
|
||||
this.$messageBox('新建调度命令号失败!');
|
||||
});
|
||||
}).catch(() => {
|
||||
console.log('取消新建调度命令!');
|
||||
@ -1378,7 +1378,7 @@ export default {
|
||||
showMsg && this.$message.success('缓存调度命令成功!');
|
||||
resolve();
|
||||
}).catch(error => {
|
||||
showMsg && this.$messageBox('缓存调度命令失败:' + error.message);
|
||||
showMsg && this.$messageBox('缓存调度命令失败!');
|
||||
reject(error.message);
|
||||
});
|
||||
});
|
||||
@ -1401,11 +1401,11 @@ export default {
|
||||
const h = this.$createElement;
|
||||
messageData.push(h('p', null, '进行代签操作前,请您与受令单位进行联络确认。'));
|
||||
messageData.push(h('p', null, '您确定要进行代签操作吗?'));
|
||||
this.$confirm('提示', {
|
||||
this.$confirm('Hint', {
|
||||
title: '代签操作提示',
|
||||
message: h('div', null, messageData),
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
confirmButtonText: 'Confirm',
|
||||
cancelButtonText: 'Cancel',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
const rcId = this.getRcId(this.allographRow.code);
|
||||
@ -1422,7 +1422,7 @@ export default {
|
||||
this.searchCmd();
|
||||
this.initData();
|
||||
}).catch(error => {
|
||||
this.$messageBox('代签令失败:' + error.message);
|
||||
this.$messageBox('代签失败!');
|
||||
});
|
||||
}
|
||||
});
|
||||
@ -1435,15 +1435,15 @@ export default {
|
||||
const messageData = [test];
|
||||
const h = this.$createElement;
|
||||
this.command.rcvCompanies.forEach((item, index) => {
|
||||
const txtTrainNum = item.trainNum ? item.trainNum + '车次' : '';
|
||||
const txtTrainNum = item.trainNum ? item.trainNum + 'tripNumber' : '';
|
||||
const msg = `${index + 1}. ${item.name || ''} ${txtTrainNum}`;
|
||||
messageData.push(h('p', null, msg));
|
||||
});
|
||||
this.$confirm('提示', {
|
||||
title: '操作提示',
|
||||
this.$confirm('Hint', {
|
||||
title: 'OperationHint',
|
||||
message: h('div', null, messageData),
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
confirmButtonText: 'Confirm',
|
||||
cancelButtonText: 'Cancel',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.$refs['form'].validate((valid) => {
|
||||
@ -1470,7 +1470,7 @@ export default {
|
||||
this.searchCmd();
|
||||
this.initData();
|
||||
}).catch(error => {
|
||||
this.$messageBox('发送调度命令失败:' + error.message);
|
||||
this.$messageBox('发送调度命令失败!');
|
||||
});
|
||||
}).catch(err => {
|
||||
console.error('缓存调度命令失败', err);
|
||||
@ -1487,7 +1487,7 @@ export default {
|
||||
this.queryResData = res.data || {};
|
||||
resolve();
|
||||
}).catch(error => {
|
||||
this.$messageBox('查询调度命令失败:' + error.message);
|
||||
this.$messageBox('查询调度命令失败!');
|
||||
reject(error.message);
|
||||
});
|
||||
});
|
||||
|
@ -112,8 +112,8 @@ export default {
|
||||
this.$store.dispatch('trainingNew/next', operate);
|
||||
},
|
||||
clickMenu(refPath) {
|
||||
this.$alert('实现中......', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
this.$alert('In implementation......', 'Hint', {
|
||||
confirmButtonText: 'Confirm',
|
||||
callback: action => {
|
||||
}
|
||||
});
|
||||
|
@ -106,7 +106,7 @@ export default {
|
||||
queryList: {
|
||||
query: this.queryFunction,
|
||||
selectCheckShow: false,
|
||||
indexShow: true,
|
||||
// indexShow: true,
|
||||
paginationHiden: true,
|
||||
columns: [
|
||||
{
|
||||
@ -160,13 +160,13 @@ export default {
|
||||
// prop: 'remains'
|
||||
// },
|
||||
{
|
||||
title:this.$t('global.startTime'),
|
||||
title: 'Start time',
|
||||
prop: 'startTime',
|
||||
width: '160'
|
||||
|
||||
},
|
||||
{
|
||||
title: this.$t('permission.endTime'),
|
||||
title: 'End time',
|
||||
prop: 'endTime',
|
||||
width: '160'
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user