@cmstops/pro-compo 0.1.45 → 0.1.48
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.
- package/dist/index.css +187 -0
- package/dist/index.min.css +1 -1
- package/es/contentDetailList/components/Content/LiveItem/index.js +1 -2
- package/es/contentDetailList/components/Content/courseItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/courseItem/index.js +95 -0
- package/es/contentDetailList/components/Content/funhdItem/index.d.ts +0 -0
- package/es/contentDetailList/components/Content/funhdItem/index.js +95 -0
- package/es/contentDetailList/components/Content/index.js +41 -1
- package/es/contentDetailList/style/courseItem.less +108 -0
- package/es/contentDetailList/style/funhdItem.less +108 -0
- package/es/contentDetailList/style/index.css +184 -0
- package/es/contentDetailList/style/index.less +2 -0
- package/es/contentModal/component.js +49 -3
- package/es/contentModal/components/EqxiuList/MediaFilter/index.d.ts +0 -0
- package/es/contentModal/components/EqxiuList/MediaFilter/index.js +79 -0
- package/es/contentModal/components/EqxiuList/index.d.ts +0 -0
- package/es/contentModal/components/EqxiuList/index.js +229 -0
- package/es/contentModal/script/api.d.ts +1 -0
- package/es/contentModal/script/api.js +8 -1
- package/es/contentModal/style/ViewAllColumn.less +3 -0
- package/es/contentModal/style/index.css +3 -0
- package/es/index.css +187 -0
- package/es/typeIcons/component.js +18 -3
- package/es/utils/request.js +5 -1
- package/es/utils/typeMap.d.ts +2 -0
- package/es/utils/typeMap.js +3 -1
- package/lib/contentDetailList/components/Content/LiveItem/index.js +1 -2
- package/lib/contentDetailList/components/Content/courseItem/index.js +96 -0
- package/lib/contentDetailList/components/Content/funhdItem/index.js +96 -0
- package/lib/contentDetailList/components/Content/index.js +41 -1
- package/lib/contentDetailList/style/courseItem.less +108 -0
- package/lib/contentDetailList/style/funhdItem.less +108 -0
- package/lib/contentDetailList/style/index.css +184 -0
- package/lib/contentDetailList/style/index.less +2 -0
- package/lib/contentModal/component.js +49 -3
- package/lib/contentModal/components/EqxiuList/MediaFilter/index.js +80 -0
- package/lib/contentModal/components/EqxiuList/index.js +230 -0
- package/lib/contentModal/script/api.js +8 -0
- package/lib/contentModal/style/ViewAllColumn.less +3 -0
- package/lib/contentModal/style/index.css +3 -0
- package/lib/index.css +187 -0
- package/lib/typeIcons/component.js +17 -2
- package/lib/utils/request.js +5 -1
- package/lib/utils/typeMap.js +3 -1
- package/package.json +3 -3
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { defineComponent, ref, watch, openBlock, createElementBlock, createVNode, unref, withCtx, Fragment, renderList, createBlock } from "vue";
|
|
2
|
+
import { Space, Select, Option, Input } from "@arco-design/web-vue";
|
|
3
|
+
const _hoisted_1 = { class: "media-filter-container" };
|
|
4
|
+
const _sfc_main = defineComponent({
|
|
5
|
+
...{ name: "MediaFilter" },
|
|
6
|
+
__name: "index",
|
|
7
|
+
emits: ["update:group_id", "search"],
|
|
8
|
+
setup(__props, { emit: __emit }) {
|
|
9
|
+
const emit = __emit;
|
|
10
|
+
const filter = ref({ type: "", name: "" });
|
|
11
|
+
const typeOptions = ref([
|
|
12
|
+
{
|
|
13
|
+
value: "",
|
|
14
|
+
label: "\u5168\u90E8"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
value: "hd",
|
|
18
|
+
label: "\u4E92\u52A8"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
value: "h5",
|
|
22
|
+
label: "H5"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
value: "lc",
|
|
26
|
+
label: "\u957F\u9875"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
value: "design",
|
|
30
|
+
label: "\u6D77\u62A5"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
value: "form",
|
|
34
|
+
label: "\u8868\u5355"
|
|
35
|
+
}
|
|
36
|
+
]);
|
|
37
|
+
const handleSearch = () => {
|
|
38
|
+
emit("search", filter.value);
|
|
39
|
+
};
|
|
40
|
+
watch(filter.value, () => {
|
|
41
|
+
handleSearch();
|
|
42
|
+
});
|
|
43
|
+
return (_ctx, _cache) => {
|
|
44
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
45
|
+
createVNode(unref(Space), { size: "large" }, {
|
|
46
|
+
default: withCtx(() => [
|
|
47
|
+
createVNode(unref(Select), {
|
|
48
|
+
modelValue: filter.value.type,
|
|
49
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filter.value.type = $event),
|
|
50
|
+
class: "filter-item",
|
|
51
|
+
placeholder: "\u6D3B\u52A8\u7C7B\u578B"
|
|
52
|
+
}, {
|
|
53
|
+
default: withCtx(() => [
|
|
54
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(typeOptions.value, (item) => {
|
|
55
|
+
return openBlock(), createBlock(unref(Option), {
|
|
56
|
+
key: item.value,
|
|
57
|
+
label: item.label,
|
|
58
|
+
value: item.value
|
|
59
|
+
}, null, 8, ["label", "value"]);
|
|
60
|
+
}), 128))
|
|
61
|
+
]),
|
|
62
|
+
_: 1
|
|
63
|
+
}, 8, ["modelValue"]),
|
|
64
|
+
createVNode(unref(Input), {
|
|
65
|
+
modelValue: filter.value.name,
|
|
66
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => filter.value.name = $event),
|
|
67
|
+
class: "filter-item",
|
|
68
|
+
"allow-clear": "",
|
|
69
|
+
placeholder: "\u8F93\u5165\u5185\u5BB9\u6807\u9898",
|
|
70
|
+
onPressEnter: handleSearch
|
|
71
|
+
}, null, 8, ["modelValue"])
|
|
72
|
+
]),
|
|
73
|
+
_: 1
|
|
74
|
+
})
|
|
75
|
+
]);
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
export { _sfc_main as default };
|
|
File without changes
|
|
@@ -0,0 +1,229 @@
|
|
|
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 { getEqxiuList } 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: __emit }) {
|
|
25
|
+
const emit = __emit;
|
|
26
|
+
const props = __props;
|
|
27
|
+
const typeMap = ref({
|
|
28
|
+
hd: "\u4E92\u52A8",
|
|
29
|
+
h5: "H5",
|
|
30
|
+
lc: "\u957F\u9875",
|
|
31
|
+
design: "\u6D77\u62A5",
|
|
32
|
+
form: "\u8868\u5355"
|
|
33
|
+
});
|
|
34
|
+
const _maxSelect = props.maxSelect || 100;
|
|
35
|
+
const selectedData = ref([]);
|
|
36
|
+
const group_id = ref("all");
|
|
37
|
+
const mediaFileData = ref([]);
|
|
38
|
+
const dataLoading = ref(false);
|
|
39
|
+
const page = ref({
|
|
40
|
+
index: 1,
|
|
41
|
+
size: 100,
|
|
42
|
+
total: 0
|
|
43
|
+
});
|
|
44
|
+
const filter = ref(null);
|
|
45
|
+
const columns = [
|
|
46
|
+
{
|
|
47
|
+
title: "\u6807\u9898",
|
|
48
|
+
dataIndex: "title",
|
|
49
|
+
slotName: "title"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
title: "\u7C7B\u578B",
|
|
53
|
+
dataIndex: "type",
|
|
54
|
+
slotName: "type",
|
|
55
|
+
width: 150
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
title: "\u53D1\u5E03\u65F6\u95F4",
|
|
59
|
+
dataIndex: "publishTime",
|
|
60
|
+
slotName: "publishTime",
|
|
61
|
+
width: 300
|
|
62
|
+
}
|
|
63
|
+
];
|
|
64
|
+
const scrollPercent = { y: "100%" };
|
|
65
|
+
const tempSelectedData = computed(() => {
|
|
66
|
+
return props.defaultSelectedData || [];
|
|
67
|
+
});
|
|
68
|
+
const search = (_filter) => {
|
|
69
|
+
if (_filter.name || _filter.type) {
|
|
70
|
+
filter.value = { ..._filter };
|
|
71
|
+
} else {
|
|
72
|
+
filter.value = null;
|
|
73
|
+
}
|
|
74
|
+
page.value.index = 1;
|
|
75
|
+
loadData();
|
|
76
|
+
};
|
|
77
|
+
const loadData = async () => {
|
|
78
|
+
const gid = group_id.value;
|
|
79
|
+
if (!gid)
|
|
80
|
+
return;
|
|
81
|
+
let params = {
|
|
82
|
+
page_size: page.value.size,
|
|
83
|
+
page_no: page.value.index
|
|
84
|
+
};
|
|
85
|
+
if (filter.value) {
|
|
86
|
+
params = { ...params, ...filter.value };
|
|
87
|
+
}
|
|
88
|
+
if (gid !== "all") {
|
|
89
|
+
params.gid = gid;
|
|
90
|
+
}
|
|
91
|
+
dataLoading.value = true;
|
|
92
|
+
const res = await getEqxiuList(props.userInfo.BASE_API, params);
|
|
93
|
+
dataLoading.value = false;
|
|
94
|
+
if ((res == null ? void 0 : res.code) === 0) {
|
|
95
|
+
const { count, data } = res.message;
|
|
96
|
+
mediaFileData.value = data.map((v) => {
|
|
97
|
+
v.catalog = "funhd";
|
|
98
|
+
v.id = v.ID || v.id;
|
|
99
|
+
v.target_id = v.ID || v.id;
|
|
100
|
+
v.target_type = 17;
|
|
101
|
+
v.pub_time = v.updateTime;
|
|
102
|
+
v.update_time = v.updateTime;
|
|
103
|
+
return v;
|
|
104
|
+
}) || [];
|
|
105
|
+
page.value.total = count || 0;
|
|
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
|
+
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 index = selectedData.value.findIndex((v) => v.id === record.id);
|
|
131
|
+
if (selectedData.value.length < _maxSelect) {
|
|
132
|
+
if (index === -1) {
|
|
133
|
+
selectedData.value.push(record);
|
|
134
|
+
} else {
|
|
135
|
+
selectedData.value.splice(index, 1);
|
|
136
|
+
}
|
|
137
|
+
emitChange();
|
|
138
|
+
} else {
|
|
139
|
+
if (index === -1) {
|
|
140
|
+
selectedData.value.splice(selectedData.value.length - 1, 1);
|
|
141
|
+
selectedData.value.push(record);
|
|
142
|
+
} else {
|
|
143
|
+
selectedData.value.splice(index, 1);
|
|
144
|
+
}
|
|
145
|
+
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
|
+
} = useTableBatch();
|
|
158
|
+
watch(
|
|
159
|
+
() => tempSelectedData.value,
|
|
160
|
+
(val) => {
|
|
161
|
+
selectedData.value = val;
|
|
162
|
+
}
|
|
163
|
+
);
|
|
164
|
+
watch(
|
|
165
|
+
() => group_id.value,
|
|
166
|
+
() => {
|
|
167
|
+
loadData();
|
|
168
|
+
}
|
|
169
|
+
);
|
|
170
|
+
onMounted(() => {
|
|
171
|
+
loadData();
|
|
172
|
+
});
|
|
173
|
+
return (_ctx, _cache) => {
|
|
174
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
175
|
+
createVNode(_sfc_main$1, {
|
|
176
|
+
group_id: group_id.value,
|
|
177
|
+
"onUpdate:group_id": _cache[0] || (_cache[0] = ($event) => group_id.value = $event),
|
|
178
|
+
onSearch: search
|
|
179
|
+
}, null, 8, ["group_id"]),
|
|
180
|
+
createElementVNode("div", _hoisted_2, [
|
|
181
|
+
createVNode(unref(Table), {
|
|
182
|
+
columns,
|
|
183
|
+
scroll: scrollPercent,
|
|
184
|
+
pagination: false,
|
|
185
|
+
bordered: false,
|
|
186
|
+
data: mediaFileData.value,
|
|
187
|
+
loading: dataLoading.value,
|
|
188
|
+
onCellMouseEnter: unref(tableCellMouseEnter),
|
|
189
|
+
onCellMouseLeave: unref(tableCellMouseLeave),
|
|
190
|
+
onRowClick: selectTableCell
|
|
191
|
+
}, {
|
|
192
|
+
title: withCtx(({ record }) => [
|
|
193
|
+
createElementVNode("span", _hoisted_3, [
|
|
194
|
+
unref(hoverBatchBox)(selectedData.value, record) ? (openBlock(), createElementBlock("span", {
|
|
195
|
+
key: 0,
|
|
196
|
+
onClick: withModifiers(($event) => clickCheckbox($event, record), ["stop"])
|
|
197
|
+
}, [
|
|
198
|
+
createVNode(unref(Checkbox), {
|
|
199
|
+
class: "icon",
|
|
200
|
+
"model-value": unref(isItemChecked)(selectedData.value, record)
|
|
201
|
+
}, null, 8, ["model-value"])
|
|
202
|
+
], 8, _hoisted_4)) : (openBlock(), createBlock(_sfc_main$2, {
|
|
203
|
+
key: 1,
|
|
204
|
+
class: "icon",
|
|
205
|
+
type: record.series
|
|
206
|
+
}, null, 8, ["type"])),
|
|
207
|
+
createElementVNode("span", _hoisted_5, toDisplayString(record.title || record.alias || "--"), 1)
|
|
208
|
+
])
|
|
209
|
+
]),
|
|
210
|
+
type: withCtx(({ record }) => [
|
|
211
|
+
createElementVNode("span", null, toDisplayString(typeMap.value[record.type] || "--"), 1)
|
|
212
|
+
]),
|
|
213
|
+
publishTime: withCtx(({ record }) => [
|
|
214
|
+
createElementVNode("span", null, toDisplayString(record.publishTime), 1)
|
|
215
|
+
]),
|
|
216
|
+
_: 1
|
|
217
|
+
}, 8, ["data", "loading", "onCellMouseEnter", "onCellMouseLeave"])
|
|
218
|
+
]),
|
|
219
|
+
createElementVNode("div", _hoisted_6, [
|
|
220
|
+
createElementVNode("div", _hoisted_7, [
|
|
221
|
+
renderSlot(_ctx.$slots, "store")
|
|
222
|
+
]),
|
|
223
|
+
renderSlot(_ctx.$slots, "options")
|
|
224
|
+
])
|
|
225
|
+
]);
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
export { _sfc_main as default };
|
|
@@ -9,5 +9,6 @@ export declare function searchMlists(BASE_API: string, params?: Params): import(
|
|
|
9
9
|
export declare function getCategorylistsGroups(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any>>;
|
|
10
10
|
export declare function searchMpaccount(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
|
|
11
11
|
export declare function getBroadcastList(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
|
|
12
|
+
export declare function getEqxiuList(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
|
|
12
13
|
export declare function getMpContentList(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
|
|
13
14
|
export {};
|
|
@@ -56,6 +56,13 @@ function getBroadcastList(BASE_API, params) {
|
|
|
56
56
|
params
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
|
+
function getEqxiuList(BASE_API, params) {
|
|
60
|
+
return request(BASE_API, {
|
|
61
|
+
url: "/poplar/v3/eqxiu/creation/list",
|
|
62
|
+
method: "get",
|
|
63
|
+
params
|
|
64
|
+
});
|
|
65
|
+
}
|
|
59
66
|
function getMpContentList(BASE_API, params) {
|
|
60
67
|
return request(BASE_API, {
|
|
61
68
|
url: "/poplar/v3/mp/media/list",
|
|
@@ -63,4 +70,4 @@ function getMpContentList(BASE_API, params) {
|
|
|
63
70
|
params
|
|
64
71
|
});
|
|
65
72
|
}
|
|
66
|
-
export { checkCommitFulfillment, getBroadcastList, getCategoryCategoriesTree, getCategoryMediaNew, getCategoryPath, getCategorylistsGroups, getMpContentList, searchMlists, searchMpaccount };
|
|
73
|
+
export { checkCommitFulfillment, getBroadcastList, getCategoryCategoriesTree, getCategoryMediaNew, getCategoryPath, getCategorylistsGroups, getEqxiuList, getMpContentList, searchMlists, searchMpaccount };
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
.pic-thumb-img {
|
|
14
14
|
width: 60px;
|
|
15
15
|
height: 45px;
|
|
16
|
+
vertical-align: middle;
|
|
17
|
+
border-radius: 3px;
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
.title-span,
|
|
@@ -30,6 +32,7 @@
|
|
|
30
32
|
margin-right: 8px;
|
|
31
33
|
padding-left: 0;
|
|
32
34
|
font-size: 18px;
|
|
35
|
+
line-height: 28px;
|
|
33
36
|
text-align: center;
|
|
34
37
|
vertical-align: middle;
|
|
35
38
|
}
|
|
@@ -109,6 +109,8 @@
|
|
|
109
109
|
.view-all-column-container .content-table-view .pic-thumb-img {
|
|
110
110
|
width: 60px;
|
|
111
111
|
height: 45px;
|
|
112
|
+
vertical-align: middle;
|
|
113
|
+
border-radius: 3px;
|
|
112
114
|
}
|
|
113
115
|
.view-all-column-container .content-table-view .title-span,
|
|
114
116
|
.view-all-column-container .content-table-view .mp_title-span {
|
|
@@ -126,6 +128,7 @@
|
|
|
126
128
|
margin-right: 8px;
|
|
127
129
|
padding-left: 0;
|
|
128
130
|
font-size: 18px;
|
|
131
|
+
line-height: 28px;
|
|
129
132
|
text-align: center;
|
|
130
133
|
vertical-align: middle;
|
|
131
134
|
}
|
package/es/index.css
CHANGED
|
@@ -436,6 +436,8 @@
|
|
|
436
436
|
.view-all-column-container .content-table-view .pic-thumb-img {
|
|
437
437
|
width: 60px;
|
|
438
438
|
height: 45px;
|
|
439
|
+
vertical-align: middle;
|
|
440
|
+
border-radius: 3px;
|
|
439
441
|
}
|
|
440
442
|
.view-all-column-container .content-table-view .title-span,
|
|
441
443
|
.view-all-column-container .content-table-view .mp_title-span {
|
|
@@ -453,6 +455,7 @@
|
|
|
453
455
|
margin-right: 8px;
|
|
454
456
|
padding-left: 0;
|
|
455
457
|
font-size: 18px;
|
|
458
|
+
line-height: 28px;
|
|
456
459
|
text-align: center;
|
|
457
460
|
vertical-align: middle;
|
|
458
461
|
}
|
|
@@ -2730,6 +2733,190 @@
|
|
|
2730
2733
|
.medialist-mpdoc-item-view .info-view .abttrite-v .right {
|
|
2731
2734
|
margin-right: 20px;
|
|
2732
2735
|
}
|
|
2736
|
+
.medialist-course-item-view {
|
|
2737
|
+
display: flex;
|
|
2738
|
+
padding: 10px;
|
|
2739
|
+
border-bottom: 1px solid #f0f0f0;
|
|
2740
|
+
}
|
|
2741
|
+
.medialist-course-item-view:hover {
|
|
2742
|
+
background: #fafafa;
|
|
2743
|
+
}
|
|
2744
|
+
.medialist-course-item-view .cover-view {
|
|
2745
|
+
position: relative;
|
|
2746
|
+
flex-shrink: 0;
|
|
2747
|
+
width: 110px;
|
|
2748
|
+
height: 70px;
|
|
2749
|
+
margin-right: 20px;
|
|
2750
|
+
background: #edf3ff;
|
|
2751
|
+
}
|
|
2752
|
+
.medialist-course-item-view .cover-view .image {
|
|
2753
|
+
width: 100%;
|
|
2754
|
+
height: 100%;
|
|
2755
|
+
border-radius: 4px;
|
|
2756
|
+
}
|
|
2757
|
+
.medialist-course-item-view .cover-view .image img {
|
|
2758
|
+
width: 100%;
|
|
2759
|
+
height: 100%;
|
|
2760
|
+
}
|
|
2761
|
+
.medialist-course-item-view .cover-view .no-img {
|
|
2762
|
+
display: flex;
|
|
2763
|
+
align-items: center;
|
|
2764
|
+
justify-content: center;
|
|
2765
|
+
width: 100%;
|
|
2766
|
+
height: 100%;
|
|
2767
|
+
color: white;
|
|
2768
|
+
font-size: 30px;
|
|
2769
|
+
}
|
|
2770
|
+
.medialist-course-item-view .info-view {
|
|
2771
|
+
display: flex;
|
|
2772
|
+
flex: 1;
|
|
2773
|
+
flex-direction: column;
|
|
2774
|
+
justify-content: space-between;
|
|
2775
|
+
padding: 2px 0;
|
|
2776
|
+
}
|
|
2777
|
+
.medialist-course-item-view .info-view .title {
|
|
2778
|
+
display: flex;
|
|
2779
|
+
align-items: center;
|
|
2780
|
+
margin-bottom: 10px;
|
|
2781
|
+
overflow: hidden;
|
|
2782
|
+
color: #1d2129;
|
|
2783
|
+
font-weight: 400;
|
|
2784
|
+
font-size: 14px;
|
|
2785
|
+
font-style: normal;
|
|
2786
|
+
line-height: 22px;
|
|
2787
|
+
cursor: pointer;
|
|
2788
|
+
-webkit-line-clamp: 2;
|
|
2789
|
+
-webkit-box-orient: vertical;
|
|
2790
|
+
}
|
|
2791
|
+
.medialist-course-item-view .info-view .abttrite-v {
|
|
2792
|
+
display: flex;
|
|
2793
|
+
align-items: center;
|
|
2794
|
+
justify-content: space-between;
|
|
2795
|
+
}
|
|
2796
|
+
.medialist-course-item-view .info-view .abttrite-v .left {
|
|
2797
|
+
display: flex;
|
|
2798
|
+
flex: 1;
|
|
2799
|
+
align-items: center;
|
|
2800
|
+
color: #808692;
|
|
2801
|
+
font-size: 12px;
|
|
2802
|
+
}
|
|
2803
|
+
.medialist-course-item-view .info-view .abttrite-v .left .icon {
|
|
2804
|
+
margin-right: 8px;
|
|
2805
|
+
}
|
|
2806
|
+
.medialist-course-item-view .info-view .abttrite-v .left .abttr {
|
|
2807
|
+
display: inline-block;
|
|
2808
|
+
width: 20%;
|
|
2809
|
+
overflow: hidden;
|
|
2810
|
+
white-space: nowrap;
|
|
2811
|
+
text-overflow: ellipsis;
|
|
2812
|
+
}
|
|
2813
|
+
.medialist-course-item-view .info-view .abttrite-v .left .abttr.time {
|
|
2814
|
+
width: 250px;
|
|
2815
|
+
}
|
|
2816
|
+
.medialist-course-item-view .info-view .abttrite-v .left .abttr.tags {
|
|
2817
|
+
display: flex;
|
|
2818
|
+
align-items: center;
|
|
2819
|
+
width: 190px;
|
|
2820
|
+
}
|
|
2821
|
+
.medialist-course-item-view .info-view .abttrite-v .left .abttr.type {
|
|
2822
|
+
display: inline-block;
|
|
2823
|
+
width: 160px;
|
|
2824
|
+
}
|
|
2825
|
+
.medialist-course-item-view .info-view .abttrite-v .right {
|
|
2826
|
+
margin-right: 20px;
|
|
2827
|
+
}
|
|
2828
|
+
.medialist-funhd-item-view {
|
|
2829
|
+
display: flex;
|
|
2830
|
+
padding: 10px;
|
|
2831
|
+
border-bottom: 1px solid #f0f0f0;
|
|
2832
|
+
}
|
|
2833
|
+
.medialist-funhd-item-view:hover {
|
|
2834
|
+
background: #fafafa;
|
|
2835
|
+
}
|
|
2836
|
+
.medialist-funhd-item-view .cover-view {
|
|
2837
|
+
position: relative;
|
|
2838
|
+
flex-shrink: 0;
|
|
2839
|
+
width: 110px;
|
|
2840
|
+
height: 70px;
|
|
2841
|
+
margin-right: 20px;
|
|
2842
|
+
background: #edf3ff;
|
|
2843
|
+
}
|
|
2844
|
+
.medialist-funhd-item-view .cover-view .image {
|
|
2845
|
+
width: 100%;
|
|
2846
|
+
height: 100%;
|
|
2847
|
+
border-radius: 4px;
|
|
2848
|
+
}
|
|
2849
|
+
.medialist-funhd-item-view .cover-view .image img {
|
|
2850
|
+
width: 100%;
|
|
2851
|
+
height: 100%;
|
|
2852
|
+
}
|
|
2853
|
+
.medialist-funhd-item-view .cover-view .no-img {
|
|
2854
|
+
display: flex;
|
|
2855
|
+
align-items: center;
|
|
2856
|
+
justify-content: center;
|
|
2857
|
+
width: 100%;
|
|
2858
|
+
height: 100%;
|
|
2859
|
+
color: white;
|
|
2860
|
+
font-size: 30px;
|
|
2861
|
+
}
|
|
2862
|
+
.medialist-funhd-item-view .info-view {
|
|
2863
|
+
display: flex;
|
|
2864
|
+
flex: 1;
|
|
2865
|
+
flex-direction: column;
|
|
2866
|
+
justify-content: space-between;
|
|
2867
|
+
padding: 2px 0;
|
|
2868
|
+
}
|
|
2869
|
+
.medialist-funhd-item-view .info-view .title {
|
|
2870
|
+
display: flex;
|
|
2871
|
+
align-items: center;
|
|
2872
|
+
margin-bottom: 10px;
|
|
2873
|
+
overflow: hidden;
|
|
2874
|
+
color: #1d2129;
|
|
2875
|
+
font-weight: 400;
|
|
2876
|
+
font-size: 14px;
|
|
2877
|
+
font-style: normal;
|
|
2878
|
+
line-height: 22px;
|
|
2879
|
+
cursor: pointer;
|
|
2880
|
+
-webkit-line-clamp: 2;
|
|
2881
|
+
-webkit-box-orient: vertical;
|
|
2882
|
+
}
|
|
2883
|
+
.medialist-funhd-item-view .info-view .abttrite-v {
|
|
2884
|
+
display: flex;
|
|
2885
|
+
align-items: center;
|
|
2886
|
+
justify-content: space-between;
|
|
2887
|
+
}
|
|
2888
|
+
.medialist-funhd-item-view .info-view .abttrite-v .left {
|
|
2889
|
+
display: flex;
|
|
2890
|
+
flex: 1;
|
|
2891
|
+
align-items: center;
|
|
2892
|
+
color: #808692;
|
|
2893
|
+
font-size: 12px;
|
|
2894
|
+
}
|
|
2895
|
+
.medialist-funhd-item-view .info-view .abttrite-v .left .icon {
|
|
2896
|
+
margin-right: 8px;
|
|
2897
|
+
}
|
|
2898
|
+
.medialist-funhd-item-view .info-view .abttrite-v .left .abttr {
|
|
2899
|
+
display: inline-block;
|
|
2900
|
+
width: 20%;
|
|
2901
|
+
overflow: hidden;
|
|
2902
|
+
white-space: nowrap;
|
|
2903
|
+
text-overflow: ellipsis;
|
|
2904
|
+
}
|
|
2905
|
+
.medialist-funhd-item-view .info-view .abttrite-v .left .abttr.time {
|
|
2906
|
+
width: 250px;
|
|
2907
|
+
}
|
|
2908
|
+
.medialist-funhd-item-view .info-view .abttrite-v .left .abttr.tags {
|
|
2909
|
+
display: flex;
|
|
2910
|
+
align-items: center;
|
|
2911
|
+
width: 190px;
|
|
2912
|
+
}
|
|
2913
|
+
.medialist-funhd-item-view .info-view .abttrite-v .left .abttr.type {
|
|
2914
|
+
display: inline-block;
|
|
2915
|
+
width: 160px;
|
|
2916
|
+
}
|
|
2917
|
+
.medialist-funhd-item-view .info-view .abttrite-v .right {
|
|
2918
|
+
margin-right: 20px;
|
|
2919
|
+
}
|
|
2733
2920
|
.gray-for-state-hide {
|
|
2734
2921
|
-webkit-filter: grayscale(100%);
|
|
2735
2922
|
-moz-filter: grayscale(100%);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, createCommentVNode, createBlock, unref, Fragment, createVNode } from "vue";
|
|
2
|
-
import { IconXinwen, IconShipin, IconYinyue, IconTuji, IconXiaoshipin, IconZhuanti, IconYinpinji, IconShipinji, IconMiniprogram, IconH5, IconZhibo, IconPicture, IconGongzhonghao, IconGaojian } from "@arco-iconbox/vue-cmstop-icons";
|
|
2
|
+
import { IconXinwen, IconShipin, IconYinyue, IconTuji, IconXiaoshipin, IconZhuanti, IconYinpinji, IconShipinji, IconMiniprogram, IconH5, IconZhibo, IconPicture, IconGongzhonghao, IconSelectGroupoverview, IconSelectVersion, IconBook, IconEvent, IconGaojian } from "@arco-iconbox/vue-cmstop-icons";
|
|
3
3
|
const _hoisted_1 = { class: "type-icons-container" };
|
|
4
4
|
const _sfc_main = defineComponent({
|
|
5
5
|
...{ name: "typeIcons" },
|
|
@@ -43,7 +43,7 @@ const _sfc_main = defineComponent({
|
|
|
43
43
|
createCommentVNode(" h5 "),
|
|
44
44
|
createVNode(unref(IconH5))
|
|
45
45
|
], 2112)) : props.doc && props.type === "live" ? (openBlock(), createElementBlock(Fragment, { key: 10 }, [
|
|
46
|
-
createCommentVNode(" \u76F4\u64AD "),
|
|
46
|
+
createCommentVNode(" \u672C\u5730\u76F4\u64AD "),
|
|
47
47
|
createVNode(unref(IconZhibo))
|
|
48
48
|
], 2112)) : props.resource && props.type === "image" ? (openBlock(), createElementBlock(Fragment, { key: 11 }, [
|
|
49
49
|
createCommentVNode("------------------------------- \u7D20\u6750\u7C7B\u578B --------------------------------------"),
|
|
@@ -53,7 +53,22 @@ const _sfc_main = defineComponent({
|
|
|
53
53
|
createCommentVNode("------------------------------- \u5176\u4ED6\u7C7B\u578B --------------------------------------"),
|
|
54
54
|
createCommentVNode(" \u516C\u4F17\u53F7\u7A3F\u4EF6 "),
|
|
55
55
|
createVNode(unref(IconGongzhonghao))
|
|
56
|
-
], 2112)) : (openBlock(), createElementBlock(Fragment, { key: 13 }, [
|
|
56
|
+
], 2112)) : props.type === "ilive" ? (openBlock(), createElementBlock(Fragment, { key: 13 }, [
|
|
57
|
+
createCommentVNode(" \u4E91\u76F4\u64AD "),
|
|
58
|
+
createVNode(unref(IconZhibo))
|
|
59
|
+
], 2112)) : props.type === "group" ? (openBlock(), createElementBlock(Fragment, { key: 14 }, [
|
|
60
|
+
createCommentVNode(" \u9891\u9053/\u7EC4\u4EF6 "),
|
|
61
|
+
createVNode(unref(IconSelectGroupoverview))
|
|
62
|
+
], 2112)) : props.type === "nav" ? (openBlock(), createElementBlock(Fragment, { key: 15 }, [
|
|
63
|
+
createCommentVNode(" \u529F\u80FD\u5BFC\u822A "),
|
|
64
|
+
createVNode(unref(IconSelectVersion))
|
|
65
|
+
], 2112)) : props.type === "course" ? (openBlock(), createElementBlock(Fragment, { key: 16 }, [
|
|
66
|
+
createCommentVNode(" \u8BFE\u7A0B "),
|
|
67
|
+
createVNode(unref(IconBook))
|
|
68
|
+
], 2112)) : props.type === "funhd" ? (openBlock(), createElementBlock(Fragment, { key: 17 }, [
|
|
69
|
+
createCommentVNode(" \u4E92\u52A8\u8FD0\u8425 "),
|
|
70
|
+
createVNode(unref(IconEvent))
|
|
71
|
+
], 2112)) : (openBlock(), createElementBlock(Fragment, { key: 18 }, [
|
|
57
72
|
createCommentVNode(" \u5FAE\u4FE1\u7A3F\u4EF6 "),
|
|
58
73
|
createCommentVNode(" <icon-weixingaojian /> "),
|
|
59
74
|
createCommentVNode(" \u8F6E\u535A\u56FE\u96C6 "),
|
package/es/utils/request.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import axios from "axios";
|
|
2
|
+
import { Message } from "@arco-design/web-vue";
|
|
2
3
|
import { getToken } from "./auth.js";
|
|
3
4
|
function request(BASE_API, options) {
|
|
4
5
|
const service = axios.create({
|
|
@@ -20,7 +21,10 @@ function request(BASE_API, options) {
|
|
|
20
21
|
service.interceptors.response.use(
|
|
21
22
|
(response) => {
|
|
22
23
|
const res = response.data;
|
|
23
|
-
if (res.code !== 0) {
|
|
24
|
+
if ((res == null ? void 0 : res.code) !== 0) {
|
|
25
|
+
if (res == null ? void 0 : res.real_error) {
|
|
26
|
+
Message.warning({ content: res.real_error });
|
|
27
|
+
}
|
|
24
28
|
return Promise.reject(new Error(res.message || "Error"));
|
|
25
29
|
}
|
|
26
30
|
return res;
|
package/es/utils/typeMap.d.ts
CHANGED
package/es/utils/typeMap.js
CHANGED
|
@@ -68,9 +68,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
68
68
|
vue.createElementVNode("div", _hoisted_6, [
|
|
69
69
|
vue.createVNode(component, {
|
|
70
70
|
class: "icon",
|
|
71
|
-
doc: _ctx.item.catalog === "doc",
|
|
72
71
|
type: _ctx.item.series
|
|
73
|
-
}, null, 8, ["
|
|
72
|
+
}, null, 8, ["type"]),
|
|
74
73
|
vue.renderSlot(_ctx.$slots, "tip"),
|
|
75
74
|
_hoisted_7,
|
|
76
75
|
vue.createElementVNode("span", _hoisted_8, "\u53D1\u5E03\u65F6\u95F4: " + vue.toDisplayString(vue.unref(index.timeFormat)(_ctx.item.pub_time)), 1)
|