@cmstops/pro-compo 3.9.1-harbin.0 → 3.9.1-harbin.2

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 (249) hide show
  1. package/README.md +107 -107
  2. package/dist/gif.worker.js +3 -3
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js.map +1 -1
  5. package/es/appCenter/style/index.less +120 -120
  6. package/es/baseFilter/components/FilterGroup.js +1 -1
  7. package/es/baseFilter/style/filterGroup.less +53 -53
  8. package/es/baseFilter/style/index.less +45 -45
  9. package/es/colorPalette/style/index.less +44 -44
  10. package/es/contentDetailList/components/Content/CompoItem/index.js +1 -1
  11. package/es/contentDetailList/components/Content/ContentListItem/index.js +1 -1
  12. package/es/contentDetailList/components/Content/DocItem/index.js +1 -1
  13. package/es/contentDetailList/components/Content/DocMpItem/index.js +1 -1
  14. package/es/contentDetailList/components/Content/GroupPieceItem/index.js +1 -1
  15. package/es/contentDetailList/components/Content/KongoNavItem/index.js +1 -1
  16. package/es/contentDetailList/components/Content/LiveItem/index.js +1 -1
  17. package/es/contentDetailList/components/Content/MaccountItem/index.js +1 -1
  18. package/es/contentDetailList/components/Content/courseItem/index.js +1 -1
  19. package/es/contentDetailList/components/Content/funhdItem/index.js +1 -1
  20. package/es/contentDetailList/components/CustomWrp/CustomItem.js +1 -1
  21. package/es/contentDetailList/components/ShowQRCode/QrcodeView/index.js +2 -2
  22. package/es/contentDetailList/style/ComoItem.less +99 -99
  23. package/es/contentDetailList/style/Content.less +49 -49
  24. package/es/contentDetailList/style/ContentListItem.less +132 -132
  25. package/es/contentDetailList/style/CustomItem.less +25 -25
  26. package/es/contentDetailList/style/Doc.less +3 -3
  27. package/es/contentDetailList/style/DocItem.less +152 -152
  28. package/es/contentDetailList/style/DocMpItem.less +135 -135
  29. package/es/contentDetailList/style/GroupPieceItem.less +108 -108
  30. package/es/contentDetailList/style/KongoNavItem.less +104 -104
  31. package/es/contentDetailList/style/LiveItem.less +108 -108
  32. package/es/contentDetailList/style/MaccountItem.less +111 -111
  33. package/es/contentDetailList/style/MatrixItem.less +214 -214
  34. package/es/contentDetailList/style/QrCodeView.less +93 -93
  35. package/es/contentDetailList/style/ShowQRCode.less +3 -3
  36. package/es/contentDetailList/style/courseItem.less +108 -108
  37. package/es/contentDetailList/style/funhdItem.less +108 -108
  38. package/es/contentDetailList/style/index.less +30 -30
  39. package/es/contentModal/component.js +8 -8
  40. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +177 -6
  41. package/es/contentModal/components/ViewAllColumn/columnTree/index.js +151 -0
  42. package/es/contentModal/components/storeBox/index.js +2 -2
  43. package/es/contentModal/script/api.js +7 -1
  44. package/es/contentModal/style/MediaFilter.less +47 -47
  45. package/es/contentModal/style/ViewAllColumn.less +68 -68
  46. package/es/contentModal/style/columnTree.less +32 -32
  47. package/es/contentModal/style/index.less +23 -23
  48. package/es/contentModal/style/storeBox.less +55 -55
  49. package/es/dataTags/component.js +5 -5
  50. package/es/dataTags/style/index.less +73 -73
  51. package/es/docHistory/component.js +1 -1
  52. package/es/docHistory/style/docDiffPanel.less +43 -43
  53. package/es/docHistory/style/docHistoryList.less +58 -58
  54. package/es/docHistory/style/index.less +37 -37
  55. package/es/docPreview/component.js +5 -5
  56. package/es/docPreview/style/index.less +140 -140
  57. package/es/docPreview/style/previewIframe.less +36 -36
  58. package/es/editMetaInfo/components/metaInfoForm.js +2 -2
  59. package/es/editMetaInfo/style/index.less +60 -60
  60. package/es/emptyData/style/index.less +34 -34
  61. package/es/gif.worker.js +3 -3
  62. package/es/imageCrop/component.js +2 -2
  63. package/es/imageCrop/style/cropper.less +291 -291
  64. package/es/imageCrop/style/imageCropper.less +133 -133
  65. package/es/imageCrop/style/index.less +2 -2
  66. package/es/importData/component.js +4 -4
  67. package/es/importData/style/index.less +48 -48
  68. package/es/index.less +30 -30
  69. package/es/mediaFilter/components/DocFilter.js +1 -1
  70. package/es/mediaFilter/components/FilterGroup.js +1 -1
  71. package/es/mediaFilter/style/index.less +115 -115
  72. package/es/mediaView/style/index.less +71 -71
  73. package/es/messageBox/component.js +1 -1
  74. package/es/messageBox/list.js +1 -1
  75. package/es/messageBox/style/index.less +76 -76
  76. package/es/previousVersion/style/index.less +209 -209
  77. package/es/resourceGridList/component.js +1 -1
  78. package/es/resourceGridList/style/FileTypeThumb.less +96 -96
  79. package/es/resourceGridList/style/index.less +233 -233
  80. package/es/resourceModal/component.js +1 -1
  81. package/es/resourceModal/components/MediaSelection/MainContent/index.js +1 -1
  82. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +1 -1
  83. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +1 -1
  84. package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.js +1 -1
  85. package/es/resourceModal/style/DocAiMediaSelected.less +55 -55
  86. package/es/resourceModal/style/FileTypeThumb.less +205 -205
  87. package/es/resourceModal/style/MainContent.less +222 -222
  88. package/es/resourceModal/style/MediaPreviewer.less +71 -71
  89. package/es/resourceModal/style/MediaSelection.less +69 -69
  90. package/es/resourceModal/style/SystemResourceSelected.less +154 -154
  91. package/es/resourceModal/style/ToolbarSearch.less +53 -53
  92. package/es/resourceModal/style/index.less +18 -18
  93. package/es/selectAddTo/component.js +1 -1
  94. package/es/selectAddTo/components/SelectAddToView.js +3 -3
  95. package/es/selectAddTo/components/ViewAllColumn/index.js +1 -1
  96. package/es/selectAddTo/style/index.less +3 -3
  97. package/es/selectAvatarList/style/index.less +4 -4
  98. package/es/selectGategory/component.js +1 -1
  99. package/es/selectGategory/style/ColumnSelection.less +190 -190
  100. package/es/selectGategory/style/index.less +40 -40
  101. package/es/selectResourceModal/component.js +5 -5
  102. package/es/selectResourceModal/components/List/ListLocal/Upload.js +2 -2
  103. package/es/selectResourceModal/components/List/ListLocal/index.js +1 -1
  104. package/es/selectResourceModal/components/List/ListNormal/Filter.js +5 -5
  105. package/es/selectResourceModal/components/List/ListSystem/Filter.js +1 -1
  106. package/es/selectResourceModal/components/List/ListSystem/SubList.js +1 -1
  107. package/es/selectResourceModal/style/index.less +55 -55
  108. package/es/selectResourceModal/style/list.less +203 -203
  109. package/es/selectResourceModal/style/listCardWrapper.less +97 -97
  110. package/es/selectResourceModal/style/listSelected.less +94 -94
  111. package/es/selectThumb/component.js +8 -8
  112. package/es/selectThumb/style/card.less +95 -95
  113. package/es/selectThumb/style/colorPalette.less +30 -30
  114. package/es/selectThumb/style/index.less +62 -62
  115. package/es/style/index.less +1 -1
  116. package/es/style.css +18 -18
  117. package/es/thumbCard/style/index.less +90 -90
  118. package/es/thumbCard/style/thumbUploading.less +26 -26
  119. package/es/typeIcons/style/index.less +6 -6
  120. package/es/uploadBefore/components/UploadBefore.js +1 -1
  121. package/es/uploadBefore/style/index.less +144 -144
  122. package/es/uploadStep/style/index.less +152 -152
  123. package/es/userAvater/component.js +1 -1
  124. package/es/userAvater/style/index.less +54 -54
  125. package/es/userDirector/component.js +1 -1
  126. package/es/userDirector/style/index.less +96 -96
  127. package/es/videoThumb/style/index.less +77 -77
  128. package/lib/appCenter/style/index.less +120 -120
  129. package/lib/baseFilter/components/FilterGroup.js +1 -1
  130. package/lib/baseFilter/style/filterGroup.less +53 -53
  131. package/lib/baseFilter/style/index.less +45 -45
  132. package/lib/colorPalette/style/index.less +44 -44
  133. package/lib/contentDetailList/components/Content/CompoItem/index.js +1 -1
  134. package/lib/contentDetailList/components/Content/ContentListItem/index.js +1 -1
  135. package/lib/contentDetailList/components/Content/DocItem/index.js +1 -1
  136. package/lib/contentDetailList/components/Content/DocMpItem/index.js +1 -1
  137. package/lib/contentDetailList/components/Content/GroupPieceItem/index.js +1 -1
  138. package/lib/contentDetailList/components/Content/KongoNavItem/index.js +1 -1
  139. package/lib/contentDetailList/components/Content/LiveItem/index.js +1 -1
  140. package/lib/contentDetailList/components/Content/MaccountItem/index.js +1 -1
  141. package/lib/contentDetailList/components/Content/courseItem/index.js +1 -1
  142. package/lib/contentDetailList/components/Content/funhdItem/index.js +1 -1
  143. package/lib/contentDetailList/components/CustomWrp/CustomItem.js +1 -1
  144. package/lib/contentDetailList/components/ShowQRCode/QrcodeView/index.js +2 -2
  145. package/lib/contentDetailList/style/ComoItem.less +99 -99
  146. package/lib/contentDetailList/style/Content.less +49 -49
  147. package/lib/contentDetailList/style/ContentListItem.less +132 -132
  148. package/lib/contentDetailList/style/CustomItem.less +25 -25
  149. package/lib/contentDetailList/style/Doc.less +3 -3
  150. package/lib/contentDetailList/style/DocItem.less +152 -152
  151. package/lib/contentDetailList/style/DocMpItem.less +135 -135
  152. package/lib/contentDetailList/style/GroupPieceItem.less +108 -108
  153. package/lib/contentDetailList/style/KongoNavItem.less +104 -104
  154. package/lib/contentDetailList/style/LiveItem.less +108 -108
  155. package/lib/contentDetailList/style/MaccountItem.less +111 -111
  156. package/lib/contentDetailList/style/MatrixItem.less +214 -214
  157. package/lib/contentDetailList/style/QrCodeView.less +93 -93
  158. package/lib/contentDetailList/style/ShowQRCode.less +3 -3
  159. package/lib/contentDetailList/style/courseItem.less +108 -108
  160. package/lib/contentDetailList/style/funhdItem.less +108 -108
  161. package/lib/contentDetailList/style/index.less +30 -30
  162. package/lib/contentModal/component.js +8 -8
  163. package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +176 -5
  164. package/lib/contentModal/components/ViewAllColumn/columnTree/index.js +152 -0
  165. package/lib/contentModal/components/storeBox/index.js +2 -2
  166. package/lib/contentModal/script/api.js +7 -0
  167. package/lib/contentModal/style/MediaFilter.less +47 -47
  168. package/lib/contentModal/style/ViewAllColumn.less +68 -68
  169. package/lib/contentModal/style/columnTree.less +32 -32
  170. package/lib/contentModal/style/index.less +23 -23
  171. package/lib/contentModal/style/storeBox.less +55 -55
  172. package/lib/dataTags/component.js +5 -5
  173. package/lib/dataTags/style/index.less +73 -73
  174. package/lib/docHistory/component.js +1 -1
  175. package/lib/docHistory/style/docDiffPanel.less +43 -43
  176. package/lib/docHistory/style/docHistoryList.less +58 -58
  177. package/lib/docHistory/style/index.less +37 -37
  178. package/lib/docPreview/component.js +5 -5
  179. package/lib/docPreview/style/index.less +140 -140
  180. package/lib/docPreview/style/previewIframe.less +36 -36
  181. package/lib/editMetaInfo/components/metaInfoForm.js +2 -2
  182. package/lib/editMetaInfo/style/index.less +60 -60
  183. package/lib/emptyData/style/index.less +34 -34
  184. package/lib/imageCrop/component.js +2 -2
  185. package/lib/imageCrop/style/cropper.less +291 -291
  186. package/lib/imageCrop/style/imageCropper.less +133 -133
  187. package/lib/imageCrop/style/index.less +2 -2
  188. package/lib/importData/component.js +4 -4
  189. package/lib/importData/style/index.less +48 -48
  190. package/lib/index.less +30 -30
  191. package/lib/mediaFilter/components/DocFilter.js +1 -1
  192. package/lib/mediaFilter/components/FilterGroup.js +1 -1
  193. package/lib/mediaFilter/style/index.less +115 -115
  194. package/lib/mediaView/style/index.less +71 -71
  195. package/lib/messageBox/component.js +1 -1
  196. package/lib/messageBox/list.js +1 -1
  197. package/lib/messageBox/style/index.less +76 -76
  198. package/lib/previousVersion/style/index.less +209 -209
  199. package/lib/resourceGridList/component.js +1 -1
  200. package/lib/resourceGridList/style/FileTypeThumb.less +96 -96
  201. package/lib/resourceGridList/style/index.less +233 -233
  202. package/lib/resourceModal/component.js +1 -1
  203. package/lib/resourceModal/components/MediaSelection/MainContent/index.js +1 -1
  204. package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +1 -1
  205. package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +1 -1
  206. package/lib/resourceModal/components/MediaSelection/ToolbarSearch/index.js +1 -1
  207. package/lib/resourceModal/style/DocAiMediaSelected.less +55 -55
  208. package/lib/resourceModal/style/FileTypeThumb.less +205 -205
  209. package/lib/resourceModal/style/MainContent.less +222 -222
  210. package/lib/resourceModal/style/MediaPreviewer.less +71 -71
  211. package/lib/resourceModal/style/MediaSelection.less +69 -69
  212. package/lib/resourceModal/style/SystemResourceSelected.less +154 -154
  213. package/lib/resourceModal/style/ToolbarSearch.less +53 -53
  214. package/lib/resourceModal/style/index.less +18 -18
  215. package/lib/selectAddTo/component.js +1 -1
  216. package/lib/selectAddTo/components/SelectAddToView.js +3 -3
  217. package/lib/selectAddTo/components/ViewAllColumn/index.js +1 -1
  218. package/lib/selectAddTo/style/index.less +3 -3
  219. package/lib/selectAvatarList/style/index.less +4 -4
  220. package/lib/selectGategory/component.js +1 -1
  221. package/lib/selectGategory/style/ColumnSelection.less +190 -190
  222. package/lib/selectGategory/style/index.less +40 -40
  223. package/lib/selectResourceModal/component.js +5 -5
  224. package/lib/selectResourceModal/components/List/ListLocal/Upload.js +2 -2
  225. package/lib/selectResourceModal/components/List/ListLocal/index.js +1 -1
  226. package/lib/selectResourceModal/components/List/ListNormal/Filter.js +5 -5
  227. package/lib/selectResourceModal/components/List/ListSystem/Filter.js +1 -1
  228. package/lib/selectResourceModal/components/List/ListSystem/SubList.js +1 -1
  229. package/lib/selectResourceModal/style/index.less +55 -55
  230. package/lib/selectResourceModal/style/list.less +203 -203
  231. package/lib/selectResourceModal/style/listCardWrapper.less +97 -97
  232. package/lib/selectResourceModal/style/listSelected.less +94 -94
  233. package/lib/selectThumb/component.js +8 -8
  234. package/lib/selectThumb/style/card.less +95 -95
  235. package/lib/selectThumb/style/colorPalette.less +30 -30
  236. package/lib/selectThumb/style/index.less +62 -62
  237. package/lib/style/index.less +1 -1
  238. package/lib/thumbCard/style/index.less +90 -90
  239. package/lib/thumbCard/style/thumbUploading.less +26 -26
  240. package/lib/typeIcons/style/index.less +6 -6
  241. package/lib/uploadBefore/components/UploadBefore.js +1 -1
  242. package/lib/uploadBefore/style/index.less +144 -144
  243. package/lib/uploadStep/style/index.less +152 -152
  244. package/lib/userAvater/component.js +1 -1
  245. package/lib/userAvater/style/index.less +54 -54
  246. package/lib/userDirector/component.js +1 -1
  247. package/lib/userDirector/style/index.less +96 -96
  248. package/lib/videoThumb/style/index.less +77 -77
  249. package/package.json +138 -138
