system-clients 3.0.45-fanxian → 3.0.46-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/build/webpack.base.conf.js +75 -75
- package/package.json +1 -1
- package/src/components/Main.vue +5 -3
@@ -1,75 +1,75 @@
|
|
1
|
-
var path = require('path')
|
2
|
-
var cssLoaders = require('./css-loaders')
|
3
|
-
var projectRoot = path.resolve(__dirname, '../')
|
4
|
-
|
5
|
-
module.exports = {
|
6
|
-
entry: {
|
7
|
-
app: './src/main.js'
|
8
|
-
},
|
9
|
-
output: {
|
10
|
-
path: path.resolve(__dirname, '../dist/static'),
|
11
|
-
publicPath: 'static/',
|
12
|
-
filename: '[name].js'
|
13
|
-
},
|
14
|
-
resolve: {
|
15
|
-
extensions: ['', '.js', '.vue'],
|
16
|
-
fallback: [path.join(__dirname, '../node_modules')],
|
17
|
-
alias: {
|
18
|
-
'test': path.resolve(__dirname, '../test'),
|
19
|
-
'src': path.resolve(__dirname, '../src')
|
20
|
-
}
|
21
|
-
},
|
22
|
-
resolveLoader: {
|
23
|
-
fallback: [path.join(__dirname, '../node_modules')]
|
24
|
-
},
|
25
|
-
module: {
|
26
|
-
loaders: [
|
27
|
-
{
|
28
|
-
test: /\.vue$/,
|
29
|
-
loader: 'vue'
|
30
|
-
},
|
31
|
-
{
|
32
|
-
test: /\.js$/,
|
33
|
-
loader: 'babel',
|
34
|
-
include: [
|
35
|
-
`${projectRoot}\\src`,
|
36
|
-
`${projectRoot}\\build`,
|
37
|
-
`${projectRoot}\\examples`,
|
38
|
-
`${projectRoot}\\test`,
|
39
|
-
`${projectRoot}\\node_modules\\vue-client\\src`,
|
40
|
-
`${projectRoot}\\node_modules\\vue-strap\\src`
|
41
|
-
]
|
42
|
-
},
|
43
|
-
{
|
44
|
-
test: /\.json$/,
|
45
|
-
loader: 'json'
|
46
|
-
},
|
47
|
-
{
|
48
|
-
test: /\.html$/,
|
49
|
-
loader: 'vue-html'
|
50
|
-
},
|
51
|
-
{
|
52
|
-
test: /\.less$/,
|
53
|
-
loader: 'style!css!less'
|
54
|
-
},
|
55
|
-
{
|
56
|
-
test: /\.(png|jpg|gif|svg|woff2?|eot|ttf)(\?.*)?$/,
|
57
|
-
loader: 'url',
|
58
|
-
query: {
|
59
|
-
limit: 10000,
|
60
|
-
name: '[name].[ext]?[hash:7]'
|
61
|
-
}
|
62
|
-
}
|
63
|
-
]
|
64
|
-
},
|
65
|
-
vue: {
|
66
|
-
loaders: cssLoaders({
|
67
|
-
sourceMap: false,
|
68
|
-
extract: false
|
69
|
-
})
|
70
|
-
},
|
71
|
-
plugins: [],
|
72
|
-
eslint: {
|
73
|
-
formatter: require('eslint-friendly-formatter')
|
74
|
-
}
|
75
|
-
}
|
1
|
+
var path = require('path')
|
2
|
+
var cssLoaders = require('./css-loaders')
|
3
|
+
var projectRoot = path.resolve(__dirname, '../')
|
4
|
+
|
5
|
+
module.exports = {
|
6
|
+
entry: {
|
7
|
+
app: './src/main.js'
|
8
|
+
},
|
9
|
+
output: {
|
10
|
+
path: path.resolve(__dirname, '../dist/static'),
|
11
|
+
publicPath: 'static/',
|
12
|
+
filename: '[name].js'
|
13
|
+
},
|
14
|
+
resolve: {
|
15
|
+
extensions: ['', '.js', '.vue'],
|
16
|
+
fallback: [path.join(__dirname, '../node_modules')],
|
17
|
+
alias: {
|
18
|
+
'test': path.resolve(__dirname, '../test'),
|
19
|
+
'src': path.resolve(__dirname, '../src')
|
20
|
+
}
|
21
|
+
},
|
22
|
+
resolveLoader: {
|
23
|
+
fallback: [path.join(__dirname, '../node_modules')]
|
24
|
+
},
|
25
|
+
module: {
|
26
|
+
loaders: [
|
27
|
+
{
|
28
|
+
test: /\.vue$/,
|
29
|
+
loader: 'vue'
|
30
|
+
},
|
31
|
+
{
|
32
|
+
test: /\.js$/,
|
33
|
+
loader: 'babel',
|
34
|
+
include: [
|
35
|
+
`${projectRoot}\\src`,
|
36
|
+
`${projectRoot}\\build`,
|
37
|
+
`${projectRoot}\\examples`,
|
38
|
+
`${projectRoot}\\test`,
|
39
|
+
`${projectRoot}\\node_modules\\vue-client\\src`,
|
40
|
+
`${projectRoot}\\node_modules\\vue-strap\\src`
|
41
|
+
]
|
42
|
+
},
|
43
|
+
{
|
44
|
+
test: /\.json$/,
|
45
|
+
loader: 'json'
|
46
|
+
},
|
47
|
+
{
|
48
|
+
test: /\.html$/,
|
49
|
+
loader: 'vue-html'
|
50
|
+
},
|
51
|
+
{
|
52
|
+
test: /\.less$/,
|
53
|
+
loader: 'style!css!less'
|
54
|
+
},
|
55
|
+
{
|
56
|
+
test: /\.(png|jpg|gif|svg|woff2?|eot|ttf|mp3)(\?.*)?$/,
|
57
|
+
loader: 'url',
|
58
|
+
query: {
|
59
|
+
limit: 10000,
|
60
|
+
name: '[name].[ext]?[hash:7]'
|
61
|
+
}
|
62
|
+
}
|
63
|
+
]
|
64
|
+
},
|
65
|
+
vue: {
|
66
|
+
loaders: cssLoaders({
|
67
|
+
sourceMap: false,
|
68
|
+
extract: false
|
69
|
+
})
|
70
|
+
},
|
71
|
+
plugins: [],
|
72
|
+
eslint: {
|
73
|
+
formatter: require('eslint-friendly-formatter')
|
74
|
+
}
|
75
|
+
}
|
package/package.json
CHANGED
package/src/components/Main.vue
CHANGED
@@ -144,6 +144,7 @@
|
|
144
144
|
<script>
|
145
145
|
import vue from 'vue'
|
146
146
|
import co from 'co'
|
147
|
+
import source from '../../static/newStyle/alarm.mp3'
|
147
148
|
|
148
149
|
window.onunload = () => {
|
149
150
|
vue.http({url: `rs/user/update/${this.$login.f.ename}`, method: 'GET'})
|
@@ -271,7 +272,8 @@
|
|
271
272
|
this.abnormityWarningData = item
|
272
273
|
if (this.isBell === '是') {
|
273
274
|
if (this.abnormityWarningData.data.length > 0) {
|
274
|
-
this.handleMouseMoveOnce()
|
275
|
+
// this.handleMouseMoveOnce()
|
276
|
+
this.playSound()
|
275
277
|
this.showaData = true
|
276
278
|
this.showAbnormity = true
|
277
279
|
} else {
|
@@ -353,8 +355,8 @@
|
|
353
355
|
this.audio.pause()
|
354
356
|
this.audio = null
|
355
357
|
}
|
356
|
-
this.audio = new Audio()
|
357
|
-
this.audio.src = 'static/newStyle/alarm.mp3' // 替换为实际的音频文件路径
|
358
|
+
this.audio = new Audio(source)
|
359
|
+
// this.audio.src = 'static/newStyle/alarm.mp3' // 替换为实际的音频文件路径
|
358
360
|
this.audio.loop = true // 设置循环播放
|
359
361
|
this.audio.autoplay = true
|
360
362
|
this.audio.play()
|