sale-client 3.4.96 → 3.4.97

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/npm ADDED
File without changes
package/package.json CHANGED
@@ -1,116 +1,116 @@
1
- {
2
- "name": "sale-client",
3
- "version": "3.4.96",
4
- "description": "收费模块前台组件",
5
- "main": "src/index.js",
6
- "scripts": {
7
- "example": "node build/example-server.js",
8
- "dev": "node build/dev-server.js",
9
- "lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
10
- "unit": "karma start test/unit/karma.conf.js",
11
- "build": "rimraf dist && mkdirp dist && ncp static dist/mergeUser && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prod.conf.js",
12
- "e2e": "node test/e2e/runner.js",
13
- "release": "bash build/release.sh",
14
- "page": "rimraf dist && mkdirp dist && ncp static dist/singlepage && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.singlepage.conf.js"
15
- },
16
- "repository": {
17
- "type": "git",
18
- "url": "https://gitee.com/aote/product.git"
19
- },
20
- "dependencies": {
21
- "examples": "^0.1.0",
22
- "js-file-download": "0.4.12",
23
- "less-loader": "^2.2.3",
24
- "qrcodejs2": "0.0.2",
25
- "vue": "^1.0.17",
26
- "yarn": "^1.22.10"
27
- },
28
- "devDependencies": {
29
- "address-client": "3.0.24-70",
30
- "axios": "0.15.3",
31
- "babel-core": "^6.0.0",
32
- "babel-loader": "^6.0.0",
33
- "babel-plugin-transform-runtime": "^6.0.0",
34
- "babel-preset-es2015": "^6.0.0",
35
- "babel-preset-stage-2": "^6.0.0",
36
- "chai": "^3.5.0",
37
- "co": "^4.6.0",
38
- "connect-history-api-fallback": "^1.1.0",
39
- "compression-webpack-plugin": "1.1.2",
40
- "cross-env": "^1.0.7",
41
- "cross-spawn": "^2.1.5",
42
- "css-loader": "^0.23.0",
43
- "echarts": "^4.1.0",
44
- "eslint": "^3.19.0",
45
- "eslint-config-standard": "^10.2.1",
46
- "eslint-friendly-formatter": "^3.0.0",
47
- "eslint-loader": "^1.7.1",
48
- "eslint-plugin-html": "^3.0.0",
49
- "eslint-plugin-import": "^2.7.0",
50
- "eslint-plugin-node": "^5.2.0",
51
- "eslint-plugin-promise": "^3.4.0",
52
- "eslint-plugin-standard": "^3.0.1",
53
- "eventsource-polyfill": "^0.9.6",
54
- "express": "^4.13.3",
55
- "extract-text-webpack-plugin": "^1.0.1",
56
- "file-loader": "^0.8.4",
57
- "function-bind": "^1.0.2",
58
- "html-webpack-plugin": "^2.8.1",
59
- "http-proxy-middleware": "^0.11.0",
60
- "inject-loader": "^2.0.1",
61
- "isparta-loader": "^2.0.0",
62
- "jasmine-core": "^2.4.1",
63
- "jquery": "^3.3.1",
64
- "jsencrypt": "3.0.0-rc.1",
65
- "json-loader": "^0.5.4",
66
- "karma": "^1.4.1",
67
- "karma-chrome-launcher": "^2.2.0",
68
- "karma-coverage": "^1.1.1",
69
- "karma-mocha": "^1.3.0",
70
- "karma-sinon-chai": "^1.3.1",
71
- "karma-sourcemap-loader": "^0.3.7",
72
- "karma-spec-reporter": "0.0.31",
73
- "karma-webpack": "^2.0.2",
74
- "ldap-clients": "3.0.7",
75
- "less": "^2.7.3",
76
- "manage-client": "3.1.8-88",
77
- "mkdirp": "^0.5.1",
78
- "mocha": "^3.2.0",
79
- "moment": "2.24.0",
80
- "ncp": "^2.0.0",
81
- "nightwatch": "^0.8.18",
82
- "qrcodejs2": "0.0.2",
83
- "rimraf": "^2.5.0",
84
- "selenium-server": "2.52.0",
85
- "sinon": "^2.1.0",
86
- "sinon-chai": "^2.8.0",
87
- "style": "0.0.3",
88
- "style-loader": "^0.20.3",
89
- "system-clients": "3.1.97",
90
- "url-loader": "^0.5.7",
91
- "vue-client": "1.24.43",
92
- "vue-clipboard2": "0.3.1",
93
- "vue-hot-reload-api": "^1.2.0",
94
- "vue-html-loader": "^1.0.0",
95
- "vue-loader": "^8.2.1",
96
- "vue-resource": "^1.5.0",
97
- "vue-router": "^0.7.13",
98
- "vue-strap": "^1.0.9",
99
- "vue-style-loader": "^1.0.0",
100
- "vue-validator": "2.1.7",
101
- "webpack": "^1.12.2",
102
- "webpack-dev-middleware": "^1.4.0",
103
- "webpack-hot-middleware": "^2.6.0",
104
- "webpack-merge": "^0.8.3",
105
- "weixin-js-sdk": "^1.2.0"
106
- },
107
- "keywords": [
108
- "selling-clients"
109
- ],
110
- "author": "张桥",
111
- "license": "ISC",
112
- "directories": {
113
- "example": "examples",
114
- "test": "test"
115
- }
116
- }
1
+ {
2
+ "name": "sale-client",
3
+ "version": "3.4.97",
4
+ "description": "收费模块前台组件",
5
+ "main": "src/index.js",
6
+ "scripts": {
7
+ "example": "node build/example-server.js",
8
+ "dev": "node build/dev-server.js",
9
+ "lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
10
+ "unit": "karma start test/unit/karma.conf.js",
11
+ "build": "rimraf dist && mkdirp dist && ncp static dist/mergeUser && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prod.conf.js",
12
+ "e2e": "node test/e2e/runner.js",
13
+ "release": "bash build/release.sh",
14
+ "page": "rimraf dist && mkdirp dist && ncp static dist/singlepage && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.singlepage.conf.js"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "https://gitee.com/aote/product.git"
19
+ },
20
+ "dependencies": {
21
+ "examples": "^0.1.0",
22
+ "js-file-download": "0.4.12",
23
+ "less-loader": "^2.2.3",
24
+ "qrcodejs2": "0.0.2",
25
+ "vue": "^1.0.17",
26
+ "yarn": "^1.22.10"
27
+ },
28
+ "devDependencies": {
29
+ "address-client": "3.0.24-70",
30
+ "axios": "0.15.3",
31
+ "babel-core": "^6.0.0",
32
+ "babel-loader": "^6.0.0",
33
+ "babel-plugin-transform-runtime": "^6.0.0",
34
+ "babel-preset-es2015": "^6.0.0",
35
+ "babel-preset-stage-2": "^6.0.0",
36
+ "chai": "^3.5.0",
37
+ "co": "^4.6.0",
38
+ "connect-history-api-fallback": "^1.1.0",
39
+ "compression-webpack-plugin": "1.1.2",
40
+ "cross-env": "^1.0.7",
41
+ "cross-spawn": "^2.1.5",
42
+ "css-loader": "^0.23.0",
43
+ "echarts": "^4.1.0",
44
+ "eslint": "^3.19.0",
45
+ "eslint-config-standard": "^10.2.1",
46
+ "eslint-friendly-formatter": "^3.0.0",
47
+ "eslint-loader": "^1.7.1",
48
+ "eslint-plugin-html": "^3.0.0",
49
+ "eslint-plugin-import": "^2.7.0",
50
+ "eslint-plugin-node": "^5.2.0",
51
+ "eslint-plugin-promise": "^3.4.0",
52
+ "eslint-plugin-standard": "^3.0.1",
53
+ "eventsource-polyfill": "^0.9.6",
54
+ "express": "^4.13.3",
55
+ "extract-text-webpack-plugin": "^1.0.1",
56
+ "file-loader": "^0.8.4",
57
+ "function-bind": "^1.0.2",
58
+ "html-webpack-plugin": "^2.8.1",
59
+ "http-proxy-middleware": "^0.11.0",
60
+ "inject-loader": "^2.0.1",
61
+ "isparta-loader": "^2.0.0",
62
+ "jasmine-core": "^2.4.1",
63
+ "jquery": "^3.3.1",
64
+ "jsencrypt": "3.0.0-rc.1",
65
+ "json-loader": "^0.5.4",
66
+ "karma": "^1.4.1",
67
+ "karma-chrome-launcher": "^2.2.0",
68
+ "karma-coverage": "^1.1.1",
69
+ "karma-mocha": "^1.3.0",
70
+ "karma-sinon-chai": "^1.3.1",
71
+ "karma-sourcemap-loader": "^0.3.7",
72
+ "karma-spec-reporter": "0.0.31",
73
+ "karma-webpack": "^2.0.2",
74
+ "ldap-clients": "3.0.7",
75
+ "less": "^2.7.3",
76
+ "manage-client": "3.1.8-88",
77
+ "mkdirp": "^0.5.1",
78
+ "mocha": "^3.2.0",
79
+ "moment": "2.24.0",
80
+ "ncp": "^2.0.0",
81
+ "nightwatch": "^0.8.18",
82
+ "qrcodejs2": "0.0.2",
83
+ "rimraf": "^2.5.0",
84
+ "selenium-server": "2.52.0",
85
+ "sinon": "^2.1.0",
86
+ "sinon-chai": "^2.8.0",
87
+ "style": "0.0.3",
88
+ "style-loader": "^0.20.3",
89
+ "system-clients": "3.2.0",
90
+ "url-loader": "^0.5.7",
91
+ "vue-client": "1.24.48",
92
+ "vue-clipboard2": "0.3.1",
93
+ "vue-hot-reload-api": "^1.2.0",
94
+ "vue-html-loader": "^1.0.0",
95
+ "vue-loader": "^8.2.1",
96
+ "vue-resource": "^1.5.0",
97
+ "vue-router": "^0.7.13",
98
+ "vue-strap": "^1.0.9",
99
+ "vue-style-loader": "^1.0.0",
100
+ "vue-validator": "2.1.7",
101
+ "webpack": "^1.12.2",
102
+ "webpack-dev-middleware": "^1.4.0",
103
+ "webpack-hot-middleware": "^2.6.0",
104
+ "webpack-merge": "^0.8.3",
105
+ "weixin-js-sdk": "^1.2.0"
106
+ },
107
+ "keywords": [
108
+ "selling-clients"
109
+ ],
110
+ "author": "张桥",
111
+ "license": "ISC",
112
+ "directories": {
113
+ "example": "examples",
114
+ "test": "test"
115
+ }
116
+ }
@@ -2,7 +2,7 @@
2
2
  <app-base class="bg">
