@cmstops/pro-compo 0.1.26 → 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 (97) hide show
  1. package/dist/index.css +100 -65
  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 +3 -3
  6. package/es/contentDetailList/components/Content/MaccountItem/index.js +30 -23
  7. package/es/contentDetailList/style/ComoItem.less +4 -0
  8. package/es/contentDetailList/style/ContentListItem.less +4 -0
  9. package/es/contentDetailList/style/DocItem.less +4 -6
  10. package/es/contentDetailList/style/DocMpItem.less +4 -6
  11. package/es/contentDetailList/style/KongoNavItem.less +4 -0
  12. package/es/contentDetailList/style/LiveItem.less +4 -0
  13. package/es/contentDetailList/style/MaccountItem.less +4 -0
  14. package/es/contentDetailList/style/index.css +28 -58
  15. package/es/contentDetailList/style/index.less +0 -1
  16. package/es/contentModal/component.js +165 -5
  17. package/es/contentModal/components/CompoList/index.js +13 -6
  18. package/es/contentModal/components/ContentList/MediaFilter/index.js +112 -0
  19. package/es/contentModal/components/ContentList/index.d.ts +0 -0
  20. package/es/contentModal/components/ContentList/index.js +269 -0
  21. package/es/contentModal/components/LiveList/MediaFilter/index.d.ts +0 -0
  22. package/es/contentModal/components/LiveList/MediaFilter/index.js +74 -0
  23. package/es/contentModal/components/LiveList/index.d.ts +0 -0
  24. package/es/contentModal/components/LiveList/index.js +227 -0
  25. package/es/contentModal/components/MpAccountList/MpAccountFilter/index.d.ts +0 -0
  26. package/es/contentModal/components/MpAccountList/MpAccountFilter/index.js +62 -0
  27. package/es/contentModal/components/MpAccountList/index.d.ts +0 -0
  28. package/es/contentModal/components/MpAccountList/index.js +222 -0
  29. package/es/contentModal/components/MpContentList/MediaFilter/index.d.ts +0 -0
  30. package/es/contentModal/components/MpContentList/MediaFilter/index.js +85 -0
  31. package/es/contentModal/components/MpContentList/index.d.ts +0 -0
  32. package/es/contentModal/components/MpContentList/index.js +214 -0
  33. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +176 -12
  34. package/es/contentModal/components/ViewAllColumn/index.js +33 -14
  35. package/es/contentModal/images/user.js +2 -0
  36. package/es/contentModal/script/api.d.ts +3 -0
  37. package/es/contentModal/script/api.js +22 -1
  38. package/es/contentModal/style/ViewAllColumn.less +51 -31
  39. package/es/contentModal/style/index.css +21 -7
  40. package/es/dataTags/component.d.ts +0 -0
  41. package/es/{contentDetailList/components/DocTags/index.js → dataTags/component.js} +10 -8
  42. package/es/dataTags/index.d.ts +2 -0
  43. package/es/dataTags/index.js +7 -0
  44. package/es/dataTags/style/css.js +1 -0
  45. package/es/dataTags/style/index.css +51 -0
  46. package/es/dataTags/style/index.d.ts +1 -0
  47. package/es/dataTags/style/index.js +1 -0
  48. package/{lib/contentDetailList/style/DocTags.less → es/dataTags/style/index.less} +12 -8
  49. package/es/emptyData/component.js +5 -5
  50. package/es/index.css +100 -65
  51. package/es/index.d.ts +1 -0
  52. package/es/index.js +1 -0
  53. package/es/index.less +1 -0
  54. package/es/utils/typeMap.d.ts +6 -15
  55. package/es/utils/typeMap.js +21 -1
  56. package/lib/contentDetailList/components/Content/DocItem/index.js +4 -4
  57. package/lib/contentDetailList/components/Content/DocMpItem/index.js +2 -2
  58. package/lib/contentDetailList/components/Content/KongoNavItem/index.js +4 -4
  59. package/lib/contentDetailList/components/Content/MaccountItem/index.js +30 -23
  60. package/lib/contentDetailList/style/ComoItem.less +4 -0
  61. package/lib/contentDetailList/style/ContentListItem.less +4 -0
  62. package/lib/contentDetailList/style/DocItem.less +4 -6
  63. package/lib/contentDetailList/style/DocMpItem.less +4 -6
  64. package/lib/contentDetailList/style/KongoNavItem.less +4 -0
  65. package/lib/contentDetailList/style/LiveItem.less +4 -0
  66. package/lib/contentDetailList/style/MaccountItem.less +4 -0
  67. package/lib/contentDetailList/style/index.css +28 -58
  68. package/lib/contentDetailList/style/index.less +0 -1
  69. package/lib/contentModal/component.js +165 -5
  70. package/lib/contentModal/components/CompoList/index.js +15 -8
  71. package/lib/contentModal/components/ContentList/MediaFilter/index.js +113 -0
  72. package/lib/contentModal/components/ContentList/index.js +270 -0
  73. package/lib/contentModal/components/LiveList/MediaFilter/index.js +75 -0
  74. package/lib/contentModal/components/LiveList/index.js +228 -0
  75. package/lib/contentModal/components/MpAccountList/MpAccountFilter/index.js +63 -0
  76. package/lib/contentModal/components/MpAccountList/index.js +223 -0
  77. package/lib/contentModal/components/MpContentList/MediaFilter/index.js +86 -0
  78. package/lib/contentModal/components/MpContentList/index.js +215 -0
  79. package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +175 -11
  80. package/lib/contentModal/components/ViewAllColumn/index.js +33 -14
  81. package/lib/contentModal/images/user.js +3 -0
  82. package/lib/contentModal/script/api.js +24 -0
  83. package/lib/contentModal/style/ViewAllColumn.less +51 -31
  84. package/lib/contentModal/style/index.css +21 -7
  85. package/lib/{contentDetailList/components/DocTags/index.js → dataTags/component.js} +10 -8
  86. package/lib/dataTags/index.js +8 -0
  87. package/lib/dataTags/style/css.js +2 -0
  88. package/lib/dataTags/style/index.css +51 -0
  89. package/lib/dataTags/style/index.js +2 -0
  90. package/{es/contentDetailList/style/DocTags.less → lib/dataTags/style/index.less} +12 -8
  91. package/lib/emptyData/component.js +4 -4
  92. package/lib/index.css +100 -65
  93. package/lib/index.js +2 -0
  94. package/lib/index.less +1 -0
  95. package/lib/utils/typeMap.js +22 -0
  96. package/package.json +1 -1
  97. /package/es/{contentDetailList/components/DocTags → contentModal/components/ContentList/MediaFilter}/index.d.ts +0 -0
