system-clients 3.0.42 → 3.0.43-fanxian
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.
- package/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/package.json +1 -1
- package/src/components/Main.vue +92 -3
- package/src/components/parammanage/AlarmInformation.vue +122 -0
- package/src/components/parammanage/ParamManages.vue +43 -43
- package/src/components/parammanage/ParamPage.vue +314 -314
- package/src/components/parammanage/ParamPages.vue +214 -222
- package/src/components/parammanage/SinglePage.vue +237 -235
- package/src/components/parammanage/SinglePages.vue +161 -167
- package/src/components/server/Login.vue +623 -624
- package/src/components/server/ResSelectGroup.vue +140 -140
- package/src/system.js +78 -76
- package/static/newStyle/alarm.mp3 +0 -0
- package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
- package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
- package/src/images/newStyle/login-check.png +0 -0
- package/src/images/newStyle/login-con.png +0 -0
- package/src/images/newStyle/login-do.gif +0 -0
- package/src/images/newStyle/login-info.png +0 -0
- package/src/images/newStyle/login-left.png +0 -0
- package/src/images/newStyle/login-pwd.png +0 -0
- package/src/images/newStyle/login-user.png +0 -0
- package/src/images/newStyle/loginbg.gif +0 -0
- package/src/images/newStyle/loginbg1280.gif +0 -0
- package/src/images/newStyle/loginbg1366.gif +0 -0
@@ -1,2 +1,2 @@
|
|
1
|
-
#
|
2
|
-
gradle.version=3.5
|
1
|
+
#Fri Mar 13 10:30:51 GMT+08:00 2020
|
2
|
+
gradle.version=3.5
|
package/package.json
CHANGED
package/src/components/Main.vue
CHANGED
@@ -56,8 +56,19 @@
|
|
56
56
|
<!-- </div>-->
|
57
57
|
<!-- </div>-->
|
58
58
|
<!-- </div>-->
|
59
|
-
|
60
|
-
|
59
|
+
|
60
|
+
<div class='flex-row aaa system-main' id="box" v-el:box v-if="!isManger">
|
61
|
+
<div class="auto" style="position: fixed;right: 370px;top: 15px;color: #333">
|
62
|
+
<button class="btn" @click="showAbnormity = true" style="background: none;">
|
63
|
+
<img
|
64
|
+
src="../assets/shezhi-hover.png" height="15" width="15">
|
65
|
+
异常警报<label style="display: inline-block;width: 8px;height: 8px;border-radius: 50%;background-color: red;text-align: center;line-height: 30px;" v-show="showaData"></label>
|
66
|
+
</button>
|
67
|
+
<button class="btn" @click="stopSound" style="background: none;">
|
68
|
+
关闭警报
|
69
|
+
</button>
|
70
|
+
</div>
|
71
|
+
<div class="auto" style="position: fixed;right: 30px;top: 20px;color: #333">
|
61
72
|
<span>
|
62
73
|
<img
|
63
74
|
src="../assets/people.png" height="15" width="15">
|
@@ -114,6 +125,19 @@
|
|
114
125
|
<!-- 修改密码组件 -->
|
115
126
|
<modify-pw :show.sync="show" v-if="show"></modify-pw>
|
116
127
|
<!-- 修改密码模态框 -->
|
128
|
+
<!-- 异常查看 -->
|
129
|
+
<modal v-if="showAbnormity" :show.sync="showAbnormity" :width="1000" v-ref:modal backdrop="false">
|
130
|
+
<header slot="modal-header" class="modal-header">
|
131
|
+
<button type="button" class="close" @click="stopSoundNew"><span>×</span></button>
|
132
|
+
<h4 class="modal-title">异常报警</h4>
|
133
|
+
</header>
|
134
|
+
<article slot="modal-body" class="modal-body modifystyle auto form-horizontal">
|
135
|
+
<alarm-information :mergeinfo=abnormityWarningData></alarm-information>
|
136
|
+
</article>
|
137
|
+
<footer slot="modal-footer" class="modal-footer">
|
138
|
+
<button type="button" class="btn btn-success" @click='stopSoundNew'>确认</button>
|
139
|
+
</footer>
|
140
|
+
</modal>
|
117
141
|
</div>
|
118
142
|
</template>
|
119
143
|
|
@@ -150,7 +174,16 @@
|
|
150
174
|
tabs:[], //已初始化页签数组
|
151
175
|
selecttab:'',
|
152
176
|
setting:true,
|
153
|
-
srcsetting:'../../static/newStyle/setting.png'
|
177
|
+
srcsetting:'../../static/newStyle/setting.png',
|
178
|
+
abnormityWarningData: {
|
179
|
+
data: []
|
180
|
+
},
|
181
|
+
showAbnormity: false,
|
182
|
+
showaData: false,
|
183
|
+
audio: null,
|
184
|
+
isTimeAb: parseInt(this.$appdata.getSingleValue('异常报警查询时间')),
|
185
|
+
isBell: this.$appdata.getSingleValue('是否响铃')
|
186
|
+
|
154
187
|
|
155
188
|
// headerHint: true, // 右侧顶部提示信息
|
156
189
|
// value: 25645.26,
|
@@ -202,8 +235,43 @@
|
|
202
235
|
// return false
|
203
236
|
// }
|
204
237
|
this.changeShow()
|
238
|
+
// 在组件挂载后立即开始定时任务
|
239
|
+
this.abnormityWarning()
|
240
|
+
this.abnormityWarData()
|
205
241
|
},
|
206
242
|
methods: {
|
243
|
+
abnormityWarning () {
|
244
|
+
setInterval(() => {
|
245
|
+
this.abnormityWarningData = []
|
246
|
+
this.$resetpost('rs/sql/getAbnormityWarning', {data: {}}, {resolveMsg: '', rejectMsg: ''}).then(item => {
|
247
|
+
this.abnormityWarningData = item
|
248
|
+
if (this.abnormityWarningData.data.length > 0) {
|
249
|
+
this.playSound()
|
250
|
+
this.showaData = true
|
251
|
+
this.showAbnormity = true
|
252
|
+
} else {
|
253
|
+
this.showaData = false
|
254
|
+
}
|
255
|
+
})
|
256
|
+
}, this.isTimeAb)
|
257
|
+
},
|
258
|
+
abnormityWarData () {
|
259
|
+
this.$resetpost('rs/sql/getAbnormityWarning', {data: {}}, {resolveMsg: '', rejectMsg: ''}).then(item => {
|
260
|
+
console.log('--------数据----------')
|
261
|
+
console.log(item)
|
262
|
+
console.log('------------------')
|
263
|
+
this.abnormityWarningData = item
|
264
|
+
if (this.isBell === '是') {
|
265
|
+
if (this.abnormityWarningData.data.length > 0) {
|
266
|
+
this.playSound()
|
267
|
+
this.showaData = true
|
268
|
+
this.showAbnormity = true
|
269
|
+
} else {
|
270
|
+
this.showaData = false
|
271
|
+
}
|
272
|
+
}
|
273
|
+
})
|
274
|
+
},
|
207
275
|
hindsetting(){
|
208
276
|
|
209
277
|
this.setting=!this.setting
|
@@ -271,6 +339,27 @@
|
|
271
339
|
tabcg(val){
|
272
340
|
console.log(val)
|
273
341
|
this.tabs = val
|
342
|
+
},
|
343
|
+
playSound () {
|
344
|
+
if (this.audio) {
|
345
|
+
this.audio.pause()
|
346
|
+
this.audio = null
|
347
|
+
}
|
348
|
+
this.audio = new Audio()
|
349
|
+
this.audio.src = 'static/newStyle/alarm.mp3' // 替换为实际的音频文件路径
|
350
|
+
this.audio.loop = true // 设置循环播放
|
351
|
+
this.audio.autoplay = true
|
352
|
+
this.audio.play()
|
353
|
+
},
|
354
|
+
stopSound () {
|
355
|
+
if (this.audio) {
|
356
|
+
this.audio.pause()
|
357
|
+
this.audio = null
|
358
|
+
}
|
359
|
+
},
|
360
|
+
stopSoundNew () {
|
361
|
+
this.showAbnormity = false
|
362
|
+
this.stopSound()
|
274
363
|
}
|
275
364
|
},
|
276
365
|
computed: {
|
@@ -0,0 +1,122 @@
|
|
1
|
+
<template>
|
2
|
+
<div id="unit" class="flex-row">
|
3
|
+
<div class="basic-main">
|
4
|
+
<criteria-paged :model="model" v-ref:paged >
|
5
|
+
<criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search' >
|
6
|
+
<div v-show="false" novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
</criteria>
|
10
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
11
|
+
<template partial='head'>
|
12
|
+
<tr>
|
13
|
+
<th><nobr>客户编号</nobr></th>
|
14
|
+
<th><nobr>客户姓名</nobr></th>
|
15
|
+
<th><nobr>上报时间</nobr></th>
|
16
|
+
<th><nobr>上报级别</nobr></th>
|
17
|
+
<th><nobr>报警类型</nobr></th>
|
18
|
+
<th><nobr>报警详情</nobr></th>
|
19
|
+
<th>操作</th>
|
20
|
+
</tr>
|
21
|
+
</template>
|
22
|
+
<template partial='body'>
|
23
|
+
<tr>
|
24
|
+
<td style="text-align:center"><nobr>{{row.f_userinfo_code}}</nobr></td>
|
25
|
+
<td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
|
26
|
+
<td style="text-align:center"><nobr>{{row.f_insert_date}}</nobr></td>
|
27
|
+
<td style="text-align:center"><nobr>{{row.f_error_level}}</nobr></td>
|
28
|
+
<td style="text-align:center"><nobr>{{row.f_error_type}}</nobr></td>
|
29
|
+
<td style="text-align:center"><nobr>{{row.f_error_msg}}</nobr></td>
|
30
|
+
<td style="text-align:center;" v-if="row.f_is_read == false" >
|
31
|
+
<span ><a href="#" @click.stop="$parent.$parent.$parent.backSend1(row.id)">添加备注</a></span>
|
32
|
+
</td>
|
33
|
+
<td style="text-align:center;" v-if="row.f_is_read === true"><span title="备注信息:{{row.f_error_reason}}">备注信息</span></td>
|
34
|
+
</tr>
|
35
|
+
</template>
|
36
|
+
<template partial='foot'></template>
|
37
|
+
</data-grid>
|
38
|
+
</criteria-paged>
|
39
|
+
|
40
|
+
<modal :show.sync="watchshow" v-ref:modal backdrop="false">
|
41
|
+
<header slot="modal-header" class="modal-header">
|
42
|
+
<button type="button" class="close" @click="tableFault()"><span>×</span></button>
|
43
|
+
<h4 class="modal-title">信息备注</h4>
|
44
|
+
</header>
|
45
|
+
<article slot="modal-body" class="modal-body">
|
46
|
+
<div class="col-sm-12">
|
47
|
+
<label class="font_normal_body">添加信息备注</label>
|
48
|
+
<textarea name="name" rows="2" style="width: 100%"
|
49
|
+
class="ver-textarea" class="form-control"
|
50
|
+
placeholder='请填写信息备注'
|
51
|
+
v-model='f_error_reason'></textarea>
|
52
|
+
</div>
|
53
|
+
</article>
|
54
|
+
<footer slot="modal-footer" class="modal-footer">
|
55
|
+
<button v-show="watchshow" type="button" class="btn btn-default" @click='tableFault()'>取消</button>
|
56
|
+
<button v-show="watchshow" type="button" class="btn btn-danger btn-ln fr" @click='saveException()'>确认</button>
|
57
|
+
</footer>
|
58
|
+
</modal>
|
59
|
+
</div>
|
60
|
+
</div>
|
61
|
+
</template>
|
62
|
+
<script>
|
63
|
+
import {PagedList} from 'vue-client'
|
64
|
+
|
65
|
+
export default {
|
66
|
+
title: '异常警报信息',
|
67
|
+
props: ['mergeinfo'],
|
68
|
+
data () {
|
69
|
+
return {
|
70
|
+
watchshow: false,
|
71
|
+
cancelid: '',
|
72
|
+
condition: '1=1',
|
73
|
+
error_condition: '',
|
74
|
+
f_error_reason: '',
|
75
|
+
model: new PagedList('rs/sql/getAbnormityWarning', 8)
|
76
|
+
}
|
77
|
+
},
|
78
|
+
ready () {
|
79
|
+
this.model
|
80
|
+
this.$refs.paged.$refs.criteria.search()
|
81
|
+
},
|
82
|
+
methods: {
|
83
|
+
backSend1(megrow){
|
84
|
+
this.watchshow = true
|
85
|
+
this.cancelid = megrow
|
86
|
+
},
|
87
|
+
tableFault (val) {
|
88
|
+
if (val) {
|
89
|
+
console.log('开启弹窗')
|
90
|
+
} else {
|
91
|
+
console.log('返回置空')
|
92
|
+
this.f_error_reason = ''
|
93
|
+
}
|
94
|
+
this.watchshow = !this.watchshow
|
95
|
+
},
|
96
|
+
search (args) {
|
97
|
+
console.log(args)
|
98
|
+
this.condition = '1=1'
|
99
|
+
this.model.search(args.condition, args.model)
|
100
|
+
},
|
101
|
+
saveException () {
|
102
|
+
let send = {
|
103
|
+
id: this.cancelid, // 当前记录ID
|
104
|
+
f_is_read: 1,
|
105
|
+
f_error_reason: this.f_error_reason // 备注原因
|
106
|
+
}
|
107
|
+
let param = {
|
108
|
+
tablename: 't_exception',
|
109
|
+
id:1,
|
110
|
+
basedata: send
|
111
|
+
}
|
112
|
+
this.$resetpost('rs/logic/iat_saveTable', param).then(() => {
|
113
|
+
// this.params.rows.splice(index, 1)
|
114
|
+
this.watchshow = false
|
115
|
+
this.$refs.paged
|
116
|
+
this.f_error_reason = ''
|
117
|
+
})
|
118
|
+
}
|
119
|
+
}
|
120
|
+
|
121
|
+
}
|
122
|
+
</script>
|
@@ -1,43 +1,43 @@
|
|
1
|
-
<template>
|
2
|
-
<div id="unit" class="flex-row">
|
3
|
-
<div style="flex: 1;margin-right: 15px;">
|
4
|
-
<param-pages></param-pages>
|
5
|
-
</div>
|
6
|
-
<div style="flex: 1">
|
7
|
-
<single-pages></single-pages>
|
8
|
-
</div>
|
9
|
-
|
10
|
-
</div>
|
11
|
-
</template>
|
12
|
-
<script>
|
13
|
-
|
14
|
-
export default {
|
15
|
-
title: '参数设置',
|
16
|
-
|
17
|
-
}
|
18
|
-
</script>
|
19
|
-
<style>
|
20
|
-
.edit-tree {
|
21
|
-
border: none;
|
22
|
-
border-bottom: 1px solid #337ab7;
|
23
|
-
outline: none;
|
24
|
-
}
|
25
|
-
.no-edit {
|
26
|
-
border: none;
|
27
|
-
background: none;
|
28
|
-
outline: none;
|
29
|
-
}
|
30
|
-
#params-tree .active {
|
31
|
-
background: none;
|
32
|
-
border: 1px solid #ddd;
|
33
|
-
color: #000;
|
34
|
-
}
|
35
|
-
.flex-around {
|
36
|
-
display: flex;
|
37
|
-
justify-content: space-around;
|
38
|
-
}
|
39
|
-
.add-postition {
|
40
|
-
position: relative;
|
41
|
-
left: 40%;
|
42
|
-
}
|
43
|
-
</style>
|
1
|
+
<template>
|
2
|
+
<div id="unit" class="flex-row">
|
3
|
+
<div style="flex: 1;margin-right: 15px;">
|
4
|
+
<param-pages></param-pages>
|
5
|
+
</div>
|
6
|
+
<div style="flex: 1">
|
7
|
+
<single-pages></single-pages>
|
8
|
+
</div>
|
9
|
+
|
10
|
+
</div>
|
11
|
+
</template>
|
12
|
+
<script>
|
13
|
+
|
14
|
+
export default {
|
15
|
+
title: '参数设置',
|
16
|
+
|
17
|
+
}
|
18
|
+
</script>
|
19
|
+
<style>
|
20
|
+
.edit-tree {
|
21
|
+
border: none;
|
22
|
+
border-bottom: 1px solid #337ab7;
|
23
|
+
outline: none;
|
24
|
+
}
|
25
|
+
.no-edit {
|
26
|
+
border: none;
|
27
|
+
background: none;
|
28
|
+
outline: none;
|
29
|
+
}
|
30
|
+
#params-tree .active {
|
31
|
+
background: none;
|
32
|
+
border: 1px solid #ddd;
|
33
|
+
color: #000;
|
34
|
+
}
|
35
|
+
.flex-around {
|
36
|
+
display: flex;
|
37
|
+
justify-content: space-around;
|
38
|
+
}
|
39
|
+
.add-postition {
|
40
|
+
position: relative;
|
41
|
+
left: 40%;
|
42
|
+
}
|
43
|
+
</style>
|