3
3
  <div class='flex'>
4
4
  <article>
5
- <route :comp="{name: 'file-user-files'}"></route>
5
+ <route :comp="{name: 'load-data'}"></route>
6
6
  </article>
7
7
  </div>
8
8
  </app-base>
@@ -2,7 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta charset="utf-8">
5
- <title>档案管理</title>
5
+ <title>智慧燃气</title>
6
6
  </head>
7
7
  <style>
8
8
  body {
@@ -10,7 +10,7 @@
10
10
  }
11
11
  </style>
12
12
  <body id="bodymain" class="themeOne" >
13
- <app ></app>
14
- <script src="./FileUserFiles.js"></script>
13
+ <app></app>
14
+ <script src="./page.js"></script>
15
15
  </body>
16
16
  </html>
@@ -4,7 +4,9 @@ import App from './App'
4
4
  import { system } from 'system-clients'
5
5
  import sale from '../../src/sale'
6
6
  import { address } from 'address-client'
7
+ import { ldap } from 'ldap-clients'
7
8
  import VueClipboard from 'vue-clipboard2'
9
+ import moment from 'moment'
8
10
  Vue.use(VueClipboard)
9
11
  Vue.config.silent = true
10
12
 
@@ -12,6 +14,7 @@ all()
12
14
  system(false)
