@cmstops/pro-compo 0.1.27 → 0.1.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/dist/index.css +72 -55
  2. package/dist/index.min.css +1 -1
  3. package/es/contentDetailList/components/Content/DocItem/index.js +1 -1
  4. package/es/contentDetailList/components/Content/DocMpItem/index.js +1 -1
  5. package/es/contentDetailList/components/Content/KongoNavItem/index.js +1 -1
  6. package/es/contentDetailList/components/Content/MaccountItem/index.js +1 -1
  7. package/es/contentDetailList/style/index.css +0 -48
  8. package/es/contentDetailList/style/index.less +0 -1
  9. package/es/contentModal/component.js +165 -5
  10. package/es/contentModal/components/CompoList/index.js +13 -6
  11. package/es/contentModal/components/ContentList/MediaFilter/index.js +112 -0
  12. package/es/contentModal/components/ContentList/index.d.ts +0 -0
  13. package/es/contentModal/components/ContentList/index.js +269 -0
  14. package/es/contentModal/components/LiveList/MediaFilter/index.d.ts +0 -0
  15. package/es/contentModal/components/LiveList/MediaFilter/index.js +74 -0
  16. package/es/contentModal/components/LiveList/index.d.ts +0 -0
  17. package/es/contentModal/components/LiveList/index.js +227 -0
  18. package/es/contentModal/components/MpAccountList/MpAccountFilter/index.d.ts +0 -0
  19. package/es/contentModal/components/MpAccountList/MpAccountFilter/index.js +62 -0
  20. package/es/contentModal/components/MpAccountList/index.d.ts +0 -0
  21. package/es/contentModal/components/MpAccountList/index.js +222 -0
  22. package/es/contentModal/components/MpContentList/MediaFilter/index.d.ts +0 -0
  23. package/es/contentModal/components/MpContentList/MediaFilter/index.js +85 -0
  24. package/es/contentModal/components/MpContentList/index.d.ts +0 -0
  25. package/es/contentModal/components/MpContentList/index.js +214 -0
  26. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +176 -12
  27. package/es/contentModal/components/ViewAllColumn/index.js +33 -14
  28. package/es/contentModal/images/user.js +2 -0
  29. package/es/contentModal/script/api.d.ts +3 -0
  30. package/es/contentModal/script/api.js +22 -1
  31. package/es/contentModal/style/ViewAllColumn.less +51 -31
  32. package/es/contentModal/style/index.css +21 -7
  33. package/es/dataTags/component.d.ts +0 -0
  34. package/es/{contentDetailList/components/DocTags/index.js → dataTags/component.js} +9 -7
  35. package/es/dataTags/index.d.ts +2 -0
  36. package/es/dataTags/index.js +7 -0
  37. package/es/dataTags/style/css.js +1 -0
  38. package/es/dataTags/style/index.css +51 -0
  39. package/es/dataTags/style/index.d.ts +1 -0
  40. package/es/dataTags/style/index.js +1 -0
  41. package/{lib/contentDetailList/style/DocTags.less → es/dataTags/style/index.less} +12 -8
  42. package/es/emptyData/component.js +5 -5
  43. package/es/index.css +72 -55
  44. package/es/index.d.ts +1 -0
  45. package/es/index.js +1 -0
  46. package/es/index.less +1 -0
  47. package/es/utils/typeMap.d.ts +6 -15
  48. package/es/utils/typeMap.js +21 -1
  49. package/lib/contentDetailList/components/Content/DocItem/index.js +4 -4
  50. package/lib/contentDetailList/components/Content/DocMpItem/index.js +2 -2
  51. package/lib/contentDetailList/components/Content/KongoNavItem/index.js +2 -2
  52. package/lib/contentDetailList/components/Content/MaccountItem/index.js +2 -2
  53. package/lib/contentDetailList/style/index.css +0 -48
  54. package/lib/contentDetailList/style/index.less +0 -1
  55. package/lib/contentModal/component.js +165 -5
  56. package/lib/contentModal/components/CompoList/index.js +15 -8
  57. package/lib/contentModal/components/ContentList/MediaFilter/index.js +113 -0
  58. package/lib/contentModal/components/ContentList/index.js +270 -0
  59. package/lib/contentModal/components/LiveList/MediaFilter/index.js +75 -0
  60. package/lib/contentModal/components/LiveList/index.js +228 -0
  61. package/lib/contentModal/components/MpAccountList/MpAccountFilter/index.js +63 -0
  62. package/lib/contentModal/components/MpAccountList/index.js +223 -0
  63. package/lib/contentModal/components/MpContentList/MediaFilter/index.js +86 -0
  64. package/lib/contentModal/components/MpContentList/index.js +215 -0
  65. package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +175 -11
  66. package/lib/contentModal/components/ViewAllColumn/index.js +33 -14
  67. package/lib/contentModal/images/user.js +3 -0
  68. package/lib/contentModal/script/api.js +24 -0
  69. package/lib/contentModal/style/ViewAllColumn.less +51 -31
  70. package/lib/contentModal/style/index.css +21 -7
  71. package/lib/{contentDetailList/components/DocTags/index.js → dataTags/component.js} +9 -7
  72. package/lib/dataTags/index.js +8 -0
  73. package/lib/dataTags/style/css.js +2 -0
  74. package/lib/dataTags/style/index.css +51 -0
  75. package/lib/dataTags/style/index.js +2 -0
  76. package/{es/contentDetailList/style/DocTags.less → lib/dataTags/style/index.less} +12 -8
  77. package/lib/emptyData/component.js +4 -4
  78. package/lib/index.css +72 -55
  79. package/lib/index.js +2 -0
  80. package/lib/index.less +1 -0
  81. package/lib/utils/typeMap.js +22 -0
  82. package/package.json +1 -1
  83. /package/es/{contentDetailList/components/DocTags → contentModal/components/ContentList/MediaFilter}/index.d.ts +0 -0
