|
@@ -1,460 +1,551 @@
|
1
|
1
|
<template>
|
2
|
|
- <div class="fle bgColor">
|
3
|
|
- <!-- 头部导航栏 -->
|
4
|
|
- <div class="tav">
|
5
|
|
- <div @click="toRapir()">
|
6
|
|
- <i class="iconfont icon-xinjian"></i>
|
7
|
|
- <span>快速报修</span>
|
8
|
|
- </div>
|
9
|
|
- <div @click="toKnowList()">
|
10
|
|
- <i class="iconfont icon-message"></i>
|
11
|
|
- <span>常见问题</span>
|
12
|
|
- </div>
|
13
|
|
- <!-- <div @click="toGuide()">
|
|
2
|
+ <div class="fle bgColor">
|
|
3
|
+ <!-- 头部导航栏 -->
|
|
4
|
+ <div class="tav">
|
|
5
|
+ <div @click="toRapir()">
|
|
6
|
+ <i class="iconfont icon-xinjian"></i>
|
|
7
|
+ <span>快速报修</span>
|
|
8
|
+ </div>
|
|
9
|
+ <div @click="toKnowList()">
|
|
10
|
+ <i class="iconfont icon-message"></i>
|
|
11
|
+ <span>常见问题</span>
|
|
12
|
+ </div>
|
|
13
|
+ <div @click="toCheckNumber()">
|
|
14
|
+ <i class="dash dash-chahao"></i>
|
|
15
|
+ <span>电话查号</span>
|
|
16
|
+ </div>
|
|
17
|
+ <div @click="toChangePassword()">
|
|
18
|
+ <i class="dash dash-xiugaimima"></i>
|
|
19
|
+ <span>修改密码</span>
|
|
20
|
+ </div>
|
|
21
|
+ <!-- <div @click="toGuide()">
|
14
|
22
|
<i class="iconfont icon-fuwuzhinan"></i>
|
15
|
23
|
<span>服务指南</span>
|
16
|
24
|
</div> -->
|
|
25
|
+ </div>
|
|
26
|
+ <div class="bigBody">
|
|
27
|
+ <!-- 最新报修 -->
|
|
28
|
+ <div class="newRepair">
|
|
29
|
+ <div class="titHead">
|
|
30
|
+ <span class="tit"
|
|
31
|
+ ><i class="iconfont icon-zuixinbaoxiu newPapir"></i
|
|
32
|
+ ><span>最新报修</span></span
|
|
33
|
+ >
|
|
34
|
+ <span class="link" @click="toIncidentList()"
|
|
35
|
+ >更多<i class="iconfont icon-moren"></i
|
|
36
|
+ ></span>
|
17
|
37
|
</div>
|
18
|
|
- <div class="bigBody">
|
19
|
|
- <!-- 最新报修 -->
|
20
|
|
- <div class="newRepair">
|
21
|
|
- <div class="titHead">
|
22
|
|
- <span class="tit"><i class="iconfont icon-zuixinbaoxiu newPapir"></i><span>最新报修</span></span>
|
23
|
|
- <span class="link" @click="toIncidentList()">更多<i class="iconfont icon-moren"></i></span>
|
24
|
|
- </div>
|
25
|
|
- <div class="conentBox" v-for="v in newRapirData" @click="toIncidentDetails(v)" v-if="!newRapirNoData&&!newRapirLoading">
|
26
|
|
- <div class="conent">
|
27
|
|
- <div class="head">
|
28
|
|
- <!-- <span>{{v.requester.name}}</span> -->
|
29
|
|
- <span>报修编号:{{v.bxcode}}</span>
|
30
|
|
- <span>{{v.createTime}}</span>
|
31
|
|
- </div>
|
32
|
|
- <div class="cot">
|
33
|
|
- {{v.description}}
|
34
|
|
- </div>
|
35
|
|
- </div>
|
36
|
|
- <div class="flowChart">
|
37
|
|
- <div class="pits">
|
38
|
|
- <div :class="state!=1?'yesLine':''"></div>
|
39
|
|
- <div :class="state!=1&&state!=2?'yesLine':''"></div>
|
40
|
|
- <div :class="state!=1&&state!=2&&state!=3?'yesLine':''"></div>
|
41
|
|
- <div :class="state!=1&&state!=2&&state!=3&&state!=4?'yesLine':''"></div>
|
|
38
|
+ <div
|
|
39
|
+ class="conentBox"
|
|
40
|
+ v-for="v in newRapirData"
|
|
41
|
+ @click="toIncidentDetails(v)"
|
|
42
|
+ v-if="!newRapirNoData && !newRapirLoading"
|
|
43
|
+ >
|
|
44
|
+ <div class="conent">
|
|
45
|
+ <div class="head">
|
|
46
|
+ <!-- <span>{{v.requester.name}}</span> -->
|
|
47
|
+ <span>报修编号:{{ v.bxcode }}</span>
|
|
48
|
+ <span>{{ v.createTime }}</span>
|
|
49
|
+ </div>
|
|
50
|
+ <div class="cot">
|
|
51
|
+ {{ v.description }}
|
|
52
|
+ </div>
|
|
53
|
+ </div>
|
|
54
|
+ <div class="flowChart">
|
|
55
|
+ <div class="pits">
|
|
56
|
+ <div :class="state != 1 ? 'yesLine' : ''"></div>
|
|
57
|
+ <div :class="state != 1 && state != 2 ? 'yesLine' : ''"></div>
|
|
58
|
+ <div
|
|
59
|
+ :class="state != 1 && state != 2 && state != 3 ? 'yesLine' : ''"
|
|
60
|
+ ></div>
|
|
61
|
+ <div
|
|
62
|
+ :class="
|
|
63
|
+ state != 1 && state != 2 && state != 3 && state != 4
|
|
64
|
+ ? 'yesLine'
|
|
65
|
+ : ''
|
|
66
|
+ "
|
|
67
|
+ ></div>
|
42
|
68
|
|
43
|
|
- <i class="iconfont icon-icon_weizuo shenqing no" v-if="false"></i>
|
44
|
|
- <i class="iconfont icon-icon_weizuo shouli no" v-if="state==1"></i>
|
45
|
|
- <i class="iconfont icon-icon_weizuo chuli no" v-if="state==2||state==1"></i>
|
46
|
|
- <i class="iconfont icon-icon_weizuo pingjia no" v-if="state==3||state==2||state==1"></i>
|
47
|
|
- <i class="iconfont icon-icon_weizuo wancheng no" v-if="state==4||state==3||state==2||state==1"></i>
|
|
69
|
+ <i class="iconfont icon-icon_weizuo shenqing no" v-if="false"></i>
|
|
70
|
+ <i
|
|
71
|
+ class="iconfont icon-icon_weizuo shouli no"
|
|
72
|
+ v-if="state == 1"
|
|
73
|
+ ></i>
|
|
74
|
+ <i
|
|
75
|
+ class="iconfont icon-icon_weizuo chuli no"
|
|
76
|
+ v-if="state == 2 || state == 1"
|
|
77
|
+ ></i>
|
|
78
|
+ <i
|
|
79
|
+ class="iconfont icon-icon_weizuo pingjia no"
|
|
80
|
+ v-if="state == 3 || state == 2 || state == 1"
|
|
81
|
+ ></i>
|
|
82
|
+ <i
|
|
83
|
+ class="iconfont icon-icon_weizuo wancheng no"
|
|
84
|
+ v-if="state == 4 || state == 3 || state == 2 || state == 1"
|
|
85
|
+ ></i>
|
48
|
86
|
|
49
|
|
- <i class="iconfont icon-icon_weizuo shenqing yes" v-if="state!=1"></i>
|
50
|
|
- <i class="iconfont icon-icon_weizuo shouli yes" v-if="state!=1&&state!=2"></i>
|
51
|
|
- <i class="iconfont icon-icon_weizuo chuli yes" v-if="state!=1&&state!=2&&state!=3"></i>
|
52
|
|
- <i class="iconfont icon-icon_weizuo pingjia yes" v-if="state!=1&&state!=2&&state!=3&&state!=4"></i>
|
53
|
|
- <i class="iconfont icon-icon_weizuo wancheng yes" v-if="false"></i>
|
|
87
|
+ <i
|
|
88
|
+ class="iconfont icon-icon_weizuo shenqing yes"
|
|
89
|
+ v-if="state != 1"
|
|
90
|
+ ></i>
|
|
91
|
+ <i
|
|
92
|
+ class="iconfont icon-icon_weizuo shouli yes"
|
|
93
|
+ v-if="state != 1 && state != 2"
|
|
94
|
+ ></i>
|
|
95
|
+ <i
|
|
96
|
+ class="iconfont icon-icon_weizuo chuli yes"
|
|
97
|
+ v-if="state != 1 && state != 2 && state != 3"
|
|
98
|
+ ></i>
|
|
99
|
+ <i
|
|
100
|
+ class="iconfont icon-icon_weizuo pingjia yes"
|
|
101
|
+ v-if="state != 1 && state != 2 && state != 3 && state != 4"
|
|
102
|
+ ></i>
|
|
103
|
+ <i
|
|
104
|
+ class="iconfont icon-icon_weizuo wancheng yes"
|
|
105
|
+ v-if="false"
|
|
106
|
+ ></i>
|
54
|
107
|
|
55
|
|
- <i class="iconfont icon-icon_zhengzaijinx shenqing now" v-if="state==1"></i>
|
56
|
|
- <i class="iconfont icon-icon_zhengzaijinx shouli now" v-if="state==2"></i>
|
57
|
|
- <i class="iconfont icon-icon_zhengzaijinx chuli now" v-if="state==3"></i>
|
58
|
|
- <i class="iconfont icon-icon_zhengzaijinx pingjia now" v-if="state==4"></i>
|
59
|
|
- <i class="iconfont icon-icon_zhengzaijinx wancheng now" v-if="state==5"></i>
|
60
|
|
- </div>
|
61
|
|
- <div class="words">
|
62
|
|
- <div>申请</div>
|
63
|
|
- <div>受理</div>
|
64
|
|
- <div>处理</div>
|
65
|
|
- <div>评价</div>
|
66
|
|
- <div>完成</div>
|
67
|
|
- </div>
|
68
|
|
- </div>
|
69
|
|
- </div>
|
70
|
|
- <!-- 无数据 -->
|
71
|
|
- <div class="wushuju" v-if="newRapirNoData">
|
72
|
|
- <img src="./../../static/images/wushuju.svg" alt="">
|
73
|
|
- <div class="noDataFont">暂无数据</div>
|
74
|
|
- </div>
|
75
|
|
- <!-- loading -->
|
76
|
|
- <div class="loading" v-if="newRapirLoading">
|
77
|
|
- <cube-loading :size="30"></cube-loading>
|
78
|
|
- </div>
|
|
108
|
+ <i
|
|
109
|
+ class="iconfont icon-icon_zhengzaijinx shenqing now"
|
|
110
|
+ v-if="state == 1"
|
|
111
|
+ ></i>
|
|
112
|
+ <i
|
|
113
|
+ class="iconfont icon-icon_zhengzaijinx shouli now"
|
|
114
|
+ v-if="state == 2"
|
|
115
|
+ ></i>
|
|
116
|
+ <i
|
|
117
|
+ class="iconfont icon-icon_zhengzaijinx chuli now"
|
|
118
|
+ v-if="state == 3"
|
|
119
|
+ ></i>
|
|
120
|
+ <i
|
|
121
|
+ class="iconfont icon-icon_zhengzaijinx pingjia now"
|
|
122
|
+ v-if="state == 4"
|
|
123
|
+ ></i>
|
|
124
|
+ <i
|
|
125
|
+ class="iconfont icon-icon_zhengzaijinx wancheng now"
|
|
126
|
+ v-if="state == 5"
|
|
127
|
+ ></i>
|
|
128
|
+ </div>
|
|
129
|
+ <div class="words">
|
|
130
|
+ <div>申请</div>
|
|
131
|
+ <div>受理</div>
|
|
132
|
+ <div>处理</div>
|
|
133
|
+ <div>评价</div>
|
|
134
|
+ <div>完成</div>
|
|
135
|
+ </div>
|
|
136
|
+ </div>
|
|
137
|
+ </div>
|
|
138
|
+ <!-- 无数据 -->
|
|
139
|
+ <div class="wushuju" v-if="newRapirNoData">
|
|
140
|
+ <img src="./../../static/images/wushuju.svg" alt="" />
|
|
141
|
+ <div class="noDataFont">暂无数据</div>
|
|
142
|
+ </div>
|
|
143
|
+ <!-- loading -->
|
|
144
|
+ <div class="loading" v-if="newRapirLoading">
|
|
145
|
+ <cube-loading :size="30"></cube-loading>
|
|
146
|
+ </div>
|
|
147
|
+ </div>
|
|
148
|
+ <!-- 最新公告 -->
|
|
149
|
+ <div class="newNotice">
|
|
150
|
+ <div class="titHead titHead1">
|
|
151
|
+ <span class="tit"
|
|
152
|
+ ><i class="iconfont icon-message newNoticeico"></i
|
|
153
|
+ ><span>最新公告</span></span
|
|
154
|
+ >
|
|
155
|
+ <span class="link" @click="toNoticeList()"
|
|
156
|
+ >更多<i class="iconfont icon-moren"></i
|
|
157
|
+ ></span>
|
|
158
|
+ </div>
|
|
159
|
+ <div class="conentBox" v-if="!newNoticeNoData && !newNoticeLoading">
|
|
160
|
+ <div
|
|
161
|
+ class="conent"
|
|
162
|
+ v-for="v in noticeData"
|
|
163
|
+ @click="toNoticeDetails(v)"
|
|
164
|
+ >
|
|
165
|
+ <div class="head">
|
|
166
|
+ <!-- <span>{{v.title}}</span> -->
|
|
167
|
+ {{ v.title }}
|
79
|
168
|
</div>
|
80
|
|
- <!-- 最新公告 -->
|
81
|
|
- <div class="newNotice">
|
82
|
|
- <div class="titHead titHead1">
|
83
|
|
- <span class="tit"><i class="iconfont icon-message newNoticeico"></i><span>最新公告</span></span>
|
84
|
|
- <span class="link" @click="toNoticeList()">更多<i class="iconfont icon-moren"></i></span>
|
85
|
|
- </div>
|
86
|
|
- <div class="conentBox" v-if="!newNoticeNoData&&!newNoticeLoading">
|
87
|
|
- <div class="conent" v-for="v in noticeData" @click="toNoticeDetails(v)">
|
88
|
|
- <div class="head">
|
89
|
|
- <!-- <span>{{v.title}}</span> -->
|
90
|
|
- {{v.title}}
|
91
|
|
- </div>
|
92
|
|
- <div class="cot">
|
93
|
|
- {{v.createTime.substring(0,v.createTime.length-5)}}
|
94
|
|
- </div>
|
95
|
|
- </div>
|
96
|
|
- </div>
|
97
|
|
- <!-- 无数据 -->
|
98
|
|
- <div class="wushuju" v-if="newNoticeNoData">
|
99
|
|
- <img src="./../../static/images/wugonggao.svg" alt="">
|
100
|
|
- <div class="noDataFont">暂无数据</div>
|
101
|
|
- </div>
|
102
|
|
- <!-- loading -->
|
103
|
|
- <div class="loading" v-if="newNoticeLoading">
|
104
|
|
- <cube-loading :size="30"></cube-loading>
|
105
|
|
- </div>
|
|
169
|
+ <div class="cot">
|
|
170
|
+ {{ v.createTime.substring(0, v.createTime.length - 5) }}
|
106
|
171
|
</div>
|
|
172
|
+ </div>
|
|
173
|
+ </div>
|
|
174
|
+ <!-- 无数据 -->
|
|
175
|
+ <div class="wushuju" v-if="newNoticeNoData">
|
|
176
|
+ <img src="./../../static/images/wugonggao.svg" alt="" />
|
|
177
|
+ <div class="noDataFont">暂无数据</div>
|
107
|
178
|
</div>
|
|
179
|
+ <!-- loading -->
|
|
180
|
+ <div class="loading" v-if="newNoticeLoading">
|
|
181
|
+ <cube-loading :size="30"></cube-loading>
|
|
182
|
+ </div>
|
|
183
|
+ </div>
|
108
|
184
|
</div>
|
|
185
|
+ </div>
|
109
|
186
|
</template>
|
110
|
187
|
<script>
|
111
|
|
-import {formatDate} from './../components/js/date.js';
|
|
188
|
+import { formatDate } from "./../components/js/date.js";
|
112
|
189
|
export default {
|
113
|
|
- data(){
|
114
|
|
- return{
|
115
|
|
- loginUser:JSON.parse(localStorage.getItem("loginUser")),
|
116
|
|
- noticeData:"",//公告列表
|
117
|
|
- newRapirData:"",//最新报修
|
118
|
|
- state:"",//流程状态
|
119
|
|
- newRapirNoData:false,//最新报修无数据
|
120
|
|
- newNoticeNoData:false,
|
121
|
|
- newRapirLoading:true,//最新报修loading
|
122
|
|
- newNoticeLoading:true//最新公告loading
|
|
190
|
+ data() {
|
|
191
|
+ return {
|
|
192
|
+ loginUser: JSON.parse(localStorage.getItem("loginUser")),
|
|
193
|
+ noticeData: "", //公告列表
|
|
194
|
+ newRapirData: "", //最新报修
|
|
195
|
+ state: "", //流程状态
|
|
196
|
+ newRapirNoData: false, //最新报修无数据
|
|
197
|
+ newNoticeNoData: false,
|
|
198
|
+ newRapirLoading: true, //最新报修loading
|
|
199
|
+ newNoticeLoading: true //最新公告loading
|
|
200
|
+ };
|
|
201
|
+ },
|
|
202
|
+ methods: {
|
|
203
|
+ ceshi() {
|
|
204
|
+ alert($("html").css("font-size"));
|
|
205
|
+ },
|
|
206
|
+ // 获取公告列表数据
|
|
207
|
+ getNoticData() {
|
|
208
|
+ var that = this;
|
|
209
|
+ this.$http
|
|
210
|
+ .post("service/user/data/fetchDataList/notice", {
|
|
211
|
+ idx: 0,
|
|
212
|
+ sum: 3,
|
|
213
|
+ notice: {
|
|
214
|
+ status: 1
|
|
215
|
+ }
|
|
216
|
+ })
|
|
217
|
+ .then(function(res) {
|
|
218
|
+ that.newNoticeLoading = false;
|
|
219
|
+ if (res.data.list.length > 0) {
|
|
220
|
+ that.newNoticeNoData = false;
|
|
221
|
+ that.noticeData = res.data.list;
|
|
222
|
+ } else {
|
|
223
|
+ that.newNoticeNoData = true;
|
|
224
|
+ }
|
|
225
|
+ });
|
|
226
|
+ },
|
|
227
|
+ // 获取最新报修
|
|
228
|
+ getNewRapir() {
|
|
229
|
+ var that = this;
|
|
230
|
+ this.$http
|
|
231
|
+ .post("service/apply/bpm/fetchServiceTasks", {
|
|
232
|
+ assignee: that.loginUser.id,
|
|
233
|
+ idx: 0,
|
|
234
|
+ sum: 1
|
|
235
|
+ })
|
|
236
|
+ .then(function(res) {
|
|
237
|
+ that.newRapirLoading = false;
|
|
238
|
+ if (res.data.data.length > 0) {
|
|
239
|
+ that.newRapirNoData = false;
|
|
240
|
+ that.newRapirData = res.data.data;
|
|
241
|
+ that.newRapirData[0].createTime = formatDate(
|
|
242
|
+ new Date(that.newRapirData[0].createTime),
|
|
243
|
+ "MM-dd hh:mm"
|
|
244
|
+ );
|
|
245
|
+ if (that.newRapirData[0].state.name == "未受理") {
|
|
246
|
+ that.state = 1;
|
|
247
|
+ } else if (that.newRapirData[0].state.name == "已转换") {
|
|
248
|
+ that.state = 2;
|
|
249
|
+ } else if (that.newRapirData[0].state.name == "处理中") {
|
|
250
|
+ that.state = 3;
|
|
251
|
+ } else if (that.newRapirData[0].state.name == "待评价") {
|
|
252
|
+ that.state = 4;
|
|
253
|
+ } else if (that.newRapirData[0].state.name == "已解决") {
|
|
254
|
+ that.state = 5;
|
|
255
|
+ } else {
|
|
256
|
+ that.state = 5;
|
|
257
|
+ }
|
|
258
|
+ if (
|
|
259
|
+ that.newRapirData[0].incident.state &&
|
|
260
|
+ that.newRapirData[0].incident.state.name
|
|
261
|
+ ) {
|
|
262
|
+ if (that.newRapirData[0].incident.state.name == "待接单") {
|
|
263
|
+ that.state = 3;
|
|
264
|
+ } else if (that.newRapirData[0].incident.state.name == "处理中") {
|
|
265
|
+ that.state = 3;
|
|
266
|
+ }
|
|
267
|
+ }
|
|
268
|
+ console.log(that.state);
|
|
269
|
+ } else {
|
|
270
|
+ that.newRapirNoData = true;
|
|
271
|
+ }
|
|
272
|
+ });
|
|
273
|
+ },
|
|
274
|
+ toRapir() {
|
|
275
|
+ this.$router.push({ path: "/repair" });
|
|
276
|
+ },
|
|
277
|
+ toNoticeDetails(data) {
|
|
278
|
+ this.$router.push({
|
|
279
|
+ name: "NoticeDetails",
|
|
280
|
+ params: {
|
|
281
|
+ data: JSON.stringify(data)
|
123
|
282
|
}
|
|
283
|
+ });
|
|
284
|
+ // this.$router.push({
|
|
285
|
+ // name:'NoticeDetails',
|
|
286
|
+ // params:{
|
|
287
|
+ // data:data
|
|
288
|
+ // }
|
|
289
|
+ // })
|
|
290
|
+ },
|
|
291
|
+ toNoticeList() {
|
|
292
|
+ this.$router.push({ path: "/noticeList" });
|
|
293
|
+ },
|
|
294
|
+ toIncidentList() {
|
|
295
|
+ this.$router.push({ path: "/main/incidentList" });
|
|
296
|
+ },
|
|
297
|
+ toKnowList() {
|
|
298
|
+ this.$router.push({ path: "/knowList" });
|
124
|
299
|
},
|
125
|
|
- methods:{
|
126
|
|
- ceshi(){
|
127
|
|
- alert($('html').css("font-size"));
|
128
|
|
- },
|
129
|
|
- // 获取公告列表数据
|
130
|
|
- getNoticData(){
|
131
|
|
- var that=this;
|
132
|
|
- this.$http.post('service/user/data/fetchDataList/notice',{
|
133
|
|
- idx: 0,
|
134
|
|
- sum: 3,
|
135
|
|
- notice:{
|
136
|
|
- status:1
|
137
|
|
- }
|
138
|
|
- }).then(function(res){
|
139
|
|
- that.newNoticeLoading=false;
|
140
|
|
- if(res.data.list.length>0){
|
141
|
|
- that.newNoticeNoData=false;
|
142
|
|
- that.noticeData=res.data.list;
|
143
|
|
- }else{
|
144
|
|
- that.newNoticeNoData=true
|
145
|
|
- }
|
146
|
|
- })
|
147
|
|
- },
|
148
|
|
- // 获取最新报修
|
149
|
|
- getNewRapir(){
|
150
|
|
- var that=this;
|
151
|
|
- this.$http.post('service/apply/bpm/fetchServiceTasks',{
|
152
|
|
- assignee:that.loginUser.id,
|
153
|
|
- idx: 0,
|
154
|
|
- sum: 1
|
155
|
|
- }).then(function(res){
|
156
|
|
- that.newRapirLoading=false;
|
157
|
|
- if(res.data.data.length>0){
|
158
|
|
- that.newRapirNoData=false;
|
159
|
|
- that.newRapirData=res.data.data;
|
160
|
|
- that.newRapirData[0].createTime=formatDate(new Date(that.newRapirData[0].createTime), 'MM-dd hh:mm');
|
161
|
|
- if(that.newRapirData[0].state.name=="未受理"){
|
162
|
|
- that.state=1
|
163
|
|
- }else if(that.newRapirData[0].state.name=="已转换"){
|
164
|
|
- that.state=2
|
165
|
|
- }else if(that.newRapirData[0].state.name=="处理中"){
|
166
|
|
- that.state=3
|
167
|
|
- }else if(that.newRapirData[0].state.name=="待评价"){
|
168
|
|
- that.state=4
|
169
|
|
- }else if(that.newRapirData[0].state.name=="已解决"){
|
170
|
|
- that.state=5
|
171
|
|
- }else{
|
172
|
|
- that.state=5
|
173
|
|
- }
|
174
|
|
- if(that.newRapirData[0].incident.state&&that.newRapirData[0].incident.state.name){
|
175
|
|
- if(that.newRapirData[0].incident.state.name=="待接单"){
|
176
|
|
- that.state=3
|
177
|
|
- }else if(that.newRapirData[0].incident.state.name=="处理中"){
|
178
|
|
- that.state=3
|
179
|
|
- }
|
180
|
|
- }
|
181
|
|
- console.log(that.state)
|
182
|
|
- }else{
|
183
|
|
- that.newRapirNoData=true
|
184
|
|
- }
|
185
|
|
- })
|
186
|
|
- },
|
187
|
|
- toRapir(){
|
188
|
|
- this.$router.push({path:'/repair'})
|
189
|
|
- },
|
190
|
|
- toNoticeDetails(data){
|
191
|
|
- this.$router.push({
|
192
|
|
- name:'NoticeDetails',
|
193
|
|
- params:{
|
194
|
|
- data:JSON.stringify(data)
|
195
|
|
- }
|
196
|
|
- })
|
197
|
|
- // this.$router.push({
|
198
|
|
- // name:'NoticeDetails',
|
199
|
|
- // params:{
|
200
|
|
- // data:data
|
201
|
|
- // }
|
202
|
|
- // })
|
203
|
|
- },
|
204
|
|
- toNoticeList(){
|
205
|
|
- this.$router.push({path:'/noticeList'})
|
206
|
|
- },
|
207
|
|
- toIncidentList(){
|
208
|
|
- this.$router.push({path:'/main/incidentList'})
|
209
|
|
- },
|
210
|
|
- toKnowList(){
|
211
|
|
- this.$router.push({path:'/knowList'})
|
212
|
|
- },
|
213
|
|
- toGuide(){
|
214
|
|
- this.$router.push({path:'/guide'})
|
215
|
|
- },
|
216
|
|
- toIncidentDetails(data){
|
217
|
|
- this.$router.push({
|
218
|
|
- name:'IncidentDetails',
|
219
|
|
- params:{
|
220
|
|
- data:JSON.stringify(data)
|
221
|
|
- }
|
222
|
|
- })
|
223
|
|
- },
|
|
300
|
+ toCheckNumber() {
|
|
301
|
+ this.$router.push({ path: "/checkNumber" });
|
224
|
302
|
},
|
225
|
|
- created(){
|
226
|
|
- this.getNoticData(),
|
227
|
|
- this.getNewRapir()
|
|
303
|
+ toChangePassword() {
|
|
304
|
+ this.$router.push({ path: "/changePassword" });
|
228
|
305
|
},
|
229
|
|
- mounted(){
|
|
306
|
+ toGuide() {
|
|
307
|
+ this.$router.push({ path: "/guide" });
|
|
308
|
+ },
|
|
309
|
+ toIncidentDetails(data) {
|
|
310
|
+ this.$router.push({
|
|
311
|
+ name: "IncidentDetails",
|
|
312
|
+ params: {
|
|
313
|
+ data: JSON.stringify(data)
|
|
314
|
+ }
|
|
315
|
+ });
|
230
|
316
|
}
|
231
|
|
-}
|
|
317
|
+ },
|
|
318
|
+ created() {
|
|
319
|
+ this.getNoticData(), this.getNewRapir();
|
|
320
|
+ },
|
|
321
|
+ mounted() {}
|
|
322
|
+};
|
232
|
323
|
</script>
|
233
|
324
|
<style scoped>
|
234
|
|
-.bgColor{
|
235
|
|
- background-color: white
|
|
325
|
+.bgColor {
|
|
326
|
+ background-color: white;
|
236
|
327
|
}
|
237
|
|
-.fle{
|
238
|
|
- display: flex;
|
239
|
|
- flex-direction:column;
|
240
|
|
- background-color: white
|
|
328
|
+.fle {
|
|
329
|
+ display: flex;
|
|
330
|
+ flex-direction: column;
|
|
331
|
+ background-color: white;
|
241
|
332
|
}
|
242
|
|
-.bigBody{
|
243
|
|
- display: flex;
|
244
|
|
- flex-direction:column;
|
245
|
|
- height: 100%;
|
246
|
|
- width: 100%
|
|
333
|
+.bigBody {
|
|
334
|
+ display: flex;
|
|
335
|
+ flex-direction: column;
|
|
336
|
+ height: 100%;
|
|
337
|
+ width: 100%;
|
247
|
338
|
}
|
248
|
339
|
/* 头部导航栏 */
|
249
|
|
-.tav{
|
250
|
|
- height: 2rem;
|
251
|
|
- background: linear-gradient(#005395, #226CA8,#003057);
|
252
|
|
- display: flex;
|
253
|
|
- width: 100%
|
254
|
|
-}
|
255
|
|
-.tav div{
|
256
|
|
- flex: 1;
|
257
|
|
- text-align: center;
|
258
|
|
- display: flex;
|
259
|
|
- flex-direction:column;
|
260
|
|
- align-items:center;
|
261
|
|
- justify-content:center
|
262
|
|
-}
|
263
|
|
-.tav div i{
|
264
|
|
- font-size: .6rem;
|
265
|
|
- color: white
|
266
|
|
-}
|
267
|
|
-.tav div span{
|
268
|
|
- font-size: .32rem;
|
269
|
|
- color: white;
|
270
|
|
- display: inline-block;
|
271
|
|
- margin-top: .16rem
|
|
340
|
+.tav {
|
|
341
|
+ height: 2rem;
|
|
342
|
+ background: linear-gradient(#005395, #226ca8, #003057);
|
|
343
|
+ display: flex;
|
|
344
|
+ width: 100%;
|
|
345
|
+}
|
|
346
|
+.tav div {
|
|
347
|
+ flex: 1;
|
|
348
|
+ text-align: center;
|
|
349
|
+ display: flex;
|
|
350
|
+ flex-direction: column;
|
|
351
|
+ align-items: center;
|
|
352
|
+ justify-content: center;
|
|
353
|
+}
|
|
354
|
+.tav div i {
|
|
355
|
+ font-size: 0.6rem;
|
|
356
|
+ color: white;
|
|
357
|
+}
|
|
358
|
+.tav div span {
|
|
359
|
+ font-size: 0.32rem;
|
|
360
|
+ color: white;
|
|
361
|
+ display: inline-block;
|
|
362
|
+ margin-top: 0.16rem;
|
272
|
363
|
}
|
273
|
364
|
/* .bigBody{
|
274
|
365
|
height: auto;
|
275
|
366
|
} */
|
276
|
367
|
/* tit导航 */
|
277
|
|
-.titHead{
|
278
|
|
- display: flex;
|
279
|
|
- justify-content:space-between;
|
280
|
|
- padding: 0 .24rem;
|
281
|
|
- height: .88rem;
|
282
|
|
- line-height: .88rem;
|
283
|
|
- border-bottom: .01rem rgb(238,238,238) solid
|
284
|
|
-}
|
285
|
|
-.titHead1{
|
286
|
|
- height: 1rem;
|
287
|
|
-}
|
288
|
|
-.titHead .tit .newPapir{
|
289
|
|
- font-size: .36rem;
|
290
|
|
- color: #A37200
|
291
|
|
-}
|
292
|
|
-.titHead .tit .newNoticeico{
|
293
|
|
- font-size: .36rem;
|
294
|
|
- color: #005395
|
295
|
|
-}
|
296
|
|
-.titHead .tit span{
|
297
|
|
- display: inline-block;
|
298
|
|
- margin-left: .08rem;
|
299
|
|
- font-size: .36rem
|
300
|
|
-}
|
301
|
|
-.titHead .link{
|
302
|
|
- font-size: .24rem;
|
303
|
|
- color: #999999
|
304
|
|
-}
|
305
|
|
-.titHead .link i{
|
306
|
|
- font-size: .24rem;
|
307
|
|
- color: #999999;
|
308
|
|
- display: inline-block;
|
309
|
|
- margin-left: .08rem
|
|
368
|
+.titHead {
|
|
369
|
+ display: flex;
|
|
370
|
+ justify-content: space-between;
|
|
371
|
+ padding: 0 0.24rem;
|
|
372
|
+ height: 0.88rem;
|
|
373
|
+ line-height: 0.88rem;
|
|
374
|
+ border-bottom: 0.01rem rgb(238, 238, 238) solid;
|
|
375
|
+}
|
|
376
|
+.titHead1 {
|
|
377
|
+ height: 1rem;
|
|
378
|
+}
|
|
379
|
+.titHead .tit .newPapir {
|
|
380
|
+ font-size: 0.36rem;
|
|
381
|
+ color: #a37200;
|
|
382
|
+}
|
|
383
|
+.titHead .tit .newNoticeico {
|
|
384
|
+ font-size: 0.36rem;
|
|
385
|
+ color: #005395;
|
|
386
|
+}
|
|
387
|
+.titHead .tit span {
|
|
388
|
+ display: inline-block;
|
|
389
|
+ margin-left: 0.08rem;
|
|
390
|
+ font-size: 0.36rem;
|
|
391
|
+}
|
|
392
|
+.titHead .link {
|
|
393
|
+ font-size: 0.24rem;
|
|
394
|
+ color: #999999;
|
|
395
|
+}
|
|
396
|
+.titHead .link i {
|
|
397
|
+ font-size: 0.24rem;
|
|
398
|
+ color: #999999;
|
|
399
|
+ display: inline-block;
|
|
400
|
+ margin-left: 0.08rem;
|
310
|
401
|
}
|
311
|
402
|
/* 最新报修 */
|
312
|
|
-.newRepair{
|
313
|
|
- border-top: .16rem rgb(238,238,238) solid;
|
314
|
|
-}
|
315
|
|
-.newRepair .conentBox{
|
316
|
|
- padding: 0 .16rem;
|
317
|
|
- height: auto;
|
318
|
|
-}
|
319
|
|
-.newRepair .conentBox .conent{
|
320
|
|
- padding: .24rem .48rem
|
321
|
|
-}
|
322
|
|
-.newRepair .conentBox .conent .head{
|
323
|
|
- height: .45rem;
|
324
|
|
- line-height: .45rem
|
325
|
|
-}
|
326
|
|
-.newRepair .conentBox .conent .head span:nth-child(1){
|
327
|
|
- float: left;
|
328
|
|
- font-size: .32rem;
|
329
|
|
- font-weight: 400;
|
330
|
|
- color: #333333
|
331
|
|
-}
|
332
|
|
-.newRepair .conentBox .conent .head span:nth-child(2){
|
333
|
|
- float: right;
|
334
|
|
- font-size: .23rem;
|
335
|
|
- color: #999999
|
336
|
|
-}
|
337
|
|
-.newRepair .conentBox .conent .cot{
|
338
|
|
- font-size: .28rem;
|
339
|
|
- color: #666666;
|
340
|
|
- line-height: .39rem;
|
341
|
|
- margin-top: .08rem;
|
342
|
|
- display: -webkit-box;
|
343
|
|
- -webkit-line-clamp: 2;
|
344
|
|
- -webkit-box-orient: vertical;
|
345
|
|
- word-break: break-all;
|
346
|
|
- overflow: hidden;
|
347
|
|
-}
|
348
|
|
-.newRepair .conentBox .flowChart{
|
349
|
|
- border-top: .01rem rgb(238,238,238) solid;
|
350
|
|
- padding: .24rem 0
|
351
|
|
-}
|
352
|
|
-.newRepair .conentBox .flowChart .pits{
|
353
|
|
- display: flex;
|
354
|
|
- margin-top: .24rem;
|
355
|
|
- padding: 0 10%;
|
356
|
|
- position: relative
|
357
|
|
-}
|
358
|
|
-.newRepair .conentBox .flowChart .pits i{
|
359
|
|
- font-size: .3rem
|
360
|
|
-}
|
361
|
|
-.newRepair .conentBox .flowChart .pits div{
|
362
|
|
- border-top: .03rem rgb(224, 222, 222) solid;
|
363
|
|
- flex: 1
|
364
|
|
-}
|
365
|
|
-.newRepair .conentBox .flowChart .pits .yesLine{
|
366
|
|
- border-top: .03rem rgb(1,85,157) solid;
|
367
|
|
-}
|
368
|
|
-.newRepair .conentBox .flowChart .pits .no{
|
369
|
|
- color:#cccccc
|
370
|
|
-}
|
371
|
|
-.newRepair .conentBox .flowChart .pits .yes{
|
372
|
|
- color:#005359
|
373
|
|
-}
|
374
|
|
-.newRepair .conentBox .flowChart .pits .now{
|
375
|
|
- color:#48a843
|
376
|
|
-}
|
377
|
|
-.newRepair .conentBox .flowChart .pits .shenqing{
|
378
|
|
- position: absolute;
|
379
|
|
- left: 8%;
|
380
|
|
- top:-.12rem
|
381
|
|
-}
|
382
|
|
-.newRepair .conentBox .flowChart .pits .shouli{
|
383
|
|
- position: absolute;
|
384
|
|
- left: 28%;
|
385
|
|
- top:-.12rem
|
386
|
|
-}
|
387
|
|
-.newRepair .conentBox .flowChart .pits .chuli{
|
388
|
|
- position: absolute;
|
389
|
|
- left: 48%;
|
390
|
|
- top:-.12rem
|
391
|
|
-}
|
392
|
|
-.newRepair .conentBox .flowChart .pits .pingjia{
|
393
|
|
- position: absolute;
|
394
|
|
- left: 68%;
|
395
|
|
- top:-.12rem
|
396
|
|
-}
|
397
|
|
-.newRepair .conentBox .flowChart .pits .wancheng{
|
398
|
|
- position: absolute;
|
399
|
|
- left: 88%;
|
400
|
|
- top:-.12rem
|
401
|
|
-}
|
402
|
|
-.newRepair .conentBox .flowChart .words{
|
403
|
|
- display: flex;
|
404
|
|
- margin-top: .3rem
|
405
|
|
-}
|
406
|
|
-.newRepair .conentBox .flowChart .words div{
|
407
|
|
- flex: 1;
|
408
|
|
- font-size: .32rem;
|
409
|
|
- text-align: center;
|
410
|
|
- color:#333333
|
|
403
|
+.newRepair {
|
|
404
|
+ border-top: 0.16rem rgb(238, 238, 238) solid;
|
|
405
|
+}
|
|
406
|
+.newRepair .conentBox {
|
|
407
|
+ padding: 0 0.16rem;
|
|
408
|
+ height: auto;
|
|
409
|
+}
|
|
410
|
+.newRepair .conentBox .conent {
|
|
411
|
+ padding: 0.24rem 0.48rem;
|
|
412
|
+}
|
|
413
|
+.newRepair .conentBox .conent .head {
|
|
414
|
+ height: 0.45rem;
|
|
415
|
+ line-height: 0.45rem;
|
|
416
|
+}
|
|
417
|
+.newRepair .conentBox .conent .head span:nth-child(1) {
|
|
418
|
+ float: left;
|
|
419
|
+ font-size: 0.32rem;
|
|
420
|
+ font-weight: 400;
|
|
421
|
+ color: #333333;
|
|
422
|
+}
|
|
423
|
+.newRepair .conentBox .conent .head span:nth-child(2) {
|
|
424
|
+ float: right;
|
|
425
|
+ font-size: 0.23rem;
|
|
426
|
+ color: #999999;
|
|
427
|
+}
|
|
428
|
+.newRepair .conentBox .conent .cot {
|
|
429
|
+ font-size: 0.28rem;
|
|
430
|
+ color: #666666;
|
|
431
|
+ line-height: 0.39rem;
|
|
432
|
+ margin-top: 0.08rem;
|
|
433
|
+ display: -webkit-box;
|
|
434
|
+ -webkit-line-clamp: 2;
|
|
435
|
+ -webkit-box-orient: vertical;
|
|
436
|
+ word-break: break-all;
|
|
437
|
+ overflow: hidden;
|
|
438
|
+}
|
|
439
|
+.newRepair .conentBox .flowChart {
|
|
440
|
+ border-top: 0.01rem rgb(238, 238, 238) solid;
|
|
441
|
+ padding: 0.24rem 0;
|
|
442
|
+}
|
|
443
|
+.newRepair .conentBox .flowChart .pits {
|
|
444
|
+ display: flex;
|
|
445
|
+ margin-top: 0.24rem;
|
|
446
|
+ padding: 0 10%;
|
|
447
|
+ position: relative;
|
|
448
|
+}
|
|
449
|
+.newRepair .conentBox .flowChart .pits i {
|
|
450
|
+ font-size: 0.3rem;
|
|
451
|
+}
|
|
452
|
+.newRepair .conentBox .flowChart .pits div {
|
|
453
|
+ border-top: 0.03rem rgb(224, 222, 222) solid;
|
|
454
|
+ flex: 1;
|
|
455
|
+}
|
|
456
|
+.newRepair .conentBox .flowChart .pits .yesLine {
|
|
457
|
+ border-top: 0.03rem rgb(1, 85, 157) solid;
|
|
458
|
+}
|
|
459
|
+.newRepair .conentBox .flowChart .pits .no {
|
|
460
|
+ color: #cccccc;
|
|
461
|
+}
|
|
462
|
+.newRepair .conentBox .flowChart .pits .yes {
|
|
463
|
+ color: #005359;
|
|
464
|
+}
|
|
465
|
+.newRepair .conentBox .flowChart .pits .now {
|
|
466
|
+ color: #48a843;
|
|
467
|
+}
|
|
468
|
+.newRepair .conentBox .flowChart .pits .shenqing {
|
|
469
|
+ position: absolute;
|
|
470
|
+ left: 8%;
|
|
471
|
+ top: -0.12rem;
|
|
472
|
+}
|
|
473
|
+.newRepair .conentBox .flowChart .pits .shouli {
|
|
474
|
+ position: absolute;
|
|
475
|
+ left: 28%;
|
|
476
|
+ top: -0.12rem;
|
|
477
|
+}
|
|
478
|
+.newRepair .conentBox .flowChart .pits .chuli {
|
|
479
|
+ position: absolute;
|
|
480
|
+ left: 48%;
|
|
481
|
+ top: -0.12rem;
|
|
482
|
+}
|
|
483
|
+.newRepair .conentBox .flowChart .pits .pingjia {
|
|
484
|
+ position: absolute;
|
|
485
|
+ left: 68%;
|
|
486
|
+ top: -0.12rem;
|
|
487
|
+}
|
|
488
|
+.newRepair .conentBox .flowChart .pits .wancheng {
|
|
489
|
+ position: absolute;
|
|
490
|
+ left: 88%;
|
|
491
|
+ top: -0.12rem;
|
|
492
|
+}
|
|
493
|
+.newRepair .conentBox .flowChart .words {
|
|
494
|
+ display: flex;
|
|
495
|
+ margin-top: 0.3rem;
|
|
496
|
+}
|
|
497
|
+.newRepair .conentBox .flowChart .words div {
|
|
498
|
+ flex: 1;
|
|
499
|
+ font-size: 0.32rem;
|
|
500
|
+ text-align: center;
|
|
501
|
+ color: #333333;
|
411
|
502
|
}
|
412
|
503
|
/* 最新公告 */
|
413
|
|
-.newNotice{
|
414
|
|
- border-top: .16rem rgb(238,238,238) solid;
|
415
|
|
- height: 100%;
|
416
|
|
- display: flex;
|
417
|
|
- flex-direction:column;
|
418
|
|
- min-height: 0
|
419
|
|
-}
|
420
|
|
-.newNotice .conentBox{
|
421
|
|
- height: 100%;
|
422
|
|
- overflow: hidden;
|
423
|
|
- overflow-y: scroll
|
424
|
|
-}
|
425
|
|
-.newNotice .conentBox .conent{
|
426
|
|
- padding: .24rem .64rem;
|
427
|
|
- border-bottom: .01rem rgb(238,238,238) solid
|
428
|
|
-}
|
429
|
|
-.newNotice .conentBox .conent .head{
|
430
|
|
- line-height: .45rem;
|
431
|
|
- display: -webkit-box;
|
432
|
|
- -webkit-line-clamp: 2;
|
433
|
|
- -webkit-box-orient: vertical;
|
434
|
|
- word-break: break-all;
|
435
|
|
- overflow: hidden;
|
436
|
|
- font-size: .32rem;
|
|
504
|
+.newNotice {
|
|
505
|
+ border-top: 0.16rem rgb(238, 238, 238) solid;
|
|
506
|
+ height: 100%;
|
|
507
|
+ display: flex;
|
|
508
|
+ flex-direction: column;
|
|
509
|
+ min-height: 0;
|
|
510
|
+}
|
|
511
|
+.newNotice .conentBox {
|
|
512
|
+ height: 100%;
|
|
513
|
+ overflow: hidden;
|
|
514
|
+ overflow-y: scroll;
|
|
515
|
+}
|
|
516
|
+.newNotice .conentBox .conent {
|
|
517
|
+ padding: 0.24rem 0.64rem;
|
|
518
|
+ border-bottom: 0.01rem rgb(238, 238, 238) solid;
|
|
519
|
+}
|
|
520
|
+.newNotice .conentBox .conent .head {
|
|
521
|
+ line-height: 0.45rem;
|
|
522
|
+ display: -webkit-box;
|
|
523
|
+ -webkit-line-clamp: 2;
|
|
524
|
+ -webkit-box-orient: vertical;
|
|
525
|
+ word-break: break-all;
|
|
526
|
+ overflow: hidden;
|
|
527
|
+ font-size: 0.32rem;
|
437
|
528
|
}
|
438
|
529
|
/* .newNotice .conentBox .conent .head span{
|
439
|
530
|
font-size: .32rem;
|
440
|
531
|
} */
|
441
|
|
-.newNotice .conentBox .conent .cot{
|
442
|
|
- font-size: .24rem;
|
443
|
|
- color: #999999;
|
444
|
|
- line-height: .34rem;
|
445
|
|
- margin-top: .08rem
|
446
|
|
-}
|
447
|
|
-.wushuju{
|
448
|
|
- text-align: center;
|
449
|
|
-}
|
450
|
|
-.wushuju img{
|
451
|
|
- width: 5.12rem;
|
452
|
|
- height: 2.84rem;
|
453
|
|
-}
|
454
|
|
-.loading{
|
455
|
|
- height: 2rem;
|
456
|
|
- display: flex;
|
457
|
|
- justify-content:center;
|
458
|
|
- align-items:center
|
|
532
|
+.newNotice .conentBox .conent .cot {
|
|
533
|
+ font-size: 0.24rem;
|
|
534
|
+ color: #999999;
|
|
535
|
+ line-height: 0.34rem;
|
|
536
|
+ margin-top: 0.08rem;
|
|
537
|
+}
|
|
538
|
+.wushuju {
|
|
539
|
+ text-align: center;
|
|
540
|
+}
|
|
541
|
+.wushuju img {
|
|
542
|
+ width: 5.12rem;
|
|
543
|
+ height: 2.84rem;
|
|
544
|
+}
|
|
545
|
+.loading {
|
|
546
|
+ height: 2rem;
|
|
547
|
+ display: flex;
|
|
548
|
+ justify-content: center;
|
|
549
|
+ align-items: center;
|
459
|
550
|
}
|
460
|
551
|
</style>
|