Compare commits

..

No commits in common. "2048eb43dd732459960be88ab68a2cbc297042c9" and "b0b00746083cc228017b9dd5229c183fe427a740" have entirely different histories.

5 changed files with 10 additions and 21 deletions

View File

@ -10,7 +10,7 @@
"format": "prettier --write \"**/*.{js,ts,vue,scss,html,md,json}\" --ignore-path .gitignore", "format": "prettier --write \"**/*.{js,ts,vue,scss,html,md,json}\" --ignore-path .gitignore",
"test": "echo \"No test specified\" && exit 0", "test": "echo \"No test specified\" && exit 0",
"dev": "quasar dev", "dev": "quasar dev",
"build": "set NODE_ENV=local_test&&quasar build", "build": "quasar build",
"build:test": "set NODE_ENV=test&&quasar build", "build:test": "set NODE_ENV=test&&quasar build",
"build:publish": "set NODE_ENV=publish&&quasar build", "build:publish": "set NODE_ENV=publish&&quasar build",
"protoc": "node scripts/proto.cjs", "protoc": "node scripts/proto.cjs",

View File

@ -112,7 +112,7 @@ const ckmFaultOption = [
value: request.Ckm.Fault.FA_NONE, value: request.Ckm.Fault.FA_NONE,
}, },
{ {
label: '状态丢失', label: '设置故障物',
value: request.Ckm.Fault.FA_State_Loss, value: request.Ckm.Fault.FA_State_Loss,
}, },
]; ];

View File

@ -3,8 +3,6 @@ function getHost(): string {
return 'test.joylink.club/bjrtsts-server'; return 'test.joylink.club/bjrtsts-server';
} else if (process.env.ENV_MODE == 'publish') { } else if (process.env.ENV_MODE == 'publish') {
return 'joylink.club/bjrtsts-server'; return 'joylink.club/bjrtsts-server';
} else if (process.env.NODE_ENV == 'local_test') {
return '192.168.33.233:9091';
} }
// return '192.168.3.7:9091'; // return '192.168.3.7:9091';
// return '192.168.3.47:9091'; // return '192.168.3.47:9091';

View File

@ -36,8 +36,7 @@ export interface IGarageDoorState extends GraphicState {
const garageConsts = { const garageConsts = {
codeFontSize: 12, codeFontSize: 12,
codeColor: 0xffffff, codeColor: 0xffffff,
bodyLineColor: 0xffffff, bodyLineColor: 0x0000ff,
lossStateColor: 0x0000ff,
bodyLineWidth: 2, bodyLineWidth: 2,
bodyColor: 0x000000, bodyColor: 0x000000,
bodyRectWidth: 10, bodyRectWidth: 10,
@ -82,11 +81,10 @@ export class GarageDoor extends JlGraphic {
codeGraph.position.set(0, -30); codeGraph.position.set(0, -30);
} }
this.lineBody.clear(); this.lineBody.clear();
const color = this.lineBody.lineStyle(
this.states.param?.fault === request.Ckm.Fault.FA_State_Loss garageConsts.bodyLineWidth,
? garageConsts.lossStateColor garageConsts.bodyLineColor
: garageConsts.bodyLineColor; );
this.lineBody.lineStyle(garageConsts.bodyLineWidth, color);
this.lineBody.moveTo( this.lineBody.moveTo(
-garageConsts.bodyRectWidth / 2, -garageConsts.bodyRectWidth / 2,
-garageConsts.bodyRectHeight / 2 -garageConsts.bodyRectHeight / 2
@ -103,15 +101,8 @@ export class GarageDoor extends JlGraphic {
garageConsts.bodyRectWidth / 2, garageConsts.bodyRectWidth / 2,
garageConsts.bodyRectHeight / 2 garageConsts.bodyRectHeight / 2
); );
if (this.states.mgj) {
this.lineBody.moveTo(0, -garageConsts.bodyRectHeight / 2); this.lineBody.moveTo(0, -garageConsts.bodyRectHeight / 2);
this.lineBody.lineTo(0, garageConsts.bodyRectHeight / 2); this.lineBody.lineTo(0, garageConsts.bodyRectHeight / 2);
} else {
this.lineBody.moveTo(0, -garageConsts.bodyRectHeight / 2);
this.lineBody.lineTo(0, -garageConsts.bodyRectHeight / 4);
this.lineBody.moveTo(0, garageConsts.bodyRectHeight / 4);
this.lineBody.lineTo(0, garageConsts.bodyRectHeight / 2);
}
} }
buildRelation() { buildRelation() {

View File

@ -246,7 +246,7 @@ watch(
if (!container) return; if (!container) return;
const pslScene = pslStore.getPslScene(); const pslScene = pslStore.getPslScene();
pslScene?.bindDom(container); pslScene?.bindDom(container);
await pslScene?.forceReload(); await pslScene?.reload();
if (pslScene) { if (pslScene) {
pslCanvasWidth.value = pslScene.canvas.width; pslCanvasWidth.value = pslScene.canvas.width;
pslCanvasHeight.value = pslScene.canvas.height; pslCanvasHeight.value = pslScene.canvas.height;