泰国翻译

This commit is contained in:
fan 2023-02-22 13:07:56 +08:00
parent 05cebda4cb
commit 18663fd5bd
6 changed files with 133 additions and 127 deletions

View File

@ -13,42 +13,42 @@
>
<div class="tableBox">
<el-table :data="tableData" height="300px">
<el-table-column prop="name" label="站名" width="150" />
<el-table-column prop="name" label="Station name" width="150" />
<el-table-column v-if="isAgreeMode">
<template slot="header" slot-scope="scope">
<el-checkbox v-model="allAgreeChecked" @change="changeAllAgreeChecked">全选</el-checkbox>
<template slot="header">
<el-checkbox v-model="allAgreeChecked" @change="changeAllAgreeChecked">Select all</el-checkbox>
</template>
<template slot-scope="scope">
<el-checkbox v-model="scope.row.isAgree">同意</el-checkbox>
<el-checkbox v-model="scope.row.isAgree">Agree</el-checkbox>
</template>
</el-table-column>
<el-table-column>
<template slot="header" slot-scope="scope">
<el-radio v-model="controlTypeAll" label="Center" :disabled="isAgreeMode" @input="changeControlTypeAll">全选</el-radio>
<template slot="header">
<el-radio v-model="controlTypeAll" label="Center" :disabled="isAgreeMode" @input="changeControlTypeAll">Select all</el-radio>
</template>
<template slot-scope="scope">
<el-radio v-model="scope.row.target" label="Center" :disabled="isAgreeMode">
<span :class="getTextColor(scope.row, 'Center')">中心控制</span>
<span :class="getTextColor(scope.row, 'Center')">Center Control</span>
</el-radio>
</template>
</el-table-column>
<el-table-column>
<template slot="header" slot-scope="scope">
<el-radio v-model="controlTypeAll" label="Station" :disabled="isAgreeMode" @input="changeControlTypeAll">全选</el-radio>
<template slot="header">
<el-radio v-model="controlTypeAll" label="Station" :disabled="isAgreeMode" @input="changeControlTypeAll">Select all</el-radio>
</template>
<template slot-scope="scope">
<el-radio v-model="scope.row.target" label="Station" :disabled="isAgreeMode">
<span :class="getTextColor(scope.row, 'Station')">车站控制</span>
<span :class="getTextColor(scope.row, 'Station')">Station Control</span>
</el-radio>
</template>
</el-table-column>
<el-table-column>
<template slot="header" slot-scope="scope">
<el-radio v-model="controlTypeAll" label="Station_Shunt" :disabled="isAgreeMode" @input="changeControlTypeAll">全选</el-radio>
<template slot="header">
<el-radio v-model="controlTypeAll" label="Station_Shunt" :disabled="isAgreeMode" @input="changeControlTypeAll">Select all</el-radio>
</template>
<template slot-scope="scope">
<el-radio v-model="scope.row.target" label="Station_Shunt" :disabled="isAgreeMode">
<span :class="getTextColor(scope.row, 'Station_Shunt')">车站调车</span>
<span :class="getTextColor(scope.row, 'Station_Shunt')">Station transfer</span>
</el-radio>
</template>
</el-table-column>
@ -56,10 +56,10 @@
</div>
<el-row justify="center" class="button-group">
<el-col :span="5" :offset="6">
<el-button :id="domIdConfirm" type="primary" :loading="loading" @click="commit">确定</el-button>
<el-button :id="domIdConfirm" type="primary" :loading="loading" @click="commit">Determine</el-button>
</el-col>
<el-col :span="5" :offset="2">
<el-button :id="domIdCancel" @click="cancel"></el-button>
<el-button :id="domIdCancel" @click="cancel">Cancel</el-button>
</el-col>
</el-row>
<notice-info ref="noticeInfo" pop-class="chengdou-03__systerm" />
@ -87,7 +87,7 @@ export default {
data() {
return {
dialogShow: false,
title: '操作方式转换',
title: 'Operation mode conversion',
controlTypeAll: '',
tableData: [],
loading: false,

View File

@ -2,12 +2,12 @@
<div>
<table>
<tr>
<td colspan="10" align="center">非正常情况接发列车关键环节控制表</td>
<td colspan="10" align="center">Critical Control Form for Unusual Train Receiving and Issuing</td>
</tr>
<tr>
<td colspan="2">
<div class="td-div">
<span>值班员</span>
<span>Duty Officer</span>
<div class="td-div-input">
<el-input :id="formInput.supervisor.domId" v-model="form.supervisor" size="mini" :disabled="!isCreat" @blur="blurChange('supervisor')" />
</div>
@ -15,78 +15,78 @@
</td>
<td colspan="2">
<div class="td-div">
<span>干部上岗是由</span>
<span>The cadre on duty is controlled by</span>
<div class="td-div-input">
<el-input :id="formInput.cadresPost.domId" v-model="form.cadresPost" size="mini" :disabled="!isCreat" @blur="blurChange('cadresPost')" />
</div>
</div></td>
<td colspan="2">
<div class="td-div">
<span>监控干部</span>
<span>Monitoring Cadre</span>
<div class="td-div-input">
<el-input :id="formInput.monitorCadres.domId" v-model="form.monitorCadres" size="mini" :disabled="!isCreat" @blur="blurChange('monitorCadres')" />
</div>
</div></td>
<td colspan="2">
<div class="td-div">
<span>天气</span>
<span>Weather</span>
<div class="td-div-input">
<el-input :id="formInput.weather.domId" v-model="form.weather" size="mini" :disabled="!isCreat" @blur="blurChange('weather')" />
</div>
</div></td>
<td colspan="2">
<div class="td-div">
<span>日期</span>
<span>Date</span>
<div class="td-div-input">
<el-date-picker :id="formInput.registerDate.domId" v-model="form.registerDate" type="date" size="mini" format="yyyy年MM月dd日" value-format="yyyy年MM月dd日" placeholder="选择日期" class="autoWidth" :disabled="!isCreat" @change="blurChange('registerDate')" />
<el-date-picker :id="formInput.registerDate.domId" v-model="form.registerDate" type="date" size="mini" format="yyyy-MM-dd" value-format="yyyy年MM月dd日" placeholder="Select date" class="autoWidth" :disabled="!isCreat" @change="blurChange('registerDate')" />
</div>
</div></td>
</tr>
<tr>
<td colspan="2" align="center">
<p>通知干部上岗
<p>Notify cadres of duty
<br>
<el-input :id="formInput.noticeCadresTimeHour.domId" v-model="form.noticeCadresTime.hour" oninput="value=value.replace(/[^\d]/g,''); value=value.slice(0, 2); if(value > 23) value = 23" size="mini" class="timeInput" :disabled="!isCreat" @blur="blurChange('noticeCadresTime', 'hour')" />
<el-input :id="formInput.noticeCadresTimeMinute.domId" v-model="form.noticeCadresTime.minute" oninput="value=value.replace(/[^\d]/g,''); value=value.slice(0, 2); if(value > 59) value = 59" size="mini" class="timeInput" :disabled="!isCreat" @blur="blurChange('noticeCadresTime', 'minute')" />
<el-input :id="formInput.noticeCadresTimeHour.domId" v-model="form.noticeCadresTime.hour" oninput="value=value.replace(/[^\d]/g,''); value=value.slice(0, 2); if(value > 23) value = 23" size="mini" class="timeInput" :disabled="!isCreat" @blur="blurChange('noticeCadresTime', 'hour')" />hour
<el-input :id="formInput.noticeCadresTimeMinute.domId" v-model="form.noticeCadresTime.minute" oninput="value=value.replace(/[^\d]/g,''); value=value.slice(0, 2); if(value > 59) value = 59" size="mini" class="timeInput" :disabled="!isCreat" @blur="blurChange('noticeCadresTime', 'minute')" />minute
</p>
</td>
<td colspan="2" align="center">
<p>报告列车调度员
<p>Report to train dispatcher
<br>
<el-input :id="formInput.reportDispatcherTimeHour.domId" v-model="form.reportDispatcherTime.hour" oninput="value=value.replace(/[^\d]/g,''); value=value.slice(0, 2); if(value > 23) value = 23" size="mini" class="timeInput" :disabled="!isCreat" @blur="blurChange('reportDispatcherTime', 'hour')" />
<el-input :id="formInput.reportDispatcherTimeMinute.domId" v-model="form.reportDispatcherTime.minute" oninput="value=value.replace(/[^\d]/g,''); value=value.slice(0, 2); if(value > 59) value = 59" size="mini" class="timeInput" :disabled="!isCreat" @blur="blurChange('reportDispatcherTime', 'minute')" />
<el-input :id="formInput.reportDispatcherTimeHour.domId" v-model="form.reportDispatcherTime.hour" oninput="value=value.replace(/[^\d]/g,''); value=value.slice(0, 2); if(value > 23) value = 23" size="mini" class="timeInput" :disabled="!isCreat" @blur="blurChange('reportDispatcherTime', 'hour')" />hour
<el-input :id="formInput.reportDispatcherTimeMinute.domId" v-model="form.reportDispatcherTime.minute" oninput="value=value.replace(/[^\d]/g,''); value=value.slice(0, 2); if(value > 59) value = 59" size="mini" class="timeInput" :disabled="!isCreat" @blur="blurChange('reportDispatcherTime', 'minute')" />minute
</p>
</td>
<td colspan="2" align="center">
<p>报告指挥中心
<p>Report to Command Centre
<br>
<el-input :id="formInput.reportCommandCentreTimeHour.domId" v-model="form.reportCommandCentreTime.hour" oninput="value=value.replace(/[^\d]/g,''); value=value.slice(0, 2); if(value > 23) value = 23" size="mini" class="timeInput" :disabled="!isCreat" @blur="blurChange('reportCommandCentreTime', 'hour')" />
<el-input :id="formInput.reportCommandCentreTimeMinute.domId" v-model="form.reportCommandCentreTime.minute" oninput="value=value.replace(/[^\d]/g,''); value=value.slice(0, 2); if(value > 59) value = 59" size="mini" class="timeInput" :disabled="!isCreat" @blur="blurChange('reportCommandCentreTime', 'minute')" />
<el-input :id="formInput.reportCommandCentreTimeHour.domId" v-model="form.reportCommandCentreTime.hour" oninput="value=value.replace(/[^\d]/g,''); value=value.slice(0, 2); if(value > 23) value = 23" size="mini" class="timeInput" :disabled="!isCreat" @blur="blurChange('reportCommandCentreTime', 'hour')" />hour
<el-input :id="formInput.reportCommandCentreTimeMinute.domId" v-model="form.reportCommandCentreTime.minute" oninput="value=value.replace(/[^\d]/g,''); value=value.slice(0, 2); if(value > 59) value = 59" size="mini" class="timeInput" :disabled="!isCreat" @blur="blurChange('reportCommandCentreTime', 'minute')" />minute
</p>
</td>
<td colspan="2" align="center">
<p>监控干部到岗
<p>Monitor cadre arrival
<br>
<el-input :id="formInput.monitorArriveTimeHour.domId" v-model="form.monitorArriveTime.hour" oninput="value=value.replace(/[^\d]/g,''); value=value.slice(0, 2); if(value > 23) value = 23" size="mini" class="timeInput" :disabled="!isCreat" @blur="blurChange('monitorArriveTime', 'hour')" />
<el-input :id="formInput.monitorArriveTimeMinute.domId" v-model="form.monitorArriveTime.minute" oninput="value=value.replace(/[^\d]/g,''); value=value.slice(0, 2); if(value > 59) value = 59" size="mini" class="timeInput" :disabled="!isCreat" @blur="blurChange('monitorArriveTime', 'minute')" />
<el-input :id="formInput.monitorArriveTimeHour.domId" v-model="form.monitorArriveTime.hour" oninput="value=value.replace(/[^\d]/g,''); value=value.slice(0, 2); if(value > 23) value = 23" size="mini" class="timeInput" :disabled="!isCreat" @blur="blurChange('monitorArriveTime', 'hour')" />hour
<el-input :id="formInput.monitorArriveTimeMinute.domId" v-model="form.monitorArriveTime.minute" oninput="value=value.replace(/[^\d]/g,''); value=value.slice(0, 2); if(value > 59) value = 59" size="mini" class="timeInput" :disabled="!isCreat" @blur="blurChange('monitorArriveTime', 'minute')" />minute
</p>
</td>
<td colspan="2" align="center">
<p>安排工作人员
<p>Arrange for staff to be on duty
<br>
<span style="display: inline-block; width: 50px; text-align-last: justify;">岗人</span>
<span style="display: inline-block; width: 50px; text-align-last: justify;">Post Person</span>
</p>
</td>
</tr>
<tr>
<td align="center">登记单位</td>
<td align="center">运统46登记</td>
<td align="center">运统46签认</td>
<td align="center">报告列车调度员</td>
<td colspan="2" align="center">调度命令核对接收</td>
<td colspan="2" align="center">运统46到点签认</td>
<td align="center">运统46销记签认</td>
<td align="center">调度命令核对接收</td>
<td align="center">Registration unit</td>
<td align="center">Register with Transport and Logistics 46</td>
<td align="center">Transport system 46 sign-off</td>
<td align="center">Report to train dispatcher</td>
<td colspan="2" align="center">Scheduling order checking, receiving</td>
<td colspan="2" align="center">Transport system 46 arrival, sign-off</td>
<td align="center">Transport system 46 arrival, sign-off</td>
<td align="center">Checking and receiving of dispatching orders</td>
</tr>
<tr v-for="(item, index) in form.registerInfoList" :key="index">
<td><el-input :id="formInput['departmentName' + index].domId" v-model="item.departmentName" size="mini" :disabled="!isCreat" @blur="listChange('departmentName', index)" /></td>
@ -123,34 +123,34 @@
</td>
</tr>
<tr>
<td colspan="10">1.以上内容只对涉及的项目监控后划2.车务发现或接到报告设备故障时可立即报告列车调度员然后登记有关单位签认</td>
<td colspan="10">Note:1. For the above, only the items involved are monitored and then crossed with "heart". 2. When the train service finds or receives a report of equipment failure, it can immediately report to the train dispatcher, then register and have the unit concerned sign off.</td>
</tr>
<tr>
<td colspan="10">故障施工天窗维修作业内容<el-input :id="formInput.faultContent.domId" v-model="form.faultContent" type="textarea" :autosize="{ minRows: 2 }" size="mini" :disabled="!isCreat" @blur="blurChange('faultContent')" /></td>
<td colspan="10">Fault (construction, skylight, maintenance work) content:<el-input :id="formInput.faultContent.domId" v-model="form.faultContent" type="textarea" :autosize="{ minRows: 2 }" size="mini" :disabled="!isCreat" @blur="blurChange('faultContent')" /></td>
</tr>
<tr>
<td colspan="2">区间闭塞封闭情况</td>
<td colspan="2">Blockage and closure of the zone</td>
<td colspan="8"><el-input :id="formInput.sectionContent.domId" v-model="form.sectionContent" size="mini" :disabled="!isCreat" @blur="blurChange('sectionContent')" /></td>
</tr>
<tr>
<td colspan="2">接车进路准备方式</td>
<td colspan="2">Prepare the way to receive the train</td>
<td colspan="8"><el-input :id="formInput.pickRoutePrepareContent.domId" v-model="form.pickRoutePrepareContent" size="mini" :disabled="!isCreat" @blur="blurChange('pickRoutePrepareContent')" /></td>
</tr>
<tr>
<td colspan="2">接车信号</td>
<td colspan="2">Pick-up signal</td>
<td colspan="8"><el-input :id="formInput.pickSignal.domId" v-model="form.pickSignal" size="mini" :disabled="!isCreat" @blur="blurChange('pickSignal')" /></td>
</tr>
<tr>
<td colspan="2">发车进路准备方式发车凭证</td>
<td colspan="2">Issuance of train vouchers</td>
<td colspan="8"><el-input :id="formInput.departRoutePrepareContent.domId" v-model="form.departRoutePrepareContent" size="mini" :disabled="!isCreat" @blur="blurChange('departRoutePrepareContent')" /></td>
</tr>
<tr>
<td colspan="2">其他关键环节</td>
<td colspan="2">Other key links</td>
<td colspan="8"><el-input :id="formInput.otherKeyLinkContent.domId" v-model="form.otherKeyLinkContent" size="mini" :disabled="!isCreat" @blur="blurChange('otherKeyLinkContent')" /></td>
</tr>
</table>
<div v-if="isCreat" class="footer">
<el-button :id="formInput.submit.domId" type="primary" size="mini" @click="submit">提交</el-button>
<el-button :id="formInput.submit.domId" type="primary" size="mini" @click="submit">Submit</el-button>
</div>
</div>
</template>
@ -235,7 +235,7 @@ export default {
},
initRegisterInfoData() {
const list = [];
const nameArr = ['车务电工', '工 务', '供 电', '通 信', '', '其他()'];
const nameArr = ['Train service electrician', 'Public Works', 'Electricity supply', 'Communications', '', 'Other()'];
nameArr.forEach(name => {
const obj = {
departmentName: name,
@ -285,10 +285,10 @@ export default {
// }
// });
commitOperate(menuOperate.Rail.abnormalTrainTableSave, obj, 2).then(({valid, operate})=>{
this.$message.success('提交成功!');
this.$message.success('Submitted successfully!');
this.initFormData();
}).catch((error)=>{
this.$messageBox('提交失败:' + error.message);
this.$messageBox('Submission failure:' + error.message);
});
},
initFormData() {

View File

@ -8,69 +8,72 @@
style="width:100%"
:height="tableHeight"
>
<el-table-column label="请求施工(慢行及封锁)登记">
<el-table-column prop="no" label="本月施工编号" width="120">
<template slot="empty">
<el-empty description="No data available" />
</template>
<el-table-column label="Request for construction registration (slow and closed)">
<el-table-column prop="no" label="Construction number of the month" width="120">
<template slot-scope="scope">
<el-input v-if="dataIndex === scope.$index" :id="constructionFill.num.domId" v-model="scope.row.no" @blur="numChange(scope.row.no)" />
<span v-else>{{ scope.row.no }}</span>
</template>
</el-table-column>
<el-table-column prop="projectName" label="施工项目" width="100">
<el-table-column prop="projectName" label="Construction Project" width="100">
<template slot-scope="scope">
<el-input v-if="dataIndex === scope.$index" :id="constructionFill.projectName.domId" v-model="scope.row.projectName" @blur="projectNameChange(scope.row.projectName)" />
<span v-else>{{ scope.row.projectName }}</span>
</template>
</el-table-column>
<el-table-column prop="requestDate" :label="'月日\n时分'" width="80">
<el-table-column prop="requestDate" :label="'Month Day Hour'" width="80">
<template slot-scope="scope">
<el-input v-if="dataIndex === scope.$index" :id="constructionFill.requestDate.domId" v-model="scope.row.requestDate" @blur="requestDateChange(scope.row.requestDate)" />
<span v-else>{{ scope.row.requestDate }}</span>
</template>
</el-table-column>
<el-table-column prop="requestDetails" :label="'1影响使用范围需要的慢行或封锁条件 \n2施工负责人签名 \n3设备单位检查人签名 \n4车站值班员签名'" width="300">
<el-table-column prop="requestDetails" :label="'(1) Scope of Affected Use (Required slowdown or closure conditions) \n(2) Signature of person in charge of construction \n(3) Signature of equipment unit inspector required \n(4) Signature of station duty officer'" width="300">
<template slot-scope="scope">
<el-input v-if="dataIndex === scope.$index" :id="constructionFill.requestDetails.domId" v-model="scope.row.requestDetails" @blur="requestDetailsChange(scope.row.requestDetails)" />
<span v-else>{{ scope.row.requestDetails }}</span>
</template>
</el-table-column>
<el-table-column prop="planSpendTime" :label="'所需\n时分'" width="80">
<el-table-column prop="planSpendTime" :label="'Month Day Hour'" width="80">
<template slot-scope="scope">
<el-input v-if="dataIndex === scope.$index" :id="constructionFill.planSpendTime.domId" v-model="scope.row.planSpendTime" @blur="planSpendTimeChange(scope.row.planSpendTime)" />
<span v-else>{{ scope.row.planSpendTime }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="承认施工">
<el-table-column prop="acceptDetail" :label="'1命令号及发令时间\n2慢行及封锁起止时间\n3设备单位检查人签名\n4车站值班员签名'" width="200">
<el-table-column label="Recognition of construction">
<el-table-column prop="acceptDetail" :label="'(1) Order number and time of issuance\n(2) Slowing and blocking start and end time\n(3) Signature of equipment unit inspector\n(4) Station duty officer signature'" width="200">
<template slot-scope="scope">
<el-input v-if="dataIndex === scope.$index" :id="constructionFill.acceptDetail.domId" v-model="scope.row.acceptDetail" @blur="acceptDetailChange(scope.row.acceptDetail)" />
<span v-else>{{ scope.row.acceptDetail }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="施工后开通检查确认、销记">
<el-table-column prop="confirmReviewDate" :label="'月日\n时分'" width="80">
<el-table-column label="After the construction of the opening inspection confirmation, cancel the record">
<el-table-column prop="confirmReviewDate" :label="'Month Day Hour'" width="80">
<template slot-scope="scope">
<el-input v-if="dataIndex === scope.$index" :id="constructionFill.confirmReviewDate.domId" v-model="scope.row.confirmReviewDate" @blur="confirmReviewDateChange(scope.row.confirmReviewDate)" />
<span v-else>{{ scope.row.confirmReviewDate }}</span>
</template>
</el-table-column>
<el-table-column prop="confirmReviewDetail" :label="'1影响使用范围需要的慢行或封锁条件\n2施工负责人签名\n3设备单位检查人签名\n4车站值班员签名'" width="300">
<el-table-column prop="confirmReviewDetail" :label="'(1) Impact on the scope of use (required slowdown or blocking conditions)\n(2) Signature of person in charge of construction\n(3) Equipment unit inspector signature\n(4) Signature of station duty officer'" width="300">
<template slot-scope="scope">
<el-input v-if="dataIndex === scope.$index" :id="constructionFill.confirmReviewDetail.domId" v-model="scope.row.confirmReviewDetail" @blur="confirmReviewDetailChange(scope.row.confirmReviewDetail)" />
<span v-else>{{ scope.row.confirmReviewDetail }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="施工开通">
<el-table-column prop="constructionOpenDetail" :label="'1开通恢复常速命令号及开通时间\n2施工负责人签名\n3设备单位检查人签名\n4车站值班员签名'" width="300">
<el-table-column label="Construction opening">
<el-table-column prop="constructionOpenDetail" :label="'(1) Opening (resumption of normal speed) Order this number and opening time\n(2) Signature of person in charge of construction\n(3) equipment unit inspector\'s signature\n(4) Station duty officer\'s signature'" width="300">
<template slot-scope="scope">
<el-input v-if="dataIndex === scope.$index" :id="constructionFill.constructionOpenDetail.domId" v-model="scope.row.constructionOpenDetail" @blur="constructionOpenDetailChange(scope.row.constructionOpenDetail)" />
<span v-else>{{ scope.row.constructionOpenDetail }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="备注" prop="remark">
<el-table-column label="Remarks" prop="remark">
<template slot-scope="scope">
<el-input v-if="dataIndex === scope.$index" :id="constructionFill.remark.domId" v-model="scope.row.remark" @blur="remarkChange(scope.row.remark)" />
<span v-else>{{ scope.row.remark }}</span>
@ -78,7 +81,7 @@
</el-table-column>
<el-table-column label="" width="60">
<template slot-scope="scope">
<el-button v-if="dataIndex === scope.$index" :id="constructionFillIn.domId" type="text" size="small" @click="saveData(scope.row, scope.$index)">保存</el-button>
<el-button v-if="dataIndex === scope.$index" :id="constructionFillIn.domId" type="text" size="small" @click="saveData(scope.row, scope.$index)">Save</el-button>
<!-- :id="railFillInRegister.domId" -->
<!-- <el-button v-else type="text" size="small" @click="modifyData(scope.row, scope.$index)">修改</el-button> -->
</template>
@ -154,7 +157,7 @@ export default {
this.tableData = res.data;
this.dataIndex = null;
}).catch(() => {
this.$message.error('查询行车设备施工登记簿失败');
this.$message.error('Failed to query the construction register of driving equipment');
});
},
numChange(val) {
@ -234,9 +237,9 @@ export default {
this.queryData();
this.isEditing = false;
this.isAdd = false;
this.$message.success('保存成功!');
this.$message.success('Save successfully!');
}).catch(()=>{
this.$message.error('保存行车设备施工登记簿失败!');
this.$message.error('Failed to save the construction register of driving equipment!');
});
// }
// }else{

View File

@ -2,14 +2,14 @@
<div>
<table>
<tr>
<td colspan="8" align="center">防洪安全上岗签到表</td>
<td colspan="8" align="center">Flood prevention safety on duty sign-in sheet</td>
</tr>
<tr>
<td colspan="2">
<div class="td-div">
<span>车站</span>
<span>Station</span>
<div class="td-div-input">
<el-select :id="formInput.stationCode.domId" v-model="form.stationCode" size="mini" disabled placeholder="请选择" class="autoWidth" @change="blurChange('stationCode')">
<el-select :id="formInput.stationCode.domId" v-model="form.stationCode" size="mini" disabled placeholder="Please select" class="autoWidth" @change="blurChange('stationCode')">
<el-option
v-for="item in getStationList"
:key="item.value"
@ -22,72 +22,72 @@
</td>
<td colspan="4">
<div class="td-div">
<span>车站值班员</span>
<span>Station Duty Officer:</span>
<div class="td-div-input">
<el-input :id="formInput.supervisor.domId" v-model="form.supervisor" size="mini" :disabled="!isUpdate" @blur="blurChange('supervisor')" />
</div>
</div></td>
<td colspan="2">
<div class="td-div">
<span>日期</span>
<span>Date:</span>
<div class="td-div-input">
<el-date-picker :id="formInput.signDateStr.domId" v-model="form.signDateStr" type="date" size="mini" format="yyyy年MM月dd日" value-format="yyyy年MM月dd日" placeholder="选择日期" class="autoWidth" :disabled="!isUpdate" @change="blurChange('signDateStr')" />
<el-date-picker :id="formInput.signDateStr.domId" v-model="form.signDateStr" type="date" size="mini" format="yyyy-MM-dd" value-format="yyyy年MM月dd日" placeholder="Select date" class="autoWidth" :disabled="!isUpdate" @change="blurChange('signDateStr')" />
</div>
</div></td>
</tr>
<tr>
<td colspan="8" align="center">车站值班员收发通知记录表</td>
<td colspan="8" align="center">Station duty officer receiving and sending notice record form</td>
</tr>
<tr>
<td align="center">汇报人姓名</td>
<td align="center">通知车站时间</td>
<td align="center">通知方式</td>
<td align="center">险情类别</td>
<td align="center">雨量值</td>
<td align="center">通知站长时间</td>
<td align="center">站长到岗时间</td>
<td align="center">站长签名</td>
<td align="center">Name of reporting person</td>
<td align="center">Notify the station time</td>
<td align="center">Notification method</td>
<td align="center">Danger category</td>
<td align="center">Rainfall value (level)</td>
<td align="center">Notify station manager time</td>
<td align="center">Station manager arrival time</td>
<td align="center">Station manager's signature</td>
</tr>
<tr>
<td> <el-input :id="formInput.supervisorNoticeInfoReporter.domId" v-model="form.supervisorNoticeInfo.reporter" size="mini" :disabled="!isUpdate" @blur="blurChange('supervisorNoticeInfo','reporter')" /> </td>
<td>
<el-date-picker :id="formInput.supervisorNoticeInfoNoticeStationTime.domId" v-model="form.supervisorNoticeInfo.noticeStationTime" type="datetime" size="mini" format="yyyy年MM月dd日 HH:mm:ss" value-format="yyyy年MM月dd日 HH:mm:ss" placeholder="选择日期时间" class="dateTime" :disabled="!isUpdate" @change="blurChange('supervisorNoticeInfo','noticeStationTime')" />
<el-date-picker :id="formInput.supervisorNoticeInfoNoticeStationTime.domId" v-model="form.supervisorNoticeInfo.noticeStationTime" type="datetime" size="mini" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy年MM月dd日 HH:mm:ss" placeholder="Select date and time" class="dateTime" :disabled="!isUpdate" @change="blurChange('supervisorNoticeInfo','noticeStationTime')" />
</td>
<td> <el-input :id="formInput.supervisorNoticeInfoNoticeModel.domId" v-model="form.supervisorNoticeInfo.noticeModel" size="mini" :disabled="!isUpdate" @blur="blurChange('supervisorNoticeInfo','noticeModel')" /> </td>
<td> <el-input :id="formInput.supervisorNoticeInfoHazardCategory.domId" v-model="form.supervisorNoticeInfo.hazardCategory" size="mini" :disabled="!isUpdate" @blur="blurChange('supervisorNoticeInfo','hazardCategory')" /> </td>
<td> <el-input :id="formInput.supervisorNoticeInfoRainfallLevel.domId" v-model="form.supervisorNoticeInfo.rainfallLevel" size="mini" :disabled="!isUpdate" @blur="blurChange('supervisorNoticeInfo','rainfallLevel')" /> </td>
<td>
<el-date-picker :id="formInput.supervisorNoticeInfoNoticeStationMasterTime.domId" v-model="form.supervisorNoticeInfo.noticeStationMasterTime" type="datetime" size="mini" format="yyyy年MM月dd日 HH:mm:ss" value-format="yyyy年MM月dd日 HH:mm:ss" placeholder="选择日期时间" class="dateTime" :disabled="!isUpdate" @change="blurChange('supervisorNoticeInfo','noticeStationMasterTime')" />
<el-date-picker :id="formInput.supervisorNoticeInfoNoticeStationMasterTime.domId" v-model="form.supervisorNoticeInfo.noticeStationMasterTime" type="datetime" size="mini" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy年MM月dd日 HH:mm:ss" placeholder="Select date and time" class="dateTime" :disabled="!isUpdate" @change="blurChange('supervisorNoticeInfo','noticeStationMasterTime')" />
</td>
<td>
<el-date-picker :id="formInput.supervisorNoticeInfoStationMasterArrivalTime.domId" v-model="form.supervisorNoticeInfo.stationMasterArrivalTime" type="datetime" size="mini" format="yyyy年MM月dd日 HH:mm:ss" value-format="yyyy年MM月dd日 HH:mm:ss" placeholder="选择日期时间" class="dateTime" :disabled="!isUpdate" @change="blurChange('supervisorNoticeInfo','stationMasterArrivalTime')" />
<el-date-picker :id="formInput.supervisorNoticeInfoStationMasterArrivalTime.domId" v-model="form.supervisorNoticeInfo.stationMasterArrivalTime" type="datetime" size="mini" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy年MM月dd日 HH:mm:ss" placeholder="Select date and time" class="dateTime" :disabled="!isUpdate" @change="blurChange('supervisorNoticeInfo','stationMasterArrivalTime')" />
</td>
<td> <el-input :id="formInput.supervisorNoticeInfoStationMasterSign.domId" v-model="form.supervisorNoticeInfo.stationMasterSign" size="mini" :disabled="!isUpdate" @blur="blurChange('supervisorNoticeInfo','stationMasterSign')" /> </td>
</tr>
<tr>
<td colspan="4">发生雨量值或险情地点<el-input :id="formInput.supervisorNoticeInfoOccurredSite.domId" v-model="form.supervisorNoticeInfo.occurredSite" type="textarea" :autosize="{ minRows: 2 }" size="mini" :disabled="!isUpdate" @blur="blurChange('supervisorNoticeInfo','occurredSite')" /></td>
<td colspan="4">行车要求<el-input :id="formInput.supervisorNoticeInfoDrivingRequirement.domId" v-model="form.supervisorNoticeInfo.drivingRequirement" type="textarea" :autosize="{ minRows: 2 }" size="mini" :disabled="!isUpdate" @blur="blurChange('supervisorNoticeInfo','drivingRequirement')" /></td>
<td colspan="4">Occurrence of rainfall value (level) or danger location:<el-input :id="formInput.supervisorNoticeInfoOccurredSite.domId" v-model="form.supervisorNoticeInfo.occurredSite" type="textarea" :autosize="{ minRows: 2 }" size="mini" :disabled="!isUpdate" @blur="blurChange('supervisorNoticeInfo','occurredSite')" /></td>
<td colspan="4">Travel requirements:<el-input :id="formInput.supervisorNoticeInfoDrivingRequirement.domId" v-model="form.supervisorNoticeInfo.drivingRequirement" type="textarea" :autosize="{ minRows: 2 }" size="mini" :disabled="!isUpdate" @blur="blurChange('supervisorNoticeInfo','drivingRequirement')" /></td>
</tr>
<tr>
<td colspan="8" />
</tr>
<tr>
<td colspan="8" align="center">站长通知战区防洪小组记录表</td>
<td colspan="8" align="center">Station chief notified the war zone flood control team record sheet</td>
</tr>
<tr>
<td align="center">序号</td>
<td colspan="2" align="center">通知单位名称</td>
<td align="center">接收人姓名</td>
<td align="center">通知时间</td>
<td align="center">通知方式</td>
<td colspan="2" align="center">备注</td>
<td align="center">Serial number</td>
<td colspan="2" align="center">Notification unit name</td>
<td align="center">Receiver's </td>
<td align="center">Notification time</td>
<td align="center">Notification method</td>
<td colspan="2" align="center">Remarks</td>
</tr>
<tr v-for="(item, index) in form.stationMasterNoticeList" :key="index">
<td align="center"><span>{{ index + 1 }}</span></td>
<td colspan="2"><el-input :id="formInput['stationMasterNoticeListDepartment' + index].domId" v-model="item.department" size="mini" :disabled="!isUpdate" @blur="listChange('stationMasterNoticeList','department', index)" /></td>
<td><el-input :id="formInput['stationMasterNoticeListReceiver' + index].domId" v-model="item.receiver" size="mini" :disabled="!isUpdate" @blur="listChange('stationMasterNoticeList','receiver', index)" /></td>
<td>
<el-date-picker :id="formInput['stationMasterNoticeListNoticeTime' + index].domId" v-model="item.noticeTime" type="datetime" size="mini" format="yyyy年MM月dd日 HH:mm:ss" value-format="yyyy年MM月dd日 HH:mm:ss" placeholder="选择日期时间" class="dateTime" :disabled="!isUpdate" @change="listChange('stationMasterNoticeList','noticeTime', index)" />
<el-date-picker :id="formInput['stationMasterNoticeListNoticeTime' + index].domId" v-model="item.noticeTime" type="datetime" size="mini" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy年MM月dd日 HH:mm:ss" placeholder="Select date and time" class="dateTime" :disabled="!isUpdate" @change="listChange('stationMasterNoticeList','noticeTime', index)" />
</td>
<td><el-input :id="formInput['stationMasterNoticeListNoticeModel' + index].domId" v-model="item.noticeModel" size="mini" :disabled="!isUpdate" @blur="listChange('stationMasterNoticeList','noticeModel', index)" /></td>
<td colspan="2"><el-input :id="formInput['stationMasterNoticeListRemark' + index].domId" v-model="item.remark" size="mini" :disabled="!isUpdate" @blur="listChange('stationMasterNoticeList','remark', index)" /></td>
@ -96,35 +96,35 @@
<td colspan="8" />
</tr>
<tr>
<td colspan="8" align="center">战区防洪人员签到记录表</td>
<td colspan="8" align="center">Flood prevention personnel in the war zone sign-in record form</td>
</tr>
<tr>
<td align="center">序号</td>
<td colspan="2" align="center">单位名称工区</td>
<td align="center">到达时间</td>
<td align="center">职务</td>
<td align="center">联系电话</td>
<td align="center">签名</td>
<td align="center">返回时间</td>
<td align="center">Serial number</td>
<td colspan="2" align="center">Unit name (work area)</td>
<td align="center">Arrival time</td>
<td align="center">Position</td>
<td align="center">Contact number</td>
<td align="center">Signature</td>
<td align="center">Return time</td>
</tr>
<tr v-for="(item, index) in form.workerSignInfoList" :key="'workerSignInfoList' + index">
<td align="center"><span>{{ index + 1 }}</span></td>
<td colspan="2"><el-input :id="formInput['workerSignInfoListDepartment' + index].domId" v-model="item.department" size="mini" :disabled="!isUpdate" @blur="listChange('workerSignInfoList','department', index)" /></td>
<td>
<el-date-picker :id="formInput['workerSignInfoListArriveTime' + index].domId" v-model="item.arriveTime" type="datetime" size="mini" format="yyyy年MM月dd日 HH:mm:ss" value-format="yyyy年MM月dd日 HH:mm:ss" placeholder="选择日期时间" class="dateTime" :disabled="!isUpdate" @change="listChange('workerSignInfoList','arriveTime', index)" />
<el-date-picker :id="formInput['workerSignInfoListArriveTime' + index].domId" v-model="item.arriveTime" type="datetime" size="mini" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy年MM月dd日 HH:mm:ss" placeholder="Select date time" class="dateTime" :disabled="!isUpdate" @change="listChange('workerSignInfoList','arriveTime', index)" />
</td>
<td><el-input :id="formInput['workerSignInfoListAppointment' + index].domId" v-model="item.appointment" size="mini" :disabled="!isUpdate" @blur="listChange('workerSignInfoList','appointment', index)" /></td>
<td><el-input :id="formInput['workerSignInfoListTelephone' + index].domId" v-model="item.telephone" size="mini" :disabled="!isUpdate" @blur="listChange('workerSignInfoList','telephone', index)" /></td>
<td><el-input :id="formInput['workerSignInfoListSign' + index].domId" v-model="item.sign" size="mini" :disabled="!isUpdate" @blur="listChange('workerSignInfoList','sign', index)" /></td>
<td>
<el-date-picker :id="formInput['workerSignInfoListReturnTime' + index].domId" v-model="item.returnTime" type="datetime" size="mini" format="yyyy年MM月dd日 HH:mm:ss" value-format="yyyy年MM月dd日 HH:mm:ss" placeholder="选择日期时间" class="dateTime" :disabled="!isUpdate" @change="listChange('workerSignInfoList','returnTime', index)" />
<el-date-picker :id="formInput['workerSignInfoListReturnTime' + index].domId" v-model="item.returnTime" type="datetime" size="mini" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy年MM月dd日 HH:mm:ss" placeholder="Select date time" class="dateTime" :disabled="!isUpdate" @change="listChange('workerSignInfoList','returnTime', index)" />
</td>
</tr>
</table>
<div class="footer">
<el-button v-if="active == 'write'" :id="formInput.submit.domId" type="primary" size="mini" @click="submit">提交</el-button>
<el-button v-if="active == 'search'" :id="formInput.update.domId" :disabled="!isEdit" type="primary" size="mini" @click="update">更新</el-button>
<el-button v-if="active == 'search'" size="mini" @click="changeEdit">{{ isEdit ? '取消' : '编辑' }}</el-button>
<el-button v-if="active == 'write'" :id="formInput.submit.domId" type="primary" size="mini" @click="submit">Submit</el-button>
<el-button v-if="active == 'search'" :id="formInput.update.domId" :disabled="!isEdit" type="primary" size="mini" @click="update">Update</el-button>
<el-button v-if="active == 'search'" size="mini" @click="changeEdit">{{ isEdit ? 'Cancel' : 'Edit' }}</el-button>
</div>
</div>
</template>
@ -290,10 +290,10 @@ export default {
// }
// });
commitOperate(menuOperate.Rail.floodControlSafetyTableSave, obj, 2).then(({valid, operate})=>{
this.$message.success('提交成功!');
this.$message.success('Submitted successfully!');
this.initFormData();
}).catch((error)=>{
this.$messageBox('提交失败' + error.message);
this.$messageBox('Submission failure' + error.message);
});
},
update() {
@ -314,10 +314,10 @@ export default {
// }
// });
commitOperate(menuOperate.Rail.floodControlSafetyTableUpdate, obj, 2).then(({valid, operate})=>{
this.$message.success('更新成功!');
this.$message.success('Update successfully!');
this.isEdit = false;
}).catch((error)=>{
this.$messageBox('更新失败:' + error.message);
this.$messageBox('Update failure:' + error.message);
});
},
changeEdit() {

View File

@ -11,6 +11,9 @@
style="width: 100%"
:height="tableHeight"
>
<template slot="empty">
<el-empty description="No data available" />
</template>
<el-table-column prop="date" label="Day of the month" width="95">
<template slot-scope="scope">
<el-input v-if="dataIndex === scope.$index" :id="registerInput.moonDay.domId" v-model="scope.row.moonDay" @blur="moonDayChange(scope.row.moonDay)" />

View File

@ -2,7 +2,7 @@
<div class="sim-box">
<div style="height: 50px;text-align: center;line-height: 50px;font-size: 26px;font-weight: bolder;color: #fff;">{{ mapName }}</div>
<el-tabs v-model="activeName" class="tabs-box" type="border-card">
<el-tab-pane label="功能" name="first" style="height: 100%;">
<el-tab-pane label="Function" name="first" style="height: 100%;">
<el-collapse v-model="collapse" accordion>
<template v-for="item in subsetList">
<el-collapse-item :key="item" :title="item" :name="item" class="function-box">
@ -29,18 +29,18 @@
</template>
</el-collapse>
</el-tab-pane>
<el-tab-pane label="联机" name="second">
<el-form ref="ruleForm" v-loading="loading" :model="ruleForm" :rules="rules" label-width="100px">
<el-form-item label="仿真号" prop="inputGroup">
<el-input v-model="ruleForm.inputGroup" placeholder="请输入仿真号" style="width: 200px;" />
<el-tab-pane label="OnLine" name="second">
<el-form ref="ruleForm" v-loading="loading" :model="ruleForm" :rules="rules" label-width="180px">
<el-form-item label="Simulation group" prop="inputGroup">
<el-input v-model="ruleForm.inputGroup" placeholder="Please enter emulation number" style="width: 200px;" />
</el-form-item>
<el-form-item>
<el-button type="primary" @click="joinSimulation">立即加入</el-button>
<el-button @click="resetGroup">重置</el-button>
<el-button type="primary" @click="joinSimulation">Join immediately</el-button>
<el-button @click="resetGroup">Reset</el-button>
</el-form-item>
</el-form>
</el-tab-pane>
<el-tab-pane label="权限" name="third">
<el-tab-pane label="Permission" name="third">
<div style="height: 100%; overflow: auto;">
<QueryListPage ref="queryListPage" :pager-config="pagerConfig" :query-form="queryForm" :query-list="queryList" />
<select-role ref="selectRole" @reloadTable="reloadTable" />