国际化调整
This commit is contained in:
parent
87637e89ae
commit
382b81b94e
@ -200,6 +200,39 @@ export default {
|
|||||||
passwordError: 'Second entered password error',
|
passwordError: 'Second entered password error',
|
||||||
passwordSame: 'Old password is the same as new password'
|
passwordSame: 'Old password is the same as new password'
|
||||||
},
|
},
|
||||||
|
menuDialog: {
|
||||||
|
versionName: 'ControlMonitor 1.3.5.0',
|
||||||
|
confirm: 'confirm',
|
||||||
|
copyright: 'Copyright (C) 2010-2011 Beijing Jiu Lian Technology Co., Ltd.',
|
||||||
|
moduleName: 'Module Name',
|
||||||
|
version: 'Version',
|
||||||
|
modifyDate: 'Modify Date',
|
||||||
|
mainProgramVersion: 'Main Program Version:',
|
||||||
|
about: 'About ControlMonitor',
|
||||||
|
|
||||||
|
userList: 'userList',
|
||||||
|
jobNumber: 'JobNumber',
|
||||||
|
userName: 'UserName',
|
||||||
|
refresh: 'Refresh',
|
||||||
|
add: 'Add',
|
||||||
|
modify: 'Modify',
|
||||||
|
delete: 'Delete',
|
||||||
|
cancel: 'Cancel',
|
||||||
|
userManage: 'User Manage',
|
||||||
|
selectUser: 'Please select a user first',
|
||||||
|
deleteMessageOne: 'Are you sure to delete user',
|
||||||
|
deleteMessageTwo: '?',
|
||||||
|
addFail: 'Add failed, users with the same job number',
|
||||||
|
modifyFail: 'failed to modify',
|
||||||
|
deleteFail: 'failed to delete',
|
||||||
|
|
||||||
|
passwordBox: 'Password box',
|
||||||
|
userNameLabel: 'UserName:',
|
||||||
|
password: 'Password',
|
||||||
|
back: 'Back',
|
||||||
|
clear: 'Clear',
|
||||||
|
IncorrectPassword: 'Incorrect Password!'
|
||||||
|
},
|
||||||
platform: 'Platform',
|
platform: 'Platform',
|
||||||
arrivalTime: 'Arrival time',
|
arrivalTime: 'Arrival time',
|
||||||
stopTime: 'Stop time',
|
stopTime: 'Stop time',
|
||||||
|
@ -197,6 +197,97 @@ export default {
|
|||||||
passwordError: '二次输入的密码错误',
|
passwordError: '二次输入的密码错误',
|
||||||
passwordSame: '老密码和新密相同'
|
passwordSame: '老密码和新密相同'
|
||||||
},
|
},
|
||||||
|
menuDialog: {
|
||||||
|
versionName: 'ControlMonitor 1.3.5.0',
|
||||||
|
confirm: '确定',
|
||||||
|
copyright: '版权所有(C)2010-2011 北京玖琏科技有限公司',
|
||||||
|
moduleName: '模块名称',
|
||||||
|
version: '版本',
|
||||||
|
modifyDate: '修改日期',
|
||||||
|
mainProgramVersion: '主程序版本:',
|
||||||
|
about: '关于ControlMonitor',
|
||||||
|
|
||||||
|
userList: '用户列表',
|
||||||
|
jobNumber: '工号',
|
||||||
|
userName: '用户名',
|
||||||
|
refresh: '刷新',
|
||||||
|
add: '增加',
|
||||||
|
modify: '修改',
|
||||||
|
delete: '删除',
|
||||||
|
cancel: '取 消',
|
||||||
|
userManage: '用户管理',
|
||||||
|
selectUser: '请先选择用户',
|
||||||
|
deleteMessageOne: '你确定删除用户',
|
||||||
|
deleteMessageTwo: '吗?',
|
||||||
|
addFail: '添加失败,存在相同工号的用户',
|
||||||
|
modifyFail: '修改失败',
|
||||||
|
deleteFail: '删除失败',
|
||||||
|
|
||||||
|
passwordBox: '密码框',
|
||||||
|
userNameLabel: '用户名:',
|
||||||
|
password: '密 码:',
|
||||||
|
back: '回退',
|
||||||
|
clear: '清空',
|
||||||
|
IncorrectPassword: '密码输入错误!'
|
||||||
|
|
||||||
|
// 控制模式转换
|
||||||
|
// 选择
|
||||||
|
// 操作区域
|
||||||
|
// 控制模式
|
||||||
|
// 中心-车站通信状态
|
||||||
|
// 转换执行状态
|
||||||
|
// 强制站控
|
||||||
|
// 请求站控
|
||||||
|
// 请求中控
|
||||||
|
// 关闭
|
||||||
|
// 中控
|
||||||
|
// 站控
|
||||||
|
// 接受转换应答超时
|
||||||
|
// 控制模式转换成功
|
||||||
|
// 控制模式转换失败
|
||||||
|
// 已发送转换请求,
|
||||||
|
// 秒后超时.
|
||||||
|
// 正常
|
||||||
|
// 请选择一条数据
|
||||||
|
// 确认将如下操作区域的控制模式由中控转为站控:
|
||||||
|
// 操作区域
|
||||||
|
// 确认将如下操作区域的控制模式由中控转为站控:
|
||||||
|
// 操作区域
|
||||||
|
// 确认将如下操作区域的控制模式由站控转为中控:
|
||||||
|
// 操作区域
|
||||||
|
|
||||||
|
// 添加位置
|
||||||
|
// 终   端:
|
||||||
|
// 请选择
|
||||||
|
// 前车车次号:
|
||||||
|
// 添加车次号:
|
||||||
|
// 确定
|
||||||
|
// 取 消
|
||||||
|
// 请输入车次号
|
||||||
|
// 请选择终端
|
||||||
|
// 添加计划车
|
||||||
|
|
||||||
|
// 终  端:
|
||||||
|
// 请选择
|
||||||
|
// 车 次 号:
|
||||||
|
// 确定
|
||||||
|
// 取 消
|
||||||
|
// 请输入车次号
|
||||||
|
// 请选择终端
|
||||||
|
// 删除计划车
|
||||||
|
|
||||||
|
// 车 次 号:
|
||||||
|
// 目的
|
||||||
|
// 终  端:
|
||||||
|
// 请选择
|
||||||
|
// 车 次 号:
|
||||||
|
// 确定
|
||||||
|
// 取 消
|
||||||
|
// 请输入车次号
|
||||||
|
// 请输入前车车次号
|
||||||
|
// 请选择终端
|
||||||
|
// 平移计划车
|
||||||
|
},
|
||||||
platform: '站台',
|
platform: '站台',
|
||||||
arrivalTime: '到点',
|
arrivalTime: '到点',
|
||||||
stopTime: '停站时间',
|
stopTime: '停站时间',
|
||||||
|
@ -6,28 +6,27 @@
|
|||||||
</div>
|
</div>
|
||||||
<div style="position: relative; left: 80px;">
|
<div style="position: relative; left: 80px;">
|
||||||
<div style="width:100%">
|
<div style="width:100%">
|
||||||
<span style="padding-left: 60px">ControlMonitor 1.3.5.0</span>
|
<span style="padding-left: 60px">{{$t('menu.menuDialog.versionName')}}</span>
|
||||||
<el-button style="position: absolute; right: 95px;" :id="domIdConfirm" type="primary"
|
<el-button style="position: absolute; right: 95px;" :id="domIdConfirm" type="primary"
|
||||||
:loading="loading" @click="commit">确定</el-button>
|
:loading="loading" @click="commit">{{$t('menu.menuDialog.confirm')}}</el-button>
|
||||||
</div>
|
</div>
|
||||||
<div style="width:100%; padding-top: 20px">
|
<div style="width:100%; padding-top: 20px">
|
||||||
<span> 版权所有(C)2010-2011 北京玖琏科技有限公司</span>
|
<span> {{$t('menu.menuDialog.copyright')}}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="padding: 10px; margin: 5px; ">
|
<div style="padding: 10px; margin: 5px; ">
|
||||||
<el-table :data="tableData" style="width: 100%;" height="400">
|
<el-table :data="tableData" style="width: 100%;" height="400">
|
||||||
<el-table-column prop="moduleName" label="模块名称" width="180">
|
<el-table-column prop="moduleName" :label="$t('menu.menuDialog.moduleName')" width="180">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="version" label="版本" width="180">
|
<el-table-column prop="version" :label="$t('menu.menuDialog.version')" width="180">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="updateDate" label="修改日期">
|
<el-table-column prop="updateDate" :label="$t('menu.menuDialog.modifyDate')">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { MapDeviceType, OperationEvent } from '@/scripts/ConstDic';
|
import { MapDeviceType, OperationEvent } from '@/scripts/ConstDic';
|
||||||
|
|
||||||
@ -37,7 +36,7 @@
|
|||||||
return {
|
return {
|
||||||
tableData: [
|
tableData: [
|
||||||
{
|
{
|
||||||
moduleName: '主程序版本:',
|
moduleName: this.$t('menu.menuDialog.mainProgramVersion'),
|
||||||
version: '123',
|
version: '123',
|
||||||
updateDate: '123'
|
updateDate: '123'
|
||||||
}
|
}
|
||||||
@ -60,7 +59,7 @@
|
|||||||
return this.dialogShow ? OperationEvent.Command.close.menu.domId : '';
|
return this.dialogShow ? OperationEvent.Command.close.menu.domId : '';
|
||||||
},
|
},
|
||||||
title() {
|
title() {
|
||||||
return '关于ControlMonitor'
|
return this.$t('menu.menuDialog.about')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
@ -2,17 +2,17 @@
|
|||||||
<el-dialog class="fuzhou-01__systerm manage-user" :title="title" :visible.sync="show" width="420px"
|
<el-dialog class="fuzhou-01__systerm manage-user" :title="title" :visible.sync="show" width="420px"
|
||||||
:before-close="doClose" :zIndex="2000" :modal="false" :close-on-click-modal="false" v-dialogDrag>
|
:before-close="doClose" :zIndex="2000" :modal="false" :close-on-click-modal="false" v-dialogDrag>
|
||||||
<div style="padding: 5px 5px; border: 1px double lightgray; margin: 20px 0px; ">
|
<div style="padding: 5px 5px; border: 1px double lightgray; margin: 20px 0px; ">
|
||||||
<span class="base-label">用户列表</span>
|
<span class="base-label">{{$t('menu.menuDialog.userList')}}</span>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="18">
|
<el-col :span="18">
|
||||||
<el-table ref="multipleTable" :data="tableData" border row-key="code" style="width: 100%"
|
<el-table ref="multipleTable" :data="tableData" border row-key="code" style="width: 100%"
|
||||||
height="450" center size="mini" highlight-current-row @row-click="chooseUser">
|
height="450" center size="mini" highlight-current-row @row-click="chooseUser">
|
||||||
<el-table-column prop="jobNumber" label="工号" width="120">
|
<el-table-column prop="jobNumber" :label="$t('menu.menuDialog.jobNumber')" width="120">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{scope.row.jobNumber}}</span>
|
<span>{{scope.row.jobNumber}}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="userName" label="用户名">
|
<el-table-column prop="userName" :label="$t('menu.menuDialog.userName')">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{scope.row.userName}}</span>
|
<span>{{scope.row.userName}}</span>
|
||||||
</template>
|
</template>
|
||||||
@ -22,23 +22,23 @@
|
|||||||
</el-table>
|
</el-table>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-button style="margin-top: 140px; margin-left: 10px;" :id="domIdFreshUser" @click="freshUser">刷新
|
<el-button style="margin-top: 140px; margin-left: 10px;" :id="domIdFreshUser" @click="freshUser">{{$t('menu.menuDialog.refresh')}}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button style="margin-top: 30px; margin-left: 10px;" :id="domIdAddUser" @click="addUser">增加
|
<el-button style="margin-top: 30px; margin-left: 10px;" :id="domIdAddUser" @click="addUser">{{$t('menu.menuDialog.add')}}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button style="margin-top: 30px; margin-left: 10px;" :id="domIdEditUser" @click="editUser">修改
|
<el-button style="margin-top: 30px; margin-left: 10px;" :id="domIdEditUser" @click="editUser">{{$t('menu.menuDialog.modify')}}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button style="margin-top: 30px; margin-left: 10px;" :id="domIdDelUser" @click="delUser">删除
|
<el-button style="margin-top: 30px; margin-left: 10px;" :id="domIdDelUser" @click="delUser">{{$t('menu.menuDialog.delete')}}
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
<el-row justify="center" class="button-group">
|
<el-row justify="center" class="button-group">
|
||||||
<el-col :span="8" :offset="6">
|
<el-col :span="8" :offset="6">
|
||||||
<el-button :id="domIdConfirm" type="primary" :loading="loading" @click="commit">确定</el-button>
|
<el-button :id="domIdConfirm" type="primary" :loading="loading" @click="commit">{{$t('menu.menuDialog.confirm')}}</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8" :offset="0">
|
<el-col :span="8" :offset="0">
|
||||||
<el-button :id="domIdCancel" @click="cancel">取 消</el-button>
|
<el-button :id="domIdCancel" @click="cancel">{{$t('menu.menuDialog.cancel')}}</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<user-add ref="userAdd" @operateUser="operateUser"></user-add>
|
<user-add ref="userAdd" @operateUser="operateUser"></user-add>
|
||||||
@ -100,7 +100,7 @@
|
|||||||
return this.dialogShow ? OperationEvent.Command.close.menu.domId : '';
|
return this.dialogShow ? OperationEvent.Command.close.menu.domId : '';
|
||||||
},
|
},
|
||||||
title() {
|
title() {
|
||||||
return '用户管理'
|
return this.$t('menu.menuDialog.userManage')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@ -162,7 +162,7 @@
|
|||||||
this.loading = false;
|
this.loading = false;
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$messageBox('请先选择用户');
|
this.$messageBox(this.$t('menu.menuDialog.selectUser'));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//删除用户
|
//删除用户
|
||||||
@ -171,7 +171,7 @@
|
|||||||
let operate = {
|
let operate = {
|
||||||
type: this.operate.type,
|
type: this.operate.type,
|
||||||
operation: OperationEvent.Command.manage.delUser.operation,
|
operation: OperationEvent.Command.manage.delUser.operation,
|
||||||
messages: [`你确定删除用户${this.selected.userName}吗?`]
|
messages: [`${this.$t('menu.menuDialog.deleteMessageOne')} ${this.selected.userName} ${this.$t('menu.menuDialog.deleteMessageTwo')}`]
|
||||||
}
|
}
|
||||||
|
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
@ -184,7 +184,7 @@
|
|||||||
this.loading = false;
|
this.loading = false;
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$messageBox('请先选择用户');
|
this.$messageBox(this.$t('menu.menuDialog.selectUser'));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//刷新用户
|
//刷新用户
|
||||||
@ -256,7 +256,7 @@
|
|||||||
password: data.password
|
password: data.password
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.$messageBox('添加失败,存在相同工号的用户');
|
this.$messageBox(this.$t('menu.menuDialog.addFail'));
|
||||||
}
|
}
|
||||||
} else if (data && data.type === 'EDIT') {
|
} else if (data && data.type === 'EDIT') {
|
||||||
let index = this.tableData.indexOf(this.tableData.find(elem => { return elem.jobNumber === data.jobNumber }));
|
let index = this.tableData.indexOf(this.tableData.find(elem => { return elem.jobNumber === data.jobNumber }));
|
||||||
@ -264,14 +264,14 @@
|
|||||||
this.tableData[index].password = data.password;
|
this.tableData[index].password = data.password;
|
||||||
this.tableData[index].userName = data.userName;
|
this.tableData[index].userName = data.userName;
|
||||||
} else {
|
} else {
|
||||||
this.$messageBox('修改失败');
|
this.$messageBox(this.$t('menu.menuDialog.modifyFail'));
|
||||||
}
|
}
|
||||||
} else if (data && data.type === 'DELETE') {
|
} else if (data && data.type === 'DELETE') {
|
||||||
let index = this.tableData.indexOf(this.tableData.find(elem => { return elem.jobNumber === data.jobNumber }));
|
let index = this.tableData.indexOf(this.tableData.find(elem => { return elem.jobNumber === data.jobNumber }));
|
||||||
if (index >= 0) {
|
if (index >= 0) {
|
||||||
this.tableData.splice(index, 1);
|
this.tableData.splice(index, 1);
|
||||||
} else {
|
} else {
|
||||||
this.$messageBox('删除失败');
|
this.$messageBox(this.$t('menu.menuDialog.deleteFail'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog class="fuzhou-01__systerm password-box" title="密码框" :visible.sync="show" width="320px"
|
<el-dialog class="fuzhou-01__systerm password-box" :title="$t('menu.menuDialog.passwordBox')" :visible.sync="show" width="320px"
|
||||||
:before-close="doClose" :zIndex="2000" :modal="false" :close-on-click-modal="false" v-dialogDrag>
|
:before-close="doClose" :zIndex="2000" :modal="false" :close-on-click-modal="false" v-dialogDrag>
|
||||||
<div class="context" style="overflow:hidden">
|
<div class="context" style="overflow:hidden">
|
||||||
<el-form label-width="80px" size="mini">
|
<el-form label-width="80px" size="mini">
|
||||||
<el-form-item prop="username">
|
<el-form-item prop="username">
|
||||||
<span slot="label">用户名:</span>
|
<span slot="label">{{$t('menu.menuDialog.userNameLabel')}}</span>
|
||||||
<el-input v-model="model.username" disabled></el-input>
|
<el-input v-model="model.username" disabled></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="password">
|
<el-form-item prop="password">
|
||||||
<span slot="label">密 码:</span>
|
<span slot="label">{{$t('menu.menuDialog.password')}}</span>
|
||||||
<el-input type="password" v-model="model.password"></el-input>
|
<el-input type="password" v-model="model.password"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
@ -21,7 +21,7 @@
|
|||||||
<el-button size="mini" @click="click(5)">5</el-button>
|
<el-button size="mini" @click="click(5)">5</el-button>
|
||||||
</el-button-group>
|
</el-button-group>
|
||||||
<el-button-group class="right" v-model="key" size="mini">
|
<el-button-group class="right" v-model="key" size="mini">
|
||||||
<el-button @click="esc">回退</el-button>
|
<el-button @click="esc">{{$t('menu.menuDialog.back')}}</el-button>
|
||||||
</el-button-group>
|
</el-button-group>
|
||||||
<el-button-group class="left" v-model="key" size="mini">
|
<el-button-group class="left" v-model="key" size="mini">
|
||||||
<el-button size="mini" @click="click(6)">6</el-button>
|
<el-button size="mini" @click="click(6)">6</el-button>
|
||||||
@ -31,16 +31,16 @@
|
|||||||
<el-button size="mini" @click="click(0)">0</el-button>
|
<el-button size="mini" @click="click(0)">0</el-button>
|
||||||
</el-button-group>
|
</el-button-group>
|
||||||
<el-button-group class="right" v-model="key" size="mini">
|
<el-button-group class="right" v-model="key" size="mini">
|
||||||
<el-button @click="clr">清空</el-button>
|
<el-button @click="clr">{{$t('menu.menuDialog.clear')}}</el-button>
|
||||||
</el-button-group>
|
</el-button-group>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-row class="button-group">
|
<el-row class="button-group">
|
||||||
<el-col :span="6" :offset="4">
|
<el-col :span="6" :offset="4">
|
||||||
<el-button :id="domIdConfirm" type="primary" :loading="loading" @click="commit">确定</el-button>
|
<el-button :id="domIdConfirm" type="primary" :loading="loading" @click="commit">{{$t('menu.menuDialog.confirm')}}</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="6" :offset="4">
|
<el-col :span="6" :offset="4">
|
||||||
<el-button :id="domIdCancel" @click="cancel">取 消</el-button>
|
<el-button :id="domIdCancel" @click="cancel">{{$t('menu.menuDialog.cancel')}}</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<notice-info ref="noticeInfo"></notice-info>
|
<notice-info ref="noticeInfo"></notice-info>
|
||||||
@ -155,7 +155,7 @@
|
|||||||
});
|
});
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$refs.noticeInfo.doShow(operate, ['密码输入错误!']);
|
this.$refs.noticeInfo.doShow(operate, [this.$t('menu.menuDialog.IncorrectPassword')]);
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user