system-phone 3.0.49-59 → 3.0.49-60

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.
@@ -0,0 +1,195 @@
1
+ <template>
2
+ <div class="nav-bgcolor">
3
+ <img src="../../assets/通用背景图.png" style="height: 20vh; width: 96vw; margin: 8px 0 0 8px; border-radius: 10px">
4
+ <div class="auto">
5
+ <div class="row nav-bgcolor" >
6
+ <div class="col-xs-6 manbiankuang" v-for="tab in tabs" @click="gotopage(tab.link,tab.name)">
7
+ <img class="imgs" :src="imgback(tab.name)">
8
+ <p></p>
9
+ <p class="pagesfoot">{{tab.name}}</p>
10
+ <!--<p class="pagesfoot">{{tab.name}}&nbsp;{{tab.icon}}</p>-->
11
+ <p></p>
12
+ </div>
13
+ </div>
14
+ <!--<div class="row" style="overflow:auto;">-->
15
+ <!--<repair-first v-show="componentName == 'repair-first'" worktype="报修单" :sourcet="sourcet" tabname="维修待办" v-on:changesum="changesum"></repair-first>-->
16
+ <!--<zhihuan-first v-show="componentName == 'zhihuan-first'" worktype="置换通气单" :sourcet="sourcet" tabname="置换待办" v-on:changesum="changesum"></zhihuan-first>-->
17
+ <!--</div>-->
18
+ </div>
19
+ </div>
20
+ </template>
21
+
22
+ <script scoped>
23
+ import Vue from 'vue'
24
+ export default {
25
+ title: '上传工作导航',
26
+ data () {
27
+ return {
28
+ titleName:'上传工作',
29
+ isMenu:true,
30
+ tabs: this.getTabs(),
31
+ text: '导航组件this',
32
+ beforeName:'上传工作',
33
+ componentName:'upload-manage',
34
+ sourcet:'竖屏'
35
+ }
36
+ },
37
+ ready () {
38
+ // this.getModelSum()
39
+ },
40
+
41
+ methods: {
42
+ // 查询本地所有需要上传得任务
43
+ getModelSum(){
44
+ for(var i = 0;i<this.tabs.length;i++){
45
+ if(this.tabs[i].link == 'zhiup-load' ){
46
+ this.getZhihuan()
47
+ }
48
+ if(this.tabs[i].link == 'weiup-load' ){
49
+ this.getRepair()
50
+ }
51
+ if(this.tabs[i].link == 'upload-page' ){
52
+ this.getSafeCheck()
53
+ }
54
+ }
55
+
56
+ },
57
+ getRepair(){
58
+ var _this = this;
59
+ this.timeoutRepair = window.setInterval(function() {
60
+ let result = _this.$androidUtil.path({'alias':'notUpload','data': {f_workorder_type: '报修单'}})
61
+ if (result.code === 200) {
62
+ console.log('查询得到的代办2' + JSON.stringify(result))
63
+ var crv = {
64
+ title: '维修上传',
65
+ sum: result.data.length
66
+ }
67
+ _this.changesum(crv)
68
+ }
69
+ }, 6000)
70
+ },
71
+ getSafeCheck(){
72
+ var _this = this;
73
+ this.timeoutRepair = window.setInterval(function() {
74
+ let result = _this.$androidUtil.path({'alias':'safecheckNotUpload','data': {}})
75
+ if (result.code === 200) {
76
+ console.log('查询得到的安检上传' + JSON.stringify(result))
77
+ var crv = {
78
+ title: '安检上传',
79
+ sum: result.data.length
80
+ }
81
+ _this.changesum(crv)
82
+ }
83
+ }, 6000)
84
+ },
85
+ getZhihuan(){
86
+ var _this = this;
87
+ this.timeoutZhihuan = window.setInterval(function() {
88
+ let result = _this.$androidUtil.path({'alias':'notUpload','data': {f_workorder_type: '置换通气单'}})
89
+ if (result.code === 200) {
90
+ console.log('查询得到的代办2' + JSON.stringify(result))
91
+ var crv = {
92
+ title: '置换上传',
93
+ sum: result.data.length
94
+ }
95
+ _this.changesum(crv)
96
+ }
97
+ }, 6000)
98
+ },
99
+ changesum(titdata){
100
+ for(var i = 0;i<this.tabs.length;i++){
101
+ if(this.tabs[i].name == titdata.title){
102
+ this.tabs[i].icon = titdata.sum + '单'
103
+ console.log(JSON.stringify(this.tabs[i].icon))
104
+ return
105
+ }
106
+ }
107
+ },
108
+ getTabs(){
109
+ for(let funs in Vue.functions){
110
+ if(Vue.functions[funs].link == 'upload-manage'){
111
+ return Vue.functions[funs].children
112
+ }
113
+ }
114
+ },
115
+ imgback(val){
116
+ return require('../../assets/'+val+'.png')
117
+ },
118
+ // 返回主界面
119
+ back(){
120
+ this.titleName = '主界面'
121
+ this.isMenu = true
122
+
123
+ },
124
+ gotopage(param,title) {
125
+ console.log('进入子组件')
126
+ var prpdata = {
127
+ _this:this,
128
+ title:title,
129
+ safe:false
130
+ }
131
+ this.$dispatch('gotoson',prpdata)
132
+ this.$goto(param,{sourcet:'竖屏',tabname:title})
133
+ },
134
+ mute () {
135
+ HostApp.mute()
136
+ }
137
+ },
138
+ }
139
+ </script>
140
+ <style lang="less">
141
+ .tab-befor-img {
142
+ content: '';
143
+ background-size: 30px;
144
+ display: inline-block;
145
+ margin-right: 8px;
146
+ height: 30px;
147
+ width: 30px;
148
+ vertical-align: -35%;
149
+ }
150
+ .pageskuang{
151
+ vertical-align:middle;
152
+ display:table-cell;
153
+ width: 32%;
154
+ top:-50%;
155
+ margin-top: 1%;
156
+ margin-left: 1%;
157
+ border:1px solid #e3e3e3;
158
+ text-align: center;
159
+ background-color: #ffffff;
160
+ }
161
+ .pgesfoot{
162
+ font-size: 14px;
163
+ color: #666666;
164
+ /* font-family: "Pingfhs";*/
165
+ }
166
+ .imgs{
167
+ width: 35px;
168
+ margin-top: 15px;
169
+ height: 39px;
170
+ }
171
+ .pages-bgcolor{
172
+ text-align: center;
173
+ background-color: #f0f0ef;
174
+ }
175
+ img[src=""],img:not([src]){
176
+ opacity: 0;
177
+ border:none;
178
+ visibility: hidden;
179
+ max-width: none;
180
+ }
181
+
182
+ .manbiankuang{
183
+ width: 44%;
184
+ margin-top: 15px;
185
+ margin-left: 4%;
186
+ border:1px solid #e3e3e3;
187
+ border-radius:10px 10px 10px 10px;
188
+ text-align: center;
189
+ background-color: #ffffff;
190
+ }
191
+
192
+ .nav-bgcolor{
193
+ background-color: #ffffff;
194
+ }
195
+ </style>
@@ -0,0 +1,9 @@
1
+ let specialComp = {
2
+ 'login-app': (resolve) => { require(['./LoginApp'], resolve) },
3
+ 'already-service': (resolve) => { require(['./AlreadyService'], resolve) },
4
+ 'attend-manage': (resolve) => { require(['./AttendManage'], resolve) },
5
+ 'upload-manage': (resolve) => { require(['./UploadManage'], resolve) },
6
+ 'online-manage': (resolve) => { require(['./OnlineManage'], resolve) },
7
+ 'system-setup': (resolve) => { require(['./SystemSetUp'], resolve) },
8
+ }
9
+ exports.specialComp = specialComp