system-phone 3.1.36 → 3.1.38
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/package.json +100 -100
- package/src/components/AlreadyService.vue +210 -210
- package/src/components/AttendManage.vue +591 -591
- package/src/components/LoginAppV4.vue +12 -6
- package/src/components/ModifyPassWord.vue +1 -1
- package/src/components/OnlineManage.vue +278 -278
- package/src/components/iot/InstructMessage.vue +313 -313
- package/src/components/iot/IotBaseInfo.vue +97 -97
package/package.json
CHANGED
|
@@ -1,100 +1,100 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "system-phone",
|
|
3
|
-
"version": "3.1.
|
|
4
|
-
"description": "手机模块 前端组件",
|
|
5
|
-
"author": "何宁社 <524395609@qq.com>",
|
|
6
|
-
"license": "ISC",
|
|
7
|
-
"main": "src/index.js",
|
|
8
|
-
"keywords": [
|
|
9
|
-
"phone"
|
|
10
|
-
],
|
|
11
|
-
"scripts": {
|
|
12
|
-
"unit": "karma start test/unit/karma.conf.js",
|
|
13
|
-
"example": "node build/example-server.js",
|
|
14
|
-
"dev": "node build/dev-server.js",
|
|
15
|
-
"lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
|
|
16
|
-
"build": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prod.conf.js",
|
|
17
|
-
"e2e": "node test/e2e/runner.js",
|
|
18
|
-
"release": "bash build/release.sh"
|
|
19
|
-
},
|
|
20
|
-
"repository": {
|
|
21
|
-
"type": "git",
|
|
22
|
-
"url": "https://github.com/DuBin1988/oa"
|
|
23
|
-
},
|
|
24
|
-
"dependencies": {
|
|
25
|
-
"layui": "^2.7.6",
|
|
26
|
-
"less-loader": "^2.2.3",
|
|
27
|
-
"pinyin-pro": "^1.2.3",
|
|
28
|
-
"vue": "^1.0.17"
|
|
29
|
-
},
|
|
30
|
-
"devDependencies": {
|
|
31
|
-
"babel-core": "^6.26.0",
|
|
32
|
-
"babel-loader": "^6.0.0",
|
|
33
|
-
"babel-plugin-transform-runtime": "^6.0.0",
|
|
34
|
-
"babel-preset-es2015": "^6.0.0",
|
|
35
|
-
"babel-preset-stage-2": "^6.0.0",
|
|
36
|
-
"chai": "^3.5.0",
|
|
37
|
-
"co": "^4.6.0",
|
|
38
|
-
"connect-history-api-fallback": "^1.1.0",
|
|
39
|
-
"cross-env": "^1.0.7",
|
|
40
|
-
"cross-spawn": "^2.1.5",
|
|
41
|
-
"css-loader": "^0.23.0",
|
|
42
|
-
"echarts": "^4.1.0",
|
|
43
|
-
"eslint": "^2.0.0",
|
|
44
|
-
"eslint-config-standard": "^5.1.0",
|
|
45
|
-
"eslint-friendly-formatter": "^1.2.2",
|
|
46
|
-
"eslint-loader": "^1.3.0",
|
|
47
|
-
"eslint-plugin-html": "^1.3.0",
|
|
48
|
-
"eslint-plugin-promise": "^1.0.8",
|
|
49
|
-
"eslint-plugin-standard": "^1.3.2",
|
|
50
|
-
"eslint-plugin-vue": "^0.1.1",
|
|
51
|
-
"eventsource-polyfill": "^0.9.6",
|
|
52
|
-
"express": "^4.13.3",
|
|
53
|
-
"extract-text-webpack-plugin": "^1.0.1",
|
|
54
|
-
"file-loader": "^0.8.4",
|
|
55
|
-
"function-bind": "^1.0.2",
|
|
56
|
-
"html-webpack-plugin": "^2.8.1",
|
|
57
|
-
"http-proxy-middleware": "^0.11.0",
|
|
58
|
-
"inject-loader": "^2.0.1",
|
|
59
|
-
"isparta-loader": "^2.0.0",
|
|
60
|
-
"jasmine-core": "^2.4.1",
|
|
61
|
-
"jquery": "^3.3.1",
|
|
62
|
-
"jsencrypt": "^3.0.0-rc.1",
|
|
63
|
-
"json-loader": "^0.5.4",
|
|
64
|
-
"karma": "^1.4.1",
|
|
65
|
-
"karma-chrome-launcher": "^2.2.0",
|
|
66
|
-
"karma-coverage": "^1.1.1",
|
|
67
|
-
"karma-mocha": "^1.3.0",
|
|
68
|
-
"karma-sinon-chai": "^1.3.1",
|
|
69
|
-
"karma-sourcemap-loader": "^0.3.7",
|
|
70
|
-
"karma-spec-reporter": "0.0.31",
|
|
71
|
-
"karma-webpack": "^2.0.2",
|
|
72
|
-
"less": "^2.7.3",
|
|
73
|
-
"mkdirp": "^0.5.1",
|
|
74
|
-
"mocha": "^3.2.0",
|
|
75
|
-
"ncp": "^2.0.0",
|
|
76
|
-
"readmeter-client": "^1.0.3",
|
|
77
|
-
"rimraf": "^2.5.0",
|
|
78
|
-
"safecheck-client": "1.1.1",
|
|
79
|
-
"selenium-server": "2.52.0",
|
|
80
|
-
"sinon": "^2.1.0",
|
|
81
|
-
"sinon-chai": "^2.8.0",
|
|
82
|
-
"style": "0.0.3",
|
|
83
|
-
"style-loader": "^0.20.3",
|
|
84
|
-
"telephone-clients": "3.0.27",
|
|
85
|
-
"url-loader": "^0.5.7",
|
|
86
|
-
"vue-client": "^1.20.87",
|
|
87
|
-
"vue-hot-reload-api": "^1.2.0",
|
|
88
|
-
"vue-html-loader": "^1.0.0",
|
|
89
|
-
"vue-loader": "^8.2.1",
|
|
90
|
-
"vue-resource": "^1.5.0",
|
|
91
|
-
"vue-router": "^0.7.13",
|
|
92
|
-
"vue-strap": "^1.0.9",
|
|
93
|
-
"vue-style-loader": "^1.0.0",
|
|
94
|
-
"vue-validator": "2.1.7",
|
|
95
|
-
"webpack": "^1.12.2",
|
|
96
|
-
"webpack-dev-middleware": "^1.4.0",
|
|
97
|
-
"webpack-hot-middleware": "^2.6.0",
|
|
98
|
-
"webpack-merge": "^0.8.3"
|
|
99
|
-
}
|
|
100
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "system-phone",
|
|
3
|
+
"version": "3.1.38",
|
|
4
|
+
"description": "手机模块 前端组件",
|
|
5
|
+
"author": "何宁社 <524395609@qq.com>",
|
|
6
|
+
"license": "ISC",
|
|
7
|
+
"main": "src/index.js",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"phone"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"unit": "karma start test/unit/karma.conf.js",
|
|
13
|
+
"example": "node build/example-server.js",
|
|
14
|
+
"dev": "node build/dev-server.js",
|
|
15
|
+
"lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
|
|
16
|
+
"build": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prod.conf.js",
|
|
17
|
+
"e2e": "node test/e2e/runner.js",
|
|
18
|
+
"release": "bash build/release.sh"
|
|
19
|
+
},
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "https://github.com/DuBin1988/oa"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"layui": "^2.7.6",
|
|
26
|
+
"less-loader": "^2.2.3",
|
|
27
|
+
"pinyin-pro": "^1.2.3",
|
|
28
|
+
"vue": "^1.0.17"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"babel-core": "^6.26.0",
|
|
32
|
+
"babel-loader": "^6.0.0",
|
|
33
|
+
"babel-plugin-transform-runtime": "^6.0.0",
|
|
34
|
+
"babel-preset-es2015": "^6.0.0",
|
|
35
|
+
"babel-preset-stage-2": "^6.0.0",
|
|
36
|
+
"chai": "^3.5.0",
|
|
37
|
+
"co": "^4.6.0",
|
|
38
|
+
"connect-history-api-fallback": "^1.1.0",
|
|
39
|
+
"cross-env": "^1.0.7",
|
|
40
|
+
"cross-spawn": "^2.1.5",
|
|
41
|
+
"css-loader": "^0.23.0",
|
|
42
|
+
"echarts": "^4.1.0",
|
|
43
|
+
"eslint": "^2.0.0",
|
|
44
|
+
"eslint-config-standard": "^5.1.0",
|
|
45
|
+
"eslint-friendly-formatter": "^1.2.2",
|
|
46
|
+
"eslint-loader": "^1.3.0",
|
|
47
|
+
"eslint-plugin-html": "^1.3.0",
|
|
48
|
+
"eslint-plugin-promise": "^1.0.8",
|
|
49
|
+
"eslint-plugin-standard": "^1.3.2",
|
|
50
|
+
"eslint-plugin-vue": "^0.1.1",
|
|
51
|
+
"eventsource-polyfill": "^0.9.6",
|
|
52
|
+
"express": "^4.13.3",
|
|
53
|
+
"extract-text-webpack-plugin": "^1.0.1",
|
|
54
|
+
"file-loader": "^0.8.4",
|
|
55
|
+
"function-bind": "^1.0.2",
|
|
56
|
+
"html-webpack-plugin": "^2.8.1",
|
|
57
|
+
"http-proxy-middleware": "^0.11.0",
|
|
58
|
+
"inject-loader": "^2.0.1",
|
|
59
|
+
"isparta-loader": "^2.0.0",
|
|
60
|
+
"jasmine-core": "^2.4.1",
|
|
61
|
+
"jquery": "^3.3.1",
|
|
62
|
+
"jsencrypt": "^3.0.0-rc.1",
|
|
63
|
+
"json-loader": "^0.5.4",
|
|
64
|
+
"karma": "^1.4.1",
|
|
65
|
+
"karma-chrome-launcher": "^2.2.0",
|
|
66
|
+
"karma-coverage": "^1.1.1",
|
|
67
|
+
"karma-mocha": "^1.3.0",
|
|
68
|
+
"karma-sinon-chai": "^1.3.1",
|
|
69
|
+
"karma-sourcemap-loader": "^0.3.7",
|
|
70
|
+
"karma-spec-reporter": "0.0.31",
|
|
71
|
+
"karma-webpack": "^2.0.2",
|
|
72
|
+
"less": "^2.7.3",
|
|
73
|
+
"mkdirp": "^0.5.1",
|
|
74
|
+
"mocha": "^3.2.0",
|
|
75
|
+
"ncp": "^2.0.0",
|
|
76
|
+
"readmeter-client": "^1.0.3",
|
|
77
|
+
"rimraf": "^2.5.0",
|
|
78
|
+
"safecheck-client": "1.1.1",
|
|
79
|
+
"selenium-server": "2.52.0",
|
|
80
|
+
"sinon": "^2.1.0",
|
|
81
|
+
"sinon-chai": "^2.8.0",
|
|
82
|
+
"style": "0.0.3",
|
|
83
|
+
"style-loader": "^0.20.3",
|
|
84
|
+
"telephone-clients": "3.0.27",
|
|
85
|
+
"url-loader": "^0.5.7",
|
|
86
|
+
"vue-client": "^1.20.87",
|
|
87
|
+
"vue-hot-reload-api": "^1.2.0",
|
|
88
|
+
"vue-html-loader": "^1.0.0",
|
|
89
|
+
"vue-loader": "^8.2.1",
|
|
90
|
+
"vue-resource": "^1.5.0",
|
|
91
|
+
"vue-router": "^0.7.13",
|
|
92
|
+
"vue-strap": "^1.0.9",
|
|
93
|
+
"vue-style-loader": "^1.0.0",
|
|
94
|
+
"vue-validator": "2.1.7",
|
|
95
|
+
"webpack": "^1.12.2",
|
|
96
|
+
"webpack-dev-middleware": "^1.4.0",
|
|
97
|
+
"webpack-hot-middleware": "^2.6.0",
|
|
98
|
+
"webpack-merge": "^0.8.3"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -1,210 +1,210 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="nav-bgcolor">
|
|
3
|
-
<div class="auto">
|
|
4
|
-
<div class="row nav-bgcolor" >
|
|
5
|
-
<div class="col-xs-6 manbiankuang" v-for="tab in tabs" @click="gotopage(tab.link,tab.name)">
|
|
6
|
-
<img class="imgs" :src="imgback(tab.name)">
|
|
7
|
-
<div class="badge" v-show="tab.name == '安检已办' && alreadyDoneNumShow && alreadyDoneNumShow == 'true'">
|
|
8
|
-
<div class="badge-content">{{ alreadyDoneNum?alreadyDoneNum:0 }}</div>
|
|
9
|
-
</div>
|
|
10
|
-
<p></p>
|
|
11
|
-
<p class="pagesfoot">{{tab.name}}</p>
|
|
12
|
-
<!--<p class="pagesfoot">{{tab.name}} {{tab.icon}}</p>-->
|
|
13
|
-
<p></p>
|
|
14
|
-
</div>
|
|
15
|
-
</div>
|
|
16
|
-
<!--<div class="row" style="overflow:auto;">-->
|
|
17
|
-
<!--<repair-first v-show="componentName == 'repair-first'" worktype="报修单" :sourcet="sourcet" tabname="维修待办" v-on:changesum="changesum"></repair-first>-->
|
|
18
|
-
<!--<zhihuan-first v-show="componentName == 'zhihuan-first'" worktype="置换通气单" :sourcet="sourcet" tabname="置换待办" v-on:changesum="changesum"></zhihuan-first>-->
|
|
19
|
-
<!--</div>-->
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
</template>
|
|
23
|
-
|
|
24
|
-
<script scoped>
|
|
25
|
-
import Vue from 'vue'
|
|
26
|
-
import * as Util from '../Util'
|
|
27
|
-
export default {
|
|
28
|
-
title: '已办工作导航',
|
|
29
|
-
data () {
|
|
30
|
-
return {
|
|
31
|
-
titleName:'已办工作',
|
|
32
|
-
isMenu:true,
|
|
33
|
-
alreadyDoneNum:0,
|
|
34
|
-
isShowRedNum:this.$appdata.getSingleValue('手机端获取任务条数'),
|
|
35
|
-
alreadyDoneNumShow:this.$appdata.getSingleValue('安检已办红点提醒'),
|
|
36
|
-
tabs: this.getTabs(),
|
|
37
|
-
text: '导航组件this',
|
|
38
|
-
beforeName:'已办工作',
|
|
39
|
-
sourcet:'竖屏'
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
ready () {
|
|
43
|
-
// this.getModelSum()
|
|
44
|
-
this.getAlreadyDoneNum()
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
methods: {
|
|
48
|
-
getAlreadyDoneNum(){
|
|
49
|
-
let criteria = {
|
|
50
|
-
items: 'id',
|
|
51
|
-
tablename: 't_check_plan_item',
|
|
52
|
-
condition: `f_no_checkplan = '有计划安检' and f_approved = '不通过'`,
|
|
53
|
-
groupitem: 'id'
|
|
54
|
-
}
|
|
55
|
-
let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
|
|
56
|
-
this.alreadyDoneNum = result.data.rows.length
|
|
57
|
-
},
|
|
58
|
-
// 查询本地所有待办
|
|
59
|
-
getModelSum(){
|
|
60
|
-
for(var i = 0;i<this.tabs.length;i++){
|
|
61
|
-
if(this.tabs[i].link == 'completed-zhihuan' ){
|
|
62
|
-
this.getZhihuan()
|
|
63
|
-
}
|
|
64
|
-
if(this.tabs[i].link == 'completed-repair' ){
|
|
65
|
-
this.getRepair()
|
|
66
|
-
}
|
|
67
|
-
if(this.tabs[i].link == 'area-plan' ){
|
|
68
|
-
this.getSafeCheck()
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
},
|
|
73
|
-
getRepair(){
|
|
74
|
-
var _this = this;
|
|
75
|
-
this.timeoutRepair = window.setInterval(function() {
|
|
76
|
-
let result = _this.$androidUtil.path({'alias':`getCompletedInfo`, 'data': {f_workorder_type: '报修单',condition:'1 = 1'}})
|
|
77
|
-
if (result.code === 200) {
|
|
78
|
-
console.log('查询得到的代办2' + JSON.stringify(result))
|
|
79
|
-
var crv = {
|
|
80
|
-
title: '维修已办',
|
|
81
|
-
sum: result.data.length
|
|
82
|
-
}
|
|
83
|
-
_this.changesum(crv)
|
|
84
|
-
}
|
|
85
|
-
}, 6000)
|
|
86
|
-
},
|
|
87
|
-
getSafeCheck(){
|
|
88
|
-
var _this = this;
|
|
89
|
-
this.timeoutRepair = window.setInterval(function() {
|
|
90
|
-
let result = _this.$androidUtil.path({'alias':`getSafecheckCompletedInfo`, 'data': {condition:'1 = 1'}})
|
|
91
|
-
if (result.code === 200) {
|
|
92
|
-
console.log('查询得到的安检已办' + JSON.stringify(result))
|
|
93
|
-
var crv = {
|
|
94
|
-
title: '安检已办',
|
|
95
|
-
sum: result.data.length
|
|
96
|
-
}
|
|
97
|
-
_this.changesum(crv)
|
|
98
|
-
}
|
|
99
|
-
}, 6000)
|
|
100
|
-
},
|
|
101
|
-
getZhihuan(){
|
|
102
|
-
var _this = this;
|
|
103
|
-
this.timeoutZhihuan = window.setInterval(function() {
|
|
104
|
-
let result = _this.$androidUtil.path({'alias':`getCompletedInfo`, 'data': {f_workorder_type: '置换通气单',condition:'1 = 1'}})
|
|
105
|
-
if (result.code === 200) {
|
|
106
|
-
console.log('查询得到的代办2' + JSON.stringify(result))
|
|
107
|
-
var crv = {
|
|
108
|
-
title: '置换已办',
|
|
109
|
-
sum: result.data.length
|
|
110
|
-
}
|
|
111
|
-
_this.changesum(crv)
|
|
112
|
-
}
|
|
113
|
-
}, 6000)
|
|
114
|
-
},
|
|
115
|
-
changesum(titdata){
|
|
116
|
-
for(var i = 0;i<this.tabs.length;i++){
|
|
117
|
-
if(this.tabs[i].name == titdata.title){
|
|
118
|
-
this.tabs[i].icon = titdata.sum + '单'
|
|
119
|
-
console.log(JSON.stringify(this.tabs[i].icon))
|
|
120
|
-
return
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
getTabs(){
|
|
125
|
-
for(let funs in Vue.functions){
|
|
126
|
-
if(Vue.functions[funs].link == 'already-service'){
|
|
127
|
-
return Vue.functions[funs].children
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
imgback(val){
|
|
132
|
-
return require('../assets/'+val+'.png')
|
|
133
|
-
},
|
|
134
|
-
// 返回主界面
|
|
135
|
-
back(){
|
|
136
|
-
this.titleName = '主界面'
|
|
137
|
-
this.isMenu = true
|
|
138
|
-
|
|
139
|
-
},
|
|
140
|
-
gotopage(param,title) {
|
|
141
|
-
console.log('进入子组件')
|
|
142
|
-
var prpdata = {
|
|
143
|
-
_this:this,
|
|
144
|
-
title:title,
|
|
145
|
-
safe:false
|
|
146
|
-
}
|
|
147
|
-
this.$dispatch('gotoson',prpdata)
|
|
148
|
-
this.$goto(param,{sourcet:'竖屏',tabname:title})
|
|
149
|
-
},
|
|
150
|
-
mute () {
|
|
151
|
-
HostApp.mute()
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
}
|
|
155
|
-
</script>
|
|
156
|
-
<style lang="less">
|
|
157
|
-
.tab-befor-img {
|
|
158
|
-
content: '';
|
|
159
|
-
background-size: 30px;
|
|
160
|
-
display: inline-block;
|
|
161
|
-
margin-right: 8px;
|
|
162
|
-
height: 30px;
|
|
163
|
-
width: 30px;
|
|
164
|
-
vertical-align: -35%;
|
|
165
|
-
}
|
|
166
|
-
.pageskuang{
|
|
167
|
-
vertical-align:middle;
|
|
168
|
-
display:table-cell;
|
|
169
|
-
width: 32%;
|
|
170
|
-
top:-50%;
|
|
171
|
-
margin-top: 1%;
|
|
172
|
-
margin-left: 1%;
|
|
173
|
-
border:1px solid #e3e3e3;
|
|
174
|
-
text-align: center;
|
|
175
|
-
background-color: #ffffff;
|
|
176
|
-
}
|
|
177
|
-
.pgesfoot{
|
|
178
|
-
font-size: 14px;
|
|
179
|
-
color: #666666;
|
|
180
|
-
/* font-family: "Pingfhs";*/
|
|
181
|
-
}
|
|
182
|
-
.imgs{
|
|
183
|
-
width: 35px;
|
|
184
|
-
margin-top: 15px;
|
|
185
|
-
}
|
|
186
|
-
.pages-bgcolor{
|
|
187
|
-
text-align: center;
|
|
188
|
-
background-color: #f0f0ef;
|
|
189
|
-
}
|
|
190
|
-
img[src=""],img:not([src]){
|
|
191
|
-
opacity: 0;
|
|
192
|
-
border:none;
|
|
193
|
-
visibility: hidden;
|
|
194
|
-
max-width: none;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.manbiankuang{
|
|
198
|
-
width: 44%;
|
|
199
|
-
margin-top: 15px;
|
|
200
|
-
margin-left: 4%;
|
|
201
|
-
border:1px solid #e3e3e3;
|
|
202
|
-
border-radius:10px 10px 10px 10px;
|
|
203
|
-
text-align: center;
|
|
204
|
-
background-color: #ffffff;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.nav-bgcolor{
|
|
208
|
-
background-color: #ffffff;
|
|
209
|
-
}
|
|
210
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="nav-bgcolor">
|
|
3
|
+
<div class="auto">
|
|
4
|
+
<div class="row nav-bgcolor" >
|
|
5
|
+
<div class="col-xs-6 manbiankuang" v-for="tab in tabs" @click="gotopage(tab.link,tab.name)">
|
|
6
|
+
<img class="imgs" :src="imgback(tab.name)">
|
|
7
|
+
<div class="badge" v-show="tab.name == '安检已办' && alreadyDoneNumShow && alreadyDoneNumShow == 'true'">
|
|
8
|
+
<div class="badge-content">{{ alreadyDoneNum?alreadyDoneNum:0 }}</div>
|
|
9
|
+
</div>
|
|
10
|
+
<p></p>
|
|
11
|
+
<p class="pagesfoot">{{tab.name}}</p>
|
|
12
|
+
<!--<p class="pagesfoot">{{tab.name}} {{tab.icon}}</p>-->
|
|
13
|
+
<p></p>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
<!--<div class="row" style="overflow:auto;">-->
|
|
17
|
+
<!--<repair-first v-show="componentName == 'repair-first'" worktype="报修单" :sourcet="sourcet" tabname="维修待办" v-on:changesum="changesum"></repair-first>-->
|
|
18
|
+
<!--<zhihuan-first v-show="componentName == 'zhihuan-first'" worktype="置换通气单" :sourcet="sourcet" tabname="置换待办" v-on:changesum="changesum"></zhihuan-first>-->
|
|
19
|
+
<!--</div>-->
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</template>
|
|
23
|
+
|
|
24
|
+
<script scoped>
|
|
25
|
+
import Vue from 'vue'
|
|
26
|
+
import * as Util from '../Util'
|
|
27
|
+
export default {
|
|
28
|
+
title: '已办工作导航',
|
|
29
|
+
data () {
|
|
30
|
+
return {
|
|
31
|
+
titleName:'已办工作',
|
|
32
|
+
isMenu:true,
|
|
33
|
+
alreadyDoneNum:0,
|
|
34
|
+
isShowRedNum:this.$appdata.getSingleValue('手机端获取任务条数'),
|
|
35
|
+
alreadyDoneNumShow:this.$appdata.getSingleValue('安检已办红点提醒'),
|
|
36
|
+
tabs: this.getTabs(),
|
|
37
|
+
text: '导航组件this',
|
|
38
|
+
beforeName:'已办工作',
|
|
39
|
+
sourcet:'竖屏'
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
ready () {
|
|
43
|
+
// this.getModelSum()
|
|
44
|
+
this.getAlreadyDoneNum()
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
methods: {
|
|
48
|
+
getAlreadyDoneNum(){
|
|
49
|
+
let criteria = {
|
|
50
|
+
items: 'id',
|
|
51
|
+
tablename: 't_check_plan_item',
|
|
52
|
+
condition: `f_no_checkplan = '有计划安检' and f_approved = '不通过'`,
|
|
53
|
+
groupitem: 'id'
|
|
54
|
+
}
|
|
55
|
+
let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
|
|
56
|
+
this.alreadyDoneNum = result.data.rows.length
|
|
57
|
+
},
|
|
58
|
+
// 查询本地所有待办
|
|
59
|
+
getModelSum(){
|
|
60
|
+
for(var i = 0;i<this.tabs.length;i++){
|
|
61
|
+
if(this.tabs[i].link == 'completed-zhihuan' ){
|
|
62
|
+
this.getZhihuan()
|
|
63
|
+
}
|
|
64
|
+
if(this.tabs[i].link == 'completed-repair' ){
|
|
65
|
+
this.getRepair()
|
|
66
|
+
}
|
|
67
|
+
if(this.tabs[i].link == 'area-plan' ){
|
|
68
|
+
this.getSafeCheck()
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
},
|
|
73
|
+
getRepair(){
|
|
74
|
+
var _this = this;
|
|
75
|
+
this.timeoutRepair = window.setInterval(function() {
|
|
76
|
+
let result = _this.$androidUtil.path({'alias':`getCompletedInfo`, 'data': {f_workorder_type: '报修单',condition:'1 = 1'}})
|
|
77
|
+
if (result.code === 200) {
|
|
78
|
+
console.log('查询得到的代办2' + JSON.stringify(result))
|
|
79
|
+
var crv = {
|
|
80
|
+
title: '维修已办',
|
|
81
|
+
sum: result.data.length
|
|
82
|
+
}
|
|
83
|
+
_this.changesum(crv)
|
|
84
|
+
}
|
|
85
|
+
}, 6000)
|
|
86
|
+
},
|
|
87
|
+
getSafeCheck(){
|
|
88
|
+
var _this = this;
|
|
89
|
+
this.timeoutRepair = window.setInterval(function() {
|
|
90
|
+
let result = _this.$androidUtil.path({'alias':`getSafecheckCompletedInfo`, 'data': {condition:'1 = 1'}})
|
|
91
|
+
if (result.code === 200) {
|
|
92
|
+
console.log('查询得到的安检已办' + JSON.stringify(result))
|
|
93
|
+
var crv = {
|
|
94
|
+
title: '安检已办',
|
|
95
|
+
sum: result.data.length
|
|
96
|
+
}
|
|
97
|
+
_this.changesum(crv)
|
|
98
|
+
}
|
|
99
|
+
}, 6000)
|
|
100
|
+
},
|
|
101
|
+
getZhihuan(){
|
|
102
|
+
var _this = this;
|
|
103
|
+
this.timeoutZhihuan = window.setInterval(function() {
|
|
104
|
+
let result = _this.$androidUtil.path({'alias':`getCompletedInfo`, 'data': {f_workorder_type: '置换通气单',condition:'1 = 1'}})
|
|
105
|
+
if (result.code === 200) {
|
|
106
|
+
console.log('查询得到的代办2' + JSON.stringify(result))
|
|
107
|
+
var crv = {
|
|
108
|
+
title: '置换已办',
|
|
109
|
+
sum: result.data.length
|
|
110
|
+
}
|
|
111
|
+
_this.changesum(crv)
|
|
112
|
+
}
|
|
113
|
+
}, 6000)
|
|
114
|
+
},
|
|
115
|
+
changesum(titdata){
|
|
116
|
+
for(var i = 0;i<this.tabs.length;i++){
|
|
117
|
+
if(this.tabs[i].name == titdata.title){
|
|
118
|
+
this.tabs[i].icon = titdata.sum + '单'
|
|
119
|
+
console.log(JSON.stringify(this.tabs[i].icon))
|
|
120
|
+
return
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
getTabs(){
|
|
125
|
+
for(let funs in Vue.functions){
|
|
126
|
+
if(Vue.functions[funs].link == 'already-service'){
|
|
127
|
+
return Vue.functions[funs].children
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
imgback(val){
|
|
132
|
+
return require('../assets/'+val+'.png')
|
|
133
|
+
},
|
|
134
|
+
// 返回主界面
|
|
135
|
+
back(){
|
|
136
|
+
this.titleName = '主界面'
|
|
137
|
+
this.isMenu = true
|
|
138
|
+
|
|
139
|
+
},
|
|
140
|
+
gotopage(param,title) {
|
|
141
|
+
console.log('进入子组件')
|
|
142
|
+
var prpdata = {
|
|
143
|
+
_this:this,
|
|
144
|
+
title:title,
|
|
145
|
+
safe:false
|
|
146
|
+
}
|
|
147
|
+
this.$dispatch('gotoson',prpdata)
|
|
148
|
+
this.$goto(param,{sourcet:'竖屏',tabname:title})
|
|
149
|
+
},
|
|
150
|
+
mute () {
|
|
151
|
+
HostApp.mute()
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
}
|
|
155
|
+
</script>
|
|
156
|
+
<style lang="less">
|
|
157
|
+
.tab-befor-img {
|
|
158
|
+
content: '';
|
|
159
|
+
background-size: 30px;
|
|
160
|
+
display: inline-block;
|
|
161
|
+
margin-right: 8px;
|
|
162
|
+
height: 30px;
|
|
163
|
+
width: 30px;
|
|
164
|
+
vertical-align: -35%;
|
|
165
|
+
}
|
|
166
|
+
.pageskuang{
|
|
167
|
+
vertical-align:middle;
|
|
168
|
+
display:table-cell;
|
|
169
|
+
width: 32%;
|
|
170
|
+
top:-50%;
|
|
171
|
+
margin-top: 1%;
|
|
172
|
+
margin-left: 1%;
|
|
173
|
+
border:1px solid #e3e3e3;
|
|
174
|
+
text-align: center;
|
|
175
|
+
background-color: #ffffff;
|
|
176
|
+
}
|
|
177
|
+
.pgesfoot{
|
|
178
|
+
font-size: 14px;
|
|
179
|
+
color: #666666;
|
|
180
|
+
/* font-family: "Pingfhs";*/
|
|
181
|
+
}
|
|
182
|
+
.imgs{
|
|
183
|
+
width: 35px;
|
|
184
|
+
margin-top: 15px;
|
|
185
|
+
}
|
|
186
|
+
.pages-bgcolor{
|
|
187
|
+
text-align: center;
|
|
188
|
+
background-color: #f0f0ef;
|
|
189
|
+
}
|
|
190
|
+
img[src=""],img:not([src]){
|
|
191
|
+
opacity: 0;
|
|
192
|
+
border:none;
|
|
193
|
+
visibility: hidden;
|
|
194
|
+
max-width: none;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.manbiankuang{
|
|
198
|
+
width: 44%;
|
|
199
|
+
margin-top: 15px;
|
|
200
|
+
margin-left: 4%;
|
|
201
|
+
border:1px solid #e3e3e3;
|
|
202
|
+
border-radius:10px 10px 10px 10px;
|
|
203
|
+
text-align: center;
|
|
204
|
+
background-color: #ffffff;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.nav-bgcolor{
|
|
208
|
+
background-color: #ffffff;
|
|
209
|
+
}
|
|
210
|
+
</style>
|