system-clients 3.0.44-fanxian → 3.0.45-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "system-clients",
3
- "version": "3.0.44-fanxian",
3
+ "version": "3.0.45-fanxian",
4
4
  "description": "系统基础框架",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -240,6 +240,15 @@
240
240
  this.abnormityWarData()
241
241
  },
242
242
  methods: {
243
+ handleMouseMoveOnce () {
244
+ const handleMouseMove = (event) => {
245
+ this.playSound()
246
+ // 移除事件监听器
247
+ document.removeEventListener('mousemove', handleMouseMove)
248
+ }
249
+ // 添加事件监听器
250
+ document.addEventListener('mousemove', handleMouseMove)
251
+ },
243
252
  abnormityWarning () {
244
253
  setInterval(() => {
245
254
  this.abnormityWarningData = []
@@ -259,13 +268,10 @@
259
268
  },
260
269
  abnormityWarData () {
261
270
  this.$resetpost('rs/sql/getAbnormityWarning', {data: {}}, {resolveMsg: '', rejectMsg: ''}).then(item => {
262
- console.log('--------数据----------')
263
- console.log(item)
264
- console.log('------------------')
265
271
  this.abnormityWarningData = item
266
272
  if (this.isBell === '是') {
267
273
  if (this.abnormityWarningData.data.length > 0) {
268
- this.playSound()
274
+ this.handleMouseMoveOnce()
269
275
  this.showaData = true
270
276
  this.showAbnormity = true
271
277
  } else {