liuzhihui 2 anni fa
parent
commit
028dcdf2d7

+ 68 - 25
CallCenterWeb.UI/RMYYAPP/pages/myTask/reportForm/reportForm.vue

@@ -89,18 +89,20 @@
89 89
 			<view>
90 90
 				<text class="btoptitle" style="background-color: #08a265;margin-bottom: 20rpx;">工作效率指标</text>
91 91
 			</view>
92
-			<!-- <view class="middleboxnew">
93
-				<view>
94
-					<text class="monicir cirthree"></text><text class="contenttitle">平均响应时间:</text><text
95
-						class="contentone">{{yjcon}}</text>
92
+			<view style="display: flex;justify-content: space-around;margin-bottom: 10px;">
93
+				<view class="middleboxnew">
94
+					<view>
95
+						<text class="monicir cirthree"></text><text class="contenttitle">平均响应时间:</text><text
96
+							class="contentone">{{averageReply}}min</text>
97
+					</view>
96 98
 				</view>
97
-			</view>
98
-			<view class="middleboxnew">
99
-				<view>
100
-					<text class="monicir cirfour"></text><text class="contenttitle">平均解决时间:</text><text
101
-						class="contenttwo">{{rjcon}}</text>
99
+				<view class="middleboxnew">
100
+					<view>
101
+						<text class="monicir cirfour"></text><text class="contenttitle">平均解决时间:</text><text
102
+							class="contentone">{{averageSolve}}min</text>
103
+					</view>
102 104
 				</view>
103
-			</view> -->
105
+			</view>
104 106
 			<view class="perbox">
105 107
 				<text class="pertit">超时接单率</text>
106 108
 				<uv-line-progress :percentage="chaoshiper" activeColor="#c9f981" class="lineper"></uv-line-progress>
@@ -125,7 +127,7 @@
125 127
 			<custom-tab-pane label="挂起" name="c1_3_gq"></custom-tab-pane>
126 128
 		</custom-tabs>
127 129
 		<view style="margin-bottom: 30rpx;">
128
-			<uni-table ref="table" border stripe emptyText="暂无更多数据" style="height: 500rpx;">
130
+			<uni-table ref="table" border stripe emptyText="暂无更多数据" style="height: 700rpx;">
129 131
 				<uni-tr>
130 132
 					<uni-th align="center" width="145rpx" class="thcol">报工科室</uni-th>
131 133
 					<uni-th align="center" width="145rpx" class="thcol">工单类别</uni-th>
@@ -141,6 +143,8 @@
141 143
 					<uni-td align="center" class="tdcol">{{ item.Maintenancer }}</uni-td>
142 144
 				</uni-tr>
143 145
 			</uni-table>
146
+			<view class="uni-pagination-box"><uni-pagination show-icon :page-size="pageSize" :current="pageCurrent"
147
+					:total="total" @change="change" /></view>
144 148
 		</view>
145 149
 		<view class="bbottom" style="padding-bottom: 50rpx;">
146 150
 			<view>
@@ -205,6 +209,9 @@
205 209
 		},
206 210
 		data() {
207 211
 			return {
212
+				pageSize: 5,
213
+				pageCurrent: 1,
214
+				total: 0,
208 215
 				datetype: 'date',
209 216
 				gecon: 0,
210 217
 				shicon: 0,
@@ -226,6 +233,8 @@
226 233
 				chaoshiper: 0,
227 234
 				chaoqiper: 0,
228 235
 				undoneper: 0,
236
+				averageReply: "",
237
+				averageSolve: "",
229 238
 				chaoshinum: 0,
230 239
 				chaoqinum: 0,
231 240
 				undonenum: 0,
@@ -233,6 +242,7 @@
233 242
 				differcon: 0,
234 243
 				isup: 1,
235 244
 				values: 0, //索引
245
+				valuesname:"紧急",
236 246
 				reportType: 0, //类型
237 247
 				yichangData: [],
238 248
 				renyuanData: [],
@@ -357,6 +367,9 @@
357 367
 						this.chaoshinum = data.overjdcount
358 368
 						this.chaoqinum = data.overcount
359 369
 						this.undonenum = data.overdaycount
370
+						this.averageReply = data.responsetime
371
+						this.averageSolve = data.solvetime
372
+
360 373
 						// console.log(this.chaoshiper,this.chaoqiper,this.undoneper)
361 374
 					}
362 375
 				}).catch((e) => {
@@ -385,30 +398,53 @@
385 398
 				})