13
15
  sale()
14
16
  address()
17
+ ldap()
15
18
  require('system-clients/src/styles/less/bootstrap.less')
16
19
 
17
20
  new Vue({
@@ -267,10 +267,12 @@
267
267
  let data = {
268
268
  f_userfiles_id: this.row.f_userfiles_id
269
269
  }
270
- if (this.row.f_network_valve == null) {
271
- this.$resetpost('rs/logic/openzdfk', data, {resolveMsg: '关闭自动阀控成功。', rejectMsg: '关闭自动阀控失败!!!'})
270
+ if (this.row.f_network_valve !== '1') {
271
+ this.$resetpost('rs/logic/openzdfk', data, {resolveMsg: '关闭自动阀控成功。', rejectMsg: '关闭自动阀控失败!!!'})
272
+ this.row.f_network_valve = '1'
272
273
  } else {
273
- this.$resetpost('rs/logic/closezdfk', data, {resolveMsg: '开启自动阀控成功。', rejectMsg: '开启自动阀控失败!!!'})
274
+ this.$resetpost('rs/logic/closezdfk', data, {resolveMsg: '开启自动阀控成功。', rejectMsg: '开启自动阀控失败!!!'})
275
+ this.row.f_network_valve = null
274
276
  }
275
277
  },
276
278
  // 阀控管理
@@ -120,7 +120,7 @@
120
120
  <div class="col-sm-4">
121
121
  <label class="font_normal_body_new">是否自动阀控</label>
122
122
 
123
- <input class="input-underline" style="width:45%" :value="row.f_network_valve == null ? '' : ''" readonly>
123
+ <input class="input-underline" style="width:45%" :value="row.f_network_valve == '1' ? '' : ''" readonly>
124
124
  </div>
125
125
  </div>
126
126
  <div v-if="row.f_collection_type == '按气量'" >
@@ -268,10 +268,13 @@
268
268
  let data = {
269
269
  f_userfiles_id: this.row.f_userfiles_id
270
270
  }
271
- if (this.row.f_network_valve == null) {
271
+ console.log('55555',this.row.f_network_valve)
272
+ if (this.row.f_network_valve !== '1') {
272
273
  this.$resetpost('rs/logic/openzdfk', data, {resolveMsg: '关闭自动阀控成功。', rejectMsg: '关闭自动阀控失败!!!'})
274
+ this.row.f_network_valve = '1'
273
275
  } else {
274
276
  this.$resetpost('rs/logic/closezdfk', data, {resolveMsg: '开启自动阀控成功。', rejectMsg: '开启自动阀控失败!!!'})
277
+ this.row.f_network_valve = null
275
278
  }
276
279
  },
277
280
  // 阀控管理
@@ -50,10 +50,14 @@
50
50
  <!--</div>-->
51
51
  <div class="operation-group">
52
52
  <strong class="operation" style="margin-top: 2px">视频操作:</strong>
53
+ <select id="DeviceName" name="D1" @change= "ChangeDevice()">
54
+ </select>
55
+ <select id="Resolution" name="D2" @change= "ChangeResolution()">
56
+ </select>
53
57
  <button class="btn btn-info photo" @click="bb()">拍照</button>
54
- <button class="btn btn-info" @click="cam_switch(1)">打开视频1</button>
55
- <button class="btn btn-info" @click="cam_switch(2)">打开视频2</button>
58
+ <button class="btn btn-info" @click="cam_switch(1)">打开视频</button>
56
59
  <button class="btn btn-info" @click="CloseVideo()">关闭视频</button>
60
+ <textarea id="base64" v-show="false" @change="base64change()"></textarea>
57
61
  <!--<button class="btn btn-info" @click="GetInitRet()">初始化结果</button>-->
58
62
  <!--<button class="btn btn-info" @click="GetPid()">取PID</button>-->
59
63
  <!-- <div style="display: inline-block;margin-left: 570px">-->
@@ -72,8 +76,8 @@
72
76
  <button style="position: absolute;buttom:-10px;left:0px;" @click="splitsimg">旋转</button>
73
77
  </div>
74
78
  <textarea id="Console" disabled="disabled"></textarea>
75
- <IMG id="cam" :src="cameraurl" width="640" height="640">
76
- </IMG>
79
+ <div style="width: 640px;height: 400px;" id='ActiveXDivOne'>
80
+ </div>
77
81
  </div>
78
82
  <!-- <div class="IdCard">-->
79
83
  <!-- <div class="auto IdInputDiv" style="margin-top: 20px"><strong class="IdHint">姓&emsp;&emsp;名</strong><input size=49 id="Name" class="IdInput"></div>-->
@@ -109,6 +113,7 @@
109
113
  </template>
110
114
  <script>
111
115
 
116
+ import * as hignmeter from './js/hignmeter'
112
117
  let ws
113
118
  let server_addr = 'ws://127.0.0.1:18888'// 本机端口地址
114
119
  export default {
@@ -226,17 +231,24 @@ export default {
226
231
  })
227
232
  },
228
233
  // 打开视频
229
- cam_switch (capID) {
230
- if (capID == 1) {
231
- this.cameraurl = 'http://127.0.0.1:38088/video=stream&camidx=0'
232
- }
233
- if (capID == 2) {
234
- this.cameraurl = 'http://127.0.0.1:38088/video=stream&camidx=1'
235
- }
234
+ cam_switch () {
235
+ hignmeter.StartVideo()
236
+ },
237
+ base64change () {
238
+ setTimeout(() => {
239
+ let str = document.getElementById('base64').value
240
+ this.$dispatch('photo-finish', str)
241
+ }, 1000)
236
242
  },
237
243
  // 关闭视频
238
244
  CloseVideo () {
239
- this.cameraurl = ''
245
+ hignmeter.CloseVideo()
246
+ },
247
+ ChangeDevice() {
248
+ hignmeter.ChangeDevice()
249
+ },
250
+ ChangeResolution() {
251
+ hignmeter.ChangeResolution()
240
252
  },
241
253
 
242
254
  SetQuality () {
@@ -351,19 +363,8 @@ export default {
351
363
  // },
352
364
  // //设置颜色模式 只针对截图
353
365
  bb () {
354
- let camidx = 0
355
- if (this.cameraurl === 'http://127.0.0.1:38088/video=stream&camidx=0') {
356
- camidx = 0
357
- } else if (this.cameraurl === 'http://127.0.0.1:38088/video=stream&camidx=1') {
358
- camidx = 1
359
- } else {
360
- this.showAlert('请先打开视频', 'warning', 2000)
361
- return
362
- }
363
- let param = {
364
- camidx: camidx
365
- }
366
- this.$resetpost('http://127.0.0.1:38088/video=grabimage', param).then((msg) => { // 截图
366
+ hignmeter.Capture()
367
+ /* this.$resetpost('http://127.0.0.1:38088/video=grabimage', param).then((msg) => { // 截图
367
368
  console.log(msg)
368
369
 
369
370
  if (msg.data.code != '0') {
@@ -377,7 +378,7 @@ export default {
377
378
 
378
379
  this.$dispatch('photo-finish', msg.data.photoBase64)
379
380
  // document.getElementById("Base64IMG").src= "D:\\1234.jpg?" + Math.random();//网页预览图片
380
- })
381
+ })*/
381
382
  },
382
383
  // 内存截图
383
384
  bbase64 () {
@@ -793,11 +794,7 @@ export default {
793
794
  }
794
795
  },
795
796
  ready () {
796
- this.onLoad().then(() => {
797
- this.$emit('ready')
798
- }).catch((error) => {
799
- this.$emit('error', error)
800
- })
797
+ hignmeter.loadActiveX()
801
798
  }
802
799
  }
803
800
  </script>