@cmstops/pro-compo 0.1.31 → 0.1.33

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 (66) hide show
  1. package/dist/index.css +190 -15
  2. package/dist/index.min.css +1 -1
  3. package/es/contentModal/component.js +35 -35
  4. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +53 -22
  5. package/es/contentModal/components/ViewAllColumn/columnTree/index.js +67 -18
  6. package/es/contentModal/components/ViewAllColumn/index.js +91 -44
  7. package/es/contentModal/components/storeBox/index.js +6 -6
  8. package/es/contentModal/images/pic-thumb.js +2 -0
  9. package/es/contentModal/style/MediaFilter.less +35 -5
  10. package/es/contentModal/style/ViewAllColumn.less +11 -0
  11. package/es/contentModal/style/columnTree.less +25 -5
  12. package/es/contentModal/style/index.css +56 -11
  13. package/es/contentModal/style/storeBox.less +16 -6
  14. package/es/editMetaInfo/components/metaInfoForm.js +84 -81
  15. package/es/index.css +190 -15
  16. package/es/resourceModal/assets/images/sys_load_more.js +2 -0
  17. package/es/resourceModal/component.js +9 -2
  18. package/es/resourceModal/components/MediaSelection/MainContent/index.js +1 -1
  19. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.d.ts +0 -0
  20. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +139 -0
  21. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.d.ts +0 -0
  22. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +103 -0
  23. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/index.d.ts +0 -0
  24. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/index.js +103 -0
  25. package/es/resourceModal/components/MediaSelection/index.js +16 -7
  26. package/es/resourceModal/script/api.d.ts +17 -0
  27. package/es/resourceModal/script/api.js +21 -1
  28. package/es/resourceModal/script/mediaSelection.d.ts +4 -0
  29. package/es/resourceModal/script/mediaSelection.js +8 -0
  30. package/es/resourceModal/style/DocAiMediaSelected.less +2 -3
  31. package/es/resourceModal/style/MainContent.less +5 -3
  32. package/es/resourceModal/style/SystemResourceSelected.less +138 -0
  33. package/es/resourceModal/style/ToolbarSearch.less +13 -0
  34. package/es/resourceModal/style/index.css +135 -5
  35. package/es/resourceModal/style/index.less +1 -0
  36. package/es/selectThumb/component.js +6 -2
  37. package/lib/contentModal/component.js +35 -35
  38. package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +51 -20
  39. package/lib/contentModal/components/ViewAllColumn/columnTree/index.js +65 -16
  40. package/lib/contentModal/components/ViewAllColumn/index.js +90 -43
  41. package/lib/contentModal/components/storeBox/index.js +6 -6
  42. package/lib/contentModal/images/pic-thumb.js +3 -0
  43. package/lib/contentModal/style/MediaFilter.less +35 -5
  44. package/lib/contentModal/style/ViewAllColumn.less +11 -0
  45. package/lib/contentModal/style/columnTree.less +25 -5
  46. package/lib/contentModal/style/index.css +56 -11
  47. package/lib/contentModal/style/storeBox.less +16 -6
  48. package/lib/editMetaInfo/components/metaInfoForm.js +83 -80
  49. package/lib/index.css +190 -15
  50. package/lib/resourceModal/assets/images/sys_load_more.js +3 -0
  51. package/lib/resourceModal/component.js +8 -1
  52. package/lib/resourceModal/components/MediaSelection/MainContent/index.js +2 -2
  53. package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +140 -0
  54. package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +104 -0
  55. package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/index.js +104 -0
  56. package/lib/resourceModal/components/MediaSelection/index.js +15 -6
  57. package/lib/resourceModal/script/api.js +23 -0
  58. package/lib/resourceModal/script/mediaSelection.js +10 -0
  59. package/lib/resourceModal/style/DocAiMediaSelected.less +2 -3
  60. package/lib/resourceModal/style/MainContent.less +5 -3
  61. package/lib/resourceModal/style/SystemResourceSelected.less +138 -0
  62. package/lib/resourceModal/style/ToolbarSearch.less +13 -0
  63. package/lib/resourceModal/style/index.css +135 -5
  64. package/lib/resourceModal/style/index.less +1 -0
  65. package/lib/selectThumb/component.js +5 -1
  66. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, watch, openBlock, createBlock, unref, withCtx, createElementVNode, createCommentVNode, withDirectives, createElementBlock, Fragment, renderList, createVNode, toDisplayString, createTextVNode, vShow, normalizeClass } from "vue";