@@ -0,0 +1,223 @@
1
+ "use strict";
2
+ var vue = require("vue");
3
+ var user = require("../../images/user.js");
4
+ var webVue = require("@arco-design/web-vue");
5
+ var component = require("../../../typeIcons/component.js");
6
+ var index = require("./MpAccountFilter/index.js");
7
+ var batch = require("../../../hooks/batch.js");
8
+ var api = require("../../script/api.js");
9
+ var typeMap = require("../../../utils/typeMap.js");
10
+ const _hoisted_1 = { class: "view-all-column-container" };
11
+ const _hoisted_2 = { class: "content-table-view" };
12
+ const _hoisted_3 = { class: "mp_title-span" };
13
+ const _hoisted_4 = ["onClick"];
14
+ const _hoisted_5 = { class: "title" };
15
+ const _hoisted_6 = ["src"];
16
+ const _hoisted_7 = {
17
+ key: 1,
18
+ class: "user-avatar",
19
+ src: user
20
+ };
21
+ const _hoisted_8 = { class: "bottom-view" };
22
+ const _hoisted_9 = { class: "left" };
23
+ const _sfc_main = vue.defineComponent({
24
+ ...{ name: "MpAccountList" },
25
+ __name: "index",
26
+ props: {
27
+ maxSelect: {},
28
+ userInfo: {},
29
+ outsideSelectData: {},
30
+ defaultSelectedData: {}
31
+ },
32
+ emits: ["change"],
33
+ setup(__props, { emit }) {
34
+ const props = __props;
35
+ const _maxSelect = props.maxSelect || 100;
36
+ const selectedData = vue.ref([]);
37
+ const group_id = vue.ref("all");
38
+ const mediaFileData = vue.ref([]);
39
+ const dataLoading = vue.ref(false);
40
+ const page = vue.ref({
41
+ index: 1,
42
+ size: 100,
43
+ total: 0
44
+ });
45
+ const filter = vue.ref(null);
46
+ const scrollPercent = { y: "100%" };
47
+ const columns = [
48
+ { title: "\u516C\u4F17\u53F7\u540D\u79F0", dataIndex: "mp_name", slotName: "mp_name" },
49
+ { title: "\u5934\u50CF", dataIndex: "mp_logo", slotName: "mp_logo" },
50
+ { title: "\u8D26\u53F7\u7C7B\u578B", dataIndex: "mp_type", slotName: "mp_type" },
51
+ { title: "\u8FD0\u8425\u8005", dataIndex: "mp_user_name", slotName: "mp_user_name" },
52
+ { title: "\u6240\u5C5E\u9886\u57DF", dataIndex: "catalog_alias", slotName: "catalog_alias" }
53
+ ];
54
+ const tempSelectedData = vue.computed(() => {
55
+ return props.defaultSelectedData || [];
56
+ });
57
+ vue.watch(
58
+ () => tempSelectedData.value,
59
+ (val) => {
60
+ selectedData.value = val;
61
+ }
62
+ );
63
+ vue.watch(
64
+ () => group_id.value,
65
+ () => {
66
+ loadData();
67
+ }
68
+ );
69
+ const search = (_filter) => {
70
+ if (_filter.mp_name || _filter.mp_type) {
71
+ filter.value = { ..._filter };
72
+ } else {
73
+ filter.value = null;
74
+ }
75
+ page.value.index = 1;
76
+ loadData();
77
+ };
78
+ const loadData = async () => {
79
+ const gid = group_id.value;
80
+ if (!gid)
81
+ return;
82
+ let params = {
83
+ limit: page.value.size,
84
+ offset: page.value.size * (page.value.index - 1)
85
+ };
86
+ if (filter.value) {
87
+ params = { ...params, ...filter.value };
88
+ }
89
+ if (gid !== "all") {
90
+ params.gid = gid;
91
+ }
92
+ dataLoading.value = true;
93
+ const { code, data } = await api.searchMpaccount(props.userInfo.BASE_API, params);
94
+ dataLoading.value = false;
95
+ if (code === 0) {
96
+ if (!data.data) {
97
+ mediaFileData.value = [];
98
+ } else {
99
+ mediaFileData.value = data.data.map((v) => {
100
+ v.target_id = v.uid;
101
+ v.target_type = 14;
102
+ v.catalog = typeMap.key_target_type_map[v.target_type];
103
+ return v;
104
+ }) || [];
105
+ }
106
+ }
107
+ };
108
+ const clickCheckbox = (e, record) => {
109
+ e.stopPropagation();
110
+ e.preventDefault();
111
+ selectData(record);
112
+ };
113
+ const selectTableCell = (record) => {
114
+ selectData(record);
115
+ };
116
+ const selectData = (record) => {
117
+ if (checkSameAdd(record)) {
118
+ webVue.Message.warning({ content: "\u8BF7\u52FF\u6DFB\u52A0\u91CD\u590D\u6570\u636E", duration: 3e3 });
119
+ return;
120
+ }
121
+ addDataToSelectedList(record);
122
+ };
123
+ const checkSameAdd = (record) => {
124
+ const selected = props.outsideSelectData;
125
+ if (!selected.length)
126
+ return false;
127
+ return selected.map((row) => row.id).includes(record.id);
128
+ };
129
+ const addDataToSelectedList = async (record) => {
130
+ const index2 = selectedData.value.findIndex((v) => v.id === record.id);
131
+ if (selectedData.value.length < _maxSelect) {
132
+ if (index2 === -1) {
133
+ selectedData.value.push(record);
134
+ } else {
135
+ selectedData.value.splice(index2, 1);
136
+ }
137
+ emitChange();
138
+ } else {
139
+ if (index2 === -1) {
140
+ selectedData.value.splice(selectedData.value.length - 1, 1);
141
+ selectedData.value.push(record);
142
+ } else {
143
+ selectedData.value.splice(index2, 1);
144
+ }
145
+ webVue.Message.warning({ content: "\u5DF2\u8FBE\u5230\u9009\u62E9\u6570\u91CF\u7684\u4E0A\u9650", duration: 3e3 });
146
+ emitChange();
147
+ }
148
+ };
149
+ const emitChange = () => {
150
+ emit("change", selectedData.value);
151
+ };
152
+ const {
153
+ isItemChecked,
154
+ hoverBatchBox,
155
+ tableCellMouseEnter,
156
+ tableCellMouseLeave
157
+ } = batch();
158
+ vue.onMounted(() => {
159
+ loadData();
160
+ });
161
+ return (_ctx, _cache) => {
162
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
163
+ vue.createVNode(index, { onSearch: search }),
164
+ vue.createElementVNode("div", _hoisted_2, [
165
+ vue.createVNode(vue.unref(webVue.Table), {
166
+ columns,
167
+ scroll: scrollPercent,
168
+ pagination: false,
169
+ bordered: false,
170
+ data: mediaFileData.value,
171
+ loading: dataLoading.value,
172
+ onCellMouseEnter: vue.unref(tableCellMouseEnter),
173
+ onCellMouseLeave: vue.unref(tableCellMouseLeave),
174
+ onRowClick: selectTableCell
175
+ }, {
176
+ mp_name: vue.withCtx(({ record }) => [
177
+ vue.createElementVNode("span", _hoisted_3, [
178
+ vue.unref(hoverBatchBox)(selectedData.value, record) ? (vue.openBlock(), vue.createElementBlock("span", {
179
+ key: 0,
180
+ onClick: vue.withModifiers(($event) => clickCheckbox($event, record), ["stop"])
181
+ }, [
182
+ vue.createVNode(vue.unref(webVue.Checkbox), {
183
+ class: "icon",
184
+ "model-value": vue.unref(isItemChecked)(selectedData.value, record)
185
+ }, null, 8, ["model-value"])
186
+ ], 8, _hoisted_4)) : (vue.openBlock(), vue.createBlock(component, {
187
+ key: 1,
188
+ class: "icon",
189
+ type: "mpdoc"
190
+ })),
191
+ vue.createElementVNode("span", _hoisted_5, vue.toDisplayString(record.mp_name || "--"), 1)
192
+ ])
193
+ ]),
194
+ mp_logo: vue.withCtx(({ record }) => [
195
+ record.mp_logo ? (vue.openBlock(), vue.createElementBlock("img", {
196
+ key: 0,
197
+ class: "user-avatar",
198
+ src: record.mp_logo
199
+ }, null, 8, _hoisted_6)) : (vue.openBlock(), vue.createElementBlock("img", _hoisted_7))
200
+ ]),
201
+ mp_type: vue.withCtx(({ record }) => [
202
+ vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(typeMap.mp_type_map)[record.mp_type]), 1)
203
+ ]),
204
+ mp_user_name: vue.withCtx(({ record }) => [
205
+ vue.createElementVNode("span", null, vue.toDisplayString(record.mp_user_name || "--"), 1)
206
+ ]),
207
+ catalog_alias: vue.withCtx(({ record }) => [
208
+ vue.createElementVNode("span", null, vue.toDisplayString(record.catalog_alias), 1)
209
+ ]),
210
+ _: 1
211
+ }, 8, ["data", "loading", "onCellMouseEnter", "onCellMouseLeave"])
212
+ ]),
213
+ vue.createElementVNode("div", _hoisted_8, [
214
+ vue.createElementVNode("div", _hoisted_9, [
215
+ vue.renderSlot(_ctx.$slots, "store")
216
+ ]),
217
+ vue.renderSlot(_ctx.$slots, "options")
218
+ ])
219
+ ]);
220
+ };
221
+ }
222
+ });
223
+ module.exports = _sfc_main;
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ var vue = require("vue");
3
+ var webVue = require("@arco-design/web-vue");
4
+ var api = require("../../../script/api.js");
5
+ const _hoisted_1 = { class: "media-filter-container" };
6
+ const _sfc_main = vue.defineComponent({
7
+ ...{ name: "MediaFilter" },
8
+ __name: "index",
9
+ props: {
10
+ group_id: {},
11
+ userInfo: {}
12
+ },
13
+ emits: ["update:group_id", "search"],
14
+ setup(__props, { emit }) {
15
+ const props = __props;
16
+ const filter = vue.ref({ wd: "", account_uid: "", order: 1 });
17
+ const typeOptions = vue.ref([{ mp_name: "\u5168\u90E8", uid: "all" }]);
18
+ const limit = vue.ref(100);
19
+ vue.computed({
20
+ get() {
21
+ return props.group_id;
22
+ },
23
+ set(val) {
24
+ emit("update:group_id", val);
25
+ }
26
+ });
27
+ const getTypeData = async () => {
28
+ const query = {
29
+ limit: limit.value,
30
+ offset: typeOptions.value.length
31
+ };
32
+ const { code, data } = await api.searchMpaccount(props.userInfo.BASE_API, query);
33
+ if (code !== 0)
34
+ return;
35
+ typeOptions.value = typeOptions.value.concat(data.data || []);
36
+ };
37
+ const handleSearch = () => {
38
+ emit("search", filter.value);
39
+ };
40
+ vue.watch(filter.value, () => {
41
+ if (filter.value.account_uid === "all") {
42
+ filter.value.account_uid = "";
43
+ }
44
+ handleSearch();
45
+ });
46
+ vue.onMounted(() => {
47
+ getTypeData();
48
+ });
49
+ return (_ctx, _cache) => {
50
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
51
+ vue.createVNode(vue.unref(webVue.Space), { size: "large" }, {
52
+ default: vue.withCtx(() => [
53
+ vue.createVNode(vue.unref(webVue.Input), {
54
+ modelValue: filter.value.wd,
55
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filter.value.wd = $event),
56
+ class: "filter-item",
57
+ "allow-clear": "",
58
+ placeholder: "\u8F93\u5165\u5185\u5BB9\u6807\u9898",
59
+ onPressEnter: handleSearch
60
+ }, null, 8, ["modelValue"]),
61
+ vue.createVNode(vue.unref(webVue.Select), {
62
+ modelValue: filter.value.account_uid,
63
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => filter.value.account_uid = $event),
64
+ class: "filter-item",
65
+ placeholder: "\u516C\u4F17\u53F7",
66
+ "allow-search": ""
67
+ }, {
68
+ default: vue.withCtx(() => [
69
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(typeOptions.value, (item) => {
70
+ return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
71
+ key: item.uid,
72
+ label: item.mp_name,
73
+ value: item.uid
74
+ }, null, 8, ["label", "value"]);
75
+ }), 128))
76
+ ]),
77
+ _: 1
78
+ }, 8, ["modelValue"])
79
+ ]),
80
+ _: 1
81
+ })
82
+ ]);
83
+ };
84
+ }
85
+ });
86
+ module.exports = _sfc_main;
@@ -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;