添加仿真成员角色

This commit is contained in:
fan 2023-09-27 17:32:49 +08:00
parent 82e67c69e6
commit 90d52176f2
5 changed files with 66 additions and 7 deletions

View File

@ -74,7 +74,8 @@ export default {
{ label: '车站引导员', value: 'STATION_FACILITATOR', enLabel: 'StationFacilitator' }, { label: '车站引导员', value: 'STATION_FACILITATOR', enLabel: 'StationFacilitator' },
{ label: '车站工务工', value: 'STATION_WORKER', enLabel: 'StationWorker' }, { label: '车站工务工', value: 'STATION_WORKER', enLabel: 'StationWorker' },
{ label: '设备管理员', value: 'DEVICE_MANAGER', enLabel: 'DeviceManager' }, { label: '设备管理员', value: 'DEVICE_MANAGER', enLabel: 'DeviceManager' },
{ label: '车务段段长', value: 'TRAIN_MASTER', enLabel: 'Train_Master' } { label: '值班站长', value: 'STATION_HEAD', enLabel: 'Station_Head' },
{ label: '站务员', value: 'STATION_ATTENDANT', enLabel: 'Station_Attendant' }
], ],
roleTypeList: [ roleTypeList: [
{label: 'NCC调度', value: 'NCC_DISPATCHER', simTypeList: ['METRO', 'RAILWAY', 'EMERGENCY']}, {label: 'NCC调度', value: 'NCC_DISPATCHER', simTypeList: ['METRO', 'RAILWAY', 'EMERGENCY']},
@ -95,11 +96,13 @@ export default {
{label: '车务段段长', value: 'TRAIN_MASTER', simTypeList: ['METRO']}, {label: '车务段段长', value: 'TRAIN_MASTER', simTypeList: ['METRO']},
{label: '工电调度', value: 'ELECTRIC_DISPATCHER', simTypeList: ['METRO']}, {label: '工电调度', value: 'ELECTRIC_DISPATCHER', simTypeList: ['METRO']},
{label: '电力工务', value: 'STATION_ELECTRIC_WORKER', simTypeList: ['METRO', 'RAILWAY']}, // 大铁:车站电务 {label: '电力工务', value: 'STATION_ELECTRIC_WORKER', simTypeList: ['METRO', 'RAILWAY']}, // 大铁:车站电务
{label: '上级部', value: 'PARENT_DEPARTMENT', simTypeList: ['METRO']}, {label: '上级部', value: 'PARENT_DEPARTMENT', simTypeList: ['METRO']},
{label: '派班员', value: 'SCHEDULING', simTypeList: ['METRO']}, {label: '派班员', value: 'SCHEDULING', simTypeList: ['METRO']},
{label: '设备管理员', value: 'DEVICE_MANAGER', simTypeList: ['RAILWAY']}, {label: '设备管理员', value: 'DEVICE_MANAGER', simTypeList: ['RAILWAY']},
{label: '值班主任', value: 'SHIFT_MANAGER', simTypeList: ['METRO']}, {label: '值班主任', value: 'SHIFT_MANAGER', simTypeList: ['METRO']},
{label: '环控调度', value: 'ENVIRONMENT_DISPATCHER', simTypeList: ['METRO']} {label: '环控调度', value: 'ENVIRONMENT_DISPATCHER', simTypeList: ['METRO']},
{label: '值班站长', value: 'STATION_HEAD', simTypeList: ['METRO']},
{label: '站务员', value: 'STATION_ATTENDANT', simTypeList: ['METRO']}
], ],
releaseReview: [ releaseReview: [
{ enlabel: 'Unpublished', label: '未发布', value: '0' }, { enlabel: 'Unpublished', label: '未发布', value: '0' },

View File

@ -23,13 +23,13 @@ export function handlerUrl() {
let OSS_URL; let OSS_URL;
if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development') {
// 开发分支 // 开发分支
BASE_API = 'http://192.168.3.233/rtss-server'; // BASE_API = 'http://192.168.3.233/rtss-server';
// 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://114.116.51.125/jlcloud'; // BASE_API = 'http://114.116.51.125/jlcloud';
// BASE_API = 'http://192.168.3.47:9000'; // 周寅 // BASE_API = 'http://192.168.3.47:9000'; // 周寅
// BASE_API = 'http://192.168.3.94:9000'; // 旭强 // BASE_API = 'http://192.168.3.94:9000'; // 旭强
// BASE_API = 'http://192.168.3.15:9000'; // 张赛 BASE_API = 'http://192.168.3.15:9000'; // 张赛
// BASE_API = 'http://192.168.3.5:9000'; // 夏增彬 // BASE_API = 'http://192.168.3.5:9000'; // 夏增彬
// BASE_API = 'http://192.168.3.37:9000'; // 卫志宏 // BASE_API = 'http://192.168.3.37:9000'; // 卫志宏
// BASE_API = 'http://b29z135112.zicp.vip'; // BASE_API = 'http://b29z135112.zicp.vip';

View File

@ -106,6 +106,9 @@ export default {
}, { }, {
labelName: '车站值班员', labelName: '车站值班员',
children: [] children: []
}, {
labelName: '值班站长',
children: []
}, { }, {
labelName: '司机', labelName: '司机',
children: [] children: []
@ -149,6 +152,10 @@ export default {
{ {
labelName: '设备管理员', labelName: '设备管理员',
children: [] children: []
},
{
labelName: '站务员',
children: []
} }
] ]
}; };
@ -207,6 +214,8 @@ export default {
const environmentDispatherList = []; const environmentDispatherList = [];
const parentDepartmentList = []; const parentDepartmentList = [];
const schedulingList = []; const schedulingList = [];
const stationHeadList = [];
const stationAttendantList = [];
const ss = this.simType == 'RAILWAY' ? '车站值班员' : '行值'; const ss = this.simType == 'RAILWAY' ? '车站值班员' : '行值';
const sew = this.simType == 'RAILWAY' ? '车站电务' : '电力工务'; const sew = this.simType == 'RAILWAY' ? '车站电务' : '电力工务';
val.forEach(item => { val.forEach(item => {
@ -256,6 +265,14 @@ export default {
this.memberData[item.id].labelName = '车站助理-' + device.name + (item.name ? `-${item.name }` : ''); this.memberData[item.id].labelName = '车站助理-' + device.name + (item.name ? `-${item.name }` : '');
stationAssistantList.push(this.memberData[item.id]); stationAssistantList.push(this.memberData[item.id]);
break; break;
case 'STATION_HEAD':
this.memberData[item.id].labelName = '车站站长' + device.name + (item.name ? `-${item.name }` : '');
stationHeadList.push(this.memberData[item.id]);
break;
case 'STATION_ATTENDANT':
this.memberData[item.id].labelName = '站务员' + device.name + (item.name ? `-${item.name }` : '');
stationAttendantList.push(this.memberData[item.id]);
break;
case 'STATION_MASTER': case 'STATION_MASTER':
this.memberData[item.id].labelName = '车站站长-' + device.name + (item.name ? `-${item.name }` : ''); this.memberData[item.id].labelName = '车站站长-' + device.name + (item.name ? `-${item.name }` : '');
stationMasterList.push(this.memberData[item.id]); stationMasterList.push(this.memberData[item.id]);
@ -308,6 +325,7 @@ export default {
this.memberData[item.id].labelName = sew + '-' + device.name + (item.name ? `-${item.name }` : ''); this.memberData[item.id].labelName = sew + '-' + device.name + (item.name ? `-${item.name }` : '');
stationElectricWorkerList.push(this.memberData[item.id]); stationElectricWorkerList.push(this.memberData[item.id]);
break; break;
} }
}); });
this.treeData = [{ this.treeData = [{
@ -372,6 +390,18 @@ export default {
memberType: 'STATION_MASTER', memberType: 'STATION_MASTER',
children: stationMasterList children: stationMasterList
}, },
{
labelName: '车站站长',
id: 'stationHead',
memberType: 'STATION_HEAD',
children: stationHeadList
},
{
labelName: '站务员',
id: 'stationAttendant',
memberType: 'STATION_ATTENDANT',
children: stationAttendantList
},
{ {
labelName: '车站信号员', labelName: '车站信号员',
id: 'stationSignaler', id: 'stationSignaler',

View File

@ -178,7 +178,7 @@ export default {
}, },
initPictureShow() { initPictureShow() {
const localWorkRoleList = ['STATION_SUPERVISOR', 'STATION_ASSISTANT', 'STATION_MASTER', 'STATION_SIGNALER', 'STATION_PASSENGER', 'STATION_SWITCH_MAN', const localWorkRoleList = ['STATION_SUPERVISOR', 'STATION_ASSISTANT', 'STATION_MASTER', 'STATION_SIGNALER', 'STATION_PASSENGER', 'STATION_SWITCH_MAN',
'STATION_FACILITATOR', 'STATION_WORKER', 'DEVICE_MANAGER', 'TRAIN_MASTER', 'DEPOT_DISPATCHER']; 'STATION_FACILITATOR', 'STATION_WORKER', 'DEVICE_MANAGER', 'TRAIN_MASTER', 'DEPOT_DISPATCHER', 'STATION_HEAD'];
if (localWorkRoleList.includes(this.roles)) { if (localWorkRoleList.includes(this.roles)) {
const terminal = this.findTerminalFromMap('localWork'); const terminal = this.findTerminalFromMap('localWork');
this.changePictureShow(terminal); this.changePictureShow(terminal);

View File

@ -244,6 +244,16 @@
<el-input-number v-model="batchForm.STATION_ELECTRIC_WORKER" size="small" :min="0" :step="1" :precision="0" /> <el-input-number v-model="batchForm.STATION_ELECTRIC_WORKER" size="small" :min="0" :step="1" :precision="0" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col v-if="batchForm.systemType === 'METRO'" :span="12">
<el-form-item label="值班站长" prop="STATION_HEAD">
<el-input-number v-model="batchForm.STATION_HEAD" size="small" :min="0" :step="1" :precision="0" />
</el-form-item>
</el-col>
<el-col v-if="batchForm.systemType === 'METRO'" :span="12">
<el-form-item label="站务员" prop="STATION_ATTENDANT">
<el-input-number v-model="batchForm.STATION_ATTENDANT" size="small" :min="0" :step="1" :precision="0" />
</el-form-item>
</el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="NCC调度" prop="NCC_DISPATCHER"> <el-form-item label="NCC调度" prop="NCC_DISPATCHER">
<el-input-number v-model="batchForm.NCC_DISPATCHER" size="small" :min="0" :step="1" :precision="0" /> <el-input-number v-model="batchForm.NCC_DISPATCHER" size="small" :min="0" :step="1" :precision="0" />
@ -495,6 +505,8 @@ export default {
SHIFT_MANAGER: 0, SHIFT_MANAGER: 0,
ENVIRONMENT_DISPATCHER: 0, ENVIRONMENT_DISPATCHER: 0,
STATION_ELECTRIC_WORKER:0, STATION_ELECTRIC_WORKER:0,
STATION_HEAD: 0,
STATION_ATTENDANT: 0,
systemType: 'METRO' systemType: 'METRO'
}, },
generationForm: { generationForm: {
@ -505,7 +517,7 @@ export default {
}, },
disStationList: [], disStationList: [],
stationShow: ['STATION_SUPERVISOR', 'DEPOT_DISPATCHER', 'SIGNAL_BUILDING', 'STATION_ASSISTANT', 'STATION_MASTER', 'STATION_SIGNALER', 'STATION_PASSENGER', 'STATION_SWITCH_MAN', stationShow: ['STATION_SUPERVISOR', 'DEPOT_DISPATCHER', 'SIGNAL_BUILDING', 'STATION_ASSISTANT', 'STATION_MASTER', 'STATION_SIGNALER', 'STATION_PASSENGER', 'STATION_SWITCH_MAN',
'STATION_FACILITATOR', 'STATION_WORKER', 'DEVICE_MANAGER', 'STATION_WORKER', 'STATION_ELECTRIC_WORKER'], 'STATION_FACILITATOR', 'STATION_WORKER', 'DEVICE_MANAGER', 'STATION_WORKER', 'STATION_ELECTRIC_WORKER', 'STATION_HEAD', 'STATION_ATTENDANT'],
conversationForm: { conversationForm: {
systemType: 'METRO', systemType: 'METRO',
id: '', id: '',
@ -1143,6 +1155,20 @@ export default {
deviceCode: station.code deviceCode: station.code
}; };
memberMap[this.generationForm.systemType].push(memberStationElectricWorker); memberMap[this.generationForm.systemType].push(memberStationElectricWorker);
const memberStationHead = {
id: this.getMemberId(this.generationForm.systemType),
name: '',
type: 'STATION_HEAD',
deviceCode: station.code
};
memberMap[this.generationForm.systemType].push(memberStationHead);
const memberStationAttendant = {
id: this.getMemberId(this.generationForm.systemType),
name: '',
type: 'STATION_ATTENDANT',
deviceCode: station.code
};
memberMap[this.generationForm.systemType].push(memberStationAttendant);
} }
}); });
const memberTrainMaster = { const memberTrainMaster = {