safecheck-client 3.0.33-91 → 3.0.33-93

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,214 +1,214 @@
1
- <template>
2
- <div>
3
- <table class="table table-bordered">
4
- <tr>
5
- <td>
6
- <table class="table">
7
- <thead class="thead-inverse">
8
- <th colspan="2">
9
- 燃气表{{'[' + f_meters.length + ']'}}&nbsp;&nbsp;&nbsp;&nbsp;<span :class="style__" class="glyphicon glyphicon-plus" @click="addMeter"></span>
10
- </th>
11
- </thead>
12
- <tbody v-for="row in f_meters">
13
- <tr>
14
- <td>{{$index+1}}.</td>
15
- <td>
16
- &nbsp;&nbsp;&nbsp;&nbsp;<!--<span :class="style__" class="glyphicon glyphicon-remove" @click="removeMeter(row)"></span>-->
17
- &nbsp;&nbsp;&nbsp;&nbsp;<span class="glyphicon glyphicon-th-list" @click="editMeter($index)"></span>
18
- </td>
19
- </tr>
20
- </tbody>
21
- </table>
22
- </td>
23
- <td>
24
- <table class="table">
25
- <thead class="thead-inverse">
26
- <th colspan="2">
27
- 燃气管道{{'[' + f_plumbs.length + ']'}}&nbsp;&nbsp;&nbsp;&nbsp;<span :class="style__" class="glyphicon glyphicon-plus" @click="addPlumb"></span>
28
- </th>
29
- </thead>
30
- <tbody v-for="row in f_plumbs">
31
- <tr>
32
- <td>{{$index+1}}.</td>
33
- <td>
34
- &nbsp;&nbsp;&nbsp;&nbsp;<span :class="style__" class="glyphicon glyphicon-remove" @click="removePlumb(row)"></span>
35
- &nbsp;&nbsp;&nbsp;&nbsp;<span class="glyphicon glyphicon-th-list" @click="editPlumb($index)"></span>
36
- </td>
37
- </tr>
38
- </tbody>
39
- </table>
40
- </td>
41
- </tr>
42
- <tr>
43
- <td>
44
- <table class="table">
45
- <thead class="thead-inverse">
46
- <th colspan="2">
47
- 阀门{{'[' + f_valves.length + ']'}}&nbsp;&nbsp;&nbsp;&nbsp;<span :class="style__" class="glyphicon glyphicon-plus" @click="addValve"></span>
48
- </th>
49
- </thead>
50
- <tbody v-for="row in f_valves">
51
- <tr>
52
- <td>{{$index+1}}.</td>
53
- <td>
54
- &nbsp;&nbsp;&nbsp;&nbsp;<span :class="style__" class="glyphicon glyphicon-remove" @click="removeValve(row)"></span>
55
- &nbsp;&nbsp;&nbsp;&nbsp;<span class="glyphicon glyphicon-th-list" @click="editValve($index)"></span>
56
- </td>
57
- </tr>
58
- </tbody>
59
- </table>
60
- </td>
61
- <td>
62
- <table class="table">
63
- <thead class="thead-inverse">
64
- <th colspan="2">
65
- 报警系统{{'[' + f_alarms.length + ']'}}&nbsp;&nbsp;&nbsp;&nbsp;<span :class="style__" class="glyphicon glyphicon-plus" @click="addAlarm"></span>
66
- </th>
67
- </thead>
68
- <tbody v-for="row in f_alarms">
69
- <tr>
70
- <td>{{$index+1}}.</td>
71
- <td>
72
- &nbsp;&nbsp;&nbsp;&nbsp;<span :class="style__" class="glyphicon glyphicon-remove" @click="removeAlarm(row)"></span>
73
- &nbsp;&nbsp;&nbsp;&nbsp;<span class="glyphicon glyphicon-th-list" @click="editAlarm($index)"></span>
74
- </td>
75
- </tr>
76
- </tbody>
77
- </table>
78
- </td>
79
- </tr>
80
- <tr>
81
- <td>
82
- <table class="table">
83
- <thead class="thead-inverse">
84
- <th colspan="2">
85
- 锅炉{{'[' + f_furnaces.length + ']'}}&nbsp;&nbsp;&nbsp;&nbsp;<span :class="style__" class="glyphicon glyphicon-plus" @click="addFurnace"></span>
86
- </th>
87
- </thead>
88
- <tbody v-for="row in f_furnaces">
89
- <tr>
90
- <td>{{$index+1}}.</td>
91
- <td>
92
- &nbsp;&nbsp;&nbsp;&nbsp;<span :class="style__" class="glyphicon glyphicon-remove" @click="removeFurnace(row)"></span>
93
- &nbsp;&nbsp;&nbsp;&nbsp;<span class="glyphicon glyphicon-th-list" @click="editFurnace($index)"></span>
94
- </td>
95
- </tr>
96
- </tbody>
97
- </table>
98
- </td>
99
- <td>
100
- <table class="table">
101
- <thead class="thead-inverse">
102
- <th colspan="2">
103
- 燃气具{{'[' + f_cookers.length + ']'}}&nbsp;&nbsp;&nbsp;&nbsp;<span :class="style__" class="glyphicon glyphicon-plus" @click="addCooker"></span>
104
- </th>
105
- </thead>
106
- <tbody v-for="row in f_cookers">
107
- <tr>
108
- <td>{{$index+1}}.</td>
109
- <td>
110
- &nbsp;&nbsp;&nbsp;&nbsp;<span :class="style__" class="glyphicon glyphicon-remove" @click="removeCooker(row)"></span>
111
- &nbsp;&nbsp;&nbsp;&nbsp;<span class="glyphicon glyphicon-th-list" @click="editCooker($index)"></span>
112
- </td>
113
- </tr>
114
- </tbody>
115
- </table>
116
- </td>
117
- </tr>
118
- </table>
119
- <div style="height:50px;"></div>
120
- </div>
121
- </template>
122
-
123
- <script>
124
- import Vue from 'vue'
125
-
126
- export default {
127
- title: '安检设备界面',
128
- data() {
129
- return this.$parent.$parent.data
130
- },
131
- methods: {
132
- addMeter() {
133
- let meter = {}
134
- this.f_meters.push(meter)
135
- this.$goto('paper-meter-noncivil', {idx: this.f_meters.length-1}, 'paper-router')
136
- },
137
- editMeter(idx) {
138
- this.$goto('paper-meter-noncivil', {idx: idx}, 'paper-router')
139
- },
140
- removeMeter(item) {
141
- this.f_meters.$remove(item)
142
- },
143
- addPlumb() {
144
- let plumb = {}
145
- this.f_plumbs.push(plumb)
146
- this.$goto('paper-plumb-noncivil', {idx: this.f_plumbs.length-1}, 'paper-router')
147
- },
148
- editPlumb(idx) {
149
- this.$goto('paper-plumb-noncivil', {idx: idx}, 'paper-router')
150
- },
151
- removePlumb(item) {
152
- this.f_plumbs.$remove(item)
153
- },
154
- addValve() {
155
- let valve = {}
156
- this.f_valves.push(valve)
157
- this.$goto('paper-valve-noncivil', {idx: this.f_valves.length-1}, 'paper-router')
158
- },
159
- editValve(idx) {
160
- this.$goto('paper-valve-noncivil', {idx: idx}, 'paper-router')
161
- },
162
- removeValve(item) {
163
- this.f_valves.$remove(item)
164
- },
165
- addAlarm() {
166
- let alarm = {}
167
- this.f_alarms.push(alarm)
168
- this.$goto('paper-alarm-noncivil', {idx: this.f_alarms.length-1}, 'paper-router')
169
- },
170
- editAlarm(idx) {
171
- this.$goto('paper-alarm-noncivil', {idx: idx}, 'paper-router')
172
- },
173
- removeAlarm(item) {
174
- this.f_alarms.$remove(item)
175
- },
176
- addCooker() {
177
- let cooker = {}
178
- this.f_cookers.push(cooker)
179
- this.$goto('paper-piece-noncivil', {idx: this.f_cookers.length-1}, 'paper-router')
180
- },
181
- editCooker(idx) {
182
- this.$goto('paper-piece-noncivil', {idx: idx}, 'paper-router')
183
- },
184
- removeCooker(item) {
185
- this.f_cookers.$remove(item)
186
- },
187
- addFurnace() {
188
- let furnace = {}
189
- this.f_furnaces.push(furnace)
190
- this.$goto('paper-furnace-noncivil', {idx: this.f_furnaces.length-1}, 'paper-router')
191
- },
192
- editFurnace(idx) {
193
- this.$goto('paper-furnace-noncivil', {idx: idx}, 'paper-router')
194
- },
195
- removeFurnace(item) {
196
- this.f_furnaces.$remove(item)
197
- },
198
- },
199
- ready() {
200
- if(!this.f_meters)
201
- this.$set('f_meters', [])
202
- if(!this.f_plumbs)
203
- this.$set('f_plumbs', [])
204
- if(!this.f_valves)
205
- this.$set('f_valves', [])
206
- if(!this.f_alarms)
207
- this.$set('f_alarms', [])
208
- if(!this.f_furnaces)
209
- this.$set('f_furnaces', [])
210
- if(!this.f_cookers)
211
- this.$set('f_cookers', [])
212
- }
213
- }
214
- </script>
1
+ <template>
2
+ <div>
3
+ <table class="table table-bordered">
4
+ <tr>
5
+ <td>
6
+ <table class="table">
7
+ <thead class="thead-inverse">
8
+ <th colspan="2">
9
+ 燃气表{{'[' + f_meters.length + ']'}}&nbsp;&nbsp;&nbsp;&nbsp;<span :class="style__" class="glyphicon glyphicon-plus" @click="addMeter"></span>
10
+ </th>
11
+ </thead>
12
+ <tbody v-for="row in f_meters">
13
+ <tr>
14
+ <td>{{$index+1}}.</td>
15
+ <td>
16
+ &nbsp;&nbsp;&nbsp;&nbsp;<!--<span :class="style__" class="glyphicon glyphicon-remove" @click="removeMeter(row)"></span>-->
17
+ &nbsp;&nbsp;&nbsp;&nbsp;<span class="glyphicon glyphicon-th-list" @click="editMeter($index)"></span>
18
+ </td>
19
+ </tr>
20
+ </tbody>
21
+ </table>
22
+ </td>
23
+ <td>
24
+ <table class="table">
25
+ <thead class="thead-inverse">
26
+ <th colspan="2">
27
+ 燃气管道{{'[' + f_plumbs.length + ']'}}&nbsp;&nbsp;&nbsp;&nbsp;<span :class="style__" class="glyphicon glyphicon-plus" @click="addPlumb"></span>
28
+ </th>
29
+ </thead>
30
+ <tbody v-for="row in f_plumbs">
31
+ <tr>
32
+ <td>{{$index+1}}.</td>
33
+ <td>
34
+ &nbsp;&nbsp;&nbsp;&nbsp;<span :class="style__" class="glyphicon glyphicon-remove" @click="removePlumb(row)"></span>
35
+ &nbsp;&nbsp;&nbsp;&nbsp;<span class="glyphicon glyphicon-th-list" @click="editPlumb($index)"></span>
36
+ </td>
37
+ </tr>
38
+ </tbody>
39
+ </table>
40
+ </td>
41
+ </tr>
42
+ <tr>
43
+ <td>
44
+ <table class="table">
45
+ <thead class="thead-inverse">
46
+ <th colspan="2">
47
+ 阀门{{'[' + f_valves.length + ']'}}&nbsp;&nbsp;&nbsp;&nbsp;<span :class="style__" class="glyphicon glyphicon-plus" @click="addValve"></span>
48
+ </th>
49
+ </thead>
50
+ <tbody v-for="row in f_valves">
51
+ <tr>
52
+ <td>{{$index+1}}.</td>
53
+ <td>
54
+ &nbsp;&nbsp;&nbsp;&nbsp;<span :class="style__" class="glyphicon glyphicon-remove" @click="removeValve(row)"></span>
55
+ &nbsp;&nbsp;&nbsp;&nbsp;<span class="glyphicon glyphicon-th-list" @click="editValve($index)"></span>
56
+ </td>
57
+ </tr>
58
+ </tbody>
59
+ </table>
60
+ </td>
61
+ <td>
62
+ <table class="table">
63
+ <thead class="thead-inverse">
64
+ <th colspan="2">
65
+ 报警系统{{'[' + f_alarms.length + ']'}}&nbsp;&nbsp;&nbsp;&nbsp;<span :class="style__" class="glyphicon glyphicon-plus" @click="addAlarm"></span>
66
+ </th>
67
+ </thead>
68
+ <tbody v-for="row in f_alarms">
69
+ <tr>
70
+ <td>{{$index+1}}.</td>
71
+ <td>
72
+ &nbsp;&nbsp;&nbsp;&nbsp;<span :class="style__" class="glyphicon glyphicon-remove" @click="removeAlarm(row)"></span>
73
+ &nbsp;&nbsp;&nbsp;&nbsp;<span class="glyphicon glyphicon-th-list" @click="editAlarm($index)"></span>
74
+ </td>
75
+ </tr>
76
+ </tbody>
77
+ </table>
78
+ </td>
79
+ </tr>
80
+ <tr>
81
+ <td>
82
+ <table class="table">
83
+ <thead class="thead-inverse">
84
+ <th colspan="2">
85
+ 锅炉{{'[' + f_furnaces.length + ']'}}&nbsp;&nbsp;&nbsp;&nbsp;<span :class="style__" class="glyphicon glyphicon-plus" @click="addFurnace"></span>
86
+ </th>
87
+ </thead>
88
+ <tbody v-for="row in f_furnaces">
89
+ <tr>
90
+ <td>{{$index+1}}.</td>
91
+ <td>
92
+ &nbsp;&nbsp;&nbsp;&nbsp;<span :class="style__" class="glyphicon glyphicon-remove" @click="removeFurnace(row)"></span>
93
+ &nbsp;&nbsp;&nbsp;&nbsp;<span class="glyphicon glyphicon-th-list" @click="editFurnace($index)"></span>
94
+ </td>
95
+ </tr>
96
+ </tbody>
97
+ </table>
98
+ </td>
99
+ <td>
100
+ <table class="table">
101
+ <thead class="thead-inverse">
102
+ <th colspan="2">
103
+ 燃气具{{'[' + f_cookers.length + ']'}}&nbsp;&nbsp;&nbsp;&nbsp;<span :class="style__" class="glyphicon glyphicon-plus" @click="addCooker"></span>
104
+ </th>
105
+ </thead>
106
+ <tbody v-for="row in f_cookers">
107
+ <tr>
108
+ <td>{{$index+1}}.</td>
109
+ <td>
110
+ &nbsp;&nbsp;&nbsp;&nbsp;<span :class="style__" class="glyphicon glyphicon-remove" @click="removeCooker(row)"></span>
111
+ &nbsp;&nbsp;&nbsp;&nbsp;<span class="glyphicon glyphicon-th-list" @click="editCooker($index)"></span>
112
+ </td>
113
+ </tr>
114
+ </tbody>
115
+ </table>
116
+ </td>
117
+ </tr>
118
+ </table>
119
+ <div style="height:50px;"></div>
120
+ </div>
121
+ </template>
122
+
123
+ <script>
124
+ import Vue from 'vue'
125
+
126
+ export default {
127
+ title: '安检设备界面',
128
+ data() {
129
+ return this.$parent.$parent.data
130
+ },
131
+ methods: {
132
+ addMeter() {
133
+ let meter = {}
134
+ this.f_meters.push(meter)
135
+ this.$goto('paper-meter-noncivil', {idx: this.f_meters.length-1}, 'paper-router')
136
+ },
137
+ editMeter(idx) {
138
+ this.$goto('paper-meter-noncivil', {idx: idx}, 'paper-router')
139
+ },
140
+ removeMeter(item) {
141
+ this.f_meters.$remove(item)
142
+ },
143
+ addPlumb() {
144
+ let plumb = {}
145
+ this.f_plumbs.push(plumb)
146
+ this.$goto('paper-plumb-noncivil', {idx: this.f_plumbs.length-1}, 'paper-router')
147
+ },
148
+ editPlumb(idx) {
149
+ this.$goto('paper-plumb-noncivil', {idx: idx}, 'paper-router')
150
+ },
151
+ removePlumb(item) {
152
+ this.f_plumbs.$remove(item)
153
+ },
154
+ addValve() {
155
+ let valve = {}
156
+ this.f_valves.push(valve)
157
+ this.$goto('paper-valve-noncivil', {idx: this.f_valves.length-1}, 'paper-router')
158
+ },
159
+ editValve(idx) {
160
+ this.$goto('paper-valve-noncivil', {idx: idx}, 'paper-router')
161
+ },
162
+ removeValve(item) {
163
+ this.f_valves.$remove(item)
164
+ },
165
+ addAlarm() {
166
+ let alarm = {}
167
+ this.f_alarms.push(alarm)
168
+ this.$goto('paper-alarm-noncivil', {idx: this.f_alarms.length-1}, 'paper-router')
169
+ },
170
+ editAlarm(idx) {
171
+ this.$goto('paper-alarm-noncivil', {idx: idx}, 'paper-router')
172
+ },
173
+ removeAlarm(item) {
174
+ this.f_alarms.$remove(item)
175
+ },
176
+ addCooker() {
177
+ let cooker = {}
178
+ this.f_cookers.push(cooker)
179
+ this.$goto('paper-piece-noncivil', {idx: this.f_cookers.length-1}, 'paper-router')
180
+ },
181
+ editCooker(idx) {
182
+ this.$goto('paper-piece-noncivil', {idx: idx}, 'paper-router')
183
+ },
184
+ removeCooker(item) {
185
+ this.f_cookers.$remove(item)
186
+ },
187
+ addFurnace() {
188
+ let furnace = {}
189
+ this.f_furnaces.push(furnace)
190
+ this.$goto('paper-furnace-noncivil', {idx: this.f_furnaces.length-1}, 'paper-router')
191
+ },
192
+ editFurnace(idx) {
193
+ this.$goto('paper-furnace-noncivil', {idx: idx}, 'paper-router')
194
+ },
195
+ removeFurnace(item) {
196
+ this.f_furnaces.$remove(item)
197
+ },
198
+ },
199
+ ready() {
200
+ if(!this.f_meters)
201
+ this.$set('f_meters', [])
202
+ if(!this.f_plumbs)
203
+ this.$set('f_plumbs', [])
204
+ if(!this.f_valves)
205
+ this.$set('f_valves', [])
206
+ if(!this.f_alarms)
207
+ this.$set('f_alarms', [])
208
+ if(!this.f_furnaces)
209
+ this.$set('f_furnaces', [])
210
+ if(!this.f_cookers)
211
+ this.$set('f_cookers', [])
212
+ }
213
+ }
214
+ </script>