@@ -0,0 +1,214 @@
1
+ import { defineComponent, ref, computed, watch, onMounted, openBlock, createElementBlock, createVNode, createElementVNode, unref, withCtx, withModifiers, createBlock, toDisplayString, renderSlot } from "vue";
2
+ import { Table, Checkbox, Message } from "@arco-design/web-vue";
3
+ import _sfc_main$2 from "../../../typeIcons/component.js";
4
+ import _sfc_main$1 from "./MediaFilter/index.js";
5
+ import useTableBatch from "../../../hooks/batch.js";
6
+ import { getMpContentList } from "../../script/api.js";
7
+ const _hoisted_1 = { class: "view-all-column-container" };
8
+ const _hoisted_2 = { class: "content-table-view" };
9
+ const _hoisted_3 = { class: "title-span" };
10
+ const _hoisted_4 = ["onClick"];
11
+ const _hoisted_5 = { class: "title" };
12
+ const _hoisted_6 = { class: "bottom-view" };
13
+ const _hoisted_7 = { class: "left" };
14
+ const _sfc_main = defineComponent({
15
+ ...{ name: "LiveList" },
16
+ __name: "index",
17
+ props: {
18
+ maxSelect: {},
19
+ outsideSelectData: {},
20
+ defaultSelectedData: {},
21
+ userInfo: {}
22
+ },
23
+ emits: ["change"],
24
+ setup(__props, { emit }) {
25
+ const props = __props;
26
+ const _maxSelect = props.maxSelect || 100;
27
+ const selectedData = ref([]);
28
+ const group_id = ref("all");
29
+ const mediaFileData = ref([]);
30
+ const dataLoading = ref(false);
31
+ const page = ref({
32
+ index: 1,
33
+ size: 10,
34
+ total: 0
35
+ });
36
+ const filter = ref(null);
37
+ const columns = [
38
+ {
39
+ title: "\u6807\u9898",
40
+ dataIndex: "title",
41
+ slotName: "title"
42
+ },
43
+ {
44
+ title: "\u6240\u5C5E\u516C\u4F17\u53F7",
45
+ dataIndex: "account_name",
46
+ slotName: "account_name"
47
+ },
48
+ {
49
+ title: "\u53D1\u5E03\u65F6\u95F4",
50
+ dataIndex: "pub_time",
51
+ slotName: "pub_time"
52
+ }
53
+ ];
54
+ const scrollPercent = { y: "100%" };
55
+ const tempSelectedData = computed(() => {
56
+ return props.defaultSelectedData || [];
57
+ });
58
+ const search = (_filter) => {
59
+ if (_filter.account_uid || _filter.wd) {
60
+ filter.value = { ..._filter };
61
+ } else {
62
+ filter.value = null;
63
+ }
64
+ page.value.index = 1;
65
+ loadData();
66
+ };
67
+ const loadData = async () => {
68
+ let params = {
69
+ page: page.value.index,
70
+ page_size: page.value.size
71
+ };
72
+ if (filter.value) {
73
+ params = { ...params, ...filter.value };
74
+ }
75
+ dataLoading.value = true;
76
+ const { code, message } = await getMpContentList(
77
+ props.userInfo.BASE_API,
78
+ params
79
+ );
80
+ dataLoading.value = false;
81
+ if (code === 0) {
82
+ page.value.total = message.total;
83
+ mediaFileData.value = message.list.map((v) => {
84
+ v.catalog = "mp_content";
85
+ v.target_id = v.id;
86
+ v.target_type = 16;
87
+ v._type = 3;
88
+ return v;
89
+ }) || [];
90
+ }
91
+ };
92
+ const clickCheckbox = (e, record) => {
93
+ e.stopPropagation();
94
+ e.preventDefault();
95
+ selectData(record);
96
+ };
97
+ const selectTableCell = (record) => {
98
+ selectData(record);
99
+ };
100
+ const selectData = (record) => {
101
+ if (checkSameAdd(record)) {
102
+ Message.warning({ content: "\u8BF7\u52FF\u6DFB\u52A0\u91CD\u590D\u6570\u636E", duration: 3e3 });
103
+ return;
104
+ }
105
+ addDataToSelectedList(record);
106
+ };
107
+ const checkSameAdd = (record) => {
108
+ const selected = props.outsideSelectData;
109
+ if (!selected.length)
110
+ return false;
111
+ return selected.map((row) => row.id).includes(record.id);
112
+ };
113
+ const addDataToSelectedList = async (record) => {
114
+ const index = selectedData.value.findIndex((v) => v.id === record.id);
115
+ if (selectedData.value.length < _maxSelect) {
116
+ if (index === -1) {
117
+ selectedData.value.push(record);
118
+ } else {
119
+ selectedData.value.splice(index, 1);
120
+ }
121
+ emitChange();
122
+ } else {
123
+ if (index === -1) {
124
+ selectedData.value.splice(selectedData.value.length - 1, 1);
125
+ selectedData.value.push(record);
126
+ } else {
127
+ selectedData.value.splice(index, 1);
128
+ }
129
+ Message.warning({ content: "\u5DF2\u8FBE\u5230\u9009\u62E9\u6570\u91CF\u7684\u4E0A\u9650", duration: 3e3 });
130
+ emitChange();
131
+ }
132
+ };
133
+ const emitChange = () => {
134
+ emit("change", selectedData.value);
135
+ };
136
+ const {
137
+ isItemChecked,
138
+ hoverBatchBox,
139
+ tableCellMouseEnter,
140
+ tableCellMouseLeave
141
+ } = useTableBatch();
142
+ watch(
143
+ () => tempSelectedData.value,
144
+ (val) => {
145
+ selectedData.value = val;
146
+ }
147
+ );
148
+ watch(
149
+ () => group_id.value,
150
+ () => {
151
+ loadData();
152
+ }
153
+ );
154
+ onMounted(() => {
155
+ loadData();
156
+ });
157
+ return (_ctx, _cache) => {
158
+ return openBlock(), createElementBlock("div", _hoisted_1, [
159
+ createVNode(_sfc_main$1, {
160
+ group_id: group_id.value,
161
+ "onUpdate:group_id": _cache[0] || (_cache[0] = ($event) => group_id.value = $event),
162
+ "user-info": _ctx.userInfo,
163
+ onSearch: search
164
+ }, null, 8, ["group_id", "user-info"]),
165
+ createElementVNode("div", _hoisted_2, [
166
+ createVNode(unref(Table), {
167
+ columns,
168
+ scroll: scrollPercent,
169
+ pagination: false,
170
+ bordered: false,
171
+ data: mediaFileData.value,
172
+ loading: dataLoading.value,
173
+ onCellMouseEnter: unref(tableCellMouseEnter),
174
+ onCellMouseLeave: unref(tableCellMouseLeave),
175
+ onRowClick: selectTableCell
176
+ }, {
177
+ title: withCtx(({ record }) => [
178
+ createElementVNode("span", _hoisted_3, [
179
+ unref(hoverBatchBox)(selectedData.value, record) ? (openBlock(), createElementBlock("span", {
180
+ key: 0,
181
+ onClick: withModifiers(($event) => clickCheckbox($event, record), ["stop"])
182
+ }, [
183
+ createVNode(unref(Checkbox), {
184
+ class: "icon",
185
+ "model-value": unref(isItemChecked)(selectedData.value, record)
186
+ }, null, 8, ["model-value"])
187
+ ], 8, _hoisted_4)) : (openBlock(), createBlock(_sfc_main$2, {
188
+ key: 1,
189
+ class: "icon",
190
+ type: record.series
191
+ }, null, 8, ["type"])),
192
+ createElementVNode("span", _hoisted_5, toDisplayString(record.title || record.alias || "--"), 1)
193
+ ])
194
+ ]),
195
+ account_name: withCtx(({ record }) => [
196
+ createElementVNode("span", null, toDisplayString(record.account_name || record.mp_user_name), 1)
197
+ ]),
198
+ pub_time: withCtx(({ record }) => [
199
+ createElementVNode("span", null, toDisplayString(record.pub_time), 1)
200
+ ]),
201
+ _: 1
202
+ }, 8, ["data", "loading", "onCellMouseEnter", "onCellMouseLeave"])
203
+ ]),
204
+ createElementVNode("div", _hoisted_6, [
205
+ createElementVNode("div", _hoisted_7, [
206
+ renderSlot(_ctx.$slots, "store")
207
+ ]),
208
+ renderSlot(_ctx.$slots, "options")
209
+ ])
210
+ ]);
211
+ };
212
+ }
213
+ });
214
+ export { _sfc_main as default };
@@ -1,4 +1,6 @@
1
- import { defineComponent, ref, watch, openBlock, createElementBlock, createVNode } from "vue";
1
+ import { defineComponent, ref, computed, watch, openBlock, createElementBlock, createVNode, unref, withCtx, Fragment, renderList, createBlock, withDirectives, createTextVNode, vShow } from "vue";
2
+ import { Space, Select, Option, Input, Button } from "@arco-design/web-vue";
3
+ import { docSeries, docThumbMap } from "../../../../utils/doc.js";
2
4
  import _sfc_main$1 from "../columnTree/index.js";
