Merge branch 'test' of https://git.qcloud.com/joylink/jl-nclient into test
This commit is contained in:
commit
9ceacf7cef
@ -2,86 +2,86 @@ import request from '@/utils/request';
|
|||||||
|
|
||||||
/** 创建对应课程考题 */
|
/** 创建对应课程考题 */
|
||||||
export function setCourseList(data) {
|
export function setCourseList(data) {
|
||||||
return request({
|
return request({
|
||||||
url: `/api/exam`,
|
url: `/api/exam`,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 获取对应课程下类型 */
|
/** 获取对应课程下类型 */
|
||||||
export function getCourseTypeList(data) {
|
export function getCourseTypeList(data) {
|
||||||
return request({
|
return request({
|
||||||
url: `/api/exam/${data.lessonId}/trainingTypes`,
|
url: `/api/exam/${data.lessonId}/trainingTypes`,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 获取考试课程详情 */
|
/** 获取考试课程详情 */
|
||||||
export function getCourseLessonDetail(data) {
|
export function getCourseLessonDetail(data) {
|
||||||
return request({
|
return request({
|
||||||
url: `/api/exam/${data.lessonId}/list`,
|
url: `/api/exam/${data.lessonId}/list`,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 获取试卷详情 */
|
/** 获取试卷详情 */
|
||||||
export function getExamLessonDetail(examId) {
|
export function getExamLessonDetail(examId) {
|
||||||
return request({
|
return request({
|
||||||
url: `/api/exam/${examId}`,
|
url: `/api/exam/${examId}`,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 获取试卷列表 */
|
/** 获取试卷列表 */
|
||||||
export function getExamList(data) {
|
export function getExamList(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/api/exam/list',
|
url: '/api/exam/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: data
|
params: data
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 删除试卷 */
|
/** 删除试卷 */
|
||||||
export function deleteExam(data) {
|
export function deleteExam(data) {
|
||||||
return request({
|
return request({
|
||||||
url: `/api/exam/${data.id}`,
|
url: `/api/exam/${data.id}`,
|
||||||
method: 'delete'
|
method: 'delete'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 设置试卷下架 */
|
/** 设置试卷下架 */
|
||||||
export function setExamEfficacy(data) {
|
export function setExamEfficacy(data) {
|
||||||
return request({
|
return request({
|
||||||
url: `/api/exam/${data.id}/offLine`,
|
url: `/api/exam/${data.id}/offLine`,
|
||||||
method: 'put'
|
method: 'put'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 设置试卷上架 */
|
/** 设置试卷上架 */
|
||||||
export function setExamEffectivey(data) {
|
export function setExamEffectivey(data) {
|
||||||
return request({
|
return request({
|
||||||
url: `/api/exam/${data.id}/onLine`,
|
url: `/api/exam/${data.id}/onLine`,
|
||||||
method: 'put'
|
method: 'put'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 查询课程下类型题数 */
|
/** 查询课程下类型题数 */
|
||||||
export function getLessonTypeNum(data) {
|
export function getLessonTypeNum(data) {
|
||||||
return request({
|
return request({
|
||||||
url: `/api/exam/trainingNum/${data.lessonId}/${data.trainingType}`,
|
url: `/api/exam/trainingNum/${data.lessonId}/${data.trainingType}`,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: {
|
params: {
|
||||||
operateType: data.operateType
|
operateType: data.operateType
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 更新考试规则*/
|
/** 更新考试规则*/
|
||||||
export function updateExamRules(data) {
|
export function updateExamRules(data) {
|
||||||
return request({
|
return request({
|
||||||
url: `/api/exam/${data.id}`,
|
url: `/api/exam/${data.id}`,
|
||||||
method: 'put',
|
method: 'put',
|
||||||
data: data
|
data: data
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -113,5 +113,7 @@ export default {
|
|||||||
selectTestType: 'Please select test type',
|
selectTestType: 'Please select test type',
|
||||||
modifyRules: 'Modify Rules',
|
modifyRules: 'Modify Rules',
|
||||||
enterRunPlanName: 'Please enter the name of the diagram',
|
enterRunPlanName: 'Please enter the name of the diagram',
|
||||||
setTheProject: 'Set the project'
|
setTheProject: 'Set the project',
|
||||||
|
whetherItBelongsToTheProject: 'Whether it belongs to the project',
|
||||||
|
belongsProject: 'Belongs project'
|
||||||
};
|
};
|
||||||
|
@ -117,5 +117,7 @@ export default {
|
|||||||
modifyRules: '修改规则',
|
modifyRules: '修改规则',
|
||||||
enterRunPlanName: '请输入运行图名称',
|
enterRunPlanName: '请输入运行图名称',
|
||||||
// refreshFailed 刷新失败
|
// refreshFailed 刷新失败
|
||||||
setTheProject: '设置归属项目'
|
setTheProject: '设置归属项目',
|
||||||
|
whetherItBelongsToTheProject: '是否归属项目',
|
||||||
|
belongsProject: '归属项目'
|
||||||
};
|
};
|
||||||
|
@ -309,7 +309,7 @@ export function Jl3dDriving(updatemmi,sound,translation) {
|
|||||||
if (trainlisttest.list[code].dispose != data.body[i].dispose && data.body[i].dispose == false) {
|
if (trainlisttest.list[code].dispose != data.body[i].dispose && data.body[i].dispose == false) {
|
||||||
|
|
||||||
if (rails.linkrail[data.body[i].linkCode]) {
|
if (rails.linkrail[data.body[i].linkCode]) {
|
||||||
// console.log(trainlisttest.group);
|
console.log(trainlisttest.group);
|
||||||
if(trainlisttest.group.children.length<1){
|
if(trainlisttest.group.children.length<1){
|
||||||
trainlisttest.group.add(trainlisttest.list[code]);
|
trainlisttest.group.add(trainlisttest.list[code]);
|
||||||
}
|
}
|
||||||
@ -421,41 +421,7 @@ export function Jl3dDriving(updatemmi,sound,translation) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (trainlisttest.list[code].status != data.body[i].directionType) {
|
if (trainlisttest.list[code].status != data.body[i].directionType) {
|
||||||
if (data.body[i].directionType == '02') { // 向右
|
|
||||||
|
|
||||||
trainlisttest.list[code].progress = 0;
|
|
||||||
const rotaposx = trainlisttest.list[code].children[5].matrixWorld.elements[12];
|
|
||||||
const rotaposz = trainlisttest.list[code].children[0].matrixWorld.elements[14];
|
|
||||||
trainlisttest.list[code].rotation.y = 0;
|
|
||||||
trainlisttest.list[code].position.x = rotaposx;
|
|
||||||
for (let tl=0; tl<6; tl++) {
|
|
||||||
trainlisttest.list[code].children[tl].position.z = rotaposz;
|
|
||||||
}
|
|
||||||
|
|
||||||
trainlisttest.list[code].progress = (rotaposx-rails.linkrail[data.body[i].linkCode].lp.x)/rails.linkrail[data.body[i].linkCode].lengthfact;
|
|
||||||
trainlisttest.list[code].status = '02';
|
|
||||||
trainlisttest.list[code].curve = rails.linkrail[data.body[i].linkCode].lineleft;
|
|
||||||
trainlisttest.list[code].nextcurve = null;
|
|
||||||
|
|
||||||
trainlisttest.list[code].len = rails.linkrail[data.body[i].linkCode].lengthfact;
|
|
||||||
|
|
||||||
} else if (data.body[i].directionType == '03') { // 向左
|
|
||||||
trainlisttest.list[code].progress = 0;
|
|
||||||
const rotaposx = trainlisttest.list[code].children[5].matrixWorld.elements[12];
|
|
||||||
const rotaposz = Math.abs(trainlisttest.list[code].children[0].matrixWorld.elements[14]);
|
|
||||||
trainlisttest.list[code].rotation.y = Math.PI;
|
|
||||||
trainlisttest.list[code].position.x = rotaposx;
|
|
||||||
for (let tl=0; tl<6; tl++) {
|
|
||||||
trainlisttest.list[code].children[tl].position.z = -rotaposz;
|
|
||||||
}
|
|
||||||
trainlisttest.list[code].progress = 1-(rotaposx-rails.linkrail[data.body[i].linkCode].lp.x)/rails.linkrail[data.body[i].linkCode].lengthfact;
|
|
||||||
trainlisttest.list[code].status = '03';
|
|
||||||
trainlisttest.list[code].curve = rails.linkrail[data.body[i].linkCode].lineright;
|
|
||||||
trainlisttest.list[code].nextcurve = null;
|
|
||||||
|
|
||||||
trainlisttest.list[code].len = rails.linkrail[data.body[i].linkCode].lengthfact;
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -90,8 +90,8 @@ export function JLmap3d(dom, data,skinCode,storemod) {
|
|||||||
ModelLoad(data,scope,netdata.data,mapdata,camera,controls,scene,storemod);
|
ModelLoad(data,scope,netdata.data,mapdata,camera,controls,scene,storemod);
|
||||||
});
|
});
|
||||||
//
|
//
|
||||||
let stats = new Stats();
|
// let stats = new Stats();
|
||||||
dom.appendChild( stats.dom );
|
// dom.appendChild( stats.dom );
|
||||||
//开启渲染
|
//开启渲染
|
||||||
animate();
|
animate();
|
||||||
startWorker();
|
startWorker();
|
||||||
@ -108,7 +108,7 @@ export function JLmap3d(dom, data,skinCode,storemod) {
|
|||||||
//根据相机渲染场景
|
//根据相机渲染场景
|
||||||
renderer.render(scene,camera);
|
renderer.render(scene,camera);
|
||||||
//检测动画构造器播放动画
|
//检测动画构造器播放动画
|
||||||
stats.update();
|
// stats.update();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -53,9 +53,6 @@ import ExamHome from '@/views/exam/index';
|
|||||||
import ExamCourseDetail from '@/views/exam/detail/courseDetail';
|
import ExamCourseDetail from '@/views/exam/detail/courseDetail';
|
||||||
import ExamResult from '@/views/exam/result';
|
import ExamResult from '@/views/exam/result';
|
||||||
|
|
||||||
import PublishExamRule from '@/views/publish/examRule/index';
|
|
||||||
import PublishExamRuleDraft from '@/views/publish/examRule/draft/index';
|
|
||||||
|
|
||||||
import DemonstrationDetail from '@/views/demonstration/detail/index';
|
import DemonstrationDetail from '@/views/demonstration/detail/index';
|
||||||
|
|
||||||
import PlanMonitorEditTool from '@/views/planMonitor/editTool/index';
|
import PlanMonitorEditTool from '@/views/planMonitor/editTool/index';
|
||||||
@ -79,12 +76,13 @@ import PublishMap from '@/views/publish/publishMap/index';
|
|||||||
import PublishMapDetail from '@/views/publish/publishMap/list'; // 发布历史
|
import PublishMapDetail from '@/views/publish/publishMap/list'; // 发布历史
|
||||||
import ProductStatus from '@/views/publish/productStatus/index';
|
import ProductStatus from '@/views/publish/productStatus/index';
|
||||||
import PublishLesson from '@/views/publish/publishLesson/index';
|
import PublishLesson from '@/views/publish/publishLesson/index';
|
||||||
|
import RunPlanTemplate from '@/views/publish/runPlanTemplate/index';
|
||||||
import RunPlanCommon from '@/views/publish/runPlanCommon/index';
|
import RunPlanCommon from '@/views/publish/runPlanCommon/index';
|
||||||
import RunPlanCommonDraft from '@/views/publish/runPlanCommon/draft';
|
import RunPlanCommonDraft from '@/views/publish/runPlanCommon/draft';
|
||||||
import RunPlanTemplate from '@/views/publish/runPlanTemplate/index';
|
|
||||||
import RunPlanEveryDay from '@/views/publish/runPlanEveryDay/index';
|
import RunPlanEveryDay from '@/views/publish/runPlanEveryDay/index';
|
||||||
import RunplanView from '@/views/publish/runPlanView/index';
|
import RunplanView from '@/views/publish/runPlanEveryDay/runPlanView';
|
||||||
|
import PublishExamRule from '@/views/publish/examRule/index';
|
||||||
|
import PublishExamRuleDraft from '@/views/publish/examRule/draft/index';
|
||||||
|
|
||||||
import TrainingPlatform from '@/views/trainingPlatform/index';
|
import TrainingPlatform from '@/views/trainingPlatform/index';
|
||||||
|
|
||||||
@ -334,7 +332,8 @@ export const asyncRouter = [
|
|||||||
hidden: true
|
hidden: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'lesson/home/:mapId/:skinCode',
|
path: 'lesson/home/:mapId',
|
||||||
|
// /:skinCode
|
||||||
component: LessonHome,
|
component: LessonHome,
|
||||||
hidden: true
|
hidden: true
|
||||||
},
|
},
|
||||||
@ -647,6 +646,11 @@ export const asyncRouter = [
|
|||||||
i18n: 'router.runPlanEveryDayManage'
|
i18n: 'router.runPlanEveryDayManage'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: 'runPlan/view/:mode',
|
||||||
|
component: RunplanView,
|
||||||
|
hidden: true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: 'examRule/manage',
|
path: 'examRule/manage',
|
||||||
component: PublishExamRule,
|
component: PublishExamRule,
|
||||||
@ -663,11 +667,6 @@ export const asyncRouter = [
|
|||||||
path: 'runPlan/common/:mode',
|
path: 'runPlan/common/:mode',
|
||||||
component: RunPlanCommonDraft,
|
component: RunPlanCommonDraft,
|
||||||
hidden: true
|
hidden: true
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'runPlan/view/:mode',
|
|
||||||
component: RunplanView,
|
|
||||||
hidden: true
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -89,7 +89,7 @@ export const OperationList = {
|
|||||||
trainingName: '站台扣车({10}-{12}站台)',
|
trainingName: '站台扣车({10}-{12}站台)',
|
||||||
trainingRemark: '设置扣车功能',
|
trainingRemark: '设置扣车功能',
|
||||||
trainingType: '05',
|
trainingType: '05',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '06', orderNum: 1, operateCode: '504', tip: '鼠标右键菜单选择【扣车】' },
|
{ deviceType: '06', orderNum: 1, operateCode: '504', tip: '鼠标右键菜单选择【扣车】' },
|
||||||
{ deviceType: '06', orderNum: 2, operateCode: '504', tip: '鼠标左键点击【确定】按钮' }
|
{ deviceType: '06', orderNum: 2, operateCode: '504', tip: '鼠标左键点击【确定】按钮' }
|
||||||
@ -103,7 +103,7 @@ export const OperationList = {
|
|||||||
trainingName: '站台取消扣车({10}-{12}站台)',
|
trainingName: '站台取消扣车({10}-{12}站台)',
|
||||||
trainingRemark: '设置取消扣车功能',
|
trainingRemark: '设置取消扣车功能',
|
||||||
trainingType: '05',
|
trainingType: '05',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '06', orderNum: 1, operateCode: '505', tip: '鼠标右键菜单选择【取消扣车】' },
|
{ deviceType: '06', orderNum: 1, operateCode: '505', tip: '鼠标右键菜单选择【取消扣车】' },
|
||||||
{ deviceType: '06', orderNum: 2, operateCode: '505', tip: '鼠标左键点击【确定】按钮' }
|
{ deviceType: '06', orderNum: 2, operateCode: '505', tip: '鼠标左键点击【确定】按钮' }
|
||||||
@ -160,7 +160,7 @@ export const OperationList = {
|
|||||||
trainingName: '站台跳停({10}-{12}站台)',
|
trainingName: '站台跳停({10}-{12}站台)',
|
||||||
trainingRemark: '设置跳停功能',
|
trainingRemark: '设置跳停功能',
|
||||||
trainingType: '05',
|
trainingType: '05',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '06', orderNum: 1, operateCode: '502', tip: '鼠标右键菜单选择【跳停】' },
|
{ deviceType: '06', orderNum: 1, operateCode: '502', tip: '鼠标右键菜单选择【跳停】' },
|
||||||
{ deviceType: '06', orderNum: 2, operateCode: '502', tip: '鼠标左键点击【确定】按钮', val: '{11}' }
|
{ deviceType: '06', orderNum: 2, operateCode: '502', tip: '鼠标左键点击【确定】按钮', val: '{11}' }
|
||||||
@ -174,7 +174,7 @@ export const OperationList = {
|
|||||||
trainingName: '取消跳停({10}-{12}站台)',
|
trainingName: '取消跳停({10}-{12}站台)',
|
||||||
trainingRemark: '设置取消跳停功能',
|
trainingRemark: '设置取消跳停功能',
|
||||||
trainingType: '05',
|
trainingType: '05',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '06', orderNum: 1, operateCode: '503', tip: '鼠标右键菜单选择【取消跳停】' },
|
{ deviceType: '06', orderNum: 1, operateCode: '503', tip: '鼠标右键菜单选择【取消跳停】' },
|
||||||
{ deviceType: '06', orderNum: 2, operateCode: '503', tip: '鼠标左键点击【确定】按钮', val: '{11}' }
|
{ deviceType: '06', orderNum: 2, operateCode: '503', tip: '鼠标左键点击【确定】按钮', val: '{11}' }
|
||||||
@ -188,7 +188,7 @@ export const OperationList = {
|
|||||||
trainingName: '查询站台状态({10}-{12}站台)',
|
trainingName: '查询站台状态({10}-{12}站台)',
|
||||||
trainingRemark: '查询站台状态功能',
|
trainingRemark: '查询站台状态功能',
|
||||||
trainingType: '05',
|
trainingType: '05',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '06', orderNum: 1, operateCode: '507', tip: '鼠标右键菜单选择【查询站台状态】' },
|
{ deviceType: '06', orderNum: 1, operateCode: '507', tip: '鼠标右键菜单选择【查询站台状态】' },
|
||||||
{ deviceType: '06', orderNum: 2, operateCode: '0012', tip: '鼠标左键点击【确定】按钮' }
|
{ deviceType: '06', orderNum: 2, operateCode: '0012', tip: '鼠标左键点击【确定】按钮' }
|
||||||
@ -316,7 +316,7 @@ export const OperationList = {
|
|||||||
trainingName: '区段故障解锁({8}{9})',
|
trainingName: '区段故障解锁({8}{9})',
|
||||||
trainingRemark: '故障解锁功能',
|
trainingRemark: '故障解锁功能',
|
||||||
trainingType: '04',
|
trainingType: '04',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '03', orderNum: 1, operateCode: '402', tip: '鼠标右键菜单选择【区段故障解锁】' },
|
{ deviceType: '03', orderNum: 1, operateCode: '402', tip: '鼠标右键菜单选择【区段故障解锁】' },
|
||||||
{ deviceType: '03', orderNum: 2, operateCode: '4026', tip: '鼠标左键点击【下达】按钮' },
|
{ deviceType: '03', orderNum: 2, operateCode: '4026', tip: '鼠标左键点击【下达】按钮' },
|
||||||
@ -333,7 +333,7 @@ export const OperationList = {
|
|||||||
trainingName: '区段切除({8}{9})',
|
trainingName: '区段切除({8}{9})',
|
||||||
trainingRemark: '区段切除',
|
trainingRemark: '区段切除',
|
||||||
trainingType: '04',
|
trainingType: '04',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '03', orderNum: 1, operateCode: '405', tip: '鼠标右键菜单选择【区段切除】' },
|
{ deviceType: '03', orderNum: 1, operateCode: '405', tip: '鼠标右键菜单选择【区段切除】' },
|
||||||
{ deviceType: '03', orderNum: 2, operateCode: '405', tip: '鼠标左键点击【确定】按钮' }
|
{ deviceType: '03', orderNum: 2, operateCode: '405', tip: '鼠标左键点击【确定】按钮' }
|
||||||
@ -347,7 +347,7 @@ export const OperationList = {
|
|||||||
trainingName: '区段激活({8}{9})',
|
trainingName: '区段激活({8}{9})',
|
||||||
trainingRemark: '区段激活功能',
|
trainingRemark: '区段激活功能',
|
||||||
trainingType: '04',
|
trainingType: '04',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '03', orderNum: 1, operateCode: '406', tip: '鼠标右键菜单选择【区段激活】' },
|
{ deviceType: '03', orderNum: 1, operateCode: '406', tip: '鼠标右键菜单选择【区段激活】' },
|
||||||
{ deviceType: '03', orderNum: 2, operateCode: '406', tip: '鼠标左键点击【确定】按钮' }
|
{ deviceType: '03', orderNum: 2, operateCode: '406', tip: '鼠标左键点击【确定】按钮' }
|
||||||
@ -378,7 +378,7 @@ export const OperationList = {
|
|||||||
trainingName: '区段封锁({8}{9})',
|
trainingName: '区段封锁({8}{9})',
|
||||||
trainingRemark: '区段封锁功能',
|
trainingRemark: '区段封锁功能',
|
||||||
trainingType: '04',
|
trainingType: '04',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '03', orderNum: 1, operateCode: '403', tip: '鼠标右键菜单选择【区段封锁】' },
|
{ deviceType: '03', orderNum: 1, operateCode: '403', tip: '鼠标右键菜单选择【区段封锁】' },
|
||||||
{ deviceType: '03', orderNum: 2, operateCode: '403', tip: '鼠标左键点击【确定】按钮' }
|
{ deviceType: '03', orderNum: 2, operateCode: '403', tip: '鼠标左键点击【确定】按钮' }
|
||||||
@ -392,7 +392,7 @@ export const OperationList = {
|
|||||||
trainingName: '区段解封({8}{9})',
|
trainingName: '区段解封({8}{9})',
|
||||||
trainingRemark: '区段解封功能',
|
trainingRemark: '区段解封功能',
|
||||||
trainingType: '04',
|
trainingType: '04',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '03', orderNum: 1, operateCode: '404', tip: '鼠标右键菜单选择【区段解封】' },
|
{ deviceType: '03', orderNum: 1, operateCode: '404', tip: '鼠标右键菜单选择【区段解封】' },
|
||||||
{ deviceType: '03', orderNum: 2, operateCode: '4041', tip: '鼠标左键点击【下达】按钮' },
|
{ deviceType: '03', orderNum: 2, operateCode: '4041', tip: '鼠标左键点击【下达】按钮' },
|
||||||
@ -409,7 +409,7 @@ export const OperationList = {
|
|||||||
trainingName: '区段设置限速({8}{9})',
|
trainingName: '区段设置限速({8}{9})',
|
||||||
trainingRemark: '区段设置限速功能(限速值:5)',
|
trainingRemark: '区段设置限速功能(限速值:5)',
|
||||||
trainingType: '04',
|
trainingType: '04',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '03', orderNum: 1, operateCode: '407', tip: '鼠标右键菜单选择【区段设置限速】' },
|
{ deviceType: '03', orderNum: 1, operateCode: '407', tip: '鼠标右键菜单选择【区段设置限速】' },
|
||||||
{ deviceType: '03', orderNum: 2, operateCode: '4076', tip: '鼠标左键选择【限速值5】', val: '5' },
|
{ deviceType: '03', orderNum: 2, operateCode: '4076', tip: '鼠标左键选择【限速值5】', val: '5' },
|
||||||
@ -428,7 +428,7 @@ export const OperationList = {
|
|||||||
trainingName: '区段取消限速({8}{9})',
|
trainingName: '区段取消限速({8}{9})',
|
||||||
trainingRemark: '区段取消限速功能',
|
trainingRemark: '区段取消限速功能',
|
||||||
trainingType: '04',
|
trainingType: '04',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '03', orderNum: 1, operateCode: '408', tip: '鼠标右键菜单选择【区段取消限速】' },
|
{ deviceType: '03', orderNum: 1, operateCode: '408', tip: '鼠标右键菜单选择【区段取消限速】' },
|
||||||
{ deviceType: '03', orderNum: 2, operateCode: '4081', tip: '鼠标左键点击【下达】按钮' },
|
{ deviceType: '03', orderNum: 2, operateCode: '4081', tip: '鼠标左键点击【下达】按钮' },
|
||||||
@ -447,7 +447,7 @@ export const OperationList = {
|
|||||||
trainingName: '道岔单锁({7})',
|
trainingName: '道岔单锁({7})',
|
||||||
trainingRemark: '道岔单锁功能',
|
trainingRemark: '道岔单锁功能',
|
||||||
trainingType: '03',
|
trainingType: '03',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '02', orderNum: 1, operateCode: '103', tip: '鼠标右键菜单选择【道岔单锁】' },
|
{ deviceType: '02', orderNum: 1, operateCode: '103', tip: '鼠标右键菜单选择【道岔单锁】' },
|
||||||
{ deviceType: '02', orderNum: 2, operateCode: '103', tip: '鼠标左键点击【确定】按钮' }
|
{ deviceType: '02', orderNum: 2, operateCode: '103', tip: '鼠标左键点击【确定】按钮' }
|
||||||
@ -461,7 +461,7 @@ export const OperationList = {
|
|||||||
trainingName: '道岔单解({7})',
|
trainingName: '道岔单解({7})',
|
||||||
trainingRemark: '道岔单解功能',
|
trainingRemark: '道岔单解功能',
|
||||||
trainingType: '03',
|
trainingType: '03',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '02', orderNum: 1, operateCode: '104', tip: '鼠标右键菜单选择【道岔单解】' },
|
{ deviceType: '02', orderNum: 1, operateCode: '104', tip: '鼠标右键菜单选择【道岔单解】' },
|
||||||
{ deviceType: '02', orderNum: 2, operateCode: '1041', tip: '鼠标左键点击【下达】按钮' },
|
{ deviceType: '02', orderNum: 2, operateCode: '1041', tip: '鼠标左键点击【下达】按钮' },
|
||||||
@ -478,7 +478,7 @@ export const OperationList = {
|
|||||||
trainingName: '道岔区段封闭({7})',
|
trainingName: '道岔区段封闭({7})',
|
||||||
trainingRemark: '道岔区段封闭功能',
|
trainingRemark: '道岔区段封闭功能',
|
||||||
trainingType: '03',
|
trainingType: '03',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '02', orderNum: 1, operateCode: '105', tip: '鼠标右键菜单选择【道岔区段封闭】' },
|
{ deviceType: '02', orderNum: 1, operateCode: '105', tip: '鼠标右键菜单选择【道岔区段封闭】' },
|
||||||
{ deviceType: '02', orderNum: 2, operateCode: '105', tip: '鼠标左键点击【确定】按钮' }
|
{ deviceType: '02', orderNum: 2, operateCode: '105', tip: '鼠标左键点击【确定】按钮' }
|
||||||
@ -492,7 +492,7 @@ export const OperationList = {
|
|||||||
trainingName: '道岔区段解封({7})',
|
trainingName: '道岔区段解封({7})',
|
||||||
trainingRemark: '道岔区段解封功能',
|
trainingRemark: '道岔区段解封功能',
|
||||||
trainingType: '03',
|
trainingType: '03',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '02', orderNum: 1, operateCode: '106', tip: '鼠标右键菜单选择【道岔区段解封】' },
|
{ deviceType: '02', orderNum: 1, operateCode: '106', tip: '鼠标右键菜单选择【道岔区段解封】' },
|
||||||
{ deviceType: '02', orderNum: 2, operateCode: '1061', tip: '鼠标左键点击【下达】按钮' },
|
{ deviceType: '02', orderNum: 2, operateCode: '1061', tip: '鼠标左键点击【下达】按钮' },
|
||||||
@ -509,7 +509,7 @@ export const OperationList = {
|
|||||||
trainingName: '道岔转动({7})',
|
trainingName: '道岔转动({7})',
|
||||||
trainingRemark: '道岔转动功能({15}转{16})',
|
trainingRemark: '道岔转动功能({15}转{16})',
|
||||||
trainingType: '03',
|
trainingType: '03',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '02', orderNum: 1, operateCode: '107', tip: '鼠标右键菜单选择【道岔转动】' },
|
{ deviceType: '02', orderNum: 1, operateCode: '107', tip: '鼠标右键菜单选择【道岔转动】' },
|
||||||
{ deviceType: '02', orderNum: 2, operateCode: '107', tip: '鼠标左键点击【确定】按钮' }
|
{ deviceType: '02', orderNum: 2, operateCode: '107', tip: '鼠标左键点击【确定】按钮' }
|
||||||
@ -523,7 +523,7 @@ export const OperationList = {
|
|||||||
trainingName: '道岔区段故障解锁({7})',
|
trainingName: '道岔区段故障解锁({7})',
|
||||||
trainingRemark: '道岔区段故障解锁功能',
|
trainingRemark: '道岔区段故障解锁功能',
|
||||||
trainingType: '03',
|
trainingType: '03',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '02', orderNum: 1, operateCode: '109', tip: '鼠标右键菜单选择【道岔区段故障解锁】' },
|
{ deviceType: '02', orderNum: 1, operateCode: '109', tip: '鼠标右键菜单选择【道岔区段故障解锁】' },
|
||||||
{ deviceType: '02', orderNum: 2, operateCode: '1091', tip: '鼠标左键点击【下达】按钮' },
|
{ deviceType: '02', orderNum: 2, operateCode: '1091', tip: '鼠标左键点击【下达】按钮' },
|
||||||
@ -557,7 +557,7 @@ export const OperationList = {
|
|||||||
trainingName: '区段切除({7})',
|
trainingName: '区段切除({7})',
|
||||||
trainingRemark: '区段切除',
|
trainingRemark: '区段切除',
|
||||||
trainingType: '03',
|
trainingType: '03',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '02', orderNum: 1, operateCode: '111', tip: '鼠标右键菜单选择【区段切除】' },
|
{ deviceType: '02', orderNum: 1, operateCode: '111', tip: '鼠标右键菜单选择【区段切除】' },
|
||||||
{ deviceType: '02', orderNum: 2, operateCode: '111', tip: '鼠标左键点击【确定】按钮' }
|
{ deviceType: '02', orderNum: 2, operateCode: '111', tip: '鼠标左键点击【确定】按钮' }
|
||||||
@ -571,7 +571,7 @@ export const OperationList = {
|
|||||||
trainingName: '区段激活({7})',
|
trainingName: '区段激活({7})',
|
||||||
trainingRemark: '区段激活功能',
|
trainingRemark: '区段激活功能',
|
||||||
trainingType: '03',
|
trainingType: '03',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '02', orderNum: 1, operateCode: '112', tip: '鼠标右键菜单选择【区段激活】' },
|
{ deviceType: '02', orderNum: 1, operateCode: '112', tip: '鼠标右键菜单选择【区段激活】' },
|
||||||
{ deviceType: '02', orderNum: 2, operateCode: '112', tip: '鼠标左键点击【确定】按钮' }
|
{ deviceType: '02', orderNum: 2, operateCode: '112', tip: '鼠标左键点击【确定】按钮' }
|
||||||
@ -585,7 +585,7 @@ export const OperationList = {
|
|||||||
trainingName: '道岔区段设置限速({7})',
|
trainingName: '道岔区段设置限速({7})',
|
||||||
trainingRemark: '道岔区段设置限速功能(限速值:5)',
|
trainingRemark: '道岔区段设置限速功能(限速值:5)',
|
||||||
trainingType: '03',
|
trainingType: '03',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '02', orderNum: 1, operateCode: '113', tip: '鼠标右键菜单选择【道岔区段设置限速】' },
|
{ deviceType: '02', orderNum: 1, operateCode: '113', tip: '鼠标右键菜单选择【道岔区段设置限速】' },
|
||||||
{ deviceType: '02', orderNum: 2, operateCode: '1136', tip: '鼠标左键选择【限速值5】', val: '5' },
|
{ deviceType: '02', orderNum: 2, operateCode: '1136', tip: '鼠标左键选择【限速值5】', val: '5' },
|
||||||
@ -604,7 +604,7 @@ export const OperationList = {
|
|||||||
trainingName: '道岔区段取消限速({7})',
|
trainingName: '道岔区段取消限速({7})',
|
||||||
trainingRemark: '道岔区段取消限速功能',
|
trainingRemark: '道岔区段取消限速功能',
|
||||||
trainingType: '03',
|
trainingType: '03',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '02', orderNum: 1, operateCode: '114', tip: '鼠标右键菜单选择【道岔区段取消限速】' },
|
{ deviceType: '02', orderNum: 1, operateCode: '114', tip: '鼠标右键菜单选择【道岔区段取消限速】' },
|
||||||
{ deviceType: '02', orderNum: 2, operateCode: '1141', tip: '鼠标左键点击【下达】按钮' },
|
{ deviceType: '02', orderNum: 2, operateCode: '1141', tip: '鼠标左键点击【下达】按钮' },
|
||||||
@ -623,7 +623,7 @@ export const OperationList = {
|
|||||||
trainingName: '进路选排({3})',
|
trainingName: '进路选排({3})',
|
||||||
trainingRemark: '选择排列进路',
|
trainingRemark: '选择排列进路',
|
||||||
trainingType: '02',
|
trainingType: '02',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '04', orderNum: 1, operateCode: '301', tip: '鼠标右键菜单选择【进路选排】' },
|
{ deviceType: '04', orderNum: 1, operateCode: '301', tip: '鼠标右键菜单选择【进路选排】' },
|
||||||
{ deviceType: '04', orderNum: 2, operateCode: '3011', tip: '鼠标左键选择进路名称【{3}】', val: '{4}' },
|
{ deviceType: '04', orderNum: 2, operateCode: '3011', tip: '鼠标左键选择进路名称【{3}】', val: '{4}' },
|
||||||
@ -668,7 +668,7 @@ export const OperationList = {
|
|||||||
trainingName: '信号封闭({5})',
|
trainingName: '信号封闭({5})',
|
||||||
trainingRemark: '信号封闭',
|
trainingRemark: '信号封闭',
|
||||||
trainingType: '02',
|
trainingType: '02',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '04', orderNum: 1, operateCode: '306', tip: '鼠标右键菜单选择【信号封闭】' },
|
{ deviceType: '04', orderNum: 1, operateCode: '306', tip: '鼠标右键菜单选择【信号封闭】' },
|
||||||
{ deviceType: '04', orderNum: 2, operateCode: '306', tip: '鼠标左键点击【确定】按钮' }
|
{ deviceType: '04', orderNum: 2, operateCode: '306', tip: '鼠标左键点击【确定】按钮' }
|
||||||
@ -682,7 +682,7 @@ export const OperationList = {
|
|||||||
trainingName: '信号解封({5})',
|
trainingName: '信号解封({5})',
|
||||||
trainingRemark: '信号解封',
|
trainingRemark: '信号解封',
|
||||||
trainingType: '02',
|
trainingType: '02',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '04', orderNum: 1, operateCode: '307', tip: '鼠标右键菜单选择【信号解封】' },
|
{ deviceType: '04', orderNum: 1, operateCode: '307', tip: '鼠标右键菜单选择【信号解封】' },
|
||||||
{ deviceType: '04', orderNum: 2, operateCode: '3071', tip: '鼠标左键点击【下达】按钮' },
|
{ deviceType: '04', orderNum: 2, operateCode: '3071', tip: '鼠标左键点击【下达】按钮' },
|
||||||
@ -700,7 +700,7 @@ export const OperationList = {
|
|||||||
trainingName: '信号关灯({3})',
|
trainingName: '信号关灯({3})',
|
||||||
trainingRemark: '信号关灯',
|
trainingRemark: '信号关灯',
|
||||||
trainingType: '02',
|
trainingType: '02',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '04', orderNum: 1, operateCode: '313', tip: '鼠标右键菜单选择【信号关灯】' },
|
{ deviceType: '04', orderNum: 1, operateCode: '313', tip: '鼠标右键菜单选择【信号关灯】' },
|
||||||
{ deviceType: '04', orderNum: 2, operateCode: '313', tip: '鼠标左键点击【确定】按钮' },
|
{ deviceType: '04', orderNum: 2, operateCode: '313', tip: '鼠标左键点击【确定】按钮' },
|
||||||
@ -715,7 +715,7 @@ export const OperationList = {
|
|||||||
trainingName: '信号重开({3})',
|
trainingName: '信号重开({3})',
|
||||||
trainingRemark: '信号重开',
|
trainingRemark: '信号重开',
|
||||||
trainingType: '02',
|
trainingType: '02',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '04', orderNum: 1, operateCode: '304', tip: '鼠标右键菜单选择【信号重开】' },
|
{ deviceType: '04', orderNum: 1, operateCode: '304', tip: '鼠标右键菜单选择【信号重开】' },
|
||||||
{ deviceType: '04', orderNum: 2, operateCode: '304', tip: '鼠标左键点击【确定】按钮' },
|
{ deviceType: '04', orderNum: 2, operateCode: '304', tip: '鼠标左键点击【确定】按钮' },
|
||||||
@ -851,7 +851,7 @@ export const OperationList = {
|
|||||||
trainingName: '设置扣车({10}-{12} 站台)',
|
trainingName: '设置扣车({10}-{12} 站台)',
|
||||||
trainingRemark: '设置扣车功能',
|
trainingRemark: '设置扣车功能',
|
||||||
trainingType: '05',
|
trainingType: '05',
|
||||||
productTypes: ['01,02'], // 产品类型 01 现地 02 行调
|
productTypes: ['01', '02'], // 产品类型 01 现地 02 行调
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '06', orderNum: 1, operateCode: '504', tip: '鼠标右键菜单选择【设置扣车】' },
|
{ deviceType: '06', orderNum: 1, operateCode: '504', tip: '鼠标右键菜单选择【设置扣车】' },
|
||||||
{ deviceType: '06', orderNum: 2, operateCode: '504', tip: '鼠标左键点击【确定】按钮' }
|
{ deviceType: '06', orderNum: 2, operateCode: '504', tip: '鼠标左键点击【确定】按钮' }
|
||||||
@ -865,7 +865,7 @@ export const OperationList = {
|
|||||||
trainingName: '取消扣车({10}-{12} 站台)',
|
trainingName: '取消扣车({10}-{12} 站台)',
|
||||||
trainingRemark: '取消扣车功能',
|
trainingRemark: '取消扣车功能',
|
||||||
trainingType: '05',
|
trainingType: '05',
|
||||||
productTypes: ['01,02'], // 产品类型 01 现地 02 行调
|
productTypes: ['01', '02'], // 产品类型 01 现地 02 行调
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '06', orderNum: 1, operateCode: '505', tip: '鼠标右键菜单选择【取消扣车】' },
|
{ deviceType: '06', orderNum: 1, operateCode: '505', tip: '鼠标右键菜单选择【取消扣车】' },
|
||||||
{ deviceType: '06', orderNum: 2, operateCode: '505', tip: '鼠标左键点击【确定】按钮' }
|
{ deviceType: '06', orderNum: 2, operateCode: '505', tip: '鼠标左键点击【确定】按钮' }
|
||||||
@ -879,7 +879,7 @@ export const OperationList = {
|
|||||||
trainingName: '设置跳停({10}-{12} 站台)',
|
trainingName: '设置跳停({10}-{12} 站台)',
|
||||||
trainingRemark: '设置跳停功能',
|
trainingRemark: '设置跳停功能',
|
||||||
trainingType: '05',
|
trainingType: '05',
|
||||||
productTypes: ['01,02'], // 产品类型 01 现地 02 行调
|
productTypes: ['01', '02'], // 产品类型 01 现地 02 行调
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '06', orderNum: 1, operateCode: '502', tip: '鼠标右键菜单选择【设置跳停】' },
|
{ deviceType: '06', orderNum: 1, operateCode: '502', tip: '鼠标右键菜单选择【设置跳停】' },
|
||||||
{ deviceType: '06', orderNum: 2, operateCode: '502', tip: '鼠标左键点击【确定】按钮', val: '{11}' }
|
{ deviceType: '06', orderNum: 2, operateCode: '502', tip: '鼠标左键点击【确定】按钮', val: '{11}' }
|
||||||
@ -893,7 +893,7 @@ export const OperationList = {
|
|||||||
trainingName: '设置跳停({10}-{12} 站台)',
|
trainingName: '设置跳停({10}-{12} 站台)',
|
||||||
trainingRemark: '设置指定001号列车跳停功能',
|
trainingRemark: '设置指定001号列车跳停功能',
|
||||||
trainingType: '05',
|
trainingType: '05',
|
||||||
productTypes: ['01,02'], // 产品类型 01 现地 02 行调
|
productTypes: ['01', '02'], // 产品类型 01 现地 02 行调
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '06', orderNum: 1, operateCode: '502', tip: '鼠标右键菜单选择【设置跳停】' },
|
{ deviceType: '06', orderNum: 1, operateCode: '502', tip: '鼠标右键菜单选择【设置跳停】' },
|
||||||
{ deviceType: '06', orderNum: 2, operateCode: '5024', tip: '鼠标左键点击' },
|
{ deviceType: '06', orderNum: 2, operateCode: '5024', tip: '鼠标左键点击' },
|
||||||
@ -909,7 +909,7 @@ export const OperationList = {
|
|||||||
trainingName: '取消跳停({10}-{12} 站台)',
|
trainingName: '取消跳停({10}-{12} 站台)',
|
||||||
trainingRemark: '取消跳停功能',
|
trainingRemark: '取消跳停功能',
|
||||||
trainingType: '05',
|
trainingType: '05',
|
||||||
productTypes: ['01,02'], // 产品类型 01 现地 02 行调
|
productTypes: ['01', '02'], // 产品类型 01 现地 02 行调
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '06', orderNum: 1, operateCode: '503', tip: '鼠标右键菜单选择【取消跳停】' },
|
{ deviceType: '06', orderNum: 1, operateCode: '503', tip: '鼠标右键菜单选择【取消跳停】' },
|
||||||
{ deviceType: '06', orderNum: 2, operateCode: '503', tip: '鼠标左键点击【确定】按钮', val: '{11}' }
|
{ deviceType: '06', orderNum: 2, operateCode: '503', tip: '鼠标左键点击【确定】按钮', val: '{11}' }
|
||||||
@ -923,7 +923,7 @@ export const OperationList = {
|
|||||||
trainingName: '取消跳停({10}-{12} 站台)',
|
trainingName: '取消跳停({10}-{12} 站台)',
|
||||||
trainingRemark: '取消指定001号列车跳停功能',
|
trainingRemark: '取消指定001号列车跳停功能',
|
||||||
trainingType: '05',
|
trainingType: '05',
|
||||||
productTypes: ['01,02'], // 产品类型 01 现地 02 行调
|
productTypes: ['01', '02'], // 产品类型 01 现地 02 行调
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '06', orderNum: 1, operateCode: '503', tip: '鼠标右键菜单选择【取消跳停】' },
|
{ deviceType: '06', orderNum: 1, operateCode: '503', tip: '鼠标右键菜单选择【取消跳停】' },
|
||||||
{ deviceType: '06', orderNum: 2, operateCode: '5034', tip: '鼠标左键点击' },
|
{ deviceType: '06', orderNum: 2, operateCode: '5034', tip: '鼠标左键点击' },
|
||||||
@ -939,7 +939,7 @@ export const OperationList = {
|
|||||||
trainingName: '查询站台状态({10}-{12} 站台)',
|
trainingName: '查询站台状态({10}-{12} 站台)',
|
||||||
trainingRemark: '查询站台状态功能',
|
trainingRemark: '查询站台状态功能',
|
||||||
trainingType: '05',
|
trainingType: '05',
|
||||||
productTypes: ['01,02'], // 产品类型 01 现地 02 行调
|
productTypes: ['01', '02'], // 产品类型 01 现地 02 行调
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '06', orderNum: 1, operateCode: '507', tip: '鼠标右键菜单选择【站台信息】' },
|
{ deviceType: '06', orderNum: 1, operateCode: '507', tip: '鼠标右键菜单选择【站台信息】' },
|
||||||
{ deviceType: '06', orderNum: 2, operateCode: '0012', tip: '鼠标左键点击【确定】按钮' }
|
{ deviceType: '06', orderNum: 2, operateCode: '0012', tip: '鼠标左键点击【确定】按钮' }
|
||||||
@ -1064,7 +1064,7 @@ export const OperationList = {
|
|||||||
trainingName: '轨道切除({8}{9} 区段)',
|
trainingName: '轨道切除({8}{9} 区段)',
|
||||||
trainingRemark: '轨道切除功能',
|
trainingRemark: '轨道切除功能',
|
||||||
trainingType: '04',
|
trainingType: '04',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '03', orderNum: 1, operateCode: '405', tip: '鼠标右键菜单选择【轨道切除】' },
|
{ deviceType: '03', orderNum: 1, operateCode: '405', tip: '鼠标右键菜单选择【轨道切除】' },
|
||||||
{ deviceType: '03', orderNum: 2, operateCode: '405', tip: '鼠标左键点击【确定】按钮' }
|
{ deviceType: '03', orderNum: 2, operateCode: '405', tip: '鼠标左键点击【确定】按钮' }
|
||||||
@ -1078,7 +1078,7 @@ export const OperationList = {
|
|||||||
trainingName: '轨道激活({8}{9} 区段)',
|
trainingName: '轨道激活({8}{9} 区段)',
|
||||||
trainingRemark: '轨道激活功能',
|
trainingRemark: '轨道激活功能',
|
||||||
trainingType: '04',
|
trainingType: '04',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '03', orderNum: 1, operateCode: '406', tip: '鼠标右键菜单选择【轨道激活】' },
|
{ deviceType: '03', orderNum: 1, operateCode: '406', tip: '鼠标右键菜单选择【轨道激活】' },
|
||||||
{ deviceType: '03', orderNum: 2, operateCode: '406', tip: '鼠标左键点击【确定】按钮' }
|
{ deviceType: '03', orderNum: 2, operateCode: '406', tip: '鼠标左键点击【确定】按钮' }
|
||||||
@ -1092,7 +1092,7 @@ export const OperationList = {
|
|||||||
trainingName: '设置临时限速({8}{9} 区段)',
|
trainingName: '设置临时限速({8}{9} 区段)',
|
||||||
trainingRemark: '设置临时限速功能(限速值:15)',
|
trainingRemark: '设置临时限速功能(限速值:15)',
|
||||||
trainingType: '04',
|
trainingType: '04',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '03', orderNum: 1, operateCode: '407', tip: '鼠标右键菜单选择【设置临时限速】' },
|
{ deviceType: '03', orderNum: 1, operateCode: '407', tip: '鼠标右键菜单选择【设置临时限速】' },
|
||||||
{ deviceType: '03', orderNum: 2, operateCode: '4076', tip: '鼠标左键选择【限速值15】', val: '15' },
|
{ deviceType: '03', orderNum: 2, operateCode: '4076', tip: '鼠标左键选择【限速值15】', val: '15' },
|
||||||
@ -1112,7 +1112,7 @@ export const OperationList = {
|
|||||||
trainingName: '轨道切除({7} 道岔)',
|
trainingName: '轨道切除({7} 道岔)',
|
||||||
trainingRemark: '轨道切除功能',
|
trainingRemark: '轨道切除功能',
|
||||||
trainingType: '03',
|
trainingType: '03',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '02', orderNum: 1, operateCode: '111', tip: '鼠标右键菜单选择【轨道切除】' },
|
{ deviceType: '02', orderNum: 1, operateCode: '111', tip: '鼠标右键菜单选择【轨道切除】' },
|
||||||
{ deviceType: '02', orderNum: 2, operateCode: '111', tip: '鼠标左键点击【确定】按钮' }
|
{ deviceType: '02', orderNum: 2, operateCode: '111', tip: '鼠标左键点击【确定】按钮' }
|
||||||
@ -1126,7 +1126,7 @@ export const OperationList = {
|
|||||||
trainingName: '轨道激活({7} 道岔)',
|
trainingName: '轨道激活({7} 道岔)',
|
||||||
trainingRemark: '轨道激活功能',
|
trainingRemark: '轨道激活功能',
|
||||||
trainingType: '03',
|
trainingType: '03',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '02', orderNum: 1, operateCode: '112', tip: '鼠标右键菜单选择【轨道激活】' },
|
{ deviceType: '02', orderNum: 1, operateCode: '112', tip: '鼠标右键菜单选择【轨道激活】' },
|
||||||
{ deviceType: '02', orderNum: 2, operateCode: '112', tip: '鼠标左键点击【确定】按钮' }
|
{ deviceType: '02', orderNum: 2, operateCode: '112', tip: '鼠标左键点击【确定】按钮' }
|
||||||
@ -1140,7 +1140,7 @@ export const OperationList = {
|
|||||||
trainingName: '设置临时限速({7} 道岔)',
|
trainingName: '设置临时限速({7} 道岔)',
|
||||||
trainingRemark: '设置临时限速功能(限速值 35 零点西上行公里标0 - 零点西上行公里标3000)',
|
trainingRemark: '设置临时限速功能(限速值 35 零点西上行公里标0 - 零点西上行公里标3000)',
|
||||||
trainingType: '03',
|
trainingType: '03',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
// stepVOList: [
|
// stepVOList: [
|
||||||
// { deviceType: '02', orderNum: 1, operateCode: '113', tip: '鼠标右键菜单选择【设置临时限速】' },
|
// { deviceType: '02', orderNum: 1, operateCode: '113', tip: '鼠标右键菜单选择【设置临时限速】' },
|
||||||
// { deviceType: '02', orderNum: 2, operateCode: '1131', tip: '鼠标左键选择【打开会话】' },
|
// { deviceType: '02', orderNum: 2, operateCode: '1131', tip: '鼠标左键选择【打开会话】' },
|
||||||
@ -1180,7 +1180,7 @@ export const OperationList = {
|
|||||||
trainingName: '排列进路({3} 进路)',
|
trainingName: '排列进路({3} 进路)',
|
||||||
trainingRemark: '排列进路功能',
|
trainingRemark: '排列进路功能',
|
||||||
trainingType: '02',
|
trainingType: '02',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '04', orderNum: 1, operateCode: '301', tip: '鼠标右键菜单选择【排列进路】' },
|
{ deviceType: '04', orderNum: 1, operateCode: '301', tip: '鼠标右键菜单选择【排列进路】' },
|
||||||
{ deviceType: '04', orderNum: 2, operateCode: '3011', tip: '鼠标左键选择进路名称【{3}】', val: '{4}' },
|
{ deviceType: '04', orderNum: 2, operateCode: '3011', tip: '鼠标左键选择进路名称【{3}】', val: '{4}' },
|
||||||
@ -1253,7 +1253,7 @@ export const OperationList = {
|
|||||||
trainingName: '信号重开({3} 进路)',
|
trainingName: '信号重开({3} 进路)',
|
||||||
trainingRemark: '信号重开功能',
|
trainingRemark: '信号重开功能',
|
||||||
trainingType: '02',
|
trainingType: '02',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '04', orderNum: 1, operateCode: '304', tip: '鼠标右键菜单选择【信号重开】' },
|
{ deviceType: '04', orderNum: 1, operateCode: '304', tip: '鼠标右键菜单选择【信号重开】' },
|
||||||
{ deviceType: '04', orderNum: 2, operateCode: '304', tip: '鼠标左键点击【确定】按钮' }
|
{ deviceType: '04', orderNum: 2, operateCode: '304', tip: '鼠标左键点击【确定】按钮' }
|
||||||
@ -1268,7 +1268,7 @@ export const OperationList = {
|
|||||||
trainingName: '全线取消临时限速',
|
trainingName: '全线取消临时限速',
|
||||||
trainingRemark: '全线取消临时限速功能',
|
trainingRemark: '全线取消临时限速功能',
|
||||||
trainingType: '08',
|
trainingType: '08',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '10', orderNum: 1, operateCode: '800', tip: '鼠标右键菜单选择【取消全线临时限速】' },
|
{ deviceType: '10', orderNum: 1, operateCode: '800', tip: '鼠标右键菜单选择【取消全线临时限速】' },
|
||||||
{ deviceType: '10', orderNum: 2, operateCode: '8001', tip: '鼠标左键点击【打开会话】按钮' },
|
{ deviceType: '10', orderNum: 2, operateCode: '8001', tip: '鼠标左键点击【打开会话】按钮' },
|
||||||
@ -1833,7 +1833,7 @@ export const OperationList = {
|
|||||||
trainingName: '设置跳停({10}-{12}站台)',
|
trainingName: '设置跳停({10}-{12}站台)',
|
||||||
trainingRemark: '设置跳停功能',
|
trainingRemark: '设置跳停功能',
|
||||||
trainingType: '05',
|
trainingType: '05',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '06', orderNum: 1, operateCode: '502', tip: '鼠标右键菜单选择【跳停】' },
|
{ deviceType: '06', orderNum: 1, operateCode: '502', tip: '鼠标右键菜单选择【跳停】' },
|
||||||
{ deviceType: '06', orderNum: 2, operateCode: '502', tip: '鼠标左键点击【确定】按钮', val: '{11}' }
|
{ deviceType: '06', orderNum: 2, operateCode: '502', tip: '鼠标左键点击【确定】按钮', val: '{11}' }
|
||||||
@ -1847,7 +1847,7 @@ export const OperationList = {
|
|||||||
trainingName: '取消跳停({10}-{12}站台)',
|
trainingName: '取消跳停({10}-{12}站台)',
|
||||||
trainingRemark: '设置取消跳停功能',
|
trainingRemark: '设置取消跳停功能',
|
||||||
trainingType: '05',
|
trainingType: '05',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '06', orderNum: 1, operateCode: '503', tip: '鼠标右键菜单选择【取消跳停】' },
|
{ deviceType: '06', orderNum: 1, operateCode: '503', tip: '鼠标右键菜单选择【取消跳停】' },
|
||||||
{ deviceType: '06', orderNum: 2, operateCode: '503', tip: '鼠标左键点击【确定】按钮', val: '{11}' }
|
{ deviceType: '06', orderNum: 2, operateCode: '503', tip: '鼠标左键点击【确定】按钮', val: '{11}' }
|
||||||
@ -2031,7 +2031,7 @@ export const OperationList = {
|
|||||||
trainingName: ' Train detaining({10}-{12}station)',
|
trainingName: ' Train detaining({10}-{12}station)',
|
||||||
trainingRemark: 'Set the detaining function',
|
trainingRemark: 'Set the detaining function',
|
||||||
trainingType: '05',
|
trainingType: '05',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '06', orderNum: 1, operateCode: '504', tip: 'Right click to select [train detaining]' },
|
{ deviceType: '06', orderNum: 1, operateCode: '504', tip: 'Right click to select [train detaining]' },
|
||||||
{ deviceType: '06', orderNum: 2, operateCode: '504', tip: 'Left click [ok] ' }
|
{ deviceType: '06', orderNum: 2, operateCode: '504', tip: 'Left click [ok] ' }
|
||||||
@ -2045,7 +2045,7 @@ export const OperationList = {
|
|||||||
trainingName: 'Cancel train detaining({10}-{12}The platform)',
|
trainingName: 'Cancel train detaining({10}-{12}The platform)',
|
||||||
trainingRemark: 'Set cancelling detaining function',
|
trainingRemark: 'Set cancelling detaining function',
|
||||||
trainingType: '05',
|
trainingType: '05',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '06', orderNum: 1, operateCode: '505', tip: 'Right click to select [cancel train detaining]]' },
|
{ deviceType: '06', orderNum: 1, operateCode: '505', tip: 'Right click to select [cancel train detaining]]' },
|
||||||
{ deviceType: '06', orderNum: 2, operateCode: '505', tip: 'Left click [ok] ' }
|
{ deviceType: '06', orderNum: 2, operateCode: '505', tip: 'Left click [ok] ' }
|
||||||
@ -2102,7 +2102,7 @@ export const OperationList = {
|
|||||||
trainingName: 'Skip to continue moving({10}-{12}The platform)',
|
trainingName: 'Skip to continue moving({10}-{12}The platform)',
|
||||||
trainingRemark: 'Set the skip to continue moving function',
|
trainingRemark: 'Set the skip to continue moving function',
|
||||||
trainingType: '05',
|
trainingType: '05',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '06', orderNum: 1, operateCode: '502', tip: 'Right click to select [Skip to continue moving]' },
|
{ deviceType: '06', orderNum: 1, operateCode: '502', tip: 'Right click to select [Skip to continue moving]' },
|
||||||
{ deviceType: '06', orderNum: 2, operateCode: '502', tip: 'Left click [ok]', val: '{11}' }
|
{ deviceType: '06', orderNum: 2, operateCode: '502', tip: 'Left click [ok]', val: '{11}' }
|
||||||
@ -2116,7 +2116,7 @@ export const OperationList = {
|
|||||||
trainingName: 'Cancel skiping ({10}-{12}The platform)',
|
trainingName: 'Cancel skiping ({10}-{12}The platform)',
|
||||||
trainingRemark: 'Set cancelling skiping function',
|
trainingRemark: 'Set cancelling skiping function',
|
||||||
trainingType: '05',
|
trainingType: '05',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '06', orderNum: 1, operateCode: '503', tip: 'Right click to select [Cancel skiping]' },
|
{ deviceType: '06', orderNum: 1, operateCode: '503', tip: 'Right click to select [Cancel skiping]' },
|
||||||
{ deviceType: '06', orderNum: 2, operateCode: '503', tip: 'Left click [ok]', val: '{11}' }
|
{ deviceType: '06', orderNum: 2, operateCode: '503', tip: 'Left click [ok]', val: '{11}' }
|
||||||
@ -2130,7 +2130,7 @@ export const OperationList = {
|
|||||||
trainingName: ' Platform status query({10}-{12}The platform)',
|
trainingName: ' Platform status query({10}-{12}The platform)',
|
||||||
trainingRemark: 'Query platform status function',
|
trainingRemark: 'Query platform status function',
|
||||||
trainingType: '05',
|
trainingType: '05',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '06', orderNum: 1, operateCode: '507', tip: 'Right click to select [Platform status query]' },
|
{ deviceType: '06', orderNum: 1, operateCode: '507', tip: 'Right click to select [Platform status query]' },
|
||||||
{ deviceType: '06', orderNum: 2, operateCode: '0012', tip: 'Left click [ok] ' }
|
{ deviceType: '06', orderNum: 2, operateCode: '0012', tip: 'Left click [ok] ' }
|
||||||
@ -2258,7 +2258,7 @@ export const OperationList = {
|
|||||||
trainingName: 'Section fault unlocking({8}{9})',
|
trainingName: 'Section fault unlocking({8}{9})',
|
||||||
trainingRemark: 'Fault unlocking',
|
trainingRemark: 'Fault unlocking',
|
||||||
trainingType: '04',
|
trainingType: '04',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '03', orderNum: 1, operateCode: '402', tip: 'Right click to select "Section fault unlocking" ' },
|
{ deviceType: '03', orderNum: 1, operateCode: '402', tip: 'Right click to select "Section fault unlocking" ' },
|
||||||
{ deviceType: '03', orderNum: 2, operateCode: '4026', tip: 'Left click [Execute] ' },
|
{ deviceType: '03', orderNum: 2, operateCode: '4026', tip: 'Left click [Execute] ' },
|
||||||
@ -2275,7 +2275,7 @@ export const OperationList = {
|
|||||||
trainingName: 'Section resection({8}{9})',
|
trainingName: 'Section resection({8}{9})',
|
||||||
trainingRemark: 'Section resection',
|
trainingRemark: 'Section resection',
|
||||||
trainingType: '04',
|
trainingType: '04',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '03', orderNum: 1, operateCode: '405', tip: 'Right click to select [Section resection]' },
|
{ deviceType: '03', orderNum: 1, operateCode: '405', tip: 'Right click to select [Section resection]' },
|
||||||
{ deviceType: '03', orderNum: 2, operateCode: '405', tip: 'Left click [ok] ' }
|
{ deviceType: '03', orderNum: 2, operateCode: '405', tip: 'Left click [ok] ' }
|
||||||
@ -2289,7 +2289,7 @@ export const OperationList = {
|
|||||||
trainingName: 'Section activation({8}{9})',
|
trainingName: 'Section activation({8}{9})',
|
||||||
trainingRemark: 'Section activation function',
|
trainingRemark: 'Section activation function',
|
||||||
trainingType: '04',
|
trainingType: '04',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '03', orderNum: 1, operateCode: '406', tip: 'Right click to select [Section activation]' },
|
{ deviceType: '03', orderNum: 1, operateCode: '406', tip: 'Right click to select [Section activation]' },
|
||||||
{ deviceType: '03', orderNum: 2, operateCode: '406', tip: 'Left click [ok]' }
|
{ deviceType: '03', orderNum: 2, operateCode: '406', tip: 'Left click [ok]' }
|
||||||
@ -2320,7 +2320,7 @@ export const OperationList = {
|
|||||||
trainingName: 'Section blockade({8}{9})',
|
trainingName: 'Section blockade({8}{9})',
|
||||||
trainingRemark: 'Section blockade function',
|
trainingRemark: 'Section blockade function',
|
||||||
trainingType: '04',
|
trainingType: '04',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '03', orderNum: 1, operateCode: '403', tip: 'Right click to select [Section blockade]' },
|
{ deviceType: '03', orderNum: 1, operateCode: '403', tip: 'Right click to select [Section blockade]' },
|
||||||
{ deviceType: '03', orderNum: 2, operateCode: '403', tip: 'Left click [ok] ' }
|
{ deviceType: '03', orderNum: 2, operateCode: '403', tip: 'Left click [ok] ' }
|
||||||
@ -2334,7 +2334,7 @@ export const OperationList = {
|
|||||||
trainingName: 'Section unblockade({8}{9})',
|
trainingName: 'Section unblockade({8}{9})',
|
||||||
trainingRemark: 'Section unblockade function',
|
trainingRemark: 'Section unblockade function',
|
||||||
trainingType: '04',
|
trainingType: '04',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '03', orderNum: 1, operateCode: '404', tip: 'Right click to select [Section unblockade]' },
|
{ deviceType: '03', orderNum: 1, operateCode: '404', tip: 'Right click to select [Section unblockade]' },
|
||||||
{ deviceType: '03', orderNum: 2, operateCode: '4041', tip: 'Left click [Execute]' },
|
{ deviceType: '03', orderNum: 2, operateCode: '4041', tip: 'Left click [Execute]' },
|
||||||
@ -2351,7 +2351,7 @@ export const OperationList = {
|
|||||||
trainingName: 'Set speed limit on the section({8}{9})',
|
trainingName: 'Set speed limit on the section({8}{9})',
|
||||||
trainingRemark: 'Set speed limit on the section (speed limit value: 5)',
|
trainingRemark: 'Set speed limit on the section (speed limit value: 5)',
|
||||||
trainingType: '04',
|
trainingType: '04',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '03', orderNum: 1, operateCode: '407', tip: 'Right click to select [Set speed limit on the section]' },
|
{ deviceType: '03', orderNum: 1, operateCode: '407', tip: 'Right click to select [Set speed limit on the section]' },
|
||||||
{ deviceType: '03', orderNum: 2, operateCode: '4076', tip: 'Left click to select [speed limit 5] ', val: '5' },
|
{ deviceType: '03', orderNum: 2, operateCode: '4076', tip: 'Left click to select [speed limit 5] ', val: '5' },
|
||||||
@ -2370,7 +2370,7 @@ export const OperationList = {
|
|||||||
trainingName: 'Cancel speed limit on the section({8}{9})',
|
trainingName: 'Cancel speed limit on the section({8}{9})',
|
||||||
trainingRemark: 'Cancel speed limit on the section',
|
trainingRemark: 'Cancel speed limit on the section',
|
||||||
trainingType: '04',
|
trainingType: '04',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '03', orderNum: 1, operateCode: '408', tip: 'Right click to select [Cancel speed limit on the section]' },
|
{ deviceType: '03', orderNum: 1, operateCode: '408', tip: 'Right click to select [Cancel speed limit on the section]' },
|
||||||
{ deviceType: '03', orderNum: 2, operateCode: '4081', tip: 'Left click [Execute]' },
|
{ deviceType: '03', orderNum: 2, operateCode: '4081', tip: 'Left click [Execute]' },
|
||||||
@ -2389,7 +2389,7 @@ export const OperationList = {
|
|||||||
trainingName: 'Turnout single lock({7})',
|
trainingName: 'Turnout single lock({7})',
|
||||||
trainingRemark: 'Turnout single lock function',
|
trainingRemark: 'Turnout single lock function',
|
||||||
trainingType: '03',
|
trainingType: '03',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '02', orderNum: 1, operateCode: '103', tip: 'Right click to select [Turnout single lock]' },
|
{ deviceType: '02', orderNum: 1, operateCode: '103', tip: 'Right click to select [Turnout single lock]' },
|
||||||
{ deviceType: '02', orderNum: 2, operateCode: '103', tip: 'Left click [ok] ' }
|
{ deviceType: '02', orderNum: 2, operateCode: '103', tip: 'Left click [ok] ' }
|
||||||
@ -2403,7 +2403,7 @@ export const OperationList = {
|
|||||||
trainingName: 'Turnout single release({7})',
|
trainingName: 'Turnout single release({7})',
|
||||||
trainingRemark: 'Turnout single release function',
|
trainingRemark: 'Turnout single release function',
|
||||||
trainingType: '03',
|
trainingType: '03',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '02', orderNum: 1, operateCode: '104', tip: 'Right click to select [Turnout single release]' },
|
{ deviceType: '02', orderNum: 1, operateCode: '104', tip: 'Right click to select [Turnout single release]' },
|
||||||
{ deviceType: '02', orderNum: 2, operateCode: '1041', tip: 'Left click [Execute]' },
|
{ deviceType: '02', orderNum: 2, operateCode: '1041', tip: 'Left click [Execute]' },
|
||||||
@ -2420,7 +2420,7 @@ export const OperationList = {
|
|||||||
trainingName: 'Turnout section closure({7})',
|
trainingName: 'Turnout section closure({7})',
|
||||||
trainingRemark: 'Turnout section closure ',
|
trainingRemark: 'Turnout section closure ',
|
||||||
trainingType: '03',
|
trainingType: '03',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '02', orderNum: 1, operateCode: '105', tip: 'Right click to select [Turnout section closure]' },
|
{ deviceType: '02', orderNum: 1, operateCode: '105', tip: 'Right click to select [Turnout section closure]' },
|
||||||
{ deviceType: '02', orderNum: 2, operateCode: '105', tip: 'Left click [ok] ' }
|
{ deviceType: '02', orderNum: 2, operateCode: '105', tip: 'Left click [ok] ' }
|
||||||
@ -2434,7 +2434,7 @@ export const OperationList = {
|
|||||||
trainingName: 'Turnout section unsealing({7})',
|
trainingName: 'Turnout section unsealing({7})',
|
||||||
trainingRemark: 'Turnout section unsealing function',
|
trainingRemark: 'Turnout section unsealing function',
|
||||||
trainingType: '03',
|
trainingType: '03',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '02', orderNum: 1, operateCode: '106', tip: 'Right click to select [Turnout section unsealing]' },
|
{ deviceType: '02', orderNum: 1, operateCode: '106', tip: 'Right click to select [Turnout section unsealing]' },
|
||||||
{ deviceType: '02', orderNum: 2, operateCode: '1061', tip: 'Left click [Execute]' },
|
{ deviceType: '02', orderNum: 2, operateCode: '1061', tip: 'Left click [Execute]' },
|
||||||
@ -2451,7 +2451,7 @@ export const OperationList = {
|
|||||||
trainingName: 'Switch rotation({7})',
|
trainingName: 'Switch rotation({7})',
|
||||||
trainingRemark: 'Switch rotation({15}turn{16})',
|
trainingRemark: 'Switch rotation({15}turn{16})',
|
||||||
trainingType: '03',
|
trainingType: '03',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '02', orderNum: 1, operateCode: '107', tip: 'Right click to select [Switch rotation]' },
|
{ deviceType: '02', orderNum: 1, operateCode: '107', tip: 'Right click to select [Switch rotation]' },
|
||||||
{ deviceType: '02', orderNum: 2, operateCode: '107', tip: 'Left click [ok] ' }
|
{ deviceType: '02', orderNum: 2, operateCode: '107', tip: 'Left click [ok] ' }
|
||||||
@ -2465,7 +2465,7 @@ export const OperationList = {
|
|||||||
trainingName: 'Switch section fault unlocking({7})',
|
trainingName: 'Switch section fault unlocking({7})',
|
||||||
trainingRemark: 'Switch section fault unlocking function',
|
trainingRemark: 'Switch section fault unlocking function',
|
||||||
trainingType: '03',
|
trainingType: '03',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '02', orderNum: 1, operateCode: '109', tip: 'Right click to select [switch section fault unlocking]' },
|
{ deviceType: '02', orderNum: 1, operateCode: '109', tip: 'Right click to select [switch section fault unlocking]' },
|
||||||
{ deviceType: '02', orderNum: 2, operateCode: '1091', tip: 'Left click [Execute]' },
|
{ deviceType: '02', orderNum: 2, operateCode: '1091', tip: 'Left click [Execute]' },
|
||||||
@ -2499,7 +2499,7 @@ export const OperationList = {
|
|||||||
trainingName: 'Section resection({7})',
|
trainingName: 'Section resection({7})',
|
||||||
trainingRemark: 'Section resection',
|
trainingRemark: 'Section resection',
|
||||||
trainingType: '03',
|
trainingType: '03',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '02', orderNum: 1, operateCode: '111', tip: 'Right click to select [Section resection]' },
|
{ deviceType: '02', orderNum: 1, operateCode: '111', tip: 'Right click to select [Section resection]' },
|
||||||
{ deviceType: '02', orderNum: 2, operateCode: '111', tip: 'Left click [ok]' }
|
{ deviceType: '02', orderNum: 2, operateCode: '111', tip: 'Left click [ok]' }
|
||||||
@ -2513,7 +2513,7 @@ export const OperationList = {
|
|||||||
trainingName: 'Section activation({7})',
|
trainingName: 'Section activation({7})',
|
||||||
trainingRemark: 'Section activation function',
|
trainingRemark: 'Section activation function',
|
||||||
trainingType: '03',
|
trainingType: '03',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '02', orderNum: 1, operateCode: '112', tip: 'Right click to select [Section activation]' },
|
{ deviceType: '02', orderNum: 1, operateCode: '112', tip: 'Right click to select [Section activation]' },
|
||||||
{ deviceType: '02', orderNum: 2, operateCode: '112', tip: 'Left click [ok] ' }
|
{ deviceType: '02', orderNum: 2, operateCode: '112', tip: 'Left click [ok] ' }
|
||||||
@ -2527,7 +2527,7 @@ export const OperationList = {
|
|||||||
trainingName: 'Set speed limit on the section({7})',
|
trainingName: 'Set speed limit on the section({7})',
|
||||||
trainingRemark: 'Set speed limit on the section (speed limit value: 5)',
|
trainingRemark: 'Set speed limit on the section (speed limit value: 5)',
|
||||||
trainingType: '03',
|
trainingType: '03',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '02', orderNum: 1, operateCode: '113', tip: 'Right click to select [Set speed limit on the section]' },
|
{ deviceType: '02', orderNum: 1, operateCode: '113', tip: 'Right click to select [Set speed limit on the section]' },
|
||||||
{ deviceType: '02', orderNum: 2, operateCode: '1136', tip: 'Left click to select [speed limit 5] ', val: '5' },
|
{ deviceType: '02', orderNum: 2, operateCode: '1136', tip: 'Left click to select [speed limit 5] ', val: '5' },
|
||||||
@ -2546,7 +2546,7 @@ export const OperationList = {
|
|||||||
trainingName: 'Cancel speed limit on the section({7})',
|
trainingName: 'Cancel speed limit on the section({7})',
|
||||||
trainingRemark: 'Cancel speed limit on the section',
|
trainingRemark: 'Cancel speed limit on the section',
|
||||||
trainingType: '03',
|
trainingType: '03',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '02', orderNum: 1, operateCode: '114', tip: 'Right click to select [Cancel speed limit on the section]' },
|
{ deviceType: '02', orderNum: 1, operateCode: '114', tip: 'Right click to select [Cancel speed limit on the section]' },
|
||||||
{ deviceType: '02', orderNum: 2, operateCode: '1141', tip: 'Left click [Execute]' },
|
{ deviceType: '02', orderNum: 2, operateCode: '1141', tip: 'Left click [Execute]' },
|
||||||
@ -2565,7 +2565,7 @@ export const OperationList = {
|
|||||||
trainingName: 'Route selection({3})',
|
trainingName: 'Route selection({3})',
|
||||||
trainingRemark: 'Route selection',
|
trainingRemark: 'Route selection',
|
||||||
trainingType: '02',
|
trainingType: '02',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '04', orderNum: 1, operateCode: '301', tip: 'Right click to select [Route selection]' },
|
{ deviceType: '04', orderNum: 1, operateCode: '301', tip: 'Right click to select [Route selection]' },
|
||||||
{ deviceType: '04', orderNum: 2, operateCode: '3011', tip: 'Left click to select the route name【{3}】', val: '{4}' },
|
{ deviceType: '04', orderNum: 2, operateCode: '3011', tip: 'Left click to select the route name【{3}】', val: '{4}' },
|
||||||
@ -2610,7 +2610,7 @@ export const OperationList = {
|
|||||||
trainingName: 'Signal closure({5})',
|
trainingName: 'Signal closure({5})',
|
||||||
trainingRemark: 'Signal closure',
|
trainingRemark: 'Signal closure',
|
||||||
trainingType: '02',
|
trainingType: '02',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '04', orderNum: 1, operateCode: '306', tip: 'Right click to select [Signal closure]' },
|
{ deviceType: '04', orderNum: 1, operateCode: '306', tip: 'Right click to select [Signal closure]' },
|
||||||
{ deviceType: '04', orderNum: 2, operateCode: '306', tip: 'Left click [ok] ' }
|
{ deviceType: '04', orderNum: 2, operateCode: '306', tip: 'Left click [ok] ' }
|
||||||
@ -2624,7 +2624,7 @@ export const OperationList = {
|
|||||||
trainingName: 'Signal unsealing({5})',
|
trainingName: 'Signal unsealing({5})',
|
||||||
trainingRemark: 'Signal unsealing',
|
trainingRemark: 'Signal unsealing',
|
||||||
trainingType: '02',
|
trainingType: '02',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '04', orderNum: 1, operateCode: '307', tip: 'Right click to select [Signal unsealing]' },
|
{ deviceType: '04', orderNum: 1, operateCode: '307', tip: 'Right click to select [Signal unsealing]' },
|
||||||
{ deviceType: '04', orderNum: 2, operateCode: '3071', tip: 'Left click [Execute]' },
|
{ deviceType: '04', orderNum: 2, operateCode: '3071', tip: 'Left click [Execute]' },
|
||||||
@ -2642,7 +2642,7 @@ export const OperationList = {
|
|||||||
trainingName: 'The signal light turns red({3})',
|
trainingName: 'The signal light turns red({3})',
|
||||||
trainingRemark: 'The signal light turns red',
|
trainingRemark: 'The signal light turns red',
|
||||||
trainingType: '02',
|
trainingType: '02',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '04', orderNum: 1, operateCode: '313', tip: 'Right click to select [The signal light turns red]' },
|
{ deviceType: '04', orderNum: 1, operateCode: '313', tip: 'Right click to select [The signal light turns red]' },
|
||||||
{ deviceType: '04', orderNum: 2, operateCode: '313', tip: 'Left click [ok]' },
|
{ deviceType: '04', orderNum: 2, operateCode: '313', tip: 'Left click [ok]' },
|
||||||
@ -2657,7 +2657,7 @@ export const OperationList = {
|
|||||||
trainingName: 'Signal reopen({3})',
|
trainingName: 'Signal reopen({3})',
|
||||||
trainingRemark: 'Signal reopen',
|
trainingRemark: 'Signal reopen',
|
||||||
trainingType: '02',
|
trainingType: '02',
|
||||||
productTypes: ['01,02'],
|
productTypes: ['01', '02'],
|
||||||
stepVOList: [
|
stepVOList: [
|
||||||
{ deviceType: '04', orderNum: 1, operateCode: '304', tip: 'Right click to select [Signal reopen]' },
|
{ deviceType: '04', orderNum: 1, operateCode: '304', tip: 'Right click to select [Signal reopen]' },
|
||||||
{ deviceType: '04', orderNum: 2, operateCode: '304', tip: 'Left click [ok]' },
|
{ deviceType: '04', orderNum: 2, operateCode: '304', tip: 'Left click [ok]' },
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -3,9 +3,9 @@ export function getBaseUrl() {
|
|||||||
let BASE_API;
|
let BASE_API;
|
||||||
if (process.env.NODE_ENV === 'development') {
|
if (process.env.NODE_ENV === 'development') {
|
||||||
// BASE_API = 'https://joylink.club/jlcloud';
|
// BASE_API = 'https://joylink.club/jlcloud';
|
||||||
BASE_API = 'https://test.joylink.club/jlcloud';
|
// BASE_API = 'https://test.joylink.club/jlcloud';
|
||||||
// BASE_API = 'http://192.168.3.5:9000'; // 袁琪
|
// BASE_API = 'http://192.168.3.5:9000'; // 袁琪
|
||||||
// BASE_API = 'http://192.168.3.6:9000'; // 旭强
|
BASE_API = 'http://192.168.3.6:9000'; // 旭强
|
||||||
// BASE_API = 'http://192.168.3.41:9000'; // 王兴杰
|
// BASE_API = 'http://192.168.3.41:9000'; // 王兴杰
|
||||||
} else {
|
} else {
|
||||||
BASE_API = process.env.VUE_APP_BASE_API;
|
BASE_API = process.env.VUE_APP_BASE_API;
|
||||||
|
@ -95,12 +95,13 @@ export default {
|
|||||||
switch (obj.type) {
|
switch (obj.type) {
|
||||||
case 'scriptDesign': {
|
case 'scriptDesign': {
|
||||||
setSessionStorage('designType', 'scriptDesign');
|
setSessionStorage('designType', 'scriptDesign');
|
||||||
this.$router.push({ path: `${UrlConfig.design.scriptHome}/${obj.mapId}?skinCode=${obj.skinCode}` });
|
this.$router.push({ path: `${UrlConfig.design.scriptHome}/${obj.mapId}` });
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'lessonDesign': {
|
case 'lessonDesign': {
|
||||||
setSessionStorage('designType', 'lessonDesign');
|
setSessionStorage('designType', 'lessonDesign');
|
||||||
this.$router.push({ path: `${UrlConfig.design.lessonHome}/${obj.mapId}/${obj.skinCode}`, query: {cityCode: obj.cityCode} });
|
// /${obj.skinCode}
|
||||||
|
this.$router.push({ path: `${UrlConfig.design.lessonHome}/${obj.mapId}`, query: {cityCode: obj.cityCode} });
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'runPlanDesign': {
|
case 'runPlanDesign': {
|
||||||
|
@ -37,7 +37,8 @@ export default {
|
|||||||
mapIdList: [],
|
mapIdList: [],
|
||||||
trainingTypeList: [],
|
trainingTypeList: [],
|
||||||
trainingOperateTypeMap: {},
|
trainingOperateTypeMap: {},
|
||||||
placeholderList: []
|
placeholderList: [],
|
||||||
|
productTypesList:[]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -49,12 +50,14 @@ export default {
|
|||||||
{ prop: 'mapId', label: this.$t('lesson.mapName'), type: 'select', required: true, options: this.mapIdList, disabled: true },
|
{ prop: 'mapId', label: this.$t('lesson.mapName'), type: 'select', required: true, options: this.mapIdList, disabled: true },
|
||||||
{ prop: 'trainingType', label: this.$t('lesson.trainingType'), type: 'select', required: true, options: this.trainingTypeList, disabled: !isAdd, change: true, onChange: this.changeList },
|
{ prop: 'trainingType', label: this.$t('lesson.trainingType'), type: 'select', required: true, options: this.trainingTypeList, disabled: !isAdd, change: true, onChange: this.changeList },
|
||||||
{ prop: 'operateType', label: this.$t('lesson.operationType'), type: 'select', required: true, options: this.trainingOperateTypeMap[this.formModel.trainingType], disabled: !isAdd },
|
{ prop: 'operateType', label: this.$t('lesson.operationType'), type: 'select', required: true, options: this.trainingOperateTypeMap[this.formModel.trainingType], disabled: !isAdd },
|
||||||
|
{ prop: 'productTypes', label: this.$t('lesson.productType'), type: 'select', multiple: true, required: true, options: this.productTypesList, disabled: !isAdd},
|
||||||
{ label: '', type: 'button', options: this.placeholderList, style: 'margin-bottom: 0; margin-top: -10px;', typeBtn: 'info', click: this.addTrainName },
|
{ label: '', type: 'button', options: this.placeholderList, style: 'margin-bottom: 0; margin-top: -10px;', typeBtn: 'info', click: this.addTrainName },
|
||||||
{ prop: 'trainingName', label: this.$t('lesson.trainingName'), type: 'text', required: true, rightWidth: true, tooltip: true, info: this.$t('lesson.tipNamePlaceholderInfo') },
|
{ prop: 'trainingName', label: this.$t('lesson.trainingName'), type: 'text', required: true, rightWidth: true, tooltip: true, info: this.$t('lesson.tipNamePlaceholderInfo') },
|
||||||
{ prop: 'minDuration', label: this.$t('lesson.minDuration'), type: 'number', required: true, min:1},
|
{ prop: 'minDuration', label: this.$t('lesson.minDuration'), type: 'number', required: true, min:1},
|
||||||
{ prop: 'maxDuration', label: this.$t('lesson.maxDuration'), type: 'number', required: true, min:1},
|
{ prop: 'maxDuration', label: this.$t('lesson.maxDuration'), type: 'number', required: true, min:1},
|
||||||
{ label: '', type: 'button', options: this.placeholderList, style: 'margin-bottom: 0; margin-top: -10px;', typeBtn: 'info', click: this.addTrainRemark },
|
{ label: '', type: 'button', options: this.placeholderList, style: 'margin-bottom: 0; margin-top: -10px;', typeBtn: 'info', click: this.addTrainRemark },
|
||||||
{ prop: 'trainingRemark', label: this.$t('lesson.trainingRemark'), type: 'textarea', required: true, tooltip: true, info: this.$t('lesson.tipExplainPlaceholderInfo') }
|
{ prop: 'trainingRemark', label: this.$t('lesson.trainingRemark'), type: 'textarea', required: true, tooltip: true, info: this.$t('lesson.tipExplainPlaceholderInfo') }
|
||||||
|
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
return form;
|
return form;
|
||||||
@ -70,6 +73,9 @@ export default {
|
|||||||
operateType: [
|
operateType: [
|
||||||
{ required: true, message: this.$t('rules.inputOperationType'), trigger: 'change' }
|
{ required: true, message: this.$t('rules.inputOperationType'), trigger: 'change' }
|
||||||
],
|
],
|
||||||
|
productTypes:[
|
||||||
|
{ required: true, message: this.$t('rules.productTypeInput'), trigger: 'change' }
|
||||||
|
],
|
||||||
mapId: [
|
mapId: [
|
||||||
{ required: true, message: this.$t('rules.selectMapName'), trigger: 'change' }
|
{ required: true, message: this.$t('rules.selectMapName'), trigger: 'change' }
|
||||||
],
|
],
|
||||||
@ -93,13 +99,18 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
created() {
|
||||||
this.init();
|
this.init();
|
||||||
},
|
},
|
||||||
|
// beforeupdate(data) {
|
||||||
|
// this.$refs.dataform.clearValidate();
|
||||||
|
// },
|
||||||
methods: {
|
methods: {
|
||||||
init() {
|
init() {
|
||||||
// 获取地图列表
|
// 获取地图列表
|
||||||
|
// this.$refs.dataform.resetForm();
|
||||||
this.mapIdList = [];
|
this.mapIdList = [];
|
||||||
|
this.productTypesList = [{ value:'01', label:'现地'}, {value:'02', label:'行调'}];
|
||||||
listPublishMap().then(response => {
|
listPublishMap().then(response => {
|
||||||
this.mapIdList = response.data.map(item => {
|
this.mapIdList = response.data.map(item => {
|
||||||
const params = {};
|
const params = {};
|
||||||
@ -186,6 +197,7 @@ export default {
|
|||||||
// 获取操作占位列表
|
// 获取操作占位列表
|
||||||
const res = await getPlaceholderList({ trainingType: data.trainingType });
|
const res = await getPlaceholderList({ trainingType: data.trainingType });
|
||||||
this.placeholderList = res.data;
|
this.placeholderList = res.data;
|
||||||
|
debugger;
|
||||||
this.formModel = {
|
this.formModel = {
|
||||||
id: data.id,
|
id: data.id,
|
||||||
trainingName: this.repliceName(data.trainingName, this.placeholderList),
|
trainingName: this.repliceName(data.trainingName, this.placeholderList),
|
||||||
@ -198,9 +210,10 @@ export default {
|
|||||||
trainingRemark: this.repliceName(data.trainingRemark, this.placeholderList)
|
trainingRemark: this.repliceName(data.trainingRemark, this.placeholderList)
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
this.formModel = {
|
this.formModel.mapId = this.$route.query.mapId;
|
||||||
mapId: this.$route.query.mapId
|
// this.formModel = {
|
||||||
};
|
// mapId: this.$route.query.mapId
|
||||||
|
// };
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
repliceName(fieldValue, enumList) {
|
repliceName(fieldValue, enumList) {
|
||||||
@ -237,6 +250,7 @@ export default {
|
|||||||
},
|
},
|
||||||
create() {
|
create() {
|
||||||
const self = this;
|
const self = this;
|
||||||
|
this.loading = true;
|
||||||
this.placeholderList.forEach(item => {
|
this.placeholderList.forEach(item => {
|
||||||
if (this.formModel.trainingName.includes(`{${item.name}}`)) {
|
if (this.formModel.trainingName.includes(`{${item.name}}`)) {
|
||||||
const name = this.formModel.trainingName.replace(`{${item.name}}`, `{${item.id}}`);
|
const name = this.formModel.trainingName.replace(`{${item.name}}`, `{${item.id}}`);
|
||||||
@ -248,7 +262,6 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this.loading = true;
|
|
||||||
postTrainingRulesData(this.formModel).then(response => {
|
postTrainingRulesData(this.formModel).then(response => {
|
||||||
self.loading = false;
|
self.loading = false;
|
||||||
self.$message.success(this.$t('lesson.createOperateSuccess'));
|
self.$message.success(this.$t('lesson.createOperateSuccess'));
|
||||||
@ -291,9 +304,11 @@ export default {
|
|||||||
mapId: '',
|
mapId: '',
|
||||||
minDuration: '',
|
minDuration: '',
|
||||||
maxDuration: '',
|
maxDuration: '',
|
||||||
trainingRemark: ''
|
trainingRemark: '',
|
||||||
|
productTypes:[]
|
||||||
};
|
};
|
||||||
this.$refs.dataform.resetForm();
|
this.$refs.dataform.resetForm();
|
||||||
|
// this.$refs.dataform.clearValidate();
|
||||||
this.dialogVisible = false;
|
this.dialogVisible = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -287,7 +287,6 @@ export default {
|
|||||||
|
|
||||||
addAutoTraining(data).then(response => {
|
addAutoTraining(data).then(response => {
|
||||||
this.$message.success(this.$t('tip.automaticGenerationTrainingSuccess'));
|
this.$message.success(this.$t('tip.automaticGenerationTrainingSuccess'));
|
||||||
debugger;
|
|
||||||
this.$emit('refresh');
|
this.$emit('refresh');
|
||||||
this.close();
|
this.close();
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
@ -1,34 +1,32 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-card>
|
<!-- <el-card> -->
|
||||||
<div v-if="lessonName" slot="header" style="text-align: center;">
|
<!-- <div v-if="lessonName" slot="header" style="text-align: center;">
|
||||||
<b>{{ $t('publish.lessonName') }}: {{ lessonName }}</b>
|
<b>{{ $t('publish.lessonName') }}: {{ lessonName }}</b>
|
||||||
|
</div> -->
|
||||||
|
<div class="exam-box">
|
||||||
|
<el-steps class="steps" :active="display">
|
||||||
|
<el-step :title="$t('publish.testDefinitionMaking')" icon="el-icon-edit" />
|
||||||
|
<el-step :title="$t('publish.examRuleMaking')" icon="el-icon-setting" />
|
||||||
|
</el-steps>
|
||||||
|
<div class="joylink-card forms">
|
||||||
|
<template v-if="display == 1" class="definition">
|
||||||
|
<exam-from ref="exam" @definition="definition" />
|
||||||
|
</template>
|
||||||
|
<template v-else class="rule">
|
||||||
|
<rule-from ref="rule" :course="course" @regulation="regulation" />
|
||||||
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<div class="exam-box" :style="{ height: height +'px' }">
|
<div class="draft">
|
||||||
<el-scrollbar wrap-class="scrollbar-wrapper" style="">
|
<el-button-group>
|
||||||
<el-steps class="steps" :active="display">
|
<el-button v-if="isPrevStep" type="primary" @click="prevStep">{{ this.$t('global.lastStep') }}</el-button>
|
||||||
<el-step :title="$t('publish.testDefinitionMaking')" icon="el-icon-edit" />
|
<el-button v-if="isNextStep" type="primary" @click="nextStep">{{ this.$t('global.nextStep') }}</el-button>
|
||||||
<el-step :title="$t('publish.examRuleMaking')" icon="el-icon-setting" />
|
<el-button v-if="isUpdate" type="warning" @click="update">{{ $t('global.update') }}</el-button>
|
||||||
</el-steps>
|
<el-button v-if="isCreate" type="primary" @click="create">{{ $t('global.create') }}</el-button>
|
||||||
<el-card class="forms">
|
<el-button type="primary" @click="turnback">{{ $t('global.back') }}</el-button>
|
||||||
<template v-if="display == 1" class="definition">
|
</el-button-group>
|
||||||
<exam-from ref="exam" :height="height-260" @definition="definition" />
|
|
||||||
</template>
|
|
||||||
<template v-else class="rule">
|
|
||||||
<rule-from ref="rule" :course="course" :height="height-300" @regulation="regulation" />
|
|
||||||
</template>
|
|
||||||
</el-card>
|
|
||||||
<div class="draft">
|
|
||||||
<el-button-group>
|
|
||||||
<el-button v-if="isPrevStep" type="primary" @click="prevStep">{{ this.$t('global.lastStep') }}</el-button>
|
|
||||||
<el-button v-if="isNextStep" type="primary" @click="nextStep">{{ this.$t('global.nextStep') }}</el-button>
|
|
||||||
<el-button v-if="isUpdate" type="warning" @click="update">{{ $t('global.update') }}</el-button>
|
|
||||||
<el-button v-if="isCreate" type="primary" @click="create">{{ $t('global.create') }}</el-button>
|
|
||||||
<el-button type="primary" @click="turnback">{{ $t('global.back') }}</el-button>
|
|
||||||
</el-button-group>
|
|
||||||
</div>
|
|
||||||
</el-scrollbar>
|
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</div>
|
||||||
|
<!-- </el-card> -->
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@ -37,85 +35,83 @@ import RuleFrom from './rule';
|
|||||||
import ExamFrom from './examFrom';
|
import ExamFrom from './examFrom';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ExamRule',
|
name: 'ExamRule',
|
||||||
components: {
|
components: {
|
||||||
ExamFrom,
|
ExamFrom,
|
||||||
RuleFrom
|
RuleFrom
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
display: 1,
|
display: 1,
|
||||||
course: {},
|
course: {},
|
||||||
lessonName: '',
|
// lessonName: '',
|
||||||
formData: {}
|
formData: {}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
isPrevStep() {
|
isPrevStep() {
|
||||||
return this.display == 2;
|
return this.display == 2;
|
||||||
},
|
},
|
||||||
isNextStep() {
|
isNextStep() {
|
||||||
return this.display == 1 && this.$route.params.mode != 'edit';
|
return this.display == 1 && this.$route.params.mode != 'edit';
|
||||||
},
|
},
|
||||||
isUpdate() {
|
isUpdate() {
|
||||||
return this.display == 1 && this.$route.params.mode == 'edit';
|
return this.display == 1 && this.$route.params.mode == 'edit';
|
||||||
},
|
},
|
||||||
isCreate() {
|
isCreate() {
|
||||||
return this.display == 2;
|
return this.display == 2;
|
||||||
},
|
}
|
||||||
height() {
|
},
|
||||||
return /\/exam\//.test(`${this.$route.path}`)? this.$store.state.app.height - 92: this.$store.state.app.height - 65;
|
mounted() {
|
||||||
}
|
this.loadInitData();
|
||||||
},
|
},
|
||||||
mounted() {
|
methods: {
|
||||||
this.loadInitData();
|
loadInitData() {
|
||||||
},
|
getPublishLessonList().then(response => {
|
||||||
methods: {
|
this.OrganizationList = response.data;
|
||||||
loadInitData() {
|
// this.OrganizationList.forEach(elem => {
|
||||||
getPublishLessonList().then(response => {
|
// if (elem.id == this.$route.params.lessonId) {
|
||||||
this.OrganizationList = response.data;
|
// this.lessonName = elem.name;
|
||||||
this.OrganizationList.forEach(elem => {
|
// }
|
||||||
if (elem.id == this.$route.params.lessonId) {
|
// });
|
||||||
this.lessonName = elem.name;
|
});
|
||||||
}
|
},
|
||||||
});
|
definition(data) {
|
||||||
});
|
this.course = data;
|
||||||
},
|
this.formData = {};
|
||||||
definition(data) {
|
this.display = 2;
|
||||||
this.course = data;
|
},
|
||||||
this.formData = {};
|
regulation(data) {
|
||||||
this.display = 2;
|
this.formData = data;
|
||||||
},
|
this.display = 1;
|
||||||
regulation(data) {
|
this.$nextTick(() => {
|
||||||
this.formData = data;
|
if (this.$refs.exam) {
|
||||||
this.display = 1;
|
this.$refs.exam.setData(this.formData);
|
||||||
this.$nextTick(() => {
|
}
|
||||||
if (this.$refs.exam) {
|
});
|
||||||
this.$refs.exam.setData(this.formData);
|
},
|
||||||
}
|
prevStep() {
|
||||||
});
|
this.$refs.rule.regulation();
|
||||||
},
|
},
|
||||||
prevStep() {
|
nextStep() {
|
||||||
this.$refs.rule.regulation();
|
this.$refs.exam.submitForm();
|
||||||
},
|
},
|
||||||
nextStep() {
|
update() {
|
||||||
this.$refs.exam.submitForm();
|
this.$refs.exam.updateForm();
|
||||||
},
|
},
|
||||||
update() {
|
create() {
|
||||||
this.$refs.exam.updateForm();
|
this.$refs.rule.creatOk();
|
||||||
},
|
},
|
||||||
create() {
|
turnback() {
|
||||||
this.$refs.rule.creatOk();
|
this.$router.go(-1);
|
||||||
},
|
}
|
||||||
turnback() {
|
}
|
||||||
this.$router.go(-1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style rel="stylesheet/scss" lang="scss" scoped>
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
||||||
.exam-box {
|
.exam-box {
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
/deep/ {
|
/deep/ {
|
||||||
.el-step__icon.is-icon {
|
.el-step__icon.is-icon {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<el-dialog v-dialogDrag title="复制地图为" :visible.sync="dialogVisible" width="30%" center>
|
<el-dialog v-dialogDrag title="复制地图为" :visible.sync="dialogVisible" width="30%" center>
|
||||||
<data-form ref="dataform" :form="form" :form-model="formModel" :rules="rules" />
|
<data-form ref="dataform" :form="form" :form-model="formModel" :rules="rules" />
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
<el-button type="primary" @click="doSave">{{ $t('global.confirm') }}</el-button>
|
<el-button v-loading="loading" type="primary" @click="doSave">{{ $t('global.confirm') }}</el-button>
|
||||||
<el-button @click="dialogVisible = false">{{ $t('global.cancel') }}</el-button>
|
<el-button @click="dialogVisible = false">{{ $t('global.cancel') }}</el-button>
|
||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
@ -19,6 +19,7 @@ export default {
|
|||||||
name: '',
|
name: '',
|
||||||
copyOtherData: false
|
copyOtherData: false
|
||||||
},
|
},
|
||||||
|
loading: false,
|
||||||
mapId: '',
|
mapId: '',
|
||||||
form:{
|
form:{
|
||||||
labelWidth: '100px',
|
labelWidth: '100px',
|
||||||
@ -46,10 +47,18 @@ export default {
|
|||||||
this.mapId = row.id;
|
this.mapId = row.id;
|
||||||
},
|
},
|
||||||
doSave() {
|
doSave() {
|
||||||
|
if (this.loading) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.loading = true;
|
||||||
copyMapAs(this.mapId, this.formModel).then(resp =>{
|
copyMapAs(this.mapId, this.formModel).then(resp =>{
|
||||||
this.$message.success('复制地图成功!');
|
this.$message.success('复制地图成功!');
|
||||||
|
this.loading = false;
|
||||||
this.dialogVisible = false;
|
this.dialogVisible = false;
|
||||||
this.$emit('refresh');
|
this.$emit('refresh');
|
||||||
|
}).catch(() => {
|
||||||
|
this.loading = false;
|
||||||
|
this.$messageBox(`复制地图失败!`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog v-dialogDrag title="设置归属项目" :visible.sync="dialogVisible" width="30%" center>
|
<el-dialog v-dialogDrag :title="this.$t('publish.setTheProject')" :visible.sync="dialogVisible" width="30%" center>
|
||||||
<el-form ref="form" :model="formModel" label-width="100px" label-position="left">
|
<el-form ref="form" :model="formModel" label-width="100px" label-position="left">
|
||||||
<el-form-item label="地图名称">
|
<el-form-item :label="this.$t('publish.mapName')">
|
||||||
<span>{{ formModel.name }}</span>
|
<span>{{ formModel.name }}</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="是否归属项目" prop="project">
|
<el-form-item :label="this.$t('publish.whetherItBelongsToTheProject')" prop="project">
|
||||||
<el-radio-group v-model="formModel.project" @change="changeProject">
|
<el-radio-group v-model="formModel.project" @change="changeProject">
|
||||||
<el-radio :label="booleanValue.t">是</el-radio>
|
<el-radio :label="booleanValue.t">{{ $t('publish.trialYes') }}</el-radio>
|
||||||
<el-radio :label="booleanValue.f">否</el-radio>
|
<el-radio :label="booleanValue.f">{{ $t('publish.trialNo') }}</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
v-if="formModel.project"
|
v-if="formModel.project"
|
||||||
label="归属项目"
|
:label="this.$t('publish.belongsProject')"
|
||||||
prop="projectCode"
|
prop="projectCode"
|
||||||
:rules="{
|
:rules="{
|
||||||
required: true, message: '归属项目不能为空', trigger: 'change'
|
required: true, message: '归属项目不能为空', trigger: 'change'
|
||||||
@ -24,7 +24,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
<el-button type="primary" @click="doSave">{{ $t('global.confirm') }}</el-button>
|
<el-button v-loading="loading" type="primary" @click="doSave">{{ $t('global.confirm') }}</el-button>
|
||||||
<el-button @click="dialogVisible = false">{{ $t('global.cancel') }}</el-button>
|
<el-button @click="dialogVisible = false">{{ $t('global.cancel') }}</el-button>
|
||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
@ -45,6 +45,7 @@ export default {
|
|||||||
project: false,
|
project: false,
|
||||||
projectCode: ''
|
projectCode: ''
|
||||||
},
|
},
|
||||||
|
loading: false,
|
||||||
projectCodeShow: false,
|
projectCodeShow: false,
|
||||||
booleanValue: {
|
booleanValue: {
|
||||||
t: true,
|
t: true,
|
||||||
@ -63,10 +64,17 @@ export default {
|
|||||||
doSave() {
|
doSave() {
|
||||||
this.$refs['form'].validate((valid) => {
|
this.$refs['form'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
if (this.loading) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.loading = true;
|
||||||
setMapProject(this.formModel).then(resp =>{
|
setMapProject(this.formModel).then(resp =>{
|
||||||
this.$message.success('设置归属项目成功!');
|
this.$message.success('设置归属项目成功!');
|
||||||
|
this.loading = false;
|
||||||
this.dialogVisible = false;
|
this.dialogVisible = false;
|
||||||
this.$emit('refresh');
|
this.$emit('refresh');
|
||||||
|
}).catch( ()=>{
|
||||||
|
this.$messageBox(`设置归属项目失败!`);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
@ -13,91 +13,91 @@ import { runPlanTemplateList } from '@/api/runplan';
|
|||||||
import { getSkinCodeList } from '@/api/management/mapskin';
|
import { getSkinCodeList } from '@/api/management/mapskin';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ChooseTemplatePlan',
|
name: 'ChooseTemplatePlan',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
dialogShow: false,
|
dialogShow: false,
|
||||||
loading: false,
|
loading: false,
|
||||||
skinCodeList: [],
|
skinCodeList: [],
|
||||||
model: {},
|
model: {},
|
||||||
pagerConfig: {
|
pagerConfig: {
|
||||||
pageSize: 'pageSize',
|
pageSize: 'pageSize',
|
||||||
pageIndex: 'pageNum'
|
pageIndex: 'pageNum'
|
||||||
},
|
},
|
||||||
queryForm: {
|
queryForm: {
|
||||||
reset: true,
|
reset: true,
|
||||||
labelWidth: '140px',
|
labelWidth: '140px',
|
||||||
queryObject: {
|
queryObject: {
|
||||||
name: {
|
name: {
|
||||||
type: 'text',
|
type: 'text',
|
||||||
label: this.$t('publish.runPlanName')
|
label: this.$t('publish.runPlanName')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
queryList: {
|
queryList: {
|
||||||
query: this.queryFunction,
|
query: this.queryFunction,
|
||||||
selectCheckShow: false,
|
selectCheckShow: false,
|
||||||
radioShow: true,
|
radioShow: true,
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: this.$t('publish.runPlanName'),
|
title: this.$t('publish.runPlanName'),
|
||||||
prop: 'name'
|
prop: 'name'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('publish.skinType'),
|
title: this.$t('publish.skinType'),
|
||||||
prop: 'skinCode',
|
prop: 'skinCode',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
columnValue: (row) => {
|
columnValue: (row) => {
|
||||||
return this.$convertField(row.skinCode, this.skinCodeList, ['code', 'name']);
|
return this.$convertField(row.skinCode, this.skinCodeList, ['code', 'name']);
|
||||||
},
|
},
|
||||||
tagType: (row) => { return 'success'; }
|
tagType: (row) => { return 'success'; }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
currentModel: {}
|
currentModel: {}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
title() {
|
title() {
|
||||||
return this.$t('publish.selectTemplateRunPlan');
|
return this.$t('publish.selectTemplateRunPlan');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
loadInitData() {
|
loadInitData() {
|
||||||
this.skinCodeList = [];
|
this.skinCodeList = [];
|
||||||
getSkinCodeList().then(response => {
|
getSkinCodeList().then(response => {
|
||||||
this.skinCodeList = response.data;
|
this.skinCodeList = response.data;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
doShow(model) {
|
doShow(model) {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.dialogShow = true;
|
this.dialogShow = true;
|
||||||
this.model = model;
|
this.model = model;
|
||||||
this.loadInitData();
|
this.loadInitData();
|
||||||
},
|
},
|
||||||
doClose() {
|
doClose() {
|
||||||
this.dialogShow = false;
|
this.dialogShow = false;
|
||||||
},
|
},
|
||||||
queryFunction(params) {
|
queryFunction(params) {
|
||||||
params['skinCode'] = this.model.skinCode || '';
|
params['skinCode'] = this.model.skinCode || '';
|
||||||
return runPlanTemplateList(params);
|
return runPlanTemplateList(params);
|
||||||
},
|
},
|
||||||
handleConfirm() {
|
handleConfirm() {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
if (this.$refs && this.$refs.pageRules) {
|
if (this.$refs && this.$refs.pageRules) {
|
||||||
const choose = this.$refs.pageRules.currentChoose();
|
const choose = this.$refs.pageRules.currentChoose();
|
||||||
if (choose) {
|
if (choose) {
|
||||||
this.$emit('chooseConfirm', choose);
|
this.$emit('chooseConfirm', choose);
|
||||||
} else {
|
} else {
|
||||||
this.$messageBox(this.$t('publish.pleaseSelectTemplate'));
|
this.$messageBox(this.$t('publish.pleaseSelectTemplate'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
reloadTable() {
|
reloadTable() {
|
||||||
this.queryList.reload();
|
this.queryList.reload();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style rel="stylesheet/scss" lang="scss" scoped>
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
<el-step :title="title" icon="el-icon-edit-outline" />
|
<el-step :title="title" icon="el-icon-edit-outline" />
|
||||||
<el-step title="" icon="el-icon-upload" />
|
<el-step title="" icon="el-icon-upload" />
|
||||||
</el-steps>
|
</el-steps>
|
||||||
<el-card class="forms">
|
<div class="joylink-card forms">
|
||||||
<el-scrollbar wrap-class="scrollbar-wrapper" :style="{height:height -120 + 'px'}" style="padding-top: 40px">
|
<div style="padding-top: 40px; padding-bottom: 20px;">
|
||||||
<el-form ref="form" :model="model" :rules="rules" label-width="140px" size="small">
|
<el-form ref="form" :model="model" :rules="rules" label-width="140px" size="small">
|
||||||
<el-form-item :label="`${$t('publish.selectMap')}:`" prop="mapId">
|
<el-form-item :label="`${$t('publish.selectMap')}:`" prop="mapId">
|
||||||
<el-select v-model="model.mapId" filterable>
|
<el-select v-model="model.mapId" filterable>
|
||||||
@ -23,8 +23,8 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-scrollbar>
|
</div>
|
||||||
</el-card>
|
</div>
|
||||||
<div class="draft">
|
<div class="draft">
|
||||||
<el-button-group>
|
<el-button-group>
|
||||||
<el-button v-if="isAdd" type="primary" @click="create">{{ $t('global.create') }}</el-button>
|
<el-button v-if="isAdd" type="primary" @click="create">{{ $t('global.create') }}</el-button>
|
||||||
@ -41,99 +41,98 @@ import { createRunPlanCommon } from '@/api/runplan';
|
|||||||
import ChooseTemplatePlan from './chooseTemplatePlan';
|
import ChooseTemplatePlan from './chooseTemplatePlan';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'CommonPlanDraft',
|
name: 'CommonPlanDraft',
|
||||||
components: {
|
components: {
|
||||||
ChooseTemplatePlan
|
ChooseTemplatePlan
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
display: 1,
|
display: 1,
|
||||||
loading: false,
|
loading: false,
|
||||||
mapList: [],
|
mapList: [],
|
||||||
model: {
|
model: {
|
||||||
mapId: '',
|
mapId: '',
|
||||||
planId: '',
|
planId: '',
|
||||||
planName: ''
|
planName: ''
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
title() {
|
title() {
|
||||||
return this.$t('publish.createCommonRunPlan');
|
return this.$t('publish.createCommonRunPlan');
|
||||||
},
|
},
|
||||||
isAdd() {
|
isAdd() {
|
||||||
return this.$route.params.mode.toUpperCase() == 'add'.toUpperCase();
|
return this.$route.params.mode.toUpperCase() == 'add'.toUpperCase();
|
||||||
},
|
},
|
||||||
rules() {
|
rules() {
|
||||||
const rules = {
|
const rules = {
|
||||||
mapId: [
|
mapId: [
|
||||||
{ required: true, message: this.$t('rules.mapInput'), trigger: 'blur' }
|
{ required: true, message: this.$t('rules.mapInput'), trigger: 'blur' }
|
||||||
],
|
],
|
||||||
planId: [
|
planId: [
|
||||||
{ required: true, message: this.$t('rules.inputTemplateRunPlan'), trigger: 'change' }
|
{ required: true, message: this.$t('rules.inputTemplateRunPlan'), trigger: 'change' }
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
return rules;
|
return rules;
|
||||||
},
|
}
|
||||||
height() {
|
},
|
||||||
return this.$store.state.app.height - 130;
|
mounted() {
|
||||||
}
|
this.initLoadPage();
|
||||||
},
|
},
|
||||||
mounted() {
|
methods: {
|
||||||
this.initLoadPage();
|
initLoadPage() {
|
||||||
},
|
listPublishMap().then(resp => {
|
||||||
methods: {
|
this.mapList = resp.data;
|
||||||
initLoadPage() {
|
});
|
||||||
listPublishMap().then(resp => {
|
},
|
||||||
this.mapList = resp.data;
|
handleChoose() {
|
||||||
});
|
let model = {};
|
||||||
},
|
const index = this.mapList.findIndex(elem => { return elem.id == this.model.mapId; });
|
||||||
handleChoose() {
|
if (index >= 0) {
|
||||||
let model = {};
|
model = this.mapList[index];
|
||||||
const index = this.mapList.findIndex(elem => { return elem.id == this.model.mapId; });
|
}
|
||||||
if (index >= 0) {
|
this.$refs.choose.doShow(model);
|
||||||
model = this.mapList[index];
|
},
|
||||||
}
|
chooseConfirm(choose) {
|
||||||
this.$refs.choose.doShow(model);
|
if (choose) {
|
||||||
},
|
this.model.planId = choose.id;
|
||||||
chooseConfirm(choose) {
|
this.model.planName = choose.name;
|
||||||
if (choose) {
|
}
|
||||||
this.model.planId = choose.id;
|
},
|
||||||
this.model.planName = choose.name;
|
buildModel() {
|
||||||
}
|
return {
|
||||||
},
|
mapId: this.model.mapId,
|
||||||
buildModel() {
|
templatePlanId: this.model.planId
|
||||||
return {
|
};
|
||||||
mapId: this.model.mapId,
|
},
|
||||||
templatePlanId: this.model.planId
|
create() {
|
||||||
};
|
this.$refs['form'].validate((valid) => {
|
||||||
},
|
if (valid) {
|
||||||
create() {
|
createRunPlanCommon(this.buildModel()).then(response => {
|
||||||
this.$refs['form'].validate((valid) => {
|
this.$message.success(this.$t('publish.createCommonSuccess'));
|
||||||
if (valid) {
|
this.$router.go(-1);
|
||||||
createRunPlanCommon(this.buildModel()).then(response => {
|
}).catch(() => {
|
||||||
this.$message.success(this.$t('publish.createCommonSuccess'));
|
this.$messageBox(this.$t('error.createCommonRunPlanFailed'));
|
||||||
this.$router.go(-1);
|
});
|
||||||
}).catch(() => {
|
}
|
||||||
this.$messageBox(this.$t('error.createCommonRunPlanFailed'));
|
});
|
||||||
});
|
},
|
||||||
}
|
turnback() {
|
||||||
});
|
this.$router.go(-1);
|
||||||
},
|
}
|
||||||
turnback() {
|
}
|
||||||
this.$router.go(-1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style rel="stylesheet/scss" lang="scss" scoped>
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
||||||
|
.card-box{
|
||||||
|
height: 100%;
|
||||||
|
padding-top: 20px;
|
||||||
|
}
|
||||||
.steps {
|
.steps {
|
||||||
width: 940px;
|
width: 940px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
margin-top: 20px;
|
|
||||||
height: 100%;
|
|
||||||
|
|
||||||
/deep/ {
|
/deep/ {
|
||||||
.el-step__icon.is-icon {
|
.el-step__icon.is-icon {
|
||||||
|
@ -11,151 +11,151 @@ import { UrlConfig } from '@/router/index';
|
|||||||
import { listPublishMap } from '@/api/jmap/map';
|
import { listPublishMap } from '@/api/jmap/map';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'RunPlanCommon',
|
name: 'RunPlanCommon',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
mapList: [],
|
mapList: [],
|
||||||
templatePlanList: [],
|
templatePlanList: [],
|
||||||
pagerConfig: {
|
pagerConfig: {
|
||||||
pageSize: 'pageSize',
|
pageSize: 'pageSize',
|
||||||
pageIndex: 'pageNum'
|
pageIndex: 'pageNum'
|
||||||
},
|
},
|
||||||
queryForm: {
|
queryForm: {
|
||||||
labelWidth: '140px',
|
labelWidth: '140px',
|
||||||
reset: true,
|
reset: true,
|
||||||
queryObject: {
|
queryObject: {
|
||||||
mapId: {
|
mapId: {
|
||||||
type: 'select',
|
type: 'select',
|
||||||
label: this.$t('publish.mapName'),
|
label: this.$t('publish.mapName'),
|
||||||
config: {
|
config: {
|
||||||
data: []
|
data: []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
queryList: {
|
queryList: {
|
||||||
query: this.queryFunction,
|
query: this.queryFunction,
|
||||||
selectCheckShow: false,
|
selectCheckShow: false,
|
||||||
indexShow: true,
|
indexShow: true,
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: this.$t('publish.mapName'),
|
title: this.$t('publish.mapName'),
|
||||||
prop: 'mapId',
|
prop: 'mapId',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
columnValue: (row) => { return this.$convertField(row.mapId, this.mapList, ['id', 'name']); },
|
columnValue: (row) => { return this.$convertField(row.mapId, this.mapList, ['id', 'name']); },
|
||||||
tagType: (row) => { return ''; }
|
tagType: (row) => { return ''; }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('publish.runPlanName'),
|
title: this.$t('publish.runPlanName'),
|
||||||
prop: 'templatePlanId',
|
prop: 'templatePlanId',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
columnValue: (row) => { return this.$convertField(row.templatePlanId, this.templatePlanList, ['id', 'name']); },
|
columnValue: (row) => { return this.$convertField(row.templatePlanId, this.templatePlanList, ['id', 'name']); },
|
||||||
tagType: (row) => { return 'success'; }
|
tagType: (row) => { return 'success'; }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'button',
|
type: 'button',
|
||||||
title: this.$t('global.operate'),
|
title: this.$t('global.operate'),
|
||||||
width: '450',
|
width: '450',
|
||||||
hide: () => { return this.$store.state.user.roles.indexOf(superAdmin) < 0; },
|
hide: () => { return this.$store.state.user.roles.indexOf(superAdmin) < 0; },
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
name: this.$t('global.preview'),
|
name: this.$t('global.preview'),
|
||||||
handleClick: this.handleView,
|
handleClick: this.handleView,
|
||||||
type: ''
|
type: ''
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: this.$t('publish.generateRunPlan'),
|
name: this.$t('publish.generateRunPlan'),
|
||||||
handleClick: this.createActionChart,
|
handleClick: this.createActionChart,
|
||||||
type: ''
|
type: ''
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: this.$t('publish.generateRunjihua'),
|
name: this.$t('publish.generateRunjihua'),
|
||||||
handleClick: this.createCrewScheduling,
|
handleClick: this.createCrewScheduling,
|
||||||
type: ''
|
type: ''
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: this.$t('global.delete'),
|
name: this.$t('global.delete'),
|
||||||
handleClick: this.handleDelete,
|
handleClick: this.handleDelete,
|
||||||
type: 'danger'
|
type: 'danger'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
actions: [
|
actions: [
|
||||||
{ text: this.$t('global.add'), btnCode: 'employee_insert', handler: this.handleCreateCommonPlan }
|
{ text: this.$t('global.add'), btnCode: 'employee_insert', handler: this.handleCreateCommonPlan }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
currentModel: {}
|
currentModel: {}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.loadPageData();
|
this.loadPageData();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
loadPageData() {
|
loadPageData() {
|
||||||
this.mapList = [];
|
this.mapList = [];
|
||||||
listPublishMap().then(resp => {
|
listPublishMap().then(resp => {
|
||||||
this.mapList = resp.data;
|
this.mapList = resp.data;
|
||||||
this.mapList.forEach(elem => {
|
this.mapList.forEach(elem => {
|
||||||
this.queryForm.queryObject.mapId.config.data.push({ value: elem.id, label: elem.name });
|
this.queryForm.queryObject.mapId.config.data.push({ value: elem.id, label: elem.name });
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
this.templatePlanList = [];
|
this.templatePlanList = [];
|
||||||
listAllTempLateRunPlan().then(resp => {
|
listAllTempLateRunPlan().then(resp => {
|
||||||
this.templatePlanList = resp.data;
|
this.templatePlanList = resp.data;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
queryFunction(params) {
|
queryFunction(params) {
|
||||||
params['userId'] = '';
|
params['userId'] = '';
|
||||||
return getRunPlanLoadList(params);
|
return getRunPlanLoadList(params);
|
||||||
},
|
},
|
||||||
handleCreateCommonPlan() {
|
handleCreateCommonPlan() {
|
||||||
this.$router.push({ path: `${UrlConfig.publish.runPlanCommon}/add` });
|
this.$router.push({ path: `${UrlConfig.publish.runPlanCommon}/add` });
|
||||||
},
|
},
|
||||||
// 删除
|
// 删除
|
||||||
handleDelete(index, row) {
|
handleDelete(index, row) {
|
||||||
this.$confirm(this.$t('publish.deleteGenerateEveryRunPlan'), this.$t('global.tips'), {
|
this.$confirm(this.$t('publish.deleteGenerateEveryRunPlan'), this.$t('global.tips'), {
|
||||||
confirmButtonText: this.$t('global.confirm'),
|
confirmButtonText: this.$t('global.confirm'),
|
||||||
cancelButtonText: this.$t('global.cancel'),
|
cancelButtonText: this.$t('global.cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(async () => {
|
}).then(async () => {
|
||||||
await deleteDailyRunPlanLoad(row.id);
|
await deleteDailyRunPlanLoad(row.id);
|
||||||
this.reloadTable();
|
this.reloadTable();
|
||||||
this.$message.success(this.$t('publish.deleteGenerateRunPlanSuccess'));
|
this.$message.success(this.$t('publish.deleteGenerateRunPlanSuccess'));
|
||||||
}).catch(() => { });
|
}).catch(() => { });
|
||||||
},
|
},
|
||||||
// 生成每日运行图
|
// 生成每日运行图
|
||||||
createActionChart(index, row) {
|
createActionChart(index, row) {
|
||||||
this.$confirm(this.$t('publish.wellGenerateEveryRunPlan'), this.$t('global.tips'), {
|
this.$confirm(this.$t('publish.wellGenerateEveryRunPlan'), this.$t('global.tips'), {
|
||||||
confirmButtonText: this.$t('global.confirm'),
|
confirmButtonText: this.$t('global.confirm'),
|
||||||
cancelButtonText: this.$t('global.cancel'),
|
cancelButtonText: this.$t('global.cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(async () => {
|
}).then(async () => {
|
||||||
await postDailyRunPlanLoadGenerate(row.id);
|
await postDailyRunPlanLoadGenerate(row.id);
|
||||||
this.$message.success(this.$t('publish.addEveryRunPlanSuccess'));
|
this.$message.success(this.$t('publish.addEveryRunPlanSuccess'));
|
||||||
}).catch(() => { });
|
}).catch(() => { });
|
||||||
},
|
},
|
||||||
// 生成通用派班计划
|
// 生成通用派班计划
|
||||||
createCrewScheduling(index, row) {
|
createCrewScheduling(index, row) {
|
||||||
this.$confirm(this.$t('publish.wellGenerateEveryRunjihua'), this.$t('global.tips'), {
|
this.$confirm(this.$t('publish.wellGenerateEveryRunjihua'), this.$t('global.tips'), {
|
||||||
confirmButtonText: this.$t('global.confirm'),
|
confirmButtonText: this.$t('global.confirm'),
|
||||||
cancelButtonText: this.$t('global.cancel'),
|
cancelButtonText: this.$t('global.cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(async () => {
|
}).then(async () => {
|
||||||
await postSchedulingCommonGenerate(row.mapId);
|
await postSchedulingCommonGenerate(row.mapId);
|
||||||
this.$message.success(this.$t('publish.addEveryRunjihuaSuccess'));
|
this.$message.success(this.$t('publish.addEveryRunjihuaSuccess'));
|
||||||
}).catch(() => { });
|
}).catch(() => { });
|
||||||
},
|
},
|
||||||
// 预览
|
// 预览
|
||||||
handleView(index, row) {
|
handleView(index, row) {
|
||||||
const init = this.mapList.findIndex(elem => { return elem.id == row.mapId; });
|
const init = this.mapList.findIndex(elem => { return elem.id == row.mapId; });
|
||||||
this.$router.push({ path: `${UrlConfig.publish.runPlanView}/common`, query: { skinCode: this.mapList[init].skinCode, planId: row.templatePlanId } });
|
this.$router.push({ path: `${UrlConfig.publish.runPlanView}/common`, query: { skinCode: this.mapList[init].skinCode, planId: row.templatePlanId } });
|
||||||
},
|
},
|
||||||
reloadTable() {
|
reloadTable() {
|
||||||
this.queryList.reload();
|
this.queryList.reload();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
@ -11,117 +11,117 @@ import { runPlanEveryDayList, deleteRunPlanEveryDay } from '@/api/runplan';
|
|||||||
import { UrlConfig } from '@/router/index';
|
import { UrlConfig } from '@/router/index';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'RunPlanEveryDay',
|
name: 'RunPlanEveryDay',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
mapList: [],
|
mapList: [],
|
||||||
pagerConfig: {
|
pagerConfig: {
|
||||||
pageSize: 'pageSize',
|
pageSize: 'pageSize',
|
||||||
pageIndex: 'pageNum'
|
pageIndex: 'pageNum'
|
||||||
},
|
},
|
||||||
queryForm: {
|
queryForm: {
|
||||||
labelWidth: '140px',
|
labelWidth: '140px',
|
||||||
reset: true,
|
reset: true,
|
||||||
queryObject: {
|
queryObject: {
|
||||||
name: {
|
name: {
|
||||||
type: 'text',
|
type: 'text',
|
||||||
label: this.$t('publish.runPlanName')
|
label: this.$t('publish.runPlanName')
|
||||||
},
|
},
|
||||||
mapId: {
|
mapId: {
|
||||||
type: 'select',
|
type: 'select',
|
||||||
label: this.$t('publish.mapName'),
|
label: this.$t('publish.mapName'),
|
||||||
config: {
|
config: {
|
||||||
data: []
|
data: []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
queryList: {
|
queryList: {
|
||||||
query: runPlanEveryDayList,
|
query: runPlanEveryDayList,
|
||||||
selectCheckShow: false,
|
selectCheckShow: false,
|
||||||
indexShow: true,
|
indexShow: true,
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: this.$t('publish.runPlanName'),
|
title: this.$t('publish.runPlanName'),
|
||||||
prop: 'name'
|
prop: 'name'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('publish.mapName'),
|
title: this.$t('publish.mapName'),
|
||||||
prop: 'mapId',
|
prop: 'mapId',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
columnValue: (row) => {
|
columnValue: (row) => {
|
||||||
return this.$convertField(row.mapId, this.mapList, ['id', 'name']);
|
return this.$convertField(row.mapId, this.mapList, ['id', 'name']);
|
||||||
},
|
},
|
||||||
tagType: (row) => { return 'success'; }
|
tagType: (row) => { return 'success'; }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('publish.runEveryDayTime'),
|
title: this.$t('publish.runEveryDayTime'),
|
||||||
prop: 'runDate'
|
prop: 'runDate'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('publish.userId'),
|
title: this.$t('publish.userId'),
|
||||||
prop: 'creatorId'
|
prop: 'creatorId'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'button',
|
type: 'button',
|
||||||
title: this.$t('global.operate'),
|
title: this.$t('global.operate'),
|
||||||
width: '250',
|
width: '250',
|
||||||
hide: (row) => { return this.$store.state.user.roles.indexOf(superAdmin) < 0; },
|
hide: (row) => { return this.$store.state.user.roles.indexOf(superAdmin) < 0; },
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
name: this.$t('global.delete'),
|
name: this.$t('global.delete'),
|
||||||
handleClick: this.handleDelete,
|
handleClick: this.handleDelete,
|
||||||
type: 'danger'
|
type: 'danger'
|
||||||
}
|
}
|
||||||
// {
|
// {
|
||||||
// name: this.$t('global.preview'),
|
// name: this.$t('global.preview'),
|
||||||
// handleClick: this.handleView,
|
// handleClick: this.handleView,
|
||||||
// type: ''
|
// type: ''
|
||||||
// }
|
// }
|
||||||
// 无skincode
|
// 无skincode
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
currentModel: {}
|
currentModel: {}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.loadInitData();
|
this.loadInitData();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
loadInitData() {
|
loadInitData() {
|
||||||
this.mapList = [];
|
this.mapList = [];
|
||||||
listPublishMap().then(response => {
|
listPublishMap().then(response => {
|
||||||
this.mapList = response.data;
|
this.mapList = response.data;
|
||||||
response.data.forEach(elem => {
|
response.data.forEach(elem => {
|
||||||
this.queryForm.queryObject.mapId.config.data.push({ value: elem.id, label: elem.name });
|
this.queryForm.queryObject.mapId.config.data.push({ value: elem.id, label: elem.name });
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleDelete(index, row) {
|
handleDelete(index, row) {
|
||||||
this.$confirm(this.$t('publish.wellDelRunPlanEveryDay'), this.$t('global.tips'), {
|
this.$confirm(this.$t('publish.wellDelRunPlanEveryDay'), this.$t('global.tips'), {
|
||||||
confirmButtonText: this.$t('global.confirm'),
|
confirmButtonText: this.$t('global.confirm'),
|
||||||
cancelButtonText: this.$t('global.cancel'),
|
cancelButtonText: this.$t('global.cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
deleteRunPlanEveryDay(row.id).then(response => {
|
deleteRunPlanEveryDay(row.id).then(response => {
|
||||||
this.$message.success(this.$t('publish.deleteSuccess'));
|
this.$message.success(this.$t('publish.deleteSuccess'));
|
||||||
this.reloadTable();
|
this.reloadTable();
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.reloadTable();
|
this.reloadTable();
|
||||||
this.$messageBox(this.$t('error.deleteFailed'));
|
this.$messageBox(this.$t('error.deleteFailed'));
|
||||||
});
|
});
|
||||||
}).catch(() => { });
|
}).catch(() => { });
|
||||||
},
|
},
|
||||||
// 预览
|
// 预览
|
||||||
handleView(index, row) {
|
handleView(index, row) {
|
||||||
this.$router.push({ path: `${UrlConfig.publish.runPlanView}/everyDay`, query: { skinCode: row.skinCode, planId: row.id } });
|
this.$router.push({ path: `${UrlConfig.publish.runPlanView}/everyDay`, query: { skinCode: row.skinCode, planId: row.id } });
|
||||||
},
|
},
|
||||||
reloadTable() {
|
reloadTable() {
|
||||||
this.queryList.reload();
|
this.queryList.reload();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
@ -1,124 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div>
|
|
||||||
<QueryListPage ref="queryListPage" :pager-config="pagerConfig" :query-form="queryForm" :query-list="queryList" />
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import { superAdmin } from '@/router';
|
|
||||||
import { getSkinCodeList } from '@/api/management/mapskin';
|
|
||||||
import { getQuestPageList, deleteQuest } from '@/api/quest';
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: 'RunPlanTemplate',
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
skinCodeList: [],
|
|
||||||
pagerConfig: {
|
|
||||||
pageSize: 'pageSize',
|
|
||||||
pageIndex: 'pageNum'
|
|
||||||
},
|
|
||||||
queryForm: {
|
|
||||||
labelWidth: '140px',
|
|
||||||
reset: true,
|
|
||||||
queryObject: {
|
|
||||||
skinCode: {
|
|
||||||
type: 'select',
|
|
||||||
label: this.$t('publish.skinType'),
|
|
||||||
config: {
|
|
||||||
data: []
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
queryList: {
|
|
||||||
query: getQuestPageList,
|
|
||||||
selectCheckShow: false,
|
|
||||||
indexShow: true,
|
|
||||||
columns: [
|
|
||||||
{
|
|
||||||
title: this.$t('publish.taskName'),
|
|
||||||
prop: 'name'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: this.$t('publish.skinType'),
|
|
||||||
prop: 'skinCode',
|
|
||||||
type: 'tag',
|
|
||||||
columnValue: (row) => {
|
|
||||||
return this.$convertField(row.skinCode, this.skinCodeList, ['code', 'name']);
|
|
||||||
},
|
|
||||||
tagType: (row) => { return ''; }
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: this.$t('publish.createTime'),
|
|
||||||
prop: 'createTime'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'button',
|
|
||||||
title: this.$t('global.operate'),
|
|
||||||
width: '350',
|
|
||||||
hide: () => { return this.$store.state.user.roles.indexOf(superAdmin) < 0; },
|
|
||||||
buttons: [
|
|
||||||
{
|
|
||||||
name: this.$t('global.delete'),
|
|
||||||
handleClick: this.handleDelete,
|
|
||||||
type: 'danger'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: this.$t('publish.detail'),
|
|
||||||
handleClick: this.handleDetail,
|
|
||||||
type: ''
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
currentModel: {}
|
|
||||||
};
|
|
||||||
},
|
|
||||||
created() {
|
|
||||||
this.loadInitData();
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
loadInitData() {
|
|
||||||
this.skinCodeList = [];
|
|
||||||
getSkinCodeList().then(response => {
|
|
||||||
this.skinCodeList = response.data;
|
|
||||||
response.data.forEach(elem => {
|
|
||||||
this.queryForm.queryObject.skinCode.config.data.push({ value: elem.code, label: elem.name });
|
|
||||||
});
|
|
||||||
});
|
|
||||||
},
|
|
||||||
// 删除
|
|
||||||
handleDelete(index, row) {
|
|
||||||
this.$confirm(this.$t('publish.wellDelTemplate'), this.$t('global.tips'), {
|
|
||||||
confirmButtonText: this.$t('global.confirm'),
|
|
||||||
cancelButtonText: this.$t('global.cancel'),
|
|
||||||
type: 'warning'
|
|
||||||
}).then(() => {
|
|
||||||
deleteQuest(row.id).then(response => {
|
|
||||||
this.$message.success(this.$t('publish.deleteSuccess'));
|
|
||||||
this.reloadTable();
|
|
||||||
}).catch(error => {
|
|
||||||
this.reloadTable();
|
|
||||||
if (error.code == 500) {
|
|
||||||
this.$messageBox(this.$t('error.deleteFailed'));
|
|
||||||
} else if (error.code == 500009) {
|
|
||||||
this.$messageBox(this.$t('error.templateHasBeUse'));
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}).catch(() => { });
|
|
||||||
},
|
|
||||||
|
|
||||||
// 查看详情
|
|
||||||
handleDetail(index, row) {
|
|
||||||
this.$messageBox(this.$t('global.notBeUse'));
|
|
||||||
},
|
|
||||||
|
|
||||||
reloadTable() {
|
|
||||||
this.queryList.reload();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
</script>
|
|
@ -5,7 +5,7 @@
|
|||||||
<el-header style="height:50px;">
|
<el-header style="height:50px;">
|
||||||
<el-row class="actionList">
|
<el-row class="actionList">
|
||||||
<span class="titleStyle">{{ $t('scriptRecord.scriptRecordTitle') }}</span>
|
<span class="titleStyle">{{ $t('scriptRecord.scriptRecordTitle') }}</span>
|
||||||
<span class="titleStyle">( {{$t('scriptRecord.language')}}: {{ $route.query.lang=="en"?$t('scriptRecord.english'):$t('scriptRecord.chinese') }} )</span>
|
<span class="titleStyle">( {{ $t('scriptRecord.language') }}: {{ $route.query.lang=="en"?$t('scriptRecord.english'):$t('scriptRecord.chinese') }} )</span>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-header>
|
</el-header>
|
||||||
<el-main style="padding-top:10px;padding-bottom:10px;">
|
<el-main style="padding-top:10px;padding-bottom:10px;">
|
||||||
@ -34,153 +34,153 @@ import AddRole from '../scriptRecord/addRole';
|
|||||||
import {saveScriptScenes, saveScriptData, dumpScriptData, updateMapLocation, scriptPause, executeScript} from '@/api/simulation';
|
import {saveScriptScenes, saveScriptData, dumpScriptData, updateMapLocation, scriptPause, executeScript} from '@/api/simulation';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'TipScriptRecord',
|
name: 'TipScriptRecord',
|
||||||
components: {
|
components: {
|
||||||
GetAction,
|
GetAction,
|
||||||
AddRole,
|
AddRole,
|
||||||
AddAction
|
AddAction
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
group: {
|
group: {
|
||||||
type: String,
|
type: String,
|
||||||
required: true
|
required: true
|
||||||
},
|
},
|
||||||
width: {
|
width: {
|
||||||
type: Number || String,
|
type: Number || String,
|
||||||
required: true
|
required: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
title: this.$t('scriptRecord.scriptRecordTitle'),
|
title: this.$t('scriptRecord.scriptRecordTitle'),
|
||||||
isShrink: false,
|
isShrink: false,
|
||||||
mapLocation: {},
|
mapLocation: {},
|
||||||
autoSaveScript: null,
|
autoSaveScript: null,
|
||||||
isSavingScript: false,
|
isSavingScript: false,
|
||||||
isPause: true,
|
isPause: true,
|
||||||
executeDisabled: false,
|
executeDisabled: false,
|
||||||
backDisabled: false,
|
backDisabled: false,
|
||||||
size: {
|
size: {
|
||||||
width: 350,
|
width: 350,
|
||||||
height: window.innerHeight-342
|
height: window.innerHeight - 342
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
'$store.state.scriptRecord.bgSet': function (val) {
|
'$store.state.scriptRecord.bgSet': function (val) {
|
||||||
this.backDisabled=val;
|
this.backDisabled = val;
|
||||||
},
|
},
|
||||||
'$store.state.app.windowSizeCount': function() {
|
'$store.state.app.windowSizeCount': function() {
|
||||||
this.size = { width: 350, height: window.innerHeight-342};
|
this.size = { width: 350, height: window.innerHeight - 342};
|
||||||
},
|
},
|
||||||
width: function(val) {
|
width: function(val) {
|
||||||
this.size = { width: val / 2 - 20, height: window.innerHeight - 342};
|
this.size = { width: val / 2 - 20, height: window.innerHeight - 342};
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.initAutoSaveScript();
|
this.initAutoSaveScript();
|
||||||
this.backDisabled=this.$store.state.scriptRecord.bgSet;
|
this.backDisabled = this.$store.state.scriptRecord.bgSet;
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
this.clearAutoSave();
|
this.clearAutoSave();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
setIsParse(isPause) {
|
setIsParse(isPause) {
|
||||||
this.isPause=isPause;
|
this.isPause = isPause;
|
||||||
},
|
},
|
||||||
setDisabled(data) {
|
setDisabled(data) {
|
||||||
this.executeDisabled=!data;
|
this.executeDisabled = !data;
|
||||||
},
|
},
|
||||||
initAutoSaveScript() {
|
initAutoSaveScript() {
|
||||||
const timeout = 1000 * 20;
|
const timeout = 1000 * 20;
|
||||||
this.clearAutoSave(this.autoSaveScript);
|
this.clearAutoSave(this.autoSaveScript);
|
||||||
this.autoSaveScript = setInterval(this.saveScenesData, timeout);
|
this.autoSaveScript = setInterval(this.saveScenesData, timeout);
|
||||||
},
|
},
|
||||||
clearAutoSave() {
|
clearAutoSave() {
|
||||||
if (this.autoSaveScript) {
|
if (this.autoSaveScript) {
|
||||||
clearInterval(this.autoSaveScript);
|
clearInterval(this.autoSaveScript);
|
||||||
this.autoSaveScript = null;
|
this.autoSaveScript = null;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
pauseScript() {
|
pauseScript() {
|
||||||
scriptPause(this.group).then(resp => {
|
scriptPause(this.group).then(resp => {
|
||||||
this.$store.dispatch('scriptRecord/updateSimulationPause', true);
|
this.$store.dispatch('scriptRecord/updateSimulationPause', true);
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.$messageBox(this.$t('scriptRecord.pauseFail'));
|
this.$messageBox(this.$t('scriptRecord.pauseFail'));
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
executePlayScript() {
|
executePlayScript() {
|
||||||
executeScript(this.group).then(resp => {
|
executeScript(this.group).then(resp => {
|
||||||
this.$store.dispatch('scriptRecord/updateSimulationPause', false);
|
this.$store.dispatch('scriptRecord/updateSimulationPause', false);
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.$messageBox(this.$t('scriptRecord.recoverFail'));
|
this.$messageBox(this.$t('scriptRecord.recoverFail'));
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
saveScenesStage() {
|
saveScenesStage() {
|
||||||
const data=Vue.prototype.$jlmap.$options;
|
const data = Vue.prototype.$jlmap.$options;
|
||||||
const group=this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const dataZoom={scale: data.scaleRate, x: data.offsetX, y: data.offsetY};
|
const dataZoom = {scale: data.scaleRate, x: data.offsetX, y: data.offsetY};
|
||||||
saveScriptScenes(this.group).then(resp => {
|
saveScriptScenes(this.group).then(resp => {
|
||||||
updateMapLocation(group, dataZoom).then(response=>{
|
updateMapLocation(group, dataZoom).then(response=>{
|
||||||
this.$store.dispatch('scriptRecord/updateBgSet', true);
|
this.$store.dispatch('scriptRecord/updateBgSet', true);
|
||||||
this.$message.success(this.$t('scriptRecord.saveBackgroundSuceess'));
|
this.$message.success(this.$t('scriptRecord.saveBackgroundSuceess'));
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.$messageBox(`${this.$t('scriptRecord.updateLocationFail')}: ${error.message}`);
|
this.$messageBox(`${this.$t('scriptRecord.updateLocationFail')}: ${error.message}`);
|
||||||
});
|
});
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.$messageBox(this.$t('scriptRecord.saveBackgroundFail'));
|
this.$messageBox(this.$t('scriptRecord.saveBackgroundFail'));
|
||||||
});
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
saveScenesData() {
|
saveScenesData() {
|
||||||
this.isSavingScript=true;
|
this.isSavingScript = true;
|
||||||
saveScriptData(this.group).then(resp => {
|
saveScriptData(this.group).then(resp => {
|
||||||
this.$message.success(this.$t('scriptRecord.saveDataSucess'));
|
this.$message.success(this.$t('scriptRecord.saveDataSucess'));
|
||||||
this.isSavingScript=false;
|
this.isSavingScript = false;
|
||||||
this.initAutoSaveScript();
|
this.initAutoSaveScript();
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.$messageBox(`${this.$t('scriptRecord.saveDataFail')}: ${error.message}`);
|
this.$messageBox(`${this.$t('scriptRecord.saveDataFail')}: ${error.message}`);
|
||||||
this.isSavingScript=false;
|
this.isSavingScript = false;
|
||||||
if (error.code === 40004 || error.code === 40005 || error.code === 40003) {
|
if (error.code === 40004 || error.code === 40005 || error.code === 40003) {
|
||||||
this.clearAutoSave();
|
this.clearAutoSave();
|
||||||
} else {
|
} else {
|
||||||
this.initAutoSaveScript();
|
this.initAutoSaveScript();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
dumpScenesData() {
|
dumpScenesData() {
|
||||||
this.clearAutoSave();
|
this.clearAutoSave();
|
||||||
const group=this.group;
|
const group = this.group;
|
||||||
this.$confirm(this.$t('scriptRecord.clearDataTip'), this.$t('global.tips'), {
|
this.$confirm(this.$t('scriptRecord.clearDataTip'), this.$t('global.tips'), {
|
||||||
confirmButtonText: this.$t('global.confirm'),
|
confirmButtonText: this.$t('global.confirm'),
|
||||||
cancelButtonText: this.$t('global.cancel'),
|
cancelButtonText: this.$t('global.cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
dumpScriptData(group).then(resp => {
|
dumpScriptData(group).then(resp => {
|
||||||
this.$parent.$refs['display'].$refs['menuScript'].resetBeginTime();
|
this.$parent.$refs['display'].$refs['menuScript'].resetBeginTime();
|
||||||
this.$refs['getAction'].loadInitData();
|
this.$refs['getAction'].loadInitData();
|
||||||
this.$refs['addRole'].initData();
|
this.$refs['addRole'].initData();
|
||||||
this.$refs['addAction'].initData();
|
this.$refs['addAction'].initData();
|
||||||
this.initAutoSaveScript();
|
this.initAutoSaveScript();
|
||||||
this.$store.dispatch('scriptRecord/updateBgSet', false);
|
this.$store.dispatch('scriptRecord/updateBgSet', false);
|
||||||
this.$message.success(this.$t('scriptRecord.resetDataSuccess'));
|
this.$message.success(this.$t('scriptRecord.resetDataSuccess'));
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.$messageBox(this.$t('scriptRecord.resetDataFail'));
|
this.$messageBox(this.$t('scriptRecord.resetDataFail'));
|
||||||
});
|
});
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.initAutoSaveScript();
|
this.initAutoSaveScript();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
refresh() {
|
refresh() {
|
||||||
this.$refs['addAction'].initData();
|
this.$refs['addAction'].initData();
|
||||||
},
|
},
|
||||||
create() {
|
create() {
|
||||||
this.$refs['getAction'].loadInitData();
|
this.$refs['getAction'].loadInitData();
|
||||||
},
|
},
|
||||||
setAction(row) {
|
setAction(row) {
|
||||||
this.$refs['addAction'].doShow(row);
|
this.$refs['addAction'].doShow(row);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style rel="stylesheet/scss" lang="scss" scoped>
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
||||||
|
@ -1,16 +1,13 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-card :style="{height: height+'px'}">
|
<el-card :style="{height: height+'px'}">
|
||||||
<div class="scriptHeader">
|
<div class="scriptHeader">
|
||||||
<div class="scriptList">{{$t('scriptRecord.scriptList')}}</div>
|
<div class="scriptList">{{ $t('scriptRecord.scriptList') }}</div>
|
||||||
<el-button size="small" type="primary" @click="handleCreate" class="createScript">{{$t('scriptRecord.scriptCreate')}}</el-button>
|
<el-button size="small" type="primary" class="createScript" @click="handleCreate">{{ $t('scriptRecord.scriptCreate') }}</el-button>
|
||||||
</div>
|
</div>
|
||||||
<QueryListPage ref="queryListPage" :pager-config="pagerConfig" :query-form="queryForm" :query-list="queryList" style="width: 91%;margin-left:4%;margin-top:20px;display: inline-block;"/>
|
<QueryListPage ref="queryListPage" :pager-config="pagerConfig" :query-form="queryForm" :query-list="queryList" style="width: 91%;margin-left:4%;margin-top:20px;display: inline-block;" />
|
||||||
<script-publish ref='publishScript' @reloadTable="reloadTable" @create="handleConfirmPublish" :title="$t('scriptRecord.publishScript')">
|
<script-publish ref="publishScript" :title="$t('scriptRecord.publishScript')" @reloadTable="reloadTable" @create="handleConfirmPublish" />
|
||||||
</script-publish>
|
<create-script ref="createScript" :title="$t('scriptRecord.createScript')" @reloadTable="reloadTable" @create="handleConfirmCreate" />
|
||||||
<create-script ref='createScript' @reloadTable="reloadTable" @create="handleConfirmCreate" :title="$t('scriptRecord.createScript')">
|
<create-script ref="modifyScript" :title="$t('scriptRecord.modifyScript')" @reloadTable="reloadTable" @create="handleConfirmModify" />
|
||||||
</create-script>
|
|
||||||
<create-script ref='modifyScript' @reloadTable="reloadTable" @create="handleConfirmModify" :title="$t('scriptRecord.modifyScript')">
|
|
||||||
</create-script>
|
|
||||||
</el-card>
|
</el-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -20,259 +17,260 @@ import ConstConfig from '@/scripts/ConstConfig';
|
|||||||
import { UrlConfig } from '@/router/index';
|
import { UrlConfig } from '@/router/index';
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
import { admin, superAdmin} from '@/router';
|
import { admin, superAdmin} from '@/router';
|
||||||
import { getQuestPageList,createQuest,deleteQuest,updateQuest,publishQuest,retractQuest} from '@/api/quest';
|
import { getQuestPageList, createQuest, deleteQuest, updateQuest, publishQuest, retractQuest} from '@/api/quest';
|
||||||
import { launchFullscreen } from '@/utils/screen';
|
import { launchFullscreen } from '@/utils/screen';
|
||||||
import { scriptDraftRecordNotify,scriptRecordNotify } from '@/api/simulation';
|
import { scriptDraftRecordNotify, scriptRecordNotify } from '@/api/simulation';
|
||||||
import CreateScript from './create';
|
import CreateScript from './create';
|
||||||
import ScriptPublish from './publish';
|
import ScriptPublish from './publish';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ScriptDraft',
|
name: 'ScriptDraft',
|
||||||
components: {
|
components: {
|
||||||
CreateScript,
|
CreateScript,
|
||||||
ScriptPublish
|
ScriptPublish
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
pagerConfig: {
|
pagerConfig: {
|
||||||
pageSize: 'pageSize',
|
pageSize: 'pageSize',
|
||||||
pageIndex: 'pageNum'
|
pageIndex: 'pageNum'
|
||||||
},
|
},
|
||||||
queryForm: {
|
queryForm: {
|
||||||
labelWidth: '100px',
|
labelWidth: '100px',
|
||||||
reset: true,
|
reset: true,
|
||||||
show:false
|
show:false
|
||||||
},
|
},
|
||||||
queryList: {
|
queryList: {
|
||||||
query: this.queryFunction,
|
query: this.queryFunction,
|
||||||
selectCheckShow: false,
|
selectCheckShow: false,
|
||||||
indexShow: true,
|
indexShow: true,
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: this.$t('scriptRecord.scriptName'),
|
title: this.$t('scriptRecord.scriptName'),
|
||||||
prop: 'name'
|
prop: 'name'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('scriptRecord.scriptDescription'),
|
title: this.$t('scriptRecord.scriptDescription'),
|
||||||
prop: 'description',
|
prop: 'description'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('scriptRecord.status'),
|
title: this.$t('scriptRecord.status'),
|
||||||
prop: 'status',
|
prop: 'status',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
columnValue: (row) => { return this.covertData(row)},
|
columnValue: (row) => { return this.covertData(row); },
|
||||||
tagType: (row) => { return ''; }
|
tagType: (row) => { return ''; }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('scriptRecord.revokeReason'),
|
title: this.$t('scriptRecord.revokeReason'),
|
||||||
prop: 'explanation',
|
prop: 'explanation'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'button',
|
type: 'button',
|
||||||
title: this.$t('scriptRecord.operate'),
|
title: this.$t('scriptRecord.operate'),
|
||||||
width: '400',
|
width: '400',
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
name: this.$t('scriptRecord.scriptRecord'),
|
name: this.$t('scriptRecord.scriptRecord'),
|
||||||
handleClick: this.drawUp,
|
handleClick: this.drawUp,
|
||||||
type: 'success',
|
type: 'success',
|
||||||
showControl:(row) => { return !(row.status==1) },
|
showControl:(row) => { return !(row.status == 1); }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: this.$t('scriptRecord.scriptModify'),
|
name: this.$t('scriptRecord.scriptModify'),
|
||||||
handleClick: this.handleModify,
|
handleClick: this.handleModify,
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
showControl:(row) => { return !(row.status==1) },
|
showControl:(row) => { return !(row.status == 1); }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: this.$t('scriptRecord.scriptDelete'),
|
name: this.$t('scriptRecord.scriptDelete'),
|
||||||
handleClick: this.deleteScript,
|
handleClick: this.deleteScript,
|
||||||
type: 'danger',
|
type: 'danger',
|
||||||
showControl:(row) => { return !(row.status==1) },
|
showControl:(row) => { return !(row.status == 1); }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: this.covertButtonname(),
|
name: this.covertButtonname(),
|
||||||
handleClick: this.publishScript,
|
handleClick: this.publishScript,
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
showControl:(row) => { return row.status==0 },
|
showControl:(row) => { return row.status == 0; }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: this.$t('scriptRecord.applyRevoke'),
|
name: this.$t('scriptRecord.applyRevoke'),
|
||||||
handleClick: this.revokeScript,
|
handleClick: this.revokeScript,
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
showControl:(row) => { return row.status==1 },
|
showControl:(row) => { return row.status == 1; }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: this.$t('scriptRecord.preview'),
|
name: this.$t('scriptRecord.preview'),
|
||||||
handleClick: this.previewScript,
|
handleClick: this.previewScript,
|
||||||
type: 'success',
|
type: 'success'
|
||||||
// showControl:(row) => { return row.status==1},
|
// showControl:(row) => { return row.status==1},
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
height() {
|
height() {
|
||||||
return this.$store.state.app.height - 50-30;
|
return this.$store.state.app.height - 50 - 30;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
'$route' () {
|
'$route' () {
|
||||||
this.reloadTable();
|
this.reloadTable();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
queryFunction(params) {
|
queryFunction(params) {
|
||||||
return getQuestPageList(this.$route.params.mapId,params);
|
return getQuestPageList(this.$route.params.mapId, params);
|
||||||
},
|
},
|
||||||
reloadTable() {
|
reloadTable() {
|
||||||
if (this.queryList && this.queryList.reload) {
|
if (this.queryList && this.queryList.reload) {
|
||||||
this.queryList.reload();
|
this.queryList.reload();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
drawUp(index,row) {
|
drawUp(index, row) {
|
||||||
scriptRecordNotify(row.id).then(resp => {
|
scriptRecordNotify(row.id).then(resp => {
|
||||||
const query = { mapId: row.mapId, group: resp.data, scriptId: row.id,lang:row.lang };
|
const query = { mapId: row.mapId, group: resp.data, scriptId: row.id, lang:row.lang };
|
||||||
this.$router.push({ path: `${UrlConfig.scriptDisplay}/script`, query });
|
this.$router.push({ path: `${UrlConfig.scriptDisplay}/script`, query });
|
||||||
launchFullscreen();
|
launchFullscreen();
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.$messageBox(`${this.$t('scriptRecord.createSimulationFail')}: ${error.message}`);
|
this.$messageBox(`${this.$t('scriptRecord.createSimulationFail')}: ${error.message}`);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
deleteScript(index,row) {
|
deleteScript(index, row) {
|
||||||
this.$confirm(this.$t('scriptRecord.deleteScriptTip'), this.$t('global.tips'), {
|
this.$confirm(this.$t('scriptRecord.deleteScriptTip'), this.$t('global.tips'), {
|
||||||
confirmButtonText: this.$t('global.confirm'),
|
confirmButtonText: this.$t('global.confirm'),
|
||||||
cancelButtonText: this.$t('global.cancel'),
|
cancelButtonText: this.$t('global.cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
deleteQuest(row.id).then(response => {
|
deleteQuest(row.id).then(response => {
|
||||||
this.$message.success(this.$t('scriptRecord.deleteScriptSucess'));
|
this.$message.success(this.$t('scriptRecord.deleteScriptSucess'));
|
||||||
this.reloadTable();
|
this.reloadTable();
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.$messageBox(this.$t('scriptRecord.deleteScriptFail'));
|
this.$messageBox(this.$t('scriptRecord.deleteScriptFail'));
|
||||||
});
|
});
|
||||||
}).catch(() => { });
|
}).catch(() => { });
|
||||||
},
|
},
|
||||||
// 确定创建
|
// 确定创建
|
||||||
handleConfirmCreate(data) {
|
handleConfirmCreate(data) {
|
||||||
if(Cookies.get("user_lang")=="en"){
|
if (Cookies.get('user_lang') == 'en') {
|
||||||
data.lang='en';
|
data.lang = 'en';
|
||||||
}else{
|
} else {
|
||||||
data.lang='zh';
|
data.lang = 'zh';
|
||||||
}
|
}
|
||||||
createQuest(data).then(resp => {
|
createQuest(data).then(resp => {
|
||||||
this.reloadTable();
|
this.reloadTable();
|
||||||
this.$message.success(this.$t('scriptRecord.createScriptSuccess'));
|
this.$message.success(this.$t('scriptRecord.createScriptSuccess'));
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.$messageBox(`${this.$t('scriptRecord.createScriptFail')}: ${error.message}`);
|
this.$messageBox(`${this.$t('scriptRecord.createScriptFail')}: ${error.message}`);
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
//修改
|
// 修改
|
||||||
handleModify(index, row){
|
handleModify(index, row) {
|
||||||
this.$refs.modifyScript.doShow(row.id);
|
this.$refs.modifyScript.doShow(row.id);
|
||||||
},
|
},
|
||||||
//确认修改
|
// 确认修改
|
||||||
handleConfirmModify(data){
|
handleConfirmModify(data) {
|
||||||
if(Cookies.get("user_lang")=="en"){
|
if (Cookies.get('user_lang') == 'en') {
|
||||||
data.lang='en';
|
data.lang = 'en';
|
||||||
}else{
|
} else {
|
||||||
data.lang='zh';
|
data.lang = 'zh';
|
||||||
}
|
}
|
||||||
updateQuest(data.id,data).then(resp => {
|
updateQuest(data.id, data).then(resp => {
|
||||||
this.reloadTable();
|
this.reloadTable();
|
||||||
this.$message.success(this.$t('scriptRecord.modifyScriptSuccess'));
|
this.$message.success(this.$t('scriptRecord.modifyScriptSuccess'));
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.$messageBox(`${this.$t('scriptRecord.modifyScriptFail')}: ${error.message}`);
|
this.$messageBox(`${this.$t('scriptRecord.modifyScriptFail')}: ${error.message}`);
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
// 创建
|
// 创建
|
||||||
handleCreate() {
|
handleCreate() {
|
||||||
this.$refs.createScript.doShow(null);
|
this.$refs.createScript.doShow(null);
|
||||||
},
|
},
|
||||||
covertData(row){
|
covertData(row) {
|
||||||
let releaseReview=ConstConfig.ConstSelect.releaseReview;
|
const releaseReview = ConstConfig.ConstSelect.releaseReview;
|
||||||
let lastData=Object.assign({}, row);
|
const lastData = Object.assign({}, row);
|
||||||
if(Cookies.get("user_lang")=="en"){
|
if (Cookies.get('user_lang') == 'en') {
|
||||||
releaseReview.forEach(function(element){
|
releaseReview.forEach(function(element) {
|
||||||
let rolename=element.value;
|
const rolename = element.value;
|
||||||
if(lastData.status==rolename){
|
if (lastData.status == rolename) {
|
||||||
lastData.status=element.enlabel;
|
lastData.status = element.enlabel;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}else{
|
} else {
|
||||||
releaseReview.forEach(function(element){
|
releaseReview.forEach(function(element) {
|
||||||
let rolename=element.value;
|
const rolename = element.value;
|
||||||
if(lastData.status==rolename){
|
if (lastData.status == rolename) {
|
||||||
lastData.status=element.label;
|
lastData.status = element.label;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return lastData.status;
|
return lastData.status;
|
||||||
// let explanation=lastData.explanation?'{ 说明:'+lastData.explanation+'}':'';
|
// let explanation=lastData.explanation?'{ 说明:'+lastData.explanation+'}':'';
|
||||||
// return lastData.status+explanation;
|
// return lastData.status+explanation;
|
||||||
},
|
},
|
||||||
handleConfirmPublish(data){
|
handleConfirmPublish(data) {
|
||||||
publishQuest(data.id,{'scriptName':data.scriptName}).then(resp => {
|
publishQuest(data.id, {'scriptName':data.scriptName}).then(resp => {
|
||||||
this.reloadTable();
|
this.reloadTable();
|
||||||
this.$message.success(this.$t('scriptRecord.publishScriptSuccess'));
|
this.$message.success(this.$t('scriptRecord.publishScriptSuccess'));
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.$messageBox(`${this.$t('scriptRecord.publishScriptFailed')}: ${error.message}`);
|
this.$messageBox(`${this.$t('scriptRecord.publishScriptFailed')}: ${error.message}`);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
publishScript(index,row){
|
publishScript(index, row) {
|
||||||
if(this.$store.getters.roles.indexOf(admin) >= 0 || this.$store.getters.roles.indexOf(superAdmin) >= 0){
|
if (this.$store.getters.roles.indexOf(admin) >= 0 || this.$store.getters.roles.indexOf(superAdmin) >= 0) {
|
||||||
this.$refs.publishScript.doShow(row);
|
this.$refs.publishScript.doShow(row);
|
||||||
}else{
|
} else {
|
||||||
this.$confirm(this.$t('scriptRecord.releaseScriptTip'), this.$t('global.tips'), {
|
this.$confirm(this.$t('scriptRecord.releaseScriptTip'), this.$t('global.tips'), {
|
||||||
confirmButtonText: this.$t('global.confirm'),
|
confirmButtonText: this.$t('global.confirm'),
|
||||||
cancelButtonText: this.$t('global.cancel'),
|
cancelButtonText: this.$t('global.cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
publishQuest(row.id,{name:''}).then(resp => {
|
publishQuest(row.id, {name:''}).then(resp => {
|
||||||
this.reloadTable();
|
this.reloadTable();
|
||||||
this.$message.success(this.$t('scriptRecord.releaseScriptSuccess'));
|
this.$message.success(this.$t('scriptRecord.releaseScriptSuccess'));
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.$messageBox(`${this.$t('scriptRecord.releaseScriptFailed')}: ${error.message}`);
|
this.$messageBox(`${this.$t('scriptRecord.releaseScriptFailed')}: ${error.message}`);
|
||||||
});
|
});
|
||||||
}).catch(() => { });
|
}).catch(() => { });
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
covertButtonname(){
|
covertButtonname() {
|
||||||
if(this.$store.getters.roles.indexOf(admin) >= 0 || this.$store.getters.roles.indexOf(superAdmin) >= 0){
|
if (this.$store.getters.roles.indexOf(admin) >= 0 || this.$store.getters.roles.indexOf(superAdmin) >= 0) {
|
||||||
return this.$t('scriptRecord.publish');
|
return this.$t('scriptRecord.publish');
|
||||||
}else{
|
} else {
|
||||||
return this.$t('scriptRecord.applyPublish');
|
return this.$t('scriptRecord.applyPublish');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
revokeScript(index,row){
|
revokeScript(index, row) {
|
||||||
this.$confirm(this.$t('scriptRecord.revokeScriptTip'), this.$t('global.tips'), {
|
this.$confirm(this.$t('scriptRecord.revokeScriptTip'), this.$t('global.tips'), {
|
||||||
confirmButtonText: this.$t('global.confirm'),
|
confirmButtonText: this.$t('global.confirm'),
|
||||||
cancelButtonText: this.$t('global.cancel'),
|
cancelButtonText: this.$t('global.cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
retractQuest(row.id).then(resp => {
|
retractQuest(row.id).then(resp => {
|
||||||
this.reloadTable();
|
this.reloadTable();
|
||||||
this.$message.success(this.$t('approval.revokeScriptSuccess'));
|
this.$message.success(this.$t('approval.revokeScriptSuccess'));
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.$messageBox(`${this.$t('approval.revokeScriptFailed')}: ${error.message}`);
|
this.$messageBox(`${this.$t('approval.revokeScriptFailed')}: ${error.message}`);
|
||||||
});
|
});
|
||||||
}).catch(() => { });
|
}).catch(() => { });
|
||||||
},
|
},
|
||||||
previewScript(index,row){
|
previewScript(index, row) {
|
||||||
scriptDraftRecordNotify(row.id).then(resp => {
|
scriptDraftRecordNotify(row.id).then(resp => {
|
||||||
const query = { mapId: row.mapId, group: resp.data, scriptId: row.id,skinCode:this.$route.query.skinCode,try:0};
|
const query = { mapId: row.mapId, group: resp.data, scriptId: row.id, try:0};
|
||||||
this.$router.push({ path: `${UrlConfig.design.display}/demon`, query });
|
// skinCode:this.$route.query.skinCode,
|
||||||
launchFullscreen();
|
this.$router.push({ path: `${UrlConfig.design.display}/demon`, query });
|
||||||
}).catch(error => {
|
launchFullscreen();
|
||||||
this.$messageBox(`${this.$t('scriptRecord.createSimulationFail')}: ${error.message}`);
|
}).catch(error => {
|
||||||
});
|
this.$messageBox(`${this.$t('scriptRecord.createSimulationFail')}: ${error.message}`);
|
||||||
// skinCode=02&group=16-128-757&prdType=02&mapId=18&code=JLFZZX-1&goodsId=&try=0
|
});
|
||||||
}
|
// skinCode=02&group=16-128-757&prdType=02&mapId=18&code=JLFZZX-1&goodsId=&try=0
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style rel="stylesheet/scss" lang="scss" scoped>
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
||||||
|
@ -1,70 +1,70 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<el-dialog :title="title" :visible.sync="dialogVisible" width="500px" :before-close="doClose" center>
|
<el-dialog :title="title" :visible.sync="dialogVisible" width="500px" :before-close="doClose" center>
|
||||||
<data-form ref="dataform" :form="form" :formModel="formModel" :rules="rules"></data-form>
|
<data-form ref="dataform" :form="form" :form-model="formModel" :rules="rules" />
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
<el-button type="primary" @click="doCreate">{{$t('global.confirm')}}</el-button>
|
<el-button type="primary" @click="doCreate">{{ $t('global.confirm') }}</el-button>
|
||||||
<el-button @click="doClose">{{$t('global.cancel')}}</el-button>
|
<el-button @click="doClose">{{ $t('global.cancel') }}</el-button>
|
||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'ScriptOperate',
|
name: 'ScriptOperate',
|
||||||
data() {
|
props: {
|
||||||
return {
|
title: String,
|
||||||
dialogVisible: false,
|
type:String
|
||||||
formModel:{
|
},
|
||||||
scriptName:'',
|
data() {
|
||||||
id:'',
|
return {
|
||||||
},
|
dialogVisible: false,
|
||||||
isShow: false,
|
formModel:{
|
||||||
}
|
scriptName:'',
|
||||||
|
id:''
|
||||||
|
},
|
||||||
|
isShow: false
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
form() {
|
||||||
|
const form = {
|
||||||
|
labelWidth: '150px',
|
||||||
|
items: [
|
||||||
|
{ prop: 'scriptName', label: this.$t('approval.scriptName'), type: 'text', required: true}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
return form;
|
||||||
},
|
},
|
||||||
props: {
|
rules() {
|
||||||
title: String,
|
const crules = {
|
||||||
type:String,
|
scriptName: [
|
||||||
},
|
{ required: true, message: this.$t('approval.inputScriptName'), trigger: 'blur' }
|
||||||
computed: {
|
]
|
||||||
form() {
|
};
|
||||||
let form={
|
return crules;
|
||||||
labelWidth: '150px',
|
|
||||||
items: [
|
|
||||||
{ prop: 'scriptName', label: this.$t('approval.scriptName'), type: 'text', required: true},
|
|
||||||
]
|
|
||||||
}
|
|
||||||
return form
|
|
||||||
},
|
|
||||||
rules() {
|
|
||||||
let crules ={
|
|
||||||
scriptName: [
|
|
||||||
{ required: true, message: this.$t('approval.inputScriptName'), trigger: 'blur' },
|
|
||||||
]
|
|
||||||
}
|
|
||||||
return crules
|
|
||||||
},
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
doShow(row) {
|
|
||||||
this.formModel.scriptName=row.name;
|
|
||||||
this.formModel.id=row.id;
|
|
||||||
this.dialogVisible = true
|
|
||||||
},
|
|
||||||
doCreate() {
|
|
||||||
let self = this
|
|
||||||
this.$refs.dataform.validateForm(() => {
|
|
||||||
self.$emit('create', Object.assign({}, this.formModel));
|
|
||||||
self.doClose()
|
|
||||||
})
|
|
||||||
},
|
|
||||||
doClose() {
|
|
||||||
this.$refs.dataform.resetForm();
|
|
||||||
this.isShow = false;
|
|
||||||
this.dialogVisible = false
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
},
|
||||||
|
methods: {
|
||||||
|
doShow(row) {
|
||||||
|
this.formModel.scriptName = row.name;
|
||||||
|
this.formModel.id = row.id;
|
||||||
|
this.dialogVisible = true;
|
||||||
|
},
|
||||||
|
doCreate() {
|
||||||
|
const self = this;
|
||||||
|
this.$refs.dataform.validateForm(() => {
|
||||||
|
self.$emit('create', Object.assign({}, this.formModel));
|
||||||
|
self.doClose();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
doClose() {
|
||||||
|
this.$refs.dataform.resetForm();
|
||||||
|
this.isShow = false;
|
||||||
|
this.dialogVisible = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
/deep/ .el-dialog--center .el-dialog__body{
|
/deep/ .el-dialog--center .el-dialog__body{
|
||||||
|
@ -61,322 +61,307 @@
|
|||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import Cookies from 'js-cookie';
|
import Cookies from 'js-cookie';
|
||||||
import ConstConfig from '@/scripts/ConstConfig';
|
import ConstConfig from '@/scripts/ConstConfig';
|
||||||
import {addScriptAction,modifyScriptAction,getAvailableDeviceCommand,getDeviceCodeByDeviceType,getScriptPlayMember} from '@/api/simulation';
|
import {addScriptAction, modifyScriptAction, getAvailableDeviceCommand, getDeviceCodeByDeviceType, getScriptPlayMember} from '@/api/simulation';
|
||||||
export default {
|
export default {
|
||||||
name: 'addAction',
|
name: 'AddAction',
|
||||||
props: {
|
props: {
|
||||||
group: {
|
group: {
|
||||||
type: String,
|
type: String,
|
||||||
required: true
|
required: true
|
||||||
},
|
|
||||||
size:{
|
|
||||||
type: Object,
|
|
||||||
required: true
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
watch:{
|
size:{
|
||||||
'$store.state.map.mapViewLoadedCount': function (val) {
|
type: Object,
|
||||||
Vue.prototype.$jlmap.setOptions(this.$store.state.scriptRecord.mapLocation);
|
required: true
|
||||||
this.isPause=!(this.$store.state.scriptRecord.simulationPause);
|
}
|
||||||
this.$parent.$parent.$parent.setIsParse(this.isPause);
|
},
|
||||||
},
|
data() {
|
||||||
'$store.state.scriptRecord.simulationPause': function(val){
|
return {
|
||||||
this.isPause=!(this.$store.state.scriptRecord.simulationPause);
|
buttonName:this.$t('scriptRecord.addConversitionButton'),
|
||||||
this.$parent.$parent.$parent.setIsParse(this.isPause);
|
operateType:'add',
|
||||||
this.$refs['modalData'].clearValidate();
|
modalData:{
|
||||||
this.$refs['commandData'].clearValidate();
|
actionVO:{
|
||||||
if(!val)
|
memberId:'',
|
||||||
{
|
targetId:'',
|
||||||
this.initActionData();
|
reply:'',
|
||||||
this.initCommandActionData();
|
type:'Conversation'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
commandData:{
|
||||||
data() {
|
action:{
|
||||||
return {
|
memberId:'',
|
||||||
buttonName:this.$t('scriptRecord.addConversitionButton'),
|
deviceCommand:'',
|
||||||
operateType:"add",
|
commandParamList:[],
|
||||||
modalData:{
|
type:'Command'
|
||||||
actionVO:{
|
|
||||||
memberId:"",
|
|
||||||
targetId:"",
|
|
||||||
reply:"",
|
|
||||||
type:"Conversation",
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
commandData:{
|
param:{
|
||||||
action:{
|
startStation:'',
|
||||||
memberId:"",
|
endStation:''
|
||||||
deviceCommand:"",
|
}
|
||||||
commandParamList:[],
|
},
|
||||||
type:"Command",
|
isPause:false,
|
||||||
},
|
isNotModify:true,
|
||||||
param:{
|
modifying:false,
|
||||||
startStation:"",
|
adding:false,
|
||||||
endStation:"",
|
isJinLu:false,
|
||||||
}
|
stationList:[],
|
||||||
|
memberList:[],
|
||||||
|
deviceCommandList:[],
|
||||||
|
orginMemberList:[],
|
||||||
|
rules:{
|
||||||
|
actionVO:{
|
||||||
|
memberId:[
|
||||||
|
{ required: true, message: this.$t('scriptRecord.narratorRules'), trigger: 'change' }
|
||||||
|
],
|
||||||
|
reply:[
|
||||||
|
{ required: true, message: this.$t('scriptRecord.conversitionContentRules'), trigger: 'blur' }
|
||||||
|
],
|
||||||
|
targetId:[
|
||||||
|
{ required: true, message: this.$t('scriptRecord.receiverRules'), trigger: 'change' }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
commandRules:{
|
||||||
|
action:{
|
||||||
|
memberId:[
|
||||||
|
{ required: true, message: this.$t('scriptRecord.executorRules'), trigger: 'change' }
|
||||||
|
],
|
||||||
|
deviceCommand:[
|
||||||
|
{ required: true, message: this.$t('scriptRecord.executeCommandRules'), trigger: 'change' }
|
||||||
|
]
|
||||||
},
|
},
|
||||||
isPause:false,
|
param:{
|
||||||
isNotModify:true,
|
startStation:[
|
||||||
modifying:false,
|
{ required: true, message: this.$t('scriptRecord.startStationRules'), trigger: 'change' }
|
||||||
adding:false,
|
],
|
||||||
isJinLu:false,
|
endStation:[
|
||||||
stationList:[],
|
{ required: true, message: this.$t('scriptRecord.endStationRules'), trigger: 'change' }
|
||||||
memberList:[],
|
]
|
||||||
deviceCommandList:[],
|
|
||||||
orginMemberList:[],
|
|
||||||
rules:{
|
|
||||||
actionVO:{
|
|
||||||
memberId:[
|
|
||||||
{ required: true, message: this.$t('scriptRecord.narratorRules'), trigger: 'change' }
|
|
||||||
],
|
|
||||||
reply:[
|
|
||||||
{ required: true, message: this.$t('scriptRecord.conversitionContentRules'), trigger: 'blur' }
|
|
||||||
],
|
|
||||||
targetId:[
|
|
||||||
{ required: true, message: this.$t('scriptRecord.receiverRules'), trigger: 'change' }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
},
|
|
||||||
commandRules:{
|
|
||||||
action:{
|
|
||||||
memberId:[
|
|
||||||
{ required: true, message: this.$t('scriptRecord.executorRules'), trigger: 'change' }
|
|
||||||
],
|
|
||||||
deviceCommand:[
|
|
||||||
{ required: true, message: this.$t('scriptRecord.executeCommandRules'), trigger: 'change' }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
param:{
|
|
||||||
startStation:[
|
|
||||||
{ required: true, message: this.$t('scriptRecord.startStationRules'), trigger: 'change' }
|
|
||||||
],
|
|
||||||
endStation:[
|
|
||||||
{ required: true, message: this.$t('scriptRecord.endStationRules'), trigger: 'change' }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
watch:{
|
||||||
|
'$store.state.map.mapViewLoadedCount': function (val) {
|
||||||
|
Vue.prototype.$jlmap.setOptions(this.$store.state.scriptRecord.mapLocation);
|
||||||
|
this.isPause = !(this.$store.state.scriptRecord.simulationPause);
|
||||||
|
this.$parent.$parent.$parent.setIsParse(this.isPause);
|
||||||
},
|
},
|
||||||
mounted(){
|
'$store.state.scriptRecord.simulationPause': function(val) {
|
||||||
this.initData();
|
this.isPause = !(this.$store.state.scriptRecord.simulationPause);
|
||||||
},
|
this.$parent.$parent.$parent.setIsParse(this.isPause);
|
||||||
methods:{
|
this.$refs['modalData'].clearValidate();
|
||||||
initData(){
|
this.$refs['commandData'].clearValidate();
|
||||||
this.buttonName=this.$t('scriptRecord.addConversitionButton');
|
if (!val) {
|
||||||
this.operateType="add";
|
this.initActionData();
|
||||||
getScriptPlayMember(this.group).then(resp => {
|
this.initCommandActionData();
|
||||||
let roleTypeList=ConstConfig.ConstSelect.roleType;
|
}
|
||||||
this.orginMemberList=resp.data;
|
}
|
||||||
let lastData=JSON.stringify(resp.data);
|
},
|
||||||
roleTypeList.forEach(function(element){
|
mounted() {
|
||||||
let rolename=element.value;
|
this.initData();
|
||||||
if(Cookies.get("user_lang")=="en"){
|
},
|
||||||
lastData=lastData.replace(new RegExp(rolename,'g'),element.enLabel);
|
methods:{
|
||||||
}else{
|
initData() {
|
||||||
|
this.buttonName = this.$t('scriptRecord.addConversitionButton');
|
||||||
|
this.operateType = 'add';
|
||||||
|
getScriptPlayMember(this.group).then(resp => {
|
||||||
|
const roleTypeList = ConstConfig.ConstSelect.roleType;
|
||||||
|
this.orginMemberList = resp.data;
|
||||||
|
let lastData = JSON.stringify(resp.data);
|
||||||
|
roleTypeList.forEach(function(element) {
|
||||||
|
const rolename = element.value;
|
||||||
|
if (Cookies.get('user_lang') == 'en') {
|
||||||
|
lastData = lastData.replace(new RegExp(rolename, 'g'), element.enLabel);
|
||||||
|
} else {
|
||||||
|
|
||||||
lastData=lastData.replace(new RegExp(rolename,'g'),element.label);
|
lastData = lastData.replace(new RegExp(rolename, 'g'), element.label);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
lastData = JSON.parse(lastData);
|
||||||
|
this.memberList = lastData;
|
||||||
|
this.getDeviceCode();
|
||||||
|
this.resetDisabled();
|
||||||
|
this.initCommandActionData();
|
||||||
|
}).catch(error => {});
|
||||||
|
},
|
||||||
|
changeRole(index) {
|
||||||
|
const role = this.orginMemberList.find(elem=>{ return elem.id == index; }).role;
|
||||||
|
const data = {role:role};
|
||||||
|
getAvailableDeviceCommand(data).then(response=>{
|
||||||
|
if (Cookies.get('user_lang') == 'en') {
|
||||||
|
const tempData = response.data;
|
||||||
|
tempData.forEach( element => {
|
||||||
|
switch (element.deviceCommand) {
|
||||||
|
case 'Train_Manual_Limit_Drive': {
|
||||||
|
element.label = 'Confirm to run to the front station';
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 'Train_Manual_Route_Blocking_Drive': {
|
||||||
|
element.label = 'Drive as the route block method';
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
lastData=JSON.parse(lastData);
|
this.deviceCommandList = tempData;
|
||||||
this.memberList=lastData;
|
} else {
|
||||||
this.getDeviceCode();
|
this.deviceCommandList = response.data;
|
||||||
this.resetDisabled();
|
}
|
||||||
this.initCommandActionData();
|
if (response.data.length <= 0) {
|
||||||
}).catch(error => {})
|
this.commandData.action.deviceCommand = '';
|
||||||
},
|
this.isJinLu = false;
|
||||||
changeRole(index){
|
}
|
||||||
let role=this.orginMemberList.find(elem=>{return elem.id==index}).role;
|
});
|
||||||
let data={role:role};
|
},
|
||||||
getAvailableDeviceCommand(data).then(response=>{
|
getDeviceCode() {
|
||||||
if(Cookies.get("user_lang")=="en"){
|
const params = {deviceType:'StationStand'};
|
||||||
let tempData=response.data;
|
const group = this.group;
|
||||||
tempData.forEach( element => {
|
getDeviceCodeByDeviceType(group, params).then(response =>{
|
||||||
switch(element.deviceCommand){
|
let resultData = response.data;
|
||||||
case "Train_Manual_Limit_Drive":{
|
resultData = JSON.parse(JSON.stringify(response.data).replace(/groupNumber/g, 'name'));
|
||||||
element.label="Confirm to run to the front station";
|
this.stationList = resultData;
|
||||||
break;
|
});
|
||||||
}
|
},
|
||||||
case "Train_Manual_Route_Blocking_Drive":{
|
addCommandAction(formName) {
|
||||||
element.label="Drive as the route block method";
|
this.$refs[formName].validate((valid) => {
|
||||||
break;
|
if (valid) {
|
||||||
}
|
const group = this.group;
|
||||||
}
|
this.commandData.action.type = 'Command';
|
||||||
});
|
if (this.commandData.action.deviceCommand == 'Train_Manual_Route_Blocking_Drive') { this.commandData.action.commandParamList = [this.commandData.param.startStation, this.commandData.param.endStation]; }
|
||||||
this.deviceCommandList=tempData;
|
const data = this.commandData.action;
|
||||||
}else{
|
const obj = this;
|
||||||
this.deviceCommandList=response.data;
|
this.adding = true;
|
||||||
}
|
addScriptAction(group, data).then(response=>{
|
||||||
if(response.data.length<=0)
|
this.adding = false;
|
||||||
{
|
this.$message.success(this.$t('scriptRecord.addCommandSucess'));
|
||||||
this.commandData.action.deviceCommand="";
|
this.$emit('create');
|
||||||
this.isJinLu=false;
|
// this.$emit('create',[this.commandData.action.memberId]);
|
||||||
}
|
// this.$parent.$parent.$refs['addRole'].resetData([this.commandData.action.memberId]);
|
||||||
});
|
// this.initCommandActionData();
|
||||||
},
|
}).catch(error => {
|
||||||
getDeviceCode(){
|
this.adding = false;
|
||||||
let params = {deviceType:"StationStand"};
|
this.$messageBox(`${this.$t('scriptRecord.addCommandFail')}: ${error.message}`);
|
||||||
let group=this.group;
|
});
|
||||||
getDeviceCodeByDeviceType(group,params).then(response =>{
|
} else {
|
||||||
let resultData=response.data;
|
console.log('error submit!!');
|
||||||
resultData=JSON.parse(JSON.stringify(response.data).replace(/groupNumber/g,"name"));
|
return false;
|
||||||
this.stationList=resultData;
|
}
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
addCommandAction(formName){
|
addScriptActionInfo(formName) {
|
||||||
this.$refs[formName].validate((valid) => {
|
this.$refs[formName].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
let group=this.group;
|
const group = this.group;
|
||||||
this.commandData.action.type="Command";
|
this.modalData.actionVO.type = 'Conversation';
|
||||||
if(this.commandData.action.deviceCommand=="Train_Manual_Route_Blocking_Drive")
|
const data = this.modalData.actionVO;
|
||||||
{this.commandData.action.commandParamList=[this.commandData.param.startStation,this.commandData.param.endStation];}
|
const obj = this;
|
||||||
let data=this.commandData.action;
|
this.modifying = true;
|
||||||
let obj=this;
|
if (this.operateType == 'add') {
|
||||||
this.adding=true;
|
addScriptAction(group, data).then(response=>{
|
||||||
addScriptAction(group,data).then(response=>{
|
this.modifying = false;
|
||||||
this.adding=false;
|
this.$message.success(this.$t('scriptRecord.addConversitionSuccess'));
|
||||||
this.$message.success(this.$t('scriptRecord.addCommandSucess'));
|
|
||||||
this.$emit('create');
|
this.$emit('create');
|
||||||
// this.$emit('create',[this.commandData.action.memberId]);
|
// [this.modalData.actionVO.memberId]
|
||||||
// this.$parent.$parent.$refs['addRole'].resetData([this.commandData.action.memberId]);
|
// this.initActionData();
|
||||||
// this.initCommandActionData();
|
// this.$parent.$parent.$refs['addRole'].resetData([this.modalData.actionVO.memberId,this.modalData.actionVO.targetId]);
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.adding=false;
|
this.modifying = false;
|
||||||
this.$messageBox(`${this.$t('scriptRecord.addCommandFail')}: ${error.message}`);
|
this.$messageBox(`${this.$t('scriptRecord.addConversitionFail')}: ${error.message}`);
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
const actionId = this.modalData.actionVO.id;
|
||||||
|
modifyScriptAction(group, actionId, data).then(response=>{
|
||||||
|
this.modifying = false;
|
||||||
|
this.isNotModify = true;
|
||||||
|
this.$emit('setDisabled', this.isNotModify);
|
||||||
|
this.buttonName = this.$t('scriptRecord.addConversitionButton');
|
||||||
|
this.operateType = 'add';
|
||||||
|
this.$message.success(this.$t('scriptRecord.modifyConversitionSuccess'));
|
||||||
|
this.$emit('create');
|
||||||
|
// this.$parent.$parent.$refs['addRole'].resetData([this.modalData.action.memberId,this.modalData.action.targetId]);
|
||||||
|
this.initActionData();
|
||||||
|
}).catch(error => {
|
||||||
|
this.modifying = false;
|
||||||
|
this.$messageBox(`${this.$t('scriptRecord.modifyConversitionFail')}: ${error.message}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else {
|
} else {
|
||||||
console.log('error submit!!');
|
console.log('error submit!!');
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
addScriptActionInfo(formName){
|
|
||||||
this.$refs[formName].validate((valid) => {
|
|
||||||
if (valid) {
|
|
||||||
let group=this.group;
|
|
||||||
this.modalData.actionVO.type="Conversation";
|
|
||||||
let data=this.modalData.actionVO;
|
|
||||||
let obj=this;
|
|
||||||
this.modifying=true;
|
|
||||||
if(this.operateType=="add")
|
|
||||||
{
|
|
||||||
addScriptAction(group,data).then(response=>{
|
|
||||||
this.modifying=false;
|
|
||||||
this.$message.success(this.$t('scriptRecord.addConversitionSuccess'));
|
|
||||||
this.$emit('create');
|
|
||||||
// [this.modalData.actionVO.memberId]
|
|
||||||
// this.initActionData();
|
|
||||||
// this.$parent.$parent.$refs['addRole'].resetData([this.modalData.actionVO.memberId,this.modalData.actionVO.targetId]);
|
|
||||||
}).catch(error => {
|
|
||||||
this.modifying=false;
|
|
||||||
this.$messageBox(`${this.$t('scriptRecord.addConversitionFail')}: ${error.message}`);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
let actionId=this.modalData.actionVO.id;
|
|
||||||
modifyScriptAction(group,actionId,data).then(response=>{
|
|
||||||
this.modifying=false;
|
|
||||||
this.isNotModify=true;
|
|
||||||
this.$emit("setDisabled",this.isNotModify);
|
|
||||||
this.buttonName=this.$t('scriptRecord.addConversitionButton');
|
|
||||||
this.operateType="add";
|
|
||||||
this.$message.success(this.$t('scriptRecord.modifyConversitionSuccess'));
|
|
||||||
this.$emit('create');
|
|
||||||
// this.$parent.$parent.$refs['addRole'].resetData([this.modalData.action.memberId,this.modalData.action.targetId]);
|
|
||||||
this.initActionData();
|
|
||||||
}).catch(error => {
|
|
||||||
this.modifying=false;
|
|
||||||
this.$messageBox(`${this.$t('scriptRecord.modifyConversitionFail')}: ${error.message}`);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
console.log('error submit!!');
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
resetDisabled(){
|
|
||||||
if(this.$refs['modalData'])
|
|
||||||
{
|
|
||||||
this.$refs['modalData'].resetFields();
|
|
||||||
this.modalData.actionVO.type="Conversation";
|
|
||||||
this.modalData.actionVO.memberId="";
|
|
||||||
this.modalData.actionVO.targetId="";
|
|
||||||
this.modalData.actionVO.reply="";
|
|
||||||
}
|
}
|
||||||
},
|
});
|
||||||
clearValidate(){
|
},
|
||||||
if(this.$refs['commandData'])
|
resetDisabled() {
|
||||||
{
|
if (this.$refs['modalData']) {
|
||||||
this.$refs['commandData'].clearValidate();
|
this.$refs['modalData'].resetFields();
|
||||||
}
|
this.modalData.actionVO.type = 'Conversation';
|
||||||
},
|
this.modalData.actionVO.memberId = '';
|
||||||
initActionData(){
|
this.modalData.actionVO.targetId = '';
|
||||||
this.resetDisabled();
|
this.modalData.actionVO.reply = '';
|
||||||
},
|
}
|
||||||
initCommandActionData(){
|
},
|
||||||
if(this.$refs['commandData'])
|
clearValidate() {
|
||||||
{
|
if (this.$refs['commandData']) {
|
||||||
this.deviceCommandList=[];
|
this.$refs['commandData'].clearValidate();
|
||||||
this.$refs['commandData'].resetFields();
|
}
|
||||||
this.commandData.action.memberId="";
|
},
|
||||||
this.commandData.param.startStation="";
|
initActionData() {
|
||||||
this.isJinLu=false;
|
this.resetDisabled();
|
||||||
this.commandData.param.endStation="";
|
},
|
||||||
}
|
initCommandActionData() {
|
||||||
},
|
if (this.$refs['commandData']) {
|
||||||
changeCommand(index){
|
this.deviceCommandList = [];
|
||||||
switch(index)
|
this.$refs['commandData'].resetFields();
|
||||||
{
|
this.commandData.action.memberId = '';
|
||||||
case "Train_Manual_Route_Blocking_Drive":{
|
this.commandData.param.startStation = '';
|
||||||
this.isJinLu=true;
|
this.isJinLu = false;
|
||||||
this.getDeviceCode();
|
this.commandData.param.endStation = '';
|
||||||
this.clearValidate();
|
}
|
||||||
break;
|
},
|
||||||
}
|
changeCommand(index) {
|
||||||
default:{
|
switch (index) {
|
||||||
this.isJinLu=false;
|
case 'Train_Manual_Route_Blocking_Drive': {
|
||||||
this.clearValidate();
|
this.isJinLu = true;
|
||||||
break;
|
this.getDeviceCode();
|
||||||
}
|
this.clearValidate();
|
||||||
}
|
break;
|
||||||
},
|
}
|
||||||
changeItem(){
|
default: {
|
||||||
if(!(this.isPause&&this.isNotModify))
|
this.isJinLu = false;
|
||||||
{
|
this.clearValidate();
|
||||||
let temp=this.modalData.actionVO.memberId;
|
break;
|
||||||
this.modalData.actionVO.memberId=this.modalData.actionVO.targetId;
|
}
|
||||||
this.modalData.actionVO.targetId=temp;
|
}
|
||||||
}
|
},
|
||||||
},
|
changeItem() {
|
||||||
doShow(data){
|
if (!(this.isPause && this.isNotModify)) {
|
||||||
if(data)
|
const temp = this.modalData.actionVO.memberId;
|
||||||
{
|
this.modalData.actionVO.memberId = this.modalData.actionVO.targetId;
|
||||||
this.buttonName=this.$t('scriptRecord.modifyConversition');
|
this.modalData.actionVO.targetId = temp;
|
||||||
this.operateType="modify";
|
}
|
||||||
this.clearValidate();
|
},
|
||||||
this.isNotModify=false;
|
doShow(data) {
|
||||||
this.$emit("setDisabled",this.isNotModify);
|
if (data) {
|
||||||
// this.initData();
|
this.buttonName = this.$t('scriptRecord.modifyConversition');
|
||||||
this.modalData.actionVO.id=data.id;
|
this.operateType = 'modify';
|
||||||
this.modalData.actionVO.memberId=data.memberId;
|
this.clearValidate();
|
||||||
this.modalData.actionVO.type=data.type;
|
this.isNotModify = false;
|
||||||
if(data.type=="Conversation")
|
this.$emit('setDisabled', this.isNotModify);
|
||||||
{
|
// this.initData();
|
||||||
this.isJinLu=false;
|
this.modalData.actionVO.id = data.id;
|
||||||
this.modalData.actionVO.targetId=data.targetId;
|
this.modalData.actionVO.memberId = data.memberId;
|
||||||
this.modalData.actionVO.reply=data.reply;
|
this.modalData.actionVO.type = data.type;
|
||||||
}
|
if (data.type == 'Conversation') {
|
||||||
|
this.isJinLu = false;
|
||||||
|
this.modalData.actionVO.targetId = data.targetId;
|
||||||
|
this.modalData.actionVO.reply = data.reply;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
<style rel="stylesheet/scss" lang="scss" scoped>
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
||||||
@import "src/styles/mixin.scss";
|
@import "src/styles/mixin.scss";
|
||||||
|
@ -16,102 +16,102 @@ import Cookies from 'js-cookie';
|
|||||||
import ConstConfig from '@/scripts/ConstConfig';
|
import ConstConfig from '@/scripts/ConstConfig';
|
||||||
import {getScriptPlayMember, getScriptMemberData, cancleScriptMembers, selectScriptMembers, modifyScriptMemberSex} from '@/api/simulation';
|
import {getScriptPlayMember, getScriptMemberData, cancleScriptMembers, selectScriptMembers, modifyScriptMemberSex} from '@/api/simulation';
|
||||||
export default {
|
export default {
|
||||||
name: 'AddRole',
|
name: 'AddRole',
|
||||||
props: {
|
props: {
|
||||||
group: {
|
group: {
|
||||||
type: String,
|
type: String,
|
||||||
required: true
|
required: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
allRoleData: [],
|
allRoleData: [],
|
||||||
selectRoleData: [],
|
selectRoleData: [],
|
||||||
sexGroup: this.$t('scriptRecord.roleSexMale')
|
sexGroup: this.$t('scriptRecord.roleSexMale')
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
'$store.state.socket.simulationStart': function (val) {
|
'$store.state.socket.simulationStart': function (val) {
|
||||||
if (val) {
|
if (val) {
|
||||||
this.initData();
|
this.initData();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.initData();
|
this.initData();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initData() {
|
initData() {
|
||||||
const group=this.$props.group;
|
const group = this.$props.group;
|
||||||
getScriptMemberData(group).then(response=>{
|
getScriptMemberData(group).then(response=>{
|
||||||
const lastData=JSON.stringify(response.data);
|
const lastData = JSON.stringify(response.data);
|
||||||
this.allRoleData=this.coverData(lastData);
|
this.allRoleData = this.coverData(lastData);
|
||||||
getScriptPlayMember(group).then(response=>{
|
getScriptPlayMember(group).then(response=>{
|
||||||
const last=response.data;
|
const last = response.data;
|
||||||
// let userdata=JSON.stringify(response.data)
|
// let userdata=JSON.stringify(response.data)
|
||||||
// let reg=new RegExp('\"id\":\"(.*?)\\\"','g');
|
// let reg=new RegExp('\"id\":\"(.*?)\\\"','g');
|
||||||
// let datalist=userdata.match(reg);
|
// let datalist=userdata.match(reg);
|
||||||
const data=[];
|
const data = [];
|
||||||
last.forEach(function(element) { data.push(element.id); });
|
last.forEach(function(element) { data.push(element.id); });
|
||||||
this.selectRoleData=data;
|
this.selectRoleData = data;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
coverData(data) {
|
coverData(data) {
|
||||||
const roleTypeList=ConstConfig.ConstSelect.roleType;
|
const roleTypeList = ConstConfig.ConstSelect.roleType;
|
||||||
let lastData=data.replace(new RegExp('id', 'g'), 'key');
|
let lastData = data.replace(new RegExp('id', 'g'), 'key');
|
||||||
roleTypeList.forEach(function(element) {
|
roleTypeList.forEach(function(element) {
|
||||||
const rolename=element.value;
|
const rolename = element.value;
|
||||||
if (Cookies.get('user_lang')=='en') {
|
if (Cookies.get('user_lang') == 'en') {
|
||||||
lastData=lastData.replace(new RegExp(rolename, 'g'), element.enLabel);
|
lastData = lastData.replace(new RegExp(rolename, 'g'), element.enLabel);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
lastData=lastData.replace(new RegExp(rolename, 'g'), element.label);
|
lastData = lastData.replace(new RegExp(rolename, 'g'), element.label);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
lastData=JSON.parse(lastData);
|
lastData = JSON.parse(lastData);
|
||||||
return lastData;
|
return lastData;
|
||||||
},
|
},
|
||||||
handleChange(value, direction, movedKeys) {
|
handleChange(value, direction, movedKeys) {
|
||||||
switch (direction) {
|
switch (direction) {
|
||||||
case 'right': {
|
case 'right': {
|
||||||
const group=this.$props.group;
|
const group = this.$props.group;
|
||||||
const data=movedKeys;
|
const data = movedKeys;
|
||||||
selectScriptMembers(group, data).then(response=>{
|
selectScriptMembers(group, data).then(response=>{
|
||||||
this.$message.success(this.$t('scriptRecord.selectScriptActorSuccess'));
|
this.$message.success(this.$t('scriptRecord.selectScriptActorSuccess'));
|
||||||
this.$emit('refresh');
|
this.$emit('refresh');
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
this.$messageBox(`${this.$t('scriptRecord.selectScriptActorFail')}: ${error.message}`);
|
this.$messageBox(`${this.$t('scriptRecord.selectScriptActorFail')}: ${error.message}`);
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'left': {
|
case 'left': {
|
||||||
const group=this.$props.group;
|
const group = this.$props.group;
|
||||||
const data=movedKeys;
|
const data = movedKeys;
|
||||||
cancleScriptMembers(group, data).then(response=>{
|
cancleScriptMembers(group, data).then(response=>{
|
||||||
this.$emit('refresh');
|
this.$emit('refresh');
|
||||||
this.$message.success(this.$t('scriptRecord.cancleScriptActorSuccess'));
|
this.$message.success(this.$t('scriptRecord.cancleScriptActorSuccess'));
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
this.$messageBox(`${this.$t('scriptRecord.cancleScriptActorFail')}: ${error.message}`);
|
this.$messageBox(`${this.$t('scriptRecord.cancleScriptActorFail')}: ${error.message}`);
|
||||||
this.initData();
|
this.initData();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
changeSex(event, id) {
|
changeSex(event, id) {
|
||||||
const group=this.$props.group;
|
const group = this.$props.group;
|
||||||
const data={'gender': event};
|
const data = {'gender': event};
|
||||||
modifyScriptMemberSex(group, id, data).then(response=>{
|
modifyScriptMemberSex(group, id, data).then(response=>{
|
||||||
this.$message.success(this.$t('scriptRecord.modifyScriptActorSexSuccess'));
|
this.$message.success(this.$t('scriptRecord.modifyScriptActorSexSuccess'));
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
this.$messageBox(`${this.$t('scriptRecord.modifyScriptActorSexFail')}: ${error.message}`);
|
this.$messageBox(`${this.$t('scriptRecord.modifyScriptActorSexFail')}: ${error.message}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style rel="stylesheet/scss" lang="scss" scoped>
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
||||||
|
@ -32,116 +32,116 @@
|
|||||||
import {getScriptRecord, deleteScriptAction, getAvailableDeviceCommand } from '@/api/simulation';
|
import {getScriptRecord, deleteScriptAction, getAvailableDeviceCommand } from '@/api/simulation';
|
||||||
import ConstConfig from '@/scripts/ConstConfig';
|
import ConstConfig from '@/scripts/ConstConfig';
|
||||||
export default {
|
export default {
|
||||||
name: 'GetAction',
|
name: 'GetAction',
|
||||||
props: {
|
props: {
|
||||||
group: {
|
group: {
|
||||||
type: String,
|
type: String,
|
||||||
required: true
|
required: true
|
||||||
},
|
},
|
||||||
size: {
|
size: {
|
||||||
type: Object,
|
type: Object,
|
||||||
required: true
|
required: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
actionInfoList: [],
|
actionInfoList: [],
|
||||||
deviceCommandList: [],
|
deviceCommandList: [],
|
||||||
reverse: true,
|
reverse: true,
|
||||||
loading: true,
|
loading: true,
|
||||||
// behaviorName:"",
|
// behaviorName:"",
|
||||||
memberName: ''
|
memberName: ''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
actionInfoList: function(val) {
|
actionInfoList: function(val) {
|
||||||
this.$nextTick(function() {
|
this.$nextTick(function() {
|
||||||
var div = this.$refs['elActionScrollbar'].$refs['wrap'];
|
var div = this.$refs['elActionScrollbar'].$refs['wrap'];
|
||||||
div.scrollTop=this.$refs['elActionScrollbar'].wrap.scrollHeight;
|
div.scrollTop = this.$refs['elActionScrollbar'].wrap.scrollHeight;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.loadInitData();
|
this.loadInitData();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
loadInitData() {
|
loadInitData() {
|
||||||
// const group=this.$route.query.group;
|
// const group=this.$route.query.group;
|
||||||
const data={role: 'Driver'};
|
const data = {role: 'Driver'};
|
||||||
getAvailableDeviceCommand(data).then(response=>{
|
getAvailableDeviceCommand(data).then(response=>{
|
||||||
this.deviceCommandList=response.data;
|
this.deviceCommandList = response.data;
|
||||||
this.loadOtherData(this.$route.query);
|
this.loadOtherData(this.$route.query);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
loadOtherData(obj) {
|
loadOtherData(obj) {
|
||||||
const group=obj.group;
|
const group = obj.group;
|
||||||
getScriptRecord(group).then(response=>{
|
getScriptRecord(group).then(response=>{
|
||||||
this.$store.dispatch('scriptRecord/updateBgSet', response.data.bgSet);
|
this.$store.dispatch('scriptRecord/updateBgSet', response.data.bgSet);
|
||||||
this.actionInfoList=[];
|
this.actionInfoList = [];
|
||||||
const roleTypeList=ConstConfig.ConstSelect.roleType;
|
const roleTypeList = ConstConfig.ConstSelect.roleType;
|
||||||
|
|
||||||
let memberVOList=JSON.stringify(response.data.memberVOList);
|
let memberVOList = JSON.stringify(response.data.memberVOList);
|
||||||
roleTypeList.forEach(function(element) {
|
roleTypeList.forEach(function(element) {
|
||||||
const rolename=element.value;
|
const rolename = element.value;
|
||||||
memberVOList=memberVOList.replace(new RegExp(rolename, 'g'), element.label);
|
memberVOList = memberVOList.replace(new RegExp(rolename, 'g'), element.label);
|
||||||
});
|
});
|
||||||
memberVOList=JSON.parse(memberVOList);
|
memberVOList = JSON.parse(memberVOList);
|
||||||
const actionList=response.data.actionVOList;
|
const actionList = response.data.actionVOList;
|
||||||
|
|
||||||
actionList.forEach(element => {
|
actionList.forEach(element => {
|
||||||
|
|
||||||
const member=memberVOList.find(elem=>{ return elem.id==element.memberId; });
|
const member = memberVOList.find(elem=>{ return elem.id == element.memberId; });
|
||||||
|
|
||||||
const memberName=member.name?' - '+member.name:'';
|
const memberName = member.name ? ' - ' + member.name:'';
|
||||||
switch (element.type) {
|
switch (element.type) {
|
||||||
case 'Conversation':
|
case 'Conversation':
|
||||||
{
|
{
|
||||||
const target=memberVOList.find(elem=>{ return elem.id==element.targetId; });
|
const target = memberVOList.find(elem=>{ return elem.id == element.targetId; });
|
||||||
const targetName=target.name?' - '+target.name:'';
|
const targetName = target.name ? ' - ' + target.name:'';
|
||||||
this.actionInfoList.push({id: element.id, isCoversition: true, memberName: member.role+memberName, targetName: target.role+targetName, reply: element.reply, row: element, visible: true});
|
this.actionInfoList.push({id: element.id, isCoversition: true, memberName: member.role + memberName, targetName: target.role + targetName, reply: element.reply, row: element, visible: true});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'Command':
|
case 'Command':
|
||||||
{
|
{
|
||||||
const deviceCommand=this.deviceCommandList.find(elem=>{ return elem.deviceCommand==element.deviceCommand; });
|
const deviceCommand = this.deviceCommandList.find(elem=>{ return elem.deviceCommand == element.deviceCommand; });
|
||||||
switch (element.deviceCommand) {
|
switch (element.deviceCommand) {
|
||||||
case 'Train_Manual_Route_Blocking_Drive':
|
case 'Train_Manual_Route_Blocking_Drive':
|
||||||
{
|
{
|
||||||
this.actionInfoList.push({id: element.id, isCoversition: false, memberName: member.role+memberName, command: deviceCommand.label, row: element, visible: false});
|
this.actionInfoList.push({id: element.id, isCoversition: false, memberName: member.role + memberName, command: deviceCommand.label, row: element, visible: false});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'Train_Manual_Limit_Drive':
|
case 'Train_Manual_Limit_Drive':
|
||||||
{
|
{
|
||||||
this.actionInfoList.push({id: element.id, isCoversition: false, memberName: member.role+memberName, command: deviceCommand.label, row: element, visible: false});
|
this.actionInfoList.push({id: element.id, isCoversition: false, memberName: member.role + memberName, command: deviceCommand.label, row: element, visible: false});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (response.data.mapLocation) {
|
if (response.data.mapLocation) {
|
||||||
const mapLocation={'offsetX': response.data.mapLocation.x, 'offsetY': response.data.mapLocation.y, 'scaleRate': response.data.mapLocation.scale};
|
const mapLocation = {'offsetX': response.data.mapLocation.x, 'offsetY': response.data.mapLocation.y, 'scaleRate': response.data.mapLocation.scale};
|
||||||
this.$store.dispatch('scriptRecord/updateMapLocation', mapLocation);
|
this.$store.dispatch('scriptRecord/updateMapLocation', mapLocation);
|
||||||
}
|
}
|
||||||
this.loading=false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
deleteAction(row) {
|
deleteAction(row) {
|
||||||
const group=this.$props.group;
|
const group = this.$props.group;
|
||||||
deleteScriptAction(group, row).then(resp => {
|
deleteScriptAction(group, row).then(resp => {
|
||||||
this.reloadTable();
|
this.reloadTable();
|
||||||
this.$message.success('删除行为动作成功');
|
this.$message.success('删除行为动作成功');
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.$messageBox(`删除行为动作失败: ${error.message}`);
|
this.$messageBox(`删除行为动作失败: ${error.message}`);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
reloadTable() {
|
reloadTable() {
|
||||||
this.loadInitData();
|
this.loadInitData();
|
||||||
},
|
},
|
||||||
modifyAction(row) {
|
modifyAction(row) {
|
||||||
this.$emit('setAction', row);
|
this.$emit('setAction', row);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style rel="stylesheet/scss" lang="scss" scoped>
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-card v-loading="loading" class="map-list-main">
|
<div v-loading="loading" class="joylink-card map-list-main">
|
||||||
<div slot="header" class="clearfix">
|
<div class="clearfix">
|
||||||
<span>{{ $t('global.mapList') }}</span>
|
<span>{{ $t('global.mapList') }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div style="height: calc(100% - 47px);">
|
<div style="height: calc(100% - 47px);">
|
||||||
<filter-city v-if="project==='login'" ref="filerCity" filter-empty :query-function="queryFunction" :local-param-name="localParamName" @filterSelectChange="refresh" />
|
<filter-city v-if="project==='login'" ref="filerCity" filter-empty :query-function="queryFunction" :local-param-name="localParamName" @filterSelectChange="refresh" />
|
||||||
<el-input v-if="project==='login'" v-model="filterText" :placeholder="this.$t('global.filteringKeywords')" clearable />
|
<el-input v-if="project==='login'" v-model="filterText" :placeholder="this.$t('global.filteringKeywords')" clearable />
|
||||||
<div style="height: 100%;">
|
<div style="height: calc(100% - 76px); overflow: auto;">
|
||||||
<el-tree
|
<el-tree
|
||||||
ref="tree"
|
ref="tree"
|
||||||
:data="treeList"
|
:data="treeList"
|
||||||
@ -35,7 +35,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</el-card>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { getPublishMapTree } from '@/api/management/mapprd';
|
import { getPublishMapTree } from '@/api/management/mapprd';
|
||||||
@ -161,7 +161,7 @@ export default {
|
|||||||
localStore.set('trainingPlatformRoute' + this.userId, path);
|
localStore.set('trainingPlatformRoute' + this.userId, path);
|
||||||
},
|
},
|
||||||
forTree(item) {
|
forTree(item) {
|
||||||
item.children.forEach(childrenItem => {
|
item.children && item.children.forEach(childrenItem => {
|
||||||
childrenItem.key = childrenItem.id + childrenItem.type;
|
childrenItem.key = childrenItem.id + childrenItem.type;
|
||||||
if (childrenItem.children && childrenItem.children.length) {
|
if (childrenItem.children && childrenItem.children.length) {
|
||||||
this.forTree(childrenItem);
|
this.forTree(childrenItem);
|
||||||
@ -193,7 +193,7 @@ export default {
|
|||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.$messageBox(this.$t('error.refreshFailed'));
|
this.$messageBox(this.$t('error.refreshFailed') + error);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
nodeExpand(obj, node, ele) {
|
nodeExpand(obj, node, ele) {
|
||||||
@ -218,6 +218,11 @@ export default {
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style rel="stylesheet/scss" lang="scss" scoped>
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
||||||
|
.clearfix{
|
||||||
|
height: 47px;
|
||||||
|
line-height: 47px;
|
||||||
|
padding-left: 17px;
|
||||||
|
}
|
||||||
.back-home {
|
.back-home {
|
||||||
float: right;
|
float: right;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-wrapper">
|
<div class="app-wrapper">
|
||||||
<el-scrollbar wrap-class="scrollbar-wrapper">
|
<div v-show="listShow" class="examList" :style="{width: widthLeft+'px'}">
|
||||||
<div v-show="listShow" class="examList" :style="{width: widthLeft+'px'}">
|
<demon-list ref="demonList" :height="height" @goRoutePath="goRoutePath" />
|
||||||
<demon-list ref="demonList" :height="height" @goRoutePath="goRoutePath" />
|
</div>
|
||||||
</div>
|
<drap-left :width-left="widthLeft" @drapWidth="drapWidth" />
|
||||||
<drap-left :width-left="widthLeft" @drapWidth="drapWidth" />
|
<transition>
|
||||||
<transition>
|
<router-view :product-list="productList" />
|
||||||
<router-view :style="{ position:'relative', left:widthLeft+'px', width: (width - widthLeft)+'px'}" :product-list="productList" />
|
</transition>
|
||||||
</transition>
|
|
||||||
</el-scrollbar>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -90,9 +88,8 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.examList {
|
.examList {
|
||||||
position: fixed;
|
|
||||||
top: 61px;
|
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
float: left;
|
||||||
}
|
}
|
||||||
/deep/ .scrollbar-wrapper{
|
/deep/ .scrollbar-wrapper{
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
|
Loading…
Reference in New Issue
Block a user