@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,215 @@
1
+ "use strict";
2
+ var vue = require("vue");
3
+ var webVue = require("@arco-design/web-vue");
4
+ var component = require("../../../typeIcons/component.js");
5
+ var index = require("./MediaFilter/index.js");
6
+ var batch = require("../../../hooks/batch.js");
7
+ var api = require("../../script/api.js");
8
+ const _hoisted_1 = { class: "view-all-column-container" };
9
+ const _hoisted_2 = { class: "content-table-view" };
10
+ const _hoisted_3 = { class: "title-span" };
11
+ const _hoisted_4 = ["onClick"];
12
+ const _hoisted_5 = { class: "title" };
13
+ const _hoisted_6 = { class: "bottom-view" };
14
+ const _hoisted_7 = { class: "left" };
15
+ const _sfc_main = vue.defineComponent({
16
+ ...{ name: "LiveList" },
17
+ __name: "index",
18
+ props: {
19
+ maxSelect: {},
20
+ outsideSelectData: {},
21
+ defaultSelectedData: {},
22
+ userInfo: {}
23
+ },
24
+ emits: ["change"],
25
+ setup(__props, { emit }) {
26
+ const props = __props;
27
+ const _maxSelect = props.maxSelect || 100;
28
+ const selectedData = vue.ref([]);
29
+ const group_id = vue.ref("all");
30
+ const mediaFileData = vue.ref([]);
31
+ const dataLoading = vue.ref(false);
32
+ const page = vue.ref({
33
+ index: 1,
34
+ size: 10,
35
+ total: 0
36
+ });
37
+ const filter = vue.ref(null);
38
+ const columns = [
39
+ {
40
+ title: "\u6807\u9898",
41
+ dataIndex: "title",
42
+ slotName: "title"
43
+ },
44
+ {
45
+ title: "\u6240\u5C5E\u516C\u4F17\u53F7",
46
+ dataIndex: "account_name",
47
+ slotName: "account_name"
48
+ },
49
+ {
50
+ title: "\u53D1\u5E03\u65F6\u95F4",
51
+ dataIndex: "pub_time",
52
+ slotName: "pub_time"
53
+ }
54
+ ];
55
+ const scrollPercent = { y: "100%" };
56
+ const tempSelectedData = vue.computed(() => {
57
+ return props.defaultSelectedData || [];
58
+ });
59
+ const search = (_filter) => {
60
+ if (_filter.account_uid || _filter.wd) {
61
+ filter.value = { ..._filter };
62
+ } else {
63
+ filter.value = null;
64
+ }
65
+ page.value.index = 1;
66
+ loadData();
67
+ };
68
+ const loadData = async () => {
69
+ let params = {
70
+ page: page.value.index,
71
+ page_size: page.value.size
72
+ };
73
+ if (filter.value) {
74
+ params = { ...params, ...filter.value };
75
+ }
76
+ dataLoading.value = true;
77
+ const { code, message } = await api.getMpContentList(
78
+ props.userInfo.BASE_API,
79
+ params
80
+ );
81
+ dataLoading.value = false;
82
+ if (code === 0) {
83
+ page.value.total = message.total;
84
+ mediaFileData.value = message.list.map((v) => {
85
+ v.catalog = "mp_content";
86
+ v.target_id = v.id;
87
+ v.target_type = 16;
88
+ v._type = 3;
89
+ return v;
90
+ }) || [];
91
+ }
92
+ };
93
+ const clickCheckbox = (e, record) => {
94
+ e.stopPropagation();
95
+ e.preventDefault();
96
+ selectData(record);
97
+ };
98
+ const selectTableCell = (record) => {
99
+ selectData(record);
100
+ };
101
+ const selectData = (record) => {
102
+ if (checkSameAdd(record)) {
103
+ webVue.Message.warning({ content: "\u8BF7\u52FF\u6DFB\u52A0\u91CD\u590D\u6570\u636E", duration: 3e3 });
104
+ return;
105
+ }
106
+ addDataToSelectedList(record);
107
+ };
108
+ const checkSameAdd = (record) => {
109
+ const selected = props.outsideSelectData;
110
+ if (!selected.length)
111
+ return false;
112
+ return selected.map((row) => row.id).includes(record.id);
113
+ };
114
+ const addDataToSelectedList = async (record) => {
115
+ const index2 = selectedData.value.findIndex((v) => v.id === record.id);
116
+ if (selectedData.value.length < _maxSelect) {
117
+ if (index2 === -1) {
118
+ selectedData.value.push(record);
119
+ } else {
120
+ selectedData.value.splice(index2, 1);
121
+ }
122
+ emitChange();
123
+ } else {
124
+ if (index2 === -1) {
125
+ selectedData.value.splice(selectedData.value.length - 1, 1);
126
+ selectedData.value.push(record);
127
+ } else {
128
+ selectedData.value.splice(index2, 1);
129
+ }
130
+ webVue.Message.warning({ content: "\u5DF2\u8FBE\u5230\u9009\u62E9\u6570\u91CF\u7684\u4E0A\u9650", duration: 3e3 });
131
+ emitChange();
132
+ }
133
+ };
134
+ const emitChange = () => {
135
+ emit("change", selectedData.value);
136
+ };
137
+ const {
138
+ isItemChecked,
139
+ hoverBatchBox,
140
+ tableCellMouseEnter,
141
+ tableCellMouseLeave
142
+ } = batch();
143
+ vue.watch(
144
+ () => tempSelectedData.value,
145
+ (val) => {
146
+ selectedData.value = val;
147
+ }
148
+ );
149
+ vue.watch(
150
+ () => group_id.value,
151
+ () => {
152
+ loadData();
153
+ }
154
+ );
155
+ vue.onMounted(() => {
156
+ loadData();
157
+ });
158
+ return (_ctx, _cache) => {
159
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
160
+ vue.createVNode(index, {
161
+ group_id: group_id.value,
162
+ "onUpdate:group_id": _cache[0] || (_cache[0] = ($event) => group_id.value = $event),
163
+ "user-info": _ctx.userInfo,
164
+ onSearch: search
165
+ }, null, 8, ["group_id", "user-info"]),
166
+ vue.createElementVNode("div", _hoisted_2, [
167
+ vue.createVNode(vue.unref(webVue.Table), {
168
+ columns,
169
+ scroll: scrollPercent,
170
+ pagination: false,
171
+ bordered: false,
172
+ data: mediaFileData.value,
173
+ loading: dataLoading.value,
174
+ onCellMouseEnter: vue.unref(tableCellMouseEnter),
175
+ onCellMouseLeave: vue.unref(tableCellMouseLeave),
176
+ onRowClick: selectTableCell
177
+ }, {
178
+ title: vue.withCtx(({ record }) => [
179
+ vue.createElementVNode("span", _hoisted_3, [
180
+ vue.unref(hoverBatchBox)(selectedData.value, record) ? (vue.openBlock(), vue.createElementBlock("span", {
181
+ key: 0,
182
+ onClick: vue.withModifiers(($event) => clickCheckbox($event, record), ["stop"])
183
+ }, [
184
+ vue.createVNode(vue.unref(webVue.Checkbox), {
185
+ class: "icon",
186
+ "model-value": vue.unref(isItemChecked)(selectedData.value, record)
187
+ }, null, 8, ["model-value"])
188
+ ], 8, _hoisted_4)) : (vue.openBlock(), vue.createBlock(component, {
189
+ key: 1,
190
+ class: "icon",
191
+ type: record.series
192
+ }, null, 8, ["type"])),
193
+ vue.createElementVNode("span", _hoisted_5, vue.toDisplayString(record.title || record.alias || "--"), 1)
194
+ ])
195
+ ]),
196
+ account_name: vue.withCtx(({ record }) => [
197
+ vue.createElementVNode("span", null, vue.toDisplayString(record.account_name || record.mp_user_name), 1)
198
+ ]),
199
+ pub_time: vue.withCtx(({ record }) => [
200
+ vue.createElementVNode("span", null, vue.toDisplayString(record.pub_time), 1)
201
+ ]),
202
+ _: 1
203
+ }, 8, ["data", "loading", "onCellMouseEnter", "onCellMouseLeave"])
204
+ ]),
205
+ vue.createElementVNode("div", _hoisted_6, [
206
+ vue.createElementVNode("div", _hoisted_7, [
207
+ vue.renderSlot(_ctx.$slots, "store")
208
+ ]),
209
+ vue.renderSlot(_ctx.$slots, "options")
210
+ ])
211
+ ]);
212
+ };
213
+ }
214
+ });
215
+ module.exports = _sfc_main;
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  var vue = require("vue");
3
+ var webVue = require("@arco-design/web-vue");
4
+ var doc = require("../../../../utils/doc.js");
3
5
  var index = require("../columnTree/index.js");