@@ -159,7 +159,7 @@ const _sfc_main = vue.defineComponent({
159
159
  onClick: comfirm
160
160
  }, {
161
161
  default: vue.withCtx(() => _cache[8] || (_cache[8] = [
162
- vue.createTextVNode("\u6DFB\u52A0 ", -1)
162
+ vue.createTextVNode("\u6DFB\u52A0 ")
163
163
  ])),
164
164
  _: 1,
165
165
  __: [8]
@@ -199,7 +199,7 @@ const _sfc_main = vue.defineComponent({
199
199
  onClick: comfirm
200
200
  }, {
201
201
  default: vue.withCtx(() => _cache[9] || (_cache[9] = [
202
- vue.createTextVNode(" \u6DFB\u52A0 ", -1)
202
+ vue.createTextVNode(" \u6DFB\u52A0 ")
203
203
  ])),
204
204
  _: 1,
205
205
  __: [9]
@@ -240,7 +240,7 @@ const _sfc_main = vue.defineComponent({
240
240
  onClick: comfirm
241
241
  }, {
242
242
  default: vue.withCtx(() => _cache[10] || (_cache[10] = [
243
- vue.createTextVNode(" \u6DFB\u52A0 ", -1)
243
+ vue.createTextVNode(" \u6DFB\u52A0 ")
244
244
  ])),
245
245
  _: 1,
246
246
  __: [10]
@@ -280,7 +280,7 @@ const _sfc_main = vue.defineComponent({
280
280
  onClick: comfirm
281
281
  }, {
282
282
  default: vue.withCtx(() => _cache[11] || (_cache[11] = [
283
- vue.createTextVNode(" \u6DFB\u52A0 ", -1)
283
+ vue.createTextVNode(" \u6DFB\u52A0 ")
284
284
  ])),
285
285
  _: 1,
286
286
  __: [11]
@@ -320,7 +320,7 @@ const _sfc_main = vue.defineComponent({
320
320
  onClick: comfirm
321
321
  }, {
322
322
  default: vue.withCtx(() => _cache[12] || (_cache[12] = [
323
- vue.createTextVNode(" \u6DFB\u52A0 ", -1)
323
+ vue.createTextVNode(" \u6DFB\u52A0 ")
324
324
  ])),
325
325
  _: 1,
326
326
  __: [12]
@@ -360,7 +360,7 @@ const _sfc_main = vue.defineComponent({
360
360
  onClick: comfirm
361
361
  }, {
362
362
  default: vue.withCtx(() => _cache[13] || (_cache[13] = [
363
- vue.createTextVNode(" \u6DFB\u52A0 ", -1)
363
+ vue.createTextVNode(" \u6DFB\u52A0 ")
364
364
  ])),
365
365
  _: 1,
366
366
  __: [13]
@@ -400,7 +400,7 @@ const _sfc_main = vue.defineComponent({
400
400
  onClick: comfirm
401
401
  }, {
402
402
  default: vue.withCtx(() => _cache[14] || (_cache[14] = [
403
- vue.createTextVNode(" \u6DFB\u52A0 ", -1)
403
+ vue.createTextVNode(" \u6DFB\u52A0 ")
404
404
  ])),
405
405
  _: 1,
406
406
  __: [14]
@@ -439,7 +439,7 @@ const _sfc_main = vue.defineComponent({
439
439
  onClick: comfirm
440
440
  }, {
441
441
  default: vue.withCtx(() => _cache[15] || (_cache[15] = [
442
- vue.createTextVNode(" \u6DFB\u52A0 ", -1)
442
+ vue.createTextVNode(" \u6DFB\u52A0 ")
443
443
  ])),
444
444
  _: 1,
445
445
  __: [15]
@@ -2,6 +2,8 @@
2
2
  var vue = require("vue");
3
3
  var webVue = require("@arco-design/web-vue");
4
4
  var icon = require("@arco-design/web-vue/es/icon");
5
+ var doc = require("../../../../utils/doc.js");
6
+ var index = require("../columnTree/index.js");
5
7
  const _hoisted_1 = { class: "media-filter-container" };
6
8
  const _hoisted_2 = { style: { "display": "flex", "align-items": "center", "gap": "5px" } };
7
9
  const _hoisted_3 = { class: "sort-button" };
@@ -11,7 +13,10 @@ const _sfc_main = vue.defineComponent({
11
13
  props: {
12
14
  groupId: {},
13
15
  tree: { default: () => [] },
14
- height: {}
16
+ series: { default: "all" },
17
+ banner: { default: "all" },
18
+ height: {},
19
+ userInfo: {}
15
20
  },
16
21
  emits: ["update:group_id", "search"],
17
22
  setup(__props, { emit: __emit }) {
@@ -39,12 +44,82 @@ const _sfc_main = vue.defineComponent({
39
44
  desc: "\u4F1A\u5C06\u8F93\u5165\u5185\u5BB9\u5206\u8BCD\uFF0C\u4F8B\u5982\u201C\u6210\u957F\u201D\u4F1A\u5206\u4E3A\u201C\u6210\u201D\u3001\u201C\u957F\u201D\u3001\u201C\u6210\u957F\u201D\uFF0C\u5185\u5BB9\u5305\u542B\u4E09\u4E2A\u8BCD\u4E2D\u4EFB\u610F\u4E00\u4E2A\u5747\u4F1A\u663E\u793A\u51FA\u6765\uFF0C\u641C\u7D22\u5185\u5BB9\u66F4\u52A0\u4E30\u5BCC"
40
45
  }
41
46
  ];
47
+ const bannerOptions = vue.computed(() => {
48
+ const options = [
49
+ {
50
+ value: "0",
51
+ key: "0",
52
+ label: "\u65E0\u72EC\u7ACB\u8F6E\u64AD"
53
+ },
54
+ {
55
+ value: "1",
56
+ key: "1",
57
+ label: "\u6709\u72EC\u7ACB\u8F6E\u64AD"
58
+ }
59
+ ];
60
+ return options.filter(
61
+ (item) => props.banner === "all" || props.banner === item.key
62
+ );
63
+ });
64
+ const typeOptions = vue.computed(() => {
65
+ const arr = Object.keys(doc.docSeries).map((key) => {
66
+ return {
67
+ value: key,
68
+ label: doc.docSeries[key].replace("\u7A3F\u4EF6", "")
69
+ };
70
+ });
71
+ return arr.filter((item) => {
72
+ if (props.series === "all") {
73
+ return true;
74
+ }
75
+ return props.series.split(",").includes(item.value);
76
+ });
77
+ });
78
+ const thumbOptions = vue.computed(() => {
79
+ return Object.keys(doc.docThumbMap()).map((key) => {
80
+ return {
81
+ value: key,
82
+ label: doc.docThumbMap()[key]
83
+ };
84
+ });
85
+ });
42
86
  const sortMethodOptions = vue.computed(() => {
43
87
  return [
44
88
  { value: "pub_time", label: "\u53D1\u5E03\u65F6\u95F4" },
45
89
  { value: "create_time", label: "\u521B\u5EFA\u65F6\u95F4" }
46
90
  ];
47
91
  });
92
+ const showReset = vue.computed(() => {
93
+ let { banner } = filter.value;
94
+ if (props.banner !== "all") {
95
+ banner = "";
96
+ }
97
+ let series = filter.value.type;
98
+ if (props.series !== "all") {
99
+ series = "";
100
+ }
101
+ return filter.value.keywords || series || filter.value.cover_type || banner || filter.value.sort !== -1;
102
+ });
103
+ const reset = () => {
104
+ const _set = {
105
+ keywords: "",
106
+ cover_type: "",
107
+ sort: -1,
108
+ order: "create_time"
109
+ };
110
+ Object.assign(filter.value, _set);
111
+ if (props.banner !== "all") {
112
+ filter.value.banner = props.banner;
113
+ } else {
114
+ filter.value.banner = "";
115
+ }
116
+ if (props.series !== "all" && props.series.split(",").length === 1) {
117
+ filter.value.type = props.series;
118
+ } else {
119
+ filter.value.type = "";
120
+ }
121
+ column_id.value = "all";
122
+ };
48
123
  const checkout = (type) => {
49
124
  filter.value.wordState = type;
50
125
  };
@@ -70,6 +145,19 @@ const _sfc_main = vue.defineComponent({
70
145
  column_id.value = val;
71
146
  }
72
147
  );
148
+ vue.watch(
149
+ () => props.banner,
150
+ (val) => {
151
+ filter.value.banner = val === "all" ? "" : val;
152
+ },
153
+ { immediate: true }
154
+ );
155
+ vue.watch(
156
+ () => column_id.value,
157
+ (val) => {
158
+ emit("update:group_id", val);
159
+ }
160
+ );
73
161
  return (_ctx, _cache) => {
74
162
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
75
163
  vue.createVNode(vue.unref(webVue.Space), { size: "small" }, {
@@ -91,9 +179,9 @@ const _sfc_main = vue.defineComponent({
91
179
  onSelect: checkout
92
180
  }, {
93
181
  default: vue.withCtx(() => [
94
- (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(wordStateOptions, (item, index) => {
182
+ (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(wordStateOptions, (item, index2) => {
95
183
  return vue.createVNode(vue.unref(webVue.Option), {
96
- key: index,
184
+ key: index2,
97
185
  value: item.value,
98
186
  label: item.label
99
187
  }, {
@@ -120,14 +208,97 @@ const _sfc_main = vue.defineComponent({
120
208
  }, 8, ["modelValue"])
121
209
  ]),
122
210
  _: 1
123
- }, 8, ["modelValue"])
211
+ }, 8, ["modelValue"]),
212
+ vue.createVNode(index, {
213
+ column_id: column_id.value,
214
+ "onUpdate:column_id": _cache[2] || (_cache[2] = ($event) => column_id.value = $event),
215
+ height: props.height,
216
+ tree: props.tree,
217
+ "user-info": props.userInfo
218
+ }, null, 8, ["column_id", "height", "tree", "user-info"]),
219
+ vue.createVNode(vue.unref(webVue.Select), {
220
+ modelValue: filter.value.type,
221
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => filter.value.type = $event),
222
+ style: { width: "96px" },
223
+ "trigger-props": { autoFitPopupMinWidth: true },
224
+ "allow-clear": "",
225
+ class: "filter-item",
226
+ placeholder: "\u7C7B\u578B"
227
+ }, {
228
+ default: vue.withCtx(() => [
229
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(typeOptions.value, (item) => {
230
+ return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
231
+ key: item.value,
232
+ label: item.label,
233
+ value: item.value
234
+ }, null, 8, ["label", "value"]);
235
+ }), 128))
236
+ ]),
237
+ _: 1
238
+ }, 8, ["modelValue"]),
239
+ vue.createVNode(vue.unref(webVue.Select), {
240
+ modelValue: filter.value.cover_type,
241
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => filter.value.cover_type = $event),
242
+ style: { width: "96px" },
243
+ "trigger-props": { autoFitPopupMinWidth: true },
244
+ "allow-clear": "",
245
+ class: "filter-item",
246
+ placeholder: "\u5C01\u9762"
247
+ }, {
248
+ default: vue.withCtx(() => [
249
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(thumbOptions.value, (item) => {
250
+ return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
251
+ key: item.value,
252
+ label: item.label,
253
+ value: item.value
254
+ }, null, 8, ["label", "value"]);
255
+ }), 128))
256
+ ]),
257
+ _: 1
258
+ }, 8, ["modelValue"]),
259
+ vue.createVNode(vue.unref(webVue.Select), {
260
+ modelValue: filter.value.banner,
261
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => filter.value.banner = $event),
262
+ style: { width: "124px" },
263
+ "trigger-props": { autoFitPopupMinWidth: true },
264
+ "allow-clear": "",
265
+ class: "filter-item",
266
+ disabled: props.banner !== "all",
267
+ placeholder: "\u72EC\u7ACB\u8F6E\u64AD"
268
+ }, {
269
+ default: vue.withCtx(() => [
270
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(bannerOptions.value, (item) => {
271
+ return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
272
+ key: item.value,
273
+ label: item.label,
274
+ value: item.value
275
+ }, null, 8, ["label", "value"]);
276
+ }), 128))
277
+ ]),
278
+ _: 1
279
+ }, 8, ["modelValue", "disabled"]),
280
+ vue.withDirectives(vue.createVNode(vue.unref(webVue.Button), {
281
+ class: "reset-button",
282
+ size: "small",
283
+ type: "text",
284
+ onClick: reset
285
+ }, {
286
+ default: vue.withCtx(() => [
287
+ vue.createVNode(vue.unref(icon.IconRefresh), { class: "reset-icon" }),
288
+ _cache[7] || (_cache[7] = vue.createTextVNode(" \u91CD\u7F6E "))
289
+ ]),
290
+ _: 1,
291
+ __: [7]
292
+ }, 512), [
293
+ [vue.vShow, showReset.value]
294
+ ])
124
295
  ]),
125
296
  _: 1
126
297
  }),
127
298
  vue.createElementVNode("div", _hoisted_3, [
128
299
  vue.createVNode(vue.unref(webVue.Select), {
129
300
  modelValue: filter.value.order,
130
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => filter.value.order = $event),
301
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => filter.value.order = $event),
131
302
  class: "filter-item",
132
303
  placeholder: "\u53D1\u5E03\u65F6\u95F4"
133
304
  }, {
@@ -0,0 +1,152 @@
1
+ "use strict";
2
+ var vue = require("vue");
3
+ var webVue = require("@arco-design/web-vue");
4
+ var icon = require("@arco-design/web-vue/es/icon");
5
+ var api = require("../../../script/api.js");
6
+ const _hoisted_1 = { class: "column-selection-container" };
7
+ const _hoisted_2 = { class: "search-column" };
8
+ const _sfc_main = vue.defineComponent({
9
+ ...{ name: "columnTree" },
10
+ __name: "index",
11
+ props: {
12
+ column_id: {},
13
+ tree: {},
14
+ height: {},
15
+ userInfo: {}
16
+ },
17
+ emits: ["update:column_id"],
18
+ setup(__props, { emit: __emit }) {
19
+ const props = __props;
20
+ const emit = __emit;
21
+ const treeOptions = {
22
+ title: "alias",
23
+ isLeaf: "leaf"
24
+ };
25
+ const selectAlias = vue.ref("\u5168\u90E8\u5185\u5BB9");
26
+ const lastSearchKey = vue.ref(window.localStorage.getItem("lastSearchKey") || "");
27
+ const searchKey = vue.ref("");
28
+ const aTreeRef = vue.ref();
29
+ const treeData = vue.computed(() => {
30
+ if (!searchKey.value)
31
+ return props.tree;
32
+ return searchData(searchKey.value);
33
+ });
34
+ const searchData = (keyword) => {
35
+ const loop = (data) => {
36
+ const result = [];
37
+ data.forEach((item) => {
38
+ var _a;
39
+ if ((_a = item.alias) == null ? void 0 : _a.includes(keyword)) {
40
+ result.push({ ...item });
41
+ } else if (item.children) {
42
+ const filterData = loop(item.children);
43
+ if (filterData.length) {
44
+ result.push({
45
+ ...item,
46
+ children: filterData
47
+ });
48
+ }
49
+ }
50
+ });
51
+ return result;
52
+ };
53
+ return loop(props.tree);
54
+ };
55
+ const clickLastItem = () => {
56
+ aTreeRef.value.selectNode(lastSearchKey.value, true);
57
+ };
58
+ vue.watch(
59
+ () => props.column_id,
60
+ (val) => {
61
+ setSelectAlias(val);
62
+ }
63
+ );
64
+ const setSelectAlias = async (id) => {
65
+ if (id === "all") {
66
+ selectAlias.value = "\u5168\u90E8\u5185\u5BB9";
67
+ return;
68
+ }
69
+ const { code, message } = await api.getCategoryPath(props.userInfo.BASE_API, {
70
+ repo: props.userInfo.repository_id,
71
+ category: id
72
+ });
73
+ if (code === 0) {
74
+ const pathArr = [];
75
+ for (const i of message) {
76
+ pathArr.push(i.category_alias);
77
+ }
78
+ selectAlias.value = pathArr.join("/");
79
+ }
80
+ };
81
+ const AddColumnSelected = (selectedKeys, data) => {
82
+ lastSearchKey.value = selectedKeys[0];
83
+ window.localStorage.setItem("lastSearchKey", lastSearchKey.value);
84
+ emit("update:column_id", data.node.id);
85
+ };
86
+ return (_ctx, _cache) => {
87
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
88
+ vue.createVNode(vue.unref(webVue.Popover), {
89
+ "content-style": { minWidth: "120px" },
90
+ "content-class": "column-selection-popover-content",
91
+ position: "bottom",
92
+ trigger: "click"
93
+ }, {
94
+ content: vue.withCtx(() => [
95
+ vue.createElementVNode("div", _hoisted_2, [
96
+ vue.createVNode(vue.unref(webVue.InputSearch), {
97
+ modelValue: searchKey.value,
98
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchKey.value = $event),
99
+ placeholder: "\u8BF7\u8F93\u5165\u680F\u76EE\u540D\u79F0"
100
+ }, null, 8, ["modelValue"])
101
+ ]),
102
+ lastSearchKey.value ? (vue.openBlock(), vue.createElementBlock("div", {
103
+ key: 0,
104
+ class: "last-search-key",
105
+ onClick: clickLastItem
106
+ }, "\u4E0A\u4E00\u6B21\u9009\u62E9 ")) : vue.createCommentVNode("v-if", true),
107
+ vue.createElementVNode("div", {
108
+ style: vue.normalizeStyle({ minHeight: props.height + "px" }),
109
+ class: "column-selection-main"
110
+ }, [
111
+ vue.createElementVNode("div", {
112
+ style: vue.normalizeStyle({ height: props.height + "px" }),
113
+ class: "column-v"
114
+ }, [
115
+ vue.createVNode(vue.unref(webVue.Scrollbar), {
116
+ "outer-class": "column-outer-scrollbar",
117
+ style: { "height": "100%", "overflow": "auto" }
118
+ }, {
119
+ default: vue.withCtx(() => [
120
+ vue.createVNode(vue.unref(webVue.Tree), {
121
+ ref_key: "aTreeRef",
122
+ ref: aTreeRef,
123
+ data: treeData.value,
124
+ "default-expand-all": false,
125
+ "field-names": treeOptions,
126
+ "block-node": "",
127
+ "check-strictly": "",
128
+ onSelect: AddColumnSelected
129
+ }, null, 8, ["data"])
130
+ ]),
131
+ _: 1
132
+ })
133
+ ], 4)
134
+ ], 4)
135
+ ]),
136
+ default: vue.withCtx(() => [
137
+ vue.createVNode(vue.unref(webVue.Button), { class: "button" }, {
138
+ default: vue.withCtx(() => [
139
+ vue.createVNode(vue.unref(icon.IconDragDotVertical)),
140
+ vue.createTextVNode(" " + vue.toDisplayString(selectAlias.value) + " ", 1),
141
+ vue.createVNode(vue.unref(icon.IconCaretRight))
142
+ ]),
143
+ _: 1
144
+ })
145
+ ]),
146
+ _: 1
147
+ })
148
+ ]);
149
+ };
150
+ }
151
+ });
152
+ module.exports = _sfc_main;
@@ -82,7 +82,7 @@ const _sfc_main = vue.defineComponent({
82
82
  onClick: clear
83
83
  }, {
84
84
  default: vue.withCtx(() => _cache[1] || (_cache[1] = [
85
- vue.createTextVNode("\u6E05\u7A7A", -1)
85
+ vue.createTextVNode("\u6E05\u7A7A")
86
86
  ])),
87
87
  _: 1,
88
88
  __: [1]
@@ -99,7 +99,7 @@ const _sfc_main = vue.defineComponent({
99
99
  class: "button"
100
100
  }, {
101
101
  default: vue.withCtx(() => _cache[0] || (_cache[0] = [
102
- vue.createTextVNode("\u5DF2\u9009\u6570\u636E", -1)
102
+ vue.createTextVNode("\u5DF2\u9009\u6570\u636E")
103
103
  ])),
104
104
  _: 1,
105
105
  __: [0]
@@ -8,6 +8,12 @@ function getCategoryCategoriesTree(BASE_API, params) {
8
8
  params
9
9
  });
10
10
  }
11
+ function getCategoryPath(BASE_API, params) {
12
+ return request(BASE_API, {
13
+ url: `/poplar/v2/repo/${params == null ? void 0 : params.repo}/category/${params == null ? void 0 : params.category}/path`,
14
+ method: "get"
15
+ });
16
+ }
11
17
  function getCategoryMediaNew(BASE_API, params) {
12
18
  return request(BASE_API, {
13
19
  url: `/poplar/v3/s/documents`,
@@ -98,6 +104,7 @@ exports.checkCommitFulfillment = checkCommitFulfillment;
98
104
  exports.getBroadcastList = getBroadcastList;
99
105
  exports.getCategoryCategoriesTree = getCategoryCategoriesTree;
100
106
  exports.getCategoryMediaNew = getCategoryMediaNew;
107
+ exports.getCategoryPath = getCategoryPath;
101
108
  exports.getCategorylistsGroups = getCategorylistsGroups;
102
109
  exports.getConfigurationNew = getConfigurationNew;
103
110
  exports.getEqxiuList = getEqxiuList;
@@ -1,47 +1,47 @@
1
- .media-filter-container {
2
- display: flex;
3
- align-items: center;
4
- justify-content: space-between;
5
- padding: 10px 20px;
6
-
7
- .filter-item {
8
- width: auto;
9
- }
10
-
11
- .keyword {
12
- padding-left: 0;
13
- }
14
-
15
- :deep(.arco-popover-content) {
16
- display: flex;
17
- flex-direction: column;
18
- }
19
-
20
- // 重置
21
- .reset-button {
22
- width: 74px;
23
- padding: 9px 12px;
24
- font-size: 14px;
25
-
26
- .reset-icon {
27
- margin-right: 8px;
28
- }
29
- }
30
-
31
- //排序
32
- .sort-button {
33
- color: #4e5969;
34
-
35
- .filter-item {
36
- width: 102px;
37
-
38
- .arco-select-view-suffix {
39
- padding-left: 0;
40
- }
41
- }
42
-
43
- &:hover {
44
- cursor: pointer;
45
- }
46
- }
47
- }
1
+ .media-filter-container {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: space-between;
5
+ padding: 10px 20px;
6
+
7
+ .filter-item {
8
+ width: auto;
9
+ }
10
+
11
+ .keyword {
12
+ padding-left: 0;
13
+ }
14
+
15
+ :deep(.arco-popover-content) {
16
+ display: flex;
17
+ flex-direction: column;
18
+ }
19
+
20
+ // 重置
21
+ .reset-button {
22
+ width: 74px;
23
+ padding: 9px 12px;
24
+ font-size: 14px;
25
+
26
+ .reset-icon {
27
+ margin-right: 8px;
28
+ }
29
+ }
30
+
31
+ //排序
32
+ .sort-button {
33
+ color: #4e5969;
34
+
35
+ .filter-item {
36
+ width: 102px;
37
+
38
+ .arco-select-view-suffix {
39
+ padding-left: 0;
40
+ }
41
+ }
42
+
43
+ &:hover {
44
+ cursor: pointer;
45
+ }
46
+ }
47
+ }