@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
@@ -1,6 +1,8 @@
1
- import { defineComponent, ref, computed, watch, openBlock, createElementBlock, createVNode, unref, withCtx, Fragment, renderList, createElementVNode, toDisplayString, createBlock } from "vue";
2
- import { Space, Input, Select, Option, Tooltip } from "@arco-design/web-vue";
3
- import { IconInfoCircle } from "@arco-design/web-vue/es/icon";
1
+ import { defineComponent, ref, computed, watch, openBlock, createElementBlock, createVNode, unref, withCtx, Fragment, renderList, createElementVNode, toDisplayString, createBlock, withDirectives, createTextVNode, vShow } from "vue";
2
+ import { Space, Input, Select, Option, Tooltip, Button } from "@arco-design/web-vue";
3
+ import { IconInfoCircle, IconRefresh } from "@arco-design/web-vue/es/icon";
4
+ import { docSeries, docThumbMap } from "../../../../utils/doc.js";
5
+ import _sfc_main$1 from "../columnTree/index.js";
4
6
  const _hoisted_1 = { class: "media-filter-container" };
5
7
  const _hoisted_2 = { style: { "display": "flex", "align-items": "center", "gap": "5px" } };
6
8
  const _hoisted_3 = { class: "sort-button" };
@@ -10,7 +12,10 @@ const _sfc_main = defineComponent({
10
12
  props: {
11
13
  groupId: {},
12
14
  tree: { default: () => [] },
13
- height: {}
15
+ series: { default: "all" },
16
+ banner: { default: "all" },
17
+ height: {},
18
+ userInfo: {}
14
19
  },
15
20
  emits: ["update:group_id", "search"],
16
21
  setup(__props, { emit: __emit }) {
@@ -38,12 +43,82 @@ const _sfc_main = defineComponent({
38
43
  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"
39
44
  }
40
45
  ];
46
+ const bannerOptions = computed(() => {
47
+ const options = [
48
+ {
49
+ value: "0",
50
+ key: "0",
51
+ label: "\u65E0\u72EC\u7ACB\u8F6E\u64AD"
52
+ },
53
+ {
54
+ value: "1",
55
+ key: "1",
56
+ label: "\u6709\u72EC\u7ACB\u8F6E\u64AD"
57
+ }
58
+ ];
59
+ return options.filter(
60
+ (item) => props.banner === "all" || props.banner === item.key
61
+ );
62
+ });
63
+ const typeOptions = computed(() => {
64
+ const arr = Object.keys(docSeries).map((key) => {
65
+ return {
66
+ value: key,
67
+ label: docSeries[key].replace("\u7A3F\u4EF6", "")
68
+ };
69
+ });
70
+ return arr.filter((item) => {
71
+ if (props.series === "all") {
72
+ return true;
73
+ }
74
+ return props.series.split(",").includes(item.value);
75
+ });
76
+ });
77
+ const thumbOptions = computed(() => {
78
+ return Object.keys(docThumbMap()).map((key) => {
79
+ return {
80
+ value: key,
81
+ label: docThumbMap()[key]
82
+ };
83
+ });
84
+ });
41
85
  const sortMethodOptions = computed(() => {
42
86
  return [
43
87
  { value: "pub_time", label: "\u53D1\u5E03\u65F6\u95F4" },
44
88
  { value: "create_time", label: "\u521B\u5EFA\u65F6\u95F4" }
45
89
  ];
46
90
  });
91
+ const showReset = computed(() => {
92
+ let { banner } = filter.value;
93
+ if (props.banner !== "all") {
94
+ banner = "";
95
+ }
96
+ let series = filter.value.type;
97
+ if (props.series !== "all") {
98
+ series = "";
99
+ }
100
+ return filter.value.keywords || series || filter.value.cover_type || banner || filter.value.sort !== -1;
101
+ });
102
+ const reset = () => {
103
+ const _set = {
104
+ keywords: "",
105
+ cover_type: "",
106
+ sort: -1,
107
+ order: "create_time"
108
+ };
109
+ Object.assign(filter.value, _set);
110
+ if (props.banner !== "all") {
111
+ filter.value.banner = props.banner;
112
+ } else {
113
+ filter.value.banner = "";
114
+ }
115
+ if (props.series !== "all" && props.series.split(",").length === 1) {
116
+ filter.value.type = props.series;
117
+ } else {
118
+ filter.value.type = "";
119
+ }
120
+ column_id.value = "all";
121
+ };
47
122
  const checkout = (type) => {
48
123
  filter.value.wordState = type;
49
124
  };
@@ -69,6 +144,19 @@ const _sfc_main = defineComponent({
69
144
  column_id.value = val;
70
145
  }
71
146
  );
147
+ watch(
148
+ () => props.banner,
149
+ (val) => {
150
+ filter.value.banner = val === "all" ? "" : val;
151
+ },
152
+ { immediate: true }
153
+ );
154
+ watch(
155
+ () => column_id.value,
156
+ (val) => {
157
+ emit("update:group_id", val);
158
+ }
159
+ );
72
160
  return (_ctx, _cache) => {
73
161
  return openBlock(), createElementBlock("div", _hoisted_1, [
74
162
  createVNode(unref(Space), { size: "small" }, {
@@ -119,14 +207,97 @@ const _sfc_main = defineComponent({
119
207
  }, 8, ["modelValue"])
120
208
  ]),
121
209
  _: 1
122
- }, 8, ["modelValue"])
210
+ }, 8, ["modelValue"]),
211
+ createVNode(_sfc_main$1, {
212
+ column_id: column_id.value,
213
+ "onUpdate:column_id": _cache[2] || (_cache[2] = ($event) => column_id.value = $event),
214
+ height: props.height,
215
+ tree: props.tree,
216
+ "user-info": props.userInfo
217
+ }, null, 8, ["column_id", "height", "tree", "user-info"]),
218
+ createVNode(unref(Select), {
219
+ modelValue: filter.value.type,
220
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => filter.value.type = $event),
221
+ style: { width: "96px" },
222
+ "trigger-props": { autoFitPopupMinWidth: true },
223
+ "allow-clear": "",
224
+ class: "filter-item",
225
+ placeholder: "\u7C7B\u578B"
226
+ }, {
227
+ default: withCtx(() => [
228
+ (openBlock(true), createElementBlock(Fragment, null, renderList(typeOptions.value, (item) => {
229
+ return openBlock(), createBlock(unref(Option), {
230
+ key: item.value,
231
+ label: item.label,
232
+ value: item.value
233
+ }, null, 8, ["label", "value"]);
234
+ }), 128))
235
+ ]),
236
+ _: 1
237
+ }, 8, ["modelValue"]),
238
+ createVNode(unref(Select), {
239
+ modelValue: filter.value.cover_type,
240
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => filter.value.cover_type = $event),
241
+ style: { width: "96px" },
242
+ "trigger-props": { autoFitPopupMinWidth: true },
243
+ "allow-clear": "",
244
+ class: "filter-item",
245
+ placeholder: "\u5C01\u9762"
246
+ }, {
247
+ default: withCtx(() => [
248
+ (openBlock(true), createElementBlock(Fragment, null, renderList(thumbOptions.value, (item) => {
249
+ return openBlock(), createBlock(unref(Option), {
250
+ key: item.value,
251
+ label: item.label,
252
+ value: item.value
253
+ }, null, 8, ["label", "value"]);
254
+ }), 128))
255
+ ]),
256
+ _: 1
257
+ }, 8, ["modelValue"]),
258
+ createVNode(unref(Select), {
259
+ modelValue: filter.value.banner,
260
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => filter.value.banner = $event),
261
+ style: { width: "124px" },
262
+ "trigger-props": { autoFitPopupMinWidth: true },
263
+ "allow-clear": "",
264
+ class: "filter-item",
265
+ disabled: props.banner !== "all",
266
+ placeholder: "\u72EC\u7ACB\u8F6E\u64AD"
267
+ }, {
268
+ default: withCtx(() => [
269
+ (openBlock(true), createElementBlock(Fragment, null, renderList(bannerOptions.value, (item) => {
270
+ return openBlock(), createBlock(unref(Option), {
271
+ key: item.value,
272
+ label: item.label,
273
+ value: item.value
274
+ }, null, 8, ["label", "value"]);
275
+ }), 128))
276
+ ]),
277
+ _: 1
278
+ }, 8, ["modelValue", "disabled"]),
279
+ withDirectives(createVNode(unref(Button), {
280
+ class: "reset-button",
281
+ size: "small",
282
+ type: "text",
283
+ onClick: reset
284
+ }, {
285
+ default: withCtx(() => [
286
+ createVNode(unref(IconRefresh), { class: "reset-icon" }),
287
+ _cache[7] || (_cache[7] = createTextVNode(" \u91CD\u7F6E "))
288
+ ]),
289
+ _: 1,
290
+ __: [7]
291
+ }, 512), [
292
+ [vShow, showReset.value]
293
+ ])
123
294
  ]),
