-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
62 lines (53 loc) · 2.82 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html>
<head>
<title>LiJunjie ElevatorDispatch</title>
<script src="JavaScript/vue.min.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="JavaScript/config.css">
</head>
<body>
<div id="App">
<template v-for="eNo in ElevatorNumber"><!--电梯数量-->
<div class="Elevator horizon">
<div class="pane leftpanel">
<template v-for="floorNo in FloorList"><!--电梯内部楼层数-->
<div class="FloorNo">{{'F'+floorNo}}</div>
</template>
</div>
<!--左右门-->
<div class="leftdoor" v-bind:id="'ldoor'+eNo"></div>
<div class="rightdoor" v-bind:id="'rdoor'+eNo"></div>
<div class="pane rightpanel">
<div class="screen">
<div class="content vis" v-bind:id="'screenUp'+eNo">▲</div>
<div class="content vis" v-bind:id="'screenDown'+eNo">▼</div>
<p class="content" v-bind:id="'floor'+eNo">1</p><!--floor number-->
</div>
<button class="button" v-on:click="Dialog(eNo,'号电梯请求帮助')">✆</button>
<button class="button" v-on:click="Emergency(eNo,'号电梯发生紧急事件,电梯已停止运行')">⚠</button>
<button class="button" v-on:click="OpenDoor(eNo,-1)">< ></button>
<button class="button" v-on:click="CloseDoor(eNo,-1)">> <</button>
<template v-for="i in FloorList"><!--电梯内部按钮-->
<button class="button" v-bind:id="'in'+eNo+'button'+i" v-on:click="InElevatorDispatch(eNo,i)">{{i}}</button>
</template>
</div>
</div>
</template>
<div class="horizon outelevator">
<div class="outContent">电梯外按钮</div>
<div class="pane Elevatorout">
<template v-for="floorNo in FloorList"><!--电梯外部层数-->
<div class="outFloorNo">{{'F'+floorNo}}</div>
</template>
</div>
<div class="pane outForButton">
<template v-for="i in FloorList"><!--电梯外部按钮-->
<button v-bind:id="'outup'+i" v-on:click="OutElevatorDispatch(i,1)" :class="{outButton:i!=FloorNumber,outButtonNull:i==FloorNumber}">▲</button>
<button v-bind:id="'outdown'+i" v-on:click="OutElevatorDispatch(i,-1)" :class="{outButton:i!=1,outButtonNull:i==1}">▼</button>
</template>
</div>
</div>
</div>
<script src="JavaScript/evaluator.js" type="text/javascript"></script>
</body>
</html>