Merge branch 'test' of git.code.tencent.com:lian-cbtc/jl-client into yly_eg2d
This commit is contained in:
commit
d84a52912d
@ -199,7 +199,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
let newValue = parseInt(value);
|
let newValue = parseInt(value);
|
||||||
if (newValue) {
|
if (newValue) {
|
||||||
if (newValue > 0 & newValue < 9) {
|
if (newValue > 0 & newValue <= 9) {
|
||||||
newValue = '0' + newValue;
|
newValue = '0' + newValue;
|
||||||
}
|
}
|
||||||
this.addModel.serviceNumber = newValue;
|
this.addModel.serviceNumber = newValue;
|
||||||
|
@ -107,7 +107,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
let newValue = parseInt(value);
|
let newValue = parseInt(value);
|
||||||
if (newValue) {
|
if (newValue) {
|
||||||
if (newValue > 0 & newValue < 9) {
|
if (newValue > 0 & newValue <= 9) {
|
||||||
newValue = '0' + newValue;
|
newValue = '0' + newValue;
|
||||||
}
|
}
|
||||||
this.model.serviceNumber = newValue;
|
this.model.serviceNumber = newValue;
|
||||||
@ -129,7 +129,7 @@ export default {
|
|||||||
this.doClose();
|
this.doClose();
|
||||||
})
|
})
|
||||||
.catch(e => {
|
.catch(e => {
|
||||||
this.$messageBox(e);
|
this.$messageBox(e.message);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -199,7 +199,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
let newValue = parseInt(value);
|
let newValue = parseInt(value);
|
||||||
if (newValue) {
|
if (newValue) {
|
||||||
if (newValue > 0 & newValue < 9) {
|
if (newValue > 0 & newValue <= 9) {
|
||||||
newValue = '0' + newValue;
|
newValue = '0' + newValue;
|
||||||
}
|
}
|
||||||
this.addModel.serviceNumber = newValue;
|
this.addModel.serviceNumber = newValue;
|
||||||
|
@ -18,10 +18,10 @@
|
|||||||
:rules="rules"
|
:rules="rules"
|
||||||
>
|
>
|
||||||
<el-form-item prop="serviceNumber" label="表号">
|
<el-form-item prop="serviceNumber" label="表号">
|
||||||
<el-input maxlength="2" v-model="model.serviceNumber" />
|
<el-input v-model="model.serviceNumber" maxlength="2" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="tripNumber" label="车次号">
|
<el-form-item prop="tripNumber" label="车次号">
|
||||||
<el-input maxlength="4" v-model="model.tripNumber" />
|
<el-input v-model="model.tripNumber" maxlength="4" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-row justify="center" class="button-group">
|
<el-row justify="center" class="button-group">
|
||||||
@ -40,22 +40,22 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { sendCommandNew } from "@/api/jmap/training";
|
import { sendCommandNew } from '@/api/jmap/training';
|
||||||
export default {
|
export default {
|
||||||
name: "DeleteRunplanLine",
|
name: 'DeleteRunplanLine',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
loading: false,
|
loading: false,
|
||||||
dialogShow: false,
|
dialogShow: false,
|
||||||
model: {
|
model: {
|
||||||
serviceNumber: "",
|
serviceNumber: '',
|
||||||
tripNumber: ""
|
tripNumber: ''
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
serviceNumber: [
|
serviceNumber: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
trigger: "blur",
|
trigger: 'blur',
|
||||||
validator:this.validateService
|
validator:this.validateService
|
||||||
// message: "请输入表号"
|
// message: "请输入表号"
|
||||||
}
|
}
|
||||||
@ -63,8 +63,8 @@ export default {
|
|||||||
tripNumber: [
|
tripNumber: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
trigger: "blur",
|
trigger: 'blur',
|
||||||
message: "请输入车次号"
|
message: '请输入车次号'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -72,12 +72,17 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
title() {
|
title() {
|
||||||
return "抽线";
|
return '抽线';
|
||||||
},
|
},
|
||||||
show() {
|
show() {
|
||||||
return this.dialogShow && !this.$store.state.menuOperation.break;
|
return this.dialogShow && !this.$store.state.menuOperation.break;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
'$store.state.runPlan': function(oldVal, newVal) {
|
||||||
|
console.log(newVal);
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
doShow(operate) {
|
doShow(operate) {
|
||||||
// this.operate = operate || {};
|
// this.operate = operate || {};
|
||||||
@ -88,13 +93,13 @@ export default {
|
|||||||
// }
|
// }
|
||||||
this.dialogShow = true;
|
this.dialogShow = true;
|
||||||
this.$nextTick(function() {
|
this.$nextTick(function() {
|
||||||
this.$store.dispatch("training/emitTipFresh");
|
this.$store.dispatch('training/emitTipFresh');
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
doClose() {
|
doClose() {
|
||||||
// this.loading = false;
|
// this.loading = false;
|
||||||
this.dialogShow = false;
|
this.dialogShow = false;
|
||||||
this.$store.dispatch("training/emitTipFresh");
|
this.$store.dispatch('training/emitTipFresh');
|
||||||
},
|
},
|
||||||
validateService (rule, value, callback) {
|
validateService (rule, value, callback) {
|
||||||
if (typeof value == 'string' && value.trim().length == 0) {
|
if (typeof value == 'string' && value.trim().length == 0) {
|
||||||
@ -102,7 +107,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
let newValue = parseInt(value);
|
let newValue = parseInt(value);
|
||||||
if (newValue) {
|
if (newValue) {
|
||||||
if (newValue > 0 & newValue < 9) {
|
if (newValue > 0 & newValue <= 9) {
|
||||||
newValue = '0' + newValue;
|
newValue = '0' + newValue;
|
||||||
}
|
}
|
||||||
this.model.serviceNumber = newValue;
|
this.model.serviceNumber = newValue;
|
||||||
@ -117,23 +122,18 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
const group = this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const data = this.model;
|
const data = this.model;
|
||||||
sendCommandNew(group, "RunPlan_Delete_Trip", data)
|
sendCommandNew(group, 'RunPlan_Delete_Trip', data)
|
||||||
.then(resp => {
|
.then(resp => {
|
||||||
console.log(resp);
|
console.log(resp);
|
||||||
this.$message.success('删除计划车成功');
|
this.$message.success('删除计划车成功');
|
||||||
this.doClose();
|
this.doClose();
|
||||||
})
|
})
|
||||||
.catch(e => {
|
.catch(e => {
|
||||||
this.$messageBox(e);
|
this.$messageBox(e.message);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
|
||||||
watch: {
|
|
||||||
"$store.state.runPlan": function(oldVal, newVal) {
|
|
||||||
console.log(newVal);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
@ -92,9 +92,10 @@ const user = {
|
|||||||
const type = userInfo.type;
|
const type = userInfo.type;
|
||||||
const project = userInfo.project;
|
const project = userInfo.project;
|
||||||
const deviceCode = userInfo.deviceCode;
|
const deviceCode = userInfo.deviceCode;
|
||||||
|
const teacherLogin = userInfo.teacherLogin;
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
// 登录系统
|
// 登录系统
|
||||||
const params = Object.assign({ account: username, password, project:project, deviceCode:deviceCode }, type == 'design' ? LoginParams.Design : LoginParams.LianKeTang);
|
const params = Object.assign({ account: username, password, project:project, deviceCode:deviceCode, teacherLogin:teacherLogin }, type == 'design' ? LoginParams.Design : LoginParams.LianKeTang);
|
||||||
login(params).then(resp => {
|
login(params).then(resp => {
|
||||||
const token = resp.data;
|
const token = resp.data;
|
||||||
const header = { group: '', 'X-Token': token };
|
const header = { group: '', 'X-Token': token };
|
||||||
|
@ -77,6 +77,7 @@
|
|||||||
<div style="display: inline-block;width: 100%;margin-bottom: 10px;">
|
<div style="display: inline-block;width: 100%;margin-bottom: 10px;">
|
||||||
<div style="display:inline-block">
|
<div style="display:inline-block">
|
||||||
<el-checkbox v-model="isAutoLogin">{{ $t('login.autoLogin') }}</el-checkbox>
|
<el-checkbox v-model="isAutoLogin">{{ $t('login.autoLogin') }}</el-checkbox>
|
||||||
|
<el-checkbox v-if="project === 'cgy'" v-model="teacherLogin">教师登录</el-checkbox>
|
||||||
</div>
|
</div>
|
||||||
<el-popover
|
<el-popover
|
||||||
v-if="!noQrcodeList.includes(project)"
|
v-if="!noQrcodeList.includes(project)"
|
||||||
@ -179,6 +180,7 @@ export default {
|
|||||||
QCode: QCode,
|
QCode: QCode,
|
||||||
loading111: true,
|
loading111: true,
|
||||||
isAutoLogin: false,
|
isAutoLogin: false,
|
||||||
|
teacherLogin: false,
|
||||||
loginForm: {
|
loginForm: {
|
||||||
username: '',
|
username: '',
|
||||||
password: ''
|
password: ''
|
||||||
@ -420,6 +422,7 @@ export default {
|
|||||||
model.type = this.modelType;
|
model.type = this.modelType;
|
||||||
model.project = loginInfo[this.project].loginParam;
|
model.project = loginInfo[this.project].loginParam;
|
||||||
model.deviceCode = this.$route.query.projectDevice;
|
model.deviceCode = this.$route.query.projectDevice;
|
||||||
|
model.teacherLogin = this.teacherLogin;
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
if (this.isAutoLogin) {
|
if (this.isAutoLogin) {
|
||||||
Cookies.set(this.cookiesName, model.username, { expires: 2});
|
Cookies.set(this.cookiesName, model.username, { expires: 2});
|
||||||
@ -564,9 +567,13 @@ export default {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
if (this.teacherLogin) {
|
||||||
|
this.$router.push({ path: '/info/organization/classManage?enter=teacher' });
|
||||||
} else {
|
} else {
|
||||||
this.$router.push({ path: this.path });
|
this.$router.push({ path: this.path });
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleLanguage() {
|
handleLanguage() {
|
||||||
this.$i18n.locale = this.lang;
|
this.$i18n.locale = this.lang;
|
||||||
@ -774,7 +781,7 @@ export default {
|
|||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
.text-box{
|
.text-box{
|
||||||
font-size: 40px;
|
font-size: 39px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
top: 150px;
|
top: 150px;
|
||||||
width: 1050px;
|
width: 1050px;
|
||||||
|
@ -9,10 +9,10 @@
|
|||||||
:close-on-click-modal="false"
|
:close-on-click-modal="false"
|
||||||
top="25vh"
|
top="25vh"
|
||||||
>
|
>
|
||||||
<el-form ref="ruleForm" :model="form" :rules="rules" label-width="100px" class="demo-ruleForm">
|
<el-form ref="ruleForm" :model="form" :rules="rules" label-width="110px" class="demo-ruleForm">
|
||||||
<el-form-item prop="email">
|
<el-form-item prop="email">
|
||||||
<template slot="label">
|
<template slot="label">
|
||||||
<span>邮  箱:</span>
|
<span>邮箱(账号):</span>
|
||||||
</template>
|
</template>
|
||||||
<el-input v-model="form.email" />
|
<el-input v-model="form.email" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="title_content">{{ $store.state.user.companyName + '教学管理' }}</div>
|
<div class="title_content">{{ companyName + '教学管理' }}</div>
|
||||||
<el-button type="text" class="lessonManageBack" @click="back">返回</el-button>
|
<el-button v-if="!hideBack" type="text" class="lessonManageBack" @click="back">返回</el-button>
|
||||||
<div class="lessonManageInfo">
|
<div class="lessonManageInfo">
|
||||||
<el-menu class="lessonManageMenu" default-active="2-1">
|
<el-menu class="lessonManageMenu" default-active="2-1">
|
||||||
<el-menu-item index="1" @click="clickMenu">
|
<el-menu-item index="1" @click="clickMenu">
|
||||||
@ -56,7 +56,12 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
companyName() {
|
||||||
|
return this.$store.state.user.companyName;
|
||||||
|
},
|
||||||
|
hideBack() {
|
||||||
|
return this.$route.query.enter === 'teacher';
|
||||||
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
||||||
|
@ -111,7 +111,8 @@ export default {
|
|||||||
'delayWhenCancelRouteWithAbnormalInterlock',
|
'delayWhenCancelRouteWithAbnormalInterlock',
|
||||||
'noARB',
|
'noARB',
|
||||||
'checkDirectionWhenSetHead',
|
'checkDirectionWhenSetHead',
|
||||||
'transferRouteCanOnlyFaultUnlock'
|
'transferRouteCanOnlyFaultUnlock',
|
||||||
|
'setManualWhenHeadTrainArriveTarget'
|
||||||
],
|
],
|
||||||
selectList: ['runMode'],
|
selectList: ['runMode'],
|
||||||
generalConfig: [
|
generalConfig: [
|
||||||
@ -155,7 +156,8 @@ export default {
|
|||||||
'figuresOfServiceNumber',
|
'figuresOfServiceNumber',
|
||||||
'noARB',
|
'noARB',
|
||||||
'checkDirectionWhenSetHead',
|
'checkDirectionWhenSetHead',
|
||||||
'transferRouteCanOnlyFaultUnlock'
|
'transferRouteCanOnlyFaultUnlock',
|
||||||
|
'setManualWhenHeadTrainArriveTarget'
|
||||||
],
|
],
|
||||||
rangeList: ['noParkingSM', 'parkingSM'],
|
rangeList: ['noParkingSM', 'parkingSM'],
|
||||||
speedList: ['rmAtpSpeed', 'urmAtpSpeed'],
|
speedList: ['rmAtpSpeed', 'urmAtpSpeed'],
|
||||||
@ -204,7 +206,8 @@ export default {
|
|||||||
figuresOfServiceNumber: '服务号的位数',
|
figuresOfServiceNumber: '服务号的位数',
|
||||||
noARB: '没有ARB判定',
|
noARB: '没有ARB判定',
|
||||||
checkDirectionWhenSetHead: '设置头码车时检查方向',
|
checkDirectionWhenSetHead: '设置头码车时检查方向',
|
||||||
transferRouteCanOnlyFaultUnlock: '转换轨进路只能通过故障解锁来取消'
|
transferRouteCanOnlyFaultUnlock: '转换轨进路只能通过故障解锁来取消',
|
||||||
|
setManualWhenHeadTrainArriveTarget: '头码车抵达目的地后变为人工车'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user