vue2-client 1.18.12 → 1.18.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +90 -90
- package/Components.md +60 -60
- package/docs/index.md +30 -30
- package/index.js +31 -31
- package/jest-transform-stub.js +8 -8
- package/jest.setup.js +7 -7
- package/package.json +112 -112
- package/src/assets/img/querySlotDemo.svg +15 -15
- package/src/base-client/components/common/AmapMarker/AmapPointRendering.vue +120 -120
- package/src/base-client/components/common/CitySelect/index.js +3 -3
- package/src/base-client/components/common/CitySelect/index.md +109 -109
- package/src/base-client/components/common/CreateQuery/CreateQuery.vue +669 -669
- package/src/base-client/components/common/CreateQuery/index.js +3 -3
- package/src/base-client/components/common/CreateQuery/index.md +42 -42
- package/src/base-client/components/common/CreateSimpleFormQuery/index.js +3 -3
- package/src/base-client/components/common/CreateSimpleFormQuery/index.md +42 -42
- package/src/base-client/components/common/FormGroupEdit/index.js +3 -3
- package/src/base-client/components/common/FormGroupEdit/index.md +43 -43
- package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +166 -166
- package/src/base-client/components/common/FormGroupQuery/index.js +3 -3
- package/src/base-client/components/common/FormGroupQuery/index.md +43 -43
- package/src/base-client/components/common/JSONToTree/jsontotree.vue +271 -271
- package/src/base-client/components/common/PersonSetting/PersonSetting.vue +208 -208
- package/src/base-client/components/common/PersonSetting/index.js +3 -3
- package/src/base-client/components/common/Tree/Tree.vue +149 -149
- package/src/base-client/components/common/Tree/index.js +2 -2
- package/src/base-client/components/common/Upload/index.js +3 -3
- package/src/base-client/components/common/XAddNativeForm/index.md +146 -146
- package/src/base-client/components/common/XCard/XCard.vue +64 -64
- package/src/base-client/components/common/XDataDrawer/XDataDrawer.vue +180 -180
- package/src/base-client/components/common/XDataDrawer/index.js +3 -3
- package/src/base-client/components/common/XDataDrawer/index.md +41 -41
- package/src/base-client/components/common/XDescriptions/index.js +3 -3
- package/src/base-client/components/common/XDescriptions/index.md +83 -83
- package/src/base-client/components/common/XForm/index.md +178 -178
- package/src/base-client/components/common/XStepView/XStepView.vue +252 -252
- package/src/base-client/components/common/XStepView/index.js +3 -3
- package/src/base-client/components/common/XStepView/index.md +31 -31
- package/src/base-client/components/common/XTable/index.md +255 -255
- package/src/base-client/components/system/DictionaryDetailsView/DictionaryDetailsView.vue +232 -232
- package/src/base-client/plugins/Config.js +19 -19
- package/src/base-client/plugins/tabs-page-plugin.js +39 -39
- package/src/components/Charts/Bar.vue +62 -62
- package/src/components/Charts/ChartCard.vue +134 -134
- package/src/components/Charts/Liquid.vue +67 -67
- package/src/components/Charts/MiniArea.vue +39 -39
- package/src/components/Charts/MiniBar.vue +39 -39
- package/src/components/Charts/MiniProgress.vue +75 -75
- package/src/components/Charts/MiniSmoothArea.vue +40 -40
- package/src/components/Charts/Radar.vue +68 -68
- package/src/components/Charts/RankList.vue +77 -77
- package/src/components/Charts/TagCloud.vue +113 -113
- package/src/components/Charts/TransferBar.vue +64 -64
- package/src/components/Charts/Trend.vue +82 -82
- package/src/components/Charts/chart.less +12 -12
- package/src/components/Charts/smooth.area.less +13 -13
- package/src/components/FileImageItem/FileItem.vue +320 -320
- package/src/components/FileImageItem/FileItemGroup.vue +296 -213
- package/src/components/NumberInfo/NumberInfo.vue +54 -54
- package/src/components/NumberInfo/index.js +3 -3
- package/src/components/NumberInfo/index.less +54 -54
- package/src/components/NumberInfo/index.md +43 -43
- package/src/components/card/ChartCard.vue +79 -79
- package/src/components/chart/Bar.vue +60 -60
- package/src/components/chart/MiniArea.vue +67 -67
- package/src/components/chart/MiniBar.vue +59 -59
- package/src/components/chart/MiniProgress.vue +57 -57
- package/src/components/chart/Radar.vue +80 -80
- package/src/components/chart/RankingList.vue +60 -60
- package/src/components/chart/Trend.vue +79 -79
- package/src/components/chart/index.less +9 -9
- package/src/components/checkbox/ColorCheckbox.vue +157 -157
- package/src/components/index.js +36 -36
- package/src/components/input/IInput.vue +66 -66
- package/src/components/menu/SideMenu.vue +75 -75
- package/src/components/menu/menu.js +273 -273
- package/src/components/tool/AStepItem.vue +60 -60
- package/src/layouts/CommonLayout.vue +56 -56
- package/src/layouts/header/HeaderNotice.vue +177 -177
- package/src/lib.js +1 -1
- package/src/mock/extend/index.js +84 -84
- package/src/mock/goods/index.js +108 -108
- package/src/pages/WorkflowDetail/WorkflowDetail.vue +404 -404
- package/src/pages/WorkflowDetail/WorkflowPageDetail/worklog.vue +98 -98
- package/src/pages/dashboard/workplace/WorkPlace.vue +141 -141
- package/src/pages/system/dictionary/index.vue +44 -44
- package/src/pages/system/monitor/loginInfor/index.vue +37 -37
- package/src/pages/system/monitor/operLog/index.vue +37 -37
- package/src/services/api/cas.js +79 -79
- package/src/store/modules/setting.js +119 -119
- package/src/utils/authority-utils.js +85 -85
- package/src/utils/errorCode.js +6 -6
- package//350/277/201/347/247/273/346/227/245/345/277/227.md +15 -15
|
@@ -1,213 +1,296 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="file-item-group">
|
|
3
|
-
<!-- 搜索区域 -->
|
|
4
|
-
<div class="search-area">
|
|
5
|
-
<a-form-model ref="searchForm" :model="formData" layout="inline">
|
|
6
|
-
<a-form-model-item prop="dateRange">
|
|
7
|
-
<a-range-picker
|
|
8
|
-
v-model="formData.dateRange"
|
|
9
|
-
:ranges="dateRanges"
|
|
10
|
-
:show-time="{ format: 'HH:mm' }"
|
|
11
|
-
format="YYYY-MM-DD HH:mm"
|
|
12
|
-
value-format="YYYY-MM-DD HH:mm:ss"
|
|
13
|
-
:placeholder="['开始时间', '结束时间']"
|
|
14
|
-
@change="handleDateChange"
|
|
15
|
-
/>
|
|
16
|
-
</a-form-model-item>
|
|
17
|
-
<a-form-model-item>
|
|
18
|
-
<a-button type="primary" :loading="loading" @click="handleSearch">
|
|
19
|
-
<a-icon type="search" />查询
|
|
20
|
-
</a-button>
|
|
21
|
-
</a-form-model-item>
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
<
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
</template>
|
|
50
|
-
|
|
51
|
-
<
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
.
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
}
|
|
213
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="file-item-group">
|
|
3
|
+
<!-- 搜索区域 -->
|
|
4
|
+
<div class="search-area">
|
|
5
|
+
<a-form-model ref="searchForm" :model="formData" layout="inline">
|
|
6
|
+
<a-form-model-item prop="dateRange">
|
|
7
|
+
<a-range-picker
|
|
8
|
+
v-model="formData.dateRange"
|
|
9
|
+
:ranges="dateRanges"
|
|
10
|
+
:show-time="{ format: 'HH:mm' }"
|
|
11
|
+
format="YYYY-MM-DD HH:mm"
|
|
12
|
+
value-format="YYYY-MM-DD HH:mm:ss"
|
|
13
|
+
:placeholder="['开始时间', '结束时间']"
|
|
14
|
+
@change="handleDateChange"
|
|
15
|
+
/>
|
|
16
|
+
</a-form-model-item>
|
|
17
|
+
<a-form-model-item>
|
|
18
|
+
<a-button type="primary" :loading="loading" @click="handleSearch">
|
|
19
|
+
<a-icon type="search" />查询
|
|
20
|
+
</a-button>
|
|
21
|
+
</a-form-model-item>
|
|
22
|
+
<a-form-model-item v-if="currUser.rolestr.includes('补录附件')">
|
|
23
|
+
<a-button type="primary" :loading="loading" @click="showfiles">
|
|
24
|
+
<a-icon type="upload" />上传附件
|
|
25
|
+
</a-button>
|
|
26
|
+
</a-form-model-item>
|
|
27
|
+
</a-form-model>
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
<!-- 文件列表区域 -->
|
|
31
|
+
<template v-if="Object.keys(groupedFiles).length > 0">
|
|
32
|
+
<div class="file-list-container">
|
|
33
|
+
<a-spin :spinning="loading">
|
|
34
|
+
<template v-for="(group, date) in groupedFiles">
|
|
35
|
+
<div :key="date" class="file-group">
|
|
36
|
+
<div class="group-header">
|
|
37
|
+
<a-icon type="calendar" />
|
|
38
|
+
<span class="date-label">{{ formatDate(date) }}</span>
|
|
39
|
+
<span class="file-count">({{ group.length }}个文件)</span>
|
|
40
|
+
</div>
|
|
41
|
+
<file-item
|
|
42
|
+
:files="group"
|
|
43
|
+
:downloadable="downloadable"
|
|
44
|
+
/>
|
|
45
|
+
</div>
|
|
46
|
+
</template>
|
|
47
|
+
</a-spin>
|
|
48
|
+
</div>
|
|
49
|
+
</template>
|
|
50
|
+
<template v-else>
|
|
51
|
+
<a-empty></a-empty>
|
|
52
|
+
</template>
|
|
53
|
+
<a-modal
|
|
54
|
+
v-model="applyAddFiles"
|
|
55
|
+
:footer="null"
|
|
56
|
+
:dialog-style="{ top: '5rem' }"
|
|
57
|
+
:z-index="1001"
|
|
58
|
+
title="附件补录"
|
|
59
|
+
:destroyOnClose="true">
|
|
60
|
+
<x-add-native-form ref="xForm" @onSubmit="applySubmit"/>
|
|
61
|
+
</a-modal>
|
|
62
|
+
</div>
|
|
63
|
+
</template>
|
|
64
|
+
|
|
65
|
+
<script>
|
|
66
|
+
import FileItem from './FileItem.vue'
|
|
67
|
+
import XAddNativeForm from '@vue2-client/base-client/components/common/XAddNativeForm/XAddNativeForm.vue'
|
|
68
|
+
import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
|
|
69
|
+
import { postByServiceName } from '@vue2-client/services/api/restTools'
|
|
70
|
+
import { mapState } from 'vuex'
|
|
71
|
+
|
|
72
|
+
export default {
|
|
73
|
+
name: 'FileItemGroup',
|
|
74
|
+
components: {
|
|
75
|
+
FileItem,
|
|
76
|
+
XAddNativeForm
|
|
77
|
+
},
|
|
78
|
+
props: {
|
|
79
|
+
downloadable: {
|
|
80
|
+
type: Boolean,
|
|
81
|
+
default: true
|
|
82
|
+
},
|
|
83
|
+
workflowId: {
|
|
84
|
+
type: String,
|
|
85
|
+
default: ''
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
data () {
|
|
89
|
+
const now = new Date()
|
|
90
|
+
const today = new Date(now.getFullYear(), now.getMonth(), now.getDate())
|
|
91
|
+
const yesterday = new Date(today)
|
|
92
|
+
yesterday.setDate(yesterday.getDate() - 1)
|
|
93
|
+
const last7Days = new Date(today)
|
|
94
|
+
last7Days.setDate(last7Days.getDate() - 6)
|
|
95
|
+
const last30Days = new Date(today)
|
|
96
|
+
last30Days.setDate(last30Days.getDate() - 29)
|
|
97
|
+
|
|
98
|
+
return {
|
|
99
|
+
loading: false,
|
|
100
|
+
formData: {
|
|
101
|
+
dateRange: []
|
|
102
|
+
},
|
|
103
|
+
files: [],
|
|
104
|
+
applyAddFiles: false,
|
|
105
|
+
dateRanges: {
|
|
106
|
+
今天: [today, new Date(today.getTime() + 24 * 60 * 60 * 1000 - 1)],
|
|
107
|
+
昨天: [yesterday, new Date(yesterday.getTime() + 24 * 60 * 60 * 1000 - 1)],
|
|
108
|
+
最近7天: [last7Days, new Date(today.getTime() + 24 * 60 * 60 * 1000 - 1)],
|
|
109
|
+
最近30天: [last30Days, new Date(today.getTime() + 24 * 60 * 60 * 1000 - 1)]
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
mounted () {
|
|
114
|
+
this.handleSearch()
|
|
115
|
+
},
|
|
116
|
+
computed: {
|
|
117
|
+
...mapState('account', { currUser: 'user' }),
|
|
118
|
+
groupedFiles () {
|
|
119
|
+
const groups = {}
|
|
120
|
+
this.files.forEach(file => {
|
|
121
|
+
const originalDate = file.upload_time?.split(' ')[0]
|
|
122
|
+
|
|
123
|
+
let displayDate
|
|
124
|
+
if (!originalDate || !/^\d{4}-\d{2}-\d{2}$/.test(originalDate)) {
|
|
125
|
+
displayDate = '无日期'
|
|
126
|
+
} else {
|
|
127
|
+
displayDate = originalDate
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
groups[displayDate] = groups[displayDate] || []
|
|
131
|
+
groups[displayDate].push(file)
|
|
132
|
+
})
|
|
133
|
+
|
|
134
|
+
// 自定义排序:有日期的按日期降序,无日期在最后
|
|
135
|
+
return Object.fromEntries(
|
|
136
|
+
Object.entries(groups).sort(([dateA], [dateB]) => {
|
|
137
|
+
if (dateA === '无日期') return 1
|
|
138
|
+
if (dateB === '无日期') return -1
|
|
139
|
+
return dateB.localeCompare(dateA)
|
|
140
|
+
})
|
|
141
|
+
)
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
methods: {
|
|
145
|
+
handleDateChange (dates) {
|
|
146
|
+
this.formData.dateRange = dates
|
|
147
|
+
},
|
|
148
|
+
handleSearch () {
|
|
149
|
+
this.$refs.searchForm.validate(async valid => {
|
|
150
|
+
if (valid) {
|
|
151
|
+
this.loading = true
|
|
152
|
+
let queryDate
|
|
153
|
+
if (this.formData.dateRange && this.formData.dateRange.length > 0) {
|
|
154
|
+
queryDate = this.formData.dateRange
|
|
155
|
+
} else {
|
|
156
|
+
queryDate = undefined
|
|
157
|
+
}
|
|
158
|
+
const callback = (res) => {
|
|
159
|
+
console.warn('>>>callback', res)
|
|
160
|
+
this.files = res.files
|
|
161
|
+
this.loading = false
|
|
162
|
+
}
|
|
163
|
+
const errorCallback = (e) => {
|
|
164
|
+
console.warn('>>>errorCallback', e)
|
|
165
|
+
this.$message.error('获取文件列表失败:' + e.getMessage())
|
|
166
|
+
this.loading = false
|
|
167
|
+
}
|
|
168
|
+
this.$emit('search', queryDate, callback, errorCallback)
|
|
169
|
+
} else {
|
|
170
|
+
this.$message.error('请检查日期选择是否正确')
|
|
171
|
+
}
|
|
172
|
+
})
|
|
173
|
+
},
|
|
174
|
+
formatDate (date) {
|
|
175
|
+
if (date === '无日期') {
|
|
176
|
+
return '无日期'
|
|
177
|
+
}
|
|
178
|
+
const today = new Date().toISOString().split('T')[0]
|
|
179
|
+
const yesterday = new Date(Date.now() - 24 * 60 * 60 * 1000).toISOString().split('T')[0]
|
|
180
|
+
|
|
181
|
+
if (date === today) {
|
|
182
|
+
return '今天'
|
|
183
|
+
} else if (date === yesterday) {
|
|
184
|
+
return '昨天'
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
const [year, month, day] = date.split('-')
|
|
188
|
+
return `${year}年${month}月${day}日`
|
|
189
|
+
},
|
|
190
|
+
showfiles () {
|
|
191
|
+
this.applyAddFiles = true
|
|
192
|
+
// 获取所有步骤
|
|
193
|
+
postByServiceName('/logic/getWorkFlowDefine', {
|
|
194
|
+
id: this.workflowId
|
|
195
|
+
}).then(res => {
|
|
196
|
+
const steps = res.steps
|
|
197
|
+
runLogic('getWorkFlowStepState', { workflowId: this.workflowId }, 'af-system').then(
|
|
198
|
+
work => {
|
|
199
|
+
const stepState = work
|
|
200
|
+
console.log('stepState', stepState)
|
|
201
|
+
const options = []
|
|
202
|
+
stepState.forEach(state => {
|
|
203
|
+
steps.forEach(step => {
|
|
204
|
+
if (step.name === state.f_name) {
|
|
205
|
+
step.properties.form.formJson.forEach(item => {
|
|
206
|
+
if (item.type === 'file') {
|
|
207
|
+
options.push({
|
|
208
|
+
label: step.name,
|
|
209
|
+
value: step.name
|
|
210
|
+
})
|
|
211
|
+
}
|
|
212
|
+
})
|
|
213
|
+
}
|
|
214
|
+
})
|
|
215
|
+
})
|
|
216
|
+
// 去重操作
|
|
217
|
+
const keys = options.filter((option, index, self) =>
|
|
218
|
+
index === self.findIndex(opt => opt.value === option.value)
|
|
219
|
+
)
|
|
220
|
+
this.$nextTick(
|
|
221
|
+
() => {
|
|
222
|
+
getConfigByName('addApplyFilesForm', 'af-system', (res) => {
|
|
223
|
+
res.formJson[0].keys = keys
|
|
224
|
+
this.$refs.xForm.init({
|
|
225
|
+
businessType: '新增',
|
|
226
|
+
title: '附件补录',
|
|
227
|
+
...res
|
|
228
|
+
})
|
|
229
|
+
})
|
|
230
|
+
}
|
|
231
|
+
)
|
|
232
|
+
}
|
|
233
|
+
)
|
|
234
|
+
})
|
|
235
|
+
},
|
|
236
|
+
applySubmit (formData) {
|
|
237
|
+
console.log('formData', formData)
|
|
238
|
+
formData.workflowId = this.workflowId
|
|
239
|
+
runLogic('addApplyFiles', formData, 'af-system').then(
|
|
240
|
+
res => {
|
|
241
|
+
this.$message.success('附件补录成功')
|
|
242
|
+
this.applyAddFiles = false
|
|
243
|
+
}
|
|
244
|
+
).catch(() => {
|
|
245
|
+
this.applyAddFiles = false
|
|
246
|
+
})
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
</script>
|
|
251
|
+
|
|
252
|
+
<style lang="less" scoped>
|
|
253
|
+
.file-item-group {
|
|
254
|
+
.search-area {
|
|
255
|
+
display: flex;
|
|
256
|
+
gap: 16px;
|
|
257
|
+
margin-bottom: 24px;
|
|
258
|
+
padding: 16px;
|
|
259
|
+
background: #fff;
|
|
260
|
+
border-radius: 8px;
|
|
261
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.file-list-container {
|
|
265
|
+
.file-group {
|
|
266
|
+
margin-bottom: 24px;
|
|
267
|
+
|
|
268
|
+
.group-header {
|
|
269
|
+
display: flex;
|
|
270
|
+
align-items: center;
|
|
271
|
+
margin-bottom: 16px;
|
|
272
|
+
padding: 8px 16px;
|
|
273
|
+
background: #fafafa;
|
|
274
|
+
border-radius: 6px;
|
|
275
|
+
|
|
276
|
+
.anticon {
|
|
277
|
+
margin-right: 8px;
|
|
278
|
+
color: @primary-color;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.date-label {
|
|
282
|
+
font-size: 15px;
|
|
283
|
+
font-weight: 500;
|
|
284
|
+
color: rgba(0, 0, 0, 0.85);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.file-count {
|
|
288
|
+
margin-left: 8px;
|
|
289
|
+
color: rgba(0, 0, 0, 0.45);
|
|
290
|
+
font-size: 13px;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
</style>
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div :class="[prefixCls]">
|
|
3
|
-
<slot name="subtitle">
|
|
4
|
-
<div :class="[`${prefixCls}-subtitle`]">{{ typeof subTitle === 'string' ? subTitle : subTitle() }}</div>
|
|
5
|
-
</slot>
|
|
6
|
-
<div class="number-info-value">
|
|
7
|
-
<span>{{ total }}</span>
|
|
8
|
-
<span class="sub-total">
|
|
9
|
-
{{ subTotal }}
|
|
10
|
-
<icon :type="`caret-${status}`" />
|
|
11
|
-
</span>
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
14
|
-
</template>
|
|
15
|
-
|
|
16
|
-
<script>
|
|
17
|
-
import Icon from 'ant-design-vue/es/icon'
|
|
18
|
-
|
|
19
|
-
export default {
|
|
20
|
-
name: 'NumberInfo',
|
|
21
|
-
props: {
|
|
22
|
-
prefixCls: {
|
|
23
|
-
type: String,
|
|
24
|
-
default: 'ant-pro-number-info'
|
|
25
|
-
},
|
|
26
|
-
total: {
|
|
27
|
-
type: Number,
|
|
28
|
-
required: true
|
|
29
|
-
},
|
|
30
|
-
subTotal: {
|
|
31
|
-
type: Number,
|
|
32
|
-
required: true
|
|
33
|
-
},
|
|
34
|
-
subTitle: {
|
|
35
|
-
type: [String, Function],
|
|
36
|
-
default: ''
|
|
37
|
-
},
|
|
38
|
-
status: {
|
|
39
|
-
type: String,
|
|
40
|
-
default: 'up'
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
components: {
|
|
44
|
-
Icon
|
|
45
|
-
},
|
|
46
|
-
data () {
|
|
47
|
-
return {}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
</script>
|
|
51
|
-
|
|
52
|
-
<style lang="less" scoped>
|
|
53
|
-
//@import "index";
|
|
54
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="[prefixCls]">
|
|
3
|
+
<slot name="subtitle">
|
|
4
|
+
<div :class="[`${prefixCls}-subtitle`]">{{ typeof subTitle === 'string' ? subTitle : subTitle() }}</div>
|
|
5
|
+
</slot>
|
|
6
|
+
<div class="number-info-value">
|
|
7
|
+
<span>{{ total }}</span>
|
|
8
|
+
<span class="sub-total">
|
|
9
|
+
{{ subTotal }}
|
|
10
|
+
<icon :type="`caret-${status}`" />
|
|
11
|
+
</span>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<script>
|
|
17
|
+
import Icon from 'ant-design-vue/es/icon'
|
|
18
|
+
|
|
19
|
+
export default {
|
|
20
|
+
name: 'NumberInfo',
|
|
21
|
+
props: {
|
|
22
|
+
prefixCls: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: 'ant-pro-number-info'
|
|
25
|
+
},
|
|
26
|
+
total: {
|
|
27
|
+
type: Number,
|
|
28
|
+
required: true
|
|
29
|
+
},
|
|
30
|
+
subTotal: {
|
|
31
|
+
type: Number,
|
|
32
|
+
required: true
|
|
33
|
+
},
|
|
34
|
+
subTitle: {
|
|
35
|
+
type: [String, Function],
|
|
36
|
+
default: ''
|
|
37
|
+
},
|
|
38
|
+
status: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: 'up'
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
components: {
|
|
44
|
+
Icon
|
|
45
|
+
},
|
|
46
|
+
data () {
|
|
47
|
+
return {}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
</script>
|
|
51
|
+
|
|
52
|
+
<style lang="less" scoped>
|
|
53
|
+
//@import "index";
|
|
54
|
+
</style>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import NumberInfo from './NumberInfo'
|
|
2
|
-
|
|
3
|
-
export default NumberInfo
|
|
1
|
+
import NumberInfo from './NumberInfo'
|
|
2
|
+
|
|
3
|
+
export default NumberInfo
|