386 399
 			},
387 400
 			initExceptionOrder(option, label) {
401
+				var ordertype = ''
402
+				if (label == '紧急') {
403
+					ordertype = 0
404
+				}
405
+				if (label == '催单') {
406
+					ordertype = 2
407
+				}
408
+				if (label == '返修') {
409
+					ordertype = 3
410
+				}
411
+				if (label == '挂起') {
412
+					ordertype = 1
413
+				}
388 414
 				const params = {
415
+					page: this.pageCurrent,
416
+					pagesize: this.pageSize,
389 417
 					starttime: this.defaultStartTime,
390 418
 					endtime: this.defaultEndTime,
391
-					type: option.reportType
419
+					type: ordertype
392 420
 				}
393 421
 				this.$http.get("FaultRepair/ExceptionOrder", params).then((response) => {
394 422
 					if (response.state.toLowerCase() === "success") {
395
-						if (label == '紧急') {
396
-							this.yichangData = response.data.jjdt
397
-						}
398
-						if (label == '催单') {
399
-							this.yichangData = response.data.cddt
400
-						}
401
-						if (label == '返修') {
402
-							this.yichangData = response.data.fxdt
403
-						}
404
-						if (label == '挂起') {
405
-							this.yichangData = response.data.gqdt
406
-						}
423
+						this.yichangData = response.rows
424
+						this.total = response.total
425
+						// if (label == '紧急') {
426
+						// 	this.yichangData = response.data.jjdt
427
+						// }
428
+						// if (label == '催单') {
429
+						// 	this.yichangData = response.data.cddt
430
+						// }
431
+						// if (label == '返修') {
432
+						// 	this.yichangData = response.data.fxdt
433
+						// }
434
+						// if (label == '挂起') {
435
+						// 	this.yichangData = response.data.gqdt
436
+						// }
407 437
 					}
408 438
 				}).catch((e) => {
409 439
 					console.log(e);
410 440
 				})
411 441
 			},