4
6
  const _hoisted_1 = { class: "media-filter-container" };
5
7
  const _sfc_main = vue.defineComponent({
@@ -7,16 +9,102 @@ const _sfc_main = vue.defineComponent({
7
9
  __name: "index",
8
10
  props: {
9
11
  group_id: {},
10
- tree: {},
11
- series: {},
12
- banner: {},
12
+ tree: { default: () => [] },
13
+ series: { default: "all" },
14
+ banner: { default: "all" },
13
15
  height: {},
14
16
  userInfo: {}
15
17
  },
16
- emits: ["update:group_id"],
18
+ emits: ["update:group_id", "search"],
17
19
  setup(__props, { emit }) {
18
20
  const props = __props;
19
21
  const column_id = vue.ref(0);
22
+ const filter = vue.ref({
23
+ keywords: "",
24
+ type: "",
25
+ cover_type: "",
26
+ banner: "",
27
+ sort: -1,
28
+ order: "create_time"
29
+ });
30
+ const bannerOptions = [
31
+ {
32
+ value: "",
33
+ key: "all",
34
+ label: "\u5168\u90E8\u8F6E\u64AD\u7C7B\u578B"
35
+ },
36
+ {
37
+ value: "0",
38
+ label: "\u65E0\u72EC\u7ACB\u8F6E\u64AD"
39
+ },
40
+ {
41
+ value: "1",
42
+ label: "\u6709\u72EC\u7ACB\u8F6E\u64AD"
43
+ }
44
+ ];
45
+ const typeOptions = vue.computed(() => {
46
+ const arr = Object.keys(doc.docSeries).map((key) => {
47
+ return {
48
+ value: key,
49
+ label: doc.docSeries[key].replace("\u7A3F\u4EF6", "")
50
+ };
51
+ });
52
+ const filterArr = arr.filter((item) => {
53
+ if (props.series === "all") {
54
+ return true;
55
+ }
56
+ return props.series.split(",").includes(item.value);
57
+ });
58
+ return [{ value: "", label: "\u5168\u90E8\u7A3F\u4EF6\u7C7B\u578B" }, ...filterArr];
59
+ });
60
+ const thumbOptions = vue.computed(() => {
61
+ const arr = Object.keys(doc.docThumbMap()).map((key) => {
62
+ return {
63
+ value: key,
64
+ label: doc.docThumbMap()[key]
65
+ };
66
+ });
67
+ return [{ value: "", label: "\u5168\u90E8\u5C01\u9762\u7C7B\u578B" }, ...arr];
68
+ });
69
+ const showReset = vue.computed(() => {
70
+ let { banner } = filter.value;
71
+ if (props.banner !== "all") {
72
+ banner = "";
73
+ }
74
+ let series = filter.value.type;
75
+ if (props.series !== "all") {
76
+ series = "";
77
+ }
78
+ return filter.value.keywords || series || filter.value.cover_type || banner;
79
+ });
80
+ const reset = () => {
81
+ filter.value = {
82
+ keywords: "",
83
+ cover_type: "",
84
+ sort: -1,
85
+ order: "create_time"
86
+ };
87
+ if (props.banner !== "all") {
88
+ filter.value.banner = props.banner;
89
+ } else {
90
+ filter.value.banner = "";
91
+ }
92
+ if (props.series !== "all") {
93
+ filter.value.type = props.series;
94
+ } else {
95
+ filter.value.type = "";
96
+ }
97
+ };
98
+ const handleSearch = () => {
99
+ emit("search", filter.value);
100
+ };
101
+ vue.watch(
102
+ () => filter.value,
103
+ (val) => {
104
+ handleSearch();
105
+ },
106
+ { deep: true }
107
+ );
20
108
  vue.watch(
21
109
  () => props.group_id,
22
110
  (val) => {
@@ -31,13 +119,89 @@ const _sfc_main = vue.defineComponent({
31
119
  );
32
120
  return (_ctx, _cache) => {
33
121
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
34
- vue.createVNode(index, {
35
- column_id: column_id.value,
36
- "onUpdate:column_id": _cache[0] || (_cache[0] = ($event) => column_id.value = $event),
37
- height: props.height,
38
- tree: props.tree,
39
- "user-info": props.userInfo
40
- }, null, 8, ["column_id", "height", "tree", "user-info"])
122
+ vue.createVNode(vue.unref(webVue.Space), { size: "large" }, {
123
+ default: vue.withCtx(() => [
124
+ vue.createVNode(index, {
125
+ column_id: column_id.value,
126
+ "onUpdate:column_id": _cache[0] || (_cache[0] = ($event) => column_id.value = $event),
127
+ height: props.height,
128
+ tree: props.tree,
129
+ "user-info": props.userInfo
130
+ }, null, 8, ["column_id", "height", "tree", "user-info"]),
131
+ vue.createVNode(vue.unref(webVue.Select), {
132
+ modelValue: filter.value.type,
133
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => filter.value.type = $event),
134
+ class: "filter-item",
135
+ placeholder: "\u7C7B\u578B"
136
+ }, {
137
+ default: vue.withCtx(() => [
138
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(typeOptions.value, (item) => {
139
+ return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
140
+ key: item.value,
141
+ label: item.label,
142
+ value: item.value
143
+ }, null, 8, ["label", "value"]);
144
+ }), 128))
145
+ ]),
146
+ _: 1
147
+ }, 8, ["modelValue"]),
148
+ vue.createVNode(vue.unref(webVue.Select), {
149
+ modelValue: filter.value.cover_type,
150
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => filter.value.cover_type = $event),
151
+ class: "filter-item",
152
+ placeholder: "\u5C01\u9762"
153
+ }, {
154
+ default: vue.withCtx(() => [
155
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(thumbOptions.value, (item) => {
156
+ return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
157
+ key: item.value,
158
+ label: item.label,
159
+ value: item.value
160
+ }, null, 8, ["label", "value"]);
161
+ }), 128))
162
+ ]),
163
+ _: 1
164
+ }, 8, ["modelValue"]),
165
+ vue.createVNode(vue.unref(webVue.Select), {
166
+ modelValue: filter.value.banner,
167
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => filter.value.banner = $event),
168
+ class: "filter-item",
169
+ placeholder: "\u72EC\u7ACB\u8F6E\u64AD"
170
+ }, {
171
+ default: vue.withCtx(() => [
172
+ (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(bannerOptions, (item) => {
173
+ return vue.createVNode(vue.unref(webVue.Option), {
174
+ key: item.value,
175
+ label: item.label,
176
+ value: item.value
177
+ }, null, 8, ["label", "value"]);
178
+ }), 64))
179
+ ]),
180
+ _: 1
181
+ }, 8, ["modelValue"]),
182
+ vue.createVNode(vue.unref(webVue.Input), {
183
+ modelValue: filter.value.keywords,
184
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => filter.value.keywords = $event),
185
+ class: "filter-item",
186
+ "allow-clear": "",
187
+ placeholder: "\u8BF7\u8F93\u5165\u5185\u5BB9\u6807\u9898",
188
+ onPressEnter: handleSearch
189
+ }, null, 8, ["modelValue"]),
190
+ vue.withDirectives(vue.createVNode(vue.unref(webVue.Button), {
191
+ type: "text",
192
+ size: "small",
193
+ onClick: reset
194
+ }, {
195
+ default: vue.withCtx(() => [
196
+ vue.createTextVNode("\u91CD\u7F6E")
197
+ ]),
198
+ _: 1
199
+ }, 512), [
200
+ [vue.vShow, showReset.value]
201
+ ])
202
+ ]),
203
+ _: 1
204
+ })
41
205
  ]);
