@cmstops/pro-compo 0.1.2 → 0.1.4
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 +141 -5
- package/dist/index.min.css +1 -1
- package/es/appCenter/component.js +3 -2
- package/es/appCenter/script/routeMap.d.ts +1 -1
- package/es/appCenter/style/index.css +1 -1
- package/es/appCenter/style/index.less +1 -1
- package/es/config.d.ts +2 -0
- package/es/config.js +3 -0
- package/es/contentModal/component.d.ts +0 -0
- package/es/contentModal/component.js +175 -0
- package/es/contentModal/components/CompoList/CompoFilter/index.d.ts +0 -0
- package/es/contentModal/components/CompoList/CompoFilter/index.js +103 -0
- package/es/contentModal/components/CompoList/index.d.ts +0 -0
- package/es/contentModal/components/CompoList/index.js +234 -0
- package/es/contentModal/components/ViewAllColumn/MediaFilter/index.d.ts +0 -0
- package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +44 -0
- package/es/contentModal/components/ViewAllColumn/columnTree/index.d.ts +0 -0
- package/es/contentModal/components/ViewAllColumn/columnTree/index.js +101 -0
- package/es/contentModal/components/ViewAllColumn/index.d.ts +0 -0
- package/es/contentModal/components/ViewAllColumn/index.js +277 -0
- package/es/contentModal/components/storeBox/index.d.ts +0 -0
- package/es/contentModal/components/storeBox/index.js +107 -0
- package/es/contentModal/index.d.ts +2 -0
- package/es/contentModal/index.js +7 -0
- package/es/contentModal/script/api.d.ts +10 -0
- package/es/contentModal/script/api.js +45 -0
- package/es/contentModal/style/MediaFilter.less +8 -0
- package/es/contentModal/style/ViewAllColumn.less +33 -0
- package/es/contentModal/style/columnTree.less +9 -0
- package/es/contentModal/style/css.js +5 -0
- package/es/contentModal/style/index.css +13 -0
- package/es/contentModal/style/index.d.ts +5 -0
- package/es/contentModal/style/index.js +5 -0
- package/es/contentModal/style/index.less +16 -0
- package/es/contentModal/style/storeBox.less +45 -0
- package/es/hooks/batch.d.ts +8 -0
- package/es/hooks/batch.js +26 -0
- package/es/hooks/user.d.ts +11 -0
- package/es/hooks/user.js +46 -0
- package/es/index.css +141 -5
- package/es/index.d.ts +6 -1
- package/es/index.js +6 -1
- package/es/index.less +6 -1
- package/es/messageBox/component.d.ts +0 -0
- package/es/messageBox/component.js +146 -0
- package/es/messageBox/index.d.ts +2 -0
- package/es/messageBox/index.js +7 -0
- package/es/messageBox/list.d.ts +0 -0
- package/es/messageBox/list.js +116 -0
- package/es/messageBox/script/api.d.ts +6 -0
- package/es/messageBox/script/api.js +16 -0
- package/es/messageBox/style/index.css +64 -0
- package/es/messageBox/style/index.less +71 -0
- package/es/resourceModal/component.d.ts +0 -0
- package/es/resourceModal/component.js +14 -0
- package/es/resourceModal/index.d.ts +2 -0
- package/es/resourceModal/index.js +7 -0
- package/es/resourceModal/style/css.js +1 -0
- package/es/resourceModal/style/index.d.ts +1 -0
- package/es/resourceModal/style/index.js +1 -0
- package/es/style.css +5 -0
- package/es/typeIcons/component.d.ts +0 -0
- package/es/typeIcons/component.js +62 -0
- package/es/typeIcons/index.d.ts +2 -0
- package/es/typeIcons/index.js +7 -0
- package/es/typeIcons/style/css.js +1 -0
- package/es/typeIcons/style/index.css +5 -0
- package/es/typeIcons/style/index.d.ts +1 -0
- package/es/typeIcons/style/index.js +1 -0
- package/es/typeIcons/style/index.less +5 -0
- package/es/uploadStep/component.d.ts +0 -0
- package/es/uploadStep/component.js +14 -0
- package/es/uploadStep/index.d.ts +2 -0
- package/es/uploadStep/index.js +7 -0
- package/es/uploadStep/style/css.js +1 -0
- package/es/uploadStep/style/index.d.ts +1 -0
- package/es/uploadStep/style/index.js +1 -0
- package/es/userAvater/component.d.ts +0 -0
- package/es/userAvater/component.js +167 -0
- package/es/userAvater/index.d.ts +2 -0
- package/es/userAvater/index.js +7 -0
- package/es/userAvater/script/api.d.ts +8 -0
- package/es/userAvater/script/api.js +32 -0
- package/es/userAvater/style/css.js +1 -0
- package/es/userAvater/style/index.css +50 -0
- package/es/userAvater/style/index.d.ts +1 -0
- package/es/userAvater/style/index.js +1 -0
- package/es/userAvater/style/index.less +54 -0
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.js +7 -0
- package/es/utils/request.js +1 -1
- package/es/utils/typeMap.d.ts +116 -0
- package/es/utils/typeMap.js +22 -0
- package/lib/appCenter/component.js +3 -2
- package/lib/appCenter/style/index.css +1 -1
- package/lib/appCenter/style/index.less +1 -1
- package/lib/config.js +6 -0
- package/lib/contentModal/component.js +176 -0
- package/lib/contentModal/components/CompoList/CompoFilter/index.js +104 -0
- package/lib/contentModal/components/CompoList/index.js +235 -0
- package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +45 -0
- package/lib/contentModal/components/ViewAllColumn/columnTree/index.js +102 -0
- package/lib/contentModal/components/ViewAllColumn/index.js +278 -0
- package/lib/contentModal/components/storeBox/index.js +108 -0
- package/lib/contentModal/index.js +8 -0
- package/lib/contentModal/script/api.js +52 -0
- package/lib/contentModal/style/MediaFilter.less +8 -0
- package/lib/contentModal/style/ViewAllColumn.less +33 -0
- package/lib/contentModal/style/columnTree.less +9 -0
- package/lib/contentModal/style/css.js +6 -0
- package/lib/contentModal/style/index.css +13 -0
- package/lib/contentModal/style/index.js +6 -0
- package/lib/contentModal/style/index.less +16 -0
- package/lib/contentModal/style/storeBox.less +45 -0
- package/lib/hooks/batch.js +27 -0
- package/lib/hooks/user.js +49 -0
- package/lib/index.css +141 -5
- package/lib/index.js +14 -4
- package/lib/index.less +6 -1
- package/lib/messageBox/component.js +147 -0
- package/lib/messageBox/index.js +8 -0
- package/lib/messageBox/list.js +117 -0
- package/lib/messageBox/script/api.js +19 -0
- package/lib/messageBox/style/index.css +64 -0
- package/lib/messageBox/style/index.less +71 -0
- package/lib/resourceModal/component.js +15 -0
- package/lib/resourceModal/index.js +8 -0
- package/lib/resourceModal/style/css.js +2 -0
- package/lib/resourceModal/style/index.css +4 -0
- package/lib/resourceModal/style/index.js +2 -0
- package/lib/resourceModal/style/index.less +4 -0
- package/lib/typeIcons/component.js +63 -0
- package/lib/{button → typeIcons}/index.js +2 -2
- package/lib/typeIcons/style/css.js +2 -0
- package/lib/typeIcons/style/index.css +5 -0
- package/lib/typeIcons/style/index.js +2 -0
- package/lib/typeIcons/style/index.less +5 -0
- package/lib/uploadStep/component.js +15 -0
- package/lib/uploadStep/index.js +8 -0
- package/lib/uploadStep/style/css.js +2 -0
- package/lib/uploadStep/style/index.css +4 -0
- package/lib/uploadStep/style/index.js +2 -0
- package/lib/uploadStep/style/index.less +4 -0
- package/lib/userAvater/component.js +168 -0
- package/lib/userAvater/index.js +8 -0
- package/lib/userAvater/script/api.js +37 -0
- package/lib/userAvater/style/css.js +2 -0
- package/lib/userAvater/style/index.css +50 -0
- package/lib/userAvater/style/index.js +2 -0
- package/lib/userAvater/style/index.less +54 -0
- package/lib/utils/index.js +13 -0
- package/lib/utils/request.js +1 -1
- package/lib/utils/typeMap.js +25 -0
- package/package.json +4 -2
- package/es/_virtual/plugin-vue_export-helper.js +0 -7
- package/es/button/component.d.ts +0 -24
- package/es/button/component.js +0 -43
- package/es/button/index.d.ts +0 -103
- package/es/button/index.js +0 -7
- package/lib/_virtual/plugin-vue_export-helper.js +0 -8
- package/lib/button/component.js +0 -44
- /package/es/{button → messageBox}/style/css.js +0 -0
- /package/es/{button → messageBox}/style/index.d.ts +0 -0
- /package/es/{button → messageBox}/style/index.js +0 -0
- /package/es/{button → resourceModal}/style/index.css +0 -0
- /package/es/{button → resourceModal}/style/index.less +0 -0
- /package/{lib/button → es/uploadStep}/style/index.css +0 -0
- /package/{lib/button → es/uploadStep}/style/index.less +0 -0
- /package/lib/{button → messageBox}/style/css.js +0 -0
- /package/lib/{button → messageBox}/style/index.js +0 -0
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { defineComponent, useSlots, ref, onMounted, resolveDirective, openBlock, createElementBlock, createVNode, unref, withCtx, createElementVNode, withDirectives, createBlock, createTextVNode, renderSlot } from "vue";
|
|
2
|
+
import { Popover, Tabs, TabPane, Badge } from "@arco-design/web-vue";
|
|
3
|
+
import _sfc_main$1 from "./list.js";
|
|
4
|
+
import { setAllMsgRead, getNoticeList } from "./script/api.js";
|
|
5
|
+
import { DEFAULT_BASE_API } from "../config.js";
|
|
6
|
+
const _hoisted_1 = { class: "message-boxs-container" };
|
|
7
|
+
const _hoisted_2 = {
|
|
8
|
+
key: 1,
|
|
9
|
+
class: "reference-btn"
|
|
10
|
+
};
|
|
11
|
+
const _hoisted_3 = { class: "message-boxs-popover" };
|
|
12
|
+
const _sfc_main = defineComponent({
|
|
13
|
+
...{ name: "messageBox" },
|
|
14
|
+
__name: "component",
|
|
15
|
+
props: {
|
|
16
|
+
BASE_API: {}
|
|
17
|
+
},
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const BASE_API = props.BASE_API || DEFAULT_BASE_API;
|
|
21
|
+
const slotTest = !!useSlots().reference;
|
|
22
|
+
const readMessagesCount = ref(0);
|
|
23
|
+
const unreadMessagesCount = ref(0);
|
|
24
|
+
const isLoadingMore = ref(false);
|
|
25
|
+
const unreadMessages = ref([]);
|
|
26
|
+
const readMessages = ref([]);
|
|
27
|
+
const isNoMore = ref(false);
|
|
28
|
+
const page = ref({ limit: 20, offset: 0 });
|
|
29
|
+
const handlePopupVisibleChange = (visible) => {
|
|
30
|
+
if (!visible) {
|
|
31
|
+
setAllMsgToRead();
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
const setAllMsgToRead = async () => {
|
|
35
|
+
try {
|
|
36
|
+
const res = await setAllMsgRead(BASE_API);
|
|
37
|
+
if (res.code === 0) {
|
|
38
|
+
setData();
|
|
39
|
+
}
|
|
40
|
+
} catch (error) {
|
|
41
|
+
console.log(error);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
const setData = async () => {
|
|
45
|
+
isLoadingMore.value = true;
|
|
46
|
+
const res = await getNoticeList(BASE_API, {}).catch(() => {
|
|
47
|
+
isLoadingMore.value = false;
|
|
48
|
+
});
|
|
49
|
+
if ((res == null ? void 0 : res.code) === 0 && (res == null ? void 0 : res.message)) {
|
|
50
|
+
const data = res.message;
|
|
51
|
+
if (data.notice_state) {
|
|
52
|
+
unreadMessages.value = data.notice_state[0] && data.notice_state[0].notices || [];
|
|
53
|
+
readMessages.value = data.notice_state[1] && data.notice_state[1].notices || [];
|
|
54
|
+
}
|
|
55
|
+
readMessagesCount.value = data.readed || 0;
|
|
56
|
+
unreadMessagesCount.value = data.unread || 0;
|
|
57
|
+
isLoadingMore.value = false;
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
const loadMore = async () => {
|
|
61
|
+
if (unreadMessages.value.length !== 0)
|
|
62
|
+
return;
|
|
63
|
+
isLoadingMore.value = true;
|
|
64
|
+
try {
|
|
65
|
+
page.value.offset = readMessages.value.length;
|
|
66
|
+
const res = await getNoticeList(BASE_API, {
|
|
67
|
+
state: 1,
|
|
68
|
+
...page.value
|
|
69
|
+
}).catch(() => {
|
|
70
|
+
isLoadingMore.value = false;
|
|
71
|
+
});
|
|
72
|
+
if (res.code === 0 && res.message) {
|
|
73
|
+
const { notice_state } = res.message;
|
|
74
|
+
notice_state[1].notices.length < page.value.limit && (isNoMore.value = true);
|
|
75
|
+
readMessages.value = readMessages.value.concat(
|
|
76
|
+
notice_state[1] && notice_state[1].notices || []
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
isLoadingMore.value = false;
|
|
80
|
+
} catch (error) {
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
onMounted(() => {
|
|
84
|
+
setData();
|
|
85
|
+
});
|
|
86
|
+
return (_ctx, _cache) => {
|
|
87
|
+
const _directive_loading = resolveDirective("loading");
|
|
88
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
89
|
+
createVNode(unref(Popover), {
|
|
90
|
+
trigger: "hover",
|
|
91
|
+
position: "bottom",
|
|
92
|
+
"arrow-style": { display: "none" },
|
|
93
|
+
"content-style": { padding: 0, minWidth: "400px" },
|
|
94
|
+
"popup-visible-change": handlePopupVisibleChange
|
|
95
|
+
}, {
|
|
96
|
+
content: withCtx(() => [
|
|
97
|
+
createElementVNode("div", _hoisted_3, [
|
|
98
|
+
createVNode(unref(Tabs), null, {
|
|
99
|
+
default: withCtx(() => [
|
|
100
|
+
withDirectives((openBlock(), createBlock(unref(TabPane), { key: "1" }, {
|
|
101
|
+
title: withCtx(() => [
|
|
102
|
+
createTextVNode("\u6D88\u606F")
|
|
103
|
+
]),
|
|
104
|
+
default: withCtx(() => [
|
|
105
|
+
unreadMessages.value.length === 0 ? (openBlock(), createBlock(_sfc_main$1, {
|
|
106
|
+
key: 0,
|
|
107
|
+
list: readMessages.value,
|
|
108
|
+
"onUpdate:list": _cache[0] || (_cache[0] = ($event) => readMessages.value = $event),
|
|
109
|
+
"list-type": "unread",
|
|
110
|
+
"is-loading-more": isLoadingMore.value,
|
|
111
|
+
"is-no-more": isNoMore.value,
|
|
112
|
+
onLoadMoreMsg: loadMore
|
|
113
|
+
}, null, 8, ["list", "is-loading-more", "is-no-more"])) : (openBlock(), createBlock(_sfc_main$1, {
|
|
114
|
+
key: 1,
|
|
115
|
+
list: unreadMessages.value,
|
|
116
|
+
"onUpdate:list": _cache[1] || (_cache[1] = ($event) => unreadMessages.value = $event),
|
|
117
|
+
"list-type": "unread",
|
|
118
|
+
"is-loading-more": isLoadingMore.value,
|
|
119
|
+
"is-no-more": isNoMore.value,
|
|
120
|
+
onLoadMoreMsg: loadMore
|
|
121
|
+
}, null, 8, ["list", "is-loading-more", "is-no-more"]))
|
|
122
|
+
]),
|
|
123
|
+
_: 1
|
|
124
|
+
})), [
|
|
125
|
+
[_directive_loading, isLoadingMore.value]
|
|
126
|
+
])
|
|
127
|
+
]),
|
|
128
|
+
_: 1
|
|
129
|
+
})
|
|
130
|
+
])
|
|
131
|
+
]),
|
|
132
|
+
default: withCtx(() => [
|
|
133
|
+
createVNode(unref(Badge), { count: unreadMessagesCount.value }, {
|
|
134
|
+
default: withCtx(() => [
|
|
135
|
+
slotTest ? renderSlot(_ctx.$slots, "reference", { key: 0 }) : (openBlock(), createElementBlock("button", _hoisted_2, "\u6D88\u606F\u5217\u8868"))
|
|
136
|
+
]),
|
|
137
|
+
_: 3
|
|
138
|
+
}, 8, ["count"])
|
|
139
|
+
]),
|
|
140
|
+
_: 3
|
|
141
|
+
})
|
|
142
|
+
]);
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
export { _sfc_main as default };
|
|
File without changes
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { defineComponent, computed, ref, openBlock, createElementBlock, Fragment, createVNode, unref, createCommentVNode, withCtx, renderList, createElementVNode, toDisplayString, createTextVNode, withModifiers } from "vue";
|
|
2
|
+
import { Empty, Scrollbar } from "@arco-design/web-vue";
|
|
3
|
+
import { IconRight } from "@arco-design/web-vue/es/icon";
|
|
4
|
+
const _hoisted_1 = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "empty-list"
|
|
7
|
+
};
|
|
8
|
+
const _hoisted_2 = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "message-list"
|
|
11
|
+
};
|
|
12
|
+
const _hoisted_3 = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "message-body"
|
|
15
|
+
};
|
|
16
|
+
const _hoisted_4 = { class: "media-message-content" };
|
|
17
|
+
const _hoisted_5 = { class: "message-content" };
|
|
18
|
+
const _hoisted_6 = { class: "title" };
|
|
19
|
+
const _hoisted_7 = { key: 0 };
|
|
20
|
+
const _hoisted_8 = { class: "time" };
|
|
21
|
+
const _hoisted_9 = ["onClick"];
|
|
22
|
+
const _hoisted_10 = { class: "message-media-title" };
|
|
23
|
+
const _hoisted_11 = { class: "message-media-title-hover" };
|
|
24
|
+
const _hoisted_12 = { class: "action" };
|
|
25
|
+
const _sfc_main = defineComponent({
|
|
26
|
+
__name: "list",
|
|
27
|
+
props: {
|
|
28
|
+
listType: {},
|
|
29
|
+
list: {},
|
|
30
|
+
isLoadingMore: { type: Boolean },
|
|
31
|
+
isNorMore: { type: Boolean }
|
|
32
|
+
},
|
|
33
|
+
emits: ["loadMoreMsg"],
|
|
34
|
+
setup(__props, { emit: emits }) {
|
|
35
|
+
const props = __props;
|
|
36
|
+
const isEmptyList = computed(() => {
|
|
37
|
+
if (props.list.length === 0) {
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
});
|
|
42
|
+
const listData = computed(() => {
|
|
43
|
+
return props.list;
|
|
44
|
+
});
|
|
45
|
+
const approvalStateMapText = ref({
|
|
46
|
+
approval_msg: { label: "\u63D0\u4EA4\u4E86\u4E00\u9879\u5185\u5BB9\uFF0C\u5F85\u60A8\u5BA1\u6838", show_user_alias: true },
|
|
47
|
+
approval_cc_msg: { label: "\u63D0\u4EA4\u4E86\u4E00\u9879\u5185\u5BB9\uFF0C\u6284\u9001\u7ED9\u60A8" },
|
|
48
|
+
approval_pass: { label: "\u60A8\u63D0\u4EA4\u4E86\u4E00\u9879\u5185\u5BB9\u5DF2\u5BA1\u6838\u901A\u8FC7" },
|
|
49
|
+
approval_fail: { label: "\u60A8\u63D0\u4EA4\u4E86\u4E00\u9879\u5185\u5BB9\u5BA1\u6838\u88AB\u9A73\u56DE" },
|
|
50
|
+
approval_retrial: { label: "\u60A8\u63D0\u4EA4\u4E86\u4E00\u9879\u5185\u5BB9\u5BA1\u6838\u88AB\u9A73\u56DE\u91CD\u5BA1" }
|
|
51
|
+
});
|
|
52
|
+
const openApprovalDetail = (msg) => {
|
|
53
|
+
console.log(msg);
|
|
54
|
+
};
|
|
55
|
+
const handleScroll = (e) => {
|
|
56
|
+
e && e.stopPropagation();
|
|
57
|
+
if (e.target) {
|
|
58
|
+
const { scrollTop, scrollHeight, clientHeight } = e.target;
|
|
59
|
+
if (scrollTop + clientHeight >= scrollHeight) {
|
|
60
|
+
if (props.isLoadingMore === false && !props.isNorMore) {
|
|
61
|
+
emits("loadMoreMsg", props.listType);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
return (_ctx, _cache) => {
|
|
67
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
68
|
+
isEmptyList.value === true ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
69
|
+
createVNode(unref(Empty))
|
|
70
|
+
])) : createCommentVNode("v-if", true),
|
|
71
|
+
createVNode(unref(Scrollbar), {
|
|
72
|
+
class: "msg-scroll-bar",
|
|
73
|
+
onScroll: handleScroll
|
|
74
|
+
}, {
|
|
75
|
+
default: withCtx(() => [
|
|
76
|
+
listData.value.length > 0 ? (openBlock(), createElementBlock("ul", _hoisted_2, [
|
|
77
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(listData.value, (item) => {
|
|
78
|
+
return openBlock(), createElementBlock("li", {
|
|
79
|
+
key: "list_" + item.msg.nid,
|
|
80
|
+
class: "message-item"
|
|
81
|
+
}, [
|
|
82
|
+
createCommentVNode(" \u901A\u77E5\u5185\u5BB9 "),
|
|
83
|
+
item.msg ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
84
|
+
createElementVNode("div", _hoisted_4, [
|
|
85
|
+
createElementVNode("div", _hoisted_5, [
|
|
86
|
+
createElementVNode("span", _hoisted_6, [
|
|
87
|
+
approvalStateMapText.value[item.msg.t].show_user_alias ? (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString(item.msg.alias), 1)) : createCommentVNode("v-if", true),
|
|
88
|
+
createTextVNode(" " + toDisplayString(approvalStateMapText.value[item.msg.t].label), 1)
|
|
89
|
+
]),
|
|
90
|
+
createElementVNode("span", _hoisted_8, toDisplayString(item.msg.time), 1)
|
|
91
|
+
]),
|
|
92
|
+
createElementVNode("div", {
|
|
93
|
+
class: "message-info",
|
|
94
|
+
onClick: withModifiers(($event) => openApprovalDetail(item.msg), ["stop"])
|
|
95
|
+
}, [
|
|
96
|
+
createElementVNode("div", _hoisted_10, [
|
|
97
|
+
createCommentVNode(' <FileTypeIcons\n class="icon"\n :file-type="item.msg.catalog"\n :doc-type="item.msg.series"\n ></FileTypeIcons> '),
|
|
98
|
+
createElementVNode("span", _hoisted_11, toDisplayString(item.msg.title), 1)
|
|
99
|
+
]),
|
|
100
|
+
createElementVNode("div", _hoisted_12, [
|
|
101
|
+
createVNode(unref(IconRight))
|
|
102
|
+
])
|
|
103
|
+
], 8, _hoisted_9)
|
|
104
|
+
])
|
|
105
|
+
])) : createCommentVNode("v-if", true)
|
|
106
|
+
]);
|
|
107
|
+
}), 128))
|
|
108
|
+
])) : createCommentVNode("v-if", true)
|
|
109
|
+
]),
|
|
110
|
+
_: 1
|
|
111
|
+
})
|
|
112
|
+
], 64);
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
interface Params {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}
|
|
4
|
+
export declare function getNoticeList(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
|
|
5
|
+
export declare function setAllMsgRead(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import request from "../../utils/request.js";
|
|
2
|
+
function getNoticeList(BASE_API, params) {
|
|
3
|
+
return request(BASE_API, {
|
|
4
|
+
url: "/poplar/v2/notice",
|
|
5
|
+
method: "post",
|
|
6
|
+
data: params
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
function setAllMsgRead(BASE_API, params) {
|
|
10
|
+
return request(BASE_API, {
|
|
11
|
+
url: "/poplar/v2/notice/readed",
|
|
12
|
+
method: "post",
|
|
13
|
+
data: params
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
export { getNoticeList, setAllMsgRead };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
.reference-btn {
|
|
2
|
+
border: none;
|
|
3
|
+
padding: 12px 16px;
|
|
4
|
+
border-radius: 4px;
|
|
5
|
+
color: #5f5f5f;
|
|
6
|
+
}
|
|
7
|
+
.message-boxs-popover {
|
|
8
|
+
width: 435px;
|
|
9
|
+
position: relative;
|
|
10
|
+
}
|
|
11
|
+
.message-boxs-popover .arco-tabs-content {
|
|
12
|
+
padding-top: 0;
|
|
13
|
+
}
|
|
14
|
+
.message-boxs-popover .msg-scroll-bar {
|
|
15
|
+
height: 80vh;
|
|
16
|
+
overflow-y: auto;
|
|
17
|
+
display: block;
|
|
18
|
+
}
|
|
19
|
+
.message-boxs-popover .message-list {
|
|
20
|
+
margin: 0;
|
|
21
|
+
padding: 0;
|
|
22
|
+
list-style: none;
|
|
23
|
+
}
|
|
24
|
+
.message-boxs-popover .message-item {
|
|
25
|
+
padding: 16px;
|
|
26
|
+
padding-bottom: 0px;
|
|
27
|
+
}
|
|
28
|
+
.message-boxs-popover .message-item:last-child .message-body {
|
|
29
|
+
border-bottom: none;
|
|
30
|
+
}
|
|
31
|
+
.message-boxs-popover .message-item .message-body {
|
|
32
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
|
|
33
|
+
padding-bottom: 16px;
|
|
34
|
+
}
|
|
35
|
+
.message-boxs-popover .message-item .message-body .media-message-content {
|
|
36
|
+
width: 100%;
|
|
37
|
+
}
|
|
38
|
+
.message-boxs-popover .message-item .message-body .media-message-content .message-content {
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: space-between;
|
|
42
|
+
font-size: 12px;
|
|
43
|
+
color: #4e5969;
|
|
44
|
+
margin-bottom: 18px;
|
|
45
|
+
}
|
|
46
|
+
.message-boxs-popover .message-item .message-body .media-message-content .message-info {
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
justify-content: space-between;
|
|
50
|
+
color: #1d2129;
|
|
51
|
+
font-size: 14px;
|
|
52
|
+
line-height: 14px;
|
|
53
|
+
}
|
|
54
|
+
.message-boxs-popover .message-item .message-body .media-message-content .message-info .message-media-title {
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
text-overflow: ellipsis;
|
|
57
|
+
white-space: nowrap;
|
|
58
|
+
}
|
|
59
|
+
.message-boxs-popover .message-item .message-body .media-message-content .message-info .message-media-title .icon {
|
|
60
|
+
margin-right: 4px;
|
|
61
|
+
}
|
|
62
|
+
.message-boxs-popover .message-item .message-body .media-message-content .message-info .message-media-title:hover {
|
|
63
|
+
text-decoration: underline;
|
|
64
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
.reference-btn {
|
|
2
|
+
border: none;
|
|
3
|
+
padding: 12px 16px;
|
|
4
|
+
border-radius: 4px;
|
|
5
|
+
color: #5f5f5f;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.message-boxs-popover {
|
|
9
|
+
width: 435px;
|
|
10
|
+
position: relative;
|
|
11
|
+
// padding: 10px;
|
|
12
|
+
|
|
13
|
+
.arco-tabs-content {
|
|
14
|
+
padding-top: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.msg-scroll-bar {
|
|
18
|
+
height: 80vh;
|
|
19
|
+
overflow-y: auto;
|
|
20
|
+
display: block;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.message-list {
|
|
24
|
+
margin: 0;
|
|
25
|
+
padding: 0;
|
|
26
|
+
list-style: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.message-item {
|
|
30
|
+
padding: 16px;
|
|
31
|
+
padding-bottom: 0px;
|
|
32
|
+
&:last-child .message-body {
|
|
33
|
+
border-bottom: none;
|
|
34
|
+
}
|
|
35
|
+
.message-body {
|
|
36
|
+
border-bottom: 1px solid rgba(0,0,0,.05);
|
|
37
|
+
padding-bottom: 16px;
|
|
38
|
+
|
|
39
|
+
.media-message-content {
|
|
40
|
+
width: 100%;
|
|
41
|
+
.message-content {
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
justify-content: space-between;
|
|
45
|
+
font-size: 12px;
|
|
46
|
+
color: #4e5969;
|
|
47
|
+
margin-bottom: 18px;
|
|
48
|
+
}
|
|
49
|
+
.message-info {
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
justify-content: space-between;
|
|
53
|
+
color: #1d2129;
|
|
54
|
+
font-size: 14px;
|
|
55
|
+
line-height: 14px;
|
|
56
|
+
.message-media-title {
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
text-overflow: ellipsis;
|
|
59
|
+
white-space: nowrap;
|
|
60
|
+
.icon {
|
|
61
|
+
margin-right: 4px;
|
|
62
|
+
}
|
|
63
|
+
&:hover {
|
|
64
|
+
text-decoration: underline;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock } from "vue";
|
|
2
|
+
const _sfc_main = defineComponent({
|
|
3
|
+
...{ name: "resourceModal" },
|
|
4
|
+
__name: "component",
|
|
5
|
+
props: {
|
|
6
|
+
BASE_API: {}
|
|
7
|
+
},
|
|
8
|
+
setup(__props) {
|
|
9
|
+
return (_ctx, _cache) => {
|
|
10
|
+
return openBlock(), createElementBlock("div", null, "resourceModal");
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index.less";
|
package/es/style.css
ADDED
|
File without changes
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, createCommentVNode, createBlock, unref, Fragment, createVNode } from "vue";
|
|
2
|
+
import { IconXinwen, IconShipin, IconYinyue, IconTuji, IconXiaoshipin, IconZhuanti, IconYinpinji, IconShipinji, IconH5, IconZhibo, IconTupian, IconGaojian } from "@arco-iconbox/vue-cmstop-icons";
|
|
3
|
+
const _hoisted_1 = { class: "type-icons-container" };
|
|
4
|
+
const _sfc_main = defineComponent({
|
|
5
|
+
...{ name: "typeIcons" },
|
|
6
|
+
__name: "component",
|
|
7
|
+
props: {
|
|
8
|
+
type: {},
|
|
9
|
+
doc: { type: Boolean },
|
|
10
|
+
resource: { type: Boolean }
|
|
11
|
+
},
|
|
12
|
+
setup(__props) {
|
|
13
|
+
const props = __props;
|
|
14
|
+
return (_ctx, _cache) => {
|
|
15
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
16
|
+
createCommentVNode("------------------------------- \u7A3F\u4EF6\u7C7B\u578B --------------------------------------"),
|
|
17
|
+
createCommentVNode(" \u65B0\u95FB "),
|
|
18
|
+
props.doc && props.type === "imagetext" ? (openBlock(), createBlock(unref(IconXinwen), { key: 0 })) : props.doc && props.type === "video" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
19
|
+
createCommentVNode(" \u89C6\u9891 "),
|
|
20
|
+
createVNode(unref(IconShipin))
|
|
21
|
+
], 2112)) : props.doc && props.type === "audio" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
22
|
+
createCommentVNode(" \u97F3\u9891 "),
|
|
23
|
+
createVNode(unref(IconYinyue))
|
|
24
|
+
], 2112)) : props.doc && props.type === "atlas" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
25
|
+
createCommentVNode(" \u56FE\u96C6 "),
|
|
26
|
+
createVNode(unref(IconTuji))
|
|
27
|
+
], 2112)) : props.doc && props.type === "svideo" ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
|
|
28
|
+
createCommentVNode(" \u5C0F\u89C6\u9891 "),
|
|
29
|
+
createVNode(unref(IconXiaoshipin))
|
|
30
|
+
], 2112)) : props.doc && props.type === "special_v3" ? (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
31
|
+
createCommentVNode(" \u4E13\u9898 "),
|
|
32
|
+
createVNode(unref(IconZhuanti))
|
|
33
|
+
], 2112)) : props.doc && props.type === "audio_album" ? (openBlock(), createElementBlock(Fragment, { key: 6 }, [
|
|
34
|
+
createCommentVNode(" \u97F3\u9891\u96C6 "),
|
|
35
|
+
createVNode(unref(IconYinpinji))
|
|
36
|
+
], 2112)) : props.doc && props.type === "video_album" ? (openBlock(), createElementBlock(Fragment, { key: 7 }, [
|
|
37
|
+
createCommentVNode(" \u89C6\u9891\u96C6 "),
|
|
38
|
+
createVNode(unref(IconShipinji))
|
|
39
|
+
], 2112)) : props.doc && props.type === "h5" ? (openBlock(), createElementBlock(Fragment, { key: 8 }, [
|
|
40
|
+
createCommentVNode(" h5 "),
|
|
41
|
+
createVNode(unref(IconH5))
|
|
42
|
+
], 2112)) : props.doc && props.type === "live" ? (openBlock(), createElementBlock(Fragment, { key: 9 }, [
|
|
43
|
+
createCommentVNode(" \u76F4\u64AD "),
|
|
44
|
+
createVNode(unref(IconZhibo))
|
|
45
|
+
], 2112)) : props.resource && props.type === "image" ? (openBlock(), createElementBlock(Fragment, { key: 10 }, [
|
|
46
|
+
createCommentVNode("------------------------------- \u7D20\u6750\u7C7B\u578B --------------------------------------"),
|
|
47
|
+
createCommentVNode(" \u56FE\u7247 "),
|
|
48
|
+
createVNode(unref(IconTupian))
|
|
49
|
+
], 2112)) : (openBlock(), createElementBlock(Fragment, { key: 11 }, [
|
|
50
|
+
createCommentVNode("------------------------------- \u5176\u4ED6\u7C7B\u578B --------------------------------------"),
|
|
51
|
+
createCommentVNode(" \u5FAE\u4FE1\u7A3F\u4EF6 "),
|
|
52
|
+
createCommentVNode(" <icon-weixingaojian /> "),
|
|
53
|
+
createCommentVNode(" \u8F6E\u535A\u56FE\u96C6 "),
|
|
54
|
+
createCommentVNode(" <icon-lunbotuji /> "),
|
|
55
|
+
createCommentVNode(" \u7A3F\u4EF6 "),
|
|
56
|
+
createVNode(unref(IconGaojian))
|
|
57
|
+
], 2112))
|
|
58
|
+
]);
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index.less";
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock } from "vue";
|
|
2
|
+
const _sfc_main = defineComponent({
|
|
3
|
+
...{ name: "uploadStep" },
|
|
4
|
+
__name: "component",
|
|
5
|
+
props: {
|
|
6
|
+
BASE_API: {}
|
|
7
|
+
},
|
|
8
|
+
setup(__props) {
|
|
9
|
+
return (_ctx, _cache) => {
|
|
10
|
+
return openBlock(), createElementBlock("div", null, "uploadStep");
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index.less";
|
|
File without changes
|