manage-client 3.2.75 → 3.2.76-jb
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/.babelrc +5 -5
- package/.classpath +6 -6
- package/.editorconfig +9 -9
- package/.project +18 -18
- package/README.md +38 -38
- package/build/dev-server.js +8 -8
- package/config/dev.env.js +6 -6
- package/config/prod.env.js +3 -3
- package/config/test.env.js +6 -6
- package/package.json +14 -8
- package/release.bat +5 -5
- package/src/App.vue +71 -28
- package/src/components/MeterManage/ChangeMeterQuery.vue +82 -82
- package/src/components/MeterManage/HandQuery.vue +72 -72
- package/src/components/MeterManage/ReversalQuery.vue +77 -77
- package/src/components/SellReport/GaspriceHas.vue +141 -141
- package/src/components/SellReport/ManageBusSummary.vue +224 -224
- package/src/components/WebReport/AbnormalInfoEcharts.vue +120 -120
- package/src/components/WebReport/Communication.vue +131 -131
- package/src/components/WebReport/CompanyUser.vue +79 -79
- package/src/components/WebReport/GaspriceHas.vue +141 -141
- package/src/components/WebReport/ReportWorklist.vue +220 -220
- package/src/components/WebReport/SellType.vue +89 -89
- package/src/components/WebReport/Telemanlist.vue +221 -221
- package/src/components/WebReport/UserGasEcharts.vue +107 -107
- package/src/components/WebReport/ValueEcharts.vue +99 -99
- package/src/components/sale/businessquery/overDueQuery.vue +12 -0
- package/src/components/sale/config/DefaultPrint.js +6 -6
- package/src/components/sale/filesquery/detail/oper/ChangeMessage.vue +46 -46
- package/src/components/sale/filesquery/detail/oper/HandOper.vue +46 -46
- package/src/components/sale/filesquery/detail/oper/HandleMessage.vue +46 -46
- package/src/components/webmeter/gasAnalysis/GasAnalysisEcharts.vue +144 -144
- package/src/components/webmeter/gasAnalysis/GasAnalysisSummary.vue +162 -162
- package/src/components/webmeter/gasStatistics/GasStatistics.vue +462 -467
- package/src/components/webmeter/newwebmeter/NewException/NewExceptionEform.vue +149 -149
- package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
- package/src/main.js +66 -66
- package/src/plugins/LodopFuncs.js +124 -124
- package/src/stores/GetParames.js +15 -15
- package/src/stores/Util.js +132 -132
- package/test/unit/.eslintrc +5 -5
- package/test/unit/TestUtil.js +35 -35
- package/test/unit/context.html +20 -20
- package/test/unit/index.js +13 -13
- package/test/unit/init.js +11 -11
- package/test/unit/karma.conf.js +45 -45
- package/test/unit/specs/components/CallReport/Repair.spec.js +25 -25
- package/test/unit/specs/components/ManageBusiness/EquipmentQuery.spec.js +21 -21
- package/test/unit/specs/components/ManageBusiness/TableWithQuery.spec.js +21 -21
- package/test/unit/specs/components/ManageBusiness/UserQuery.spec.js +21 -21
package/.babelrc
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"presets": ["es2015", "stage-2"],
|
|
3
|
-
"plugins": ["transform-runtime"],
|
|
4
|
-
"comments": false
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"presets": ["es2015", "stage-2"],
|
|
3
|
+
"plugins": ["transform-runtime"],
|
|
4
|
+
"comments": false
|
|
5
|
+
}
|
package/.classpath
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<classpath>
|
|
3
|
-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
|
4
|
-
<classpathentry exported="true" kind="con" path="org.springsource.ide.eclipse.gradle.classpathcontainer"/>
|
|
5
|
-
<classpathentry kind="output" path="bin"/>
|
|
6
|
-
</classpath>
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<classpath>
|
|
3
|
+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
|
4
|
+
<classpathentry exported="true" kind="con" path="org.springsource.ide.eclipse.gradle.classpathcontainer"/>
|
|
5
|
+
<classpathentry kind="output" path="bin"/>
|
|
6
|
+
</classpath>
|
package/.editorconfig
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
root = true
|
|
2
|
-
|
|
3
|
-
[*]
|
|
4
|
-
charset = utf-8
|
|
5
|
-
indent_style = space
|
|
6
|
-
indent_size = 2
|
|
7
|
-
end_of_line = lf
|
|
8
|
-
insert_final_newline = true
|
|
9
|
-
trim_trailing_whitespace = true
|
|
1
|
+
root = true
|
|
2
|
+
|
|
3
|
+
[*]
|
|
4
|
+
charset = utf-8
|
|
5
|
+
indent_style = space
|
|
6
|
+
indent_size = 2
|
|
7
|
+
end_of_line = lf
|
|
8
|
+
insert_final_newline = true
|
|
9
|
+
trim_trailing_whitespace = true
|
package/.project
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<projectDescription>
|
|
3
|
-
<name>client</name>
|
|
4
|
-
<comment></comment>
|
|
5
|
-
<projects>
|
|
6
|
-
</projects>
|
|
7
|
-
<buildSpec>
|
|
8
|
-
<buildCommand>
|
|
9
|
-
<name>org.eclipse.jdt.core.javabuilder</name>
|
|
10
|
-
<arguments>
|
|
11
|
-
</arguments>
|
|
12
|
-
</buildCommand>
|
|
13
|
-
</buildSpec>
|
|
14
|
-
<natures>
|
|
15
|
-
<nature>org.springsource.ide.eclipse.gradle.core.nature</nature>
|
|
16
|
-
<nature>org.eclipse.jdt.core.javanature</nature>
|
|
17
|
-
</natures>
|
|
18
|
-
</projectDescription>
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<projectDescription>
|
|
3
|
+
<name>client</name>
|
|
4
|
+
<comment></comment>
|
|
5
|
+
<projects>
|
|
6
|
+
</projects>
|
|
7
|
+
<buildSpec>
|
|
8
|
+
<buildCommand>
|
|
9
|
+
<name>org.eclipse.jdt.core.javabuilder</name>
|
|
10
|
+
<arguments>
|
|
11
|
+
</arguments>
|
|
12
|
+
</buildCommand>
|
|
13
|
+
</buildSpec>
|
|
14
|
+
<natures>
|
|
15
|
+
<nature>org.springsource.ide.eclipse.gradle.core.nature</nature>
|
|
16
|
+
<nature>org.eclipse.jdt.core.javanature</nature>
|
|
17
|
+
</natures>
|
|
18
|
+
</projectDescription>
|
package/README.md
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
# ManageClient
|
|
2
|
-
|
|
3
|
-
#### 项目介绍
|
|
4
|
-
{**以下是码云平台说明,您可以替换为您的项目简介**
|
|
5
|
-
码云是开源中国推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
|
|
6
|
-
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
|
|
7
|
-
|
|
8
|
-
#### 软件架构
|
|
9
|
-
软件架构说明
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
#### 安装教程
|
|
13
|
-
|
|
14
|
-
1. xxxx
|
|
15
|
-
2. xxxx
|
|
16
|
-
3. xxxx
|
|
17
|
-
|
|
18
|
-
#### 使用说明
|
|
19
|
-
|
|
20
|
-
1. xxxx
|
|
21
|
-
2. xxxx
|
|
22
|
-
3. xxxx
|
|
23
|
-
|
|
24
|
-
#### 参与贡献
|
|
25
|
-
|
|
26
|
-
1. Fork 本项目
|
|
27
|
-
2. 新建 Feat_xxx 分支
|
|
28
|
-
3. 提交代码
|
|
29
|
-
4. 新建 Pull Request
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
#### 码云特技
|
|
33
|
-
|
|
34
|
-
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
|
35
|
-
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
|
36
|
-
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
|
37
|
-
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
|
38
|
-
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
|
1
|
+
# ManageClient
|
|
2
|
+
|
|
3
|
+
#### 项目介绍
|
|
4
|
+
{**以下是码云平台说明,您可以替换为您的项目简介**
|
|
5
|
+
码云是开源中国推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
|
|
6
|
+
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
|
|
7
|
+
|
|
8
|
+
#### 软件架构
|
|
9
|
+
软件架构说明
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
#### 安装教程
|
|
13
|
+
|
|
14
|
+
1. xxxx
|
|
15
|
+
2. xxxx
|
|
16
|
+
3. xxxx
|
|
17
|
+
|
|
18
|
+
#### 使用说明
|
|
19
|
+
|
|
20
|
+
1. xxxx
|
|
21
|
+
2. xxxx
|
|
22
|
+
3. xxxx
|
|
23
|
+
|
|
24
|
+
#### 参与贡献
|
|
25
|
+
|
|
26
|
+
1. Fork 本项目
|
|
27
|
+
2. 新建 Feat_xxx 分支
|
|
28
|
+
3. 提交代码
|
|
29
|
+
4. 新建 Pull Request
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
#### 码云特技
|
|
33
|
+
|
|
34
|
+
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
|
35
|
+
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
|
36
|
+
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
|
37
|
+
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
|
38
|
+
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
|
39
39
|
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
package/build/dev-server.js
CHANGED
|
@@ -13,9 +13,9 @@ var compiler = webpack(config)
|
|
|
13
13
|
// var bendi = 'http://127.0.0.1:8089/manage', fuwu = 'http://36.103.224.217:6300/'
|
|
14
14
|
var shaoguan='http://119.146.1.106:8300/'
|
|
15
15
|
var qtx='http://36.103.222.144:6300/'
|
|
16
|
-
var bendi = 'http://
|
|
16
|
+
var bendi = 'http://114.117.163.208:8600/#'
|
|
17
17
|
// var bendi = 'http://172.168.1.11:9001'
|
|
18
|
-
var fuwu = 'http://
|
|
18
|
+
var fuwu = 'http://114.117.163.208:8600/#'
|
|
19
19
|
// var fuwu = 'http://172.168.1.11:9001'
|
|
20
20
|
var system = 'http://192.168.50.4:8400'
|
|
21
21
|
//192.168.
|
|
@@ -69,19 +69,19 @@ var proxyTable = {
|
|
|
69
69
|
target: fuwu
|
|
70
70
|
},
|
|
71
71
|
'/rs/report': {
|
|
72
|
-
target:
|
|
72
|
+
target: bendi
|
|
73
73
|
},
|
|
74
74
|
'/rs/vue': {
|
|
75
75
|
target: fuwu
|
|
76
76
|
},
|
|
77
77
|
'/rs/file': {
|
|
78
|
-
target:
|
|
79
|
-
},
|
|
80
|
-
'/rs/logic/SumSettleFileImport': {
|
|
81
|
-
target: 'http://127.0.0.1:8080'
|
|
78
|
+
target: bendi
|
|
82
79
|
},
|
|
80
|
+
// '/rs/logic/SumSettleFileImport': {
|
|
81
|
+
// target: 'http://127.0.0.1:8080'
|
|
82
|
+
// },
|
|
83
83
|
'/rs': {
|
|
84
|
-
target:
|
|
84
|
+
target: bendi
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
|
package/config/dev.env.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var merge = require('webpack-merge')
|
|
2
|
-
var prodEnv = require('./prod.env')
|
|
3
|
-
|
|
4
|
-
module.exports = merge(prodEnv, {
|
|
5
|
-
NODE_ENV: '"development"'
|
|
6
|
-
})
|
|
1
|
+
var merge = require('webpack-merge')
|
|
2
|
+
var prodEnv = require('./prod.env')
|
|
3
|
+
|
|
4
|
+
module.exports = merge(prodEnv, {
|
|
5
|
+
NODE_ENV: '"development"'
|
|
6
|
+
})
|
package/config/prod.env.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
NODE_ENV: '"production"'
|
|
3
|
-
}
|
|
1
|
+
module.exports = {
|
|
2
|
+
NODE_ENV: '"production"'
|
|
3
|
+
}
|
package/config/test.env.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var merge = require('webpack-merge')
|
|
2
|
-
var devEnv = require('./dev.env')
|
|
3
|
-
|
|
4
|
-
module.exports = merge(devEnv, {
|
|
5
|
-
NODE_ENV: '"testing"'
|
|
6
|
-
})
|
|
1
|
+
var merge = require('webpack-merge')
|
|
2
|
+
var devEnv = require('./dev.env')
|
|
3
|
+
|
|
4
|
+
module.exports = merge(devEnv, {
|
|
5
|
+
NODE_ENV: '"testing"'
|
|
6
|
+
})
|
package/package.json
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "manage-client",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.76-jb",
|
|
4
4
|
"description": "经营管控模块前台组件",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"directories": {
|
|
7
7
|
"test": "test"
|
|
8
8
|
},
|
|
9
|
-
"dependencies": {
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"crypto-js": "^4.1.1",
|
|
11
|
+
"swiper": "^5.4.5"
|
|
12
|
+
},
|
|
10
13
|
"devDependencies": {
|
|
11
|
-
"axios": "
|
|
14
|
+
"axios": "0.15.3",
|
|
12
15
|
"babel-core": "^6.0.0",
|
|
13
16
|
"babel-loader": "^6.0.0",
|
|
14
17
|
"babel-plugin-transform-runtime": "^6.0.0",
|
|
@@ -32,6 +35,7 @@
|
|
|
32
35
|
"eventsource-polyfill": "^0.9.6",
|
|
33
36
|
"express": "^4.13.3",
|
|
34
37
|
"extract-text-webpack-plugin": "^1.0.1",
|
|
38
|
+
"filemanager-webpack-plugin": "^2.0.5",
|
|
35
39
|
"file-loader": "^0.8.4",
|
|
36
40
|
"function-bind": "^1.0.2",
|
|
37
41
|
"html-webpack-plugin": "^2.8.1",
|
|
@@ -50,23 +54,24 @@
|
|
|
50
54
|
"karma-sourcemap-loader": "^0.3.7",
|
|
51
55
|
"karma-spec-reporter": "0.0.31",
|
|
52
56
|
"karma-webpack": "^2.0.2",
|
|
53
|
-
"ldap-clients": "3.0.
|
|
57
|
+
"ldap-clients": "3.0.60",
|
|
54
58
|
"less": "^2.7.3",
|
|
55
59
|
"mkdirp": "^0.5.1",
|
|
56
60
|
"mocha": "^3.2.0",
|
|
57
61
|
"moment": "2.24.0",
|
|
58
62
|
"ncp": "^2.0.0",
|
|
59
63
|
"rimraf": "^2.5.0",
|
|
60
|
-
"sale-client": "3.4.
|
|
64
|
+
"sale-client": "3.4.121-jb",
|
|
61
65
|
"selenium-server": "2.52.0",
|
|
62
66
|
"sinon": "^2.1.0",
|
|
63
67
|
"sinon-chai": "^2.8.0",
|
|
64
68
|
"style": "0.0.3",
|
|
65
69
|
"style-loader": "^0.20.3",
|
|
66
|
-
"
|
|
70
|
+
"swiper": "^5.4.5",
|
|
71
|
+
"system-clients": "3.2.68",
|
|
67
72
|
"url-loader": "^0.5.7",
|
|
68
73
|
"vue-amap": "0.5.10",
|
|
69
|
-
"vue-client": "1.24.
|
|
74
|
+
"vue-client": "1.24.93",
|
|
70
75
|
"vue-hot-reload-api": "^1.2.0",
|
|
71
76
|
"vue-html-loader": "^1.0.0",
|
|
72
77
|
"vue-loader": "8.2.1",
|
|
@@ -78,7 +83,8 @@
|
|
|
78
83
|
"webpack": "1.12.2",
|
|
79
84
|
"webpack-dev-middleware": "^1.4.0",
|
|
80
85
|
"webpack-hot-middleware": "^2.6.0",
|
|
81
|
-
"webpack-merge": "^0.8.3"
|
|
86
|
+
"webpack-merge": "^0.8.3",
|
|
87
|
+
"webpack-parallel-uglify-plugin": "^1.0.0"
|
|
82
88
|
},
|
|
83
89
|
"scripts": {
|
|
84
90
|
"unit": "karma start test/unit/karma.conf.js --single-run",
|
package/release.bat
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
git add -A
|
|
2
|
-
git commit -m "[build] %1"
|
|
3
|
-
git tag -a V%1 -m "Release version %1"
|
|
4
|
-
git push origin --tags
|
|
5
|
-
git push
|
|
1
|
+
git add -A
|
|
2
|
+
git commit -m "[build] %1"
|
|
3
|
+
git tag -a V%1 -m "Release version %1"
|
|
4
|
+
git push origin --tags
|
|
5
|
+
git push
|
package/src/App.vue
CHANGED
|
@@ -1,28 +1,71 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<app-base class="bg">
|
|
4
|
-
<div class='flex'>
|
|
5
|
-
<article>
|
|
6
|
-
<!--<route :comp="{name: 'liaoyuan-manage-home'}"></route>-->
|
|
7
|
-
<!--<route :comp="{name: 'meter-reading'}"></route>-->
|
|
8
|
-
<!--<route :comp="{name: 'Gasproperties'}"></route>-->
|
|
9
|
-
<!--<route :comp="{name: 'vender-management'}"></route>-->
|
|
10
|
-
<!--<route :comp="{name: 'malfunction-home'}"></route>-->
|
|
11
|
-
<route :comp="{name: 'login'}"></route>
|
|
12
|
-
<!-- <route :comp="{name: 'load-data'}"></route> -->
|
|
13
|
-
<!--<route :comp="{name: 'load-params', props: {componentName: 'login'}}"></route>-->
|
|
14
|
-
<!-- <route :comp="{name: 'load-params', props: {dataUrl: ['rs/sql/getMeterBrand','rs/sql/getPriceType','rs/sql/getMeterStyle'], componentName: 'login'}}"></route> -->
|
|
15
|
-
</article>
|
|
16
|
-
</div>
|
|
17
|
-
</app-base>
|
|
18
|
-
</div>
|
|
19
|
-
</template>
|
|
20
|
-
|
|
21
|
-
<script>
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
export default {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<app-base class="bg">
|
|
4
|
+
<div class='flex'>
|
|
5
|
+
<article>
|
|
6
|
+
<!--<route :comp="{name: 'liaoyuan-manage-home'}"></route>-->
|
|
7
|
+
<!--<route :comp="{name: 'meter-reading'}"></route>-->
|
|
8
|
+
<!--<route :comp="{name: 'Gasproperties'}"></route>-->
|
|
9
|
+
<!--<route :comp="{name: 'vender-management'}"></route>-->
|
|
10
|
+
<!--<route :comp="{name: 'malfunction-home'}"></route>-->
|
|
11
|
+
<route :comp="{name: 'login'}"></route>
|
|
12
|
+
<!-- <route :comp="{name: 'load-data'}"></route> -->
|
|
13
|
+
<!--<route :comp="{name: 'load-params', props: {componentName: 'login'}}"></route>-->
|
|
14
|
+
<!-- <route :comp="{name: 'load-params', props: {dataUrl: ['rs/sql/getMeterBrand','rs/sql/getPriceType','rs/sql/getMeterStyle'], componentName: 'login'}}"></route> -->
|
|
15
|
+
</article>
|
|
16
|
+
</div>
|
|
17
|
+
</app-base>
|
|
18
|
+
</div>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<script>
|
|
22
|
+
import Vue from 'vue'
|
|
23
|
+
|
|
24
|
+
export default {
|
|
25
|
+
data () {
|
|
26
|
+
return {
|
|
27
|
+
lastTime: null, // 最后一次点击的时间
|
|
28
|
+
currentTime: null, // 当前点击的时间
|
|
29
|
+
// 获取一次不在获取控制
|
|
30
|
+
getConfig: false,
|
|
31
|
+
config: {
|
|
32
|
+
timeOut: 0, // 单位: 分钟
|
|
33
|
+
exitPrompt: '因您长时间未操作, 请重新登陆!'
|
|
34
|
+
},
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
ready () {
|
|
38
|
+
Vue.mmType = 'nginx'
|
|
39
|
+
Vue.HWQMM = [51, 150, 231, 300, 565, 708, 721, 952, 738, 560, 935, 912, 1274, 1148, 840, 1440]
|
|
40
|
+
},
|
|
41
|
+
created () {
|
|
42
|
+
this.lastTime = new Date().getTime()
|
|
43
|
+
},
|
|
44
|
+
methods: {
|
|
45
|
+
async isTimeOut () {
|
|
46
|
+
// 获取config配置
|
|
47
|
+
if (!this.getConfig && this.$login.f && this.$login.f.dir) {
|
|
48
|
+
await this.$getConfig(this, 'App')
|
|
49
|
+
this.getConfig = true
|
|
50
|
+
}
|
|
51
|
+
// 无配置,不开启
|
|
52
|
+
if (this.config.timeOut <= 0) return
|
|
53
|
+
// 记录这次点击的时间
|
|
54
|
+
this.currentTime = new Date().getTime()
|
|
55
|
+
// 判断上次最后一次点击的时间和这次点击的时间间隔是否大于超时时间
|
|
56
|
+
if (this.currentTime - this.lastTime > (this.config.timeOut * 60 * 1000)) {
|
|
57
|
+
// 如果是登录状态
|
|
58
|
+
if (this.$login.f.id) {
|
|
59
|
+
await this.$showMessage(this.config.exitPrompt)
|
|
60
|
+
window.location.reload()
|
|
61
|
+
} else {
|
|
62
|
+
this.lastTime = new Date().getTime()
|
|
63
|
+
}
|
|
64
|
+
} else {
|
|
65
|
+
// 如果在超时时间内点击,则把这次点击的时间记录覆盖掉之前存的最后一次点击的时间
|
|
66
|
+
this.lastTime = new Date().getTime()
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
</script>
|
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
<template >
|
|
2
|
-
<div id="stand-work-list" class="flex bg-white p-10">
|
|
3
|
-
<div class="height:auto">
|
|
4
|
-
<criteria-paged :model="model" v-ref:paged >
|
|
5
|
-
<data-grid :model="model" partial='list' v-ref:grid>
|
|
6
|
-
<template partial='head'>
|
|
7
|
-
<tr>
|
|
8
|
-
<th>序号</th>
|
|
9
|
-
<th><nobr>换表类型</nobr></th>
|
|
10
|
-
<th><nobr>换表费</nobr></th>
|
|
11
|
-
<th><nobr>旧表底数</nobr></th>
|
|
12
|
-
<th><nobr>新表底数</nobr></th>
|
|
13
|
-
<th><nobr>旧卡号</nobr></th>
|
|
14
|
-
<th><nobr>新卡号</nobr></th>
|
|
15
|
-
<th><nobr>换表日期</nobr></th>
|
|
16
|
-
</tr>
|
|
17
|
-
</template>
|
|
18
|
-
<template partial='body' partial='list' v-ref:grid>
|
|
19
|
-
<tr >
|
|
20
|
-
<td style="text-align: center;">{{$index+1}}</td>
|
|
21
|
-
<td style="text-align: center;"><nobr>{{row.f_change_type}}</nobr></td>
|
|
22
|
-
<td style="text-align: center;"><nobr>{{row.f_changemeter_fee}}</nobr></td>
|
|
23
|
-
<td style="text-align: center;"><nobr>{{row.f_meter_base}}</nobr></td>
|
|
24
|
-
<td style="text-align: center;"><nobr>{{row.f_newmeter_base}}</nobr></td>
|
|
25
|
-
<td style="text-align: center;"><nobr>{{row.f_card_id}}</nobr></td>
|
|
26
|
-
<td style="text-align: center;"><nobr>{{row.f_newcard_id}}</nobr></td>
|
|
27
|
-
<td style="text-align: center;"><nobr>{{row.f_changemeter_date}}</nobr></td>
|
|
28
|
-
</tr>
|
|
29
|
-
</template>
|
|
30
|
-
<template partial='foot'></template>
|
|
31
|
-
</data-grid>
|
|
32
|
-
</criteria-paged>
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
</template>
|
|
36
|
-
|
|
37
|
-
<script>
|
|
38
|
-
import {PagedList} from 'vue-client'
|
|
39
|
-
|
|
40
|
-
export default {
|
|
41
|
-
title: '收费',
|
|
42
|
-
data () {
|
|
43
|
-
return {
|
|
44
|
-
condition: '1=1',
|
|
45
|
-
model: new PagedList('rs/sql/changeMeterQuery', 15),
|
|
46
|
-
row: null,
|
|
47
|
-
isdeal: true,
|
|
48
|
-
obj: {
|
|
49
|
-
userid: this.$login.f.id,
|
|
50
|
-
source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
|
|
51
|
-
res: this.$login.f.f_fengongsi,
|
|
52
|
-
resids: this.$login.f.f_orgids
|
|
53
|
-
},
|
|
54
|
-
show: false
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
props:
|
|
58
|
-
{
|
|
59
|
-
f_userinfo_id: '',
|
|
60
|
-
isdeal: {},
|
|
61
|
-
args:{}
|
|
62
|
-
},
|
|
63
|
-
ready () {
|
|
64
|
-
this.search()
|
|
65
|
-
},
|
|
66
|
-
methods: {
|
|
67
|
-
search(){
|
|
68
|
-
if(this.args && this.args.model) {
|
|
69
|
-
this.condition = `f_userinfo_id = ${this.f_userinfo_id} `
|
|
70
|
-
if (this.args.model.f_start_date) this.condition += `and f_changemeter_date >= '${this.args.model.f_start_date} '`
|
|
71
|
-
if (this.args.model.f_end_date) this.condition += `and f_changemeter_date <= '${this.args.model.f_end_date}' `
|
|
72
|
-
this.model.search(this.condition, this.args.model)
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
watch:{
|
|
77
|
-
args(val){
|
|
78
|
-
this.search()
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
</script>
|
|
1
|
+
<template >
|
|
2
|
+
<div id="stand-work-list" class="flex bg-white p-10">
|
|
3
|
+
<div class="height:auto">
|
|
4
|
+
<criteria-paged :model="model" v-ref:paged >
|
|
5
|
+
<data-grid :model="model" partial='list' v-ref:grid>
|
|
6
|
+
<template partial='head'>
|
|
7
|
+
<tr>
|
|
8
|
+
<th>序号</th>
|
|
9
|
+
<th><nobr>换表类型</nobr></th>
|
|
10
|
+
<th><nobr>换表费</nobr></th>
|
|
11
|
+
<th><nobr>旧表底数</nobr></th>
|
|
12
|
+
<th><nobr>新表底数</nobr></th>
|
|
13
|
+
<th><nobr>旧卡号</nobr></th>
|
|
14
|
+
<th><nobr>新卡号</nobr></th>
|
|
15
|
+
<th><nobr>换表日期</nobr></th>
|
|
16
|
+
</tr>
|
|
17
|
+
</template>
|
|
18
|
+
<template partial='body' partial='list' v-ref:grid>
|
|
19
|
+
<tr >
|
|
20
|
+
<td style="text-align: center;">{{$index+1}}</td>
|
|
21
|
+
<td style="text-align: center;"><nobr>{{row.f_change_type}}</nobr></td>
|
|
22
|
+
<td style="text-align: center;"><nobr>{{row.f_changemeter_fee}}</nobr></td>
|
|
23
|
+
<td style="text-align: center;"><nobr>{{row.f_meter_base}}</nobr></td>
|
|
24
|
+
<td style="text-align: center;"><nobr>{{row.f_newmeter_base}}</nobr></td>
|
|
25
|
+
<td style="text-align: center;"><nobr>{{row.f_card_id}}</nobr></td>
|
|
26
|
+
<td style="text-align: center;"><nobr>{{row.f_newcard_id}}</nobr></td>
|
|
27
|
+
<td style="text-align: center;"><nobr>{{row.f_changemeter_date}}</nobr></td>
|
|
28
|
+
</tr>
|
|
29
|
+
</template>
|
|
30
|
+
<template partial='foot'></template>
|
|
31
|
+
</data-grid>
|
|
32
|
+
</criteria-paged>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</template>
|
|
36
|
+
|
|
37
|
+
<script>
|
|
38
|
+
import {PagedList} from 'vue-client'
|
|
39
|
+
|
|
40
|
+
export default {
|
|
41
|
+
title: '收费',
|
|
42
|
+
data () {
|
|
43
|
+
return {
|
|
44
|
+
condition: '1=1',
|
|
45
|
+
model: new PagedList('rs/sql/changeMeterQuery', 15),
|
|
46
|
+
row: null,
|
|
47
|
+
isdeal: true,
|
|
48
|
+
obj: {
|
|
49
|
+
userid: this.$login.f.id,
|
|
50
|
+
source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
|
|
51
|
+
res: this.$login.f.f_fengongsi,
|
|
52
|
+
resids: this.$login.f.f_orgids
|
|
53
|
+
},
|
|
54
|
+
show: false
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
props:
|
|
58
|
+
{
|
|
59
|
+
f_userinfo_id: '',
|
|
60
|
+
isdeal: {},
|
|
61
|
+
args:{}
|
|
62
|
+
},
|
|
63
|
+
ready () {
|
|
64
|
+
this.search()
|
|
65
|
+
},
|
|
66
|
+
methods: {
|
|
67
|
+
search(){
|
|
68
|
+
if(this.args && this.args.model) {
|
|
69
|
+
this.condition = `f_userinfo_id = ${this.f_userinfo_id} `
|
|
70
|
+
if (this.args.model.f_start_date) this.condition += `and f_changemeter_date >= '${this.args.model.f_start_date} '`
|
|
71
|
+
if (this.args.model.f_end_date) this.condition += `and f_changemeter_date <= '${this.args.model.f_end_date}' `
|
|
72
|
+
this.model.search(this.condition, this.args.model)
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
watch:{
|
|
77
|
+
args(val){
|
|
78
|
+
this.search()
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
</script>
|