2
2
  import _imports_0 from "../../../assets/selection/null.js";
3
3
  import { Scrollbar, Tooltip, Button } from "@arco-design/web-vue";
4
- import { IconDoubleDown, IconDoubleUp } from "@arco-design/web-vue/es/icon";
4
+ import { IconDoubleDown, IconDoubleUp } from "@arco-iconbox/vue-cmstop-icons";
5
5
  import _sfc_main$2 from "../../../../typeIcons/component.js";
6
6
  import _sfc_main$1 from "./FileTypeThumb/index.js";
7
7
  import { timeFormat } from "../../../script/filter.js";
@@ -0,0 +1,139 @@
1
+ import { defineComponent, inject, ref, computed, watch, onMounted, openBlock, createElementBlock, createElementVNode, renderSlot, createVNode, unref, withCtx, Fragment, renderList, createBlock, withDirectives, createTextVNode, vShow } from "vue";
2
+ import { Input, Select, Option, Button } from "@arco-design/web-vue";
3
+ import { IconRefresh } from "@arco-design/web-vue/es/icon";
4
+ import { rateOptions } from "../../../../script/filter.js";
5
+ import { getSysRsClassifyList } from "../../../../script/api.js";
6
+ const _hoisted_1 = { class: "toolbar-search-container sysfile-filter-container" };
7
+ const _hoisted_2 = { class: "top-container" };
8
+ const _hoisted_3 = { class: "filter-content" };
9
+ const _hoisted_4 = { class: "filter-left" };
10
+ const _sfc_main = defineComponent({
11
+ ...{ name: "ToolbarSearch" },
12
+ __name: "SystemResourceFilter",
13
+ emits: ["search", "changeScen"],
14
+ setup(__props, { expose: __expose, emit: __emit }) {
15
+ const mediaUseType = inject("mediaUseType");
16
+ const baseApi = inject("baseAPI");
17
+ const filter = ref({
18
+ keyword: "",
19
+ wh_rate: "",
20
+ limit: 9
21
+ });
22
+ const classify_id = ref("");
23
+ const classifyIdOptions = ref([]);
24
+ const loadClassify = async () => {
25
+ const res = await getSysRsClassifyList(baseApi, mediaUseType);
26
+ if (res.code !== 0)
27
+ return;
28
+ classifyIdOptions.value = res.message.classifies;
29
+ };
30
+ const emit = __emit;
31
+ const contentSearch = () => {
32
+ const params = { ...filter.value, sys_tag: mediaUseType };
33
+ emit("search", params);
34
+ };
35
+ const changeScen = () => emit("changeScen", classify_id.value);
36
+ const clearKeyword = () => {
37
+ filter.value.keyword = "";
38
+ };
39
+ const showReset = computed(
40
+ () => filter.value.keyword || filter.value.wh_rate || classify_id.value
41
+ );
42
+ const reset = () => {
43
+ filter.value = {
44
+ keyword: "",
45
+ wh_rate: "",
46
+ limit: 9
47
+ };
48
+ classify_id.value = "";
49
+ changeScen();
50
+ contentSearch();
51
+ };
52
+ watch(
53
+ () => filter.value,
54
+ () => contentSearch(),
55
+ { deep: true }
56
+ );
57
+ watch(
58
+ () => classify_id.value,
59
+ () => changeScen()
60
+ );
61
+ onMounted(() => {
62
+ loadClassify();
63
+ });
64
+ __expose({ reset });
65
+ return (_ctx, _cache) => {
66
+ return openBlock(), createElementBlock("div", _hoisted_1, [
67
+ createElementVNode("div", _hoisted_2, [
68
+ renderSlot(_ctx.$slots, "other"),
69
+ createElementVNode("div", _hoisted_3, [
70
+ createElementVNode("div", _hoisted_4, [
71
+ createVNode(unref(Input), {
72
+ modelValue: filter.value.keyword,
73
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filter.value.keyword = $event),
74
+ class: "filter-item",
75
+ "allow-clear": "",
76
+ placeholder: "\u8F93\u5165\u7D20\u6750\u6807\u9898\u641C\u7D22",
77
+ onClear: clearKeyword
78
+ }, null, 8, ["modelValue"]),
79
+ createVNode(unref(Select), {
80
+ modelValue: classify_id.value,
81
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => classify_id.value = $event),
82
+ class: "filter-item",
83
+ placeholder: "\u573A\u666F\u5206\u7C7B"
84
+ }, {
85
+ default: withCtx(() => [
86
+ createVNode(unref(Option), {
87
+ label: "\u5168\u90E8\u573A\u666F",
88
+ value: ""
89
+ }),
90
+ (openBlock(true), createElementBlock(Fragment, null, renderList(classifyIdOptions.value, (item) => {
91
+ return openBlock(), createBlock(unref(Option), {
92
+ key: item.classify_id,
93
+ label: item.scenario_name,
94
+ value: item.classify_id
95
+ }, null, 8, ["label", "value"]);
96
+ }), 128))
97
+ ]),
98
+ _: 1
99
+ }, 8, ["modelValue"]),
100
+ createVNode(unref(Select), {
101
+ modelValue: filter.value.wh_rate,
102
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => filter.value.wh_rate = $event),
103
+ class: "filter-item",
104
+ placeholder: "\u56FE\u7247\u6BD4\u4F8B"
105
+ }, {
106
+ default: withCtx(() => [
107
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(rateOptions), (item) => {
108
+ return openBlock(), createBlock(unref(Option), {
109
+ key: item.value,
110
+ label: item.label,
111
+ value: item.value
112
+ }, null, 8, ["label", "value"]);
113
+ }), 128))
114
+ ]),
115
+ _: 1
116
+ }, 8, ["modelValue"]),
117
+ withDirectives(createVNode(unref(Button), {
118
+ type: "text",
119
+ size: "medium",
120
+ onClick: reset
121
+ }, {
122
+ icon: withCtx(() => [
123
+ createVNode(unref(IconRefresh))
124
+ ]),
125
+ default: withCtx(() => [
126
+ createTextVNode("\u91CD\u7F6E\u7B5B\u9009")
127
+ ]),
128
+ _: 1
129
+ }, 512), [
130
+ [vShow, showReset.value]
131
+ ])
132
+ ])
133
+ ])
134
+ ])
135
+ ]);
136
+ };
137
+ }
138
+ });
139
+ export { _sfc_main as default };
@@ -0,0 +1,103 @@
1
+ import { defineComponent, inject, ref, computed, watch, openBlock, createElementBlock, Fragment, createCommentVNode, createElementVNode, renderList, normalizeClass, createVNode, unref, withCtx, toDisplayString, normalizeStyle, createTextVNode } from "vue";
2
+ import _imports_0 from "../../../../assets/images/sys_load_more.js";
3
+ import { Tooltip } from "@arco-design/web-vue";
4
+ import _sfc_main$1 from "../../MainContent/FileTypeThumb/index.js";
5
+ import { getSysRsPage } from "../../../../script/api.js";
6
+ const _hoisted_1 = { class: "sys-res-file-list clearfix" };
7
+ const _hoisted_2 = { class: "thumb-wrap" };
8
+ const _hoisted_3 = /* @__PURE__ */ createElementVNode("img", { src: _imports_0 }, null, -1);
9
+ const _sfc_main = defineComponent({
10
+ __name: "SystemResourceList",
11
+ props: {
12
+ sceniro: {},
13
+ outsideFilter: {}
14
+ },
15
+ emits: ["confirm"],
16
+ setup(__props, { emit: __emit }) {
17
+ const emits = __emit;
18
+ const props = __props;
19
+ const baseApi = inject("baseAPI");
20
+ const fileList = ref([]);
21
+ const fileCount = ref(0);
22
+ const showMore = computed(
23
+ () => fileList.value.length < props.sceniro.count
24
+ );
25
+ watch(
26
+ () => props.sceniro,
27
+ () => {
28
+ fileList.value = props.sceniro.data;
29
+ fileCount.value = props.sceniro.count;
30
+ },
31
+ { deep: true, immediate: true }
32
+ );
33
+ const selectedData = ref([]);
34
+ const confirm = (itemData) => {
35
+ selectedData.value = [itemData];
36
+ emits("confirm", selectedData.value);
37
+ };
38
+ const loadMore = async () => {
39
+ const { sceniro } = props;
40
+ const { outsideFilter } = props;
41
+ const res = await getSysRsPage(baseApi, {
42
+ sys_classify: sceniro.classify_id,
43
+ sys_tag: sceniro.sys_tag,
44
+ keyword: outsideFilter.keyword || "",
45
+ wh_rate: outsideFilter.wh_rate || "",
46
+ limit: 10,
47
+ offset: fileList.value.length
48
+ });
49
+ if (res.code !== 0)
50
+ return;
51
+ fileCount.value = res.message.count;
52
+ fileList.value = fileList.value.concat(res.message.data);
53
+ };
54
+ return (_ctx, _cache) => {
55
+ return openBlock(), createElementBlock(Fragment, null, [
56
+ createCommentVNode(" \u6587\u4EF6 "),
57
+ createElementVNode("div", _hoisted_1, [
58
+ (openBlock(true), createElementBlock(Fragment, null, renderList(fileList.value, (item) => {
59
+ return openBlock(), createElementBlock("div", {
60
+ key: item.classify_id,
61
+ class: "item"
62
+ }, [
63
+ createElementVNode("div", {
64
+ class: normalizeClass([{ active: selectedData.value.includes(item) }, "shadow-wrap"])
65
+ }, [
66
+ createElementVNode("div", _hoisted_2, [
67
+ createVNode(_sfc_main$1, {
68
+ "item-data": item,
69
+ preview: true,
70
+ onConfirm: confirm
71
+ }, null, 8, ["item-data"])
72
+ ]),
73
+ createElementVNode("h4", null, [
74
+ createVNode(unref(Tooltip), {
75
+ content: item.alias,
76
+ "open-delay": 500,
77
+ effect: "dark",
78
+ placement: "top"
79
+ }, {
80
+ default: withCtx(() => [
81
+ createElementVNode("span", null, toDisplayString(item.alias), 1)
82
+ ]),
83
+ _: 2
84
+ }, 1032, ["content"])
85
+ ])
86
+ ], 2)
87
+ ]);
88
+ }), 128)),
89
+ showMore.value ? (openBlock(), createElementBlock("div", {
90
+ key: 0,
91
+ class: "item-load-more",
92
+ style: normalizeStyle({ width: "calc(20% - 20px)" }),
93
+ onClick: loadMore
94
+ }, [
95
+ _hoisted_3,
96
+ createTextVNode(" \u70B9\u51FB\u52A0\u8F7D\u66F4\u591A ")
97
+ ], 4)) : createCommentVNode("v-if", true)
98
+ ])
99
+ ], 2112);
100
+ };
101
+ }
102
+ });
103
+ export { _sfc_main as default };
@@ -0,0 +1,103 @@
1
+ import { defineComponent, inject, ref, computed, onMounted, openBlock, createElementBlock, createVNode, createElementVNode, unref, withCtx, Fragment, renderList, withDirectives, createTextVNode, toDisplayString, vShow, createCommentVNode } from "vue";
2
+ import _imports_0 from "../../../assets/selection/null.js";
3
+ import { Scrollbar } from "@arco-design/web-vue";
4
+ import _sfc_main$1 from "./components/SystemResourceFilter.js";
5
+ import _sfc_main$2 from "./components/SystemResourceList.js";
6
+ import { getSysRsByTag } from "../../../script/api.js";
7
+ const _hoisted_1 = { class: "sys-resource-dialog" };
8
+ const _hoisted_2 = { class: "sys-resource-cards" };
9
+ const _hoisted_3 = {
10
+ key: 0,
11
+ class: "scen-module"
12
+ };
13
+ const _hoisted_4 = { class: "title" };
14
+ const _hoisted_5 = /* @__PURE__ */ createElementVNode("div", { class: "line" }, null, -1);
15
+ const _hoisted_6 = {
16
+ key: 0,
17
+ class: "null-file"
18
+ };
19
+ const _hoisted_7 = /* @__PURE__ */ createElementVNode("img", {
20
+ class: "null-pic",
21
+ src: _imports_0
22
+ }, null, -1);
23
+ const _hoisted_8 = /* @__PURE__ */ createElementVNode("p", null, "\u6682\u65E0\u7D20\u6750", -1);
24
+ const _hoisted_9 = [
25
+ _hoisted_7,
26
+ _hoisted_8
27
+ ];
28
+ const _sfc_main = defineComponent({
29
+ __name: "index",
30
+ emits: ["confirm"],
31
+ setup(__props, { emit: __emit }) {
32
+ const emits = __emit;
33
+ const mediaUseType = inject("mediaUseType");
34
+ const baseApi = inject("baseAPI");
35
+ const scenList = ref([]);
36
+ const choseScen = ref("");
37
+ const outsideFilter = ref(null);
38
+ const handleSearch = async (filter) => {
39
+ outsideFilter.value = filter;
40
+ const res = await getSysRsByTag(baseApi, filter);
41
+ if (res.code !== 0)
42
+ return;
43
+ scenList.value = res.message.Results;
44
+ };
45
+ const handleChangeScen = (scen) => {
46
+ choseScen.value = scen;
47
+ };
48
+ const handleConfirm = (data) => {
49
+ data[0].realUrl = data[0].url;
50
+ emits("confirm", data);
51
+ };
52
+ const isEmpty = computed(() => {
53
+ if (!scenList.value.length)
54
+ return true;
55
+ if (choseScen.value !== "") {
56
+ const scen = scenList.value.find(
57
+ (item) => item.classify_id === choseScen.value
58
+ );
59
+ return scen.data === null;
60
+ }
61
+ return !scenList.value.some((item) => item.data && item.data.length > 0);
62
+ });
63
+ onMounted(() => {
64
+ handleSearch({ sys_tag: mediaUseType, limit: 9 });
65
+ });
66
+ return (_ctx, _cache) => {
67
+ return openBlock(), createElementBlock("div", _hoisted_1, [
68
+ createVNode(_sfc_main$1, {
69
+ onSearch: handleSearch,
70
+ onChangeScen: handleChangeScen
71
+ }),
72
+ createElementVNode("div", _hoisted_2, [
73
+ createVNode(unref(Scrollbar), { class: "sys-resource-scroll" }, {
74
+ default: withCtx(() => [
75
+ (openBlock(true), createElementBlock(Fragment, null, renderList(scenList.value, (sceniro) => {
76
+ return openBlock(), createElementBlock(Fragment, {
77
+ key: sceniro.classify_id
78
+ }, [
79
+ sceniro.data && sceniro.data.length > 0 ? withDirectives((openBlock(), createElementBlock("div", _hoisted_3, [
80
+ createElementVNode("div", _hoisted_4, [
81
+ _hoisted_5,
82
+ createTextVNode(" " + toDisplayString(sceniro.scenario_name), 1)
83
+ ]),
84
+ createVNode(_sfc_main$2, {
85
+ "outside-filter": outsideFilter.value,
86
+ sceniro,
87
+ onConfirm: handleConfirm
88
+ }, null, 8, ["outside-filter", "sceniro"])
89
+ ], 512)), [
90
+ [vShow, [sceniro.classify_id, ""].includes(choseScen.value)]
91
+ ]) : createCommentVNode("v-if", true)
92
+ ], 64);
93
+ }), 128)),
94
+ isEmpty.value ? (openBlock(), createElementBlock("div", _hoisted_6, _hoisted_9)) : createCommentVNode("v-if", true)
95
+ ]),
96
+ _: 1
97
+ })
98
+ ])
99
+ ]);
100
+ };
101
+ }
102
+ });
103
+ export { _sfc_main as default };
@@ -1,10 +1,11 @@
1
- import { defineComponent, ref, onMounted, computed, openBlock, createElementBlock, createElementVNode, createCommentVNode, createVNode, unref, withCtx, createBlock, normalizeStyle, withDirectives, Fragment, renderList, createTextVNode, toDisplayString, vShow } from "vue";
1
+ import { defineComponent, inject, ref, onMounted, computed, openBlock, createElementBlock, createElementVNode, createCommentVNode, createVNode, unref, withCtx, createBlock, normalizeStyle, Fragment, withDirectives, renderList, createTextVNode, toDisplayString, vShow } from "vue";
2
2
  import { Tabs, TabPane, Button, Breadcrumb, BreadcrumbItem } from "@arco-design/web-vue";
