添加角色OCC_DISPATCHER信息调度

This commit is contained in:
dong 2023-05-23 16:42:31 +08:00
parent ac1ef8e5a8
commit f1a7f09cc7
5 changed files with 51 additions and 2 deletions

View File

@ -79,6 +79,7 @@ export default {
roleTypeList: [ roleTypeList: [
{label: '行调', value: 'DISPATCHER'}, {label: '行调', value: 'DISPATCHER'},
{label: 'NCC调度', value: 'NCC_DISPATCHER'}, {label: 'NCC调度', value: 'NCC_DISPATCHER'},
{label: '信息调度', value: 'OCC_DISPATCHER'},
{label: '行值', value: 'STATION_SUPERVISOR'}, {label: '行值', value: 'STATION_SUPERVISOR'},
{label: '司机', value: 'DRIVER'}, {label: '司机', value: 'DRIVER'},
{label: '通号', value: 'MAINTAINER'}, {label: '通号', value: 'MAINTAINER'},

View File

@ -80,8 +80,9 @@ export default {
'DEVICE_MANAGER' 'DEVICE_MANAGER'
], ],
typeList: [ typeList: [
{label: '行调', value: 'DISPATCHER'},
{label: 'NCC调度', value: 'NCC_DISPATCHER'}, {label: 'NCC调度', value: 'NCC_DISPATCHER'},
{label: '信息调度', value: 'OCC_DISPATCHER'},
{label: '行调', value: 'DISPATCHER'},
{label: '通号', value: 'MAINTAINER'}, {label: '通号', value: 'MAINTAINER'},
{label: '车站值班员', value: 'STATION_SUPERVISOR'}, {label: '车站值班员', value: 'STATION_SUPERVISOR'},
{label: '车站助理', value: 'STATION_ASSISTANT'}, {label: '车站助理', value: 'STATION_ASSISTANT'},

View File

@ -96,6 +96,9 @@ export default {
treeData: [{ treeData: [{
labelName: 'NCC调度', labelName: 'NCC调度',
children: [] children: []
}, {
labelName: '信息调度',
children: []
}, { }, {
labelName: '行调', labelName: '行调',
children: [] children: []
@ -178,6 +181,7 @@ export default {
this.memberData = this.$store.state.training.memberData; this.memberData = this.$store.state.training.memberData;
const dispatcherList = []; const dispatcherList = [];
const nccDispatcherList = []; const nccDispatcherList = [];
const occDispatcherList = [];
const electricDispatcherList = []; const electricDispatcherList = [];
const depotDispatcherList = []; const depotDispatcherList = [];
const stationSupervisorList = []; const stationSupervisorList = [];
@ -201,6 +205,10 @@ export default {
this.memberData[item.id].labelName = 'NCC调度' + (item.name || ''); this.memberData[item.id].labelName = 'NCC调度' + (item.name || '');
nccDispatcherList.push(this.memberData[item.id]); nccDispatcherList.push(this.memberData[item.id]);
break; break;
case 'OCC_DISPATCHER':
this.memberData[item.id].labelName = '信息调度' + (item.name || '');
occDispatcherList.push(this.memberData[item.id]);
break;
case 'DISPATCHER': case 'DISPATCHER':
this.memberData[item.id].labelName = '行调' + (item.name || ''); this.memberData[item.id].labelName = '行调' + (item.name || '');
dispatcherList.push(this.memberData[item.id]); dispatcherList.push(this.memberData[item.id]);
@ -280,6 +288,10 @@ export default {
labelName: 'NCC调度', labelName: 'NCC调度',
id: 'nccDispatcher', id: 'nccDispatcher',
children: nccDispatcherList children: nccDispatcherList
}, {
labelName: '信息调度',
id: 'occDispatcher',
children: occDispatcherList
}, { }, {
labelName: '行调', labelName: '行调',
id: 'dispatcher', id: 'dispatcher',

View File

@ -402,6 +402,7 @@ export default {
if (val && val.length) { if (val && val.length) {
const dispatcherList = []; const dispatcherList = [];
const nccDispatcherList = []; const nccDispatcherList = [];
const occDispatcherList = [];
const electricDispatcherList = []; const electricDispatcherList = [];
const depotDispatcherList = []; const depotDispatcherList = [];
const stationSupervisorList = []; const stationSupervisorList = [];
@ -425,6 +426,10 @@ export default {
this.memberData[item.id].labelName = 'NCC调度' + (item.name || ''); this.memberData[item.id].labelName = 'NCC调度' + (item.name || '');
nccDispatcherList.push(this.memberData[item.id]); nccDispatcherList.push(this.memberData[item.id]);
break; break;
case 'OCC_DISPATCHER':
this.memberData[item.id].labelName = '信息调度' + (item.name || '');
occDispatcherList.push(this.memberData[item.id]);
break;
case 'DISPATCHER': case 'DISPATCHER':
this.memberData[item.id].labelName = '行调' + (item.name || ''); this.memberData[item.id].labelName = '行调' + (item.name || '');
dispatcherList.push(this.memberData[item.id]); dispatcherList.push(this.memberData[item.id]);
@ -502,6 +507,10 @@ export default {
labelName: 'NCC调度', labelName: 'NCC调度',
id: 'nccDispatcher', id: 'nccDispatcher',
children: nccDispatcherList children: nccDispatcherList
}, {
labelName: '信息调度',
id: 'occDispatcher',
children: occDispatcherList
}, { }, {
labelName: '行调', labelName: '行调',
id: 'dispatcher', id: 'dispatcher',

View File

@ -249,6 +249,11 @@
<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" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12">
<el-form-item label="信息调度:" prop="OCC_DISPATCHER">
<el-input-number v-model="batchForm.OCC_DISPATCHER" size="small" :min="0" :step="1" :precision="0" />
</el-form-item>
</el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-form-item> <el-form-item>
@ -471,6 +476,7 @@ export default {
batchForm: { batchForm: {
DISPATCHER: 0, DISPATCHER: 0,
NCC_DISPATCHER: 0, NCC_DISPATCHER: 0,
OCC_DISPATCHER: 0,
STATION_SUPERVISOR: 0, STATION_SUPERVISOR: 0,
DRIVER: 0, DRIVER: 0,
MAINTAINER: 0, MAINTAINER: 0,
@ -592,7 +598,8 @@ export default {
name += findType.label; name += findType.label;
} }
name += '-'; name += '-';
if (obj.type == 'NCC_DISPATCHER') { const typeList = ['NCC_DISPATCHER', 'OCC_DISPATCHER'];
if (typeList.includes(obj.type)) {
if (obj.name) { if (obj.name) {
name += obj.name; name += obj.name;
} }
@ -718,6 +725,17 @@ export default {
memberMap[this.batchForm.systemType].push(member); memberMap[this.batchForm.systemType].push(member);
} }
} }
if (this.batchForm.OCC_DISPATCHER) {
for (let i = 0; i < this.batchForm.OCC_DISPATCHER; i++) {
const member = {
id: this.getMemberId(this.batchForm.systemType),
name: '',
type: 'OCC_DISPATCHER',
deviceCode: ''
};
memberMap[this.batchForm.systemType].push(member);
}
}
this.stationList.forEach(station => { this.stationList.forEach(station => {
if (!station.depot) { if (!station.depot) {
if (this.batchForm.STATION_SUPERVISOR) { if (this.batchForm.STATION_SUPERVISOR) {
@ -917,6 +935,7 @@ export default {
this.batchForm = { this.batchForm = {
DISPATCHER: 0, DISPATCHER: 0,
NCC_DISPATCHER: 0, NCC_DISPATCHER: 0,
OCC_DISPATCHER: 0,
STATION_SUPERVISOR: 0, STATION_SUPERVISOR: 0,
DRIVER: 0, DRIVER: 0,
MAINTAINER: 0, MAINTAINER: 0,
@ -979,6 +998,13 @@ export default {
deviceCode: '' deviceCode: ''
}; };
memberMap[this.generationForm.systemType].push(memberNccDispatcher); memberMap[this.generationForm.systemType].push(memberNccDispatcher);
const memberOccDispatcher = {
id: this.getMemberId(this.generationForm.systemType),
name: '',
type: 'OCC_DISPATCHER',
deviceCode: ''
};
memberMap[this.generationForm.systemType].push(memberOccDispatcher);
this.stationList.forEach(station => { this.stationList.forEach(station => {
if (!station.depot) { if (!station.depot) {
const member = { const member = {