safecheck-client 3.0.34-4 → 3.0.34-43

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. package/docs/FormPrint.md +18 -18
  2. package/docs/GridTree.md +47 -47
  3. package/docs/PrintFile.md +38 -38
  4. package/docs/tree.md +40 -40
  5. package/package.json +1 -1
  6. package/src/App-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.vue +55 -0
  7. package/src/assets/123.png +0 -0
  8. package/src/assets/f8632d3c8c4c1cb68e99da754cab1a7.png +0 -0
  9. package/src/components/LoadData.vue +62 -0
  10. package/src/components/android/AddGas.vue +147 -147
  11. package/src/components/android/AndroidDefectDeal.vue +1 -0
  12. package/src/components/android/AreaPlan.vue +566 -572
  13. package/src/components/android/CheckerMonthly.vue +84 -84
  14. package/src/components/android/LcheckUnplan.vue +108 -108
  15. package/src/components/android/PaperFeedback.vue +1 -1
  16. package/src/components/android/PaperFeedbackTemp.vue +1 -1
  17. package/src/components/android/QRCode/QRCodeBinding.vue +300 -0
  18. package/src/components/android/QRCode/QRCodePage.vue +212 -0
  19. package/src/components/android/SafecheckDevices.vue +1 -1
  20. package/src/components/android/SafecheckDevicesTemp.vue +1 -1
  21. package/src/components/android/SafecheckOrderV.vue +2809 -2809
  22. package/src/components/android/SwitchValve.vue +323 -323
  23. package/src/components/android/examples/SafeListExamples.vue +96 -0
  24. package/src/components/android/examples/UserExamples.vue +126 -0
  25. package/src/components/android/userinfo/SafecheckUserInfo.vue +1 -1
  26. package/src/components/checkerphonestate/Checker.vue +32 -32
  27. package/src/components/checkerphonestate/CheckerState.vue +97 -97
  28. package/src/components/defects/AddDefectModal.vue +120 -120
  29. package/src/components/defects/AddDevice.vue +95 -95
  30. package/src/components/defects/DevicesSeting.vue +106 -106
  31. package/src/components/metterfiles/AddUserfiles.vue +246 -246
  32. package/src/components/metterfiles/MetterFiles.vue +104 -104
  33. package/src/components/notice/NoticeQuery.vue +76 -76
  34. package/src/components/paper/RepairVerifyForm.vue +76 -76
  35. package/src/components/phonestate/DailyTraffic.vue +57 -57
  36. package/src/components/phonestate/LastKnownState.vue +74 -74
  37. package/src/components/task/RepairAnnual.vue +79 -79
  38. package/src/components/task/RepairAnnualDetail.vue +49 -49
  39. package/src/components/task/RepairMonthly.vue +91 -91
  40. package/src/components/task/TaskAnnual.vue +77 -77
  41. package/src/components/task/TaskAnnualDetail.vue +47 -47
  42. package/src/components/task/TaskMonthly.vue +89 -89
  43. package/src/components/userfile/UserfileChange.vue +277 -277
  44. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2798 -0
  45. package/src/filiale/baiyin/android.js +1 -0
  46. package/src/filiale/baiyin/pc/checkUserList.vue +771 -771
  47. package/src/filiale/baiyin/pc.js +21 -21
  48. package/src/filiale/bayan/android/PaperFeedback.vue +1 -1
  49. package/src/filiale/bayan/android/SafecheckDevices.vue +1 -1
  50. package/src/filiale/bayan/android/SafecheckOrderV.vue +52 -29
  51. package/src/filiale/bayan/android/SafecheckUserInfo.vue +1 -1
  52. package/src/filiale/dexin/android/SafecheckDevices.vue +1 -1
  53. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +35 -15
  54. package/src/filiale/hanzhong/android/PaperFeedback.vue +1 -1
  55. package/src/filiale/hanzhong/android/SafecheckDevices.vue +1 -1
  56. package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +1 -1
  57. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -0
  58. package/src/filiale/huaran/android.js +12 -0
  59. package/src/filiale/huaran/pc/CheckBook.vue +313 -0
  60. package/src/filiale/huaran/pc/CheckBookAll.vue +69 -0
  61. package/src/filiale/huaran/pc/CheckBookArea.vue +170 -0
  62. package/src/filiale/huaran/pc/CheckBookCompany.vue +166 -0
  63. package/src/filiale/huaran/pc/CheckBookDetails.vue +196 -0
  64. package/src/filiale/huaran/pc/CheckBookEntry.vue +61 -0
  65. package/src/filiale/huaran/pc/CheckBookList.vue +386 -0
  66. package/src/filiale/huaran/pc/CheckBookSearchArea.vue +564 -0
  67. package/src/filiale/huaran/pc/CheckBookSearchUnit.vue +229 -0
  68. package/src/filiale/huaran/pc/CheckBookSearchUser.vue +604 -0
  69. package/src/filiale/huaran/pc/CheckBookUser.vue +112 -0
  70. package/src/filiale/huaran/pc/PaperList.vue +822 -0
  71. package/src/filiale/huaran/pc/PlanManage.vue +887 -0
  72. package/src/filiale/huaran/pc/checkPlanList.vue +419 -0
  73. package/src/filiale/huaran/pc/checkUserList.vue +867 -0
  74. package/src/filiale/huaran/pc.js +27 -0
  75. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -0
  76. package/src/filiale/jiaxian/android/PhoneUpUserinfo.vue +1229 -0
  77. package/src/filiale/jiaxian/android/SafecheckDevices.vue +4 -4
  78. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2811 -0
  79. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -0
  80. package/src/filiale/jiaxian/android.js +4 -0
  81. package/src/filiale/jingyang/android/PaperFeedback.vue +1 -1
  82. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +1 -1
  83. package/src/filiale/kelai/pc/CheckPlanAreaList.vue +15 -7
  84. package/src/filiale/pingxiang/android/PaperFeedback.vue +1 -1
  85. package/src/filiale/qingjian/android/SafecheckDevices.vue +1 -1
  86. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +1 -1
  87. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -0
  88. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -0
  89. package/src/filiale/ruihua/android.js +11 -0
  90. package/src/filiale/shiquan/android/SafecheckDevices.vue +1 -1
  91. package/src/filiale/siyang/android/SafecheckUserInfo.vue +1 -1
  92. package/src/filiale/tongchuan/android/Select.vue +421 -0
  93. package/src/filiale/tongchuan/android.js +1 -0
  94. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1060 -1060
  95. package/src/filiale/tongchuan/utils/EventListener.js +29 -0
  96. package/src/filiale/tongchuan/utils/coerceBoolean.js +7 -0
  97. package/src/filiale/weinan/android/SafecheckDevices.vue +1 -1
  98. package/src/filiale/weinan/android/SafecheckOrderV.vue +1 -1
  99. package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +57 -59
  100. package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
  101. package/src/filiale/weinan/pc/DefectMainNew.vue +63 -63
  102. package/src/filiale/weinan/pc/DefectPaperNew.vue +31 -0
  103. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -0
  104. package/src/filiale/weinan/pc/checkUserList.vue +34 -113
  105. package/src/filiale/weinan/pc.js +47 -46
  106. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +1192 -1200
  107. package/src/filiale/yangchunboneng/android/DailyworkloadQuery.vue +472 -480
  108. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +1 -1
  109. package/src/filiale/yangchunboneng/android/SafecheckDevices.vue +2 -2
  110. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +1 -1
  111. package/src/filiale/yangchunboneng/android/safeHistoryLook.vue +473 -481
  112. package/src/filiale/yangchunboneng/pc/CheckBookSearchUser.vue +9 -7
  113. package/src/filiale/yongzhou/android/PaperFeedback.vue +1 -1
  114. package/src/filiale/yongzhou/android/SafecheckDevices.vue +1 -1
  115. package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +1 -1
  116. package/src/filiale/yuansheng/android/SafecheckDevices.vue +11 -1
  117. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +10 -2
  118. package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1 -1
  119. package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +1 -1
  120. package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +1 -1
  121. package/src/main-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.js +24 -0
  122. package/src/safecheck-android.js +4 -0
