@cmstops/pro-compo 0.1.26 → 0.1.29

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.
Files changed (97) hide show
  1. package/dist/index.css +100 -65
  2. package/dist/index.min.css +1 -1
  3. package/es/contentDetailList/components/Content/DocItem/index.js +1 -1
  4. package/es/contentDetailList/components/Content/DocMpItem/index.js +1 -1
  5. package/es/contentDetailList/components/Content/KongoNavItem/index.js +3 -3
  6. package/es/contentDetailList/components/Content/MaccountItem/index.js +30 -23
  7. package/es/contentDetailList/style/ComoItem.less +4 -0
  8. package/es/contentDetailList/style/ContentListItem.less +4 -0
  9. package/es/contentDetailList/style/DocItem.less +4 -6
  10. package/es/contentDetailList/style/DocMpItem.less +4 -6
  11. package/es/contentDetailList/style/KongoNavItem.less +4 -0
  12. package/es/contentDetailList/style/LiveItem.less +4 -0
  13. package/es/contentDetailList/style/MaccountItem.less +4 -0
  14. package/es/contentDetailList/style/index.css +28 -58
  15. package/es/contentDetailList/style/index.less +0 -1
  16. package/es/contentModal/component.js +165 -5
  17. package/es/contentModal/components/CompoList/index.js +13 -6
  18. package/es/contentModal/components/ContentList/MediaFilter/index.js +112 -0
  19. package/es/contentModal/components/ContentList/index.d.ts +0 -0
  20. package/es/contentModal/components/ContentList/index.js +269 -0
  21. package/es/contentModal/components/LiveList/MediaFilter/index.d.ts +0 -0
  22. package/es/contentModal/components/LiveList/MediaFilter/index.js +74 -0
  23. package/es/contentModal/components/LiveList/index.d.ts +0 -0
  24. package/es/contentModal/components/LiveList/index.js +227 -0
  25. package/es/contentModal/components/MpAccountList/MpAccountFilter/index.d.ts +0 -0
  26. package/es/contentModal/components/MpAccountList/MpAccountFilter/index.js +62 -0
  27. package/es/contentModal/components/MpAccountList/index.d.ts +0 -0
  28. package/es/contentModal/components/MpAccountList/index.js +222 -0
  29. package/es/contentModal/components/MpContentList/MediaFilter/index.d.ts +0 -0
  30. package/es/contentModal/components/MpContentList/MediaFilter/index.js +85 -0
  31. package/es/contentModal/components/MpContentList/index.d.ts +0 -0
  32. package/es/contentModal/components/MpContentList/index.js +214 -0
  33. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +176 -12
  34. package/es/contentModal/components/ViewAllColumn/index.js +33 -14
  35. package/es/contentModal/images/user.js +2 -0
  36. package/es/contentModal/script/api.d.ts +3 -0
  37. package/es/contentModal/script/api.js +22 -1
  38. package/es/contentModal/style/ViewAllColumn.less +51 -31
  39. package/es/contentModal/style/index.css +21 -7
  40. package/es/dataTags/component.d.ts +0 -0
  41. package/es/{contentDetailList/components/DocTags/index.js → dataTags/component.js} +10 -8
  42. package/es/dataTags/index.d.ts +2 -0
  43. package/es/dataTags/index.js +7 -0
  44. package/es/dataTags/style/css.js +1 -0
  45. package/es/dataTags/style/index.css +51 -0
  46. package/es/dataTags/style/index.d.ts +1 -0
  47. package/es/dataTags/style/index.js +1 -0
  48. package/{lib/contentDetailList/style/DocTags.less → es/dataTags/style/index.less} +12 -8
  49. package/es/emptyData/component.js +5 -5
  50. package/es/index.css +100 -65
  51. package/es/index.d.ts +1 -0
  52. package/es/index.js +1 -0
  53. package/es/index.less +1 -0
  54. package/es/utils/typeMap.d.ts +6 -15
  55. package/es/utils/typeMap.js +21 -1
  56. package/lib/contentDetailList/components/Content/DocItem/index.js +4 -4
  57. package/lib/contentDetailList/components/Content/DocMpItem/index.js +2 -2
  58. package/lib/contentDetailList/components/Content/KongoNavItem/index.js +4 -4
  59. package/lib/contentDetailList/components/Content/MaccountItem/index.js +30 -23
  60. package/lib/contentDetailList/style/ComoItem.less +4 -0
  61. package/lib/contentDetailList/style/ContentListItem.less +4 -0
  62. package/lib/contentDetailList/style/DocItem.less +4 -6
  63. package/lib/contentDetailList/style/DocMpItem.less +4 -6
  64. package/lib/contentDetailList/style/KongoNavItem.less +4 -0
  65. package/lib/contentDetailList/style/LiveItem.less +4 -0
  66. package/lib/contentDetailList/style/MaccountItem.less +4 -0
  67. package/lib/contentDetailList/style/index.css +28 -58
  68. package/lib/contentDetailList/style/index.less +0 -1
  69. package/lib/contentModal/component.js +165 -5
  70. package/lib/contentModal/components/CompoList/index.js +15 -8
  71. package/lib/contentModal/components/ContentList/MediaFilter/index.js +113 -0
  72. package/lib/contentModal/components/ContentList/index.js +270 -0
  73. package/lib/contentModal/components/LiveList/MediaFilter/index.js +75 -0
  74. package/lib/contentModal/components/LiveList/index.js +228 -0
  75. package/lib/contentModal/components/MpAccountList/MpAccountFilter/index.js +63 -0
  76. package/lib/contentModal/components/MpAccountList/index.js +223 -0
  77. package/lib/contentModal/components/MpContentList/MediaFilter/index.js +86 -0
  78. package/lib/contentModal/components/MpContentList/index.js +215 -0
  79. package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +175 -11
  80. package/lib/contentModal/components/ViewAllColumn/index.js +33 -14
  81. package/lib/contentModal/images/user.js +3 -0
  82. package/lib/contentModal/script/api.js +24 -0
  83. package/lib/contentModal/style/ViewAllColumn.less +51 -31
  84. package/lib/contentModal/style/index.css +21 -7
  85. package/lib/{contentDetailList/components/DocTags/index.js → dataTags/component.js} +10 -8
  86. package/lib/dataTags/index.js +8 -0
  87. package/lib/dataTags/style/css.js +2 -0
  88. package/lib/dataTags/style/index.css +51 -0
  89. package/lib/dataTags/style/index.js +2 -0
  90. package/{es/contentDetailList/style/DocTags.less → lib/dataTags/style/index.less} +12 -8
  91. package/lib/emptyData/component.js +4 -4
  92. package/lib/index.css +100 -65
  93. package/lib/index.js +2 -0
  94. package/lib/index.less +1 -0
  95. package/lib/utils/typeMap.js +22 -0
  96. package/package.json +1 -1
  97. /package/es/{contentDetailList/components/DocTags → contentModal/components/ContentList/MediaFilter}/index.d.ts +0 -0
