system-phone 1.2.84 → 1.2.85-1

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/.eslintrc.js CHANGED
@@ -1,16 +1,16 @@
1
- module.exports = {
2
- root: true,
3
- // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
4
- extends: 'standard',
5
- // required to lint *.vue files
6
- plugins: [
7
- 'eslint-plugin-html'
8
- ],
9
- // add your custom rules here
10
- 'rules': {
11
- // allow paren-less arrow functions
12
- 'arrow-parens': 0,
13
- // allow debugger during development
14
- 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
15
- }
16
- }
1
+ // module.exports = {
2
+ // root: true,
3
+ // // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
4
+ // extends: 'standard',
5
+ // // required to lint *.vue files
6
+ // plugins: [
7
+ // 'eslint-plugin-html'
8
+ // ],
9
+ // // add your custom rules here
10
+ // 'rules': {
11
+ // // allow paren-less arrow functions
12
+ // 'arrow-parens': 0,
13
+ // // allow debugger during development
14
+ // 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
15
+ // }
16
+ // }
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module external.linked.project.id="SystemPhone" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" type="JAVA_MODULE" version="4">
3
+ <component name="NewModuleRootManager" inherit-compiler-output="true">
4
+ <exclude-output />
5
+ <content url="file://$MODULE_DIR$" />
6
+ <orderEntry type="inheritedJdk" />
7
+ <orderEntry type="sourceFolder" forTests="false" />
8
+ </component>
9
+ </module>
@@ -38,10 +38,26 @@ var proxyTable = {
38
38
  // // target: 'http://127.0.0.1:8082'
39
39
  // target: 'http://121.36.106.17:8400/'
40
40
  // },
41
- // '/SaleRest/rs': {
42
- // // target: 'http://127.0.0.1:8081'
43
- // target: 'http://121.36.106.17:8400/'
44
- // },
41
+ '/rs/sql/getUserByMeter': {
42
+ // target: 'http://127.0.0.1:8081'
43
+ target: 'http://localhost:8025'
44
+ },
45
+ '/rs/logic/againOpenAccount': {
46
+ // target: 'http://127.0.0.1:8081'
47
+ target: 'http://localhost:8025'
48
+ },
49
+ '/rs/logic/againSendInstruct': {
50
+ // target: 'http://127.0.0.1:8081'
51
+ target: 'http://localhost:8025'
52
+ },
53
+ '/rs/logic/cancelSendInstruct': {
54
+ // target: 'http://127.0.0.1:8081'
55
+ target: 'http://localhost:8025'
56
+ },
57
+ '/rs/sql/iot_singleTable_OrderBy': {
58
+ // target: 'http://127.0.0.1:8081'
59
+ target: 'http://localhost:8025'
60
+ },
45
61
  // 呼叫系统主数据服务
46
62
  '/rs': {
47
63
  // target: 'http://127.0.0.1:8082'
@@ -51,6 +51,10 @@ module.exports = {
51
51
  test: /\.html$/,
52
52
  loader: 'vue-html'
53
53
  },
54
+ {
55
+ test: /\.css$/,
56
+ loader: 'style!css'
57
+ },
54
58
  {
55
59
  test: /\.less$/,
56
60
  loader: 'style!css!less'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "system-phone",
3
- "version": "1.2.84",
3
+ "version": "1.2.85-1",
4
4
  "description": "手机模块 前端组件",
5
5
  "author": "何宁社 <524395609@qq.com>",
6
6
  "license": "ISC",
package/src/App.vue CHANGED
@@ -1,26 +1,25 @@
1
- <template>
2
- <!-- <app-base> -->
3
- <div id="android-app">
4
- <article>
5
- <!--<route :comp="{name: 'login-app'}"></route>-->
6
- <route :comp="{name: 'iot-monitoring-main'}"></route>
7
- </article>
8
- <time-out></time-out>
9
- <message-box>
10
- </message-box>
11
- </div>
12
- <!-- </app-base> -->
13
- </template>
14
-
15
- <script>
16
- export default {
17
- ready () {
18
- if (!window.onerror) {
19
- window.onerror = function (message, file, line, col, error) {
20
- // HostApp.alert("网络故障,加载组件有误")
21
- return false
22
- }
23
- }
24
- }
25
- }
26
- </script>
1
+ <template>
2
+ <!-- <app-base> -->
3
+ <div id="android-app">
4
+ <article>
5
+ <route :comp="{name: 'login-app'}"></route>
6
+ </article>
7
+ <time-out></time-out>
8
+ <message-box>
9
+ </message-box>
10
+ </div>
11
+ <!-- </app-base> -->
12
+ </template>
13
+
14
+ <script>
15
+ export default {
16
+ ready () {
17
+ if (!window.onerror) {
18
+ window.onerror = function (message, file, line, col, error) {
19
+ // HostApp.alert("网络故障,加载组件有误")
20
+ return false
21
+ }
22
+ }
23
+ }
24
+ }
25
+ </script>
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,144 +1,144 @@
1
- <template>
2
- <div style="height: 7%">
3
- <tools-page :need-back="!isMenu" :title="titleName" @back="back('返回')" > </tools-page>
4
- </div>
5
- <div id="app" :class="{'auto':isMenu,'app-height':!isMenu}">
6
- <div class="row" style="overflow-y: scroll;">
7
- <route v-ref:route> </route>
8
- </div>
9
- <tab-bar @select-item="onClickTabBarItem" v-show="isMenu">
10
- </tab-bar>
11
- </div>
12
- </template>
13
-
14
- <script>
15
-
16
- export default {
17
- title: 'app',
18
- data: function () {
19
- return {
20
- item: 0,
21
- isMenu:true,
22
- beforeName:'主界面',
23
- titleName:'待办工作',
24
- backthis:'',
25
- safe:false,
26
- beforetabs:[],
27
- iftabbar:''
28
- }
29
- },
30
- ready(){
31
- },
32
- methods: {
33
- back (flag){
34
- if(this.safe && flag == '返回' ){
35
- this.$showMessage('此返回所录入内容将无法找回!', ['confirm', 'cancel']).then((res) => {
36
- if (res === 'confirm') {
37
- //this.safe = false 返回父页面后不能修改父级页面定义的 是否返回提示
38
- this.delback()
39
- this.backthis.$back()
40
- this.closeAndDelAudio()
41
- }
42
- })
43
- }else{
44
- this.delback()
45
- //this.safe = false 返回父页面后不能修改父级页面定义的 是否返回提示
46
- this.backthis.$back()
47
- }
48
- },
49
- delback(){
50
- // 先确认出 前一个组件的名字
51
- var title = this.beforeName
52
- var beforetitle = '主界面'
53
- var j = -1
54
- for(var i = 0;i<this.beforetabs.length;i++){
55
- if(this.beforetabs[i].titleName == title){
56
- beforetitle = this.beforetabs[i].beforeName
57
- this.backthis =this.beforetabs[i].backthis
58
- this.safe = this.beforetabs[i].safe
59
- j = i
60
- break;
61
- }
62
- }
63
- this.beforetabs.splice(j + 1, 1)
64
- this.beforeName = beforetitle
65
- this.titleName = title
66
- // 判断是否 显示底层导航
67
- if(this.iftabbar == this.titleName){
68
- this.isMenu = true
69
- }
70
- },
71
- onClickTabBarItem(titlefg) {
72
- var param = titlefg.link
73
- if(titlefg.name == '退出系统'){
74
- this.$showMessage('即将返回登陆界面!', ['confirm', 'cancel']).then((res) => {
75
- if (res === 'confirm') {
76
- this.$androidUtil.setPreference('f_repairman_id', 'x')
77
- this.$androidUtil.setPreference('f_repairman_name', 'x')
78
- this.$back()
79
- }
80
- })
81
- }else{
82
- if(this.beforeName == titlefg.name){
83
- return
84
- }
85
- this.titleName = titlefg.name
86
- this.beforeName = titlefg.name
87
- let data = {
88
- sourcet: '竖屏'
89
- }
90
- // if(titlefg.name == '待办工单'){
91
- // param = param+'V'
92
- // }
93
- this.$refs.route.init(param,data)
94
- }
95
- },
96
- closeAndDelAudio() {
97
- console.log("停止无限制录音,并删除录音文件")
98
- HostApp.startOrStopAudioClip("-----","停止并删除录音")
99
- }
100
- },
101
- events: {
102
- 'gotoson': function (prpdata) {
103
- // 事件回调内的 `this` 自动绑定到注册它的实例上
104
- // safe 返回事件是否进行判断后再返回
105
- // 每进入一次,beforetabs 数组添加 返回 删除
106
- this.backthis = prpdata._this
107
- this.safe = prpdata.safe
108
- this.isMenu = false
109
- // 记录本次跳转
110
- var beforedata = {
111
- beforeName: this.titleName,
112
- titleName: prpdata.title,
113
- backthis:prpdata._this,
114
- safe:prpdata.safe
115
- }
116
- this.beforetabs.push(beforedata)
117
- if( this.beforetabs.length == 1){
118
- this.iftabbar = beforedata.beforeName
119
- }
120
- // 写入跳转后 前后组件名字
121
- this.beforeName = this.titleName
122
- this.titleName = prpdata.title
123
-
124
- console.log('进入子组件,通知外层组件,我已经进入')
125
- },
126
- 'confirm': function () {
127
- // 提交处理返回事件
128
- this.back('提交')
129
- },
130
- 'backarrdel': function () {
131
- this.delback()
132
- },
133
- 'gologin': function () {
134
- this.beforetabs = []
135
- this.$back()
136
- }
137
- }
138
- }
139
- </script>
140
- <style scoped>
141
- .app-height{
142
- height: 93%;
143
- }
144
- </style>
1
+ <template>
2
+ <div style="height: 7%">
3
+ <tools-page :need-back="!isMenu" :title="titleName" @back="back('返回')" > </tools-page>
4
+ </div>
5
+ <div id="app" :class="{'auto':isMenu,'app-height':!isMenu}">
6
+ <div class="row" style="overflow-y: scroll;">
7
+ <route v-ref:route> </route>
8
+ </div>
9
+ <tab-bar @select-item="onClickTabBarItem" v-show="isMenu">
10
+ </tab-bar>
11
+ </div>
12
+ </template>
13
+
14
+ <script>
15
+
16
+ export default {
17
+ title: 'app',
18
+ data: function () {
19
+ return {
20
+ item: 0,
21
+ isMenu:true,
22
+ beforeName:'主界面',
23
+ titleName:'待办工作',
24
+ backthis:'',
25
+ safe:false,
26
+ beforetabs:[],
27
+ iftabbar:''
28
+ }
29
+ },
30
+ ready(){
31
+ },
32
+ methods: {
33
+ back (flag){
34
+ if(this.safe && flag == '返回' ){
35
+ this.$showMessage('此返回所录入内容将无法找回!', ['confirm', 'cancel']).then((res) => {
36
+ if (res === 'confirm') {
37
+ //this.safe = false 返回父页面后不能修改父级页面定义的 是否返回提示
38
+ this.delback()
39
+ this.backthis.$back()
40
+ this.closeAndDelAudio()
41
+ }
42
+ })
43
+ }else{
44
+ this.delback()
45
+ //this.safe = false 返回父页面后不能修改父级页面定义的 是否返回提示
46
+ this.backthis.$back()
47
+ }
48
+ },
49
+ delback(){
50
+ // 先确认出 前一个组件的名字
51
+ var title = this.beforeName
52
+ var beforetitle = '主界面'
53
+ var j = -1
54
+ for(var i = 0;i<this.beforetabs.length;i++){
55
+ if(this.beforetabs[i].titleName == title){
56
+ beforetitle = this.beforetabs[i].beforeName
57
+ this.backthis =this.beforetabs[i].backthis
58
+ this.safe = this.beforetabs[i].safe
59
+ j = i
60
+ break;
61
+ }
62
+ }
63
+ this.beforetabs.splice(j + 1, 1)
64
+ this.beforeName = beforetitle
65
+ this.titleName = title
66
+ // 判断是否 显示底层导航
67
+ if(this.iftabbar == this.titleName){
68
+ this.isMenu = true
69
+ }
70
+ },
71
+ onClickTabBarItem(titlefg) {
72
+ var param = titlefg.link
73
+ if(titlefg.name == '退出系统'){
74
+ this.$showMessage('即将返回登陆界面!', ['confirm', 'cancel']).then((res) => {
75
+ if (res === 'confirm') {
76
+ this.$androidUtil.setPreference('f_repairman_id', 'x')
77
+ this.$androidUtil.setPreference('f_repairman_name', 'x')
78
+ this.$back()
79
+ }
80
+ })
81
+ }else{
82
+ if(this.beforeName == titlefg.name){
83
+ return
84
+ }
85
+ this.titleName = titlefg.name
86
+ this.beforeName = titlefg.name
87
+ let data = {
88
+ sourcet: '竖屏'
89
+ }
90
+ // if(titlefg.name == '待办工单'){
91
+ // param = param+'V'
92
+ // }
93
+ this.$refs.route.init(param,data)
94
+ }
95
+ },
96
+ closeAndDelAudio() {
97
+ console.log("停止无限制录音")
98
+ HostApp.startOrStopAudioClip("-----","停止录音")
99
+ }
100
+ },
101
+ events: {
102
+ 'gotoson': function (prpdata) {
103
+ // 事件回调内的 `this` 自动绑定到注册它的实例上
104
+ // safe 返回事件是否进行判断后再返回
105
+ // 每进入一次,beforetabs 数组添加 返回 删除
106
+ this.backthis = prpdata._this
107
+ this.safe = prpdata.safe
108
+ this.isMenu = false
109
+ // 记录本次跳转
110
+ var beforedata = {
111
+ beforeName: this.titleName,
112
+ titleName: prpdata.title,
113
+ backthis:prpdata._this,
114
+ safe:prpdata.safe
115
+ }
116
+ this.beforetabs.push(beforedata)
117
+ if( this.beforetabs.length == 1){
118
+ this.iftabbar = beforedata.beforeName
119
+ }
120
+ // 写入跳转后 前后组件名字
121
+ this.beforeName = this.titleName
122
+ this.titleName = prpdata.title
123
+
124
+ console.log('进入子组件,通知外层组件,我已经进入')
125
+ },
126
+ 'confirm': function () {
127
+ // 提交处理返回事件
128
+ this.back('提交')
129
+ },
130
+ 'backarrdel': function () {
131
+ this.delback()
132
+ },
133
+ 'gologin': function () {
134
+ this.beforetabs = []
135
+ this.$back()
136
+ }
137
+ }
138
+ }
139
+ </script>
140
+ <style scoped>
141
+ .app-height{
142
+ height: 93%;
143
+ }
144
+ </style>