添加翻译
This commit is contained in:
parent
ec03a5b6b7
commit
ba21c4fe95
@ -1,7 +1,7 @@
|
|||||||
export default {
|
export default {
|
||||||
simulation: '仿真',
|
simulation: 'Simulation',
|
||||||
multiplayerSimulation: '多人仿真',
|
multiplayerSimulation: '多人仿真',
|
||||||
regulationSimulation: '监管仿真',
|
regulationSimulation: 'Regulation of the simulation',
|
||||||
teachingManagement: '教学管理',
|
teachingManagement: '教学管理',
|
||||||
classroom: '班级管理',
|
classroom: '班级管理',
|
||||||
student: '学生管理',
|
student: '学生管理',
|
||||||
|
@ -13,39 +13,39 @@
|
|||||||
>
|
>
|
||||||
<div class="applyOrAgreeAll">
|
<div class="applyOrAgreeAll">
|
||||||
<div class="applyOrAgreeTitle">
|
<div class="applyOrAgreeTitle">
|
||||||
<div class="applyOrAgreeStation">站名</div>
|
<div class="applyOrAgreeStation">Station name</div>
|
||||||
<!-- <el-radio-group v-model="controlTypeAll"> -->
|
<!-- <el-radio-group v-model="controlTypeAll"> -->
|
||||||
<div class="applyOrAgreeCenterControl">
|
<div class="applyOrAgreeCenterControl">
|
||||||
<el-radio key="centerControlAll" v-model="controlTypeAll" label="centerControlAll" size="small">全选</el-radio>
|
<el-radio key="centerControlAll" v-model="controlTypeAll" label="centerControlAll" size="small">Select all</el-radio>
|
||||||
</div>
|
</div>
|
||||||
<div class="applyOrAgreeStationControl">
|
<div class="applyOrAgreeStationControl">
|
||||||
<el-radio key="stationControlAll" v-model="controlTypeAll" label="stationControlAll" size="small">全选</el-radio>
|
<el-radio key="stationControlAll" v-model="controlTypeAll" label="stationControlAll" size="small">Select all</el-radio>
|
||||||
</div>
|
</div>
|
||||||
<div class="applyOrAgreeStationDispatchControl">
|
<div class="applyOrAgreeStationDispatchControl">
|
||||||
<el-radio key="stationDispatchControlAll" v-model="controlTypeAll" label="stationDispatchControlAll" size="small">全选</el-radio>
|
<el-radio key="stationDispatchControlAll" v-model="controlTypeAll" label="stationDispatchControlAll" size="small">Select all</el-radio>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="applyOrAgreeContent">
|
<div class="applyOrAgreeContent">
|
||||||
<div v-for="(station,index) in stationList" :key="index" class="applyOrAgreeContentIn">
|
<div v-for="(station,index) in stationList" :key="index" class="applyOrAgreeContentIn">
|
||||||
<div class="applyOrAgreeStation">{{ station.name }}</div>
|
<div class="applyOrAgreeStation">{{ station.name }}</div>
|
||||||
<div class="applyOrAgreeCenterControl">
|
<div class="applyOrAgreeCenterControl">
|
||||||
<el-radio key="centerControlAll" v-model="selectedControlList[index]" label="centerControlAll" size="small">中心控制</el-radio>
|
<el-radio key="centerControlAll" v-model="selectedControlList[index]" label="centerControlAll" size="small">Central control</el-radio>
|
||||||
</div>
|
</div>
|
||||||
<div class="applyOrAgreeStationControl">
|
<div class="applyOrAgreeStationControl">
|
||||||
<el-radio key="stationControlAll" v-model="selectedControlList[index]" label="stationControlAll" size="small">车站控制</el-radio>
|
<el-radio key="stationControlAll" v-model="selectedControlList[index]" label="stationControlAll" size="small">Station control</el-radio>
|
||||||
</div>
|
</div>
|
||||||
<div class="applyOrAgreeStationDispatchControl">
|
<div class="applyOrAgreeStationDispatchControl">
|
||||||
<el-radio key="stationDispatchControlAll" v-model="selectedControlList[index]" label="stationDispatchControlAll" size="small">车站调车</el-radio>
|
<el-radio key="stationDispatchControlAll" v-model="selectedControlList[index]" label="stationDispatchControlAll" size="small">Station switching</el-radio>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-row justify="center" class="button-group" style="margin-bottom:20px;margin-top:20px">
|
<el-row justify="center" class="button-group" style="margin-bottom:20px;margin-top:20px">
|
||||||
<el-col :span="5" :offset="6">
|
<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">Confirm</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="5" :offset="2">
|
<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-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<notice-info ref="noticeInfo" pop-class="chengdou-03__systerm" />
|
<notice-info ref="noticeInfo" pop-class="chengdou-03__systerm" />
|
||||||
@ -63,7 +63,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
dialogShow: false,
|
dialogShow: false,
|
||||||
title:'操作方式转换',
|
title:'Mode of operation conversion',
|
||||||
controlTypeAll:'',
|
controlTypeAll:'',
|
||||||
selectedControlList:[],
|
selectedControlList:[],
|
||||||
loading: false,
|
loading: false,
|
||||||
@ -143,7 +143,7 @@ export default {
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 108px;
|
width: 128px;
|
||||||
}
|
}
|
||||||
.apply-agree.chengdou-03__systerm .el-dialog .el-dialog__body{
|
.apply-agree.chengdou-03__systerm .el-dialog .el-dialog__body{
|
||||||
padding:0px;
|
padding:0px;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
v-dialogDrag
|
v-dialogDrag
|
||||||
class="datie-02__systerm"
|
class="datie-02__systerm"
|
||||||
:visible.sync="show"
|
:visible.sync="show"
|
||||||
width="250px"
|
width="280px"
|
||||||
:before-close="doClose"
|
:before-close="doClose"
|
||||||
:z-index="2000"
|
:z-index="2000"
|
||||||
:modal="false"
|
:modal="false"
|
||||||
|
@ -1038,7 +1038,7 @@ export default {
|
|||||||
}
|
}
|
||||||
.modeCovertPopList{
|
.modeCovertPopList{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 130px;
|
width: 190px;
|
||||||
background: #F0F0F0;
|
background: #F0F0F0;
|
||||||
bottom: 18px;
|
bottom: 18px;
|
||||||
left: 780px;
|
left: 780px;
|
||||||
|
@ -96,11 +96,11 @@
|
|||||||
<!-- </div>-->
|
<!-- </div>-->
|
||||||
<el-submenu v-if="!thirdLogin" :key="99" index="/info" :show-timeout="100">
|
<el-submenu v-if="!thirdLogin" :key="99" index="/info" :show-timeout="100">
|
||||||
<span slot="title">{{ username }}</span>
|
<span slot="title">{{ username }}</span>
|
||||||
<el-menu-item :key="991" index="/info/personalInfo">个人信息</el-menu-item>
|
<el-menu-item :key="991" index="/info/personalInfo">Personal information</el-menu-item>
|
||||||
<el-menu-item v-if="isNotCompanyAdmin && isCGY && isSameProject" :key="992" index="/info/studentStatistics">数据统计</el-menu-item>
|
<el-menu-item v-if="isNotCompanyAdmin && isCGY && isSameProject" :key="992" index="/info/studentStatistics">数据统计</el-menu-item>
|
||||||
</el-submenu>
|
</el-submenu>
|
||||||
<div v-if="!thirdLogin" class="rightGroup">
|
<div v-if="!thirdLogin" class="rightGroup">
|
||||||
<el-tooltip class="item" effect="dark" content="退出" placement="bottom-end">
|
<el-tooltip class="item" effect="dark" content="Exit" placement="bottom-end">
|
||||||
<i class="el-icon-switch-button" style="color: #fff;font-weight: bolder;cursor: pointer;" @click="logout" />
|
<i class="el-icon-switch-button" style="color: #fff;font-weight: bolder;cursor: pointer;" @click="logout" />
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
</div>
|
</div>
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
<div style="width: 100%;height: 100%;text-align: left;padding: 50px;">
|
<div style="width: 100%;height: 100%;text-align: left;padding: 50px;">
|
||||||
<el-card class="box-card">
|
<el-card class="box-card">
|
||||||
<div slot="header" class="clearfix">
|
<div slot="header" class="clearfix">
|
||||||
<span>个人信息</span>
|
<span>Personal information</span>
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 100%;">
|
<div style="width: 100%;">
|
||||||
<div class="form_box">
|
<div class="form_box">
|
||||||
<div class="title">{{ $t('global.compellation') }}:</div>
|
<div class="title">Name:</div>
|
||||||
<div class="content_box_info">
|
<div class="content_box_info">
|
||||||
<div v-show="nameShow" class="show_box">
|
<div v-show="nameShow" class="show_box">
|
||||||
<span>{{ userInfo.name }}</span>
|
<span>{{ userInfo.name }}</span>
|
||||||
@ -15,7 +15,7 @@
|
|||||||
<div v-show="!nameShow" class="flex_box">
|
<div v-show="!nameShow" class="flex_box">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="editInfo.name"
|
v-model="editInfo.name"
|
||||||
:placeholder="$t('global.enterName')"
|
placeholder="Please enter name"
|
||||||
maxlength="20"
|
maxlength="20"
|
||||||
size="mini"
|
size="mini"
|
||||||
class="input_box"
|
class="input_box"
|
||||||
@ -38,7 +38,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form_box" style="background: #f3efef;">
|
<div class="form_box" style="background: #f3efef;">
|
||||||
<div class="title">{{ $t('global.nickName') }}:</div>
|
<div class="title">NickName:</div>
|
||||||
<div class="content_box_info">
|
<div class="content_box_info">
|
||||||
<div v-show="nickNameShow" class="show_box">
|
<div v-show="nickNameShow" class="show_box">
|
||||||
<span>{{ userInfo.nickname }}</span>
|
<span>{{ userInfo.nickname }}</span>
|
||||||
@ -47,7 +47,7 @@
|
|||||||
<div v-show="!nickNameShow" class="flex_box">
|
<div v-show="!nickNameShow" class="flex_box">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="editInfo.nickname"
|
v-model="editInfo.nickname"
|
||||||
:placeholder="$t('global.enterNickname')"
|
placeholder="Please enter nickname"
|
||||||
maxlength="20"
|
maxlength="20"
|
||||||
size="mini"
|
size="mini"
|
||||||
class="input_box"
|
class="input_box"
|
||||||
@ -58,19 +58,19 @@
|
|||||||
class="button_box"
|
class="button_box"
|
||||||
:disabled="!editInfo.nickname"
|
:disabled="!editInfo.nickname"
|
||||||
@click="saveNickName"
|
@click="saveNickName"
|
||||||
>{{ $t('global.save') }}</el-button>
|
>Save</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
class="button_box"
|
class="button_box"
|
||||||
type="text"
|
type="text"
|
||||||
@click="switcherNickname"
|
@click="switcherNickname"
|
||||||
>{{ $t('global.cancel') }}</el-button>
|
>Cancel</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form_box">
|
<div class="form_box">
|
||||||
<div class="title">{{ $t('global.mobile') }}:</div>
|
<div class="title">Mobile:</div>
|
||||||
<div class="content_box_info">
|
<div class="content_box_info">
|
||||||
<div v-show="mobileShow" class="show_box">
|
<div v-show="mobileShow" class="show_box">
|
||||||
<span>{{ geTel(userInfo.mobile) }}</span>
|
<span>{{ geTel(userInfo.mobile) }}</span>
|
||||||
@ -79,7 +79,7 @@
|
|||||||
<div v-show="!mobileShow" class="flex_box">
|
<div v-show="!mobileShow" class="flex_box">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="editInfo.mobile"
|
v-model="editInfo.mobile"
|
||||||
:placeholder="$t('global.enterMobile')"
|
placeholder="Please enter your cell phone number"
|
||||||
maxlength="11"
|
maxlength="11"
|
||||||
size="mini"
|
size="mini"
|
||||||
class="input_box"
|
class="input_box"
|
||||||
@ -94,7 +94,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="mobileCode"
|
v-model="mobileCode"
|
||||||
:placeholder="$t('global.verificationCode')"
|
placeholder="Verification code"
|
||||||
size="mini"
|
size="mini"
|
||||||
class="code_box"
|
class="code_box"
|
||||||
style="margin-top: 10px;"
|
style="margin-top: 10px;"
|
||||||
@ -105,7 +105,7 @@
|
|||||||
:disabled="mobileCodeTime != 0"
|
:disabled="mobileCodeTime != 0"
|
||||||
@click="sendMobileCode"
|
@click="sendMobileCode"
|
||||||
>
|
>
|
||||||
{{ $t('global.sendCode') }}
|
Send verification code
|
||||||
<span
|
<span
|
||||||
v-if="mobileCodeTime"
|
v-if="mobileCodeTime"
|
||||||
>{{ mobileCodeTime }}</span>
|
>{{ mobileCodeTime }}</span>
|
||||||
@ -116,19 +116,19 @@
|
|||||||
class="button_box"
|
class="button_box"
|
||||||
:disabled="!mobileCode"
|
:disabled="!mobileCode"
|
||||||
@click="saveMobile"
|
@click="saveMobile"
|
||||||
>{{ $t('global.save') }}</el-button>
|
>Save</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
class="button_box"
|
class="button_box"
|
||||||
type="text"
|
type="text"
|
||||||
@click="switcherMobile"
|
@click="switcherMobile"
|
||||||
>{{ $t('global.cancel') }}</el-button>
|
>Cancel</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form_box" style="background: #f3efef;">
|
<div class="form_box" style="background: #f3efef;">
|
||||||
<div class="title">{{ $t('global.email') }}:</div>
|
<div class="title">Email:</div>
|
||||||
<div class="content_box_info">
|
<div class="content_box_info">
|
||||||
<div v-show="emailShow" class="show_box">
|
<div v-show="emailShow" class="show_box">
|
||||||
<span>{{ userInfo.email }}</span>
|
<span>{{ userInfo.email }}</span>
|
||||||
@ -137,13 +137,13 @@
|
|||||||
<div v-show="!emailShow" class="flex_box">
|
<div v-show="!emailShow" class="flex_box">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="editInfo.email"
|
v-model="editInfo.email"
|
||||||
:placeholder="$t('global.enterEmail')"
|
placeholder="Please enter email"
|
||||||
size="mini"
|
size="mini"
|
||||||
class="input_box"
|
class="input_box"
|
||||||
/>
|
/>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="emailCode"
|
v-model="emailCode"
|
||||||
:placeholder="$t('global.verificationCode')"
|
placeholder="Verification code"
|
||||||
size="mini"
|
size="mini"
|
||||||
class="code_box"
|
class="code_box"
|
||||||
style="margin-top: 10px;"
|
style="margin-top: 10px;"
|
||||||
@ -154,7 +154,7 @@
|
|||||||
:disabled="emailCodeTime != 0"
|
:disabled="emailCodeTime != 0"
|
||||||
@click="sendEmailCode"
|
@click="sendEmailCode"
|
||||||
>
|
>
|
||||||
{{ $t('global.sendCode') }}
|
Send verification code
|
||||||
<span
|
<span
|
||||||
v-if="emailCodeTime"
|
v-if="emailCodeTime"
|
||||||
>{{ emailCodeTime }}</span>
|
>{{ emailCodeTime }}</span>
|
||||||
@ -165,23 +165,23 @@
|
|||||||
class="button_box"
|
class="button_box"
|
||||||
:disabled="!emailCode"
|
:disabled="!emailCode"
|
||||||
@click="saveEmail"
|
@click="saveEmail"
|
||||||
>{{ $t('global.save') }}</el-button>
|
>Save</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
class="button_box"
|
class="button_box"
|
||||||
type="text"
|
type="text"
|
||||||
@click="switcherEmail"
|
@click="switcherEmail"
|
||||||
>{{ $t('global.cancel') }}</el-button>
|
>Cancel</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form_box">
|
<div class="form_box">
|
||||||
<div class="title">组织:</div>
|
<div class="title">Organization:</div>
|
||||||
<div class="content_box_info">{{ userInfo.companyName }}</div>
|
<div class="content_box_info">{{ userInfo.companyName }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form_box" style="background: #f3efef;">
|
<div class="form_box" style="background: #f3efef;">
|
||||||
<div class="title">{{ $t('global.passWord') }}:</div>
|
<div class="title">PassWord:</div>
|
||||||
<div class="content_box_info">
|
<div class="content_box_info">
|
||||||
<div v-show="passwordShow" class="show_box">
|
<div v-show="passwordShow" class="show_box">
|
||||||
<span>******</span>
|
<span>******</span>
|
||||||
@ -189,10 +189,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<div v-show="!passwordShow" class="flex_box">
|
<div v-show="!passwordShow" class="flex_box">
|
||||||
<div class="passWord_box">
|
<div class="passWord_box">
|
||||||
<span>{{ $t('global.newPassWord') }}:</span>
|
<span>New password:</span>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="newPassWord1"
|
v-model="newPassWord1"
|
||||||
:placeholder="$t('global.enterPassWord')"
|
placeholder="Please enter your new password"
|
||||||
maxlength="20"
|
maxlength="20"
|
||||||
show-password
|
show-password
|
||||||
size="mini"
|
size="mini"
|
||||||
@ -202,7 +202,7 @@
|
|||||||
<div style="height: 28px; line-height: 28px; margin-bottom: 10px;">
|
<div style="height: 28px; line-height: 28px; margin-bottom: 10px;">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="passWordCode"
|
v-model="passWordCode"
|
||||||
:placeholder="$t('global.verificationCode')"
|
placeholder="Verification code"
|
||||||
size="mini"
|
size="mini"
|
||||||
class="code_box"
|
class="code_box"
|
||||||
/>
|
/>
|
||||||
@ -212,7 +212,7 @@
|
|||||||
:disabled="passWordCodeTime != 0"
|
:disabled="passWordCodeTime != 0"
|
||||||
@click="sendPassWordCode"
|
@click="sendPassWordCode"
|
||||||
>
|
>
|
||||||
{{ $t('global.sendMobileCode') }}
|
Send phone code
|
||||||
<span
|
<span
|
||||||
v-if="passWordCodeTime"
|
v-if="passWordCodeTime"
|
||||||
>{{ passWordCodeTime }}</span>
|
>{{ passWordCodeTime }}</span>
|
||||||
@ -224,33 +224,33 @@
|
|||||||
class="button_box"
|
class="button_box"
|
||||||
:disabled="!passWordCode"
|
:disabled="!passWordCode"
|
||||||
@click="savePassWord"
|
@click="savePassWord"
|
||||||
>{{ $t('global.save') }}</el-button>
|
>Save</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
class="button_box"
|
class="button_box"
|
||||||
type="text"
|
type="text"
|
||||||
@click="switcherPassWord"
|
@click="switcherPassWord"
|
||||||
>{{ $t('global.cancel') }}</el-button>
|
>Cancel</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!wmOpenId" class="form_box">
|
<div v-if="!wmOpenId" class="form_box">
|
||||||
<div class="title">绑定微信:</div>
|
<div class="title">Bind to wechat:</div>
|
||||||
<div class="content_box_info">
|
<div class="content_box_info">
|
||||||
<el-button v-if="!binding&&!bindSuccess" type="primary" size="small" style="position: absolute;" @click="generateBindQrCode">生成微信二维码</el-button>
|
<el-button v-if="!binding&&!bindSuccess" type="primary" size="small" style="position: absolute;" @click="generateBindQrCode">Generate wechat QR code</el-button>
|
||||||
<div v-if="binding && !bindSuccess" class="login-code-box" @click="generateBindQrCode">
|
<div v-if="binding && !bindSuccess" class="login-code-box" @click="generateBindQrCode">
|
||||||
<qrcode-vue
|
<qrcode-vue
|
||||||
v-loading="loadingCode"
|
v-loading="loadingCode"
|
||||||
:value="loginUrl"
|
:value="loginUrl"
|
||||||
:class-name="qrcodeClassName"
|
:class-name="qrcodeClassName"
|
||||||
:size="150"
|
:size="150"
|
||||||
:element-loading-text="this.$t('login.clickRefresh')"
|
element-loading-text="Please click to refresh"
|
||||||
element-loading-spinner="el-icon-refresh"
|
element-loading-spinner="el-icon-refresh"
|
||||||
element-loading-background="rgba(255, 255, 255, 0.9)"
|
element-loading-background="rgba(255, 255, 255, 0.9)"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="bindSuccess"><span>绑定微信成功</span></div>
|
<div v-if="bindSuccess"><span>Wechat binding succeeds</span></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -392,7 +392,7 @@ export default {
|
|||||||
this.nationCode = user.nationCode ? user.nationCode : '86';
|
this.nationCode = user.nationCode ? user.nationCode : '86';
|
||||||
this.nationCodeInit = user.nationCode ? user.nationCode : '86';
|
this.nationCodeInit = user.nationCode ? user.nationCode : '86';
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
console.log(error, '请求个人信息失败');
|
console.log(error, 'Failed to request personal information');
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
switcherName() {
|
switcherName() {
|
||||||
@ -407,7 +407,7 @@ export default {
|
|||||||
this.nameShow = !this.nameShow;
|
this.nameShow = !this.nameShow;
|
||||||
this.$store.commit('SET_NAME', this.editInfo.name);
|
this.$store.commit('SET_NAME', this.editInfo.name);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error, '错误');
|
console.log(error, 'error');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -418,7 +418,7 @@ export default {
|
|||||||
this.nameShow = !this.nameShow;
|
this.nameShow = !this.nameShow;
|
||||||
this.$store.commit('SET_NAME', this.editInfo.name);
|
this.$store.commit('SET_NAME', this.editInfo.name);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error, '错误');
|
console.log(error, 'error');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
switcherNickname() {
|
switcherNickname() {
|
||||||
@ -436,7 +436,7 @@ export default {
|
|||||||
this.nickNameShow = !this.nickNameShow;
|
this.nickNameShow = !this.nickNameShow;
|
||||||
this.$store.commit('SET_NICKNAME', this.editInfo.nickname);
|
this.$store.commit('SET_NICKNAME', this.editInfo.nickname);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error, '错误');
|
console.log(error, 'error');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -457,7 +457,7 @@ export default {
|
|||||||
this.mobileShow = !this.mobileShow;
|
this.mobileShow = !this.mobileShow;
|
||||||
this.mobileCode = null;
|
this.mobileCode = null;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.$message.info(this.$t('global.codeError'));
|
this.$message.info('The captcha is incorrect');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -484,7 +484,7 @@ export default {
|
|||||||
}, 1000);
|
}, 1000);
|
||||||
await getUserinfoMobileCode(param);
|
await getUserinfoMobileCode(param);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.$message.info(this.$t('global.codeFaile'));
|
this.$message.info('The captcha is incorrect');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -504,7 +504,7 @@ export default {
|
|||||||
this.emailShow = !this.emailShow;
|
this.emailShow = !this.emailShow;
|
||||||
this.emailCode = null;
|
this.emailCode = null;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.$message.info(this.$t('global.codeError'));
|
this.$message.info('The captcha is incorrect');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -521,7 +521,7 @@ export default {
|
|||||||
}, 1000);
|
}, 1000);
|
||||||
await getUserinfoEmailCode(this.editInfo.email);
|
await getUserinfoEmailCode(this.editInfo.email);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.$message.info(this.$t('global.codeFaile'));
|
this.$message.info('The captcha is incorrect');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -530,7 +530,7 @@ export default {
|
|||||||
},
|
},
|
||||||
async savePassWord() {
|
async savePassWord() {
|
||||||
if (this.newPassWord1.length <= 5) {
|
if (this.newPassWord1.length <= 5) {
|
||||||
this.$message.info(this.$t('global.passWordLength'));
|
this.$message.info('New password length cannot be less than 5 digits');
|
||||||
} else {
|
} else {
|
||||||
this.uploadPassword();
|
this.uploadPassword();
|
||||||
}
|
}
|
||||||
@ -551,7 +551,7 @@ export default {
|
|||||||
console.log(error, 11);
|
console.log(error, 11);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$message.info(this.$t('global.passWordSome'));
|
this.$message.info('Please fill in the password');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
generateBindQrCode() { // 获取微信小程序绑定二维码
|
generateBindQrCode() { // 获取微信小程序绑定二维码
|
||||||
@ -618,11 +618,11 @@ export default {
|
|||||||
}, 1000);
|
}, 1000);
|
||||||
await getUserinfoMobileCode(param);
|
await getUserinfoMobileCode(param);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.$message.info(this.$t('global.codeFaile'));
|
this.$message.info('Failed to obtain captcha');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.passwordShow = !this.passwordShow;
|
this.passwordShow = !this.passwordShow;
|
||||||
this.$message.info(this.$t('global.enterMobileNumber'));
|
this.$message.info('Please bind mobile phone number');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="equipmentConstructionTable">
|
<div class="equipmentConstructionTable">
|
||||||
<div style="text-align: right;">
|
<div style="text-align: right;">
|
||||||
<el-button :id="constructionFill.constructionInput.domId" size="small" class="addConstruction" type="primary" @click="add">新增</el-button>
|
<el-button :id="constructionFill.constructionInput.domId" size="small" class="addConstruction" type="primary" @click="add">Add</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-table
|
<el-table
|
||||||
:data="tableData"
|
:data="tableData"
|
||||||
|
@ -107,9 +107,9 @@ export default {
|
|||||||
day: ''
|
day: ''
|
||||||
},
|
},
|
||||||
typeList: [
|
typeList: [
|
||||||
{label: '路票', value: 'RAIL_TICKET'},
|
{label: 'RAIL_TICKET', value: 'RAIL_TICKET'},
|
||||||
{label: '绿色许可证', value: 'GREEN_LICENCE'},
|
{label: 'GREEN_LICENCE', value: 'GREEN_LICENCE'},
|
||||||
{label: '红色许可证', value: 'RED_LICENCE'}
|
{label: 'RED_LICENCE', value: 'RED_LICENCE'}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
@ -536,7 +536,7 @@ export default {
|
|||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 5px 0px 0px 5px ;
|
border-radius: 5px 0px 0px 5px ;
|
||||||
padding: 5px 0px;
|
padding: 5px 0px;
|
||||||
width: 24px;
|
width: 50px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
<div v-loading="loading" class="map-list-main">
|
<div v-loading="loading" class="map-list-main">
|
||||||
<div id="trainingMapTree" class="left-map-list">
|
<div id="trainingMapTree" class="left-map-list">
|
||||||
<div class="mapListName">
|
<div class="mapListName">
|
||||||
<div style="width: 100px;">线路列表</div>
|
<div style="width: 100px;">Line list</div>
|
||||||
<div style="width: calc(100% - 117px);">
|
<div style="width: calc(100% - 117px);">
|
||||||
<el-input v-model="filterText" placeholder="请输入内容" style="width: 100%">
|
<el-input v-model="filterText" placeholder="Please enter the content" style="width: 100%">
|
||||||
<i slot="prefix" class="el-input__icon el-icon-search" />
|
<i slot="prefix" class="el-input__icon el-icon-search" />
|
||||||
</el-input>
|
</el-input>
|
||||||
</div>
|
</div>
|
||||||
@ -54,22 +54,17 @@ export default {
|
|||||||
this.loading = true;
|
this.loading = true;
|
||||||
queryMapListByUser().then(resp => {
|
queryMapListByUser().then(resp => {
|
||||||
this.mapList = resp.data;
|
this.mapList = resp.data;
|
||||||
// EventBus.$emit('setMapList', this.mapList);
|
|
||||||
this.$store.dispatch('lineList/setLineList', this.mapList);
|
this.$store.dispatch('lineList/setLineList', this.mapList);
|
||||||
if (this.mapList && this.mapList.length && this.$route.path.includes('simulation/simulationIndex')) {
|
if (this.mapList && this.mapList.length && this.$route.path.includes('simulation/simulationIndex')) {
|
||||||
const map = this.mapList[0];
|
const map = this.mapList[0];
|
||||||
// const path = `/trainingPlatform/simulation/${map.id}?lineCode=${map.lineCode}`;
|
|
||||||
// this.defaultIndex = path;
|
|
||||||
// this.$router.push(path);
|
|
||||||
this.gotoPath(map);
|
this.gotoPath(map);
|
||||||
} else if (this.$route.params.mapId) {
|
} else if (this.$route.params.mapId) {
|
||||||
// this.defaultIndex = this.$route.fullPath;
|
|
||||||
this.defaultIndex = this.$route.params.mapId;
|
this.defaultIndex = this.$route.params.mapId;
|
||||||
}
|
}
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.$message.error('获取地图列表失败!');
|
this.$message.error('Failed to obtain the map list!');
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
Loading…
Reference in New Issue
Block a user