@cmstops/pro-compo 0.3.84 → 0.3.85
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/baseFilter/components/FilterGroup.js +1 -1
- package/es/baseFilter/useCalcWidth.d.ts +2 -2
- package/es/contentDetailList/components/Content/DocItem/index.js +12 -14
- package/es/contentDetailList/components/Content/LiveItem/index.js +5 -6
- package/es/contentDetailList/components/Content/courseItem/index.js +7 -8
- package/es/contentDetailList/components/Content/funhdItem/index.js +7 -8
- package/es/contentDetailList/components/Content/index.js +2 -2
- package/es/contentDetailList/components/ShowQRCode/QrcodeView/index.js +10 -11
- package/es/contentModal/component.js +53 -14
- package/es/contentModal/components/Dejin/MediaFilter/index.d.ts +0 -0
- package/es/contentModal/components/Dejin/MediaFilter/index.js +128 -0
- package/es/contentModal/components/Dejin/index.d.ts +0 -0
- package/es/contentModal/components/Dejin/index.js +236 -0
- package/es/contentModal/components/MpContentList/MediaFilter/index.js +3 -4
- package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +1 -1
- package/es/contentModal/components/storeBox/index.js +4 -4
- package/es/contentModal/script/api.d.ts +3 -0
- package/es/contentModal/script/api.js +22 -1
- package/es/dataTags/component.js +10 -10
- package/es/docHistory/component.js +2 -2
- package/es/docHistory/scripts/useDocHistory.d.ts +4 -4
- package/es/docPreview/component.js +47 -56
- package/es/docPreview/components/PreviewIframe.js +9 -10
- package/es/docPreview/scripts/hook.d.ts +16 -6
- package/es/editMetaInfo/component.js +35 -12
- package/es/editMetaInfo/components/metaInfoForm.js +4 -4
- package/es/emptyData/svg/acount.js +3 -5
- package/es/emptyData/svg/add.js +3 -5
- package/es/emptyData/svg/analize.js +3 -5
- package/es/emptyData/svg/analize_fail.js +3 -5
- package/es/emptyData/svg/empty.js +3 -5
- package/es/emptyData/svg/file.js +3 -5
- package/es/emptyData/svg/manager.js +3 -5
- package/es/emptyData/svg/message.js +14 -17
- package/es/emptyData/svg/noanalize.js +3 -5
- package/es/emptyData/svg/null.js +3 -5
- package/es/emptyData/svg/search.js +3 -5
- package/es/emptyData/svg/star.js +3 -5
- package/es/emptyData/svg/trash.js +3 -5
- package/es/emptyData/svg/user.js +3 -5
- package/es/hooks/batch.d.ts +1 -1
- package/es/hooks/dialogVisible.d.ts +1 -1
- package/es/hooks/source.d.ts +1 -1
- package/es/hooks/toggle.d.ts +1 -1
- package/es/hooks/useAttachement.d.ts +6 -6
- package/es/hooks/useMediaContext.d.ts +5 -5
- package/es/hooks/usePopper.d.ts +1 -1
- package/es/hooks/useSelection.d.ts +9 -2
- package/es/hooks/useUpload.d.ts +2 -2
- package/es/hooks/user.d.ts +1 -1
- package/es/imageCrop/component.js +4 -4
- package/es/importData/component.js +18 -21
- package/es/mediaFilter/components/DocFilter.js +1 -1
- package/es/mediaFilter/components/FilterGroup.js +1 -1
- package/es/mediaView/component.js +3 -5
- package/es/messageBox/component.js +2 -2
- package/es/previousVersion/component.js +3 -4
- package/es/resourceGridList/component.js +15 -18
- package/es/resourceModal/component.js +2 -2
- package/es/resourceModal/components/MediaPreviewer/index.js +7 -10
- package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +15 -17
- package/es/resourceModal/components/MediaSelection/MainContent/index.js +20 -24
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +2 -2
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +3 -4
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/index.js +9 -13
- package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.js +2 -2
- package/es/selectGategory/component.js +3 -4
- package/es/selectResourceModal/component.js +10 -10
- package/es/selectResourceModal/components/List/ListAi/index.js +7 -8
- package/es/selectResourceModal/components/List/ListCardWrapper.js +6 -8
- package/es/selectResourceModal/components/List/ListLocal/Upload.js +1 -1
- package/es/selectResourceModal/components/List/ListNormal/Filter.js +7 -7
- package/es/selectResourceModal/components/List/ListSystem/Filter.js +2 -2
- package/es/selectResourceModal/components/List/ListSystem/SubList.js +3 -4
- package/es/selectResourceModal/components/List/ListSystem/index.js +1 -2
- package/es/selectResourceModal/scripts/useResourceSelect.d.ts +1 -1
- package/es/selectResourceModal/scripts/useTabFilter.d.ts +1 -1
- package/es/selectThumb/component.js +23 -28
- package/es/uploadBefore/components/UploadBefore.js +2 -2
- package/es/uploadBefore/script/uploadHooks.d.ts +42 -1
- package/es/userAvater/component.js +2 -2
- package/es/userDirector/component.js +2 -2
- package/es/utils/filter.d.ts +12 -0
- package/es/videoThumb/scripts/useVideoThumbs.d.ts +4 -4
- package/lib/baseFilter/components/FilterGroup.js +1 -1
- package/lib/contentDetailList/components/Content/DocItem/index.js +12 -14
- package/lib/contentDetailList/components/Content/LiveItem/index.js +5 -6
- package/lib/contentDetailList/components/Content/courseItem/index.js +7 -8
- package/lib/contentDetailList/components/Content/funhdItem/index.js +7 -8
- package/lib/contentDetailList/components/Content/index.js +2 -2
- package/lib/contentDetailList/components/ShowQRCode/QrcodeView/index.js +10 -11
- package/lib/contentModal/component.js +53 -14
- package/lib/contentModal/components/Dejin/MediaFilter/index.js +129 -0
- package/lib/contentModal/components/Dejin/index.js +237 -0
- package/lib/contentModal/components/MpContentList/MediaFilter/index.js +3 -4
- package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +1 -1
- package/lib/contentModal/components/storeBox/index.js +4 -4
- package/lib/contentModal/script/api.js +24 -0
- package/lib/dataTags/component.js +10 -10
- package/lib/docHistory/component.js +2 -2
- package/lib/docPreview/component.js +47 -56
- package/lib/docPreview/components/PreviewIframe.js +9 -10
- package/lib/editMetaInfo/component.js +34 -11
- package/lib/editMetaInfo/components/metaInfoForm.js +4 -4
- package/lib/emptyData/svg/acount.js +3 -5
- package/lib/emptyData/svg/add.js +3 -5
- package/lib/emptyData/svg/analize.js +3 -5
- package/lib/emptyData/svg/analize_fail.js +3 -5
- package/lib/emptyData/svg/empty.js +3 -5
- package/lib/emptyData/svg/file.js +3 -5
- package/lib/emptyData/svg/manager.js +3 -5
- package/lib/emptyData/svg/message.js +14 -17
- package/lib/emptyData/svg/noanalize.js +3 -5
- package/lib/emptyData/svg/null.js +3 -5
- package/lib/emptyData/svg/search.js +3 -5
- package/lib/emptyData/svg/star.js +3 -5
- package/lib/emptyData/svg/trash.js +3 -5
- package/lib/emptyData/svg/user.js +3 -5
- package/lib/imageCrop/component.js +4 -4
- package/lib/importData/component.js +18 -21
- package/lib/mediaFilter/components/DocFilter.js +1 -1
- package/lib/mediaFilter/components/FilterGroup.js +1 -1
- package/lib/mediaView/component.js +3 -5
- package/lib/messageBox/component.js +2 -2
- package/lib/previousVersion/component.js +3 -4
- package/lib/resourceGridList/component.js +15 -18
- package/lib/resourceModal/component.js +2 -2
- package/lib/resourceModal/components/MediaPreviewer/index.js +7 -10
- package/lib/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +15 -17
- package/lib/resourceModal/components/MediaSelection/MainContent/index.js +20 -24
- package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +2 -2
- package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +3 -4
- package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/index.js +9 -13
- package/lib/resourceModal/components/MediaSelection/ToolbarSearch/index.js +2 -2
- package/lib/selectGategory/component.js +3 -4
- package/lib/selectResourceModal/component.js +10 -10
- package/lib/selectResourceModal/components/List/ListAi/index.js +6 -7
- package/lib/selectResourceModal/components/List/ListCardWrapper.js +6 -8
- package/lib/selectResourceModal/components/List/ListLocal/Upload.js +1 -1
- package/lib/selectResourceModal/components/List/ListNormal/Filter.js +7 -7
- package/lib/selectResourceModal/components/List/ListSystem/Filter.js +2 -2
- package/lib/selectResourceModal/components/List/ListSystem/SubList.js +3 -4
- package/lib/selectResourceModal/components/List/ListSystem/index.js +1 -2
- package/lib/selectThumb/component.js +23 -28
- package/lib/uploadBefore/components/UploadBefore.js +2 -2
- package/lib/userAvater/component.js +2 -2
- package/lib/userDirector/component.js +2 -2
- package/package.json +1 -1
|
@@ -471,11 +471,11 @@ const _sfc_main = vue.defineComponent({
|
|
|
471
471
|
onCellMouseEnter: cellMouseEnter,
|
|
472
472
|
onCellMouseLeave: cellMouseLeave
|
|
473
473
|
}, {
|
|
474
|
-
batch: vue.withCtx(() => []),
|
|
474
|
+
batch: vue.withCtx(() => _cache[0] || (_cache[0] = [])),
|
|
475
475
|
index: vue.withCtx(() => [
|
|
476
476
|
vue.createElementVNode("span", _hoisted_37, vue.toDisplayString(_ctx.index + 1), 1)
|
|
477
477
|
]),
|
|
478
|
-
tip: vue.withCtx(() => []),
|
|
478
|
+
tip: vue.withCtx(() => _cache[1] || (_cache[1] = [])),
|
|
479
479
|
option: vue.withCtx(() => [
|
|
480
480
|
vue.renderSlot(_ctx.$slots, "option", {
|
|
481
481
|
row: _ctx.item,
|
|
@@ -29,16 +29,15 @@ const _hoisted_8 = {
|
|
|
29
29
|
key: 3,
|
|
30
30
|
class: "setting"
|
|
31
31
|
};
|
|
32
|
-
const _hoisted_9 =
|
|
33
|
-
const _hoisted_10 = {
|
|
32
|
+
const _hoisted_9 = {
|
|
34
33
|
key: 4,
|
|
35
34
|
class: "time-go"
|
|
36
35
|
};
|
|
37
|
-
const
|
|
36
|
+
const _hoisted_10 = {
|
|
38
37
|
key: 5,
|
|
39
38
|
class: "time-go"
|
|
40
39
|
};
|
|
41
|
-
const
|
|
40
|
+
const _hoisted_11 = { class: "btns" };
|
|
42
41
|
const _sfc_main = vue.defineComponent({
|
|
43
42
|
__name: "index",
|
|
44
43
|
props: {
|
|
@@ -222,7 +221,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
222
221
|
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, "\u6682\u65E0\u4E8C\u7EF4\u7801"))
|
|
223
222
|
], 64)),
|
|
224
223
|
is_share.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7, "\u626B\u63CF\u4E8C\u7EF4\u7801\u8BBF\u95EE")) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_8, [
|
|
225
|
-
|
|
224
|
+
_cache[4] || (_cache[4] = vue.createElementVNode("span", { class: "label" }, "\u94FE\u63A5\u6709\u6548\u65F6\u957F", -1)),
|
|
226
225
|
vue.createElementVNode("span", null, [
|
|
227
226
|
vue.createVNode(vue.unref(webVue.Select), {
|
|
228
227
|
modelValue: expiration.value,
|
|
@@ -243,17 +242,17 @@ const _sfc_main = vue.defineComponent({
|
|
|
243
242
|
}, 8, ["modelValue"])
|
|
244
243
|
])
|
|
245
244
|
])),
|
|
246
|
-
is_share.value && time.value ? (vue.openBlock(), vue.createElementBlock("div",
|
|
247
|
-
vue.createElementVNode("div",
|
|
245
|
+
is_share.value && time.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9, " \u94FE\u63A5\u5269\u4F59\u65F6\u95F4: " + vue.toDisplayString(time.value), 1)) : is_share.value && time.value === 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_10, "\u94FE\u63A5\u5DF2\u8FC7\u671F")) : vue.createCommentVNode("v-if", true),
|
|
246
|
+
vue.createElementVNode("div", _hoisted_11, [
|
|
248
247
|
showGetLink.value ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Button), {
|
|
249
248
|
key: 0,
|
|
250
249
|
type: "primary",
|
|
251
250
|
light: "",
|
|
252
251
|
onClick: _cache[1] || (_cache[1] = ($event) => genTimeLink(expiration.value))
|
|
253
252
|
}, {
|
|
254
|
-
default: vue.withCtx(() => [
|
|
253
|
+
default: vue.withCtx(() => _cache[5] || (_cache[5] = [
|
|
255
254
|
vue.createTextVNode(" \u751F\u6210\u9884\u89C8\u94FE\u63A5 ")
|
|
256
|
-
]),
|
|
255
|
+
])),
|
|
257
256
|
_: 1
|
|
258
257
|
})) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
259
258
|
vue.createVNode(vue.unref(webVue.Button), {
|
|
@@ -261,9 +260,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
261
260
|
light: "",
|
|
262
261
|
onClick: _cache[2] || (_cache[2] = ($event) => clipUrl("img"))
|
|
263
262
|
}, {
|
|
264
|
-
default: vue.withCtx(() => [
|
|
263
|
+
default: vue.withCtx(() => _cache[6] || (_cache[6] = [
|
|
265
264
|
vue.createTextVNode(" \u590D\u5236\u4E8C\u7EF4\u7801 ")
|
|
266
|
-
]),
|
|
265
|
+
])),
|
|
267
266
|
_: 1
|
|
268
267
|
}),
|
|
269
268
|
vue.createVNode(vue.unref(webVue.Button), {
|
|
@@ -9,6 +9,7 @@ var index$2 = require("./components/ContentList/index.js");
|
|
|
9
9
|
var index$4 = require("./components/LiveList/index.js");
|
|
10
10
|
var index$7 = require("./components/EqxiuList/index.js");
|
|
11
11
|
var index$6 = require("./components/MpContentList/index.js");
|
|
12
|
+
var index$8 = require("./components/Dejin/index.js");
|
|
12
13
|
var index$1 = require("./components/storeBox/index.js");
|
|
13
14
|
require("../typeIcons/style/index.js");
|
|
14
15
|
var api = require("./script/api.js");
|
|
@@ -168,9 +169,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
168
169
|
type: "primary",
|
|
169
170
|
onClick: comfirm
|
|
170
171
|
}, {
|
|
171
|
-
default: vue.withCtx(() => [
|
|
172
|
+
default: vue.withCtx(() => _cache[8] || (_cache[8] = [
|
|
172
173
|
vue.createTextVNode("\u6DFB\u52A0 ")
|
|
173
|
-
]),
|
|
174
|
+
])),
|
|
174
175
|
_: 1
|
|
175
176
|
}, 8, ["disabled"])
|
|
176
177
|
]),
|
|
@@ -207,9 +208,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
207
208
|
type: "primary",
|
|
208
209
|
onClick: comfirm
|
|
209
210
|
}, {
|
|
210
|
-
default: vue.withCtx(() => [
|
|
211
|
+
default: vue.withCtx(() => _cache[9] || (_cache[9] = [
|
|
211
212
|
vue.createTextVNode(" \u6DFB\u52A0 ")
|
|
212
|
-
]),
|
|
213
|
+
])),
|
|
213
214
|
_: 1
|
|
214
215
|
}, 8, ["disabled"])
|
|
215
216
|
]),
|
|
@@ -247,9 +248,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
247
248
|
type: "primary",
|
|
248
249
|
onClick: comfirm
|
|
249
250
|
}, {
|
|
250
|
-
default: vue.withCtx(() => [
|
|
251
|
+
default: vue.withCtx(() => _cache[10] || (_cache[10] = [
|
|
251
252
|
vue.createTextVNode(" \u6DFB\u52A0 ")
|
|
252
|
-
]),
|
|
253
|
+
])),
|
|
253
254
|
_: 1
|
|
254
255
|
}, 8, ["disabled"])
|
|
255
256
|
]),
|
|
@@ -286,9 +287,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
286
287
|
type: "primary",
|
|
287
288
|
onClick: comfirm
|
|
288
289
|
}, {
|
|
289
|
-
default: vue.withCtx(() => [
|
|
290
|
+
default: vue.withCtx(() => _cache[11] || (_cache[11] = [
|
|
290
291
|
vue.createTextVNode(" \u6DFB\u52A0 ")
|
|
291
|
-
]),
|
|
292
|
+
])),
|
|
292
293
|
_: 1
|
|
293
294
|
}, 8, ["disabled"])
|
|
294
295
|
]),
|
|
@@ -325,9 +326,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
325
326
|
type: "primary",
|
|
326
327
|
onClick: comfirm
|
|
327
328
|
}, {
|
|
328
|
-
default: vue.withCtx(() => [
|
|
329
|
+
default: vue.withCtx(() => _cache[12] || (_cache[12] = [
|
|
329
330
|
vue.createTextVNode(" \u6DFB\u52A0 ")
|
|
330
|
-
]),
|
|
331
|
+
])),
|
|
331
332
|
_: 1
|
|
332
333
|
}, 8, ["disabled"])
|
|
333
334
|
]),
|
|
@@ -364,9 +365,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
364
365
|
type: "primary",
|
|
365
366
|
onClick: comfirm
|
|
366
367
|
}, {
|
|
367
|
-
default: vue.withCtx(() => [
|
|
368
|
+
default: vue.withCtx(() => _cache[13] || (_cache[13] = [
|
|
368
369
|
vue.createTextVNode(" \u6DFB\u52A0 ")
|
|
369
|
-
]),
|
|
370
|
+
])),
|
|
370
371
|
_: 1
|
|
371
372
|
}, 8, ["disabled"])
|
|
372
373
|
]),
|
|
@@ -403,9 +404,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
403
404
|
type: "primary",
|
|
404
405
|
onClick: comfirm
|
|
405
406
|
}, {
|
|
406
|
-
default: vue.withCtx(() => [
|
|
407
|
+
default: vue.withCtx(() => _cache[14] || (_cache[14] = [
|
|
407
408
|
vue.createTextVNode(" \u6DFB\u52A0 ")
|
|
408
|
-
]),
|
|
409
|
+
])),
|
|
409
410
|
_: 1
|
|
410
411
|
}, 8, ["disabled"])
|
|
411
412
|
]),
|
|
@@ -413,6 +414,44 @@ const _sfc_main = vue.defineComponent({
|
|
|
413
414
|
}, 8, ["columns", "default-selected-data", "max-select", "outside-select-data", "type-data", "user-info"])) : vue.createCommentVNode("v-if", true)
|
|
414
415
|
]),
|
|
415
416
|
_: 1
|
|
417
|
+
})) : vue.createCommentVNode("v-if", true),
|
|
418
|
+
vue.createCommentVNode(" \u62A5\u6599\u5185\u5BB9 "),
|
|
419
|
+
typeDataController.value.addDejin ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.TabPane), {
|
|
420
|
+
key: "10",
|
|
421
|
+
title: "\u62A5\u6599\u5185\u5BB9"
|
|
422
|
+
}, {
|
|
423
|
+
default: vue.withCtx(() => [
|
|
424
|
+
vue.unref(userInfo) && vue.unref(userInfo).repository_id ? (vue.openBlock(), vue.createBlock(index$8, {
|
|
425
|
+
key: 0,
|
|
426
|
+
"default-selected-data": selectedData.value,
|
|
427
|
+
"max-select": _ctx.maxSelect,
|
|
428
|
+
"outside-select-data": _ctx.outsideSelectData || [],
|
|
429
|
+
"type-data": typeDataController.value,
|
|
430
|
+
"user-info": vue.unref(userInfo),
|
|
431
|
+
onChange: selectedDataChangeHandle
|
|
432
|
+
}, {
|
|
433
|
+
store: vue.withCtx(() => [
|
|
434
|
+
vue.createVNode(index$1, {
|
|
435
|
+
selectData: selectedData.value,
|
|
436
|
+
"onUpdate:selectData": _cache[7] || (_cache[7] = ($event) => selectedData.value = $event)
|
|
437
|
+
}, null, 8, ["selectData"])
|
|
438
|
+
]),
|
|
439
|
+
options: vue.withCtx(() => [
|
|
440
|
+
vue.createVNode(vue.unref(webVue.Button), {
|
|
441
|
+
disabled: !hasSelected.value,
|
|
442
|
+
type: "primary",
|
|
443
|
+
onClick: comfirm
|
|
444
|
+
}, {
|
|
445
|
+
default: vue.withCtx(() => _cache[15] || (_cache[15] = [
|
|
446
|
+
vue.createTextVNode(" \u6DFB\u52A0 ")
|
|
447
|
+
])),
|
|
448
|
+
_: 1
|
|
449
|
+
}, 8, ["disabled"])
|
|
450
|
+
]),
|
|
451
|
+
_: 1
|
|
452
|
+
}, 8, ["default-selected-data", "max-select", "outside-select-data", "type-data", "user-info"])) : vue.createCommentVNode("v-if", true)
|
|
453
|
+
]),
|
|
454
|
+
_: 1
|
|
416
455
|
})) : vue.createCommentVNode("v-if", true)
|
|
417
456
|
]),
|
|
418
457
|
_: 1
|
|
@@ -0,0 +1,129 @@
|
|
|
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
|
+
userInfo: {}
|
|
11
|
+
},
|
|
12
|
+
emits: ["update:group_id", "search"],
|
|
13
|
+
setup(__props, { emit: __emit }) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const emit = __emit;
|
|
16
|
+
const filter = vue.ref({ title: "", classify_id: "", related_journalist: "" });
|
|
17
|
+
const reporterOptions = vue.ref([]);
|
|
18
|
+
const getReporterOptions = async (params) => {
|
|
19
|
+
var _a;
|
|
20
|
+
const res = await api.getReporterContent(props.userInfo.BASE_API, {
|
|
21
|
+
offset: 0,
|
|
22
|
+
limit: 100,
|
|
23
|
+
...params
|
|
24
|
+
});
|
|
25
|
+
if (res.code === 0) {
|
|
26
|
+
reporterOptions.value = (((_a = res.message) == null ? void 0 : _a.data) || []).map((item) => {
|
|
27
|
+
return {
|
|
28
|
+
label: item.alias || "\u533F\u540D\u8BB0\u8005",
|
|
29
|
+
value: item.uuid
|
|
30
|
+
};
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
const dejinTypeOptions = vue.ref([]);
|
|
35
|
+
const getDejinTypeOptions = async (params) => {
|
|
36
|
+
var _a;
|
|
37
|
+
const res = await api.getTypeConfig(props.userInfo.BASE_API, {
|
|
38
|
+
offset: 0,
|
|
39
|
+
limit: 100,
|
|
40
|
+
...params
|
|
41
|
+
});
|
|
42
|
+
if (res.code === 0) {
|
|
43
|
+
dejinTypeOptions.value = (((_a = res.message) == null ? void 0 : _a.data) || []).map((item) => {
|
|
44
|
+
return {
|
|
45
|
+
label: item.name,
|
|
46
|
+
value: item.id
|
|
47
|
+
};
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
const handleSearch = () => {
|
|
52
|
+
emit("search", filter.value);
|
|
53
|
+
};
|
|
54
|
+
vue.watch(
|
|
55
|
+
() => filter.value,
|
|
56
|
+
() => handleSearch(),
|
|
57
|
+
{ deep: true }
|
|
58
|
+
);
|
|
59
|
+
vue.onMounted(() => {
|
|
60
|
+
getDejinTypeOptions();
|
|
61
|
+
getReporterOptions();
|
|
62
|
+
});
|
|
63
|
+
return (_ctx, _cache) => {
|
|
64
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
65
|
+
vue.createVNode(vue.unref(webVue.Row), {
|
|
66
|
+
justify: "space-between",
|
|
67
|
+
style: { "width": "100%" }
|
|
68
|
+
}, {
|
|
69
|
+
default: vue.withCtx(() => [
|
|
70
|
+
vue.createVNode(vue.unref(webVue.Col), { span: 20 }, {
|
|
71
|
+
default: vue.withCtx(() => [
|
|
72
|
+
vue.createVNode(vue.unref(webVue.Input), {
|
|
73
|
+
modelValue: filter.value.title,
|
|
74
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filter.value.title = $event),
|
|
75
|
+
class: "filter-item",
|
|
76
|
+
style: { "margin-right": "10px" },
|
|
77
|
+
"allow-clear": "",
|
|
78
|
+
placeholder: "\u8BF7\u8F93\u5165\u6807\u9898\u68C0\u7D22",
|
|
79
|
+
onPressEnter: handleSearch
|
|
80
|
+
}, null, 8, ["modelValue"]),
|
|
81
|
+
vue.createVNode(vue.unref(webVue.Select), {
|
|
82
|
+
modelValue: filter.value.classify_id,
|
|
83
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => filter.value.classify_id = $event),
|
|
84
|
+
class: "filter-item",
|
|
85
|
+
placeholder: "\u62A5\u6599\u7C7B\u578B",
|
|
86
|
+
"allow-clear": "",
|
|
87
|
+
style: { "width": "120px", "margin-right": "10px" }
|
|
88
|
+
}, {
|
|
89
|
+
default: vue.withCtx(() => [
|
|
90
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(dejinTypeOptions.value, (item) => {
|
|
91
|
+
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
|
|
92
|
+
key: item.id,
|
|
93
|
+
label: item.label,
|
|
94
|
+
value: item.value
|
|
95
|
+
}, null, 8, ["label", "value"]);
|
|
96
|
+
}), 128))
|
|
97
|
+
]),
|
|
98
|
+
_: 1
|
|
99
|
+
}, 8, ["modelValue"]),
|
|
100
|
+
vue.createVNode(vue.unref(webVue.Select), {
|
|
101
|
+
modelValue: filter.value.related_journalist,
|
|
102
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => filter.value.related_journalist = $event),
|
|
103
|
+
class: "filter-item",
|
|
104
|
+
placeholder: "\u5173\u8054\u8BB0\u8005",
|
|
105
|
+
"allow-clear": "",
|
|
106
|
+
style: { "width": "120px" }
|
|
107
|
+
}, {
|
|
108
|
+
default: vue.withCtx(() => [
|
|
109
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(reporterOptions.value, (item) => {
|
|
110
|
+
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
|
|
111
|
+
key: item.value,
|
|
112
|
+
label: item.label,
|
|
113
|
+
value: item.value
|
|
114
|
+
}, null, 8, ["label", "value"]);
|
|
115
|
+
}), 128))
|
|
116
|
+
]),
|
|
117
|
+
_: 1
|
|
118
|
+
}, 8, ["modelValue"])
|
|
119
|
+
]),
|
|
120
|
+
_: 1
|
|
121
|
+
})
|
|
122
|
+
]),
|
|
123
|
+
_: 1
|
|
124
|
+
})
|
|
125
|
+
]);
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
module.exports = _sfc_main;
|
|
@@ -0,0 +1,237 @@
|
|
|
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: __emit }) {
|
|
26
|
+
const emit = __emit;
|
|
27
|
+
const props = __props;
|
|
28
|
+
const _maxSelect = props.maxSelect || 100;
|
|
29
|
+
const selectedData = vue.ref([]);
|
|
30
|
+
const group_id = vue.ref("all");
|
|
31
|
+
const mediaFileData = vue.ref([]);
|
|
32
|
+
const dataLoading = vue.ref(false);
|
|
33
|
+
const page = vue.ref({
|
|
34
|
+
index: 1,
|
|
35
|
+
size: 10,
|
|
36
|
+
total: 0
|
|
37
|
+
});
|
|
38
|
+
const filter = vue.ref(null);
|
|
39
|
+
const columns = [
|
|
40
|
+
{
|
|
41
|
+
title: "\u6807\u9898",
|
|
42
|
+
dataIndex: "title",
|
|
43
|
+
slotName: "title"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
title: "\u62A5\u6599\u7C7B\u578B",
|
|
47
|
+
dataIndex: "classify_name",
|
|
48
|
+
slotName: "classify_name"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
title: "@\u8BB0\u8005",
|
|
52
|
+
dataIndex: "report_user",
|
|
53
|
+
slotName: "pub_report_usertime"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
title: "\u72B6\u6001",
|
|
57
|
+
dataIndex: "adopted",
|
|
58
|
+
slotName: "adopted"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
title: "\u8054\u7CFB\u7535\u8BDD",
|
|
62
|
+
dataIndex: "contract_phone",
|
|
63
|
+
slotName: "contract_phone"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
title: "\u63D0\u4EA4\u65F6\u95F4",
|
|
67
|
+
dataIndex: "created_at",
|
|
68
|
+
slotName: "created_at"
|
|
69
|
+
}
|
|
70
|
+
];
|
|
71
|
+
const scrollPercent = { y: "100%" };
|
|
72
|
+
const tempSelectedData = vue.computed(() => {
|
|
73
|
+
return props.defaultSelectedData || [];
|
|
74
|
+
});
|
|
75
|
+
const search = (_filter) => {
|
|
76
|
+
if (_filter.title || _filter.classify_id || _filter.related_journalist) {
|
|
77
|
+
filter.value = { ..._filter };
|
|
78
|
+
} else {
|
|
79
|
+
filter.value = null;
|
|
80
|
+
}
|
|
81
|
+
page.value.index = 1;
|
|
82
|
+
loadData();
|
|
83
|
+
};
|
|
84
|
+
const loadData = async () => {
|
|
85
|
+
let params = {
|
|
86
|
+
page: page.value.index,
|
|
87
|
+
page_size: page.value.size
|
|
88
|
+
};
|
|
89
|
+
if (filter.value) {
|
|
90
|
+
params = { ...params, ...filter.value };
|
|
91
|
+
}
|
|
92
|
+
dataLoading.value = true;
|
|
93
|
+
const { code, message } = await api.getRevealContent(
|
|
94
|
+
props.userInfo.BASE_API,
|
|
95
|
+
params
|
|
96
|
+
);
|
|
97
|
+
dataLoading.value = false;
|
|
98
|
+
if (code === 0) {
|
|
99
|
+
page.value.total = message.total;
|
|
100
|
+
mediaFileData.value = message.data;
|
|
101
|
+
page.value.total = message.total || message.count;
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
const pageChangeHandle = (index2) => {
|
|
105
|
+
page.value.index = index2;
|
|
106
|
+
loadData();
|
|
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.watch(
|
|
159
|
+
() => tempSelectedData.value,
|
|
160
|
+
(val) => {
|
|
161
|
+
selectedData.value = val;
|
|
162
|
+
}
|
|
163
|
+
);
|
|
164
|
+
vue.watch(
|
|
165
|
+
() => group_id.value,
|
|
166
|
+
() => {
|
|
167
|
+
page.value.index = 1;
|
|
168
|
+
loadData();
|
|
169
|
+
}
|
|
170
|
+
);
|
|
171
|
+
vue.onMounted(() => {
|
|
172
|
+
loadData();
|
|
173
|
+
});
|
|
174
|
+
return (_ctx, _cache) => {
|
|
175
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
176
|
+
vue.createVNode(index, {
|
|
177
|
+
group_id: group_id.value,
|
|
178
|
+
"onUpdate:group_id": _cache[0] || (_cache[0] = ($event) => group_id.value = $event),
|
|
179
|
+
"user-info": _ctx.userInfo,
|
|
180
|
+
onSearch: search
|
|
181
|
+
}, null, 8, ["group_id", "user-info"]),
|
|
182
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
183
|
+
vue.createVNode(vue.unref(webVue.Table), {
|
|
184
|
+
columns,
|
|
185
|
+
scroll: scrollPercent,
|
|
186
|
+
pagination: false,
|
|
187
|
+
bordered: false,
|
|
188
|
+
data: mediaFileData.value,
|
|
189
|
+
loading: dataLoading.value,
|
|
190
|
+
onCellMouseEnter: vue.unref(tableCellMouseEnter),
|
|
191
|
+
onCellMouseLeave: vue.unref(tableCellMouseLeave),
|
|
192
|
+
onRowClick: selectTableCell
|
|
193
|
+
}, {
|
|
194
|
+
title: vue.withCtx(({ record }) => [
|
|
195
|
+
vue.createElementVNode("span", _hoisted_3, [
|
|
196
|
+
vue.unref(hoverBatchBox)(selectedData.value, record) ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
197
|
+
key: 0,
|
|
198
|
+
onClick: vue.withModifiers(($event) => clickCheckbox($event, record), ["stop"])
|
|
199
|
+
}, [
|
|
200
|
+
vue.createVNode(vue.unref(webVue.Checkbox), {
|
|
201
|
+
class: "icon",
|
|
202
|
+
"model-value": vue.unref(isItemChecked)(selectedData.value, record)
|
|
203
|
+
}, null, 8, ["model-value"])
|
|
204
|
+
], 8, _hoisted_4)) : (vue.openBlock(), vue.createBlock(component, {
|
|
205
|
+
key: 1,
|
|
206
|
+
class: "icon",
|
|
207
|
+
doc: true,
|
|
208
|
+
type: record.series
|
|
209
|
+
}, null, 8, ["type"])),
|
|
210
|
+
vue.createElementVNode("span", _hoisted_5, vue.toDisplayString(record.title || record.alias || "--"), 1)
|
|
211
|
+
])
|
|
212
|
+
]),
|
|
213
|
+
pub_time: vue.withCtx(({ record }) => [
|
|
214
|
+
vue.createElementVNode("span", null, vue.toDisplayString(record.pub_time), 1)
|
|
215
|
+
]),
|
|
216
|
+
_: 1
|
|
217
|
+
}, 8, ["data", "loading", "onCellMouseEnter", "onCellMouseLeave"])
|
|
218
|
+
]),
|
|
219
|
+
vue.createElementVNode("div", _hoisted_6, [
|
|
220
|
+
vue.createElementVNode("div", _hoisted_7, [
|
|
221
|
+
vue.renderSlot(_ctx.$slots, "store"),
|
|
222
|
+
vue.withDirectives(vue.createVNode(vue.unref(webVue.Pagination), {
|
|
223
|
+
current: page.value.index,
|
|
224
|
+
"page-size": page.value.size,
|
|
225
|
+
total: page.value.total,
|
|
226
|
+
onChange: pageChangeHandle
|
|
227
|
+
}, null, 8, ["current", "page-size", "total"]), [
|
|
228
|
+
[vue.vShow, mediaFileData.value.length > 0]
|
|
229
|
+
])
|
|
230
|
+
]),
|
|
231
|
+
vue.renderSlot(_ctx.$slots, "options")
|
|
232
|
+
])
|
|
233
|
+
]);
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
module.exports = _sfc_main;
|
|
@@ -5,7 +5,6 @@ var icon = require("@arco-design/web-vue/es/icon");
|
|
|
5
5
|
var api = require("../../../script/api.js");
|
|
6
6
|
const _hoisted_1 = { class: "media-filter-container" };
|
|
7
7
|
const _hoisted_2 = { style: { "margin-right": "10px" } };
|
|
8
|
-
const _hoisted_3 = /* @__PURE__ */ vue.createElementVNode("span", null, null, -1);
|
|
9
8
|
const _sfc_main = vue.defineComponent({
|
|
10
9
|
...{ name: "MediaFilter" },
|
|
11
10
|
__name: "index",
|
|
@@ -112,9 +111,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
112
111
|
]),
|
|
113
112
|
vue.createElementVNode("span", null, vue.toDisplayString(data == null ? void 0 : data.label), 1)
|
|
114
113
|
]),
|
|
115
|
-
"arrow-icon": vue.withCtx(() => [
|
|
116
|
-
|
|
117
|
-
]),
|
|
114
|
+
"arrow-icon": vue.withCtx(() => _cache[3] || (_cache[3] = [
|
|
115
|
+
vue.createElementVNode("span", null, null, -1)
|
|
116
|
+
])),
|
|
118
117
|
default: vue.withCtx(() => [
|
|
119
118
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(sortOptions.value, (item) => {
|
|
120
119
|
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
|
|
@@ -285,7 +285,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
285
285
|
}, {
|
|
286
286
|
default: vue.withCtx(() => [
|
|
287
287
|
vue.createVNode(vue.unref(icon.IconRefresh), { class: "reset-icon" }),
|
|
288
|
-
vue.createTextVNode(" \u91CD\u7F6E ")
|
|
288
|
+
_cache[7] || (_cache[7] = vue.createTextVNode(" \u91CD\u7F6E "))
|
|
289
289
|
]),
|
|
290
290
|
_: 1
|
|
291
291
|
}, 512), [
|
|
@@ -81,9 +81,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
81
81
|
type: "text",
|
|
82
82
|
onClick: clear
|
|
83
83
|
}, {
|
|
84
|
-
default: vue.withCtx(() => [
|
|
84
|
+
default: vue.withCtx(() => _cache[1] || (_cache[1] = [
|
|
85
85
|
vue.createTextVNode("\u6E05\u7A7A")
|
|
86
|
-
]),
|
|
86
|
+
])),
|
|
87
87
|
_: 1
|
|
88
88
|
})
|
|
89
89
|
])
|
|
@@ -97,9 +97,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
97
97
|
key: 0,
|
|
98
98
|
class: "button"
|
|
99
99
|
}, {
|
|
100
|
-
default: vue.withCtx(() => [
|
|
100
|
+
default: vue.withCtx(() => _cache[0] || (_cache[0] = [
|
|
101
101
|
vue.createTextVNode("\u5DF2\u9009\u6570\u636E")
|
|
102
|
-
]),
|
|
102
|
+
])),
|
|
103
103
|
_: 1
|
|
104
104
|
})) : vue.createCommentVNode("v-if", true)
|
|
105
105
|
]),
|
|
@@ -72,6 +72,13 @@ function getMpContentList(BASE_API, params) {
|
|
|
72
72
|
params
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
|
+
function getRevealContent(BASE_API, params) {
|
|
76
|
+
return request(BASE_API, {
|
|
77
|
+
url: "/poplar/v3/clue_report/content/clues",
|
|
78
|
+
method: "get",
|
|
79
|
+
params
|
|
80
|
+
});
|
|
81
|
+
}
|
|
75
82
|
function getConfigurationNew(BASE_API, params) {
|
|
76
83
|
return request(BASE_API, {
|
|
77
84
|
url: `/poplar/v2/settings`,
|
|
@@ -79,6 +86,20 @@ function getConfigurationNew(BASE_API, params) {
|
|
|
79
86
|
params
|
|
80
87
|
});
|
|
81
88
|
}
|
|
89
|
+
function getReporterContent(BASE_API, params) {
|
|
90
|
+
return request(BASE_API, {
|
|
91
|
+
url: "/poplar/v3/clue_report/journalist/list",
|
|
92
|
+
method: "get",
|
|
93
|
+
params
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
function getTypeConfig(BASE_API, params) {
|
|
97
|
+
return request(BASE_API, {
|
|
98
|
+
url: `/poplar/v3/clue_report/clue/classify/list`,
|
|
99
|
+
method: "get",
|
|
100
|
+
params
|
|
101
|
+
});
|
|
102
|
+
}
|
|
82
103
|
exports.checkCommitFulfillment = checkCommitFulfillment;
|
|
83
104
|
exports.getBroadcastList = getBroadcastList;
|
|
84
105
|
exports.getCategoryCategoriesTree = getCategoryCategoriesTree;
|
|
@@ -88,5 +109,8 @@ exports.getCategorylistsGroups = getCategorylistsGroups;
|
|
|
88
109
|
exports.getConfigurationNew = getConfigurationNew;
|
|
89
110
|
exports.getEqxiuList = getEqxiuList;
|
|
90
111
|
exports.getMpContentList = getMpContentList;
|
|
112
|
+
exports.getReporterContent = getReporterContent;
|
|
113
|
+
exports.getRevealContent = getRevealContent;
|
|
114
|
+
exports.getTypeConfig = getTypeConfig;
|
|
91
115
|
exports.searchMlists = searchMlists;
|
|
92
116
|
exports.searchMpaccount = searchMpaccount;
|