|
@@ -0,0 +1,511 @@
|
|
1
|
+<template>
|
|
2
|
+ <div class="customerStaff-wrap" v-loading="pageLoading">
|
|
3
|
+ <!-- S 筛选区 -->
|
|
4
|
+ <div class="screenBox" style="padding-right: 100px;">
|
|
5
|
+ <!-- 企微主体 -->
|
|
6
|
+ <div class="common-screen-item">
|
|
7
|
+ <label class="common-screen-label">企微主体</label>
|
|
8
|
+ <!-- 系统管理员 -->
|
|
9
|
+ <el-cascader v-if="$cookie.getCookie('isSuperManage') == 1" v-model="system_enterprise" size="small" :options="enterpriseList" :props="{value:'self_id',label:'self_name',children:'manage_corp_list'}" @change="onChangeCorpidSystem" clearable filterable placeholder="请选择" class="select-cls cascader" />
|
|
10
|
+ <!-- 非系统管理员 -->
|
|
11
|
+ <el-select v-else v-model="filter.corpid" size="small" filterable placeholder="请选择" @change="onChangeCorpid" clearable class="select-cls">
|
|
12
|
+ <el-option v-for="(item, index) in enterpriseList" :key="index+'enterpriseList'" :label="item.corp_name?item.corp_name:item.corp_full_name?item.corp_full_name:item.corpid" :value="item.corpid" />
|
|
13
|
+ </el-select>
|
|
14
|
+ </div>
|
|
15
|
+ <!-- 成员 -->
|
|
16
|
+ <selfInputV2 v-model="filter.user_name" label_name="成员" placeholder="请输入" @change="onChangeUserName" />
|
|
17
|
+ <!-- 客服状态 -->
|
|
18
|
+ <selfChannel title="客服状态" type="customerStaffStatus" :reset="reset" placeholder="请选择" @channelDefine="onChangeStatus" />
|
|
19
|
+ <!-- 激活状态 -->
|
|
20
|
+ <selfChannel title="激活状态" type="isActive" :reset="reset" placeholder="请选择" @channelDefine="onChangeActiveStatus" />
|
|
21
|
+ <!-- 运营人员 -->
|
|
22
|
+ <selfChannel title="运营人员" type="circleCreate" :reset="reset" placeholder="请选择" @channelDefine="onChangeOperatorUid" />
|
|
23
|
+
|
|
24
|
+ <div class="reset" @click="onClickReset">重置</div>
|
|
25
|
+ <el-button v-if="isCanExport" class="export-btn" type="primary" size="mini" @click="onClickExport">导出Excel</el-button>
|
|
26
|
+ </div>
|
|
27
|
+ <!-- E 筛选区 -->
|
|
28
|
+ <!-- S 数据更新时间 -->
|
|
29
|
+ <!-- <div class="update-time"><i class="el-icon-warning-outline" />数据更新时间:{{ updateTime || '-' }}</div> -->
|
|
30
|
+ <!-- E 数据更新时间 -->
|
|
31
|
+ <!-- S 明细表 detailsTable -->
|
|
32
|
+ <div v-loading="detailLoading">
|
|
33
|
+ <ux-grid class="detailsTable" ref="detailsTable" :border="false" @row-click="() => { return }" :header-cell-style="getHeaderCellStyle" show-footer-overflow="tooltip" show-overflow="tooltip" size="mini" :height="height">
|
|
34
|
+ <ux-table-column v-for="(item, idx) in detailsTableCol" :key="item.column + item.name" :resizable="true" :field="item.column" :title="item.name" :min-width="item.min_width ? item.min_width : 160" :fixed="item.fixed ? item.fixed : ''" align="center">
|
|
35
|
+ <template #header>
|
|
36
|
+ <div class="flex-align-jus-center">
|
|
37
|
+ {{ item.name }}
|
|
38
|
+ <el-tooltip v-if="item.notes" :content="item.notes" placement="top">
|
|
39
|
+ <div><i class="el-icon-question" /></div>
|
|
40
|
+ </el-tooltip>
|
|
41
|
+ <div v-if="item.enable_to_sort" class="sort-wrap">
|
|
42
|
+ <i class="el-icon-caret-top" :class="{ 'active': filter.sort_field === item.column && filter.sort_type === 'asc' }" @click="onClickSort(item.column, 'asc')" />
|
|
43
|
+ <i class="el-icon-caret-bottom" :class="{ 'active': filter.sort_field === item.column && filter.sort_type === 'desc' }" @click="onClickSort(item.column, 'desc')" />
|
|
44
|
+ </div>
|
|
45
|
+ </div>
|
|
46
|
+ </template>
|
|
47
|
+ <template v-slot="{ row }">
|
|
48
|
+ <!-- 客服状态 -->
|
|
49
|
+ <span v-if="item.column === 'status'">{{ handleGetStatus(row['status']) }}</span>
|
|
50
|
+ <!-- 激活状态 -->
|
|
51
|
+ <span v-else-if="item.column === 'active_status'">{{ handleGetActiveStatus(row['active_status']) }}</span>
|
|
52
|
+ <!-- 激活状态 -->
|
|
53
|
+ <span v-else-if="item.column === 'operator_name'">{{ row['operator_name'] || '-' }}</span>
|
|
54
|
+ <!-- 其他字段 -->
|
|
55
|
+ <span v-else>{{ (row[item.column] || row[item.column] == 0) ? $formatNum(row[item.column]) : '-' }}</span>
|
|
56
|
+ </template>
|
|
57
|
+ </ux-table-column>
|
|
58
|
+
|
|
59
|
+ <ux-table-column v-if="detailsTableCol && detailsTableCol.length" :width="120" fixed="right" align="center" title="操作">
|
|
60
|
+ <template v-slot="{ row }">
|
|
61
|
+ <span class="c-00B38A pointer" @click="onClickStatus(row)">客服状态</span>
|
|
62
|
+ </template>
|
|
63
|
+ </ux-table-column>
|
|
64
|
+ </ux-grid>
|
|
65
|
+ <div class="pagination" v-show="pagination.total > 0">
|
|
66
|
+ <el-pagination background :current-page="pagination.page" @current-change="handleCurrentChange" layout="prev, pager, next" :page-count='Number(pagination.pages)' />
|
|
67
|
+ </div>
|
|
68
|
+ </div>
|
|
69
|
+ <!-- E 明细表 detailsTable -->
|
|
70
|
+
|
|
71
|
+ <!-- S 设置客服状态 -->
|
|
72
|
+ <setStatusDialog
|
|
73
|
+ :dialogVisible="setStatusDialogVisible"
|
|
74
|
+ :currentCustomer="currentCustomer"
|
|
75
|
+ @confirm="handleSetStatusConfirm"
|
|
76
|
+ @cancel="handleSetStatusCancel"
|
|
77
|
+ />
|
|
78
|
+ <!-- E 设置客服状态 -->
|
|
79
|
+ </div>
|
|
80
|
+</template>
|
|
81
|
+
|
|
82
|
+<script>
|
|
83
|
+import selfChannel from '@/components/assembly/screen/channel.vue'
|
|
84
|
+import selfInputV2 from '@/components/assembly/screen/inputV2.vue'
|
|
85
|
+import setStatusDialog from './setStatusDialog.vue'
|
|
86
|
+import { customerStaffStatusMap, kfActiveStatusMap } from '@/assets/js/staticTypes'
|
|
87
|
+
|
|
88
|
+export default {
|
|
89
|
+ components: {
|
|
90
|
+ selfChannel,
|
|
91
|
+ selfInputV2,
|
|
92
|
+ setStatusDialog,
|
|
93
|
+ },
|
|
94
|
+ data() {
|
|
95
|
+ return{
|
|
96
|
+ reset: false,
|
|
97
|
+ pageLoading: false,
|
|
98
|
+ height: '',
|
|
99
|
+
|
|
100
|
+ detailLoading: false,
|
|
101
|
+ detailsTableCol: [],
|
|
102
|
+
|
|
103
|
+ pagination: {
|
|
104
|
+ page: 1,
|
|
105
|
+ page_size: 20,
|
|
106
|
+ pages: 0,
|
|
107
|
+ total: 0,
|
|
108
|
+ },
|
|
109
|
+
|
|
110
|
+ system_enterprise: [], // 企微主体数据
|
|
111
|
+ enterpriseList: [], // 企微主体数据
|
|
112
|
+ enterprise: {}, // 当前选择的企微信息
|
|
113
|
+
|
|
114
|
+ filter: {
|
|
115
|
+ sort_field: '', // 排序字段 - 默认值
|
|
116
|
+ sort_type: '', // 升序/降序
|
|
117
|
+ corpid: '', // 企微主体
|
|
118
|
+ user_name: '', // 成员
|
|
119
|
+ status: '', // 客服状态
|
|
120
|
+ operator_uid: '', // 运营人员
|
|
121
|
+ active_status: '', // 激活状态
|
|
122
|
+ },
|
|
123
|
+ updateTime: '', // 数据更新时间
|
|
124
|
+
|
|
125
|
+ setStatusDialogVisible: false,
|
|
126
|
+ currentCustomer: {},
|
|
127
|
+ }
|
|
128
|
+ },
|
|
129
|
+ computed: {
|
|
130
|
+ // 是否有“导出”权限
|
|
131
|
+ isCanExport() {
|
|
132
|
+ return !!this.$store.state.dataBoardAuth.can_export
|
|
133
|
+ },
|
|
134
|
+ },
|
|
135
|
+ created() {
|
|
136
|
+ this.initTableHeight()
|
|
137
|
+ this.handleInitCorpOptions()
|
|
138
|
+ this.handleGetData()
|
|
139
|
+ },
|
|
140
|
+ methods: {
|
|
141
|
+ handleGetStatus(status) {
|
|
142
|
+ return customerStaffStatusMap.get(status) || '-'
|
|
143
|
+ },
|
|
144
|
+ handleGetActiveStatus(active_status) {
|
|
145
|
+ return kfActiveStatusMap.get(active_status) || '-'
|
|
146
|
+ },
|
|
147
|
+ handleGetData() {
|
|
148
|
+ this.handleGetList()
|
|
149
|
+ // this.handleGetUpdateTime()
|
|
150
|
+ },
|
|
151
|
+ // 获取"数据更新时间"
|
|
152
|
+ async handleGetUpdateTime() {
|
|
153
|
+ try {
|
|
154
|
+ const params = { type: '' }
|
|
155
|
+ const { data: res = {} } = await this.$axios.get(`${this.URL.BASEURL}${this.URL.dataBoard_uptime}`, { params })
|
|
156
|
+ if (res && res.errno == 0) {
|
|
157
|
+ this.updateTime = res.rst.uptime
|
|
158
|
+ } else if (res.errno != 4002) {
|
|
159
|
+ this.$message.warning(res.err)
|
|
160
|
+ this.updateTime = ''
|
|
161
|
+ }
|
|
162
|
+ } catch (error) {
|
|
163
|
+ this.updateTime = ''
|
|
164
|
+ }
|
|
165
|
+ },
|
|
166
|
+ // 获取列表数据
|
|
167
|
+ async handleGetList() {
|
|
168
|
+ try {
|
|
169
|
+ this.detailLoading = true
|
|
170
|
+ const params = {
|
|
171
|
+ corp_id: this.filter.corpid,
|
|
172
|
+ user_name: this.filter.user_name,
|
|
173
|
+ status: this.filter.status,
|
|
174
|
+ operator_uid: this.filter.operator_uid,
|
|
175
|
+ active_status: this.filter.active_status,
|
|
176
|
+
|
|
177
|
+ sort_field: this.filter.sort_field,
|
|
178
|
+ sort_type: this.filter.sort_type,
|
|
179
|
+ page: this.pagination.page,
|
|
180
|
+ page_size: this.pagination.page_size,
|
|
181
|
+ }
|
|
182
|
+ const url = `${this.URL.BASEURL}${this.URL.dataBoard_customerStaff_list}`
|
|
183
|
+ const { data: res = {} } = await this.$axios.get(url, { params })
|
|
184
|
+ if (res && res.errno == 0) {
|
|
185
|
+ res.rst.extra[0].fixed = 'left' // 前1列固定左侧
|
|
186
|
+ const detailsTableCol = []
|
|
187
|
+ res.rst.extra.forEach(item => {
|
|
188
|
+ if (item.name && item.name.length > 6) { // 长字符宽度
|
|
189
|
+ item['min_width'] = item.name.length * 25
|
|
190
|
+ }
|
|
191
|
+ detailsTableCol.push(item) // 收集普通表头
|
|
192
|
+ })
|
|
193
|
+ this.detailsTableCol = Object.freeze(detailsTableCol)
|
|
194
|
+ await this.$nextTick()
|
|
195
|
+ const detailsTableList = Array.isArray(res.rst.data) ? res.rst.data : []
|
|
196
|
+ this.$refs.detailsTable.reloadData(detailsTableList)
|
|
197
|
+ this.pagination.total = res.rst.pageInfo.total
|
|
198
|
+ this.pagination.pages = res.rst.pageInfo.pages
|
|
199
|
+ } else if (res.errno != 4002) {
|
|
200
|
+ this.$message.warning(res.err)
|
|
201
|
+ this.$refs.detailsTable.reloadData([])
|
|
202
|
+ this.pagination.total = 0
|
|
203
|
+ this.pagination.pages = 0
|
|
204
|
+ }
|
|
205
|
+ } catch (error) {
|
|
206
|
+ console.log(error)
|
|
207
|
+ this.$refs.detailsTable.reloadData([])
|
|
208
|
+ this.pagination.total = 0
|
|
209
|
+ this.pagination.pages = 0
|
|
210
|
+ } finally {
|
|
211
|
+ this.detailLoading = false
|
|
212
|
+ }
|
|
213
|
+ },
|
|
214
|
+ // 监听排序变化
|
|
215
|
+ onClickSort(sort_field, sort_type) {
|
|
216
|
+ // sort_type:升序asc、降序desc
|
|
217
|
+ if (this.filter.sort_field === sort_field) {
|
|
218
|
+ if (this.filter.sort_type === sort_type) {
|
|
219
|
+ // 点击的是当前排序字段 && 是当前排序类型 => 重置 取消排序
|
|
220
|
+ this.filter.sort_field = ''
|
|
221
|
+ this.filter.sort_type = ''
|
|
222
|
+ } else {
|
|
223
|
+ // 点击的是当前排序字段 && 非当前排序类型 => 设置排序类型
|
|
224
|
+ this.filter.sort_type = sort_type
|
|
225
|
+ }
|
|
226
|
+ } else {
|
|
227
|
+ // 点击的不是当前排序字段 => 设置排序字段和类型
|
|
228
|
+ this.filter.sort_field = sort_field
|
|
229
|
+ this.filter.sort_type = sort_type
|
|
230
|
+ }
|
|
231
|
+ // 后端排序 => 获取最新数据
|
|
232
|
+ this.pagination.page = 1
|
|
233
|
+ this.handleGetData()
|
|
234
|
+ },
|
|
235
|
+ // 监听当前页变化
|
|
236
|
+ handleCurrentChange(currentPage) {
|
|
237
|
+ this.pagination.page = currentPage
|
|
238
|
+ this.handleGetData()
|
|
239
|
+ },
|
|
240
|
+ // 监听客服输入变化
|
|
241
|
+ onChangeUserName(val) {
|
|
242
|
+ this.filter.user_name = val
|
|
243
|
+ this.pagination.page = 1
|
|
244
|
+ this.handleGetData()
|
|
245
|
+ },
|
|
246
|
+ // 监听“客服状态”变化
|
|
247
|
+ onChangeStatus(val) {
|
|
248
|
+ this.filter.status = val
|
|
249
|
+ this.pagination.page = 1
|
|
250
|
+ this.handleGetData()
|
|
251
|
+ },
|
|
252
|
+ // 监听“运营人员”变化
|
|
253
|
+ onChangeOperatorUid(val) {
|
|
254
|
+ this.filter.operator_uid = val
|
|
255
|
+ this.pagination.page = 1
|
|
256
|
+ this.handleGetData()
|
|
257
|
+ },
|
|
258
|
+ // 监听“激活状态”变化
|
|
259
|
+ onChangeActiveStatus(val) {
|
|
260
|
+ this.filter.active_status = val
|
|
261
|
+ this.pagination.page = 1
|
|
262
|
+ this.handleGetData()
|
|
263
|
+ },
|
|
264
|
+ // 监听点击"重置"按钮
|
|
265
|
+ onClickReset() {
|
|
266
|
+ this.reset = !this.reset
|
|
267
|
+
|
|
268
|
+ this.system_enterprise = []
|
|
269
|
+ this.enterprise = {}
|
|
270
|
+ this.filter.corpid = ''
|
|
271
|
+ this.filter.user_name = ''
|
|
272
|
+ this.filter.status = ''
|
|
273
|
+ this.filter.operator_uid = ''
|
|
274
|
+ this.filter.active_status = ''
|
|
275
|
+
|
|
276
|
+ this.filter.sort_field = ''
|
|
277
|
+ this.filter.sort_type = ''
|
|
278
|
+ this.pagination.page = 1
|
|
279
|
+ this.handleGetData()
|
|
280
|
+ },
|
|
281
|
+ // 监听点击"导出"按钮
|
|
282
|
+ async onClickExport() {
|
|
283
|
+ if (!this.pagination.total) return this.$message.warning('暂无数据可导出')
|
|
284
|
+ try {
|
|
285
|
+ this.pageLoading = true
|
|
286
|
+ const url = {
|
|
287
|
+ detail: `${this.URL.BASEURL}${this.URL.dataBoard_customerStaff_list}`,
|
|
288
|
+ }
|
|
289
|
+ const params = {
|
|
290
|
+ corp_id: this.filter.corpid,
|
|
291
|
+ user_name: this.filter.user_name,
|
|
292
|
+ status: this.filter.status,
|
|
293
|
+ operator_uid: this.filter.operator_uid,
|
|
294
|
+ active_status: this.filter.active_status,
|
|
295
|
+ }
|
|
296
|
+ const [{ data: detailRes = {} }] = await Promise.all([
|
|
297
|
+ this.$axios.get(url.detail, {
|
|
298
|
+ params: {
|
|
299
|
+ ...params,
|
|
300
|
+ sort_field: this.filter.sort_field,
|
|
301
|
+ sort_type: this.filter.sort_type,
|
|
302
|
+ page: 1,
|
|
303
|
+ page_size: this.$store.state.exportNumber,
|
|
304
|
+ }
|
|
305
|
+ })
|
|
306
|
+ ])
|
|
307
|
+ if (detailRes && detailRes.errno == 0) {
|
|
308
|
+ this.handleExport({
|
|
309
|
+ detailData: detailRes.rst,
|
|
310
|
+ })
|
|
311
|
+ } else if (detailRes.errno != 4002) {
|
|
312
|
+ this.$message.warning(detailRes.err)
|
|
313
|
+ }
|
|
314
|
+ } catch (error) {
|
|
315
|
+ console.log(error)
|
|
316
|
+ this.$message.warning('导出失败,请重试')
|
|
317
|
+ } finally {
|
|
318
|
+ this.pageLoading = false
|
|
319
|
+ }
|
|
320
|
+ },
|
|
321
|
+ // 执行导出逻辑
|
|
322
|
+ handleExport({ detailData = {} }) {
|
|
323
|
+ let tHeader = []
|
|
324
|
+ let filterVal = []
|
|
325
|
+ let tableDatas = []
|
|
326
|
+
|
|
327
|
+ detailData.data.forEach(item => {
|
|
328
|
+ item['status'] = this.handleGetStatus(item['status'])
|
|
329
|
+ item['active_status'] = this.handleGetActiveStatus(item['active_status'])
|
|
330
|
+ })
|
|
331
|
+
|
|
332
|
+ tHeader = [
|
|
333
|
+ ...detailData.extra.map(d => `${d.name}`),
|
|
334
|
+ ]
|
|
335
|
+
|
|
336
|
+ filterVal = [
|
|
337
|
+ ...detailData.extra.map(d => d.column),
|
|
338
|
+ ]
|
|
339
|
+
|
|
340
|
+ tableDatas = [
|
|
341
|
+ ...detailData.data,
|
|
342
|
+ ]
|
|
343
|
+
|
|
344
|
+ const excelDatas = [
|
|
345
|
+ {
|
|
346
|
+ tHeader, // sheet表一头部
|
|
347
|
+ filterVal, // 表一的数据字段
|
|
348
|
+ tableDatas, // 表一的整体json数据
|
|
349
|
+ sheetName: ''// 表一的sheet名字
|
|
350
|
+ }
|
|
351
|
+ ]
|
|
352
|
+ this.$exportOrder({ excelDatas, name: `客服数据统计(导出时间:${this.$getDay(0)})` })
|
|
353
|
+ },
|
|
354
|
+ getHeaderCellStyle() {
|
|
355
|
+ return { backgroundColor: '#FFFFFF !important', border: 'none!important' }
|
|
356
|
+ },
|
|
357
|
+ initTableHeight() {
|
|
358
|
+ this.height = document.documentElement.clientHeight - 240 > 400 ? document.documentElement.clientHeight - 240 : 400
|
|
359
|
+ },
|
|
360
|
+
|
|
361
|
+ // S 企微主体数据
|
|
362
|
+ onChangeCorpidSystem(val) {//二级联选择器
|
|
363
|
+ if (val.length < 1) {
|
|
364
|
+ this.enterprise = {}
|
|
365
|
+ } else {
|
|
366
|
+ this.enterpriseList.forEach((item) => {
|
|
367
|
+ item.manage_corp_list.forEach((item1) => {
|
|
368
|
+ if (item1.corpid == val[1]) {
|
|
369
|
+ this.enterprise = item1
|
|
370
|
+ }
|
|
371
|
+ })
|
|
372
|
+ })
|
|
373
|
+ }
|
|
374
|
+ this.filter.corpid = this.enterprise.corpid || ''
|
|
375
|
+ this.pagination.page = 1
|
|
376
|
+ this.handleGetData()
|
|
377
|
+ },
|
|
378
|
+ onChangeCorpid(val) {
|
|
379
|
+ if (!val) {
|
|
380
|
+ this.enterprise = {}
|
|
381
|
+ } else {
|
|
382
|
+ const res = this.enterpriseList.filter(v => v.corpid == val)[0];
|
|
383
|
+ this.enterprise = res || {}
|
|
384
|
+ }
|
|
385
|
+ this.filter.corpid = this.enterprise.corpid || ''
|
|
386
|
+ this.pagination.page = 1
|
|
387
|
+ this.handleGetData()
|
|
388
|
+ },
|
|
389
|
+ // 企业筛选初始化
|
|
390
|
+ handleInitCorpOptions() {
|
|
391
|
+ if (this.$cookie.getCookie('isSuperManage') == 1) {//系统管理员
|
|
392
|
+ const enterpriseList = this.$store.state.authorize_corpList;
|
|
393
|
+ enterpriseList.forEach(item => {//为了el-cascader更改props
|
|
394
|
+ item.self_id = item.group_id.toString();
|
|
395
|
+ item.self_name = item.group_name;
|
|
396
|
+ item.manage_corp_list.forEach(item1 => {
|
|
397
|
+ item1.self_id = item1.corpid;
|
|
398
|
+ item1.self_name = item1.corp_name;
|
|
399
|
+ })
|
|
400
|
+ });
|
|
401
|
+ this.enterpriseList = enterpriseList
|
|
402
|
+ } else {
|
|
403
|
+ this.enterpriseList = this.$store.state.authorize_corpList;
|
|
404
|
+ }
|
|
405
|
+ },
|
|
406
|
+ // E 企微主体数据
|
|
407
|
+
|
|
408
|
+ onClickStatus(row) {
|
|
409
|
+ this.currentCustomer = {...row}
|
|
410
|
+ this.setStatusDialogVisible = true
|
|
411
|
+ },
|
|
412
|
+ handleSetStatusConfirm() {
|
|
413
|
+ this.currentCustomer = {}
|
|
414
|
+ this.setStatusDialogVisible = false
|
|
415
|
+ this.handleGetData()
|
|
416
|
+ },
|
|
417
|
+ handleSetStatusCancel() {
|
|
418
|
+ this.currentCustomer = {}
|
|
419
|
+ this.setStatusDialogVisible = false
|
|
420
|
+ },
|
|
421
|
+ },
|
|
422
|
+}
|
|
423
|
+</script>
|
|
424
|
+
|
|
425
|
+<style lang="scss" scoped>
|
|
426
|
+@import "@/style/list.scss";
|
|
427
|
+.customerStaff-wrap {
|
|
428
|
+ position: relative;
|
|
429
|
+ min-height: calc(100vh - 70px);
|
|
430
|
+ .empty-wrap {
|
|
431
|
+ position: absolute;
|
|
432
|
+ top: 50%;
|
|
433
|
+ left: 50%;
|
|
434
|
+ transform: translate(-50%, -50%);
|
|
435
|
+ }
|
|
436
|
+ .screenBox {
|
|
437
|
+ background: #fff;
|
|
438
|
+ // padding: 5px 20px 26px;
|
|
439
|
+ padding: 5px 20px 10px;
|
|
440
|
+ position: relative;
|
|
441
|
+ .export-btn {
|
|
442
|
+ position: absolute;
|
|
443
|
+ top: 17px;
|
|
444
|
+ right: 4px;
|
|
445
|
+ }
|
|
446
|
+ }
|
|
447
|
+ .update-time {
|
|
448
|
+ margin-top: 10px;
|
|
449
|
+ padding-left: 20px;
|
|
450
|
+ display: flex;
|
|
451
|
+ align-items: center;
|
|
452
|
+ font-size: 12px;
|
|
453
|
+ color: #999;
|
|
454
|
+ i {
|
|
455
|
+ font-size: 14px;
|
|
456
|
+ font-weight: 600;
|
|
457
|
+ margin-right: 4px;
|
|
458
|
+ }
|
|
459
|
+ }
|
|
460
|
+ .summaryTable {
|
|
461
|
+ margin-top: 10px;
|
|
462
|
+ }
|
|
463
|
+ .detailsTable {
|
|
464
|
+ margin-top: 10px;
|
|
465
|
+ }
|
|
466
|
+ .sort-wrap {
|
|
467
|
+ display: flex;
|
|
468
|
+ flex-direction: column;
|
|
469
|
+ i {
|
|
470
|
+ cursor: pointer;
|
|
471
|
+ &.active {
|
|
472
|
+ color: #32B38A;
|
|
473
|
+ }
|
|
474
|
+ }
|
|
475
|
+ i:first-child {
|
|
476
|
+ margin-bottom: -3px;
|
|
477
|
+ }
|
|
478
|
+ i:last-child {
|
|
479
|
+ margin-top: -3px;
|
|
480
|
+ }
|
|
481
|
+ }
|
|
482
|
+ .select-cls {
|
|
483
|
+ /deep/ .el-input__inner {
|
|
484
|
+ width: 210px;
|
|
485
|
+ }
|
|
486
|
+ /deep/ &.el-select .el-input.is-focus .el-input__inner,
|
|
487
|
+ /deep/ &.el-select .el-input__inner:focus,
|
|
488
|
+ /deep/ &.el-cascader .el-input.is-focus .el-input__inner,
|
|
489
|
+ /deep/ &.el-cascader .el-input__inner:focus {
|
|
490
|
+ border-color: #DCDFE6;
|
|
491
|
+ }
|
|
492
|
+ /deep/ .el-input__suffix {
|
|
493
|
+ border-top-right-radius: 4px;
|
|
494
|
+ border-bottom-right-radius: 4px;
|
|
495
|
+ border: 1px solid #DCDFE6;
|
|
496
|
+ right: 0;
|
|
497
|
+ width: 30px;
|
|
498
|
+ background-color: #F1F1F1;
|
|
499
|
+ .el-input__icon {
|
|
500
|
+ color: #909399;
|
|
501
|
+ }
|
|
502
|
+ }
|
|
503
|
+ &.cascader {
|
|
504
|
+ /deep/ .el-input__suffix {
|
|
505
|
+ height: 32px;
|
|
506
|
+ top: 2px;
|
|
507
|
+ }
|
|
508
|
+ }
|
|
509
|
+ }
|
|
510
|
+}
|
|
511
|
+</style>
|