Merge branch 'test_dispaly' of git.code.tencent.com:lian-cbtc/jl-client into test_dispaly
This commit is contained in:
commit
8b47049f69
@ -6,7 +6,7 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "vue-cli-service serve --open",
|
"start": "vue-cli-service serve --open",
|
||||||
"dev": "node --max_old_space_size=4096 node_modules/@vue/cli-service/bin/vue-cli-service.js serve",
|
"dev": "node --max_old_space_size=4096 node_modules/@vue/cli-service/bin/vue-cli-service.js serve --open",
|
||||||
"build": "vue-cli-service build --mode production",
|
"build": "vue-cli-service build --mode production",
|
||||||
"test": "vue-cli-service build --mode staging",
|
"test": "vue-cli-service build --mode staging",
|
||||||
"local": "vue-cli-service build --mode",
|
"local": "vue-cli-service build --mode",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="main" :style="{width: canvasWidth+'px'}">
|
<div class="main">
|
||||||
<transition name="el-zoom-in-bottom">
|
<transition name="el-zoom-in-bottom">
|
||||||
<!-- v-show="!specialDispatch" -->
|
<!-- v-show="!specialDispatch" -->
|
||||||
<!-- <map-system-draft ref="mapCanvas" @back="back" />-->
|
<!-- <map-system-draft ref="mapCanvas" @back="back" />-->
|
||||||
@ -143,5 +143,7 @@ export default {
|
|||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.main{
|
.main{
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -57,6 +57,7 @@
|
|||||||
<training-tip v-if="trainingId" ref="trainingTip" />
|
<training-tip v-if="trainingId" ref="trainingTip" />
|
||||||
<training-position-tip v-if="trainingId" ref="trainingPositionTip" />
|
<training-position-tip v-if="trainingId" ref="trainingPositionTip" />
|
||||||
<training-menu v-if="trainingDetail" ref="trainingMenu" :offset-bottom="offsetBottom" />
|
<training-menu v-if="trainingDetail" ref="trainingMenu" :offset-bottom="offsetBottom" />
|
||||||
|
<TrainingDesign ref="trainingDesign" />
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -97,6 +98,7 @@ import TrainingList from './trainingList/index.vue';
|
|||||||
import TrainingTip from './trainingList/trainingTip.vue';
|
import TrainingTip from './trainingList/trainingTip.vue';
|
||||||
import TrainingPositionTip from './trainingList/trainingPositionTip.vue';
|
import TrainingPositionTip from './trainingList/trainingPositionTip.vue';
|
||||||
import TrainingMenu from './trainingList/trainingMenu';
|
import TrainingMenu from './trainingList/trainingMenu';
|
||||||
|
import TrainingDesign from '@/views/trainingManage/index.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'SimulationMenu',
|
name: 'SimulationMenu',
|
||||||
@ -128,7 +130,8 @@ export default {
|
|||||||
TrainingList,
|
TrainingList,
|
||||||
TrainingTip,
|
TrainingTip,
|
||||||
TrainingPositionTip,
|
TrainingPositionTip,
|
||||||
TrainingMenu
|
TrainingMenu,
|
||||||
|
TrainingDesign
|
||||||
// StatusIcon
|
// StatusIcon
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
@ -431,6 +434,7 @@ export default {
|
|||||||
{ label: '联系方式', name: 'contectUs', click: this.contectUs, isShow: true },
|
{ label: '联系方式', name: 'contectUs', click: this.contectUs, isShow: true },
|
||||||
{ label: '成员管理', name: 'memberManage', click: this.memberManage, isShow: true },
|
{ label: '成员管理', name: 'memberManage', click: this.memberManage, isShow: true },
|
||||||
{ label: '实训', name: 'trainingPane', click: this.trainingPane, isShow: true },
|
{ label: '实训', name: 'trainingPane', click: this.trainingPane, isShow: true },
|
||||||
|
{ label: '实训设计', name: 'trainingDesign', click: this.trainingDesign, isShow: true },
|
||||||
{ label: '切换客流数据', name: 'changeFlowData', click: this.changeFlowData, isShow: true },
|
{ label: '切换客流数据', name: 'changeFlowData', click: this.changeFlowData, isShow: true },
|
||||||
// { label: '权限分发', name: 'distribute', click: this.distribute, isShow: true },
|
// { label: '权限分发', name: 'distribute', click: this.distribute, isShow: true },
|
||||||
{
|
{
|
||||||
@ -930,6 +934,9 @@ export default {
|
|||||||
trainingPane() {
|
trainingPane() {
|
||||||
this.$refs.trainingList.doShow();
|
this.$refs.trainingList.doShow();
|
||||||
},
|
},
|
||||||
|
trainingDesign() {
|
||||||
|
this.$refs.trainingDesign.doShow();
|
||||||
|
},
|
||||||
changeFlowData() {
|
changeFlowData() {
|
||||||
this.hideMenuList();
|
this.hideMenuList();
|
||||||
this.$refs.flowData.doShow();
|
this.$refs.flowData.doShow();
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div style="width: 100%;height: 100%;">
|
<div style="width: 100%;height: 100%;">
|
||||||
<QueryListPage ref="queryListPage" :card-padding="10" :pager-config="pagerConfig" :query-form="queryForm" :query-list="queryList" />
|
<QueryListPage v-if="showList" ref="queryListPage" :card-padding="10" :pager-config="pagerConfig" :query-form="queryForm" :query-list="queryList" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@ -8,14 +8,15 @@ import {queryMapListByUser} from '@/api/jmap/map';
|
|||||||
import Cookies from 'js-cookie';
|
import Cookies from 'js-cookie';
|
||||||
import ConstConfig from '@/scripts/ConstConfig';
|
import ConstConfig from '@/scripts/ConstConfig';
|
||||||
// import { getPublishSingleList, getPublishScenesList } from '@/api/jmap/training';
|
// import { getPublishSingleList, getPublishScenesList } from '@/api/jmap/training';
|
||||||
import { deleteTraining, publishTraining } from '@/api/trainingManage';
|
import { deleteTraining } from '@/api/trainingManage';
|
||||||
import { getTrainingList, getTrainingAll } from '@/api/trainingManage';
|
import { getTrainingList } from '@/api/trainingManage';
|
||||||
// getPublishTrainingDetail, loadPublishTraining,
|
// getPublishTrainingDetail, loadPublishTraining,
|
||||||
export default {
|
export default {
|
||||||
name:'TrainingManage',
|
name:'TrainingManage',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
mapList:[],
|
mapList:[],
|
||||||
|
showList: false,
|
||||||
pagerConfig: {
|
pagerConfig: {
|
||||||
pageSize: 'pageSize',
|
pageSize: 'pageSize',
|
||||||
pageIndex: 'pageNum'
|
pageIndex: 'pageNum'
|
||||||
@ -23,7 +24,7 @@ export default {
|
|||||||
queryForm: {
|
queryForm: {
|
||||||
labelWidth: '100px',
|
labelWidth: '100px',
|
||||||
reset: false,
|
reset: false,
|
||||||
// initLoadCallback: this.initLoadCallback,
|
initLoadCallback: this.initLoadCallback,
|
||||||
queryObject: {
|
queryObject: {
|
||||||
mapId: {
|
mapId: {
|
||||||
type: 'select',
|
type: 'select',
|
||||||
@ -125,32 +126,19 @@ export default {
|
|||||||
this.mapList.push({label:element.name, value:element.id});
|
this.mapList.push({label:element.name, value:element.id});
|
||||||
});
|
});
|
||||||
this.queryForm.queryObject.mapId.config.data = [...this.mapList];
|
this.queryForm.queryObject.mapId.config.data = [...this.mapList];
|
||||||
// this.queryForm.queryObject.mapId.config.default = this.mapList[0].value;
|
this.queryForm.queryObject.mapId.config.default = this.mapList[0].value;
|
||||||
|
this.showList = true;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// initLoadCallback(form) {
|
initLoadCallback(form) {
|
||||||
// if (!form.trainingType) {
|
if (!form.trainingType) {
|
||||||
// form.trainingType = 'training';
|
form.trainingType = 'training';
|
||||||
// }
|
}
|
||||||
// // if (!form.mapId) {
|
if (!form.mapId) {
|
||||||
// // form.mapId = this.mapList[0].value;
|
form.mapId = this.mapList[0] ? this.mapList[0].value : '';
|
||||||
// // }
|
}
|
||||||
// },
|
},
|
||||||
// queryFunction(param) {
|
|
||||||
// if (param.mapId) {
|
|
||||||
// if (param.trainingType == 'training') {
|
|
||||||
// return getPublishSingleList(param.mapId);
|
|
||||||
// } else if (param.trainingType == 'scene') {
|
|
||||||
// return getPublishScenesList(param.mapId);
|
|
||||||
// }
|
|
||||||
// } else {
|
|
||||||
// return new Promise((resolve, reject)=>{
|
|
||||||
// const result = {data:[]};
|
|
||||||
// resolve(result);
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
queryFunction(param) {
|
queryFunction(param) {
|
||||||
if (param.mapId) {
|
if (param.mapId) {
|
||||||
return getTrainingList(param);
|
return getTrainingList(param);
|
||||||
|
@ -287,10 +287,10 @@ export default {
|
|||||||
/deep/ .el-dialog__wrapper {
|
/deep/ .el-dialog__wrapper {
|
||||||
width: 1px;
|
width: 1px;
|
||||||
height: 1px;
|
height: 1px;
|
||||||
top: auto;
|
top: 0;
|
||||||
right: auto;
|
right: 0;
|
||||||
bottom: auto;
|
bottom: 0;
|
||||||
left: auto;
|
left: 0;
|
||||||
overflow: visible !important;
|
overflow: visible !important;
|
||||||
}
|
}
|
||||||
// .conditionTab{
|
// .conditionTab{
|
||||||
|
@ -397,10 +397,11 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.editContent {
|
.editContent {
|
||||||
position: absolute;
|
position: fixed;
|
||||||
right: 0;
|
right: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
height: 100%;
|
bottom: 0;
|
||||||
|
// height: 100%;
|
||||||
width: 800px;
|
width: 800px;
|
||||||
transform: translateX(800px);
|
transform: translateX(800px);
|
||||||
transition: all 0.4s;
|
transition: all 0.4s;
|
||||||
@ -410,20 +411,12 @@ export default {
|
|||||||
transform: translateX(0px);
|
transform: translateX(0px);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/deep/ .el-dialog__wrapper {
|
|
||||||
width: 1px;
|
|
||||||
height: 1px;
|
|
||||||
top: auto;
|
|
||||||
right: auto;
|
|
||||||
bottom: auto;
|
|
||||||
left: auto;
|
|
||||||
overflow: visible !important;
|
|
||||||
}
|
|
||||||
.editContentTab{
|
.editContentTab{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
left: -12px;
|
left: -12px;
|
||||||
top: calc(45% + 100px);
|
// top: calc(45% + 200px);
|
||||||
|
top: 200px;
|
||||||
}
|
}
|
||||||
.editContentTabLable{
|
.editContentTabLable{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@ -435,7 +428,7 @@ export default {
|
|||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
top:-28px;
|
top: 0px;
|
||||||
}
|
}
|
||||||
.tabPaneBox {
|
.tabPaneBox {
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div class="operate-main">
|
||||||
<div class="editContentTab">
|
<!-- <div class="editContentTab">
|
||||||
<div v-if="dialogVisible" class="editContentTabLable" @click="minisize">
|
<div v-if="dialogVisible" class="editContentTabLable" @click="minisize">
|
||||||
<span class="titleStyle">{{ $t('trainingManage.editTagTitle') }}</span>
|
<span class="titleStyle">{{ $t('trainingManage.editTagTitle') }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> -->
|
||||||
<el-dialog :title="title" :visible.sync="dialogVisible" width="500" :modal="false" :close-on-click-modal="false" :show-close="false" center style="margin-left: 200px">
|
<el-dialog :title="title" :visible.sync="dialogVisible" width="500" :modal="false" :close-on-click-modal="false" :show-close="false" center style="margin-left: 200px">
|
||||||
<el-row style="font-size: 16px;padding: 5px;">
|
<el-row style="font-size: 16px;padding: 5px;">
|
||||||
<el-col :span="4">步骤描述:</el-col>
|
<el-col :span="4">步骤描述:</el-col>
|
||||||
@ -147,35 +147,37 @@ export default {
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style lang="scss" scoped>
|
||||||
/deep/ .el-dialog__wrapper {
|
.operate-main {
|
||||||
width: 1px;
|
/deep/ .el-dialog__wrapper {
|
||||||
height: 1px;
|
width: 1px;
|
||||||
top: auto;
|
height: 1px;
|
||||||
right: auto;
|
top: 0;
|
||||||
bottom: auto;
|
right: 0;
|
||||||
left: auto;
|
bottom: 0;
|
||||||
overflow: visible !important;
|
left: 0;
|
||||||
}
|
overflow: visible !important;
|
||||||
/deep/ .el-dialog--center{
|
}
|
||||||
width: 600px;
|
/deep/ .el-dialog--center{
|
||||||
}
|
width: 600px;
|
||||||
.editContentTab{
|
}
|
||||||
position: absolute;
|
|
||||||
z-index: 10;
|
|
||||||
right: 12px;
|
|
||||||
top: calc(45% + 100px);
|
|
||||||
}
|
|
||||||
.editContentTabLable{
|
|
||||||
position: absolute;
|
|
||||||
background: #fff;
|
|
||||||
border-radius: 5px 0 0 5px ;
|
|
||||||
padding: 5px 0;
|
|
||||||
width: 23px;
|
|
||||||
text-align: center;
|
|
||||||
left: 50%;
|
|
||||||
transform: translateX(-50%);
|
|
||||||
cursor: pointer;
|
|
||||||
top:-28px;
|
|
||||||
}
|
}
|
||||||
|
// .editContentTab{
|
||||||
|
// position: absolute;
|
||||||
|
// z-index: 10;
|
||||||
|
// right: 12px;
|
||||||
|
// top: calc(45% + 100px);
|
||||||
|
// }
|
||||||
|
// .editContentTabLable{
|
||||||
|
// position: absolute;
|
||||||
|
// background: #fff;
|
||||||
|
// border-radius: 5px 0 0 5px ;
|
||||||
|
// padding: 5px 0;
|
||||||
|
// width: 23px;
|
||||||
|
// text-align: center;
|
||||||
|
// left: 50%;
|
||||||
|
// transform: translateX(-50%);
|
||||||
|
// cursor: pointer;
|
||||||
|
// top:-28px;
|
||||||
|
// }
|
||||||
</style>
|
</style>
|
||||||
|
115
src/views/trainingManage/index.vue
Normal file
115
src/views/trainingManage/index.vue
Normal file
@ -0,0 +1,115 @@
|
|||||||
|
<template>
|
||||||
|
<div class="main">
|
||||||
|
<TrainingList ref="trainingList" @updateDetails="updateDetails" @gradeRules="gradeRules" @closeAllDialog="closeAllDialog" @draftTracK="draftTracK" />
|
||||||
|
<EditDetails ref="editDetails" :edit-data="editData" @openEditOperate="openEditOperate" @handleCondition="handleCondition" @publish="publish" @preview="preview" @gradeRules="gradeRules" />
|
||||||
|
<EditCondition ref="editCondition" v-dialogDrag :materials-list="materialsList" @editConditionFn="editConditionFn" @backStep="backStep" />
|
||||||
|
<edit-operate ref="editOperate" v-dialogDrag @backStepList="backStepList" />
|
||||||
|
<grade-rules ref="gradeRules" />
|
||||||
|
<TrackList ref="trackList" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import TrainingList from './trainingList.vue';
|
||||||
|
import TrackList from './trackList.vue';
|
||||||
|
import EditDetails from './editDetails.vue';
|
||||||
|
import EditCondition from './editCondition.vue';
|
||||||
|
import EditOperate from './editOperate.vue';
|
||||||
|
import GradeRules from './gradeRules.vue';
|
||||||
|
import { getTrainingMaterials } from '@/api/trainingManage';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name:'TrainingIndex',
|
||||||
|
components:{
|
||||||
|
TrainingList,
|
||||||
|
TrackList,
|
||||||
|
EditDetails,
|
||||||
|
EditCondition,
|
||||||
|
EditOperate,
|
||||||
|
GradeRules
|
||||||
|
},
|
||||||
|
props:{
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
hoverBtn: false,
|
||||||
|
btnWidth: -600,
|
||||||
|
materialsList: [],
|
||||||
|
refsList: ['editDetails', 'editCondition', 'trackList'],
|
||||||
|
editData: {}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed:{
|
||||||
|
group() {
|
||||||
|
return this.$route.query.group;
|
||||||
|
},
|
||||||
|
mapId() {
|
||||||
|
return this.$route.query.mapId;
|
||||||
|
},
|
||||||
|
lineCode() {
|
||||||
|
return this.$route.query.lineCode;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.getMaterials();
|
||||||
|
},
|
||||||
|
methods:{
|
||||||
|
publish(data) {
|
||||||
|
this.$refs.trainingList.publishScript(null, data);
|
||||||
|
},
|
||||||
|
preview(data) {
|
||||||
|
this.$refs.trainingList.previewScript(null, data);
|
||||||
|
},
|
||||||
|
editConditionFn(data, index, key) {
|
||||||
|
this.$refs.editDetails.editConditionFn(data, index, key);
|
||||||
|
},
|
||||||
|
backStep() {
|
||||||
|
this.$refs.editDetails.backStep();
|
||||||
|
},
|
||||||
|
handleCondition(index, row, key) {
|
||||||
|
this.$refs.editCondition.doShow(row, index, key);
|
||||||
|
},
|
||||||
|
getMaterials() {
|
||||||
|
getTrainingMaterials().then(res => {
|
||||||
|
this.materialsList = res.data;
|
||||||
|
}).catch(err => {
|
||||||
|
console.log(err, 'Materials----');
|
||||||
|
this.materialsList = [];
|
||||||
|
});
|
||||||
|
},
|
||||||
|
draftTracK(row) {
|
||||||
|
this.$refs.trackList.doShow(row);
|
||||||
|
},
|
||||||
|
doShow() {
|
||||||
|
this.$refs.trainingList.doShow();
|
||||||
|
},
|
||||||
|
updateDetails(data) {
|
||||||
|
this.editData = data;
|
||||||
|
this.closeAllDialog('editDetails');
|
||||||
|
this.$refs.editDetails.doShow(data);
|
||||||
|
},
|
||||||
|
closeAllDialog(noCloseName) {
|
||||||
|
this.refsList.forEach(key => {
|
||||||
|
if (key != noCloseName && this.$refs[key]) {
|
||||||
|
this.$refs[key].doClose();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
openEditOperate(data) {
|
||||||
|
this.$refs.editOperate.doShow(data);
|
||||||
|
},
|
||||||
|
backStepList(data) {
|
||||||
|
this.$refs.editDetails.setOperations(data);
|
||||||
|
this.$refs.editDetails.minisize();
|
||||||
|
},
|
||||||
|
gradeRules(data) {
|
||||||
|
this.$refs.gradeRules.doShow(data);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.main {
|
||||||
|
position: relative;
|
||||||
|
z-index: 2001;
|
||||||
|
}
|
||||||
|
</style>
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog v-dialogDrag title="草稿发布轨迹" :visible.sync="dialogVisible" width="1050px" :before-close="doClose" center>
|
<el-dialog v-dialogDrag title="草稿发布轨迹" :visible.sync="dialogVisible" append-to-body width="1050px" :before-close="doClose" center>
|
||||||
<div>
|
<div>
|
||||||
<QueryListPage ref="queryListPage" :card-padding="10" :pager-config="pagerConfig" :query-form="queryForm" :query-list="queryList" />
|
<QueryListPage ref="queryListPage" :card-padding="10" :pager-config="pagerConfig" :query-form="queryForm" :query-list="queryList" />
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog v-dialogDrag title="实训管理" :visible.sync="dialogVisible" width="1250px" :before-close="doClose" center>
|
<el-dialog v-dialogDrag title="实训管理" :visible.sync="dialogVisible" append-to-body width="1250px" :before-close="doClose" center>
|
||||||
<div>
|
<div>
|
||||||
<div class="trainingHeader">
|
<div class="trainingHeader">
|
||||||
<div class="trainingList">实训草稿列表</div>
|
<div class="trainingList">实训草稿列表</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user