system-phone 1.2.85-1 → 1.2.85-ceshi

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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "system-phone",
3
- "version": "1.2.85-1",
3
+ "version": "1.2.85-ceshi",
4
4
  "description": "手机模块 前端组件",
5
5
  "author": "何宁社 <524395609@qq.com>",
6
6
  "license": "ISC",
@@ -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>
@@ -3,7 +3,7 @@
3
3
  <div class="auto bg-white" style="line-height: 32px;padding: 10px">
4
4
  <label style="float: left">指令:{{row.f_instruct_title}} </label>
5
5
  <div class="auto" style="float: right">
6
- <button type="button" class="btn btn-default btn-sm" @click="$back">返回</button>
6
+ <!--<button type="button" class="btn btn-default btn-sm" @click="$back">返回</button>-->
7
7
  <button type="button" class="btn btn-default btn-sm" @click="refresh">刷新</button>
8
8
  <button type="button" class="btn btn-primary btn-sm" @click="cancle">取消</button>
9
9
  <button type="button" class="btn btn-primary btn-sm" @click="resend">重送</button>
@@ -41,13 +41,15 @@ export default function () {
41
41
  Vue.component('iot-monitoring-main', (resolve) => {
42
42
  require(['./components/iot/iotMonitoringMain'], resolve)
43
43
  })
44
- // 物联网监控
44
+ // 物联网监控表具信息
45
45
  Vue.component('iot-meter-info', (resolve) => {
46
46
  require(['./components/iot/IotMeterInfo'], resolve)
47
47
  })
48
+ // 物联网监控基础信息
48
49
  Vue.component('iot-base-info', (resolve) => {
49
50
  require(['./components/iot/IotBaseInfo'], resolve)
50
51
  })
52
+ // 物联网监控指令信息
51
53
  Vue.component('instruct-message', (resolve) => {
52
54
  require(['./components/iot/InstructMessage'], resolve)
53
55
  })
@@ -131,6 +131,18 @@ export default function () {
131
131
  Vue.component('iot-monitoring-main', (resolve) => {
132
132
  require(['./components/iot/iotMonitoringMain'], resolve)
133
133
  })
134
+ // 物联网监控表具信息
135
+ Vue.component('iot-meter-info', (resolve) => {
136
+ require(['./components/iot/IotMeterInfo'], resolve)
137
+ })
138
+ // 物联网监控基础信息
139
+ Vue.component('iot-base-info', (resolve) => {
140
+ require(['./components/iot/IotBaseInfo'], resolve)
141
+ })
142
+ // 物联网监控指令信息
143
+ Vue.component('instruct-message', (resolve) => {
144
+ require(['./components/iot/InstructMessage'], resolve)
145
+ })
134
146
  // // 只加载参数(只有下拉框所需参数)
135
147
  // Vue.component('alone-load-params', (resolve) => { require(['./components/AloneLoadParams'], resolve) })
136
148
  }
Binary file