@@ -59,6 +59,10 @@
59
59
  height: 100%;
60
60
  border-radius: 4px;
61
61
  }
62
+ .medialist-component-item-view .cover-view .image img {
63
+ width: 100%;
64
+ height: 100%;
65
+ }
62
66
  .medialist-component-item-view .cover-view .no-img {
63
67
  display: flex;
64
68
  align-items: center;
@@ -140,6 +144,10 @@
140
144
  height: 100%;
141
145
  border-radius: 4px;
142
146
  }
147
+ .medialist-component-item-view .cover-view .image img {
148
+ width: 100%;
149
+ height: 100%;
150
+ }
143
151
  .medialist-component-item-view .cover-view .no-img {
144
152
  display: flex;
145
153
  align-items: center;
@@ -246,6 +254,10 @@
246
254
  height: 100%;
247
255
  border-radius: 4px;
248
256
  }
257
+ .medialist-kongo-item-view .cover-view .image img {
258
+ width: 100%;
259
+ height: 100%;
260
+ }
249
261
  .medialist-kongo-item-view .cover-view .no-img {
250
262
  display: flex;
251
263
  align-items: center;
@@ -308,54 +320,6 @@
308
320
  .medialist-kongo-item-view .info-view .abttrite-v .right {
309
321
  margin-right: 20px;
310
322
  }
311
- .no-margin span {
312
- margin-right: 0 !important;
313
- }
314
- .doc-tags-container .arco-tag {
315
- font-weight: 600;
316
- border: none;
317
- margin-right: 5px;
318
- }
319
- .doc-tags-container .yuanchuang {
320
- color: #4886ff;
321
- background: #edf3ff;
322
- }
323
- .doc-tags-container .star {
324
- color: #4a8457;
325
- background: #e6f8ea;
326
- }
327
- .doc-tags-container .waring {
328
- color: #ff7d00;
329
- background: #fff2e6;
330
- }
331
- .doc-tags-container .thumb {
332
- color: #86909c;
333
- background: #f3f4f5;
334
- }
335
- .doc-tags-container .disabled {
336
- color: #bababa !important;
337
- background: #ecebeb !important;
338
- }
339
- .doc-tags-thumb-popver {
340
- min-width: unset;
341
- padding: 0;
342
- overflow: hidden;
343
- line-height: unset;
344
- border: none;
345
- border-radius: 8px;
346
- }
347
- .doc-tags-thumb-popver .popper__arrow {
348
- display: none;
349
- }
350
- .doc-tags-thumb-popver .doc-tags-thumb-ul {
351
- height: 110px;
352
- }
353
- .doc-tags-thumb-popver .doc-tags-thumb-ul img {
354
- height: 100%;
355
- }
356
- .doc-tags-thumb-popver .doc-tags-thumb-ul img + img {
357
- margin-left: 2px;
358
- }
359
323
  .medialist-ilive-item-view {
360
324
  display: flex;
361
325
  padding: 10px;
@@ -377,6 +341,10 @@
377
341
  height: 100%;
378
342
  border-radius: 4px;
379
343
  }
344
+ .medialist-ilive-item-view .cover-view .image img {
345
+ width: 100%;
346
+ height: 100%;
347
+ }
380
348
  .medialist-ilive-item-view .cover-view .no-img {
381
349
  display: flex;
382
350
  align-items: center;
@@ -467,6 +435,10 @@
467
435
  height: 100%;
468
436
  border-radius: 4px;
469
437
  }
438
+ .medialist-account-item-view .cover-view .image img {
439
+ width: 100%;
440
+ height: 100%;
441
+ }
470
442
  .medialist-account-item-view .cover-view .no-img {
471
443
  display: flex;
472
444
  align-items: center;
@@ -559,16 +531,15 @@
559
531
  height: 100%;
560
532
  border-radius: 4px;
561
533
  }
534
+ .medialist-doc-item-view .cover-view .image img {
535
+ width: 100%;
536
+ height: 100%;
537
+ }
562
538
  .medialist-doc-item-view .cover-view .batch-select {
563
539
  position: absolute;
564
540
  top: 3px;
565
541
  left: 5px;
566
542
  }
567
- .medialist-doc-item-view .cover-view .arco-image-img {
568
- width: 100%;
569
- height: 100%;
570
- border-radius: 4px;
571
- }
572
543
  .medialist-doc-item-view .cover-view .no-img {
573
544
  display: flex;
574
545
  align-items: center;
@@ -677,16 +648,15 @@
677
648
  height: 100%;
678
649
  border-radius: 4px;
679
650
  }
651
+ .medialist-mpdoc-item-view .cover-view .image img {
652
+ width: 100%;
653
+ height: 100%;
654
+ }
680
655
  .medialist-mpdoc-item-view .cover-view .batch-select {
681
656
  position: absolute;
682
657
  top: 3px;
683
658
  left: 5px;
684
659
  }
685
- .medialist-mpdoc-item-view .cover-view .arco-image-img {
686
- width: 100%;
687
- height: 100%;
688
- border-radius: 4px;
689
- }
690
660
  .medialist-mpdoc-item-view .cover-view .no-img {
691
661
  display: flex;
692
662
  align-items: center;
@@ -2,7 +2,6 @@
2
2
  @import './ComoItem.less';
3
3
  @import './ContentListItem.less';
4
4
  @import './KongoNavItem.less';
5
- @import './DocTags.less';
6
5
  @import './LiveItem.less';
7
6
  @import './MaccountItem.less';
8
7
  @import './Doc.less';
@@ -2,7 +2,11 @@
2
2
  var vue = require("vue");
3
3
  var webVue = require("@arco-design/web-vue");
4
4
  var index = require("./components/ViewAllColumn/index.js");
5
- var index$2 = require("./components/CompoList/index.js");
5
+ var index$3 = require("./components/CompoList/index.js");
6
+ var index$5 = require("./components/MpAccountList/index.js");
7
+ var index$2 = require("./components/ContentList/index.js");
8
+ var index$4 = require("./components/LiveList/index.js");
9
+ var index$6 = require("./components/MpContentList/index.js");
6
10
  var index$1 = require("./components/storeBox/index.js");
7
11
  require("../typeIcons/style/index.js");
8
12
  var config = require("../config.js");
@@ -59,6 +63,9 @@ const _sfc_main = vue.defineComponent({
59
63
  const HandleClose = () => {
60
64
  selectedData.value = [];
61
65
  };
66
+ const tabsChange = () => {
67
+ selectedData.value = [];
68
+ };
62
69
  vue.onMounted(() => {
63
70
  if (props.userStore) {
64
71
  userInfo.value = { BASE_API, ...props.userStore };
@@ -87,7 +94,8 @@ const _sfc_main = vue.defineComponent({
87
94
  default: vue.withCtx(() => [
88
95
  vue.createVNode(vue.unref(webVue.Tabs), {
89
96
  class: "content-tabs",
90
- justify: ""
97
+ justify: "",
98
+ onTabClick: tabsChange
91
99
  }, {
92
100
  default: vue.withCtx(() => [
93
101
  typeDataController.value.addDoc ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.TabPane), {
@@ -128,9 +136,9 @@ const _sfc_main = vue.defineComponent({
128
136
  ]),
129
137
  _: 1
130
138
  })) : vue.createCommentVNode("v-if", true),
131
- typeDataController.value.addCompo ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.TabPane), {
139
+ typeDataController.value.addContentList ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.TabPane), {
132
140
  key: "2",
133
- title: "\u7EC4\u4EF6"
141
+ title: "\u9891\u9053"
134
142
  }, {
135
143
  default: vue.withCtx(() => [
136
144
  vue.unref(userInfo) && vue.unref(userInfo).repository_id ? (vue.openBlock(), vue.createBlock(index$2, {
@@ -139,8 +147,8 @@ const _sfc_main = vue.defineComponent({
139
147
  "default-selected-data": selectedData.value,
140
148
  "outside-select-data": _ctx.outsideSelectData || [],
141
149
  "type-data": typeDataController.value,
142
- columns: typeDataController.value.compoType,
143
150
  "user-info": vue.unref(userInfo),
151
+ type: typeDataController.value.contentListType,
144
152
  onChange: selectedDataChangeHandle
145
153
  }, {
146
154
  store: vue.withCtx(() => [
@@ -162,6 +170,158 @@ const _sfc_main = vue.defineComponent({
162
170
  }, 8, ["disabled"])
163
171
  ]),
164
172
  _: 1
173
+ }, 8, ["max-select", "default-selected-data", "outside-select-data", "type-data", "user-info", "type"])) : vue.createCommentVNode("v-if", true)
174
+ ]),
175
+ _: 1
176
+ })) : vue.createCommentVNode("v-if", true),
177
+ typeDataController.value.addCompo ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.TabPane), {
178
+ key: "5",
179
+ title: "\u7EC4\u4EF6"
180
+ }, {
181
+ default: vue.withCtx(() => [
182
+ vue.unref(userInfo) && vue.unref(userInfo).repository_id ? (vue.openBlock(), vue.createBlock(index$3, {
183
+ key: 0,
184
+ "max-select": _ctx.maxSelect,
185
+ "default-selected-data": selectedData.value,
186
+ "outside-select-data": _ctx.outsideSelectData || [],
187
+ "type-data": typeDataController.value,
188
+ columns: typeDataController.value.compoType,
189
+ "user-info": vue.unref(userInfo),
190
+ onChange: selectedDataChangeHandle
191
+ }, {
192
+ store: vue.withCtx(() => [
193
+ vue.createVNode(index$1, {
194
+ selectData: selectedData.value,
195
+ "onUpdate:selectData": _cache[2] || (_cache[2] = ($event) => selectedData.value = $event)
196
+ }, null, 8, ["selectData"])
197
+ ]),
198
+ options: vue.withCtx(() => [
199
+ vue.createVNode(vue.unref(webVue.Button), {
200
+ type: "primary",
201
+ disabled: !hasSelected.value,
202
+ onClick: comfirm
203
+ }, {
204
+ default: vue.withCtx(() => [
205
+ vue.createTextVNode(" \u6DFB\u52A0 ")
206
+ ]),
207
+ _: 1
208
+ }, 8, ["disabled"])
209
+ ]),
210
+ _: 1
211
+ }, 8, ["max-select", "default-selected-data", "outside-select-data", "type-data", "columns", "user-info"])) : vue.createCommentVNode("v-if", true)
212
+ ]),
213
+ _: 1
214
+ })) : vue.createCommentVNode("v-if", true),
215
+ typeDataController.value.addCompo ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.TabPane), {
216
+ key: "6",
217
+ title: "\u4E92\u52A8\u76F4\u64AD"
218
+ }, {
219
+ default: vue.withCtx(() => [
220
+ vue.unref(userInfo) && vue.unref(userInfo).repository_id ? (vue.openBlock(), vue.createBlock(index$4, {
221
+ key: 0,
222
+ "max-select": _ctx.maxSelect,
223
+ "default-selected-data": selectedData.value,
224
+ "outside-select-data": _ctx.outsideSelectData || [],
225
+ "type-data": typeDataController.value,
226
+ columns: typeDataController.value.compoType,
227
+ "user-info": vue.unref(userInfo),
228
+ onChange: selectedDataChangeHandle
229
+ }, {
230
+ store: vue.withCtx(() => [
231
+ vue.createVNode(index$1, {
232
+ selectData: selectedData.value,
233
+ "onUpdate:selectData": _cache[3] || (_cache[3] = ($event) => selectedData.value = $event)
234
+ }, null, 8, ["selectData"])
235
+ ]),
236
+ options: vue.withCtx(() => [
237
+ vue.createVNode(vue.unref(webVue.Button), {
238
+ type: "primary",
239
+ disabled: !hasSelected.value,
240
+ onClick: comfirm
241
+ }, {
242
+ default: vue.withCtx(() => [
243
+ vue.createTextVNode(" \u6DFB\u52A0 ")
244
+ ]),
245
+ _: 1
246
+ }, 8, ["disabled"])
247
+ ]),
248
+ _: 1
249
+ }, 8, ["max-select", "default-selected-data", "outside-select-data", "type-data", "columns", "user-info"])) : vue.createCommentVNode("v-if", true)
250
+ ]),
251
+ _: 1
252
+ })) : vue.createCommentVNode("v-if", true),
253
+ typeDataController.value.addMpAccount ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.TabPane), {
254
+ key: "7",
255
+ title: "\u516C\u4F17\u53F7"
256
+ }, {
257
+ default: vue.withCtx(() => [
258
+ vue.unref(userInfo) && vue.unref(userInfo).repository_id ? (vue.openBlock(), vue.createBlock(index$5, {
259
+ key: 0,
260
+ "max-select": _ctx.maxSelect,
261
+ "default-selected-data": selectedData.value,
262
+ "outside-select-data": _ctx.outsideSelectData || [],
263
+ "type-data": typeDataController.value,
264
+ columns: typeDataController.value.MpAccountType,
265
+ "user-info": vue.unref(userInfo),
266
+ onChange: selectedDataChangeHandle
267
+ }, {
268
+ store: vue.withCtx(() => [
269
+ vue.createVNode(index$1, {
270
+ selectData: selectedData.value,
271
+ "onUpdate:selectData": _cache[4] || (_cache[4] = ($event) => selectedData.value = $event)
272
+ }, null, 8, ["selectData"])
273
+ ]),
274
+ options: vue.withCtx(() => [
275
+ vue.createVNode(vue.unref(webVue.Button), {
276
+ type: "primary",
277
+ disabled: !hasSelected.value,
278
+ onClick: comfirm
279
+ }, {
280
+ default: vue.withCtx(() => [
281
+ vue.createTextVNode(" \u6DFB\u52A0 ")
282
+ ]),
283
+ _: 1
284
+ }, 8, ["disabled"])
285
+ ]),
286
+ _: 1
287
+ }, 8, ["max-select", "default-selected-data", "outside-select-data", "type-data", "columns", "user-info"])) : vue.createCommentVNode("v-if", true)
288
+ ]),
289
+ _: 1
290
+ })) : vue.createCommentVNode("v-if", true),
291
+ typeDataController.value.addMpContent ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.TabPane), {
292
+ key: "8",
293
+ title: "\u516C\u4F17\u53F7\u5185\u5BB9"
294
+ }, {
295
+ default: vue.withCtx(() => [
296
+ vue.unref(userInfo) && vue.unref(userInfo).repository_id ? (vue.openBlock(), vue.createBlock(index$6, {
297
+ key: 0,
298
+ "max-select": _ctx.maxSelect,
299
+ "default-selected-data": selectedData.value,
300
+ "outside-select-data": _ctx.outsideSelectData || [],
301
+ "type-data": typeDataController.value,
302
+ columns: typeDataController.value.MpAccountType,
303
+ "user-info": vue.unref(userInfo),
304
+ onChange: selectedDataChangeHandle
305
+ }, {
306
+ store: vue.withCtx(() => [
307
+ vue.createVNode(index$1, {
308
+ selectData: selectedData.value,
309
+ "onUpdate:selectData": _cache[5] || (_cache[5] = ($event) => selectedData.value = $event)
310
+ }, null, 8, ["selectData"])
311
+ ]),
312
+ options: vue.withCtx(() => [
313
+ vue.createVNode(vue.unref(webVue.Button), {
314
+ type: "primary",
315
+ disabled: !hasSelected.value,
316
+ onClick: comfirm
317
+ }, {
318
+ default: vue.withCtx(() => [
319
+ vue.createTextVNode(" \u6DFB\u52A0 ")
320
+ ]),
321
+ _: 1
322
+ }, 8, ["disabled"])
323
+ ]),
324
+ _: 1
165
325
  }, 8, ["max-select", "default-selected-data", "outside-select-data", "type-data", "columns", "user-info"])) : vue.createCommentVNode("v-if", true)
166
326
  ]),
167
327
  _: 1
@@ -2,11 +2,11 @@
2
2
  var vue = require("vue");
3
3
  var webVue = require("@arco-design/web-vue");
4
4
  var component = require("../../../typeIcons/component.js");
5
- var index$1 = require("./CompoFilter/index.js");
5
+ var index = require("./CompoFilter/index.js");
6
6
  var batch = require("../../../hooks/batch.js");
7
7
  var api = require("../../script/api.js");
8
8
  var typeMap = require("../../../utils/typeMap.js");
9
- var index = require("../../../utils/index.js");
9
+ var index$1 = require("../../../utils/index.js");
10
10
  const _hoisted_1 = { class: "view-all-column-container" };
11
11
  const _hoisted_2 = { class: "content-table-view" };
12
12
  const _hoisted_3 = { class: "title-span" };
@@ -27,7 +27,13 @@ const _sfc_main = vue.defineComponent({
27
27
  emits: ["change"],
28
28
  setup(__props, { emit }) {
29
29
  const props = __props;
30
- const columnIdMap = typeMap.compoColumnsMap();
30
+ const columnIdMap = (compo) => {
31
+ if ((compo == null ? void 0 : compo.term_switch) === 1) {
32
+ return "PC\u6A21\u5757";
33
+ }
34
+ const _type = typeMap.compoColumnsMap();
35
+ return _type[compo.columns];
36
+ };
31
37
  const _maxSelect = props.maxSelect || 100;
32
38
  const selectedData = vue.ref([]);
33
39
  const tempSelectedData = vue.computed(() => {
@@ -132,7 +138,8 @@ const _sfc_main = vue.defineComponent({
132
138
  let params = {
133
139
  rid: props.userInfo.repository_id,
134
140
  state: 1,
135
- group_type: 2
141
+ group_type: 2,
142
+ terminal: "pc"
136
143
  };
137
144
  if (filter.value) {
138
145
  params = { ...params, ...filter.value };
@@ -149,7 +156,7 @@ const _sfc_main = vue.defineComponent({
149
156
  v.channel_type = 1;
150
157
  v.target_id = v.id;
151
158
  v.target_type = 6;
152
- v.pub_time = index.dateYYYYDDMMHHmm(v.publish_at);
159
+ v.pub_time = v.publish_at;
153
160
  v.update_time = v.updated_at;
154
161
  v.pub_user_alias = v.publish_user_alias;
155
162
  v.creator_alias = v.creator_alias || v.author_alias;
@@ -187,7 +194,7 @@ const _sfc_main = vue.defineComponent({
187
194
  });
188
195
  return (_ctx, _cache) => {
189
196
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
190
- vue.createVNode(index$1, {
197
+ vue.createVNode(index, {
191
198
  group_id: group_id.value,
192
199
  "onUpdate:group_id": _cache[0] || (_cache[0] = ($event) => group_id.value = $event),
193
200
  groups: groupData.value,
@@ -225,10 +232,10 @@ const _sfc_main = vue.defineComponent({
225
232
  ])
226
233
  ]),
227
234
  type: vue.withCtx(({ record }) => [
228
- vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(columnIdMap)[record.columns]), 1)
235
+ vue.createElementVNode("span", null, vue.toDisplayString(columnIdMap(record)), 1)
229
236
  ]),
230
237
  pub_time: vue.withCtx(({ record }) => [
231
- vue.createElementVNode("span", null, vue.toDisplayString(record.pub_time), 1)
238
+ vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(index$1.timeFormat)(record.pub_time)), 1)
232
239
  ]),
233
240
  _: 1
234
241
  }, 8, ["data", "loading", "onCellMouseEnter", "onCellMouseLeave"])
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+ var vue = require("vue");
3
+ var webVue = require("@arco-design/web-vue");
4
+ var typeMap = require("../../../../utils/typeMap.js");
5
+ const _hoisted_1 = { class: "media-filter-container" };
6
+ const _sfc_main = vue.defineComponent({
7
+ ...{ name: "MediaFilter" },
8
+ __name: "index",
9
+ props: {
10
+ group_id: {},
11
+ groups: {},
12
+ type: {}
13
+ },
14
+ emits: ["update:group_id", "search"],
15
+ setup(__props, { emit }) {
16
+ const props = __props;
17
+ const filter = vue.ref({ keyword: "", relation_type: "" });
18
+ const groupId = vue.computed({
19
+ get() {
20
+ return props.group_id;
21
+ },
22
+ set(val) {
23
+ emit("update:group_id", val);
24
+ }
25
+ });
26
+ const typeOptions = vue.computed(() => {
27
+ const arr = Object.keys(typeMap.contentList_relation_type_map).map((key) => {
28
+ return {
29
+ label: typeMap.contentList_relation_type_map[key],
30
+ value: key
31
+ };
32
+ });
33
+ return [{ value: "", label: "\u5168\u90E8\u7C7B\u578B" }, ...arr].filter((item) => {
34
+ if (props.type === "all")
35
+ return true;
36
+ const arr2 = props.type.split(",");
37
+ filter.value.relation_type = props.type;
38
+ if (item.key === "all") {
39
+ item.value = props.type;
40
+ return true;
41
+ }
42
+ return arr2.includes(item.value);
43
+ });
44
+ });
45
+ const groupOptions = vue.computed(() => {
46
+ const arr = props.groups.map((item) => {
47
+ return {
48
+ label: item.alias || item.title,
49
+ value: item.id
50
+ };
51
+ });
52
+ return [{ value: "all", label: "\u5168\u90E8\u9891\u9053" }, ...arr];
53
+ });
54
+ const handleSearch = () => {
55
+ emit("search", filter.value);
56
+ };
57
+ vue.watch(filter.value, () => {
58
+ handleSearch();
59
+ });
60
+ return (_ctx, _cache) => {
61
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
62
+ vue.createVNode(vue.unref(webVue.Space), { size: "large" }, {
63
+ default: vue.withCtx(() => [
64
+ vue.createVNode(vue.unref(webVue.Select), {
65
+ modelValue: groupId.value,
66
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => groupId.value = $event),
67
+ class: "filter-item",
68
+ placeholder: "\u6A21\u5757"
69
+ }, {
70
+ default: vue.withCtx(() => [
71
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(groupOptions.value, (item) => {
72
+ return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
73
+ key: item.value,
74
+ label: item.label,
75
+ value: item.value
76
+ }, null, 8, ["label", "value"]);
77
+ }), 128))
78
+ ]),
79
+ _: 1
80
+ }, 8, ["modelValue"]),
81
+ vue.createVNode(vue.unref(webVue.Select), {
82
+ modelValue: filter.value.relation_type,
83
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => filter.value.relation_type = $event),
84
+ class: "filter-item",
85
+ placeholder: "\u7C7B\u578B"
86
+ }, {
87
+ default: vue.withCtx(() => [
88
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(typeOptions.value, (item) => {
89
+ return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
90
+ key: item.value,
91
+ label: item.label,
92
+ value: item.value
93
+ }, null, 8, ["label", "value"]);
94
+ }), 128))
95
+ ]),
96
+ _: 1
97
+ }, 8, ["modelValue"]),
98
+ vue.createVNode(vue.unref(webVue.Input), {
99
+ modelValue: filter.value.keyword,
100
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => filter.value.keyword = $event),
101
+ class: "filter-item",
102
+ "allow-clear": "",
103
+ placeholder: "\u8F93\u5165\u5185\u5BB9\u6807\u9898",
104
+ onPressEnter: handleSearch
105
+ }, null, 8, ["modelValue"])
106
+ ]),
107
+ _: 1
108
+ })
109
+ ]);
110
+ };
111
+ }
112
+ });
113
+ module.exports = _sfc_main;