Ver Código Fonte

我的任务

miaofuhao 3 anos atrás
pai
commit
c376054bfd

+ 2 - 2
anyangWebAPP/pages/login/login.vue

@@ -160,8 +160,8 @@
160 160
 							uni.setStorageSync('userName', data.user.F_UserName)
161 161
 							uni.setStorageSync('userCode', data.user.F_UserCode)
162 162
 							const code = uni.getStorageSync("roleCode");
163
-							if (code === "SPZ" || code === "SPZJZ" || code === "WLDW" || code === "EJWLDW" || code ===
164
-								"ZXHWY" || code === "GLY") {
163
+							
164
+							if (code === "ZXLD"||code === "MTDD"||code === "WLDW"||code === "EJWLDW") {
165 165
 								uni.switchTab({
166 166
 									url: '/pages/myTask/myTask'
167 167
 								});

+ 47 - 50
anyangWebAPP/pages/myTask/myTask.vue

@@ -14,12 +14,19 @@
14 14
 				<image src="../../static/orderManage.png"></image>
15 15
 				<text>工单进度</text>
16 16
 			</view>
17
-
17
+			
18 18
 			<view class="orderCon">
19
-				<view class="orderList" v-for="item in orderListData" :key="item.id" @click="workOrderListClick(item)">
20
-					<image :style="{ background: item.imageBg }" :src="item.imagePath" mode=""></image>
21
-					<text>{{ item.text }}</text>
22
-				</view>
19
+				<uni-collapse accordion v-model="accordionVal">
20
+					<uni-collapse-item :title="item.name" v-for="item in menuListData" :key="item.id">
21
+						<view class="orderConList">
22
+							<view class="orderList" v-for="itemChild in item.children" :key="itemChild.id" @click="workOrderListClick(itemChild)">
23
+								 <uni-icons :type="itemChild.listIcon" :color="itemChild.listColor" size="30"></uni-icons>
24
+								<text>{{ itemChild.name }}</text>
25
+							</view>
26
+							<!-- <text class="text">手风琴效果同时只会保留一个组件的打开状态,其余组件会自动关闭。</text> -->
27
+						</view>
28
+					</uni-collapse-item>
29
+				</uni-collapse>
23 30
 			</view>
24 31
 
25 32
 			<view class="orderTit" @click="changeStore" v-if="noticState">
@@ -44,13 +51,15 @@
44 51
 		mapGetters
45 52
 	} from "vuex"
46 53
 	import store from '@/store';
47
-
54
+	import listUrl  from '@/utils/listUrl.js'
55
+	const dispatchPersonnel = ["auditorList","Multimedia","MarketingManagement","OtherPhoneManagement"]
48 56
 
49 57
 
50 58
 	export default {
51 59
 		data() {
52 60
 			return {
53 61
 				indicatorDots: true,
62
+				accordionVal: '0',
54 63
 				autoplay: true,
55 64
 				interval: 2000,
56 65
 				noticState: false,
@@ -58,6 +67,7 @@
58 67
 				bannnerData: [],
59 68
 				orderListData: [],
60 69
 				noticListData: [],
70
+				menuListData:[],
61 71
 			}
62 72
 		},
63 73
 		computed: {
@@ -93,8 +103,9 @@
93 103
 				this.$mStore.dispatch("STATE", 3)
94 104
 			},
95 105
 			workOrderListClick(item) {
106
+				console.log(item.code)
96 107
 				uni.navigateTo({
97
-					url: item.navigateToUrl,
108
+					url: "/pages/myTask/workOrderList/workOrderList?menuCode="+item.code,
98 109
 				})
99 110
 			},
100 111
 
@@ -115,34 +126,24 @@
115 126
 						if (response.state.toLowerCase() === "success") {
116 127
 							let data = response.message
117 128
 						}
118
-
119 129
 					})
120 130
 					.catch((e) => {
121 131
 						console.log(e)
122 132
 					})
123
-
124 133
 			},
125 134
 
126 135
 			getMenuPermissions() {
127 136
 				let code = uni.getStorageSync("roleCode");
128
-				console.log(code)
129
-				// this.$http.get("InternalMessages/GetCount", {token: uni.getStorageSync("token")}).then((response) => {
130
-				// 		if (response.state.toLowerCase() === "success") {
131
-				// 			if(response.IsRead == 1) {
132
-				// 				uni.showTabBarRedDot({
133
-				// 				  index: 1
134
-				// 				})
135
-				// 			}else{
136
-				// 				uni.hideTabBarRedDot({
137
-				// 				  index: 1
138
-				// 				})
139
-				// 			}
140
-				// 		}
141
-				
142
-				// 	})
143
-				// 	.catch((e) => {
144
-				// 		console.log(e)
145
-				// 	})
137
+				this.$http.get("Index/GetMenu", {token: uni.getStorageSync("token")}).then((response) => {
138
+						if (response.state.toLowerCase() === "success") {
139
+							if (response.data.length>0) {
140
+								this.menuListData = listUrl.getMenuData(response.data,code)
141
+							}
142
+						}
143
+					})
144
+					.catch((e) => {
145
+						console.log(e)
146
+					})
146 147
 				/* 
147 148
 				GLY:管理员
148 149
 						SPZ:审批组
@@ -151,21 +152,21 @@
151 152
 				EJWLDW:三级单位
152 153
 				DBZY:督办专员
153 154
 			  */
154
-				if (code === "GLY") {
155
-					this.orderListData = this.$mConstDataConfig.roleListData.supervisionList
156
-				} else if (code === "SPZ") {
157
-					this.orderListData = this.$mConstDataConfig.roleListData.approvalList
158
-				} else if (code === "SPZJZ") {
159
-					this.orderListData = this.$mConstDataConfig.roleListData.examinationApprovalList
160
-				} else if (code === "WLDW") {
161
-					this.orderListData = this.$mConstDataConfig.roleListData.secondaryUnitList
162
-				} else if (code === "EJWLDW") {
163
-					this.orderListData = this.$mConstDataConfig.roleListData.tertiaryUnitList
164
-				} else if (code === "DBZY" || code === "DBGLY") {
165
-					this.orderListData = this.$mConstDataConfig.roleListData.supervisorList
166
-				} else if (code == 'ZXHWY') {
167
-					this.orderListData = this.$mConstDataConfig.roleListData.returnVisitList
168
-				}
155
+				// if (code === "GLY") {
156
+				// 	this.orderListData = this.$mConstDataConfig.roleListData.supervisionList
157
+				// } else if (code === "SPZ") {
158
+				// 	this.orderListData = this.$mConstDataConfig.roleListData.approvalList
159
+				// } else if (code === "SPZJZ") {
160
+				// 	this.orderListData = this.$mConstDataConfig.roleListData.examinationApprovalList
161
+				// } else if (code === "WLDW") {
162
+				// 	this.orderListData = this.$mConstDataConfig.roleListData.secondaryUnitList
163
+				// } else if (code === "EJWLDW") {
164
+				// 	this.orderListData = this.$mConstDataConfig.roleListData.tertiaryUnitList
165
+				// } else if (code === "DBZY" || code === "DBGLY") {
166
+				// 	this.orderListData = this.$mConstDataConfig.roleListData.supervisorList
167
+				// } else if (code == 'ZXHWY') {
168
+				// 	this.orderListData = this.$mConstDataConfig.roleListData.returnVisitList
169
+				// }
169 170
 			},