3
5
  const _hoisted_1 = { class: "media-filter-container" };
4
6
  const _sfc_main = defineComponent({
@@ -6,16 +8,102 @@ const _sfc_main = defineComponent({
6
8
  __name: "index",
7
9
  props: {
8
10
  group_id: {},
9
- tree: {},
10
- series: {},
11
- banner: {},
11
+ tree: { default: () => [] },
12
+ series: { default: "all" },
13
+ banner: { default: "all" },
12
14
  height: {},
13
15
  userInfo: {}
14
16
  },
15
- emits: ["update:group_id"],
17
+ emits: ["update:group_id", "search"],
16
18
  setup(__props, { emit }) {
17
19
  const props = __props;
18
20
  const column_id = ref(0);
21
+ const filter = ref({
22
+ keywords: "",
23
+ type: "",
24
+ cover_type: "",
25
+ banner: "",
26
+ sort: -1,
27
+ order: "create_time"
28
+ });
29
+ const bannerOptions = [
30
+ {
31
+ value: "",
32
+ key: "all",
33
+ label: "\u5168\u90E8\u8F6E\u64AD\u7C7B\u578B"
34
+ },
35
+ {
36
+ value: "0",
37
+ label: "\u65E0\u72EC\u7ACB\u8F6E\u64AD"
38
+ },
39
+ {
40
+ value: "1",
41
+ label: "\u6709\u72EC\u7ACB\u8F6E\u64AD"
42
+ }
43
+ ];
44
+ const typeOptions = computed(() => {
45
+ const arr = Object.keys(docSeries).map((key) => {
46
+ return {
47
+ value: key,
48
+ label: docSeries[key].replace("\u7A3F\u4EF6", "")
49
+ };
50
+ });
51
+ const filterArr = arr.filter((item) => {
52
+ if (props.series === "all") {
53
+ return true;
54
+ }
55
+ return props.series.split(",").includes(item.value);
56
+ });
57
+ return [{ value: "", label: "\u5168\u90E8\u7A3F\u4EF6\u7C7B\u578B" }, ...filterArr];
58
+ });
59
+ const thumbOptions = computed(() => {
60
+ const arr = Object.keys(docThumbMap()).map((key) => {
61
+ return {
62
+ value: key,
63
+ label: docThumbMap()[key]
64
+ };
65
+ });
66
+ return [{ value: "", label: "\u5168\u90E8\u5C01\u9762\u7C7B\u578B" }, ...arr];
67
+ });
68
+ const showReset = computed(() => {
69
+ let { banner } = filter.value;
70
+ if (props.banner !== "all") {
71
+ banner = "";
72
+ }
73
+ let series = filter.value.type;
74
+ if (props.series !== "all") {
75
+ series = "";
76
+ }
77
+ return filter.value.keywords || series || filter.value.cover_type || banner;
78
+ });
79
+ const reset = () => {
80
+ filter.value = {
81
+ keywords: "",
82
+ cover_type: "",
83
+ sort: -1,
84
+ order: "create_time"
85
+ };
86
+ if (props.banner !== "all") {
87
+ filter.value.banner = props.banner;
88
+ } else {
89
+ filter.value.banner = "";
90
+ }
91
+ if (props.series !== "all") {
92
+ filter.value.type = props.series;
93
+ } else {
94
+ filter.value.type = "";
95
+ }
96
+ };
97
+ const handleSearch = () => {
98
+ emit("search", filter.value);
99
+ };
100
+ watch(
101
+ () => filter.value,
102
+ (val) => {
103
+ handleSearch();
104
+ },
105
+ { deep: true }
106
+ );
19
107
  watch(
20
108
  () => props.group_id,
21
109
  (val) => {
@@ -30,13 +118,89 @@ const _sfc_main = defineComponent({
30
118
  );
31
119
  return (_ctx, _cache) => {
32
120
  return openBlock(), createElementBlock("div", _hoisted_1, [
33
- createVNode(_sfc_main$1, {
34
- column_id: column_id.value,
35
- "onUpdate:column_id": _cache[0] || (_cache[0] = ($event) => column_id.value = $event),
36
- height: props.height,
37
- tree: props.tree,
38
- "user-info": props.userInfo
39
- }, null, 8, ["column_id", "height", "tree", "user-info"])
121
+ createVNode(unref(Space), { size: "large" }, {
122
+ default: withCtx(() => [
123
+ createVNode(_sfc_main$1, {
124
+ column_id: column_id.value,
125
+ "onUpdate:column_id": _cache[0] || (_cache[0] = ($event) => column_id.value = $event),
126
+ height: props.height,
127
+ tree: props.tree,
128
+ "user-info": props.userInfo
129
+ }, null, 8, ["column_id", "height", "tree", "user-info"]),
130
+ createVNode(unref(Select), {
131
+ modelValue: filter.value.type,
132
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => filter.value.type = $event),
133
+ class: "filter-item",
134
+ placeholder: "\u7C7B\u578B"
135
+ }, {
136
+ default: withCtx(() => [
137
+ (openBlock(true), createElementBlock(Fragment, null, renderList(typeOptions.value, (item) => {
138
+ return openBlock(), createBlock(unref(Option), {
139
+ key: item.value,
140
+ label: item.label,
141
+ value: item.value
142
+ }, null, 8, ["label", "value"]);
143
+ }), 128))
144
+ ]),
145
+ _: 1
146
+ }, 8, ["modelValue"]),
147
+ createVNode(unref(Select), {
148
+ modelValue: filter.value.cover_type,
149
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => filter.value.cover_type = $event),
150
+ class: "filter-item",
151
+ placeholder: "\u5C01\u9762"
152
+ }, {
153
+ default: withCtx(() => [
154
+ (openBlock(true), createElementBlock(Fragment, null, renderList(thumbOptions.value, (item) => {
155
+ return openBlock(), createBlock(unref(Option), {
156
+ key: item.value,
157
+ label: item.label,
158
+ value: item.value
159
+ }, null, 8, ["label", "value"]);
160
+ }), 128))
161
+ ]),
162
+ _: 1
163
+ }, 8, ["modelValue"]),
164
+ createVNode(unref(Select), {
165
+ modelValue: filter.value.banner,
166
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => filter.value.banner = $event),
167
+ class: "filter-item",
168
+ placeholder: "\u72EC\u7ACB\u8F6E\u64AD"
169
+ }, {
170
+ default: withCtx(() => [
171
+ (openBlock(), createElementBlock(Fragment, null, renderList(bannerOptions, (item) => {
172
+ return createVNode(unref(Option), {
173
+ key: item.value,
174
+ label: item.label,
175
+ value: item.value
176
+ }, null, 8, ["label", "value"]);
177
+ }), 64))
178
+ ]),
179
+ _: 1
180
+ }, 8, ["modelValue"]),
181
+ createVNode(unref(Input), {
182
+ modelValue: filter.value.keywords,
183
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => filter.value.keywords = $event),
184
+ class: "filter-item",
185
+ "allow-clear": "",
186
+ placeholder: "\u8BF7\u8F93\u5165\u5185\u5BB9\u6807\u9898",
187
+ onPressEnter: handleSearch
188
+ }, null, 8, ["modelValue"]),
189
+ withDirectives(createVNode(unref(Button), {
190
+ type: "text",
191
+ size: "small",
192
+ onClick: reset
193
+ }, {
194
+ default: withCtx(() => [
195
+ createTextVNode("\u91CD\u7F6E")
196
+ ]),
197
+ _: 1
198
+ }, 512), [
199
+ [vShow, showReset.value]
200
+ ])
201
+ ]),
202
+ _: 1
203
+ })
40
204
  ]);
41
205
  };
42
206
  }
@@ -2,7 +2,9 @@ import { defineComponent, ref, computed, watch, onMounted, openBlock, createElem
2
2
  import { Table, Checkbox, Pagination, Message } from "@arco-design/web-vue";
3
3
  import _sfc_main$2 from "../../../typeIcons/component.js";
4
4
  import _sfc_main$1 from "./MediaFilter/index.js";
5
+ import _sfc_main$3 from "../../../dataTags/component.js";
5
6
  import useTableBatch from "../../../hooks/batch.js";
7
+ import { timeFormat } from "../../../utils/index.js";
6
8
  import { getCategoryMediaNew, checkCommitFulfillment, getCategoryCategoriesTree } from "../../script/api.js";
7
9
  const _hoisted_1 = { class: "view-all-column-container" };
8
10
  const _hoisted_2 = { class: "content-table-view" };
@@ -27,6 +29,15 @@ const _sfc_main = defineComponent({
27
29
  const props = __props;
28
30
  const _maxSelect = props.maxSelect || 100;
29
31
  const selectedData = ref([]);
32
+ const categoryCascaderData = ref([]);
33
+ const listMinHeight = ref(0);
34
+ const mediaFileData = ref([]);
35
+ const filter = ref(null);
36
+ const page = ref({
37
+ index: 1,
38
+ size: 30,
39
+ total: 0
40
+ });
30
41
  const tempSelectedData = computed(() => {
31
42
  return props.defaultSelectedData || [];
32
43
  });
@@ -37,7 +48,9 @@ const _sfc_main = defineComponent({
37
48
  }
38
49
  );
39
50
  const importantBanner = computed(() => {
40
- return props.banner !== "all";
51
+ if (!props.banner || props.banner === "all")
52
+ return false;
53
+ return !!props.banner;
41
54
  });
42
55
  const {
43
56
  isItemChecked,
@@ -90,10 +103,23 @@ const _sfc_main = defineComponent({
90
103
  emit("change", selectedData.value);
91
104
  };
92
105
  const group_id = ref(0);
93
- const categoryCascaderData = ref([]);
94
- const listMinHeight = ref(0);
95
106
  const scrollPercent = { y: "100%" };
96
- const search = () => {
107
+ const search = (_filter) => {
108
+ _filter = { ..._filter };
109
+ const where = [];
110
+ _filter.keywords && where.push(`kw:${_filter.keywords}`);
111
+ _filter.type && where.push(`series:${_filter.type}`);
112
+ _filter.state && where.push(`state:${_filter.state}`);
113
+ _filter.cover_type && where.push(`cover_type:${_filter.cover_type}`);
114
+ _filter.banner && where.push(`banner:${_filter.banner}`);
115
+ if (_filter.publish_date && Array.isArray(_filter.publish_date) && _filter.publish_date.length > 0) {
116
+ where.push(`publish_from:${_filter.publish_date[0] / 1e3}`);
117
+ where.push(`publish_to:${_filter.publish_date[1] / 1e3}`);
118
+ }
119
+ _filter.where = where;
120
+ filter.value = { ..._filter };
121
+ page.value.index = 1;
122
+ loadData();
97
123
  };
98
124
  const pageChangeHandle = (index) => {
99
125
  page.value.index = index;
@@ -123,11 +149,6 @@ const _sfc_main = defineComponent({
123
149
  categoryCascaderData.value = arr;
124
150
  }
125
151
  };
126
- const page = ref({
127
- index: 1,
128
- size: 30,
129
- total: 0
130
- });
131
152
  const columns = [
132
153
  {
133
154
  title: "\u6807\u9898",
@@ -150,8 +171,6 @@ const _sfc_main = defineComponent({
150
171
  slotName: "pub_time"
151
172
  }
152
173
  ];
153
- const mediaFileData = ref([]);
154
- const filter = ref(null);
155
174
  const importantSeries = computed(() => {
156
175
  return props.series !== "all";
157
176
  });
@@ -191,7 +210,7 @@ const _sfc_main = defineComponent({
191
210
  v.catalog = "doc";
192
211
  v.target_id = v.id;
193
212
  v.target_type = 3;
194
- v.pub_time = v.created_at;
213
+ v.pub_time = v.pub_time || v.created_at;
195
214
  v.update_time = v.updated_at;
196
215
  v.pub_user_alias = v.author_alias;
197
216
  return v;
@@ -246,13 +265,13 @@ const _sfc_main = defineComponent({
246
265
  ])
247
266
  ]),
248
267
  series: withCtx(({ record }) => [
249
- createElementVNode("span", null, toDisplayString(record.series), 1)
268
+ createVNode(_sfc_main$3, { item: record }, null, 8, ["item"])
250
269
  ]),
251
270
  duty_editor: withCtx(({ record }) => [
252
271
  createElementVNode("span", null, toDisplayString(record.duty_editor || "--"), 1)
253
272
  ]),
254
273
  pub_time: withCtx(({ record }) => [
255
- createElementVNode("span", null, toDisplayString(record.pub_time), 1)
274
+ createElementVNode("span", null, toDisplayString(unref(timeFormat)(record.pub_time)), 1)
256
275
  ]),
257
276
  _: 1
258
277
  }, 8, ["data", "onCellMouseEnter", "onCellMouseLeave"])
@@ -0,0 +1,2 @@
1
+ var _imports_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAACQCAMAAADQmBKKAAABFFBMVEUAAADDw8Pp6enCwsLDw8PDw8PDw8PJycnb29vDw8PDw8PDw8PDw8PCwsLExMTExMTExMTExMTGxsbGxsbz8/PDw8PGxsbR0dHJycnExMTw8PDz8/PCwsLy8vLCwsLCwsLCwsLz8/PCwsLCwsLCwsLCwsLz8/PExMTFxcXFxcX09PT29vby8vLz8/P09PTz8/Pw8PDz8/Py8vLy8vLz8/Pz8/Pz8/P////z8/PLy8vz8/Pq6urCwsLY2NilpaXy8vLQ0NDW1tbT09PNzc3KysrDw8PHx8fV1dXFxcXAwMC9vb2oqKi6urqtra24uLi/v7+vr6+qqqrn5+e0tLSysrLv7+/g4ODj4+O2trbs7Oza2trd3d1iEndDAAAAPHRSTlMA0QTrrN6IFwf69tnEs3FrTUQqH9HAJBoOSUT349vOybmuqJOGem1XQTAsHuy3iHZN48nGw6iTBuvrV1cx68UsAAAHaklEQVR42uzX626bMBgGYBg5H5dEXTepaqse1PUeXlsmgTSBkASFH7n/K5lIN3nrMJ8P6fZjey4Avdgvn433379lNhnfN24HfjPodoOmP7ht3I8nM++veB7d+T1U6vl3o2fvT5qOGwEIQWM89f6IaesKmq5a756pPbqGketR23s/k2EXxrrDifc+Pt7A0s1H7+w+PPlw4D99OPPq9OGof85Vmg1xBsNzTczOYw9n0XvseGfwtQ+l3fZQZHmepnmeZ8Vhu6P27at7mR9iVFtv9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MqOsTHzR1OAcVPqAQnGcIyF/BMMDJYh35Q2ONcIkYfOY3sg8RrhTbipZfsrg2QUYiUdh8mdFla7PDufgtUIK/n/IE5EjtwZHeFSUAAAAASUVORK5CYII=";
2
+ export { _imports_0 as default };
@@ -7,4 +7,7 @@ export declare function getCategoryMediaNew(BASE_API: string, params?: Params):
7
7
  export declare function checkCommitFulfillment(BASE_API: string, params?: Params): Promise<boolean>;
8
8
  export declare function searchMlists(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
9
9
  export declare function getCategorylistsGroups(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any>>;
10
+ export declare function searchMpaccount(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
11
+ export declare function getBroadcastList(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
12
+ export declare function getMpContentList(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
10
13
  export {};
@@ -42,4 +42,25 @@ async function getCategorylistsGroups(BASE_API, params) {
42
42
  params
43
43
  });
44
44
  }
45
- export { checkCommitFulfillment, getCategoryCategoriesTree, getCategoryMediaNew, getCategoryPath, getCategorylistsGroups, searchMlists };
45
+ function searchMpaccount(BASE_API, params) {
46
+ return request(BASE_API, {
47
+ url: `/poplar/v3/poppy/mp_account/search`,
48
+ method: "get",
49
+ params
50
+ });
51
+ }
52
+ function getBroadcastList(BASE_API, params) {
53
+ return request(BASE_API, {
54
+ url: "/poplar/v3/ilives",
55
+ method: "get",
56
+ params
57
+ });
58
+ }
59
+ function getMpContentList(BASE_API, params) {
60
+ return request(BASE_API, {
61
+ url: "/poplar/v3/mp/media/list",
62
+ method: "get",
63
+ params
64
+ });
65
+ }
66
+ export { checkCommitFulfillment, getBroadcastList, getCategoryCategoriesTree, getCategoryMediaNew, getCategoryPath, getCategorylistsGroups, getMpContentList, searchMlists, searchMpaccount };
@@ -1,34 +1,54 @@
1
1
  .view-all-column-container {
2
- height: 100%;
3
- .content-table-view {
4
- height: calc(100% - 110px);
5
- .title-span {
6
- width: 100%;
7
- display: block;
8
- text-overflow: ellipsis;
9
- overflow: hidden;
10
- white-space: nowrap;
11
- .icon {
12
- width: 20px;
13
- height: 25px;
14
- margin-right: 8px;
15
- padding-left: 0;
16
- font-size: 18px;
17
- vertical-align: middle;
18
- display: inline-block;
19
- text-align: center;
20
- }
21
- }
2
+ height: 100%;
3
+
4
+ .content-table-view {
5
+ height: calc(100% - 110px);
6
+
7
+ .title-span,
8
+ .mp_title-span {
9
+ display: block;
10
+ width: 100%;
11
+ overflow: hidden;
12
+ white-space: nowrap;
13
+ text-overflow: ellipsis;
14
+
15
+ .icon {
16
+ display: inline-block;
17
+ width: 20px;
18
+ height: 25px;
19
+ margin-right: 8px;
20
+ padding-left: 0;
21
+ font-size: 18px;
22
+ text-align: center;
23
+ vertical-align: middle;
24
+ }
22
25
  }
23
- .bottom-view {
24
- height: 60px;
25
- margin: 0px 15px;
26
- display: flex;
27
- align-items: center;
28
- justify-content: space-between;
29
- .left {
30
- display: flex;
31
- align-items: center;
32
- }
26
+
27
+ .mp_title-span {
28
+ margin-left: 10px;
33
29
  }
34
- }
30
+
31
+ .user-avatar {
32
+ display: inline-block;
33
+ width: 25px;
34
+ height: 25px;
35
+ margin-right: 12px;
36
+ vertical-align: middle;
37
+ border-radius: 50%;
38
+ cursor: pointer;
39
+ }
40
+ }
41
+
42
+ .bottom-view {
43
+ display: flex;
44
+ align-items: center;
45
+ justify-content: space-between;
46
+ height: 60px;
47
+ margin: 0 15px;
48
+
49
+ .left {
50
+ display: flex;
51
+ align-items: center;
52
+ }
53
+ }
54
+ }