@cmstops/pro-compo 0.1.17 → 0.1.19
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/dist/index.css +70 -82
- package/dist/index.min.css +1 -1
- package/es/contentDetailList/component.js +7 -7
- package/es/contentDetailList/components/Content/CompoItem/index.js +3 -2
- package/es/contentDetailList/components/Content/ContentListItem/index.js +21 -13
- package/es/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.js +2 -3
- package/es/contentDetailList/components/Content/DocItem/index.js +4 -2
- package/es/contentDetailList/components/Content/KongoNavItem/DocTags/index.js +9 -8
- package/es/contentDetailList/components/Content/KongoNavItem/index.js +3 -2
- package/es/contentDetailList/components/Content/LiveItem/index.js +3 -2
- package/es/contentDetailList/components/Content/MaccountItem/index.js +2 -1
- package/es/contentDetailList/components/Content/index.js +17 -19
- package/es/contentDetailList/scripts/index.d.ts +0 -10
- package/es/contentDetailList/style/ComoItem.less +7 -19
- package/es/contentDetailList/style/ContentListItem.less +28 -28
- package/es/contentDetailList/style/DocItem.less +10 -16
- package/es/contentDetailList/style/DocTags.less +2 -1
- package/es/contentDetailList/style/KongoNavItem.less +6 -19
- package/es/contentDetailList/style/LiveItem.less +8 -20
- package/es/contentDetailList/style/MaccountItem.less +8 -16
- package/es/contentDetailList/style/index.css +68 -82
- package/es/contentDetailList/style/index.less +10 -0
- package/es/emptyData/component.js +55 -11
- package/es/emptyData/svg/acount.js +19 -0
- package/es/emptyData/svg/add.d.ts +0 -0
- package/es/emptyData/svg/add.js +22 -0
- package/es/emptyData/svg/analize.js +19 -0
- package/es/emptyData/svg/analize_fail.js +19 -0
- package/es/emptyData/svg/empty.js +19 -0
- package/es/emptyData/svg/file.js +19 -0
- package/es/emptyData/svg/manager.js +19 -0
- package/es/emptyData/svg/message.js +31 -0
- package/es/emptyData/svg/noanalize.js +19 -0
- package/es/emptyData/svg/null.js +19 -0
- package/es/emptyData/svg/search.js +19 -0
- package/es/emptyData/svg/star.js +19 -0
- package/es/emptyData/svg/trash.js +19 -0
- package/es/emptyData/svg/user.js +19 -0
- package/es/index.css +70 -82
- package/es/mediaFilter/style/index.css +1 -0
- package/es/mediaFilter/style/index.less +1 -0
- package/es/style.css +1 -0
- package/es/typeIcons/style/index.css +1 -0
- package/es/typeIcons/style/index.less +1 -0
- package/es/utils/doc.d.ts +1 -0
- package/es/utils/doc.js +27 -1
- package/es/utils/index.d.ts +2 -0
- package/es/utils/index.js +16 -1
- package/es/utils/typeMap.d.ts +19 -0
- package/es/utils/typeMap.js +65 -1
- package/lib/contentDetailList/component.js +7 -7
- package/lib/contentDetailList/components/Content/CompoItem/index.js +4 -3
- package/lib/contentDetailList/components/Content/ContentListItem/index.js +22 -14
- package/lib/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.js +8 -9
- package/lib/contentDetailList/components/Content/DocItem/index.js +8 -6
- package/lib/contentDetailList/components/Content/KongoNavItem/DocTags/index.js +16 -15
- package/lib/contentDetailList/components/Content/KongoNavItem/index.js +3 -2
- package/lib/contentDetailList/components/Content/LiveItem/index.js +3 -2
- package/lib/contentDetailList/components/Content/MaccountItem/index.js +2 -1
- package/lib/contentDetailList/components/Content/index.js +16 -18
- package/lib/contentDetailList/style/ComoItem.less +7 -19
- package/lib/contentDetailList/style/ContentListItem.less +28 -28
- package/lib/contentDetailList/style/DocItem.less +10 -16
- package/lib/contentDetailList/style/DocTags.less +2 -1
- package/lib/contentDetailList/style/KongoNavItem.less +6 -19
- package/lib/contentDetailList/style/LiveItem.less +8 -20
- package/lib/contentDetailList/style/MaccountItem.less +8 -16
- package/lib/contentDetailList/style/index.css +68 -82
- package/lib/contentDetailList/style/index.less +10 -0
- package/lib/emptyData/component.js +85 -10
- package/lib/emptyData/svg/acount.js +20 -0
- package/lib/emptyData/svg/add.js +23 -0
- package/lib/emptyData/svg/analize.js +20 -0
- package/lib/emptyData/svg/analize_fail.js +20 -0
- package/lib/emptyData/svg/empty.js +20 -0
- package/lib/emptyData/svg/file.js +20 -0
- package/lib/emptyData/svg/manager.js +20 -0
- package/lib/emptyData/svg/message.js +32 -0
- package/lib/emptyData/svg/noanalize.js +20 -0
- package/lib/emptyData/svg/null.js +20 -0
- package/lib/emptyData/svg/search.js +20 -0
- package/lib/emptyData/svg/star.js +20 -0
- package/lib/emptyData/svg/trash.js +20 -0
- package/lib/emptyData/svg/user.js +20 -0
- package/lib/index.css +70 -82
- package/lib/mediaFilter/style/index.css +1 -0
- package/lib/mediaFilter/style/index.less +1 -0
- package/lib/typeIcons/style/index.css +1 -0
- package/lib/typeIcons/style/index.less +1 -0
- package/lib/utils/doc.js +29 -0
- package/lib/utils/index.js +17 -0
- package/lib/utils/typeMap.js +71 -0
- package/package.json +1 -1
- package/es/contentDetailList/scripts/data.d.ts +0 -254
- package/es/contentDetailList/scripts/index.js +0 -137
- package/lib/contentDetailList/scripts/index.js +0 -153
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
export declare const content_media_file_data: ({
|
|
2
|
-
alias: string;
|
|
3
|
-
source: string;
|
|
4
|
-
source_url: string;
|
|
5
|
-
target_type: number;
|
|
6
|
-
catalog: string;
|
|
7
|
-
target_id: number;
|
|
8
|
-
series: string;
|
|
9
|
-
style: string;
|
|
10
|
-
payload: string;
|
|
11
|
-
pub_user_id: number;
|
|
12
|
-
pub_user_alias: string;
|
|
13
|
-
status: number;
|
|
14
|
-
pub_time: string;
|
|
15
|
-
update_time: string;
|
|
16
|
-
hashid: string;
|
|
17
|
-
mp_media_uid: string;
|
|
18
|
-
list_count: number;
|
|
19
|
-
list_type: number;
|
|
20
|
-
list_layout: string;
|
|
21
|
-
geo_code: never[];
|
|
22
|
-
relation_type: number;
|
|
23
|
-
state: number;
|
|
24
|
-
statement: boolean;
|
|
25
|
-
recommended: boolean;
|
|
26
|
-
sensitives: string;
|
|
27
|
-
relation_id: number;
|
|
28
|
-
link_title: string;
|
|
29
|
-
online_time: number;
|
|
30
|
-
offline_time: number;
|
|
31
|
-
position: number;
|
|
32
|
-
order: number;
|
|
33
|
-
static_url: string;
|
|
34
|
-
share_link: string;
|
|
35
|
-
commit_user_id: number;
|
|
36
|
-
commit_user_name: string;
|
|
37
|
-
hide: number;
|
|
38
|
-
fix_position: number;
|
|
39
|
-
post_id: string;
|
|
40
|
-
pv_count: number;
|
|
41
|
-
like_count: number;
|
|
42
|
-
share_count: number;
|
|
43
|
-
preview_url: string;
|
|
44
|
-
} | {
|
|
45
|
-
alias: string;
|
|
46
|
-
source: string;
|
|
47
|
-
source_url: string;
|
|
48
|
-
target_type: number;
|
|
49
|
-
catalog: string;
|
|
50
|
-
target_id: number;
|
|
51
|
-
series: string;
|
|
52
|
-
style: string;
|
|
53
|
-
payload: string;
|
|
54
|
-
pub_user_id: number;
|
|
55
|
-
pub_user_alias: string;
|
|
56
|
-
status: number;
|
|
57
|
-
pub_time: string;
|
|
58
|
-
update_time: string;
|
|
59
|
-
hashid: string;
|
|
60
|
-
mp_media_uid: string;
|
|
61
|
-
list_count: number;
|
|
62
|
-
list_type: number;
|
|
63
|
-
list_layout: string;
|
|
64
|
-
geo_code: string;
|
|
65
|
-
relation_type: number;
|
|
66
|
-
state: number;
|
|
67
|
-
statement: boolean;
|
|
68
|
-
recommended: boolean;
|
|
69
|
-
sensitives: string;
|
|
70
|
-
relation_id: number;
|
|
71
|
-
link_title: string;
|
|
72
|
-
online_time: number;
|
|
73
|
-
offline_time: number;
|
|
74
|
-
position: number;
|
|
75
|
-
order: number;
|
|
76
|
-
static_url: string;
|
|
77
|
-
share_link: string;
|
|
78
|
-
commit_user_id: number;
|
|
79
|
-
commit_user_name: string;
|
|
80
|
-
hide: number;
|
|
81
|
-
fix_position: number;
|
|
82
|
-
post_id: string;
|
|
83
|
-
pv_count: number;
|
|
84
|
-
like_count: number;
|
|
85
|
-
share_count: number;
|
|
86
|
-
preview_url: string;
|
|
87
|
-
})[];
|
|
88
|
-
export declare const doc_media_file_data: ({
|
|
89
|
-
id: number;
|
|
90
|
-
title: string;
|
|
91
|
-
author: string;
|
|
92
|
-
catalog: string;
|
|
93
|
-
duty_editor: string;
|
|
94
|
-
series: string;
|
|
95
|
-
hash_id: string;
|
|
96
|
-
created_at: string;
|
|
97
|
-
updated_at: string;
|
|
98
|
-
pub_author: number;
|
|
99
|
-
source: string;
|
|
100
|
-
state: number;
|
|
101
|
-
recommended: boolean;
|
|
102
|
-
statement: boolean;
|
|
103
|
-
cover: {
|
|
104
|
-
data: null;
|
|
105
|
-
model: number;
|
|
106
|
-
alias: string;
|
|
107
|
-
banner: boolean;
|
|
108
|
-
banner_url: string;
|
|
109
|
-
banner_time: number;
|
|
110
|
-
pc_banner_url: string;
|
|
111
|
-
top_image_url: string;
|
|
112
|
-
top_theme_color?: undefined;
|
|
113
|
-
top_colorList?: undefined;
|
|
114
|
-
};
|
|
115
|
-
preview_url: string;
|
|
116
|
-
sensitives: string;
|
|
117
|
-
can_pub: boolean;
|
|
118
|
-
pub_time: number;
|
|
119
|
-
offline_time: number;
|
|
120
|
-
pub_author_alias: string;
|
|
121
|
-
} | {
|
|
122
|
-
id: number;
|
|
123
|
-
title: string;
|
|
124
|
-
author: string;
|
|
125
|
-
catalog: string;
|
|
126
|
-
duty_editor: string;
|
|
127
|
-
series: string;
|
|
128
|
-
hash_id: string;
|
|
129
|
-
created_at: string;
|
|
130
|
-
updated_at: string;
|
|
131
|
-
pub_author: number;
|
|
132
|
-
source: string;
|
|
133
|
-
state: number;
|
|
134
|
-
recommended: boolean;
|
|
135
|
-
statement: boolean;
|
|
136
|
-
cover: {
|
|
137
|
-
data: {
|
|
138
|
-
thumb: string;
|
|
139
|
-
url: string;
|
|
140
|
-
}[];
|
|
141
|
-
model: number;
|
|
142
|
-
alias: string;
|
|
143
|
-
banner: boolean;
|
|
144
|
-
top_theme_color: string;
|
|
145
|
-
top_colorList: number[][];
|
|
146
|
-
banner_url: string;
|
|
147
|
-
banner_time: number;
|
|
148
|
-
pc_banner_url: string;
|
|
149
|
-
top_image_url: string;
|
|
150
|
-
};
|
|
151
|
-
preview_url: string;
|
|
152
|
-
sensitives: string;
|
|
153
|
-
can_pub: boolean;
|
|
154
|
-
pub_time: number;
|
|
155
|
-
offline_time: number;
|
|
156
|
-
pub_author_alias: string;
|
|
157
|
-
} | {
|
|
158
|
-
id: number;
|
|
159
|
-
title: string;
|
|
160
|
-
author: string;
|
|
161
|
-
catalog: string;
|
|
162
|
-
duty_editor: string;
|
|
163
|
-
series: string;
|
|
164
|
-
hash_id: string;
|
|
165
|
-
created_at: string;
|
|
166
|
-
updated_at: string;
|
|
167
|
-
pub_author: number;
|
|
168
|
-
source: string;
|
|
169
|
-
state: number;
|
|
170
|
-
recommended: boolean;
|
|
171
|
-
statement: boolean;
|
|
172
|
-
cover: {
|
|
173
|
-
data: {
|
|
174
|
-
thumb: string;
|
|
175
|
-
url: string;
|
|
176
|
-
}[];
|
|
177
|
-
model: number;
|
|
178
|
-
alias: string;
|
|
179
|
-
banner: boolean;
|
|
180
|
-
banner_url: string;
|
|
181
|
-
banner_time: number;
|
|
182
|
-
pc_banner_url: string;
|
|
183
|
-
top_image_url: string;
|
|
184
|
-
top_theme_color?: undefined;
|
|
185
|
-
top_colorList?: undefined;
|
|
186
|
-
};
|
|
187
|
-
preview_url: string;
|
|
188
|
-
sensitives: string;
|
|
189
|
-
can_pub: boolean;
|
|
190
|
-
pub_time: number;
|
|
191
|
-
offline_time: number;
|
|
192
|
-
pub_author_alias: string;
|
|
193
|
-
} | {
|
|
194
|
-
id: number;
|
|
195
|
-
title: string;
|
|
196
|
-
author: string;
|
|
197
|
-
catalog: string;
|
|
198
|
-
duty_editor: string;
|
|
199
|
-
series: string;
|
|
200
|
-
hash_id: string;
|
|
201
|
-
created_at: string;
|
|
202
|
-
updated_at: string;
|
|
203
|
-
pub_author: number;
|
|
204
|
-
source: string;
|
|
205
|
-
state: number;
|
|
206
|
-
recommended: boolean;
|
|
207
|
-
statement: boolean;
|
|
208
|
-
cover: {
|
|
209
|
-
data: null;
|
|
210
|
-
model: number;
|
|
211
|
-
alias: string;
|
|
212
|
-
banner: boolean;
|
|
213
|
-
top_theme_color: string;
|
|
214
|
-
top_colorList: number[][];
|
|
215
|
-
banner_url: string;
|
|
216
|
-
banner_time: number;
|
|
217
|
-
pc_banner_url: string;
|
|
218
|
-
top_image_url: string;
|
|
219
|
-
};
|
|
220
|
-
preview_url: string;
|
|
221
|
-
sensitives: string;
|
|
222
|
-
can_pub: boolean;
|
|
223
|
-
pub_time: number;
|
|
224
|
-
offline_time: number;
|
|
225
|
-
pub_author_alias: string;
|
|
226
|
-
})[];
|
|
227
|
-
export declare const content_abttributes: ({
|
|
228
|
-
label: string;
|
|
229
|
-
key: string;
|
|
230
|
-
time?: undefined;
|
|
231
|
-
pv?: undefined;
|
|
232
|
-
keys?: undefined;
|
|
233
|
-
} | {
|
|
234
|
-
label: string;
|
|
235
|
-
key: string;
|
|
236
|
-
time: boolean;
|
|
237
|
-
pv?: undefined;
|
|
238
|
-
keys?: undefined;
|
|
239
|
-
} | {
|
|
240
|
-
label: string;
|
|
241
|
-
key: string;
|
|
242
|
-
pv: boolean;
|
|
243
|
-
keys: string[];
|
|
244
|
-
time?: undefined;
|
|
245
|
-
})[];
|
|
246
|
-
export declare const doc_abttributes: ({
|
|
247
|
-
label: string;
|
|
248
|
-
key: string;
|
|
249
|
-
time?: undefined;
|
|
250
|
-
} | {
|
|
251
|
-
label: string;
|
|
252
|
-
key: string;
|
|
253
|
-
time: boolean;
|
|
254
|
-
})[];
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { computed, ref } from "vue";
|
|
2
|
-
const componentsColumns = {
|
|
3
|
-
banner: { value: "banner", label: "\u8F6E\u64AD\u7EC4\u4EF6" },
|
|
4
|
-
top: { value: "top", label: "\u7F6E\u9876\u7EC4\u4EF6" },
|
|
5
|
-
horizon_slide: { value: "horizon_slide", label: "\u6A2A\u6ED1\u7EC4\u4EF6" },
|
|
6
|
-
svideo: { value: "svideo", label: "\u5C0F\u89C6\u9891\u7EC4\u4EF6" },
|
|
7
|
-
special: { value: "special", label: "\u4E13\u9898/\u5408\u96C6\u7EC4\u4EF6" },
|
|
8
|
-
news_letter: { value: "news_letter", label: "\u5FEB\u8BAF\u7EC4\u4EF6" },
|
|
9
|
-
focus: { value: "focus", label: "\u70ED\u70B9\u7EC4\u4EF6" },
|
|
10
|
-
radio: { value: "radio", label: "\u5E7F\u64AD\u7EC4\u4EF6", simple: true },
|
|
11
|
-
tv: { value: "tv", label: "\u7535\u89C6\u7EC4\u4EF6", simple: true },
|
|
12
|
-
mp_account: { value: "mp_account", label: "\u516C\u4F17\u53F7\u7EC4\u4EF6" },
|
|
13
|
-
column: { value: "column", label: "\u5206\u680F\u7EC4\u4EF6" },
|
|
14
|
-
kongo: { value: "kongo", label: "\u529F\u80FD\u5BFC\u822A\u7EC4\u4EF6" }
|
|
15
|
-
};
|
|
16
|
-
const docThumbObjMap = {
|
|
17
|
-
1: { alias: "\u4E09\u56FE", maxLength: 3, value: "1", ratio: 4 / 3 },
|
|
18
|
-
2: { alias: "\u5927\u56FE", maxLength: 1, value: "2", ratio: 16 / 9 },
|
|
19
|
-
3: { alias: "\u5355\u56FE", maxLength: 1, value: "3", ratio: 4 / 3 },
|
|
20
|
-
4: { alias: "\u65E0\u56FE", maxLength: 0, value: "4", ratio: 1 },
|
|
21
|
-
5: { alias: "\u7AD6\u56FE", maxLength: 1, value: "5", ratio: 3 / 4 },
|
|
22
|
-
7: { alias: "\u7A84\u56FE", maxLength: 1, value: "7", ratio: 4 / 1 }
|
|
23
|
-
};
|
|
24
|
-
const contentList_relation_type_map = {
|
|
25
|
-
0: "\u624B\u52A8",
|
|
26
|
-
1: "\u94FE\u63A5",
|
|
27
|
-
2: "\u5F15\u7528",
|
|
28
|
-
3: "\u7EA7\u8054",
|
|
29
|
-
4: "\u5E94\u7528",
|
|
30
|
-
10: "\u81EA\u52A8"
|
|
31
|
-
};
|
|
32
|
-
const contentList_layout_map = {
|
|
33
|
-
blank: "\u6807\u51C6\u4FE1\u606F\u6D41",
|
|
34
|
-
svideo: "\u53CC\u5411\u5C0F\u89C6\u9891",
|
|
35
|
-
fly_card: "\u98DE\u5361\u9605\u8BFB",
|
|
36
|
-
video: "\u89C6\u9891\u98CE\u683C",
|
|
37
|
-
immersive_video: "\u6C89\u6D78\u5C0F\u89C6\u9891",
|
|
38
|
-
timeline: "\u65F6\u95F4\u94FE",
|
|
39
|
-
lbs: "LBS\u9891\u9053"
|
|
40
|
-
};
|
|
41
|
-
const kongo_source_map = {
|
|
42
|
-
app: "\u5E94\u7528",
|
|
43
|
-
url: "\u94FE\u63A5",
|
|
44
|
-
document: "\u7A3F\u4EF6",
|
|
45
|
-
category_list: "\u9891\u9053",
|
|
46
|
-
service: "\u670D\u52A1"
|
|
47
|
-
};
|
|
48
|
-
const contentList_list_type_map = {
|
|
49
|
-
1: "\u624B\u52A8\u5217\u8868",
|
|
50
|
-
2: "\u81EA\u52A8\u5217\u8868",
|
|
51
|
-
3: "\u63A8\u8350\u5217\u8868",
|
|
52
|
-
4: "\u9891\u9053",
|
|
53
|
-
5: "\u4E13\u9898",
|
|
54
|
-
6: "\u5FEB\u8BAF",
|
|
55
|
-
7: "\u7EC4\u4EF6"
|
|
56
|
-
};
|
|
57
|
-
const docStateMap = {
|
|
58
|
-
0: "\u8349\u7A3F",
|
|
59
|
-
10: "\u5BA1\u6838\u4E2D",
|
|
60
|
-
12: "\u5BA1\u6838\u4E2D",
|
|
61
|
-
13: "\u88AB\u9A73\u56DE",
|
|
62
|
-
14: "\u5DF2\u53D1\u5E03",
|
|
63
|
-
15: "\u5DF2\u53D1\u5E03",
|
|
64
|
-
16: "\u5DF2\u4E0B\u7EBF",
|
|
65
|
-
17: "\u5DF2\u5220\u9664",
|
|
66
|
-
19: "\u5B9A\u65F6\u53D1\u5E03",
|
|
67
|
-
22: "\u5DF2\u4E0B\u7EBF"
|
|
68
|
-
};
|
|
69
|
-
const approveFlowStatusMap = {
|
|
70
|
-
1: "\u5BA1\u6838\u4E2D",
|
|
71
|
-
2: "\u5DF2\u62D2\u7EDD",
|
|
72
|
-
3: "\u5DF2\u901A\u8FC7",
|
|
73
|
-
4: "\u5DF2\u64A4\u9500",
|
|
74
|
-
5: "\u5DF2\u901A\u8FC7",
|
|
75
|
-
6: "\u5DF2\u9A73\u56DE",
|
|
76
|
-
7: "\u91CD\u65B0\u53D1\u8D77",
|
|
77
|
-
8: "\u5DF2\u7ED3\u675F"
|
|
78
|
-
};
|
|
79
|
-
const compoColumnsMap = () => {
|
|
80
|
-
const obj = ref({});
|
|
81
|
-
Object.keys(componentsColumns).forEach((key) => {
|
|
82
|
-
obj.value[key] = componentsColumns[key].label.replace("\u7EC4\u4EF6", "");
|
|
83
|
-
});
|
|
84
|
-
return obj;
|
|
85
|
-
};
|
|
86
|
-
const docThumbMap = () => {
|
|
87
|
-
const obj = ref({});
|
|
88
|
-
Object.keys(docThumbObjMap).forEach((key) => {
|
|
89
|
-
obj[key] = docThumbObjMap[key].alias;
|
|
90
|
-
});
|
|
91
|
-
return obj;
|
|
92
|
-
};
|
|
93
|
-
const noCoverText = (item) => {
|
|
94
|
-
const text = item.alias || item.title;
|
|
95
|
-
return text.substring(0, 2);
|
|
96
|
-
};
|
|
97
|
-
const timeFormat = computed(() => {
|
|
98
|
-
return (value) => {
|
|
99
|
-
if (value === 0)
|
|
100
|
-
return "--";
|
|
101
|
-
if (!value)
|
|
102
|
-
return "--";
|
|
103
|
-
if (typeof value === "number" && String(value).length === 10) {
|
|
104
|
-
value *= 1e3;
|
|
105
|
-
}
|
|
106
|
-
const date = new Date(value);
|
|
107
|
-
return `${date.getFullYear()}-${date.getMonth() + 1}-${date.getDate()} ${date.getHours() < 10 ? `0${date.getHours()}` : date.getHours()}:${date.getMinutes() < 10 ? `0${date.getMinutes()}` : date.getMinutes()}`;
|
|
108
|
-
};
|
|
109
|
-
});
|
|
110
|
-
const approvalItem = (item) => {
|
|
111
|
-
if (!(item.approval_status && item.approval_status.current_processes)) {
|
|
112
|
-
return null;
|
|
113
|
-
}
|
|
114
|
-
return item.approval_status;
|
|
115
|
-
};
|
|
116
|
-
const calcApprovingUser = (data) => {
|
|
117
|
-
if (data.current_processes[0] && data.current_processes[0].users && data.current_processes[0].users[0]) {
|
|
118
|
-
const ApvUser = data.current_processes[0].users[0];
|
|
119
|
-
let alias = ApvUser.user_alias || "";
|
|
120
|
-
if (ApvUser.uid === "__smart_robot") {
|
|
121
|
-
alias = "AI\u52A9\u624B";
|
|
122
|
-
}
|
|
123
|
-
if (data.current_processes[0].users.length > 1) {
|
|
124
|
-
alias += "\u7B49";
|
|
125
|
-
}
|
|
126
|
-
return alias;
|
|
127
|
-
}
|
|
128
|
-
return "";
|
|
129
|
-
};
|
|
130
|
-
const calcApprovingDependent = (data) => {
|
|
131
|
-
let alias = "";
|
|
132
|
-
if (data.current_processes && data.current_processes.length && data.current_processes[0] && (data.current_processes[0].users && data.current_processes[0].users.length > 1 || data.current_processes[0].uid && data.current_processes[0].uid.length > 1)) {
|
|
133
|
-
alias = !data.current_processes[0].dependent ? "\uFF08\u4F1A\u7B7E\uFF09" : "\uFF08\u6216\u7B7E\uFF09";
|
|
134
|
-
}
|
|
135
|
-
return alias;
|
|
136
|
-
};
|
|
137
|
-
export { approvalItem, approveFlowStatusMap, calcApprovingDependent, calcApprovingUser, compoColumnsMap, componentsColumns, contentList_layout_map, contentList_list_type_map, contentList_relation_type_map, docStateMap, docThumbMap, docThumbObjMap, kongo_source_map, noCoverText, timeFormat };
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
var vue = require("vue");
|
|
4
|
-
const componentsColumns = {
|
|
5
|
-
banner: { value: "banner", label: "\u8F6E\u64AD\u7EC4\u4EF6" },
|
|
6
|
-
top: { value: "top", label: "\u7F6E\u9876\u7EC4\u4EF6" },
|
|
7
|
-
horizon_slide: { value: "horizon_slide", label: "\u6A2A\u6ED1\u7EC4\u4EF6" },
|
|
8
|
-
svideo: { value: "svideo", label: "\u5C0F\u89C6\u9891\u7EC4\u4EF6" },
|
|
9
|
-
special: { value: "special", label: "\u4E13\u9898/\u5408\u96C6\u7EC4\u4EF6" },
|
|
10
|
-
news_letter: { value: "news_letter", label: "\u5FEB\u8BAF\u7EC4\u4EF6" },
|
|
11
|
-
focus: { value: "focus", label: "\u70ED\u70B9\u7EC4\u4EF6" },
|
|
12
|
-
radio: { value: "radio", label: "\u5E7F\u64AD\u7EC4\u4EF6", simple: true },
|
|
13
|
-
tv: { value: "tv", label: "\u7535\u89C6\u7EC4\u4EF6", simple: true },
|
|
14
|
-
mp_account: { value: "mp_account", label: "\u516C\u4F17\u53F7\u7EC4\u4EF6" },
|
|
15
|
-
column: { value: "column", label: "\u5206\u680F\u7EC4\u4EF6" },
|
|
16
|
-
kongo: { value: "kongo", label: "\u529F\u80FD\u5BFC\u822A\u7EC4\u4EF6" }
|
|
17
|
-
};
|
|
18
|
-
const docThumbObjMap = {
|
|
19
|
-
1: { alias: "\u4E09\u56FE", maxLength: 3, value: "1", ratio: 4 / 3 },
|
|
20
|
-
2: { alias: "\u5927\u56FE", maxLength: 1, value: "2", ratio: 16 / 9 },
|
|
21
|
-
3: { alias: "\u5355\u56FE", maxLength: 1, value: "3", ratio: 4 / 3 },
|
|
22
|
-
4: { alias: "\u65E0\u56FE", maxLength: 0, value: "4", ratio: 1 },
|
|
23
|
-
5: { alias: "\u7AD6\u56FE", maxLength: 1, value: "5", ratio: 3 / 4 },
|
|
24
|
-
7: { alias: "\u7A84\u56FE", maxLength: 1, value: "7", ratio: 4 / 1 }
|
|
25
|
-
};
|
|
26
|
-
const contentList_relation_type_map = {
|
|
27
|
-
0: "\u624B\u52A8",
|
|
28
|
-
1: "\u94FE\u63A5",
|
|
29
|
-
2: "\u5F15\u7528",
|
|
30
|
-
3: "\u7EA7\u8054",
|
|
31
|
-
4: "\u5E94\u7528",
|
|
32
|
-
10: "\u81EA\u52A8"
|
|
33
|
-
};
|
|
34
|
-
const contentList_layout_map = {
|
|
35
|
-
blank: "\u6807\u51C6\u4FE1\u606F\u6D41",
|
|
36
|
-
svideo: "\u53CC\u5411\u5C0F\u89C6\u9891",
|
|
37
|
-
fly_card: "\u98DE\u5361\u9605\u8BFB",
|
|
38
|
-
video: "\u89C6\u9891\u98CE\u683C",
|
|
39
|
-
immersive_video: "\u6C89\u6D78\u5C0F\u89C6\u9891",
|
|
40
|
-
timeline: "\u65F6\u95F4\u94FE",
|
|
41
|
-
lbs: "LBS\u9891\u9053"
|
|
42
|
-
};
|
|
43
|
-
const kongo_source_map = {
|
|
44
|
-
app: "\u5E94\u7528",
|
|
45
|
-
url: "\u94FE\u63A5",
|
|
46
|
-
document: "\u7A3F\u4EF6",
|
|
47
|
-
category_list: "\u9891\u9053",
|
|
48
|
-
service: "\u670D\u52A1"
|
|
49
|
-
};
|
|
50
|
-
const contentList_list_type_map = {
|
|
51
|
-
1: "\u624B\u52A8\u5217\u8868",
|
|
52
|
-
2: "\u81EA\u52A8\u5217\u8868",
|
|
53
|
-
3: "\u63A8\u8350\u5217\u8868",
|
|
54
|
-
4: "\u9891\u9053",
|
|
55
|
-
5: "\u4E13\u9898",
|
|
56
|
-
6: "\u5FEB\u8BAF",
|
|
57
|
-
7: "\u7EC4\u4EF6"
|
|
58
|
-
};
|
|
59
|
-
const docStateMap = {
|
|
60
|
-
0: "\u8349\u7A3F",
|
|
61
|
-
10: "\u5BA1\u6838\u4E2D",
|
|
62
|
-
12: "\u5BA1\u6838\u4E2D",
|
|
63
|
-
13: "\u88AB\u9A73\u56DE",
|
|
64
|
-
14: "\u5DF2\u53D1\u5E03",
|
|
65
|
-
15: "\u5DF2\u53D1\u5E03",
|
|
66
|
-
16: "\u5DF2\u4E0B\u7EBF",
|
|
67
|
-
17: "\u5DF2\u5220\u9664",
|
|
68
|
-
19: "\u5B9A\u65F6\u53D1\u5E03",
|
|
69
|
-
22: "\u5DF2\u4E0B\u7EBF"
|
|
70
|
-
};
|
|
71
|
-
const approveFlowStatusMap = {
|
|
72
|
-
1: "\u5BA1\u6838\u4E2D",
|
|
73
|
-
2: "\u5DF2\u62D2\u7EDD",
|
|
74
|
-
3: "\u5DF2\u901A\u8FC7",
|
|
75
|
-
4: "\u5DF2\u64A4\u9500",
|
|
76
|
-
5: "\u5DF2\u901A\u8FC7",
|
|
77
|
-
6: "\u5DF2\u9A73\u56DE",
|
|
78
|
-
7: "\u91CD\u65B0\u53D1\u8D77",
|
|
79
|
-
8: "\u5DF2\u7ED3\u675F"
|
|
80
|
-
};
|
|
81
|
-
const compoColumnsMap = () => {
|
|
82
|
-
const obj = vue.ref({});
|
|
83
|
-
Object.keys(componentsColumns).forEach((key) => {
|
|
84
|
-
obj.value[key] = componentsColumns[key].label.replace("\u7EC4\u4EF6", "");
|
|
85
|
-
});
|
|
86
|
-
return obj;
|
|
87
|
-
};
|
|
88
|
-
const docThumbMap = () => {
|
|
89
|
-
const obj = vue.ref({});
|
|
90
|
-
Object.keys(docThumbObjMap).forEach((key) => {
|
|
91
|
-
obj[key] = docThumbObjMap[key].alias;
|
|
92
|
-
});
|
|
93
|
-
return obj;
|
|
94
|
-
};
|
|
95
|
-
const noCoverText = (item) => {
|
|
96
|
-
const text = item.alias || item.title;
|
|
97
|
-
return text.substring(0, 2);
|
|
98
|
-
};
|
|
99
|
-
const timeFormat = vue.computed(() => {
|
|
100
|
-
return (value) => {
|
|
101
|
-
if (value === 0)
|
|
102
|
-
return "--";
|
|
103
|
-
if (!value)
|
|
104
|
-
return "--";
|
|
105
|
-
if (typeof value === "number" && String(value).length === 10) {
|
|
106
|
-
value *= 1e3;
|
|
107
|
-
}
|
|
108
|
-
const date = new Date(value);
|
|
109
|
-
return `${date.getFullYear()}-${date.getMonth() + 1}-${date.getDate()} ${date.getHours() < 10 ? `0${date.getHours()}` : date.getHours()}:${date.getMinutes() < 10 ? `0${date.getMinutes()}` : date.getMinutes()}`;
|
|
110
|
-
};
|
|
111
|
-
});
|
|
112
|
-
const approvalItem = (item) => {
|
|
113
|
-
if (!(item.approval_status && item.approval_status.current_processes)) {
|
|
114
|
-
return null;
|
|
115
|
-
}
|
|
116
|
-
return item.approval_status;
|
|
117
|
-
};
|
|
118
|
-
const calcApprovingUser = (data) => {
|
|
119
|
-
if (data.current_processes[0] && data.current_processes[0].users && data.current_processes[0].users[0]) {
|
|
120
|
-
const ApvUser = data.current_processes[0].users[0];
|
|
121
|
-
let alias = ApvUser.user_alias || "";
|
|
122
|
-
if (ApvUser.uid === "__smart_robot") {
|
|
123
|
-
alias = "AI\u52A9\u624B";
|
|
124
|
-
}
|
|
125
|
-
if (data.current_processes[0].users.length > 1) {
|
|
126
|
-
alias += "\u7B49";
|
|
127
|
-
}
|
|
128
|
-
return alias;
|
|
129
|
-
}
|
|
130
|
-
return "";
|
|
131
|
-
};
|
|
132
|
-
const calcApprovingDependent = (data) => {
|
|
133
|
-
let alias = "";
|
|
134
|
-
if (data.current_processes && data.current_processes.length && data.current_processes[0] && (data.current_processes[0].users && data.current_processes[0].users.length > 1 || data.current_processes[0].uid && data.current_processes[0].uid.length > 1)) {
|
|
135
|
-
alias = !data.current_processes[0].dependent ? "\uFF08\u4F1A\u7B7E\uFF09" : "\uFF08\u6216\u7B7E\uFF09";
|
|
136
|
-
}
|
|
137
|
-
return alias;
|
|
138
|
-
};
|
|
139
|
-
exports.approvalItem = approvalItem;
|
|
140
|
-
exports.approveFlowStatusMap = approveFlowStatusMap;
|
|
141
|
-
exports.calcApprovingDependent = calcApprovingDependent;
|
|
142
|
-
exports.calcApprovingUser = calcApprovingUser;
|
|
143
|
-
exports.compoColumnsMap = compoColumnsMap;
|
|
144
|
-
exports.componentsColumns = componentsColumns;
|
|
145
|
-
exports.contentList_layout_map = contentList_layout_map;
|
|
146
|
-
exports.contentList_list_type_map = contentList_list_type_map;
|
|
147
|
-
exports.contentList_relation_type_map = contentList_relation_type_map;
|
|
148
|
-
exports.docStateMap = docStateMap;
|
|
149
|
-
exports.docThumbMap = docThumbMap;
|
|
150
|
-
exports.docThumbObjMap = docThumbObjMap;
|
|
151
|
-
exports.kongo_source_map = kongo_source_map;
|
|
152
|
-
exports.noCoverText = noCoverText;
|
|
153
|
-
exports.timeFormat = timeFormat;
|