170 171
 		},
171 172
 	}
@@ -210,7 +211,7 @@
210 211
 			}
211 212
 		}
212 213
 
213
-		.orderCon {
214
+		.orderConList {
214 215
 			background: #ffffff;
215 216
 			display: flex;
216 217
 			flex-wrap: wrap;
@@ -219,17 +220,13 @@
219 220
 				width: 186rpx;
220 221
 				height: 206rpx;
221 222
 				text-align: center;
223
+				border-top: 2rpx solid #eeeeee;
222 224
 				border-right: 2rpx solid #eeeeee;
223
-				border-bottom: 2rpx solid #eeeeee;
224 225
 
225
-				image {
226
-					width: 40rpx;
227
-					height: 40rpx;
226
+				.uni-icons {
228 227
 					margin: 0 auto;
229 228
 					display: block;
230
-					border-radius: 35rpx;
231
-					padding: 15rpx;
232
-					margin-top: 45rpx;
229
+					margin-top: 30rpx;
233 230
 				}
234 231
 
235 232
 				text {

+ 36 - 0
anyangWebAPP/uni_modules/uni-collapse/changelog.md

@@ -0,0 +1,36 @@
1
+## 1.4.3(2022-01-25)
2
+- 修复 初始化的时候 ,open 属性失效的bug
3
+## 1.4.2(2022-01-21)
4
+- 修复 微信小程序resize后组件收起的bug
5
+## 1.4.1(2021-11-22)
6
+- 修复 vue3中个别scss变量无法找到的问题
7
+## 1.4.0(2021-11-19)
8
+- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
9
+- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-collapse](https://uniapp.dcloud.io/component/uniui/uni-collapse)
10
+## 1.3.3(2021-08-17)
11
+- 优化 show-arrow 属性默认为true
12
+## 1.3.2(2021-08-17)
13
+- 新增 show-arrow 属性,控制是否显示右侧箭头
14
+## 1.3.1(2021-07-30)
15
+- 优化 vue3下小程序事件警告的问题
16
+## 1.3.0(2021-07-30)
17
+- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834)
18
+## 1.2.2(2021-07-21)
19
+- 修复 由1.2.0版本引起的 change 事件返回 undefined 的Bug
20
+## 1.2.1(2021-07-21)
21
+- 优化 组件示例
22
+## 1.2.0(2021-07-21)
23
+- 新增 组件折叠动画
24
+- 新增 value\v-model 属性 ,动态修改面板折叠状态
25
+- 新增 title 插槽 ,可定义面板标题
26
+- 新增 border 属性 ,显示隐藏面板内容分隔线
27
+- 新增 title-border 属性 ,显示隐藏面板标题分隔线
28
+- 修复 resize 方法失效的Bug
29
+- 修复 change 事件返回参数不正确的Bug
30
+- 优化 H5、App 平台自动更具内容更新高度,无需调用 reszie() 方法
31
+## 1.1.7(2021-05-12)
32
+- 新增 组件示例地址
33
+## 1.1.6(2021-02-05)
34
+- 优化 组件引用关系,通过uni_modules引用组件
35
+## 1.1.5(2021-02-05)
36
+- 调整为uni_modules目录规范

+ 402 - 0
anyangWebAPP/uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item.vue

@@ -0,0 +1,402 @@
1
+<template>
2
+	<view class="uni-collapse-item">
3
+		<!-- onClick(!isOpen) -->
4
+		<view @click="onClick(!isOpen)" class="uni-collapse-item__title"
5
+			:class="{'is-open':isOpen &&titleBorder === 'auto' ,'uni-collapse-item-border':titleBorder !== 'none'}">
6
+			<view class="uni-collapse-item__title-wrap">
7
+				<slot name="title">
8
+					<view class="uni-collapse-item__title-box" :class="{'is-disabled':disabled}">
9
+						<image v-if="thumb" :src="thumb" class="uni-collapse-item__title-img" />
10
+						<text class="uni-collapse-item__title-text">{{ title }}</text>
11
+					</view>
12
+				</slot>
13
+			</view>
14
+			<view v-if="showArrow"
15
+				:class="{ 'uni-collapse-item__title-arrow-active': isOpen, 'uni-collapse-item--animation': showAnimation === true }"
16
+				class="uni-collapse-item__title-arrow">
17
+				<uni-icons :color="disabled?'#ddd':'#bbb'" size="14" type="bottom" />
18
+			</view>
19
+		</view>
20
+		<view class="uni-collapse-item__wrap" :class="{'is--transition':showAnimation}"
21
+			:style="{height: (isOpen?height:0) +'px'}">
22
+			<view :id="elId" ref="collapse--hook" class="uni-collapse-item__wrap-content"
23
+				:class="{open:isheight,'uni-collapse-item--border':border&&isOpen}">
24
+				<slot></slot>
25
+			</view>
26
+		</view>
27
+
28
+	</view>
29
+</template>
30
+
31
+<script>
32
+	// #ifdef APP-NVUE
33
+	const dom = weex.requireModule('dom')
34
+	// #endif
35
+	/**
36
+	 * CollapseItem 折叠面板子组件
37
+	 * @description 折叠面板子组件
38
+	 * @property {String} title 标题文字
39
+	 * @property {String} thumb 标题左侧缩略图
40
+	 * @property {String} name 唯一标志符
41
+	 * @property {Boolean} open = [true|false] 是否展开组件
42
+	 * @property {Boolean} titleBorder = [true|false] 是否显示标题分隔线
43
+	 * @property {Boolean} border = [true|false] 是否显示分隔线
44
+	 * @property {Boolean} disabled = [true|false] 是否展开面板
45
+	 * @property {Boolean} showAnimation = [true|false] 开启动画
46
+	 * @property {Boolean} showArrow = [true|false] 是否显示右侧箭头
47
+	 */
48
+	export default {
49
+		name: 'uniCollapseItem',
50
+		props: {
51
+			// 列表标题
52
+			title: {
53
+				type: String,
54
+				default: ''
55
+			},
56
+			name: {
57
+				type: [Number, String],
58
+				default: ''
59
+			},
60
+			// 是否禁用
61
+			disabled: {
62
+				type: Boolean,
63
+				default: false
64
+			},
65
+			// #ifdef APP-PLUS
66
+			// 是否显示动画,app 端默认不开启动画,卡顿严重
67
+			showAnimation: {
68
+				type: Boolean,
69
+				default: false
70
+			},
71
+			// #endif
72
+			// #ifndef APP-PLUS
73
+			// 是否显示动画
74
+			showAnimation: {
75
+				type: Boolean,
76
+				default: true
77
+			},
78
+			// #endif
79
+			// 是否展开
80
+			open: {
81
+				type: Boolean,
82
+				default: false
83
+			},
84
+			// 缩略图
85
+			thumb: {
86
+				type: String,
87
+				default: ''
88
+			},
89
+			// 标题分隔线显示类型
90
+			titleBorder: {
91
+				type: String,
92
+				default: 'auto'
93
+			},
94
+			border: {
95
+				type: Boolean,
96
+				default: true
97
+			},
98
+			showArrow: {
99
+				type: Boolean,
100
+				default: true
101
+			}
102
+		},
103
+		data() {
104
+			// TODO 随机生生元素ID,解决百度小程序获取同一个元素位置信息的bug
105
+			const elId = `Uni_${Math.ceil(Math.random() * 10e5).toString(36)}`
106
+			return {
107
+				isOpen: false,
108
+				isheight: null,
109
+				height: 0,
110
+				elId,
111
+				nameSync: 0
112
+			}
113
+		},
114
+		watch: {
115
+			open(val) {
116
+				this.isOpen = val
117
+				this.onClick(val, 'init')
118
+			}
119
+		},
120
+		updated(e) {
121
+			this.$nextTick(() => {
122
+				this.init(true)
123
+			})
124
+		},
125
+		created() {
126
+			this.collapse = this.getCollapse()
127
+			this.oldHeight = 0
128
+			this.onClick(this.open, 'init')
129
+		},
130
+		// #ifndef VUE3
131
+		// TODO vue2
132
+		destroyed() {
133
+			if (this.__isUnmounted) return
134
+			this.uninstall()
135
+		},
136
+		// #endif
137
+		// #ifdef VUE3
138
+		// TODO vue3
139
+		unmounted() {
140
+			this.__isUnmounted = true
141
+			this.uninstall()
142
+		},
143
+		// #endif
144
+		mounted() {
145
+			if (!this.collapse) return
146
+			if (this.name !== '') {
147
+				this.nameSync = this.name
148
+			} else {
149
+				this.nameSync = this.collapse.childrens.length + ''
150
+			}
151
+			if (this.collapse.names.indexOf(this.nameSync) === -1) {
152
+				this.collapse.names.push(this.nameSync)
153
+			} else {
154
+				console.warn(`name 值 ${this.nameSync} 重复`);
155
+			}
156
+			if (this.collapse.childrens.indexOf(this) === -1) {
157
+				this.collapse.childrens.push(this)
158
+			}
159
+			this.init()
160
+		},
161
+		methods: {
162
+			init(type) {
163
+				// #ifndef APP-NVUE
164
+				this.getCollapseHeight(type)
165
+				// #endif
166
+				// #ifdef APP-NVUE
167
+				this.getNvueHwight(type)
168
+				// #endif
169
+			},
170
+			uninstall() {
171
+				if (this.collapse) {
172
+					this.collapse.childrens.forEach((item, index) => {
173
+						if (item === this) {
174
+							this.collapse.childrens.splice(index, 1)
175
+						}
176
+					})
177
+					this.collapse.names.forEach((item, index) => {
178
+						if (item === this.nameSync) {
179
+							this.collapse.names.splice(index, 1)
180
+						}
181
+					})
182
+				}
183
+			},
184
+			onClick(isOpen, type) {
185
+				if (this.disabled) return
186
+				this.isOpen = isOpen
187
+				if (this.isOpen && this.collapse) {
188
+					this.collapse.setAccordion(this)
189
+				}
190
+				if (type !== 'init') {
191
+					this.collapse.onChange(isOpen, this)
192
+				}
193
+			},
194
+			getCollapseHeight(type, index = 0) {
195
+				const views = uni.createSelectorQuery().in(this)
196
+				views
197
+					.select(`#${this.elId}`)
198
+					.fields({
199
+						size: true
200
+					}, data => {
201
+						// TODO 百度中可能获取不到节点信息 ,需要循环获取
202
+						if (index >= 10) return
203
+						if (!data) {
204
+							index++
205
+							this.getCollapseHeight(false, index)
206
+							return
207
+						}
208
+						// #ifdef APP-NVUE
209
+						this.height = data.height + 1
210
+						// #endif
211
+						// #ifndef APP-NVUE
212
+						this.height = data.height
213
+						// #endif
214
+						this.isheight = true
215
+						if (type) return
216
+						this.onClick(this.isOpen, 'init')
217
+					})
218
+					.exec()
219
+			},
220
+			getNvueHwight(type) {
221
+				const result = dom.getComponentRect(this.$refs['collapse--hook'], option => {
222
+					if (option && option.result && option.size) {
223
+						// #ifdef APP-NVUE
224
+						this.height = option.size.height + 1
225
+						// #endif
226
+						// #ifndef APP-NVUE
227
+						this.height = option.size.height
228
+						// #endif
229
+						this.isheight = true
230
+						if (type) return
231
+						this.onClick(this.open, 'init')
232
+					}
233
+				})
234
+			},
235
+			/**
236
+			 * 获取父元素实例
237
+			 */
238
+			getCollapse(name = 'uniCollapse') {
239
+				let parent = this.$parent;
240
+				let parentName = parent.$options.name;
241
+				while (parentName !== name) {
242
+					parent = parent.$parent;
243
+					if (!parent) return false;
244
+					parentName = parent.$options.name;
245
+				}
246
+				return parent;
247
+			}
248
+		}
249
+	}
250
+</script>
251
+
252
+<style lang="scss">
253
+	.uni-collapse-item {
254
+		/* #ifndef APP-NVUE */
255
+		box-sizing: border-box;
256
+
257
+		/* #endif */
258
+		&__title {
259
+			/* #ifndef APP-NVUE */
260
+			display: flex;
261
+			width: 100%;
262
+			box-sizing: border-box;
263
+			/* #endif */
264
+			flex-direction: row;
265
+			align-items: center;
266
+			transition: border-bottom-color .3s;
267
+
268
+			// transition-property: border-bottom-color;
269
+			// transition-duration: 5s;
270
+			&-wrap {
271
+				width: 100%;
272
+				flex: 1;
273
+
274
+			}
275
+
276
+			&-box {
277
+				padding: 0 15px;
278
+				/* #ifndef APP-NVUE */
279
+				display: flex;
280
+				width: 100%;
281
+				box-sizing: border-box;
282
+				/* #endif */
283
+				flex-direction: row;
284
+				justify-content: space-between;
285
+				align-items: center;
286
+				height: 48px;
287
+				line-height: 48px;
288
+				background-color: #fff;
289
+				color: #303133;
290
+				font-size: 13px;
291
+				font-weight: 500;
292
+				/* #ifdef H5 */
293
+				cursor: pointer;
294
+				outline: none;
295
+
296
+				/* #endif */
297
+				&.is-disabled {
298
+					.uni-collapse-item__title-text {
299
+						color: #999;
300
+					}
301
+				}
302
+
303
+			}
304
+
305
+			&.uni-collapse-item-border {
306
+				border-bottom: 1px solid #ebeef5;
307
+			}
308
+
309
+			&.is-open {
310
+				border-bottom-color: transparent;
311
+			}
312
+
313
+			&-img {
314
+				height: 22px;
315
+				width: 22px;
316
+				margin-right: 10px;
317
+			}
318
+
319
+			&-text {
320
+				flex: 1;
321
+				font-size: 14px;
322
+				/* #ifndef APP-NVUE */
323
+				white-space: nowrap;
324
+				color: inherit;
325
+				/* #endif */
326
+				/* #ifdef APP-NVUE */
327
+				lines: 1;
328
+				/* #endif */
329
+				overflow: hidden;
330
+				text-overflow: ellipsis;
331
+			}
332
+
333
+			&-arrow {
334
+				/* #ifndef APP-NVUE */
335
+				display: flex;
336
+				box-sizing: border-box;
337
+				/* #endif */
338
+				align-items: center;
339
+				justify-content: center;
340
+				width: 20px;
341
+				height: 20px;
342
+				margin-right: 10px;
343
+				transform: rotate(0deg);
344
+
345
+				&-active {
346
+					transform: rotate(-180deg);
347
+				}
348
+			}
349
+
350
+
351
+		}
352
+
353
+		&__wrap {
354
+			/* #ifndef APP-NVUE */
355
+			will-change: height;
356
+			box-sizing: border-box;
357
+			/* #endif */
358
+			background-color: #fff;
359
+			overflow: hidden;
360
+			position: relative;
361
+			height: 0;
362
+
363
+			&.is--transition {
364
+				// transition: all 0.3s;
365
+				transition-property: height, border-bottom-width;
366
+				transition-duration: 0.3s;
367
+				/* #ifndef APP-NVUE */
368
+				will-change: height;
369
+				/* #endif */
370
+			}
371
+
372
+
373
+
374
+			&-content {
375
+				position: absolute;
376
+				font-size: 13px;
377
+				color: #303133;
378
+				// transition: height 0.3s;
379
+				border-bottom-color: transparent;
380
+				border-bottom-style: solid;
381
+				border-bottom-width: 0;
382
+
383
+				&.uni-collapse-item--border {
384
+					border-bottom-width: 1px;
385
+					border-bottom-color: red;
386
+					border-bottom-color: #ebeef5;
387
+				}
388
+
389
+				&.open {
390
+					position: relative;
391
+				}
392
+			}
393
+		}
394
+
395
+		&--animation {
396
+			transition-property: transform;
397
+			transition-duration: 0.3s;
398
+			transition-timing-function: ease;
399
+		}
400
+
401
+	}
402
+</style>

+ 147 - 0
anyangWebAPP/uni_modules/uni-collapse/components/uni-collapse/uni-collapse.vue

@@ -0,0 +1,147 @@
1
+<template>
2
+	<view class="uni-collapse">
3
+		<slot />
4
+	</view>
5
+</template>
6
+<script>
7
+	/**
8
+	 * Collapse 折叠面板
9
+	 * @description 展示可以折叠 / 展开的内容区域
10
+	 * @tutorial https://ext.dcloud.net.cn/plugin?id=23
11
+	 * @property {String|Array} value 当前激活面板改变时触发(如果是手风琴模式,参数类型为string,否则为array)
12
+	 * @property {Boolean} accordion = [true|false] 是否开启手风琴效果是否开启手风琴效果
13
+	 * @event {Function} change 切换面板时触发,如果是手风琴模式,返回类型为string,否则为array
14
+	 */
15
+	export default {
16
+		name: 'uniCollapse',
17
+		emits:['change','activeItem','input','update:modelValue'],
18
+		props: {
19
+			value: {
20
+				type: [String, Array],
21
+				default: ''
22
+			},
23
+			modelValue: {
24
+				type: [String, Array],
25
+				default: ''
26
+			},
27
+			accordion: {
28
+				// 是否开启手风琴效果
29
+				type: [Boolean, String],
30
+				default: false
31
+			},
32
+		},
33
+		data() {
34
+			return {}
35
+		},
36
+		computed: {
37
+			// TODO 兼容 vue2 和 vue3
38
+			dataValue() {
39
+				let value = (typeof this.value === 'string' && this.value === '') ||
40
+					(Array.isArray(this.value) && this.value.length === 0)
41
+				let modelValue = (typeof this.modelValue === 'string' && this.modelValue === '') ||
42
+					(Array.isArray(this.modelValue) && this.modelValue.length === 0)
43
+				if (value) {
44
+					return this.modelValue
45
+				}
46
+				if (modelValue) {
47
+					return this.value
48
+				}
49
+
50
+				return this.value
51
+			}
52
+		},
53
+		watch: {
54
+			dataValue(val) {
55
+				this.setOpen(val)
56
+			}
57
+		},
58
+		created() {
59
+			this.childrens = []
60
+			this.names = []
61
+		},
62
+		mounted() {
63
+			this.$nextTick(()=>{
64
+				this.setOpen(this.dataValue)
65
+			})
66
+		},
67
+		methods: {
68
+			setOpen(val) {
69
+				let str = typeof val === 'string'
70
+				let arr = Array.isArray(val)
71
+				this.childrens.forEach((vm, index) => {
72
+					if (str) {
73
+						if (val === vm.nameSync) {
74
+							if (!this.accordion) {
75
+								console.warn('accordion 属性为 false ,v-model 类型应该为 array')
76
+								return
77
+							}
78
+							vm.isOpen = true
79
+						}
80
+					}
81
+					if (arr) {
82
+						val.forEach(v => {
83
+							if (v === vm.nameSync) {
84
+								if (this.accordion) {
85
+									console.warn('accordion 属性为 true ,v-model 类型应该为 string')
86
+									return
87
+								}
88
+								vm.isOpen = true
89
+							}
90
+						})
91
+					}
92
+				})
93
+				this.emit(val)
94
+			},
95
+			setAccordion(self) {
96
+				if (!this.accordion) return
97
+				this.childrens.forEach((vm, index) => {
98
+					if (self !== vm) {
99
+						vm.isOpen = false
100
+					}
101
+				})
102
+			},
103
+			resize() {
104
+				this.childrens.forEach((vm, index) => {
105
+					// #ifndef APP-NVUE
106
+					vm.getCollapseHeight()
107
+					// #endif
108
+					// #ifdef APP-NVUE
109
+					vm.getNvueHwight()
110
+					// #endif
111
+				})
112
+			},
113
+			onChange(isOpen, self) {
114
+				let activeItem = []
115
+
116
+				if (this.accordion) {
117
+					activeItem = isOpen ? self.nameSync : ''
118
+				} else {
119
+					this.childrens.forEach((vm, index) => {
120
+						if (vm.isOpen) {
121
+							activeItem.push(vm.nameSync)
122
+						}
123
+					})
124
+				}
125
+				this.$emit('change', activeItem)
126
+				this.emit(activeItem)
127
+			},
128
+			emit(val){
129
+				this.$emit('input', val)
130
+				this.$emit('update:modelValue', val)
131
+			}
132
+		}
133
+	}
134
+</script>
135
+<style lang="scss" >
136
+	.uni-collapse {
137
+		/* #ifndef APP-NVUE */
138
+		width: 100%;
139
+		display: flex;
140
+		/* #endif */
141
+		/* #ifdef APP-NVUE */
142
+		flex: 1;
143
+		/* #endif */
144
+		flex-direction: column;
145
+		background-color: #fff;
146
+	}
147
+</style>

+ 89 - 0
anyangWebAPP/uni_modules/uni-collapse/package.json

@@ -0,0 +1,89 @@
1
+{
2
+  "id": "uni-collapse",
3
+  "displayName": "uni-collapse 折叠面板",
4
+  "version": "1.4.3",
5
+  "description": "Collapse 组件,可以折叠 / 展开的内容区域。",
6
+  "keywords": [
7
+    "uni-ui",
8
+    "折叠",
9
+    "折叠面板",
10
+    "手风琴"
11
+],
12
+  "repository": "https://github.com/dcloudio/uni-ui",
13
+  "engines": {
14
+    "HBuilderX": ""
15
+  },
16
+  "directories": {
17
+    "example": "../../temps/example_temps"
18
+  },
19
+  "dcloudext": {
20
+    "category": [
21
+      "前端组件",
22
+      "通用组件"
23
+    ],
24
+    "sale": {
25
+      "regular": {
26
+        "price": "0.00"
27
+      },
28
+      "sourcecode": {
29
+        "price": "0.00"
30
+      }
31
+    },
32
+    "contact": {
33
+      "qq": ""
34
+    },
35
+    "declaration": {
36
+      "ads": "无",
37
+      "data": "无",
38
+      "permissions": "无"
39
+    },
40
+    "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
41
+  },
42
+  "uni_modules": {
43
+    "dependencies": [
44
+			"uni-scss",
45
+      "uni-icons"
46
+    ],
47
+    "encrypt": [],
48
+    "platforms": {
49
+      "cloud": {
50
+        "tcb": "y",
51
+        "aliyun": "y"
52
+      },
53
+      "client": {
54
+        "App": {
55
+          "app-vue": "y",
56
+          "app-nvue": "y"
57
+        },
58
+        "H5-mobile": {
59
+          "Safari": "y",
60
+          "Android Browser": "y",
61
+          "微信浏览器(Android)": "y",
62
+          "QQ浏览器(Android)": "y"
63
+        },
64
+        "H5-pc": {
65
+          "Chrome": "y",
66
+          "IE": "y",
67
+          "Edge": "y",
68
+          "Firefox": "y",
69
+          "Safari": "y"
70
+        },
71
+        "小程序": {
72
+          "微信": "y",
73
+          "阿里": "y",
74
+          "百度": "y",
75
+          "字节跳动": "y",
76
+          "QQ": "y"
77
+        },
78
+        "快应用": {
79
+          "华为": "u",
80
+          "联盟": "u"
81
+        },
82
+        "Vue": {
83
+            "vue2": "y",
84
+            "vue3": "y"
85
+        }
86
+      }
87
+    }
88
+  }
89
+}

+ 12 - 0
anyangWebAPP/uni_modules/uni-collapse/readme.md

@@ -0,0 +1,12 @@
1
+
2
+
3
+## Collapse 折叠面板
4
+> **组件名:uni-collapse**
5
+> 代码块: `uCollapse`
6
+> 关联组件:`uni-collapse-item`、`uni-icons`。
7
+
8
+
9
+折叠面板用来折叠/显示过长的内容或者是列表。通常是在多内容分类项使用,折叠不重要的内容,显示重要内容。点击可以展开折叠部分。
10
+
11
+### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-collapse)
12
+#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 

+ 132 - 74
anyangWebAPP/utils/listUrl.js

@@ -1,4 +1,15 @@
1 1
 /* eslint-disable */
2
+// "auditorList":审核员工单列表,
3
+// "Multimedia":多媒体工单列表,
4
+// "MarketingManagement":营商即办工单列表,
5
+// "OtherPhoneManagement":其他来电工单列表
6
+// "TWJD":二级办理单位
7
+// "ThreeManner":三级办理单位
8
+const dispatchPersonnel = ["auditorList","Multimedia"] //ZXLD 调度员 8186 123456
9
+const dispatchMultimedia = ["Multimedia"] //MTDD 多媒体调度 8810 MTDD 多媒体审核 9099 
10
+const secondaryUnit = ["TWJD"] //WLDW 二级单位 11125
11
+const tertiaryUnit = ["ThreeManner"] //EJWLDW 三级级单位 110089
12
+
2 13
 const urlData = {
3 14
 	'WorkDSZB': { // 审核员-待审转办
4 15
 		url: 'WorkOrder/GetLDDealList',
@@ -11,7 +22,7 @@ const urlData = {
11 22
 	},
12 23
 	'ReturnReviewedTransferred': { //审核员-退回待审转办
13 24
 		url: 'WorkOrder/GetLDDealList',
14
-		params: {
25
+		params: {
15 26
 			state: 10,
16 27
 			tab: 10,
17 28
 			jianhang: 0,
@@ -20,7 +31,7 @@ const urlData = {
20 31
 	},
21 32
 	'yssh': { //审核员-局委延时审核
22 33
 		url: 'WorkOrder/GetDWDealList',
23
-		params: {
34
+		params: {
24 35
 			tab: 7,
25 36
 			jianhang: 2,
26 37
 			phoneType: 2
@@ -28,7 +39,7 @@ const urlData = {
28 39
 	},
29 40
 	'DSHLB': { //审核员-局委退回审核
30 41
 		url: 'WorkOrder/GetZXDealList',
31
-		params: {
42
+		params: {
32 43
 			state: 10,
33 44
 			tab: 0,
34 45
 			jianhang: 0,
@@ -37,8 +48,7 @@ const urlData = {
37 48
 	},
38 49
 	'haveDoneToAudit': { //审核员-已办待审核
39 50
 		url: 'WorkOrder/GetZXDealList',
40
-		tabs: [
41
-			{
51
+		tabs: [{
42 52
 				label: '热线件',
43 53
 				value: 0,
44 54
 				field: 'db',
@@ -49,7 +59,7 @@ const urlData = {
49 59
 				field: 'db',
50 60
 			}
51 61
 		],
52
-		params: {
62
+		params: {
53 63
 			state: 6,
54 64
 			tab: 0,
55 65
 			jianhang: 0,
@@ -60,8 +70,7 @@ const urlData = {
60 70
 	},
61 71
 	'yblsh': { //审核员-已办待回访
62 72
 		url: 'WorkOrder/GetZXDealList',
63
-		tabs: [
64
-			{
73
+		tabs: [{
65 74
 				label: '热线件',
66 75
 				value: 0,
67 76
 				field: 'db',
@@ -72,7 +81,7 @@ const urlData = {
72 81
 				field: 'db',
73 82
 			}
74 83
 		],
75
-		params: {
84
+		params: {
76 85
 			state: 7,
77 86
 			tab: 0,
78 87
 			jianhang: 0,
@@ -83,7 +92,7 @@ const urlData = {
83 92
 	},
84 93
 	'YWJD_LYJB': { //审核员-正在办理
85 94
 		url: 'WorkOrder/GetLDDealList',
86
-		params: {
95
+		params: {
87 96
 			tab: 1,
88 97
 			jianhang: 0,
89 98
 			phoneType: 2,
@@ -91,7 +100,7 @@ const urlData = {
91 100
 	},
92 101
 	'gdgl_cqgdlb': { // 审核员-超期未果
93 102
 		url: 'WorkOrder/GetTimeOutList',
94
-		params: {
103
+		params: {
95 104
 			tab: 1,
96 105
 			jianhang: 0,
97 106
 			phoneType: 2,
@@ -99,7 +108,7 @@ const urlData = {
99 108
 	},
100 109
 	'YWJD_YBWG': { // 审核员-已办未果
101 110
 		url: 'WorkOrder/GetList',
102
-		params: {
111
+		params: {
103 112
 			state: 6,
104 113
 			tab: 1,
105 114
 			jianhang: 0,
@@ -109,7 +118,7 @@ const urlData = {
109 118
 	},
110 119
 	'YWJD_LYJA': { // 审核员-已办结
111 120
 		url: 'WorkOrder/GetLDDealList',
112
-		params: {
121
+		params: {
113 122
 			tab: 5,
114 123
 			jianhang: 0,
115 124
 			phoneType: 2,
@@ -117,14 +126,14 @@ const urlData = {
117 126
 	},
118 127
 	'todb': { // 审核员-已转督办
119 128
 		url: 'workorder/GetSupervList',
120
-		params: {
129
+		params: {
121 130
 			jianhang: 0,
122 131
 			phoneType: 2,
123 132
 		}
124 133
 	},
125 134
 	'YWJD_WWC': { // 审核员-已退回重办
126 135
 		url: 'WorkOrder/GetLDDealList',
127
-		params: {
136
+		params: {
128 137
 			tab: 4,
129 138
 			jianhang: 0,
130 139
 			phoneType: 2,
@@ -132,22 +141,21 @@ const urlData = {
132 141
 	},
133 142
 	'YWJD_DCLS': { // 二级单位-待办事项
134 143
 		url: 'WorkOrder/GetDWDealList',
135
-		params: {
144
+		params: {
136 145
 			tab: 0,
137 146
 			distribute: 0,
138 147
 		}
139 148
 	},
140 149
 	'WorkTHCB': { // 二级单位-退回重办
141 150
 		url: 'WorkOrder/GetDWDealList',
142
-		params: {
151
+		params: {
143 152
 			tab: 12,
144 153
 			distribute: 0,
145 154
 		}
146 155
 	},
147 156
 	'superviseCommission': { // 二级单位-督办工单
148 157
 		url: 'workorder/GetSupervList',
149
-		tabs: [
150
-			{
158
+		tabs: [{
151 159
 				label: '督办待办',
152 160
 				value: 0,
153 161
 				field: 'iscb',
@@ -158,21 +166,21 @@ const urlData = {
158 166
 				field: 'iscb',
159 167
 			}
160 168
 		],
161
-		params: {
169
+		params: {
162 170
 			Supervisor: 1,
163 171
 			iscb: 0,
164 172
 		}
165 173
 	},
166 174
 	'WorkZZBL': { // 二级单位-已派单
167 175
 		url: 'WorkOrder/GetDWDealList',
168
-		params: {
176
+		params: {
169 177
 			tab: 14,
170 178
 			distribute: 0,
171 179
 		}
172 180
 	},
173 181
 	'expiredWorkOrders': { // 二级单位-超期未果
174 182
 		url: 'WorkOrder/GetTimeOutList',
175
-		params: {
183
+		params: {
176 184
 			tab: 1,
177 185
 			jianhang: 0,
178 186
 			phoneType: 2,
@@ -180,43 +188,42 @@ const urlData = {
180 188
 	},
181 189
 	'workOverdue': { // 二级单位-超期工单
182 190
 		url: 'WorkOrder/GetTimeOutList',
183
-		params: {
191
+		params: {
184 192
 			tab: 1,
185 193
 			soon: 1,
186 194
 		}
187 195
 	},
188 196
 	'WorkXJDWTH': { // 二级单位-下级单位退回
189 197
 		url: 'WorkOrder/GetDWDealList',
190
-		params: {
198
+		params: {
191 199
 			tab: 13,
192 200
 			distribute: 0,
193 201
 		}
194 202
 	},
195 203
 	'WorkYBLTJ': { // 二级单位-待审核下级单位回复
196 204
 		url: 'WorkOrder/GetDWDealList',
197
-		params: {
205
+		params: {
198 206
 			tab: 15,
199 207
 			distribute: 0,
200 208
 		}
201 209
 	},
202 210
 	'YWJD_SHTHS': { // 二级单位-已申请退回
203 211
 		url: 'WorkOrder/GetDWDealList',
204
-		params: {
212
+		params: {
205 213
 			tab: 2,
206 214
 			distribute: 0,
207 215
 		}
208 216
 	},
209 217
 	'WorkTHBJJ': { // 二级单位-退回被拒绝
210 218
 		url: 'WorkOrder/GetDWDealList',
211
-		params: {
219
+		params: {
212 220
 			tab: 16,
213 221
 			distribute: 0,
214 222
 		}
215 223
 	},
216 224
 	'YWJD_SQYSS': { // 二级单位-已申请延时
217 225
 		url: 'WorkOrder/GetDWDealList',
218
-		tabs: [
219
-			{
226
+		tabs: [{
220 227
 				label: '正在办理',
221 228
 				value: 0,
222 229
 				field: 'blstate',
@@ -227,33 +234,33 @@ const urlData = {
227 234
 				field: 'blstate',
228 235
 			}
229 236
 		],
230
-		params: {
237
+		params: {
231 238
 			tab: 3,
232 239
 			blstate: 0,
233 240
 		}
234 241
 	},
235 242
 	'WorkYSBJJ': { // 二级单位-延时被拒绝
236 243
 		url: 'WorkOrder/GetDWDealList',
237
-		params: {
244
+		params: {
238 245
 			tab: 17,
239 246
 			distribute: 0,
240 247
 		}
241 248
 	},
242 249
 	'UnsuccessfulLevel2': { // 二级单位-已办未果
243 250
 		url: 'WorkOrder/GetDWDealList',
244
-		params: {
251
+		params: {
245 252
 			tab: 18,
246 253
 		}
247 254
 	},
248 255
 	'YWJD_YBLS': { // 二级单位-已结案
249 256
 		url: 'WorkOrder/GetDWDealList',
250
-		params: {
257
+		params: {
251 258
 			tab: 4,
252 259
 		}
253 260
 	},
254 261
 	'WorkDCMarketing': { // 二级单位-营商诉求-待处理
255 262
 		url: 'WorkOrder/GetDWDealList',
256
-		params: {
263
+		params: {
257 264
 			tab: 0,
258 265
 			distribute: 0,
259 266
 			jianhang: 3,
@@ -261,28 +268,28 @@ const urlData = {
261 268
 	},
262 269
 	'WorkYBLMarketing': { // 二级单位-营商诉求-已完成
263 270
 		url: 'WorkOrder/GetDWDealList',
264
-		params: {
271
+		params: {
265 272
 			tab: 4,
266 273
 			jianhang: 3,
267 274
 		}
268 275
 	},
269 276
 	'YWXT_DCLGD': { // 三级单位-未延时待办理
270 277
 		url: 'WorkOrder/GetEJDWDealList',
271
-		params: {
278
+		params: {
272 279
 			tab: 0,
273 280
 			isys: 0,
274 281
 		}
275 282
 	},
276 283
 	'WorkDC_EJDelayed': { // 三级单位-已延时待办理
277 284
 		url: 'WorkOrder/GetEJDWDealList',
278
-		params: {
285
+		params: {
279 286
 			tab: 0,
280 287
 			isys: 1,
281 288
 		}
282 289
 	},
283 290
 	'expiredWorkOrders': { // 三级单位-超期未果
284 291
 		url: 'WorkOrder/GetTimeOutList',
285
-		params: {
292
+		params: {
286 293
 			tab: 1,
287 294
 			jianhang: 0,
288 295
 			phoneType: 2,
@@ -290,31 +297,31 @@ const urlData = {
290 297
 	},
291 298
 	'YWXT_YBLGD': { // 三级单位-已办理工单
292 299
 		url: 'WorkOrder/GetEJDWDealList',
293
-		params: {
300
+		params: {
294 301
 			tab: 1,
295 302
 		}
296 303
 	},
297 304
 	'UnsuccessfulLevel3': { // 三级单位-已办未果
298 305
 		url: 'WorkOrder/GetEJDWDealList',
299
-		params: {
306
+		params: {
300 307
 			tab: 3,
301 308
 		}
302 309
 	},
303 310
 	'haveBeenReceived': { // 三级单位-已签收
304 311
 		url: 'WorkOrder/GetEJDWDealList',
305
-		params: {
312
+		params: {
306 313
 			tab: 4,
307 314
 		}
308 315
 	},
309 316
 	'applicationDelayed	': { // 三级单位-已申请延时
310 317
 		url: 'WorkOrder/GetEJDWDealList',
311
-		params: {
318
+		params: {
312 319
 			tab: 5,
313 320
 		}
314 321
 	},
315 322
 	'WorkDCMarketing_EJ': { // 三级单位-营商诉求-待处理
316 323
 		url: 'WorkOrder/GetEJDWDealList',
317
-		params: {
324
+		params: {
318 325
 			tab: 0,
319 326
 			distribute: 0,
320 327
 			jianhang: 3,
@@ -322,28 +329,27 @@ const urlData = {
322 329
 	},
323 330
 	'WorkYWCMarketing_EJ': { // 三级单位-营商诉求-已完成
324 331
 		url: 'WorkOrder/GetEJDWDealList',
325
-		params: {
332
+		params: {
326 333
 			tab: 6,
327 334
 			jianhang: 3,
328 335
 		}
329 336
 	},
330 337
 	'superviseOverdue': { // 督办管理-督办已退回
331 338
 		url: 'WorkOrder/GetSupervList',
332
-		params: {
339
+		params: {
333 340
 			tab: 3,
334 341
 		}
335 342
 	},
336 343
 	'superviseUpcoming': { // 督办管理-督办待办
337 344
 		url: 'WorkOrder/GetSupervList',
338
-		params: {
345
+		params: {
339 346
 			tab: 0,
340 347
 			Supervisor: 2,
341 348
 		}
342 349
 	},
343 350
 	'superviseProcessing': { // 督办管理-督办办理中
344 351
 		url: 'WorkOrder/GetSupervList',
345
-		tabs: [
346
-			{
352
+		tabs: [{
347 353
 				label: '督办待办理',
348 354
 				value: 0,
349 355
 				field: 'tab',
@@ -354,7 +360,7 @@ const urlData = {
354 360
 				field: 'tab',
355 361
 			}
356 362
 		],
357
-		params: {
363
+		params: {
358 364
 			tab: 0,
359 365
 			Supervisor: 1,
360 366
 			sourcearea: 0,
@@ -362,14 +368,14 @@ const urlData = {
362 368
 	},
363 369
 	'superviseOverdue': { // 督办管理-督办超期未果
364 370
 		url: 'WorkOrder/GetSupervList',
365
-		params: {
371
+		params: {
366 372
 			tab: 2,
367 373
 			Supervisor: 1,
368 374
 		}
369 375
 	},
370 376
 	'superviseReturnReview': { // 督办管理-督办退回审核
371 377
 		url: 'WorkOrder/GetSupervList',
372
-		params: {
378
+		params: {
373 379
 			tab: 1,
374 380
 			Supervisor: 1,
375 381
 			state: 3,
@@ -377,7 +383,7 @@ const urlData = {
377 383
 	},
378 384
 	'superviseReplyPendingReview': { // 督办管理-督办待审核回复
379 385
 		url: 'WorkOrder/GetSupervList',
380
-		params: {
386
+		params: {
381 387
 			tab: 6,
382 388
 			isExamine: 2,
383 389
 			Supervisor: 1,
@@ -385,20 +391,19 @@ const urlData = {
385 391
 	},
386 392
 	'superviseFinished': { // 督办管理-督办已完结
387 393
 		url: 'WorkOrder/GetSupervList',
388
-		params: {
394
+		params: {
389 395
 			Supervisor: 1,
390 396
 		}
391 397
 	},
392 398
 	'superviseFinished': { // 督办管理-督办已完结
393 399
 		url: 'WorkOrder/GetSupervList',
394
-		params: {
400
+		params: {
395 401
 			Supervisor: 1,
396 402
 		}
397 403
 	},
398 404
 	'superviseFinished': { // 多媒体工单-待审转办
399 405
 		url: 'WorkOrder/GetLDDealList',
400
-		tabs: [
401
-			{
406
+		tabs: [{
402 407
 				label: '待审核转办',
403 408
 				value: 0,
404 409
 				field: 'issh',
@@ -409,7 +414,7 @@ const urlData = {
409 414
 				field: 'issh',
410 415
 			}
411 416
 		],
412
-		params: {
417
+		params: {
413 418
 			tab: 0,
414 419
 			issh: 0,
415 420
 			jianhang: 1,
@@ -417,7 +422,7 @@ const urlData = {
417 422
 	},
418 423
 	'ReturnReviewedTransferredMedia': { // 多媒体工单-退回待审转办
419 424
 		url: 'WorkOrder/GetLDDealList',
420
-		params: {
425
+		params: {
421 426
 			tab: 10,
422 427
 			state: 10,
423 428
 			jianhang: 1,
@@ -425,7 +430,7 @@ const urlData = {
425 430
 	},
426 431
 	'auditorsAuditedMedia': { // 多媒体工单-审核员待审核
427 432
 		url: 'WorkOrder/GetLDDealList',
428
-		params: {
433
+		params: {
429 434
 			tab: 0,
430 435
 			issh: 2,
431 436
 			jianhang: 1,
@@ -433,14 +438,14 @@ const urlData = {
433 438
 	},
434 439
 	'WorkYSSHMedia': { // 多媒体工单-局委延时审核
435 440
 		url: 'WorkOrder/GetDWDealList',
436
-		params: {
441
+		params: {
437 442
 			tab: 7,
438 443
 			jianhang: 1,
439 444
 		}
440 445
 	},
441 446
 	'toAuditListMedia': { // 多媒体工单-局委退回审核
442 447
 		url: 'WorkOrder/GetZXDealList',
443
-		params: {
448
+		params: {
444 449
 			state: 10,
445 450
 			tab: 0,
446 451
 			jianhang: 1,
@@ -448,15 +453,14 @@ const urlData = {
448 453
 	},
449 454
 	'LeaderYJBMedia': { // 多媒体工单-正在办理
450 455
 		url: 'WorkOrder/GetLDDealList',
451
-		params: {
456
+		params: {
452 457
 			tab: 1,
453 458
 			jianhang: 1,
454 459
 		}
455 460
 	},
456 461
 	'haveDoneToAuditMedia': { // 多媒体工单-已办待审核
457 462
 		url: 'WorkOrder/GetZXDealList',
458
-		tabs: [
459
-			{
463
+		tabs: [{
460 464
 				label: '热线件',
461 465
 				value: 0,
462 466
 				field: 'db',
@@ -467,7 +471,7 @@ const urlData = {
467 471
 				field: 'db',
468 472
 			}
469 473
 		],
470
-		params: {
474
+		params: {
471 475
 			state: 6,
472 476
 			tab: 0,
473 477
 			tobereply: 1,
@@ -477,7 +481,7 @@ const urlData = {
477 481
 	},
478 482
 	'haveAduitMedia': { // 多媒体工单-已办待回访
479 483
 		url: 'WorkOrder/GetZXDealList',
480
-		params: {
484
+		params: {
481 485
 			state: 7,
482 486
 			tab: 0,
483 487
 			tobereply: 1,
@@ -487,15 +491,14 @@ const urlData = {
487 491
 	},
488 492
 	'expiredWorkOrdersMedia': { // 多媒体工单-超期未果
489 493
 		url: 'WorkOrder/GetTimeOutList',
490
-		params: {
494
+		params: {
491 495
 			tab: 1,
492 496
 			jianhang: 1,
493 497
 		}
494 498
 	},
495 499
 	'WorkIsproresultMedia': { // 多媒体工单-已办未果
496 500
 		url: 'WorkOrder/GetList',
497
-		tabs: [
498
-			{
501
+		tabs: [{
499 502
 				label: '未追加回复',
500 503
 				value: 1,
501 504
 				field: 'db',
@@ -506,7 +509,7 @@ const urlData = {
506 509
 				field: 'db',
507 510
 			}
508 511
 		],
509
-		params: {
512
+		params: {
510 513
 			isproresult: 1,
511 514
 			state: 6,
512 515
 			jianhang: 1,
@@ -514,27 +517,82 @@ const urlData = {
514 517
 	},
515 518
 	'LeaderYJAMedia': { // 多媒体工单-已办结
516 519
 		url: 'WorkOrder/GetLDDealList',
517
-		params: {
520
+		params: {
518 521
 			tab: 5,
519 522
 			jianhang: 1,
520 523
 		}
521 524
 	},
522 525
 	'toSupervListMedia': { // 多媒体工单-已转督办
523 526
 		url: 'WorkOrder/GetSupervList',
524
-		params: {
527
+		params: {
525 528
 			jianhang: 1,
526 529
 		}
527 530
 	},
528 531
 	'LeaderYZBMedia': { // 多媒体工单-已退回重办
529 532
 		url: 'WorkOrder/GetLDDealList',
530
-		params: {
533
+		params: {
531 534
 			tab: 4,
532 535
 			jianhang: 1,
533 536
 		}
534 537
 	},
535 538
 }
536
-export default {
539
+
540
+const listUrl = {
537 541
 	getUrlData(code) {
538 542
 		return urlData[code];
543
+	},
544
+	getUrlCode() {
545
+		const urlCodeData = []
546
+		Object.keys(urlData).forEach(function(key) {
547
+			urlCodeData.push(key)
548
+		});
549
+		return urlCodeData;
550
+	},
551
+	getMenuData(data,code){
552
+		const menuData = []
553
+		let FirsrtMenuData = []
554
+		switch (code){
555
+			case 'ZXLD':
556
+				FirsrtMenuData = dispatchPersonnel
557
+				break;
558
+			case 'MTDD':
559
+				FirsrtMenuData = dispatchMultimedia
560
+				break;
561
+			case 'WLDW':
562
+				FirsrtMenuData = secondaryUnit
563
+				break;
564
+			case 'EJWLDW':
565
+				FirsrtMenuData = tertiaryUnit
566
+				break;
567
+		}
568
+		
569
+		for (let i in data) {
570
+			const menuCode = data[i].F_FunctionCode
571
+			const menuObj = {}
572
+			if(FirsrtMenuData.indexOf(menuCode)!=-1){
573
+				menuObj.code = data[i].F_FunctionCode
574
+				menuObj.name = data[i].F_FunctionName
575
+				menuObj.id = data[i].F_FunctionId
576
+				menuObj.children = []
577
+				if(data[i].item.length>0){
578
+					for (let n in data[i].item) {
579
+						if(listUrl.getUrlCode().indexOf(data[i].item[n].F_FunctionCode)!=-1){
580
+							const menuObjSon = {}
581
+							menuObjSon.code = data[i].item[n].F_FunctionCode
582
+							menuObjSon.name = data[i].item[n].F_FunctionName
583
+							menuObjSon.id = data[i].item[n].F_FunctionId
584
+							menuObjSon.listIcon =  "list"
585
+							menuObjSon.listColor =  "#1ccd8d"
586
+							menuObj.children.push(menuObjSon)
587
+						}
588
+					}
589
+				}
590
+				menuData.push(menuObj)
591
+			}
592
+			
593
+		}
594
+		
595
+		return menuData
539 596
 	}
540 597
 };
598
+export default  listUrl