@cmstops/pro-compo 3.9.2-alpha.21 → 3.9.2-alpha.23
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/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +6 -177
- package/es/contentModal/components/ViewAllColumn/index.js +0 -1
- package/es/contentModal/script/api.js +1 -7
- package/es/selectAddTo/component.js +23 -102
- package/es/selectAddTo/components/SelectAddToView.js +91 -0
- package/es/selectAddTo/components/SelectAddToView.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
- package/es/selectAddTo/components/ViewAllColumn/MediaFilter/index.js +1 -4
- package/es/selectAddTo/components/ViewAllColumn/index.js +21 -18
- package/es/selectAddTo/components/ViewAllColumn/script/useTableColumns.js +31 -7
- package/es/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.js +3 -14
- package/es/selectAddTo/index.js +1 -10
- package/es/selectAddTo/script/api.js +1 -14
- package/es/selectAddTo/script/useSelectAddToState.js +16 -67
- package/es/selectThumb/component.js +9 -9
- package/es/style.css +24 -18
- package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +5 -176
- package/lib/contentModal/components/ViewAllColumn/index.js +0 -1
- package/lib/contentModal/script/api.js +0 -7
- package/lib/index.js +1 -1
- package/lib/selectAddTo/component.js +22 -101
- package/lib/selectAddTo/components/SelectAddToView.js +92 -0
- package/lib/selectAddTo/components/SelectAddToView.vue_vue_type_style_index_0_scoped_true_lang.js +3 -0
- package/lib/selectAddTo/components/ViewAllColumn/MediaFilter/index.js +1 -4
- package/lib/selectAddTo/components/ViewAllColumn/index.js +20 -17
- package/lib/selectAddTo/components/ViewAllColumn/script/useTableColumns.js +34 -6
- package/lib/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.js +3 -14
- package/lib/selectAddTo/index.js +2 -12
- package/lib/selectAddTo/script/api.js +0 -15
- package/lib/selectAddTo/script/useSelectAddToState.js +16 -67
- package/lib/selectThumb/component.js +9 -9
- package/package.json +1 -1
- package/es/contentModal/components/ViewAllColumn/columnTree/index.js +0 -151
- package/es/selectAddTo/components/ViewAllColumn/columnTree/index.js +0 -151
- package/lib/contentModal/components/ViewAllColumn/columnTree/index.js +0 -152
- package/lib/selectAddTo/components/ViewAllColumn/columnTree/index.js +0 -152
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ref, computed, watch } from "vue";
|
|
2
|
-
import { Message } from "@arco-design/web-vue";
|
|
3
2
|
import { DEFAULT_BASE_API } from "../../../../config.js";
|
|
4
3
|
import { getCategoryMediaNew, getPoliticals, getMlists } from "../../../script/api.js";
|
|
5
4
|
import useTableBatch from "../../../../hooks/batch.js";
|
|
@@ -22,14 +21,11 @@ const useViewAllColumnState = (props, emit) => {
|
|
|
22
21
|
selectedData.value = val;
|
|
23
22
|
}
|
|
24
23
|
);
|
|
25
|
-
const importantBanner = computed(() => {
|
|
26
|
-
if (!props.banner || props.banner === "all")
|
|
27
|
-
return false;
|
|
28
|
-
return !!props.banner;
|
|
29
|
-
});
|
|
30
24
|
const { isItemChecked, tableCellMouseEnter, tableCellMouseLeave } = useTableBatch();
|
|
31
25
|
const selectTableCell = (record) => {
|
|
32
|
-
|
|
26
|
+
if (props.typeKey === "series:special_v3" ? record.isLeaf && record.parentId : true) {
|
|
27
|
+
selectData(record);
|
|
28
|
+
}
|
|
33
29
|
};
|
|
34
30
|
const selectTableAll = (checked) => {
|
|
35
31
|
if (checked) {
|
|
@@ -41,12 +37,6 @@ const useViewAllColumnState = (props, emit) => {
|
|
|
41
37
|
emitChange();
|
|
42
38
|
};
|
|
43
39
|
const selectData = (record) => {
|
|
44
|
-
if (importantBanner.value) {
|
|
45
|
-
const { cover } = record;
|
|
46
|
-
if (!(cover == null ? void 0 : cover.banner)) {
|
|
47
|
-
return Message.warning({ content: "\u8BE5\u5185\u5BB9\u4E0D\u5177\u5907\u72EC\u7ACB\u8F6E\u64AD\u56FE" });
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
40
|
addDataToSelectedList(record);
|
|
51
41
|
return true;
|
|
52
42
|
};
|
|
@@ -168,7 +158,6 @@ const useViewAllColumnState = (props, emit) => {
|
|
|
168
158
|
);
|
|
169
159
|
}, 2e3);
|
|
170
160
|
} catch (error) {
|
|
171
|
-
console.error("Failed to load more data:", error);
|
|
172
161
|
done([]);
|
|
173
162
|
}
|
|
174
163
|
};
|
package/es/selectAddTo/index.js
CHANGED
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
import _selectAddTo from "./component.js";
|
|
2
|
-
import ViewAllColumn from "./components/ViewAllColumn/index.js";
|
|
3
|
-
export { default as ViewAllColumn } from "./components/ViewAllColumn/index.js";
|
|
4
|
-
import _sfc_main from "./components/ViewAllColumn/MediaFilter/index.js";
|
|
5
|
-
export { default as MediaFilter } from "./components/ViewAllColumn/MediaFilter/index.js";
|
|
6
|
-
import _sfc_main$1 from "./components/ViewAllColumn/columnTree/index.js";
|
|
7
|
-
export { default as ColumnTree } from "./components/ViewAllColumn/columnTree/index.js";
|
|
8
2
|
const selectAddTo = Object.assign(_selectAddTo, {
|
|
9
3
|
install: (app) => {
|
|
10
|
-
app.component(
|
|
11
|
-
app.component("ViewAllColumn", ViewAllColumn);
|
|
12
|
-
app.component("MediaFilter", _sfc_main);
|
|
13
|
-
app.component("ColumnTree", _sfc_main$1);
|
|
4
|
+
app.component(_selectAddTo.name, _selectAddTo);
|
|
14
5
|
}
|
|
15
6
|
});
|
|
16
7
|
export { selectAddTo as default };
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import request from "../../utils/request.js";
|
|
2
|
-
function getCategoryPath(BASE_API, params) {
|
|
3
|
-
return request(BASE_API, {
|
|
4
|
-
url: `/poplar/v2/repo/${params == null ? void 0 : params.repo}/category/${params == null ? void 0 : params.category}/path`,
|
|
5
|
-
method: "get"
|
|
6
|
-
});
|
|
7
|
-
}
|
|
8
2
|
function getCategoryMediaNew(BASE_API, params) {
|
|
9
3
|
return request(BASE_API, {
|
|
10
4
|
url: `/poplar/v3/s/documents`,
|
|
@@ -26,11 +20,4 @@ function getMlists(BASE_API, params) {
|
|
|
26
20
|
params
|
|
27
21
|
});
|
|
28
22
|
}
|
|
29
|
-
|
|
30
|
-
return request(BASE_API, {
|
|
31
|
-
url: "/poplar/v2/configuration",
|
|
32
|
-
method: "get",
|
|
33
|
-
params
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
export { getCategoryMediaNew, getCategoryPath, getConfigurationNew, getMlists, getPoliticals };
|
|
23
|
+
export { getCategoryMediaNew, getMlists, getPoliticals };
|
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
import { computed, ref } from "vue";
|
|
2
|
-
import { getConfigurationNew } from "./api.js";
|
|
3
2
|
import { DEFAULT_BASE_API } from "../../config.js";
|
|
4
|
-
import useLoadUserInfo from "../../hooks/user.js";
|
|
5
3
|
const useSelectAddToState = (props, emit) => {
|
|
6
|
-
|
|
4
|
+
props.BASE_API || DEFAULT_BASE_API;
|
|
7
5
|
const visible = computed({
|
|
8
6
|
get() {
|
|
9
7
|
return props.visible;
|
|
10
8
|
},
|
|
11
9
|
set(value) {
|
|
12
|
-
|
|
10
|
+
emit("update:visible", value);
|
|
13
11
|
}
|
|
14
12
|
});
|
|
15
13
|
const selectedData = ref([]);
|
|
16
|
-
const configData = ref({});
|
|
17
|
-
const { userInfo, getUserInfoHandle } = useLoadUserInfo(BASE_API);
|
|
18
14
|
const title = computed(() => {
|
|
19
15
|
const titleMap = {
|
|
20
16
|
"series:video_album": "\u6DFB\u52A0\u81F3\u89C6\u9891\u5408\u96C6",
|
|
@@ -25,82 +21,35 @@ const useSelectAddToState = (props, emit) => {
|
|
|
25
21
|
return titleMap[props.typeKey || ""] || "";
|
|
26
22
|
});
|
|
27
23
|
const hasSelected = computed(() => selectedData.value.length > 0);
|
|
28
|
-
const
|
|
29
|
-
if (!props.typeData)
|
|
30
|
-
return {};
|
|
31
|
-
try {
|
|
32
|
-
return JSON.parse(JSON.stringify(props.typeData));
|
|
33
|
-
} catch (e) {
|
|
34
|
-
console.warn("Failed to parse typeData:", e);
|
|
35
|
-
return {};
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
const setVisible = (bool) => {
|
|
39
|
-
emit("update:visible", bool);
|
|
40
|
-
};
|
|
41
|
-
const selectedDataChangeHandle = (data) => {
|
|
24
|
+
const onSelectedDataChange = (data) => {
|
|
42
25
|
selectedData.value = data;
|
|
43
26
|
};
|
|
44
|
-
const
|
|
45
|
-
|
|
27
|
+
const onOk = () => {
|
|
28
|
+
visible.value = false;
|
|
46
29
|
};
|
|
47
|
-
const
|
|
48
|
-
|
|
30
|
+
const onCancel = () => {
|
|
31
|
+
visible.value = false;
|
|
49
32
|
};
|
|
50
|
-
const
|
|
33
|
+
const onComfirm = () => {
|
|
51
34
|
emit("comfirm", JSON.parse(JSON.stringify(selectedData.value)));
|
|
52
35
|
};
|
|
53
|
-
const
|
|
54
|
-
selectedData.value = props.defaultSelectedData || [];
|
|
55
|
-
};
|
|
56
|
-
const HandleClose = () => {
|
|
36
|
+
const onClose = () => {
|
|
57
37
|
selectedData.value = [];
|
|
58
38
|
};
|
|
59
|
-
const
|
|
39
|
+
const onTabChange = () => {
|
|
60
40
|
selectedData.value = [];
|
|
61
41
|
};
|
|
62
|
-
const loadConfig = async () => {
|
|
63
|
-
var _a;
|
|
64
|
-
try {
|
|
65
|
-
const res = await getConfigurationNew(BASE_API, {
|
|
66
|
-
module: "third_party_services"
|
|
67
|
-
});
|
|
68
|
-
if (res.code === 0 && ((_a = res.message) == null ? void 0 : _a.length)) {
|
|
69
|
-
res.message.forEach((item) => {
|
|
70
|
-
configData.value[item.key] = JSON.parse(item.value);
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
} catch (error) {
|
|
74
|
-
console.error("Failed to load configuration:", error);
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
const checkServiceEnable = (key) => {
|
|
78
|
-
const data = configData.value[key];
|
|
79
|
-
if (!data)
|
|
80
|
-
return false;
|
|
81
|
-
if (!data.enable && typeof data.enable !== "undefined")
|
|
82
|
-
return false;
|
|
83
|
-
return true;
|
|
84
|
-
};
|
|
85
42
|
return {
|
|
86
43
|
visible,
|
|
87
44
|
title,
|
|
88
45
|
selectedData,
|
|
89
46
|
hasSelected,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
handleCancel,
|
|
97
|
-
comfirm,
|
|
98
|
-
HandleOpen,
|
|
99
|
-
HandleClose,
|
|
100
|
-
tabsChange,
|
|
101
|
-
loadConfig,
|
|
102
|
-
checkServiceEnable,
|
|
103
|
-
getUserInfoHandle
|
|
47
|
+
onSelectedDataChange,
|
|
48
|
+
onOk,
|
|
49
|
+
onCancel,
|
|
50
|
+
onComfirm,
|
|
51
|
+
onClose,
|
|
52
|
+
onTabChange
|
|
104
53
|
};
|
|
105
54
|
};
|
|
106
55
|
export { useSelectAddToState };
|
|
@@ -516,15 +516,15 @@ const _sfc_main = defineComponent({
|
|
|
516
516
|
}), 128))
|
|
517
517
|
]),
|
|
518
518
|
_: 1
|
|
519
|
-
}, 8, ["modelValue"])
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
519
|
+
}, 8, ["modelValue"]),
|
|
520
|
+
hasCover.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
521
|
+
key: 0,
|
|
522
|
+
"style-data": styleData.value,
|
|
523
|
+
model: "cover",
|
|
524
|
+
style: { "margin-top": "10px" },
|
|
525
|
+
onChange: colorChange
|
|
526
|
+
}, null, 8, ["style-data"])) : createCommentVNode("v-if", true)
|
|
527
|
+
], 64)) : createCommentVNode("v-if", true)
|
|
528
528
|
])
|
|
529
529
|
], 2),
|
|
530
530
|
_ctx.mode === "doc" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
package/es/style.css
CHANGED
|
@@ -1,63 +1,69 @@
|
|
|
1
|
-
.content-tabs[data-v-
|
|
1
|
+
.content-tabs[data-v-7f81762c] .arco-tabs-content {
|
|
2
2
|
padding: 0;
|
|
3
3
|
}
|
|
4
|
-
.add-content-modal-body[data-v-
|
|
4
|
+
.add-content-modal-body[data-v-7f81762c] {
|
|
5
5
|
padding: 0;
|
|
6
6
|
}
|
|
7
|
-
.
|
|
7
|
+
.type-icons-container {
|
|
8
|
+
display: inline-block;
|
|
9
|
+
vertical-align: middle;
|
|
10
|
+
line-height: 12px;
|
|
11
|
+
font-size: 18px;
|
|
12
|
+
}
|
|
13
|
+
.content-tabs[data-v-00adfb7c] .arco-tabs-content {
|
|
14
|
+
padding: 0;
|
|
15
|
+
}
|
|
16
|
+
.add-content-modal-body[data-v-00adfb7c] {
|
|
17
|
+
padding: 0;
|
|
18
|
+
}
|
|
19
|
+
.view-all-column-container[data-v-01c2d0b8] {
|
|
8
20
|
display: flex;
|
|
9
21
|
flex-direction: column;
|
|
10
22
|
height: 100%;
|
|
11
23
|
}
|
|
12
|
-
.content-table-view[data-v-
|
|
24
|
+
.content-table-view[data-v-01c2d0b8] {
|
|
13
25
|
flex: 1;
|
|
14
26
|
overflow: auto;
|
|
15
27
|
margin: 16px 0;
|
|
16
28
|
}
|
|
17
|
-
.bottom-view[data-v-
|
|
29
|
+
.bottom-view[data-v-01c2d0b8] {
|
|
18
30
|
display: flex;
|
|
19
31
|
justify-content: space-between;
|
|
20
32
|
align-items: center;
|
|
21
33
|
padding: 16px 0;
|
|
22
34
|
}
|
|
23
|
-
.bottom-view .left[data-v-
|
|
35
|
+
.bottom-view .left[data-v-01c2d0b8] {
|
|
24
36
|
display: flex;
|
|
25
37
|
align-items: center;
|
|
26
38
|
gap: 16px;
|
|
27
39
|
}
|
|
28
|
-
.title-span[data-v-
|
|
40
|
+
.title-span[data-v-01c2d0b8] {
|
|
29
41
|
display: flex;
|
|
30
42
|
align-items: center;
|
|
31
43
|
gap: 8px;
|
|
32
44
|
}
|
|
33
|
-
.title-span .icon[data-v-
|
|
45
|
+
.title-span .icon[data-v-01c2d0b8] {
|
|
34
46
|
font-size: 16px;
|
|
35
47
|
}
|
|
36
|
-
.title-span .title[data-v-
|
|
48
|
+
.title-span .title[data-v-01c2d0b8] {
|
|
37
49
|
flex: 1;
|
|
38
50
|
overflow: hidden;
|
|
39
51
|
text-overflow: ellipsis;
|
|
40
52
|
white-space: nowrap;
|
|
41
53
|
}
|
|
42
|
-
.pic-thumb-img[data-v-
|
|
54
|
+
.pic-thumb-img[data-v-01c2d0b8] {
|
|
43
55
|
width: 80px;
|
|
44
56
|
height: 80px;
|
|
45
57
|
object-fit: cover;
|
|
46
58
|
border-radius: 4px;
|
|
47
59
|
}
|
|
48
|
-
.pic-thumb-img.placeholder[data-v-
|
|
60
|
+
.pic-thumb-img.placeholder[data-v-01c2d0b8] {
|
|
49
61
|
background-color: #f5f5f5;
|
|
50
62
|
display: flex;
|
|
51
63
|
align-items: center;
|
|
52
64
|
justify-content: center;
|
|
53
65
|
}
|
|
54
|
-
.pic-thumb-img.placeholder .placeholder-text[data-v-
|
|
66
|
+
.pic-thumb-img.placeholder .placeholder-text[data-v-01c2d0b8] {
|
|
55
67
|
color: #999;
|
|
56
68
|
font-size: 12px;
|
|
57
69
|
}
|
|
58
|
-
.type-icons-container {
|
|
59
|
-
display: inline-block;
|
|
60
|
-
vertical-align: middle;
|
|
61
|
-
line-height: 12px;
|
|
62
|
-
font-size: 18px;
|
|
63
|
-
}
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
var vue = require("vue");
|
|
3
3
|
var webVue = require("@arco-design/web-vue");
|
|
4
4
|
var icon = require("@arco-design/web-vue/es/icon");
|
|
5
|
-
var doc = require("../../../../utils/doc.js");
|
|
6
|
-
var index = require("../columnTree/index.js");
|
|
7
5
|
const _hoisted_1 = { class: "media-filter-container" };
|
|
8
6
|
const _hoisted_2 = { style: { "display": "flex", "align-items": "center", "gap": "5px" } };
|
|
9
7
|
const _hoisted_3 = { class: "sort-button" };
|
|
@@ -13,10 +11,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
13
11
|
props: {
|
|
14
12
|
groupId: {},
|
|
15
13
|
tree: { default: () => [] },
|
|
16
|
-
|
|
17
|
-
banner: { default: "all" },
|
|
18
|
-
height: {},
|
|
19
|
-
userInfo: {}
|
|
14
|
+
height: {}
|
|
20
15
|
},
|
|
21
16
|
emits: ["update:group_id", "search"],
|
|
22
17
|
setup(__props, { emit: __emit }) {
|
|
@@ -44,82 +39,12 @@ const _sfc_main = vue.defineComponent({
|
|
|
44
39
|
desc: "\u4F1A\u5C06\u8F93\u5165\u5185\u5BB9\u5206\u8BCD\uFF0C\u4F8B\u5982\u201C\u6210\u957F\u201D\u4F1A\u5206\u4E3A\u201C\u6210\u201D\u3001\u201C\u957F\u201D\u3001\u201C\u6210\u957F\u201D\uFF0C\u5185\u5BB9\u5305\u542B\u4E09\u4E2A\u8BCD\u4E2D\u4EFB\u610F\u4E00\u4E2A\u5747\u4F1A\u663E\u793A\u51FA\u6765\uFF0C\u641C\u7D22\u5185\u5BB9\u66F4\u52A0\u4E30\u5BCC"
|
|
45
40
|
}
|
|
46
41
|
];
|
|
47
|
-
const bannerOptions = vue.computed(() => {
|
|
48
|
-
const options = [
|
|
49
|
-
{
|
|
50
|
-
value: "0",
|
|
51
|
-
key: "0",
|
|
52
|
-
label: "\u65E0\u72EC\u7ACB\u8F6E\u64AD"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
value: "1",
|
|
56
|
-
key: "1",
|
|
57
|
-
label: "\u6709\u72EC\u7ACB\u8F6E\u64AD"
|
|
58
|
-
}
|
|
59
|
-
];
|
|
60
|
-
return options.filter(
|
|
61
|
-
(item) => props.banner === "all" || props.banner === item.key
|
|
62
|
-
);
|
|
63
|
-
});
|
|
64
|
-
const typeOptions = vue.computed(() => {
|
|
65
|
-
const arr = Object.keys(doc.docSeries).map((key) => {
|
|
66
|
-
return {
|
|
67
|
-
value: key,
|
|
68
|
-
label: doc.docSeries[key].replace("\u7A3F\u4EF6", "")
|
|
69
|
-
};
|
|
70
|
-
});
|
|
71
|
-
return arr.filter((item) => {
|
|
72
|
-
if (props.series === "all") {
|
|
73
|
-
return true;
|
|
74
|
-
}
|
|
75
|
-
return props.series.split(",").includes(item.value);
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
const thumbOptions = vue.computed(() => {
|
|
79
|
-
return Object.keys(doc.docThumbMap()).map((key) => {
|
|
80
|
-
return {
|
|
81
|
-
value: key,
|
|
82
|
-
label: doc.docThumbMap()[key]
|
|
83
|
-
};
|
|
84
|
-
});
|
|
85
|
-
});
|
|
86
42
|
const sortMethodOptions = vue.computed(() => {
|
|
87
43
|
return [
|
|
88
44
|
{ value: "pub_time", label: "\u53D1\u5E03\u65F6\u95F4" },
|
|
89
45
|
{ value: "create_time", label: "\u521B\u5EFA\u65F6\u95F4" }
|
|
90
46
|
];
|
|
91
47
|
});
|
|
92
|
-
const showReset = vue.computed(() => {
|
|
93
|
-
let { banner } = filter.value;
|
|
94
|
-
if (props.banner !== "all") {
|
|
95
|
-
banner = "";
|
|
96
|
-
}
|
|
97
|
-
let series = filter.value.type;
|
|
98
|
-
if (props.series !== "all") {
|
|
99
|
-
series = "";
|
|
100
|
-
}
|
|
101
|
-
return filter.value.keywords || series || filter.value.cover_type || banner || filter.value.sort !== -1;
|
|
102
|
-
});
|
|
103
|
-
const reset = () => {
|
|
104
|
-
const _set = {
|
|
105
|
-
keywords: "",
|
|
106
|
-
cover_type: "",
|
|
107
|
-
sort: -1,
|
|
108
|
-
order: "create_time"
|
|
109
|
-
};
|
|
110
|
-
Object.assign(filter.value, _set);
|
|
111
|
-
if (props.banner !== "all") {
|
|
112
|
-
filter.value.banner = props.banner;
|
|
113
|
-
} else {
|
|
114
|
-
filter.value.banner = "";
|
|
115
|
-
}
|
|
116
|
-
if (props.series !== "all" && props.series.split(",").length === 1) {
|
|
117
|
-
filter.value.type = props.series;
|
|
118
|
-
} else {
|
|
119
|
-
filter.value.type = "";
|
|
120
|
-
}
|
|
121
|
-
column_id.value = "all";
|
|
122
|
-
};
|
|
123
48
|
const checkout = (type) => {
|
|
124
49
|
filter.value.wordState = type;
|
|
125
50
|
};
|
|
@@ -145,19 +70,6 @@ const _sfc_main = vue.defineComponent({
|
|
|
145
70
|
column_id.value = val;
|
|
146
71
|
}
|
|
147
72
|
);
|
|
148
|
-
vue.watch(
|
|
149
|
-
() => props.banner,
|
|
150
|
-
(val) => {
|
|
151
|
-
filter.value.banner = val === "all" ? "" : val;
|
|
152
|
-
},
|
|
153
|
-
{ immediate: true }
|
|
154
|
-
);
|
|
155
|
-
vue.watch(
|
|
156
|
-
() => column_id.value,
|
|
157
|
-
(val) => {
|
|
158
|
-
emit("update:group_id", val);
|
|
159
|
-
}
|
|
160
|
-
);
|
|
161
73
|
return (_ctx, _cache) => {
|
|
162
74
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
163
75
|
vue.createVNode(vue.unref(webVue.Space), { size: "small" }, {
|
|
@@ -179,9 +91,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
179
91
|
onSelect: checkout
|
|
180
92
|
}, {
|
|
181
93
|
default: vue.withCtx(() => [
|
|
182
|
-
(vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(wordStateOptions, (item,
|
|
94
|
+
(vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(wordStateOptions, (item, index) => {
|
|
183
95
|
return vue.createVNode(vue.unref(webVue.Option), {
|
|
184
|
-
key:
|
|
96
|
+
key: index,
|
|
185
97
|
value: item.value,
|
|
186
98
|
label: item.label
|
|
187
99
|
}, {
|
|
@@ -208,97 +120,14 @@ const _sfc_main = vue.defineComponent({
|
|
|
208
120
|
}, 8, ["modelValue"])
|
|
209
121
|
]),
|
|
210
122
|
_: 1
|
|
211
|
-
}, 8, ["modelValue"])
|
|
212
|
-
vue.createVNode(index, {
|
|
213
|
-
column_id: column_id.value,
|
|
214
|
-
"onUpdate:column_id": _cache[2] || (_cache[2] = ($event) => column_id.value = $event),
|
|
215
|
-
height: props.height,
|
|
216
|
-
tree: props.tree,
|
|
217
|
-
"user-info": props.userInfo
|
|
218
|
-
}, null, 8, ["column_id", "height", "tree", "user-info"]),
|
|
219
|
-
vue.createVNode(vue.unref(webVue.Select), {
|
|
220
|
-
modelValue: filter.value.type,
|
|
221
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => filter.value.type = $event),
|
|
222
|
-
style: { width: "96px" },
|
|
223
|
-
"trigger-props": { autoFitPopupMinWidth: true },
|
|
224
|
-
"allow-clear": "",
|
|
225
|
-
class: "filter-item",
|
|
226
|
-
placeholder: "\u7C7B\u578B"
|
|
227
|
-
}, {
|
|
228
|
-
default: vue.withCtx(() => [
|
|
229
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(typeOptions.value, (item) => {
|
|
230
|
-
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
|
|
231
|
-
key: item.value,
|
|
232
|
-
label: item.label,
|
|
233
|
-
value: item.value
|
|
234
|
-
}, null, 8, ["label", "value"]);
|
|
235
|
-
}), 128))
|
|
236
|
-
]),
|
|
237
|
-
_: 1
|
|
238
|
-
}, 8, ["modelValue"]),
|
|
239
|
-
vue.createVNode(vue.unref(webVue.Select), {
|
|
240
|
-
modelValue: filter.value.cover_type,
|
|
241
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => filter.value.cover_type = $event),
|
|
242
|
-
style: { width: "96px" },
|
|
243
|
-
"trigger-props": { autoFitPopupMinWidth: true },
|
|
244
|
-
"allow-clear": "",
|
|
245
|
-
class: "filter-item",
|
|
246
|
-
placeholder: "\u5C01\u9762"
|
|
247
|
-
}, {
|
|
248
|
-
default: vue.withCtx(() => [
|
|
249
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(thumbOptions.value, (item) => {
|
|
250
|
-
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
|
|
251
|
-
key: item.value,
|
|
252
|
-
label: item.label,
|
|
253
|
-
value: item.value
|
|
254
|
-
}, null, 8, ["label", "value"]);
|
|
255
|
-
}), 128))
|
|
256
|
-
]),
|
|
257
|
-
_: 1
|
|
258
|
-
}, 8, ["modelValue"]),
|
|
259
|
-
vue.createVNode(vue.unref(webVue.Select), {
|
|
260
|
-
modelValue: filter.value.banner,
|
|
261
|
-
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => filter.value.banner = $event),
|
|
262
|
-
style: { width: "124px" },
|
|
263
|
-
"trigger-props": { autoFitPopupMinWidth: true },
|
|
264
|
-
"allow-clear": "",
|
|
265
|
-
class: "filter-item",
|
|
266
|
-
disabled: props.banner !== "all",
|
|
267
|
-
placeholder: "\u72EC\u7ACB\u8F6E\u64AD"
|
|
268
|
-
}, {
|
|
269
|
-
default: vue.withCtx(() => [
|
|
270
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(bannerOptions.value, (item) => {
|
|
271
|
-
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
|
|
272
|
-
key: item.value,
|
|
273
|
-
label: item.label,
|
|
274
|
-
value: item.value
|
|
275
|
-
}, null, 8, ["label", "value"]);
|
|
276
|
-
}), 128))
|
|
277
|
-
]),
|
|
278
|
-
_: 1
|
|
279
|
-
}, 8, ["modelValue", "disabled"]),
|
|
280
|
-
vue.withDirectives(vue.createVNode(vue.unref(webVue.Button), {
|
|
281
|
-
class: "reset-button",
|
|
282
|
-
size: "small",
|
|
283
|
-
type: "text",
|
|
284
|
-
onClick: reset
|
|
285
|
-
}, {
|
|
286
|
-
default: vue.withCtx(() => [
|
|
287
|
-
vue.createVNode(vue.unref(icon.IconRefresh), { class: "reset-icon" }),
|
|
288
|
-
_cache[7] || (_cache[7] = vue.createTextVNode(" \u91CD\u7F6E "))
|
|
289
|
-
]),
|
|
290
|
-
_: 1,
|
|
291
|
-
__: [7]
|
|
292
|
-
}, 512), [
|
|
293
|
-
[vue.vShow, showReset.value]
|
|
294
|
-
])
|
|
123
|
+
}, 8, ["modelValue"])
|
|
295
124
|
]),
|
|
296
125
|
_: 1
|
|
297
126
|
}),
|
|
298
127
|
vue.createElementVNode("div", _hoisted_3, [
|
|
299
128
|
vue.createVNode(vue.unref(webVue.Select), {
|
|
300
129
|
modelValue: filter.value.order,
|
|
301
|
-
"onUpdate:modelValue": _cache[
|
|
130
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => filter.value.order = $event),
|
|
302
131
|
class: "filter-item",
|
|
303
132
|
placeholder: "\u53D1\u5E03\u65F6\u95F4"
|
|
304
133
|
}, {
|
|
@@ -8,12 +8,6 @@ function getCategoryCategoriesTree(BASE_API, params) {
|
|
|
8
8
|
params
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
|
-
function getCategoryPath(BASE_API, params) {
|
|
12
|
-
return request(BASE_API, {
|
|
13
|
-
url: `/poplar/v2/repo/${params == null ? void 0 : params.repo}/category/${params == null ? void 0 : params.category}/path`,
|
|
14
|
-
method: "get"
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
11
|
function getCategoryMediaNew(BASE_API, params) {
|
|
18
12
|
return request(BASE_API, {
|
|
19
13
|
url: `/poplar/v3/s/documents`,
|
|
@@ -104,7 +98,6 @@ exports.checkCommitFulfillment = checkCommitFulfillment;
|
|
|
104
98
|
exports.getBroadcastList = getBroadcastList;
|
|
105
99
|
exports.getCategoryCategoriesTree = getCategoryCategoriesTree;
|
|
106
100
|
exports.getCategoryMediaNew = getCategoryMediaNew;
|
|
107
|
-
exports.getCategoryPath = getCategoryPath;
|
|
108
101
|
exports.getCategorylistsGroups = getCategorylistsGroups;
|
|
109
102
|
exports.getConfigurationNew = getConfigurationNew;
|
|
110
103
|
exports.getEqxiuList = getEqxiuList;
|
package/lib/index.js
CHANGED