3
3
  import { IconArrowLeft } from "@arco-design/web-vue/es/icon";
4
4
  import { getAttachmentsAll, getAttachmentsMy, getDirectories } from "../../script/api.js";
5
5
  import _sfc_main$1 from "./DocAiMediaSelected/index.js";
6
- import _sfc_main$2 from "./ToolbarSearch/index.js";
7
- import _sfc_main$3 from "./MainContent/index.js";
6
+ import _sfc_main$2 from "./SystemResourceSelected/index.js";
7
+ import _sfc_main$3 from "./ToolbarSearch/index.js";
8
+ import _sfc_main$4 from "./MainContent/index.js";
8
9
  const _hoisted_1 = {
9
10
  class: "media-selection",
10
11
  unselectable: "on"
@@ -27,6 +28,7 @@ const _sfc_main = defineComponent({
27
28
  setup(__props, { emit: __emit }) {
28
29
  const props = __props;
29
30
  const emit = __emit;
31
+ const mediaUseType = inject("mediaUseType");
30
32
  const confirm = (itemData) => {
31
33
  emit("confirm", itemData);
32
34
  };
@@ -44,7 +46,7 @@ const _sfc_main = defineComponent({
44
46
  });
45
47
  const filter = ref(null);
46
48
  const activeMediaType = ref(
47
- props.ai_static_covers && props.ai_static_covers.length ? "ai" : "all"
49
+ props.ai_static_covers && props.ai_static_covers.length ? "ai" : mediaUseType ? "system" : "all"
48
50
  );
49
51
  const api = ref({ getAttachmentsAll, getAttachmentsMy });
50
52
  const currentDirectory = ref({
@@ -172,6 +174,10 @@ const _sfc_main = defineComponent({
172
174
  key: "ai",
173
175
  title: "AI\u4F18\u9009"
174
176
  })) : createCommentVNode("v-if", true),
177
+ unref(mediaUseType) ? (openBlock(), createBlock(unref(TabPane), {
178
+ key: "system",
179
+ title: "\u5185\u7F6E\u7D20\u6750"
180
+ })) : createCommentVNode("v-if", true),
175
181
  createVNode(unref(TabPane), {
176
182
  key: "all",
177
183
  title: "\u5168\u90E8\u7D20\u6750"
@@ -196,12 +202,15 @@ const _sfc_main = defineComponent({
196
202
  "selected-max": _ctx.selectedMax,
197
203
  preview: _ctx.preview,
198
204
  onConfirm: confirm
199
- }, null, 8, ["ai_static_covers", "ai_gif_covers", "selected-max", "preview"])) : createCommentVNode("v-if", true),
205
+ }, null, 8, ["ai_static_covers", "ai_gif_covers", "selected-max", "preview"])) : activeMediaType.value === "system" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
206
+ createCommentVNode(" \u5185\u7F6E\u7D20\u6750 "),
207
+ createVNode(_sfc_main$2, { onConfirm: confirm })
208
+ ], 2112)) : createCommentVNode("v-if", true),
200
209
  createCommentVNode(" \u7D20\u6750\u5E93\u7D20\u6750 "),