package/docs/FormPrint.md CHANGED
@@ -1,18 +1,18 @@
1
- # FormPrint
2
-
3
- 连续打印列表中的数据。
4
-
5
- ## 用法
6
-
7
- 把打印组件直接当做按钮使用,如下:
8
-
9
- ```html
10
- <form-print :model='$parent.model' url='rs/report/test'></form-print>
11
- ```
12
- 其中:
13
- - model: 列表对应的model
14
- - url:报表对应的url
15
-
16
- ## 测试用例
17
-
18
- 请参考CriteriaPaged中ProjectList组件用法。
1
+ # FormPrint
2
+
3
+ 连续打印列表中的数据。
4
+
5
+ ## 用法
6
+
7
+ 把打印组件直接当做按钮使用,如下:
8
+
9
+ ```html
10
+ <form-print :model='$parent.model' url='rs/report/test'></form-print>
11
+ ```
12
+ 其中:
13
+ - model: 列表对应的model
14
+ - url:报表对应的url
15
+
16
+ ## 测试用例
17
+
18
+ 请参考CriteriaPaged中ProjectList组件用法。
package/docs/GridTree.md CHANGED
@@ -1,47 +1,47 @@
1
- # GridTree
2
-
3
- 以表格方式显示树状数据。
4
-
5
- ## 用法
6
-
7
- 用model参数传递数据,partial='head'指明表头,partial='body'指明表体,默认partial指明树节点显示内容,加载子节点的服务路径通过url参数传递给组件。
8
-
9
- ```html
10
- <grid-tree :model='model' url='rs/sql/subproject.sql'>
11
- <template partial='head'>
12
- <tr>
13
- <th>姓名</th>
14
- <th>年龄</th>
15
- </tr>
16
- </template>
17
- <template partial='body'>
18
- <td >{{row.data.age}}</td>
19
- </template>
20
- <span partial>{{row.data.name}}</span>
21
- </grid-tree>
22
- ```
23
- 其中,row代表每条数据。注意,row中非状态部分,要写成`row.data`
24
-
25
- ## 数据格式
26
-
27
- 传递给组件的每行数据均应满足树状数据格式要求。例如:
28
- ```
29
- data () {
30
- return {
31
- model: [
32
- {name: '根节点', size: 1, children: [
33
- {name: '子节点', size: 0}
34
- ]}
35
- ]
36
- }
37
- }
38
- ```
39
-
40
- * children:
41
- 数组类型,每个节点的children属性指明子节点。
42
- * size:
43
- 整形,代表子节点个数。对异步数据,在没有加载所有子节点前,需要把子节点个数先加载过来,以便确定该节点是否叶子节点。
44
-
45
- ## 选择
46
-
47
- GridTree支持选择功能,具体参考[Selector](Selector.md)描述。
1
+ # GridTree
2
+
3
+ 以表格方式显示树状数据。
4
+
5
+ ## 用法
6
+
7
+ 用model参数传递数据,partial='head'指明表头,partial='body'指明表体,默认partial指明树节点显示内容,加载子节点的服务路径通过url参数传递给组件。
8
+
9
+ ```html
10
+ <grid-tree :model='model' url='rs/sql/subproject.sql'>
11
+ <template partial='head'>
12
+ <tr>
13
+ <th>姓名</th>
14
+ <th>年龄</th>
15
+ </tr>
16
+ </template>
17
+ <template partial='body'>
18
+ <td >{{row.data.age}}</td>
19
+ </template>
20
+ <span partial>{{row.data.name}}</span>
21
+ </grid-tree>
22
+ ```
23
+ 其中,row代表每条数据。注意,row中非状态部分,要写成`row.data`
24
+
25
+ ## 数据格式
26
+
27
+ 传递给组件的每行数据均应满足树状数据格式要求。例如:
28
+ ```
29
+ data () {
30
+ return {
31
+ model: [
32
+ {name: '根节点', size: 1, children: [
33
+ {name: '子节点', size: 0}
34
+ ]}
35
+ ]
36
+ }
37
+ }
38
+ ```
39
+
40
+ * children:
41
+ 数组类型,每个节点的children属性指明子节点。
42
+ * size:
43
+ 整形,代表子节点个数。对异步数据,在没有加载所有子节点前,需要把子节点个数先加载过来,以便确定该节点是否叶子节点。
44
+
45
+ ## 选择
46
+
47
+ GridTree支持选择功能,具体参考[Selector](Selector.md)描述。
package/docs/PrintFile.md CHANGED
@@ -1,38 +1,38 @@
1
- # PrintFile
2
-
3
- 连续打印缴费中的数据。
4
-
5
- ## 用法
6
-
7
- 把打印组件直接当做按钮使用,如下:
8
-
9
- ```html
10
- <print-file url='/rs/sql/getPrintcontent'
11
- logicurl='/rs/logic/printfile'
12
- userid='1120002568'
13
- :top='100'
14
- :left='100'
15
- :width='600'
16
- :height='1000'
17
- :rowheight='38'
18
- :lines='24'
19
- :emptyline='12'
20
- ></print-file>
21
- ```
22
- 其中:
23
- - url: 打印内容对应的url
24
- - logicurl: 修改打印行数并将已经打印过字段值修改为已打印的业务逻辑url
25
- - userid: 打印用户的userid
26
- - top: 打印项在纸张内的上边距,整数或字符型,整数时缺省长度单位为px
27
- - left: 打印项在纸张内的左边距,整数或字符型,整数时缺省长度单位为px
28
- - width: 打印区域的宽度,整数或字符型,整数时缺省长度单位为px
29
- - height: 打印区域的高度,整数或字符型,整数时缺省长度单位为px
30
- - rowheight: 行高
31
- - lines: 每页打印的行数,(当有空行时,包含空行)
32
- - emptyline: 空行的位置(在本测试用例中,打印的内容分上下两部分,中间有一个空行,0-11行为上半部分,12为空行,13-24行为下半部分,当没有空行时,将空行的值设置一个大于行数值即可)</br></br>
33
- **注意:所有参数没有默认值,必须填写**
34
-
35
-
36
- ## 测试用例
37
-
38
- 请参考PrintFile测试用例用法。
1
+ # PrintFile
2
+
3
+ 连续打印缴费中的数据。
4
+
5
+ ## 用法
6
+
7
+ 把打印组件直接当做按钮使用,如下:
8
+
9
+ ```html
10
+ <print-file url='/rs/sql/getPrintcontent'
11
+ logicurl='/rs/logic/printfile'
12
+ userid='1120002568'
13
+ :top='100'
14
+ :left='100'
15
+ :width='600'
16
+ :height='1000'
17
+ :rowheight='38'
18
+ :lines='24'
19
+ :emptyline='12'
20
+ ></print-file>
21
+ ```
22
+ 其中:
23
+ - url: 打印内容对应的url
24
+ - logicurl: 修改打印行数并将已经打印过字段值修改为已打印的业务逻辑url
25
+ - userid: 打印用户的userid
26
+ - top: 打印项在纸张内的上边距,整数或字符型,整数时缺省长度单位为px
27
+ - left: 打印项在纸张内的左边距,整数或字符型,整数时缺省长度单位为px
28
+ - width: 打印区域的宽度,整数或字符型,整数时缺省长度单位为px
29
+ - height: 打印区域的高度,整数或字符型,整数时缺省长度单位为px
30
+ - rowheight: 行高
31
+ - lines: 每页打印的行数,(当有空行时,包含空行)
32
+ - emptyline: 空行的位置(在本测试用例中,打印的内容分上下两部分,中间有一个空行,0-11行为上半部分,12为空行,13-24行为下半部分,当没有空行时,将空行的值设置一个大于行数值即可)</br></br>
33
+ **注意:所有参数没有默认值,必须填写**
34
+
35
+
36
+ ## 测试用例
37
+
38
+ 请参考PrintFile测试用例用法。
package/docs/tree.md CHANGED
@@ -1,40 +1,40 @@
1
- # Tree
2
-
3
- 以树状方式显示数据
4
-
5
- ## 用法
6
-
7
- 把数据通过model参数传递给tree组件,树节点显示的内容通过partial传递给tree组件,加载子节点的服务路径通过url参数传递给组件。
8
- ```html
9
- <template>
10
- <div>
11
- <tree :model='model' url='rs/sql/subproject.sql'>
12
- <div partial>{{row.data.name}}</div>
13
- </tree>
14
- </div>
15
- </template>
16
- ```
17
- partail中row.data代表树的每一个节点的数据。
18
-
19
- ## model
20
-
21
- 传递给tree组件的数据必须具有层次结构,每个节点特殊属性如下:
22
-
23
- * children:数组,代表所有子节点
24
- * size:整形,代表子节点个数。对异步数据,在没有加载所有子节点前,需要把子节点个数先加载过来,以便确定该节点是否叶子节点。
25
-
26
- model例子如下:
27
- ```
28
- data () {
29
- return {
30
- model: [
31
- {name: '根节点', size: 1, children: [
32
- {name: '子节点', size: 0}
33
- ]}
34
- ]
35
- }
36
- }
37
- ```
38
- ## 选择
39
-
40
- tree支持选择功能,具体参考[Selector](Selector.md)描述。
1
+ # Tree
2
+
3
+ 以树状方式显示数据
4
+
5
+ ## 用法
6
+
7
+ 把数据通过model参数传递给tree组件,树节点显示的内容通过partial传递给tree组件,加载子节点的服务路径通过url参数传递给组件。
8
+ ```html
9
+ <template>
10
+ <div>
11
+ <tree :model='model' url='rs/sql/subproject.sql'>
12
+ <div partial>{{row.data.name}}</div>
13
+ </tree>
14
+ </div>
15
+ </template>
16
+ ```
17
+ partail中row.data代表树的每一个节点的数据。
18
+
19
+ ## model
20
+
21
+ 传递给tree组件的数据必须具有层次结构,每个节点特殊属性如下:
22
+
23
+ * children:数组,代表所有子节点
24
+ * size:整形,代表子节点个数。对异步数据,在没有加载所有子节点前,需要把子节点个数先加载过来,以便确定该节点是否叶子节点。
25
+
26
+ model例子如下:
27
+ ```
28
+ data () {
29
+ return {
30
+ model: [
31
+ {name: '根节点', size: 1, children: [
32
+ {name: '子节点', size: 0}
33
+ ]}
34
+ ]
35
+ }
36
+ }
37
+ ```
38
+ ## 选择
39
+
40
+ tree支持选择功能,具体参考[Selector](Selector.md)描述。
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "safecheck-client",
3
3
  "//": "主分支版本别乱升,测试包的版本直接发包(建议使用1.XX.XX-XXX格式作为测试包,不要频繁升级第三位版本号),别提交版本号。切了分支切记把主分支版本升了,保证主分支始终是最高版本!!!!!",
