From 5909f738f7953d951e627c5d4ad35f2edf587aab Mon Sep 17 00:00:00 2001
From: joylink_cuiweidong <364937672@qq.com>
Date: Thu, 21 Jul 2022 16:57:09 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E9=93=81=E9=A1=B9=E7=9B=AE=20ctc=20?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E6=94=B9=E6=96=B9=E3=80=81=E9=97=AD?=
=?UTF-8?q?=E5=A1=9E=E7=AD=89=E6=93=8D=E4=BD=9C=20=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/jmapNew/shape/graph/SignalButton/index.js | 51 +++---
.../theme/datie_02/menus/menuButtonCtc.vue | 169 ++++++++++++++++--
2 files changed, 185 insertions(+), 35 deletions(-)
diff --git a/src/jmapNew/shape/graph/SignalButton/index.js b/src/jmapNew/shape/graph/SignalButton/index.js
index de38f00f1..7b3d04be4 100644
--- a/src/jmapNew/shape/graph/SignalButton/index.js
+++ b/src/jmapNew/shape/graph/SignalButton/index.js
@@ -30,29 +30,33 @@ export default class SignalButton extends Group {
const model = this.model;
const computedPosition = this.computedPosition;
const fillColor = this.getTypeColor();
- const queryList = window.location.search.substring(1).split('&');
- const queryCtc = queryList.find(item => {
- return item.includes('ctc');
- });
- const ctcArcList = ['OCCLUSION', 'RECOVERY', 'CHANGE_DIRECTION', 'ACCIDENT', 'DEPART_ASSIST', 'PICK_ASSIST', 'ASSIST'];
+ // const queryList = window.location.search.substring(1).split('&');
+ // const queryCtc = queryList.find(item => {
+ // return item.includes('ctc');
+ // });
+ // const ctcArcList = ['OCCLUSION', 'RECOVERY', 'CHANGE_DIRECTION', 'ACCIDENT', 'DEPART_ASSIST', 'PICK_ASSIST', 'ASSIST'];
const typeList = [];
- if (queryCtc && ctcArcList.includes(model.type)) {
- this.arcShape = new Arc({
- zlevel: this.zlevel,
- z: this.z,
- shape: {
- cx: computedPosition.x + 7,
- cy: computedPosition.y + 7,
- r: 7
- },
- style: {
- stroke: '#69666E',
- lineWidth: 1,
- fill: fillColor
- }
- });
- this.add(this.arcShape);
- } else if (this.style.SignalButton &&
+ // debugger;
+ // console.log(model.type);
+ // if (queryCtc && ctcArcList.includes(model.type)) {
+ // // debugger;
+ // this.arcShape = new Arc({
+ // zlevel: this.zlevel,
+ // z: this.z,
+ // shape: {
+ // cx: computedPosition.x + 7,
+ // cy: computedPosition.y + 7,
+ // r: 7
+ // },
+ // style: {
+ // stroke: '#69666E',
+ // lineWidth: 1,
+ // fill: fillColor
+ // }
+ // });
+ // this.add(this.arcShape);
+ // } else
+ if (this.style.SignalButton &&
this.style.SignalButton.shape === 'roundWithDock' &&
typeList.includes(model.type)) {
const circle1 = new Circle({
@@ -314,6 +318,9 @@ export default class SignalButton extends Group {
}
}
}
+ // let
+ // { value: 'PICK', label: '接车按钮' },
+ // { value: 'SHUNT_TERMINAL', label: '调车终端按钮' },
if (!store.getters['map/checkDeviceShow'](this._code)) {
this.buttonText && this.buttonText.hide();
this.rectButton && this.rectButton.hide();
diff --git a/src/jmapNew/theme/datie_02/menus/menuButtonCtc.vue b/src/jmapNew/theme/datie_02/menus/menuButtonCtc.vue
index 943f7af0c..ac3f88c7e 100644
--- a/src/jmapNew/theme/datie_02/menus/menuButtonCtc.vue
+++ b/src/jmapNew/theme/datie_02/menus/menuButtonCtc.vue
@@ -66,7 +66,7 @@
按钮
-