This commit is contained in:
joylink_cuiweidong 2022-07-19 14:04:08 +08:00
commit 226f0fd71b
3 changed files with 329 additions and 337 deletions

View File

@ -35,7 +35,7 @@ export default class SignalButton extends Group {
return item.includes('ctc');
});
const ctcArcList = ['OCCLUSION', 'RECOVERY', 'CHANGE_DIRECTION', 'ACCIDENT', 'DEPART_ASSIST', 'PICK_ASSIST', 'ASSIST'];
const typeList = []
const typeList = [];
if (queryCtc && ctcArcList.includes(model.type)) {
this.arcShape = new Arc({
zlevel: this.zlevel,
@ -52,9 +52,9 @@ export default class SignalButton extends Group {
}
});
this.add(this.arcShape);
} else if (this.style.SignalButton
&& this.style.SignalButton.shape === 'roundWithDock'
&& typeList.includes(model.type)) {
} else if (this.style.SignalButton &&
this.style.SignalButton.shape === 'roundWithDock' &&
typeList.includes(model.type)) {
const circle1 = new Circle({
zlevel: this.zlevel,
z: this.z + 2,
@ -68,7 +68,7 @@ export default class SignalButton extends Group {
lineWidth: 1,
fill: fillColor
}
})
});
const circle2 = new Circle({
zlevel: this.zlevel,
z: this.z + 1,
@ -80,7 +80,7 @@ export default class SignalButton extends Group {
style: {
fill: '#000'
}
})
});
const circle3 = new Circle({
zlevel: this.zlevel,
z: this.z,
@ -92,16 +92,16 @@ export default class SignalButton extends Group {
style: {
fill: '#eee'
}
})
this.arcShape = circle1
this.add(circle1).add(circle2).add(circle3)
});
this.arcShape = circle1;
this.add(circle1).add(circle2).add(circle3);
} else {
this.rectButton = new Rect({
zlevel: this.zlevel,
z: this.z,
shape: {
x: model.position.x,
y: model.position.y,
x: computedPosition.x,
y: computedPosition.y,
width: 14,
height: 14
},

View File

@ -42,7 +42,6 @@ export default {
this.initStationListMode();
},
'$store.state.training.simulationUserList': function(val) {
console.log('----------11');
this.initData();
},
'$store.state.socket.simulationRoleList':function(list) {

View File

@ -110,7 +110,7 @@
</div>
</template>
<script>
import { setUID } from '@/jmapNew/utils/Uid';
// import { setUID } from '@/jmapNew/utils/Uid';
import { deepAssign } from '@/utils/index';
import { saveAssist } from '@/api/assist';
import { mapGetters } from 'vuex';
@ -160,11 +160,11 @@
},
rules: {
'name':[
{ required: true, message: '请输入名称', trigger: 'blur' },
{ required: true, message: '请输入名称', trigger: 'blur' }
],
'stationCode':[
{ required: true, message: '请选择关联车站', trigger: 'blur' },
{ required: true, message: '请选择关联车站', trigger: 'change' },
{ required: true, message: '请选择关联车站', trigger: 'change' }
],
'labelEnum': [
{ required: true, message: '请选择运行方向', trigger: 'change' }
@ -181,13 +181,6 @@
],
'runStatus': [
{ required: true, message: '请选择默认状态', trigger: 'change' }
],
'relativeStationCode': [
{ required: true, message: '请选择相对运行车站', trigger: 'blur' },
{ required: true, message: '请选择相对运行车站', trigger: 'change' }
],
'relativeLabelEnum': [
{ required: true, message: '请选择相对运行方向', trigger: 'change' }
]
},
runModelList: [