42
206
  };
43
207
  }
@@ -3,7 +3,9 @@ var vue = require("vue");
3
3
  var webVue = require("@arco-design/web-vue");
4
4
  var component = require("../../../typeIcons/component.js");
5
5
  var index = require("./MediaFilter/index.js");
6
+ var component$1 = require("../../../dataTags/component.js");
6
7
  var batch = require("../../../hooks/batch.js");
8
+ var index$1 = require("../../../utils/index.js");
7
9
  var api = require("../../script/api.js");
8
10
  const _hoisted_1 = { class: "view-all-column-container" };
9
11
  const _hoisted_2 = { class: "content-table-view" };
@@ -28,6 +30,15 @@ const _sfc_main = vue.defineComponent({
28
30
  const props = __props;
29
31
  const _maxSelect = props.maxSelect || 100;
30
32
  const selectedData = vue.ref([]);
33
+ const categoryCascaderData = vue.ref([]);
34
+ const listMinHeight = vue.ref(0);
35
+ const mediaFileData = vue.ref([]);
36
+ const filter = vue.ref(null);
37
+ const page = vue.ref({
38
+ index: 1,
39
+ size: 30,
40
+ total: 0
41
+ });
31
42
  const tempSelectedData = vue.computed(() => {
32
43
  return props.defaultSelectedData || [];
33
44
  });
@@ -38,7 +49,9 @@ const _sfc_main = vue.defineComponent({
38
49
  }
39
50
  );
40
51
  const importantBanner = vue.computed(() => {
41
- return props.banner !== "all";
52
+ if (!props.banner || props.banner === "all")
53
+ return false;
54
+ return !!props.banner;
42
55
  });
43
56
  const {
44
57
  isItemChecked,
@@ -91,10 +104,23 @@ const _sfc_main = vue.defineComponent({
91
104
  emit("change", selectedData.value);
92
105
  };
93
106
  const group_id = vue.ref(0);
94
- const categoryCascaderData = vue.ref([]);
95
- const listMinHeight = vue.ref(0);
96
107
  const scrollPercent = { y: "100%" };
97
- const search = () => {
108
+ const search = (_filter) => {
109
+ _filter = { ..._filter };
110
+ const where = [];
111
+ _filter.keywords && where.push(`kw:${_filter.keywords}`);
112
+ _filter.type && where.push(`series:${_filter.type}`);
113
+ _filter.state && where.push(`state:${_filter.state}`);
114
+ _filter.cover_type && where.push(`cover_type:${_filter.cover_type}`);
115
+ _filter.banner && where.push(`banner:${_filter.banner}`);
116
+ if (_filter.publish_date && Array.isArray(_filter.publish_date) && _filter.publish_date.length > 0) {
117
+ where.push(`publish_from:${_filter.publish_date[0] / 1e3}`);
118
+ where.push(`publish_to:${_filter.publish_date[1] / 1e3}`);
119
+ }
120
+ _filter.where = where;
121
+ filter.value = { ..._filter };
122
+ page.value.index = 1;
123
+ loadData();
98
124
  };
99
125
  const pageChangeHandle = (index2) => {
100
126
  page.value.index = index2;
@@ -124,11 +150,6 @@ const _sfc_main = vue.defineComponent({
124
150
  categoryCascaderData.value = arr;
125
151
  }
126
152
  };
127
- const page = vue.ref({
128
- index: 1,
129
- size: 30,
130
- total: 0
131
- });
132
153
  const columns = [
133
154
  {
134
155
  title: "\u6807\u9898",
@@ -151,8 +172,6 @@ const _sfc_main = vue.defineComponent({
151
172
  slotName: "pub_time"
152
173
  }
153
174
  ];
154
- const mediaFileData = vue.ref([]);
155
- const filter = vue.ref(null);
156
175
  const importantSeries = vue.computed(() => {
157
176
  return props.series !== "all";
158
177
  });
@@ -192,7 +211,7 @@ const _sfc_main = vue.defineComponent({
192
211
  v.catalog = "doc";
193
212
  v.target_id = v.id;
194
213
  v.target_type = 3;
195
- v.pub_time = v.created_at;
214
+ v.pub_time = v.pub_time || v.created_at;
196
215
  v.update_time = v.updated_at;
197
216
  v.pub_user_alias = v.author_alias;
198
217
  return v;
@@ -247,13 +266,13 @@ const _sfc_main = vue.defineComponent({
247
266
  ])
248
267
  ]),
249
268
  series: vue.withCtx(({ record }) => [
250
- vue.createElementVNode("span", null, vue.toDisplayString(record.series), 1)
269
+ vue.createVNode(component$1, { item: record }, null, 8, ["item"])
251
270
  ]),
252
271
  duty_editor: vue.withCtx(({ record }) => [
253
272
  vue.createElementVNode("span", null, vue.toDisplayString(record.duty_editor || "--"), 1)
254
273
  ]),
255
274
  pub_time: vue.withCtx(({ record }) => [
256
- vue.createElementVNode("span", null, vue.toDisplayString(record.pub_time), 1)
275
+ vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(index$1.timeFormat)(record.pub_time)), 1)
257
276
  ]),
258
277
  _: 1
259
278
  }, 8, ["data", "onCellMouseEnter", "onCellMouseLeave"])
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ 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+T1U6vl3o2fvT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5t0sNJWkjS5k/cvz5DDpxQvkveBMd/tzrsNAjEMAFArM1g6yVGKNCnyvz+CwvtvxQJIwNl3DbwJ3o1AIC2sbEkgYiqrqgakyLEaR6Bgb5ZV2LaDjuRZgU+gpzsWch1UmTuyAD4MqOsTHzR1OAcVPqAQnGcIyF/BMMDJYh35Q2ONcIkYfOY3sg8RrhTbipZfsrg2QUYiUdh8mdFla7PDufgtUIK/n/IE5EjtwZHeFSUAAAAASUVORK5CYII=";
3
+ module.exports = _imports_0;
@@ -44,9 +44,33 @@ async function getCategorylistsGroups(BASE_API, params) {
44
44
  params
45
45
  });
46
46
  }
47
+ function searchMpaccount(BASE_API, params) {
48
+ return request(BASE_API, {
49
+ url: `/poplar/v3/poppy/mp_account/search`,
50
+ method: "get",
51
+ params
52
+ });
53
+ }
54
+ function getBroadcastList(BASE_API, params) {
55
+ return request(BASE_API, {
56
+ url: "/poplar/v3/ilives",
57
+ method: "get",
58
+ params
59
+ });
60
+ }
61
+ function getMpContentList(BASE_API, params) {
62
+ return request(BASE_API, {
63
+ url: "/poplar/v3/mp/media/list",
64
+ method: "get",
65
+ params
66
+ });
67
+ }
47
68
  exports.checkCommitFulfillment = checkCommitFulfillment;
69
+ exports.getBroadcastList = getBroadcastList;
48
70
  exports.getCategoryCategoriesTree = getCategoryCategoriesTree;
49
71
  exports.getCategoryMediaNew = getCategoryMediaNew;
50
72
  exports.getCategoryPath = getCategoryPath;
51
73
  exports.getCategorylistsGroups = getCategorylistsGroups;
74
+ exports.getMpContentList = getMpContentList;
52
75
  exports.searchMlists = searchMlists;
76
+ exports.searchMpaccount = 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
+ }