442
+			// 分页触发
443
+			change(e) {
444
+				this.$refs.table.clearSelection()
445
+				this.pageCurrent = e.current
446
+				this.initExceptionOrder("",this.valuesname)
447
+			},
412 448
 			initAcceptOrder(option) {
413 449
 				const params = {
414 450
 					starttime: this.defaultStartTime,
@@ -425,6 +461,10 @@
425 461
 			//tab
426 462
 			changeIndex(e) {
427 463
 				this.values = e.value
464
+				this.valuesname = e.label
465
+				this.pageCurrent = 1
466
+				this.pageSize= 5
467
+				this.total = 0
428 468
 				const option = {
429 469
 					reportType: this.reportType
430 470
 				}
@@ -687,10 +727,11 @@
687 727
 		color: #ffb133;
688 728
 		font-size: 30rpx;
689 729
 	}
690
-	
730
+
691 731
 	.cirthree {
692 732
 		background-color: #f3b13d;
693 733
 	}
734
+
694 735
 	.cirfour {
695 736
 		background-color: #50a734;
696 737
 	}
@@ -708,6 +749,7 @@
708 749
 		line-height: 100rpx;
709 750
 		width: 50%;
710 751
 	}
752
+
711 753
 	.middleboxnew {
712 754
 		background-color: #c3dff7;
713 755
 		display: inline-block;
@@ -716,6 +758,7 @@
716 758
 		line-height: 100rpx;
717 759
 		width: 45%;
718 760
 		padding: 10rpx 5rpx;
761
+		border-radius: 5%;
719 762
 	}
720 763
 
721 764
 	.wrapper {

+ 27 - 0
CallCenterWeb.UI/RMYYAPP/uni_modules/uni-pagination/changelog.md

@@ -0,0 +1,27 @@
1
+## 1.2.4(2022-09-19)
2
+- 修复,未对主题色设置默认色,导致未引入 uni-scss 变量文件报错。
3
+- 修复,未对移动端当前页文字做主题色适配。
4
+## 1.2.3(2022-09-15)
5
+- 修复未使用 uni-scss 主题色的 bug。
6
+## 1.2.2(2022-07-06)
7
+- 修复 es 语言 i18n 错误
8
+## 1.2.1(2021-11-22)
9
+- 修复 vue3中某些scss变量无法找到的问题
10
+## 1.2.0(2021-11-19)
11
+- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
12
+- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-pagination](https://uniapp.dcloud.io/component/uniui/uni-pagination)
13
+## 1.1.2(2021-10-08)
14
+- 修复 current 、value 属性未监听,导致高亮样式失效的 bug
15
+## 1.1.1(2021-08-20)
16
+- 新增 支持国际化
17
+## 1.1.0(2021-07-30)
18
+- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834)
19
+## 1.0.7(2021-05-12)
20
+- 新增 组件示例地址
21
+## 1.0.6(2021-04-12)
22
+- 新增 PC 和 移动端适配不同的 ui 
23
+## 1.0.5(2021-02-05)
24
+- 优化 组件引用关系,通过uni_modules引用组件
25
+
26
+## 1.0.4(2021-02-05)
27
+- 调整为uni_modules目录规范

+ 5 - 0
CallCenterWeb.UI/RMYYAPP/uni_modules/uni-pagination/components/uni-pagination/i18n/en.json

@@ -0,0 +1,5 @@
1
+{
2
+	"uni-pagination.prevText": "prev",
3
+	"uni-pagination.nextText": "next",
4
+	"uni-pagination.piecePerPage": "piece/page"
5
+}

+ 5 - 0
CallCenterWeb.UI/RMYYAPP/uni_modules/uni-pagination/components/uni-pagination/i18n/es.json

@@ -0,0 +1,5 @@
1
+{
2
+	"uni-pagination.prevText": "anterior",
3
+	"uni-pagination.nextText": "prxima",
4
+	"uni-pagination.piecePerPage": "Art¨ªculo/P¨¢gina"
5
+}

+ 5 - 0
CallCenterWeb.UI/RMYYAPP/uni_modules/uni-pagination/components/uni-pagination/i18n/fr.json

@@ -0,0 +1,5 @@
1
+{
2
+	"uni-pagination.prevText": "précédente",
3
+	"uni-pagination.nextText": "suivante",
4
+	"uni-pagination.piecePerPage": "Articles/Pages"
5
+}

+ 12 - 0
CallCenterWeb.UI/RMYYAPP/uni_modules/uni-pagination/components/uni-pagination/i18n/index.js

@@ -0,0 +1,12 @@
1
+import en from './en.json'
2
+import es from './es.json'
3
+import fr from './fr.json'
4
+import zhHans from './zh-Hans.json'
5
+import zhHant from './zh-Hant.json'
6
+export default {
7
+	en,
8
+	es,
9
+	fr,
10
+	'zh-Hans': zhHans,
11
+	'zh-Hant': zhHant
12
+}

+ 5 - 0
CallCenterWeb.UI/RMYYAPP/uni_modules/uni-pagination/components/uni-pagination/i18n/zh-Hans.json

@@ -0,0 +1,5 @@
1
+{
2
+	"uni-pagination.prevText": "上一页",
3
+	"uni-pagination.nextText": "下一页",
4
+	"uni-pagination.piecePerPage": "条/页"
5
+}

+ 5 - 0
CallCenterWeb.UI/RMYYAPP/uni_modules/uni-pagination/components/uni-pagination/i18n/zh-Hant.json

@@ -0,0 +1,5 @@
1
+{
2
+	"uni-pagination.prevText": "上一頁",
3
+	"uni-pagination.nextText": "下一頁",
4
+	"uni-pagination.piecePerPage": "條/頁"
5
+}

+ 465 - 0
CallCenterWeb.UI/RMYYAPP/uni_modules/uni-pagination/components/uni-pagination/uni-pagination.vue

@@ -0,0 +1,465 @@
1
+<template>
2
+	<view class="uni-pagination">
3
+		<!-- #ifndef MP -->
4
+		<picker v-if="showPageSize === true || showPageSize === 'true'" class="select-picker" mode="selector"
5
+			:value="pageSizeIndex" :range="pageSizeRange" @change="pickerChange" @cancel="pickerClick"
6
+			@click.native="pickerClick">
7
+			<button type="default" size="mini" :plain="true">
8
+				<text>{{pageSizeRange[pageSizeIndex]}} {{piecePerPage}}</text>
9
+				<uni-icons class="select-picker-icon" type="arrowdown" size="12" color="#999"></uni-icons>
10
+			</button>
11
+		</picker>
12
+		<!-- #endif -->
13
+		<!-- #ifndef APP-NVUE -->
14
+		<view class="uni-pagination__total is-phone-hide">共 {{ total }} 条</view>
15
+		<!-- #endif -->
16
+		<view class="uni-pagination__btn"
17
+			:class="currentIndex === 1 ? 'uni-pagination--disabled' : 'uni-pagination--enabled'"
18
+			:hover-class="currentIndex === 1 ? '' : 'uni-pagination--hover'" :hover-start-time="20"
19
+			:hover-stay-time="70" @click="clickLeft">
20
+			<template v-if="showIcon === true || showIcon === 'true'">
21
+				<uni-icons color="#666" size="16" type="left" />
22
+			</template>
23
+			<template v-else>
24
+				<text class="uni-pagination__child-btn">{{ prevPageText }}</text>
25
+			</template>
26
+		</view>
27
+		<view class="uni-pagination__num uni-pagination__num-flex-none">
28
+			<view class="uni-pagination__num-current">
29
+				<text class="uni-pagination__num-current-text is-pc-hide current-index-text">{{ currentIndex }}</text>
30
+				<text class="uni-pagination__num-current-text is-pc-hide">/{{ maxPage || 0 }}</text>
31
+				<!-- #ifndef APP-NVUE -->
32
+				<view v-for="(item, index) in paper" :key="index" :class="{ 'page--active': item === currentIndex }"
33
+					class="uni-pagination__num-tag tag--active is-phone-hide" @click.top="selectPage(item, index)">
34
+					<text>{{ item }}</text>
35
+				</view>
36
+				<!-- #endif -->
37
+
38
+			</view>
39
+		</view>
40
+		<view class="uni-pagination__btn"
41
+			:class="currentIndex >= maxPage ? 'uni-pagination--disabled' : 'uni-pagination--enabled'"
42
+			:hover-class="currentIndex === maxPage ? '' : 'uni-pagination--hover'" :hover-start-time="20"
43
+			:hover-stay-time="70" @click="clickRight">
44
+			<template v-if="showIcon === true || showIcon === 'true'">
45
+				<uni-icons color="#666" size="16" type="right" />
46
+			</template>
47
+			<template v-else>
48
+				<text class="uni-pagination__child-btn">{{ nextPageText }}</text>
49
+			</template>
50
+		</view>
51
+	</view>
52
+</template>
53
+
54
+<script>
55
+	/**
56
+	 * Pagination 分页器
57
+	 * @description 分页器组件,用于展示页码、请求数据等
58
+	 * @tutorial https://ext.dcloud.net.cn/plugin?id=32
59
+	 * @property {String} prevText 左侧按钮文字
60
+	 * @property {String} nextText 右侧按钮文字
61
+	 * @property {String} piecePerPageText 条/页文字
62
+	 * @property {Number} current 当前页
63
+	 * @property {Number} total 数据总量
64
+	 * @property {Number} pageSize 每页数据量
65
+	 * @property {Boolean} showIcon = [true|false] 是否以 icon 形式展示按钮
66
+	 * @property {Boolean} showPageSize = [true|false] 是否展示每页条数
67
+	 * @property {Array} pageSizeRange = [20, 50, 100, 500] 每页条数选框
68
+	 * @event {Function} change 点击页码按钮时触发 ,e={type,current} current为当前页,type值为:next/prev,表示点击的是上一页还是下一个
69
+	 * * @event {Function} pageSizeChange 当前每页条数改变时触发 ,e={pageSize} pageSize 为当前所选的每页条数
70
+	 */
71
+
72
+	import {
73
+		initVueI18n
74
+	} from '@dcloudio/uni-i18n'
75
+	import messages from './i18n/index.js'
76
+	const {
77
+		t
78
+	} = initVueI18n(messages)
79
+	export default {
80
+		name: 'UniPagination',
81
+		emits: ['update:modelValue', 'input', 'change', 'pageSizeChange'],
82
+		props: {
83
+			value: {
84
+				type: [Number, String],
85
+				default: 1
86
+			},
87
+			modelValue: {
88
+				type: [Number, String],
89
+				default: 1
90
+			},
91
+			prevText: {
92
+				type: String,
93
+			},
94
+			nextText: {
95
+				type: String,
96
+			},
97
+			piecePerPageText: {
98
+				type: String
99
+			},
100
+			current: {
101
+				type: [Number, String],
102
+				default: 1
103
+			},
104
+			total: {
105
+				// 数据总量
106
+				type: [Number, String],
107
+				default: 0
108
+			},
109
+			pageSize: {
110
+				// 每页数据量
111
+				type: [Number, String],
112
+				default: 10
113
+			},
114
+			showIcon: {
115
+				// 是否以 icon 形式展示按钮
116
+				type: [Boolean, String],
117
+				default: false
118
+			},
119
+			showPageSize: {
120
+				// 是否以 icon 形式展示按钮
121
+				type: [Boolean, String],
122
+				default: false
123
+			},
124
+			pagerCount: {
125
+				type: Number,
126
+				default: 7
127
+			},
128
+			pageSizeRange: {
129
+				type: Array,
130
+				default: () => [20, 50, 100, 500]
131
+			}
132
+		},
133
+		data() {
134
+			return {
135
+				pageSizeIndex: 0,
136
+				currentIndex: 1,
137
+				paperData: [],
138
+				pickerShow: false
139
+			}
140
+		},
141
+		computed: {
142
+			piecePerPage() {
143
+				return this.piecePerPageText || t('uni-pagination.piecePerPage')
144
+			},
145
+			prevPageText() {
146
+				return this.prevText || t('uni-pagination.prevText')
147
+			},
148
+			nextPageText() {
149
+				return this.nextText || t('uni-pagination.nextText')
150
+			},
151
+			maxPage() {
152
+				let maxPage = 1
153
+				let total = Number(this.total)
154
+				let pageSize = Number(this.pageSize)
155
+				if (total && pageSize) {
156
+					maxPage = Math.ceil(total / pageSize)
157
+				}
158
+				return maxPage
159
+			},
160
+			paper() {
161
+				const num = this.currentIndex
162
+				// TODO 最大页数
163
+				const pagerCount = this.pagerCount
164
+				// const total = 181
165
+				const total = this.total
166
+				const pageSize = this.pageSize
167
+				let totalArr = []
168
+				let showPagerArr = []
169
+				let pagerNum = Math.ceil(total / pageSize)
170
+				for (let i = 0; i < pagerNum; i++) {
171
+					totalArr.push(i + 1)
172
+				}
173
+				showPagerArr.push(1)
174
+				const totalNum = totalArr[totalArr.length - (pagerCount + 1) / 2]
175
+				totalArr.forEach((item, index) => {
176
+					if ((pagerCount + 1) / 2 >= num) {
177
+						if (item < pagerCount + 1 && item > 1) {
178
+							showPagerArr.push(item)
179
+						}
180
+					} else if (num + 2 <= totalNum) {
181
+						if (item > num - (pagerCount + 1) / 2 && item < num + (pagerCount + 1) / 2) {
182
+							showPagerArr.push(item)
183
+						}
184
+					} else {
185
+						if ((item > num - (pagerCount + 1) / 2 || pagerNum - pagerCount < item) && item < totalArr[
186
+								totalArr.length - 1]) {
187
+							showPagerArr.push(item)
188
+						}
189
+					}
190
+				})
191
+				if (pagerNum > pagerCount) {
192
+					if ((pagerCount + 1) / 2 >= num) {
193
+						showPagerArr[showPagerArr.length - 1] = '...'
194
+					} else if (num + 2 <= totalNum) {
195
+						showPagerArr[1] = '...'
196
+						showPagerArr[showPagerArr.length - 1] = '...'
197
+					} else {
198
+						showPagerArr[1] = '...'
199
+					}
200
+					showPagerArr.push(totalArr[totalArr.length - 1])
201
+				} else {
202
+					if ((pagerCount + 1) / 2 >= num) {} else if (num + 2 <= totalNum) {} else {
203
+						showPagerArr.shift()
204
+						showPagerArr.push(totalArr[totalArr.length - 1])
205
+					}
206
+				}
207
+
208
+				return showPagerArr
209
+			}
210
+		},
211
+		watch: {
212
+			current: {
213
+				immediate: true,
214
+				handler(val, old) {
215
+					if (val < 1) {
216
+						this.currentIndex = 1
217
+					} else {
218
+						this.currentIndex = val
219
+					}
220
+				}
221
+			},
222
+			value: {
223
+				immediate: true,
224
+				handler(val) {
225
+					if (Number(this.current) !== 1) return
226
+					if (val < 1) {
227
+						this.currentIndex = 1
228
+					} else {
229
+						this.currentIndex = val
230
+					}
231
+				}
232
+			},
233
+			pageSizeIndex(val) {
234
+				this.$emit('pageSizeChange', this.pageSizeRange[val])
235
+			}
236
+		},
237
+		methods: {
238
+			pickerChange(e) {
239
+				this.pageSizeIndex = e.detail.value
240
+				this.pickerClick()
241
+			},
242
+			pickerClick() {
243
+				// #ifdef H5
244
+				const body = document.querySelector('body')
245
+				if (!body) return
246
+
247
+				const className = 'uni-pagination-picker-show'
248
+				this.pickerShow = !this.pickerShow
249
+
250
+				if (this.pickerShow) {
251
+					body.classList.add(className)
252
+				} else {
253
+					setTimeout(() => body.classList.remove(className), 300)
254
+				}
255
+				// #endif
256
+			},
257
+			// 选择标签
258
+			selectPage(e, index) {
259
+				if (parseInt(e)) {
260
+					this.currentIndex = e
261
+					this.change('current')
262
+				} else {
263
+					let pagerNum = Math.ceil(this.total / this.pageSize)
264
+					// let pagerNum = Math.ceil(181 / this.pageSize)
265
+					// 上一页
266
+					if (index <= 1) {
267
+						if (this.currentIndex - 5 > 1) {
268
+							this.currentIndex -= 5
269
+						} else {
270
+							this.currentIndex = 1
271
+						}
272
+						return
273
+					}
274
+					// 下一页
275
+					if (index >= 6) {
276
+						if (this.currentIndex + 5 > pagerNum) {
277
+							this.currentIndex = pagerNum
278
+						} else {
279
+							this.currentIndex += 5
280
+						}
281
+						return
282
+					}
283
+				}
284
+			},
285
+			clickLeft() {
286
+				if (Number(this.currentIndex) === 1) {
287
+					return
288
+				}
289
+				this.currentIndex -= 1
290
+				this.change('prev')
291
+			},
292
+			clickRight() {
293
+				if (Number(this.currentIndex) >= this.maxPage) {
294
+					return
295
+				}
296
+				this.currentIndex += 1
297
+				this.change('next')
298
+			},
299
+			change(e) {
300
+				this.$emit('input', this.currentIndex)
301
+				this.$emit('update:modelValue', this.currentIndex)
302
+				this.$emit('change', {
303
+					type: e,
304
+					current: this.currentIndex
305
+				})
306
+			}
307
+		}
308
+	}
309
+</script>
310
+
311
+<style lang="scss" scoped>
312
+	$uni-primary: #2979ff !default;
313
+	.uni-pagination {
314
+		/* #ifndef APP-NVUE */
315
+		display: flex;
316
+		/* #endif */
317
+		position: relative;
318
+		overflow: hidden;
319
+		flex-direction: row;
320
+		justify-content: center;
321
+		align-items: center;
322
+	}
323
+
324
+	.uni-pagination__total {
325
+		font-size: 14px;
326
+		color: #999;
327
+		margin-right: 15px;
328
+	}
329
+
330
+	.uni-pagination__btn {
331
+		/* #ifndef APP-NVUE */
332
+		display: flex;
333
+		cursor: pointer;
334
+		/* #endif */
335
+		padding: 0 8px;
336
+		line-height: 30px;
337
+		font-size: 12px;
338
+		position: relative;
339
+		background-color: #F0F0F0;
340
+		flex-direction: row;
341
+		justify-content: center;
342
+		align-items: center;
343
+		text-align: center;
344
+		border-radius: 5px;
345
+		// border-width: 1px;
346
+		// border-style: solid;
347
+		// border-color: $uni-border-color;
348
+	}
349
+
350
+	.uni-pagination__child-btn {
351
+		/* #ifndef APP-NVUE */
352
+		display: flex;
353
+		/* #endif */
354
+		font-size: 12px;
355
+		position: relative;
356
+		flex-direction: row;
357
+		justify-content: center;
358
+		align-items: center;
359
+		text-align: center;
360
+		color: #666;
361
+		font-size: 12px;
362
+	}
363
+
364
+	.uni-pagination__num {
365
+		/* #ifndef APP-NVUE */
366
+		display: flex;
367
+		/* #endif */
368
+		flex: 1;
369
+		flex-direction: row;
370
+		justify-content: center;
371
+		align-items: center;
372
+		height: 30px;
373
+		line-height: 30px;
374
+		font-size: 12px;
375
+		color: #666;
376
+		margin: 0 5px;
377
+	}
378
+
379
+	.uni-pagination__num-tag {
380
+		/* #ifdef H5 */
381
+		cursor: pointer;
382
+		min-width: 30px;
383
+		/* #endif */
384
+		margin: 0 5px;
385
+		height: 30px;
386
+		text-align: center;
387
+		line-height: 30px;
388
+		// border: 1px red solid;
389
+		color: #999;
390
+		border-radius: 4px;
391
+		// border-width: 1px;
392
+		// border-style: solid;
393
+		// border-color: $uni-border-color;
394
+	}
395
+
396
+	.uni-pagination__num-current {
397
+		/* #ifndef APP-NVUE */
398
+		display: flex;
399
+		/* #endif */
400
+		flex-direction: row;
401
+	}
402
+
403
+	.uni-pagination__num-current-text {
404
+		font-size: 15px;
405
+	}
406
+
407
+	.current-index-text{
408
+		color: $uni-primary;
409
+	}
410
+
411
+	.uni-pagination--enabled {
412
+		color: #333333;
413
+		opacity: 1;
414
+	}
415
+
416
+	.uni-pagination--disabled {
417
+		opacity: 0.5;
418
+		/* #ifdef H5 */
419
+		cursor: default;
420
+		/* #endif */
421
+	}
422
+
423
+	.uni-pagination--hover {
424
+		color: rgba(0, 0, 0, 0.6);
425
+		background-color: #eee;
426
+	}
427
+
428
+	.tag--active:hover {
429
+		color: $uni-primary;
430
+	}
431
+
432
+	.page--active {
433
+		color: #fff;
434
+		background-color: $uni-primary;
435
+	}
436
+
437
+	.page--active:hover {
438
+		color: #fff;
439
+	}
440
+
441
+	/* #ifndef APP-NVUE */
442
+	.is-pc-hide {
443
+		display: block;
444
+	}
445
+
446
+	.is-phone-hide {
447
+		display: none;
448
+	}
449
+
450
+	@media screen and (min-width: 450px) {
451
+		.is-pc-hide {
452
+			display: none;
453
+		}
454
+
455
+		.is-phone-hide {
456
+			display: block;
457
+		}
458
+
459
+		.uni-pagination__num-flex-none {
460
+			flex: none;
461
+		}
462
+	}
463
+
464
+	/* #endif */
465
+</style>

+ 83 - 0
CallCenterWeb.UI/RMYYAPP/uni_modules/uni-pagination/package.json

@@ -0,0 +1,83 @@
1
+{
2
+  "id": "uni-pagination",
3
+  "displayName": "uni-pagination 分页器",
4
+  "version": "1.2.4",
5
+  "description": "Pagination 分页器组件,用于展示页码、请求数据等。",
6
+  "keywords": [
7
+    "uni-ui",
8
+    "uniui",
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
+    "sale": {
21
+      "regular": {
22
+        "price": "0.00"
23
+      },
24
+      "sourcecode": {
25
+        "price": "0.00"
26
+      }
27
+    },
28
+    "contact": {
29
+      "qq": ""
30
+    },
31
+    "declaration": {
32
+      "ads": "无",
33
+      "data": "无",
34
+      "permissions": "无"
35
+    },
36
+    "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui",
37
+    "type": "component-vue"
38
+  },
39
+  "uni_modules": {
40
+    "dependencies": ["uni-scss","uni-icons"],
41
+    "encrypt": [],
42
+    "platforms": {
43
+      "cloud": {
44
+        "tcb": "y",
45
+        "aliyun": "y"
46
+      },
47
+      "client": {
48
+        "App": {
49
+          "app-vue": "y",
50
+          "app-nvue": "y"
51
+        },
52
+        "H5-mobile": {
53
+          "Safari": "y",
54
+          "Android Browser": "y",
55
+          "微信浏览器(Android)": "y",
56
+          "QQ浏览器(Android)": "y"
57
+        },
58
+        "H5-pc": {
59
+          "Chrome": "y",
60
+          "IE": "y",
61
+          "Edge": "y",
62
+          "Firefox": "y",
63
+          "Safari": "y"
64
+        },
65
+        "小程序": {
66
+          "微信": "y",
67
+          "阿里": "y",
68
+          "百度": "y",
69
+          "字节跳动": "y",
70
+          "QQ": "y"
71
+        },
72
+        "快应用": {
73
+          "华为": "u",
74
+          "联盟": "u"
75
+        },
76
+        "Vue": {
77
+            "vue2": "y",
78
+            "vue3": "y"
79
+        }
80
+      }
81
+    }
82
+  }
83
+}

+ 11 - 0
CallCenterWeb.UI/RMYYAPP/uni_modules/uni-pagination/readme.md

@@ -0,0 +1,11 @@
1
+
2
+
3
+## Pagination 分页器
4
+> **组件名:uni-pagination**
5
+> 代码块: `uPagination`
6
+
7
+
8
+分页器组件,用于展示页码、请求数据等。
9
+
10
+### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-pagination)
11
+#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839