201
210
  createCommentVNode(" \u7EC4\u7EC7\u3001\u6587\u4EF6\u5939\u9762\u5305\u5C51 "),
202
211
  withDirectives(createElementVNode("div", _hoisted_4, [
203
212
  createElementVNode("div", _hoisted_5, [
204
- createVNode(_sfc_main$2, {
213
+ createVNode(_sfc_main$3, {
205
214
  ref_key: "getMoreData",
206
215
  ref: getMoreData,
207
216
  class: "tool-search-box",
@@ -248,7 +257,7 @@ const _sfc_main = defineComponent({
248
257
  _: 1
249
258
  })) : createCommentVNode("v-if", true),
250
259
  createCommentVNode(" \u6211\u7684\u5DE5\u7A0B\u3001\u89C6\u9891\u5217\u8868 "),
251
- createVNode(_sfc_main$3, {
260
+ createVNode(_sfc_main$4, {
252
261
  "folder-list": folderList.value,
253
262
  "file-list": fileList.value,
254
263
  "file-list-count": fileListCount.value,
@@ -5,4 +5,21 @@ export declare function getAttachmentsAll(BASE_API: string, query?: Params): imp
5
5
  export declare function getAttachmentsMy(BASE_API: string, query?: Params): import("axios").AxiosPromise<any>;
6
6
  export declare function getDirectories(BASE_API: string, query?: Params): import("axios").AxiosPromise<any>;
7
7
  export declare function getAccountList(BASE_API: string, id: number, query: Params): import("axios").AxiosPromise<any>;
8
+ /** @description 系统内置素材部分接口 --- */
9
+ /**
10
+ * ps:
11
+ * 1. 内置素材分类 type:
12
+ * thumb:稿件素材
13
+ * compoIcon:组件 icon
14
+ * pushIcon:品宣 icon
15
+ * navBg:导航背景
16
+ * navIcon:导航 icon
17
+ */
18
+ export declare function addSysRs(BASE_API: string, data: any, params: any): import("axios").AxiosPromise<any>;
19
+ export declare function setSysRsClassifyName(BASE_API: string, params: any): import("axios").AxiosPromise<any>;
20
+ export declare function getSysRsClassifyList(BASE_API: string, sys_tag: number): import("axios").AxiosPromise<any>;
21
+ export declare function addSysRsClassify(BASE_API: string, params: any): import("axios").AxiosPromise<any>;
22
+ export declare function delSySRsClassify(BASE_API: string, params: any): import("axios").AxiosPromise<any>;
23
+ export declare function getSysRsByTag(BASE_API: string, params: any): import("axios").AxiosPromise<any>;
24
+ export declare function getSysRsPage(BASE_API: string, params: any): import("axios").AxiosPromise<any>;
8
25
  export {};
@@ -27,4 +27,24 @@ function getAccountList(BASE_API, id, query) {
27
27
  params: query
28
28
  });
29
29
  }
30
- export { getAccountList, getAttachmentsAll, getAttachmentsMy, getDirectories };
30
+ function getSysRsClassifyList(BASE_API, sys_tag) {
31
+ return request(BASE_API, {
32
+ url: `/poplar/v3/sys_attachment/scenario_classifies?sys_tag=${sys_tag}`,
33
+ method: "get"
34
+ });
35
+ }
36
+ function getSysRsByTag(BASE_API, params) {
37
+ return request(BASE_API, {
38
+ url: "/poplar/v3/classified/sys_attachments",
39
+ method: "get",
40
+ params
41
+ });
42
+ }
43
+ function getSysRsPage(BASE_API, params) {
44
+ return request(BASE_API, {
45
+ url: "/poplar/v3/sys_attachments",
46
+ method: "get",
47
+ params
48
+ });
49
+ }
50
+ export { getAccountList, getAttachmentsAll, getAttachmentsMy, getDirectories, getSysRsByTag, getSysRsClassifyList, getSysRsPage };
@@ -8,3 +8,7 @@ export declare type FilesQueryParamType = {
8
8
  offset: number;
9
9
  catalog: string;
10
10
  };
11
+ export declare type MediaUseType = 0 | 1 | 2 | 3 | 4 | 5;
12
+ export declare const mediaUseEnum: {
13
+ [key: string]: MediaUseType;
14
+ };
@@ -0,0 +1,8 @@
1
+ const mediaUseEnum = {
2
+ THUMB: 1,
3
+ COMPOICON: 2,
4
+ PUSHICON: 3,
5
+ NAVBG: 4,
6
+ NAVICON: 5
7
+ };
8
+ export { mediaUseEnum };
@@ -32,12 +32,11 @@
32
32
  width: 100%;
33
33
  height: 100%;
34
34
  overflow: hidden;
35
- overflow: hidden;
36
- border: solid 3px transparent;
35
+ border: solid 1px transparent;
37
36
  border-radius: 4px;
38
37
 
39
38
  &.active {
40
- border: solid 3px #4886ff;
39
+ border: solid 1px #4886ff;
41
40
  border-radius: 4px;
42
41
  }
43
42
 
@@ -43,7 +43,7 @@
43
43
  background: url('../assets/selection/folder.png') no-repeat 13px
44
44
  center;
45
45
  background-size: 17px auto;
46
- border: solid 2px transparent;
46
+ border: solid 1px transparent;
47
47
  border-radius: 4px;
48
48
  }
49
49
 
@@ -74,13 +74,15 @@
74
74
  padding: 14px 16px;
75
75
  line-height: 24px;
76
76
  background: #f7f8fa;
77
- border: 1px solid #ebeef5;
77
+ //border: 1px solid #ebeef5;
78
+ border: 1px solid transparent;
78
79
  border-radius: 4px;
79
80
 
80
81
  &:hover {
81
82
  color: #165dff;
82
83
  background: #f2f3f5;
83
- box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.1);
84
+ border: 1px solid #4886ff;
85
+ box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.1);
84
86
  cursor: pointer;
85
87
  }
86
88
  }
@@ -0,0 +1,138 @@
1
+ .sys-resource-dialog {
2
+ padding: 10px 20px;
3
+
4
+ .scen-module {
5
+ margin-bottom: 20px;
6
+
7
+ .title {
8
+ display: flex;
9
+ gap: 8px;
10
+ align-items: center;
11
+ margin-bottom: 12px;
12
+ font-size: 14px;
13
+
14
+ .line {
15
+ width: 2px;
16
+ height: 14px;
17
+ background-color: #4886ff;
18
+ }
19
+ }
20
+ }
21
+
22
+ .null-file {
23
+ display: flex;
24
+ flex-direction: column;
25
+ justify-content: center;
26
+ height: 300px;
27
+
28
+ .null-pic {
29
+ display: block;
30
+ width: 10%;
31
+ margin: 20px auto;
32
+ }
33
+
34
+ p {
35
+ color: #a2a3a7;
36
+ font-size: 14px;
37
+ text-align: center;
38
+ }
39
+ }
40
+ }
41
+
42
+ .sysfile-filter-container {
43
+ padding: 12px 0;
44
+ }
45
+
46
+ .sys-res-file-list {
47
+ display: flex;
48
+ flex-wrap: wrap;
49
+ gap: 20px;
50
+
51
+ .item-load-more {
52
+ display: flex;
53
+ flex-direction: column;
54
+ gap: 10px;
55
+ align-items: center;
56
+ justify-content: center;
57
+ color: #9a9a9a;
58
+ font-size: 12px;
59
+ cursor: pointer;
60
+
61
+ img {
62
+ width: 72px;
63
+ }
64
+ }
65
+
66
+ .item {
67
+ position: relative;
68
+ width: calc(20% - 20px);
69
+ overflow: hidden;
70
+ cursor: pointer;
71
+
72
+ .move-action {
73
+ opacity: 0.5;
74
+ }
75
+
76
+ .shadow-wrap {
77
+ position: relative;
78
+ overflow: hidden;
79
+ background: #fff;
80
+ border: 1px solid #ebeef5;
81
+ border-radius: 4px;
82
+
83
+ &:hover {
84
+ border: 1px solid #4886ff;
85
+ box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.1);
86
+ }
87
+
88
+ .thumb-wrap {
89
+ position: relative;
90
+ width: 100%;
91
+ background: url('../assets/selection/picBg.png');
92
+ }
93
+
94
+ h4,
95
+ p {
96
+ margin-top: 4px;
97
+ margin-bottom: 2px;
98
+ padding: 0 10px;
99
+ overflow: hidden;
100
+ color: rgba(0, 0, 0, 0.85);
101
+ font-size: 14px;
102
+ white-space: nowrap;
103
+ text-overflow: ellipsis;
104
+ word-wrap: normal;
105
+
106
+ i,
107
+ svg {
108
+ margin-right: 4px;
109
+ color: #e75258;
110
+ font-size: 16px;
111
+ vertical-align: middle;
112
+ }
113
+
114
+ svg {
115
+ margin-right: 4px;
116
+ font-size: 16px;
117
+ vertical-align: middle;
118
+ }
119
+
120
+ span {
121
+ vertical-align: middle;
122
+ }
123
+ }
124
+
125
+ p {
126
+ margin-bottom: 4px;
127
+ font-weight: normal;
128
+ font-size: 12px;
129
+ line-height: 1em;
130
+ opacity: 0.65;
131
+ }
132
+ }
133
+ }
134
+
135
+ &::after {
136
+ height: 50px;
137
+ }
138
+ }