124
295
  _: 1
125
296
  }),
126
297
  createElementVNode("div", _hoisted_3, [
127
298
  createVNode(unref(Select), {
128
299
  modelValue: filter.value.order,
129
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => filter.value.order = $event),
300
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => filter.value.order = $event),
130
301
  class: "filter-item",
131
302
  placeholder: "\u53D1\u5E03\u65F6\u95F4"
132
303
  }, {
@@ -0,0 +1,151 @@
1
+ import { defineComponent, ref, computed, watch, openBlock, createElementBlock, createVNode, unref, withCtx, createElementVNode, createCommentVNode, normalizeStyle, createTextVNode, toDisplayString } from "vue";
2
+ import { Popover, InputSearch, Scrollbar, Tree, Button } from "@arco-design/web-vue";
3
+ import { IconDragDotVertical, IconCaretRight } from "@arco-design/web-vue/es/icon";
4
+ import { getCategoryPath } from "../../../script/api.js";
5
+ const _hoisted_1 = { class: "column-selection-container" };
6
+ const _hoisted_2 = { class: "search-column" };
7
+ const _sfc_main = defineComponent({
8
+ ...{ name: "columnTree" },
9
+ __name: "index",
10
+ props: {
11
+ column_id: {},
12
+ tree: {},
13
+ height: {},
14
+ userInfo: {}
15
+ },
16
+ emits: ["update:column_id"],
17
+ setup(__props, { emit: __emit }) {
18
+ const props = __props;
19
+ const emit = __emit;
20
+ const treeOptions = {
21
+ title: "alias",
22
+ isLeaf: "leaf"
23
+ };
24
+ const selectAlias = ref("\u5168\u90E8\u5185\u5BB9");
25
+ const lastSearchKey = ref(window.localStorage.getItem("lastSearchKey") || "");
26
+ const searchKey = ref("");
27
+ const aTreeRef = ref();
28
+ const treeData = computed(() => {
29
+ if (!searchKey.value)
30
+ return props.tree;
31
+ return searchData(searchKey.value);
32
+ });
33
+ const searchData = (keyword) => {
34
+ const loop = (data) => {
35
+ const result = [];
36
+ data.forEach((item) => {
37
+ var _a;
38
+ if ((_a = item.alias) == null ? void 0 : _a.includes(keyword)) {
39
+ result.push({ ...item });
40
+ } else if (item.children) {
41
+ const filterData = loop(item.children);
42
+ if (filterData.length) {
43
+ result.push({
44
+ ...item,
45
+ children: filterData
46
+ });
47
+ }
48
+ }
49
+ });
50
+ return result;
51
+ };
52
+ return loop(props.tree);
53
+ };
54
+ const clickLastItem = () => {
55
+ aTreeRef.value.selectNode(lastSearchKey.value, true);
56
+ };
57
+ watch(
58
+ () => props.column_id,
59
+ (val) => {
60
+ setSelectAlias(val);
61
+ }
62
+ );
63
+ const setSelectAlias = async (id) => {
64
+ if (id === "all") {
65
+ selectAlias.value = "\u5168\u90E8\u5185\u5BB9";
66
+ return;
67
+ }
68
+ const { code, message } = await getCategoryPath(props.userInfo.BASE_API, {
69
+ repo: props.userInfo.repository_id,
70
+ category: id
71
+ });
72
+ if (code === 0) {
73
+ const pathArr = [];
74
+ for (const i of message) {
75
+ pathArr.push(i.category_alias);
76
+ }
77
+ selectAlias.value = pathArr.join("/");
78
+ }
79
+ };
80
+ const AddColumnSelected = (selectedKeys, data) => {
81
+ lastSearchKey.value = selectedKeys[0];
82
+ window.localStorage.setItem("lastSearchKey", lastSearchKey.value);
83
+ emit("update:column_id", data.node.id);
84
+ };
85
+ return (_ctx, _cache) => {
86
+ return openBlock(), createElementBlock("div", _hoisted_1, [
87
+ createVNode(unref(Popover), {
88
+ "content-style": { minWidth: "120px" },
89
+ "content-class": "column-selection-popover-content",
90
+ position: "bottom",
91
+ trigger: "click"
92
+ }, {
93
+ content: withCtx(() => [
94
+ createElementVNode("div", _hoisted_2, [
95
+ createVNode(unref(InputSearch), {
96
+ modelValue: searchKey.value,
97
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchKey.value = $event),
98
+ placeholder: "\u8BF7\u8F93\u5165\u680F\u76EE\u540D\u79F0"
99
+ }, null, 8, ["modelValue"])
100
+ ]),
101
+ lastSearchKey.value ? (openBlock(), createElementBlock("div", {
102
+ key: 0,
103
+ class: "last-search-key",
104
+ onClick: clickLastItem
105
+ }, "\u4E0A\u4E00\u6B21\u9009\u62E9 ")) : createCommentVNode("v-if", true),
106
+ createElementVNode("div", {
107
+ style: normalizeStyle({ minHeight: props.height + "px" }),
108
+ class: "column-selection-main"
109
+ }, [
110
+ createElementVNode("div", {
111
+ style: normalizeStyle({ height: props.height + "px" }),
112
+ class: "column-v"
113
+ }, [
114
+ createVNode(unref(Scrollbar), {
115
+ "outer-class": "column-outer-scrollbar",
116
+ style: { "height": "100%", "overflow": "auto" }
117
+ }, {
118
+ default: withCtx(() => [
119
+ createVNode(unref(Tree), {
120
+ ref_key: "aTreeRef",
121
+ ref: aTreeRef,
122
+ data: treeData.value,
123
+ "default-expand-all": false,
124
+ "field-names": treeOptions,
125
+ "block-node": "",
126
+ "check-strictly": "",
127
+ onSelect: AddColumnSelected
128
+ }, null, 8, ["data"])
129
+ ]),
130
+ _: 1
131
+ })
132
+ ], 4)
133
+ ], 4)
134
+ ]),
135
+ default: withCtx(() => [
136
+ createVNode(unref(Button), { class: "button" }, {
137
+ default: withCtx(() => [
138
+ createVNode(unref(IconDragDotVertical)),
139
+ createTextVNode(" " + toDisplayString(selectAlias.value) + " ", 1),
140
+ createVNode(unref(IconCaretRight))
141
+ ]),
142
+ _: 1
143
+ })
144
+ ]),
145
+ _: 1
146
+ })
147
+ ]);
148
+ };
149
+ }
150
+ });
151
+ export { _sfc_main as default };
@@ -81,7 +81,7 @@ const _sfc_main = defineComponent({
81
81
  onClick: clear
82
82
  }, {
83
83
  default: withCtx(() => _cache[1] || (_cache[1] = [
84
- createTextVNode("\u6E05\u7A7A", -1)
84
+ createTextVNode("\u6E05\u7A7A")
85
85
  ])),
86
86
  _: 1,
87
87
  __: [1]
@@ -98,7 +98,7 @@ const _sfc_main = defineComponent({
98
98
  class: "button"
99
99
  }, {
100
100
  default: withCtx(() => _cache[0] || (_cache[0] = [
101
- createTextVNode("\u5DF2\u9009\u6570\u636E", -1)
101
+ createTextVNode("\u5DF2\u9009\u6570\u636E")
102
102
  ])),
103
103
  _: 1,
104
104
  __: [0]
@@ -6,6 +6,12 @@ function getCategoryCategoriesTree(BASE_API, params) {
6
6
  params
7
7
  });
8
8
  }
9
+ function getCategoryPath(BASE_API, params) {
10
+ return request(BASE_API, {
11
+ url: `/poplar/v2/repo/${params == null ? void 0 : params.repo}/category/${params == null ? void 0 : params.category}/path`,
12
+ method: "get"
13
+ });
14
+ }
9
15
  function getCategoryMediaNew(BASE_API, params) {
10
16
  return request(BASE_API, {
11
17
  url: `/poplar/v3/s/documents`,
@@ -92,4 +98,4 @@ function getTypeConfig(BASE_API, params) {
92
98
  params
93
99
  });
94
100
  }
95
- export { checkCommitFulfillment, getBroadcastList, getCategoryCategoriesTree, getCategoryMediaNew, getCategorylistsGroups, getConfigurationNew, getEqxiuList, getMpContentList, getReporterContent, getRevealContent, getTypeConfig, searchMlists, searchMpaccount };
101
+ export { checkCommitFulfillment, getBroadcastList, getCategoryCategoriesTree, getCategoryMediaNew, getCategoryPath, getCategorylistsGroups, getConfigurationNew, getEqxiuList, getMpContentList, getReporterContent, getRevealContent, getTypeConfig, searchMlists, searchMpaccount };
@@ -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
+ }
@@ -1,68 +1,68 @@
1
- .view-all-column-container {
2
- height: 100%;
3
-
4
- .content-table-view {
5
- height: calc(100% - 110px);
6
- padding: 0 20px;
7
- // 勾选框样式
8
- .arco-checkbox {
9
- padding: 0;
10
- }
11
-
12
- // 缩略图
13
- .pic-thumb-img {
14
- width: 60px;
15
- height: 45px;
16
- vertical-align: middle;
17
- border-radius: 3px;
18
- }
19
-
20
- .title-span,
21
- .mp_title-span {
22
- display: block;
23
- width: 100%;
24
- overflow: hidden;
25
- white-space: nowrap;
26
- text-overflow: ellipsis;
27
-
28
- .icon {
29
- display: inline-block;
30
- width: 20px;
31
- height: 25px;
32
- margin-right: 8px;
33
- padding-left: 0;
34
- font-size: 18px;
35
- line-height: 28px;
36
- text-align: center;
37
- vertical-align: middle;
38
- }
39
- }
40
-
41
- .mp_title-span {
42
- margin-left: 10px;
43
- }
44
-
45
- .user-avatar {
46
- display: inline-block;
47
- width: 25px;
48
- height: 25px;
49
- margin-right: 12px;
50
- vertical-align: middle;
51
- border-radius: 50%;
52
- cursor: pointer;
53
- }
54
- }
55
-
56
- .bottom-view {
57
- display: flex;
58
- align-items: center;
59
- justify-content: space-between;
60
- height: 60px;
61
- margin: 0 15px;
62
-
63
- .left {
64
- display: flex;
65
- align-items: center;
66
- }
67
- }
68
- }
1
+ .view-all-column-container {
2
+ height: 100%;
3
+
4
+ .content-table-view {
5
+ height: calc(100% - 110px);
6
+ padding: 0 20px;
7
+ // 勾选框样式
8
+ .arco-checkbox {
9
+ padding: 0;
10
+ }
11
+
12
+ // 缩略图
13
+ .pic-thumb-img {
14
+ width: 60px;
15
+ height: 45px;
16
+ vertical-align: middle;
17
+ border-radius: 3px;
18
+ }
19
+
20
+ .title-span,
21
+ .mp_title-span {
22
+ display: block;
23
+ width: 100%;
24
+ overflow: hidden;
25
+ white-space: nowrap;
26
+ text-overflow: ellipsis;
27
+
28
+ .icon {
29
+ display: inline-block;
30
+ width: 20px;
31
+ height: 25px;
32
+ margin-right: 8px;
33
+ padding-left: 0;
34
+ font-size: 18px;
35
+ line-height: 28px;
36
+ text-align: center;
37
+ vertical-align: middle;
38
+ }
39
+ }
40
+
41
+ .mp_title-span {
42
+ margin-left: 10px;
43
+ }
44
+
45
+ .user-avatar {
46
+ display: inline-block;
47
+ width: 25px;
48
+ height: 25px;
49
+ margin-right: 12px;
50
+ vertical-align: middle;
51
+ border-radius: 50%;
52
+ cursor: pointer;
53
+ }
54
+ }
55
+
56
+ .bottom-view {
57
+ display: flex;
58
+ align-items: center;
59
+ justify-content: space-between;
60
+ height: 60px;
61
+ margin: 0 15px;
62
+
63
+ .left {
64
+ display: flex;
65
+ align-items: center;
66
+ }
67
+ }
68
+ }