4
- "version": "3.0.34-4",
4
+ "version": "3.0.34-43",
5
5
  "description": "安检模块 前端组件",
6
6
  "author": "丁新 <417755458@qq.com>",
7
7
  "license": "ISC",
@@ -0,0 +1,55 @@
1
+ <template>
2
+ <app-base class="bg">
3
+ <div class='flex'>
4
+ <article>
5
+ <route :comp="{name: 'load-data', props: {componentName: 'user-examples'}}"></route>
6
+ </article>
7
+ </div>
8
+ </app-base>
9
+ </template>
10
+
11
+ <script>
12
+ export default {
13
+ data () {
14
+ return {
15
+ lastTime: null, // 最后一次点击的时间
16
+ currentTime: null, // 当前点击的时间
17
+ // 获取一次不在获取控制
18
+ getConfig: false,
19
+ config: {
20
+ timeOut: 0, // 单位: 分钟
21
+ exitPrompt: '因您长时间未操作, 请重新登陆!'
22
+ },
23
+ }
24
+ },
25
+ created () {
26
+ this.lastTime = new Date().getTime()
27
+ },
28
+ methods: {
29
+ async isTimeOut () {
30
+ // 获取config配置
31
+ if (!this.getConfig && this.$login.f && this.$login.f.dir) {
32
+ await this.$getConfig(this, 'App')
33
+ this.getConfig = true
34
+ }
35
+ // 无配置,不开启
36
+ if (this.config.timeOut <= 0) return
37
+ // 记录这次点击的时间
38
+ this.currentTime = new Date().getTime()
39
+ // 判断上次最后一次点击的时间和这次点击的时间间隔是否大于超时时间
40
+ if (this.currentTime - this.lastTime > (this.config.timeOut * 60 * 1000)) {
41
+ // 如果是登录状态
42
+ if (this.$login.f.id) {
43
+ await this.$showMessage(this.config.exitPrompt)
44
+ window.location.reload()
45
+ } else {
46
+ this.lastTime = new Date().getTime()
47
+ }
48
+ } else {
49
+ // 如果在超时时间内点击,则把这次点击的时间记录覆盖掉之前存的最后一次点击的时间
50
+ this.lastTime = new Date().getTime()
51
+ }
52
+ }
53
+ }
54
+ }
55
+ </script>
Binary file
@@ -0,0 +1,62 @@
1
+ <template>
2
+ <!-- 石泉单页面打包用-->
3
+ <div class="loadingdata" :class="{'loaderror': show, 'loadsuccess': !show}">
4
+ <!-- <h2 style="margin: 0" v-if="show">{{msg}}</h2> -->
5
+ <h2 style="margin: 0" v-if="show">参数加载失败,请检查网络状态和服务状态...</h2>
6
+ </div>
7
+ </template>
8
+
9
+ <script>
10
+ import co from 'co'
11
+ import Vue from "vue";
12
+
13
+ let saveGen = function* (self) {
14
+ try {
15
+ yield self.$login.login()
16
+ yield self.$appdata.load()
17
+ } catch (ret) {
18
+ console.error('登录失败', ret)
19
+ }
20
+ }
21
+ export default {
22
+ title: '加载参数',
23
+ data () {
24
+ return {
25
+ msg: '',
26
+ show: false
27
+ }
28
+ },
29
+ props: {
30
+ componentName: {}
31
+ },
32
+ ready () {
33
+ if (!this.componentName) {
34
+ this.componentName = Vue.$login.getUrlParames('goto')
35
+ }
36
+ console.log('跳转页面', this.componentName)
37
+ let gen = saveGen(this)
38
+ co(gen).then(() => {
39
+ this.$goto(this.componentName)
40
+ }).catch(() => {
41
+ this.$goto(this.componentName)
42
+ })
43
+ }
44
+ }
45
+ </script>
46
+ <style media="screen">
47
+ .loadingdata {
48
+ position: fixed;
49
+ background: #fff;
50
+ opacity: 0.6;
51
+ top: 0;
52
+ width: 100%;
53
+ }
54
+
55
+ .loaderror {
56
+ opacity: 1;
57
+ }
58
+
59
+ .loadsuccess {
60
+ display: none;
61
+ }
62
+ </style>