@cmstops/pro-compo 0.3.68 → 0.3.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/index.css +125 -79
  2. package/dist/index.min.css +1 -1
  3. package/es/baseFilter/component.js +6 -1
  4. package/es/config.js +1 -1
  5. package/es/hooks/useAttachement.d.ts +14 -6
  6. package/es/hooks/useAttachement.js +15 -1
  7. package/es/hooks/useLocalStorage.d.ts +1 -0
  8. package/es/hooks/useLocalStorage.js +2 -1
  9. package/es/index.css +125 -79
  10. package/es/selectResourceModal/assets/images/sys_load_more.js +2 -0
  11. package/es/selectResourceModal/component.js +71 -170
  12. package/es/selectResourceModal/components/{ListCardWrapper/index.js → List/ListCardWrapper.js} +13 -11
  13. package/es/selectResourceModal/components/List/ListLocal/index.js +92 -0
  14. package/es/selectResourceModal/components/{ListFilter/index.js → List/ListNormal/Filter.js} +14 -14
  15. package/es/selectResourceModal/components/List/ListNormal/index.js +77 -0
  16. package/es/selectResourceModal/components/List/ListSystem/Filter.d.ts +0 -0
  17. package/es/selectResourceModal/components/List/ListSystem/Filter.js +141 -0
  18. package/es/selectResourceModal/components/List/ListSystem/SubList.d.ts +0 -0
  19. package/es/selectResourceModal/components/List/ListSystem/SubList.js +67 -0
  20. package/es/selectResourceModal/components/List/ListSystem/index.d.ts +0 -0
  21. package/es/selectResourceModal/components/List/ListSystem/index.js +109 -0
  22. package/es/selectResourceModal/components/List/ListWraper.d.ts +0 -0
  23. package/es/selectResourceModal/components/List/ListWraper.js +61 -0
  24. package/es/selectResourceModal/components/ListTabs/index.js +9 -18
  25. package/es/selectResourceModal/{components/ListFilter/scripts/api.d.ts → scripts/selectionApis.d.ts} +1 -0
  26. package/es/selectResourceModal/scripts/selectionApis.js +15 -0
  27. package/es/selectResourceModal/scripts/useCompoLf.d.ts +21 -0
  28. package/es/selectResourceModal/scripts/useCompoLf.js +32 -0
  29. package/es/selectResourceModal/scripts/useResourceSelect.js +7 -3
  30. package/es/selectResourceModal/scripts/useTabFilter.d.ts +21 -0
  31. package/es/selectResourceModal/scripts/useTabFilter.js +37 -0
  32. package/es/selectResourceModal/style/index.css +125 -79
  33. package/es/selectResourceModal/style/index.less +3 -32
  34. package/es/selectResourceModal/style/list.less +163 -0
  35. package/es/selectThumb/component.js +25 -13
  36. package/es/utils/filter.js +0 -1
  37. package/lib/baseFilter/component.js +6 -1
  38. package/lib/config.js +1 -1
  39. package/lib/hooks/useAttachement.js +16 -0
  40. package/lib/hooks/useLocalStorage.js +2 -1
  41. package/lib/index.css +125 -79
  42. package/lib/selectResourceModal/assets/images/sys_load_more.js +3 -0
  43. package/lib/selectResourceModal/component.js +71 -170
  44. package/lib/selectResourceModal/components/{ListCardWrapper/index.js → List/ListCardWrapper.js} +12 -10
  45. package/lib/selectResourceModal/components/List/ListLocal/index.js +93 -0
  46. package/lib/selectResourceModal/components/{ListFilter/index.js → List/ListNormal/Filter.js} +15 -15
  47. package/lib/selectResourceModal/components/List/ListNormal/index.js +78 -0
  48. package/lib/selectResourceModal/components/List/ListSystem/Filter.js +142 -0
  49. package/lib/selectResourceModal/components/List/ListSystem/SubList.js +68 -0
  50. package/lib/selectResourceModal/components/List/ListSystem/index.js +110 -0
  51. package/lib/selectResourceModal/components/List/ListWraper.js +62 -0
  52. package/lib/selectResourceModal/components/ListTabs/index.js +8 -17
  53. package/lib/selectResourceModal/{components/ListFilter/scripts/api.js → scripts/selectionApis.js} +8 -1
  54. package/lib/selectResourceModal/scripts/useCompoLf.js +33 -0
  55. package/lib/selectResourceModal/scripts/useResourceSelect.js +7 -3
  56. package/lib/selectResourceModal/scripts/useTabFilter.js +38 -0
  57. package/lib/selectResourceModal/style/index.css +125 -79
  58. package/lib/selectResourceModal/style/index.less +3 -32
  59. package/lib/selectResourceModal/style/list.less +163 -0
  60. package/lib/selectThumb/component.js +25 -13
  61. package/lib/utils/filter.js +0 -1
  62. package/package.json +1 -1
  63. package/es/selectResourceModal/components/ListContent/index.js +0 -46
  64. package/es/selectResourceModal/components/ListContentLocal/index.js +0 -93
  65. package/es/selectResourceModal/components/ListFilter/scripts/api.js +0 -9
  66. package/es/selectResourceModal/style/listContent.less +0 -5
  67. package/es/selectResourceModal/style/listContentLocal.less +0 -26
  68. package/es/selectResourceModal/style/listFilter.less +0 -41
  69. package/lib/selectResourceModal/components/ListContent/index.js +0 -47
  70. package/lib/selectResourceModal/components/ListContentLocal/index.js +0 -94
  71. package/lib/selectResourceModal/style/listContent.less +0 -5
  72. package/lib/selectResourceModal/style/listContentLocal.less +0 -26
  73. package/lib/selectResourceModal/style/listFilter.less +0 -41
  74. /package/es/selectResourceModal/components/{ListCardWrapper/index.d.ts → List/ListCardWrapper.d.ts} +0 -0
  75. /package/es/selectResourceModal/components/{ListContentLocal/components → List/ListLocal}/Upload.d.ts +0 -0
  76. /package/es/selectResourceModal/components/{ListContentLocal/components → List/ListLocal}/Upload.js +0 -0
  77. /package/es/selectResourceModal/components/{ListContent → List/ListLocal}/index.d.ts +0 -0
  78. /package/es/selectResourceModal/components/{ListContentLocal/index.d.ts → List/ListNormal/Filter.d.ts} +0 -0
  79. /package/es/selectResourceModal/components/{ListFilter → List/ListNormal}/index.d.ts +0 -0
  80. /package/lib/selectResourceModal/components/{ListContentLocal/components → List/ListLocal}/Upload.js +0 -0
package/lib/config.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  var _a, _b, _c, _d, _e, _f, _g, _h;
3
3
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
4
- const DEFAULT_BASE_API = ((_b = (_a = window.situoyun) == null ? void 0 : _a.env) == null ? void 0 : _b.BASE_HOST) || "https://site.r.cmstop.xyz";
4
+ const DEFAULT_BASE_API = ((_b = (_a = window.situoyun) == null ? void 0 : _a.env) == null ? void 0 : _b.BASE_HOST) || "https://site.cmstop.xyz";
5
5
  const DEFAULT_BASE_ACCOUNT_HOST = ((_d = (_c = window.situoyun) == null ? void 0 : _c.env) == null ? void 0 : _d.BASE_ACCOUNT_HOST) || "https://account.cmstop.xyz";
6
6
  const DEFAULT_UPLOAD_CHUNK_SIZE = ((_f = (_e = window.situoyun) == null ? void 0 : _e.env) == null ? void 0 : _f.UPLOAD_CHUNK_SIZE) || 5242880;
7
7
  const DEFAULT_UPLOAD_URL = ((_h = (_g = window.situoyun) == null ? void 0 : _g.env) == null ? void 0 : _h.BASE_STATIC_FILE_API) || "https://oss.cmstop.xyz/maple/v1";
@@ -96,7 +96,23 @@ function useAttachement(options) {
96
96
  loadData
97
97
  };
98
98
  }
99
+ function getSysRsByTag(BASE_API, params) {
100
+ return request(BASE_API, {
101
+ url: "/poplar/v3/classified/sys_attachments",
102
+ method: "get",
103
+ params
104
+ });
105
+ }
106
+ function getSysRsPage(BASE_API, params) {
107
+ return request(BASE_API, {
108
+ url: "/poplar/v3/sys_attachments",
109
+ method: "get",
110
+ params
111
+ });
112
+ }
99
113
  exports["default"] = useAttachement;
100
114
  exports.getAttachmentsAll = getAttachmentsAll;
101
115
  exports.getAttachmentsMy = getAttachmentsMy;
102
116
  exports.getAttachmentsMyMessage = getAttachmentsMyMessage;
117
+ exports.getSysRsByTag = getSysRsByTag;
118
+ exports.getSysRsPage = getSysRsPage;
@@ -2,7 +2,8 @@
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const LOCALSTORAGE_KEYS = {
4
4
  LOCAL_RESOURCES: "cmstop-local-resources",
5
- LOCAL_UPLOAD_CONFIG: "cmstop-local-upload-config"
5
+ LOCAL_UPLOAD_CONFIG: "cmstop-local-upload-config",
6
+ USER_INFO: "cmstop-user-info"
6
7
  };
7
8
  function useLocalstorage(key) {
8
9
  function get() {
package/lib/index.css CHANGED
@@ -4350,43 +4350,6 @@
4350
4350
  opacity: 1;
4351
4351
  transition: all 0.3s ease-in-out;
4352
4352
  }
4353
- .card-list-wrapper {
4354
- display: grid;
4355
- grid-gap: 20px;
4356
- grid-template-columns: repeat(5, 1fr);
4357
- }
4358
- .list-filter-wrapper .list-filter-tags {
4359
- display: flex;
4360
- justify-content: space-between;
4361
- margin-top: 10px;
4362
- }
4363
- .list-filter-wrapper .list-filter-tags .list-filter-tag {
4364
- padding: 5px 16px;
4365
- border-radius: 15px;
4366
- cursor: pointer;
4367
- }
4368
- .list-filter-wrapper .list-filter-tags .list-filter-tag:hover {
4369
- background-color: var(--color-fill-3);
4370
- }
4371
- .list-filter-wrapper .list-filter-tags .list-filter-tag.active {
4372
- color: rgb(var(--primary-6));
4373
- font-weight: bold;
4374
- background: var(--color-fill-2);
4375
- }
4376
- .list-filter-wrapper .list-filter {
4377
- display: flex;
4378
- justify-content: space-between;
4379
- }
4380
- .list-filter-wrapper .list-filter .filter-list {
4381
- display: flex;
4382
- gap: 10px;
4383
- }
4384
- .list-filter-wrapper .list-filter .filter-list .filter-item {
4385
- width: 100px;
4386
- }
4387
- .list-filter-wrapper .list-filter .arco-input-prepend {
4388
- padding: 0;
4389
- }
4390
4353
  .list-panel-wrapper {
4391
4354
  width: 420px;
4392
4355
  padding: 0 !important;
@@ -4467,26 +4430,6 @@
4467
4430
  white-space: nowrap;
4468
4431
  text-overflow: ellipsis;
4469
4432
  }
4470
- .upload-list-wrapper .list-content {
4471
- margin-top: 30px;
4472
- }
4473
- .upload-list-wrapper .list-content .list-tips {
4474
- margin-bottom: 16px;
4475
- color: #3d3d3d;
4476
- }
4477
- .upload-list-wrapper .upload-wrapper {
4478
- display: flex;
4479
- flex-direction: column;
4480
- }
4481
- .upload-list-wrapper .upload-wrapper .upload-buttons {
4482
- display: flex;
4483
- gap: 20px;
4484
- justify-content: center;
4485
- margin: 20px 0;
4486
- }
4487
- .upload-list-wrapper .upload-wrapper .upload-dragger {
4488
- width: calc(100% - 2px);
4489
- }
4490
4433
  .card-wrapper-image {
4491
4434
  position: relative;
4492
4435
  overflow: hidden;
@@ -4568,8 +4511,132 @@
4568
4511
  background-color: #165dff;
4569
4512
  border-color: #165dff;
4570
4513
  }
4514
+ .resource-list {
4515
+ display: flex;
4516
+ flex: 1;
4517
+ flex-direction: column;
4518
+ gap: 10px;
4519
+ overflow: hidden;
4520
+ }
4521
+ .resource-list-content {
4522
+ flex: 1;
4523
+ overflow: hidden;
4524
+ }
4525
+ .resource-list-footer,
4526
+ .resource-list-header,
4527
+ .resource-list-content .arco-scrollbar-container {
4528
+ padding: 0 40px;
4529
+ }
4530
+ .resource-list-footer {
4531
+ display: flex;
4532
+ justify-content: space-between;
4533
+ padding-bottom: 10px;
4534
+ }
4535
+ .resource-list-footer .footer-right {
4536
+ display: flex;
4537
+ flex: 1;
4538
+ gap: 10px;
4539
+ align-items: center;
4540
+ justify-content: flex-end;
4541
+ }
4542
+ .resource-list-content-loading {
4543
+ display: flex;
4544
+ align-items: center;
4545
+ justify-content: center;
4546
+ width: 100%;
4547
+ height: 100%;
4548
+ }
4549
+ .resource-list .list-item-grid {
4550
+ display: grid;
4551
+ grid-gap: 20px;
4552
+ grid-template-columns: repeat(5, 1fr);
4553
+ }
4554
+ .resource-list .list-content {
4555
+ margin-top: 30px;
4556
+ }
4557
+ .resource-list .list-content .list-tips {
4558
+ margin-bottom: 16px;
4559
+ color: #3d3d3d;
4560
+ }
4561
+ .resource-list .upload-wrapper {
4562
+ display: flex;
4563
+ flex-direction: column;
4564
+ }
4565
+ .resource-list .upload-wrapper .upload-buttons {
4566
+ display: flex;
4567
+ gap: 20px;
4568
+ justify-content: center;
4569
+ margin: 20px 0;
4570
+ }
4571
+ .resource-list .upload-wrapper .upload-dragger {
4572
+ width: calc(100% - 2px);
4573
+ }
4574
+ .resource-list .scen-module {
4575
+ margin-bottom: 20px;
4576
+ }
4577
+ .resource-list .scen-module .title {
4578
+ display: flex;
4579
+ gap: 8px;
4580
+ align-items: center;
4581
+ margin-bottom: 20px;
4582
+ font-weight: bold;
4583
+ font-size: 16px;
4584
+ }
4585
+ .resource-list .scen-module .title .line {
4586
+ width: 3px;
4587
+ height: 16px;
4588
+ background-color: #4886ff;
4589
+ }
4590
+ .resource-list .item-load-more {
4591
+ display: flex;
4592
+ flex-direction: column;
4593
+ gap: 10px;
4594
+ align-items: center;
4595
+ justify-content: center;
4596
+ width: 100%;
4597
+ overflow: hidden;
4598
+ color: #9a9a9a;
4599
+ font-size: 12px;
4600
+ cursor: pointer;
4601
+ aspect-ratio: 4 / 3;
4602
+ }
4603
+ .resource-list .item-load-more img {
4604
+ height: calc(100% - 40px);
4605
+ }
4606
+ .resource-list .list-filter-wrapper .list-filter-tags {
4607
+ display: flex;
4608
+ justify-content: space-between;
4609
+ margin-top: 10px;
4610
+ }
4611
+ .resource-list .list-filter-wrapper .list-filter-tags .list-filter-tag {
4612
+ padding: 5px 16px;
4613
+ border-radius: 15px;
4614
+ cursor: pointer;
4615
+ }
4616
+ .resource-list .list-filter-wrapper .list-filter-tags .list-filter-tag:hover {
4617
+ background-color: var(--color-fill-3);
4618
+ }
4619
+ .resource-list .list-filter-wrapper .list-filter-tags .list-filter-tag.active {
4620
+ color: rgb(var(--primary-6));
4621
+ font-weight: bold;
4622
+ background: var(--color-fill-2);
4623
+ }
4624
+ .resource-list .list-filter-wrapper .list-filter {
4625
+ display: flex;
4626
+ justify-content: space-between;
4627
+ }
4628
+ .resource-list .list-filter-wrapper .list-filter .filter-list {
4629
+ display: flex;
4630
+ gap: 10px;
4631
+ }
4632
+ .resource-list .list-filter-wrapper .list-filter .filter-list .filter-item {
4633
+ width: 100px;
4634
+ }
4635
+ .resource-list .list-filter-wrapper .list-filter .arco-input-prepend {
4636
+ padding: 0;
4637
+ }
4571
4638
  .resource-select-modal-body {
4572
- height: 70vh;
4639
+ height: 80vh;
4573
4640
  padding: 0;
4574
4641
  }
4575
4642
  .resource-select-main {
@@ -4587,13 +4654,6 @@
4587
4654
  box-sizing: border-box;
4588
4655
  height: 100%;
4589
4656
  }
4590
- .resource-select-container .resource-select-filter,
4591
- .resource-select-container .resource-select-footer {
4592
- padding: 0 40px;
4593
- }
4594
- .resource-select-container .resource-select-content .arco-scrollbar-container {
4595
- padding: 0 40px;
4596
- }
4597
4657
  .resource-select-container .resource-select-header {
4598
4658
  padding: 10px 24px 0 24px;
4599
4659
  }
@@ -4603,20 +4663,6 @@
4603
4663
  .resource-select-container .resource-select-header .arco-tabs-content {
4604
4664
  display: none !important;
4605
4665
  }
4606
- .resource-select-container .resource-select-content {
4607
- flex: 1;
4608
- overflow: hidden;
4609
- }
4610
- .resource-select-container .resource-select-footer {
4611
- display: flex;
4612
- justify-content: space-between;
4613
- padding-bottom: 10px;
4614
- }
4615
- .resource-select-container .resource-select-footer .footer-right {
4616
- display: flex;
4617
- gap: 10px;
4618
- align-items: center;
4619
- }
4620
4666
  .iframe-container {
4621
4667
  position: relative;
4622
4668
  height: 95vh;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ var _imports_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAACQCAYAAADnRuK4AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABReSURBVHgB7V1rctvGlj4ARIp62BKj2LFdd8pU1dya8f0xUVZw5RVMsoLYK7CzgtgrSLyCK68gyQqsHViZqqnM3D+ia1JxLD9IPSiSIIme8zXYEggCIECCBEj2V0WbIkECRH845zuPbhi0ZDg+rm0XClSxirRHPaqYlnlfCLHNb1X4sd3frBLy8ar813D/N8ioOj3nDVn8N7/WuqCj3d1ynZYIBi0wQJbSBn0tHNozTeNL/rF7QlyRZCowDKoLoiPHEb8Kgw5Nh47u3i1XaUGxUAQCYYrrtG8I2jcN4z8p3JLMGkeGYRx1hfOLfUmHi2Sl5p5AIM3aGj0ikwnDxKF5AFsm0RMv+dnhvFunuSSQsjSWYTyZG9KEoU8mJtIBzSHmikBv39Yq5or5LQnxdNpaJgNU2c0dsih/Pk9WaS4IxMTZNyzj+7m3NjHBRDpwDOfl3VvlQ8o5ck2gZSPOEODeDPE8z0TKJYGWnjh+uDr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qFtFRo0HVRSZLEP4fk2v7Crb/X/wAAAAASUVORK5CYII=";
3
+ module.exports = _imports_0;
@@ -1,15 +1,13 @@
1
1
  "use strict";
2
2
  var vue = require("vue");
3
3
  var webVue = require("@arco-design/web-vue");
4
- var index$5 = require("../emptyData/index.js");
4
+ var index$2 = require("../emptyData/index.js");
5
5
  var index = require("./components/ListTabs/index.js");
6
- var index$1 = require("./components/ListFilter/index.js");
7
- var index$2 = require("./components/ListContent/index.js");
8
- var index$4 = require("./components/ListSelected/index.js");
9
- var index$3 = require("./components/ListContentLocal/index.js");
10
- var useAttachement = require("../hooks/useAttachement.js");
11
- var config = require("../config.js");
6
+ var index$1 = require("./components/ListSelected/index.js");
7
+ var ListCardWrapper = require("./components/List/ListCardWrapper.js");
12
8
  var useResourceSelect = require("./scripts/useResourceSelect.js");
9
+ var useTabFilter = require("./scripts/useTabFilter.js");
10
+ var useCompoLf = require("./scripts/useCompoLf.js");
13
11
  const _hoisted_1 = { class: "resource-select-wrap" };
14
12
  const _hoisted_2 = { class: "resource-select-main" };
15
13
  const _hoisted_3 = {
@@ -17,13 +15,6 @@ const _hoisted_3 = {
17
15
  class: "resource-select-container"
18
16
  };
19
17
  const _hoisted_4 = {
20
- key: 0,
21
- class: "resource-select-filter"
22
- };
23
- const _hoisted_5 = { class: "resource-select-content" };
24
- const _hoisted_6 = { class: "resource-select-footer" };
25
- const _hoisted_7 = { class: "footer-left" };
26
- const _hoisted_8 = {
27
18
  key: 0,
28
19
  class: "footer-right"
29
20
  };
@@ -36,180 +27,90 @@ const _sfc_main = vue.defineComponent({
36
27
  userInfo: {},
37
28
  maxcount: {},
38
29
  wrap: {},
39
- filterOptions: {}
30
+ filterOptions: {},
31
+ tabKeys: {},
32
+ mediaUseType: {}
40
33
  },
41
34
  emits: ["update:visible", "submit"],
42
35
  setup(__props, { emit: __emit }) {
43
36
  const props = __props;
44
37
  const emits = __emit;
45
- const BASE_API = props.BASE_API || config.DEFAULT_BASE_API;
46
- const wrapProps = vue.computed(() => {
47
- if (props.wrap === "drawer") {
48
- return {
49
- class: "resource-select-drawer",
50
- header: false,
51
- width: "1024px",
52
- footer: false
53
- };
38
+ const { selected, selectedKeys, disableSelect, handleSelect, handleClear } = useResourceSelect.useResourceSelect(props);
39
+ const { activeKey, activeComponent, tabKeyList } = useTabFilter(props);
40
+ const { wrapProps, close, submit } = useCompoLf(props, emits);
41
+ const handleOptions = (options, handleOptions2) => {
42
+ const { key, meta } = options;
43
+ if (key === "select-one") {
44
+ if (Array.isArray(meta))
45
+ submit(meta);
46
+ else
47
+ submit([meta]);
48
+ close();
49
+ return;
54
50
  }
55
- return {
56
- bodyClass: "resource-select-modal-body",
57
- width: "986px",
58
- closable: false,
59
- hideTitle: false,
60
- footer: false
61
- };
62
- });
63
- const activeKey = vue.ref("all");
64
- vue.provide("filterOptions", vue.computed(() => props.filterOptions));
65
- vue.provide("userInfo", vue.computed(() => props.userInfo));
66
- vue.provide("baseAPI", BASE_API);
67
- const {
68
- list,
69
- total,
70
- limit,
71
- pageIdx,
72
- loading,
73
- changeKey,
74
- changeFilter,
75
- changePage,
76
- changeSize
77
- } = useAttachement["default"]({ key: "all", BASE_API });
78
- const {
79
- selected,
80
- selectedKeys,
81
- disableSelect,
82
- handleSelect,
83
- handleClear
84
- } = useResourceSelect.useResourceSelect(props);
85
- function handleClose() {
86
- handleClear();
87
- emits("update:visible", false);
88
- }
89
- const handleSubmit = (data) => {
90
- emits("submit", JSON.parse(JSON.stringify(data)));
91
- };
92
- const handleSelectOne = (params) => {
93
- if (Array.isArray(params))
94
- handleSubmit(params);
95
- else
96
- handleSubmit([params]);
97
- handleClose();
51
+ handleOptions2 && handleOptions2(options);
98
52
  };
99
53
  function handleConfirm() {
100
- handleSelectOne(selected.value);
54
+ submit(selected.value);
101
55
  }
102
- function handleToUpload() {
103
- changeKey("local");
104
- activeKey.value = "local";
56
+ function handelChangeTab(tabKey) {
57
+ activeKey.value = tabKey;
105
58
  }
106
- const FilterRef = vue.ref();
107
- vue.watch(
108
- () => props.visible,
109
- () => {
110
- if (props.visible) {
111
- activeKey.value = "all";
112
- changeKey("all");
113
- if (FilterRef.value)
114
- FilterRef.value.resetFilter();
115
- }
116
- }
117
- );
118
59
  return (_ctx, _cache) => {
119
60
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
120
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.wrap === "drawer" ? vue.unref(webVue.Drawer) : vue.unref(webVue.Modal)), vue.mergeProps({ visible: _ctx.visible }, wrapProps.value), {
61
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.wrap === "drawer" ? vue.unref(webVue.Drawer) : vue.unref(webVue.Modal)), vue.mergeProps({ visible: _ctx.visible }, vue.unref(wrapProps)), {
121
62
  default: vue.withCtx(() => [
122
63
  vue.createElementVNode("div", _hoisted_2, [
123
64
  _ctx.userInfo ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, [
124
65
  vue.createCommentVNode(" \u5934\u90E8 "),
125
66
  vue.createVNode(index, {
126
- "model-value": activeKey.value,
127
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => activeKey.value = $event),
128
- onChange: vue.unref(changeKey),
129
- onClose: handleClose
130
- }, null, 8, ["model-value", "onChange"]),
131
- vue.createCommentVNode(" \u7B5B\u9009 "),
132
- activeKey.value !== "local" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
133
- vue.createVNode(index$1, {
134
- ref_key: "FilterRef",
135
- ref: FilterRef,
136
- "disable-upload-by": !["all", "remind"].includes(activeKey.value),
137
- filterOptions: _ctx.filterOptions,
138
- onChange: vue.unref(changeFilter),
139
- onUpload: handleToUpload
140
- }, null, 8, ["disable-upload-by", "filterOptions", "onChange"])
141
- ])) : vue.createCommentVNode("v-if", true),
142
- vue.createCommentVNode(" \u5217\u8868\u90E8\u5206 "),
143
- vue.createElementVNode("div", _hoisted_5, [
144
- vue.createVNode(vue.unref(webVue.Scrollbar), {
145
- "outer-style": { height: "100%" },
146
- style: { "height": "100%", "overflow": "auto" }
147
- }, {
148
- default: vue.withCtx(() => [
149
- vue.withDirectives(vue.createVNode(index$2, {
150
- loading: vue.unref(loading),
151
- list: vue.unref(list),
152
- disable: vue.unref(disableSelect),
153
- "select-keys": vue.unref(selectedKeys),
154
- onSelect: vue.unref(handleSelect),
155
- onSelectOne: handleSelectOne
156
- }, null, 8, ["loading", "list", "disable", "select-keys", "onSelect"]), [
157
- [vue.vShow, activeKey.value !== "local"]
158
- ]),
159
- vue.withDirectives(vue.createVNode(index$3, {
160
- disable: vue.unref(disableSelect),
161
- "select-keys": vue.unref(selectedKeys),
162
- onSelect: vue.unref(handleSelect),
163
- onSelectOne: handleSelectOne
164
- }, null, 8, ["disable", "select-keys", "onSelect"]), [
165
- [vue.vShow, activeKey.value === "local"]
166
- ])
167
- ]),
168
- _: 1
169
- })
170
- ]),
171
- vue.createCommentVNode(" \u5E95\u90E8 "),
172
- vue.createElementVNode("div", _hoisted_6, [
173
- vue.createElementVNode("div", _hoisted_7, [
174
- activeKey.value !== "local" ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Pagination), {
175
- key: 0,
176
- current: vue.unref(pageIdx),
177
- "onUpdate:current": _cache[1] || (_cache[1] = ($event) => vue.isRef(pageIdx) ? pageIdx.value = $event : null),
178
- total: vue.unref(total),
179
- "page-size": vue.unref(limit),
180
- "show-total": "",
181
- "show-page-size": "",
182
- "base-size": 3,
183
- "buffer-size": 1,
184
- onChange: _cache[2] || (_cache[2] = (e) => vue.unref(changePage)((e - 1) * vue.unref(limit))),
185
- onPageSizeChange: vue.unref(changeSize)
186
- }, null, 8, ["current", "total", "page-size", "onPageSizeChange"])) : vue.createCommentVNode("v-if", true)
67
+ "model-value": vue.unref(activeKey),
68
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(activeKey) ? activeKey.value = $event : null),
69
+ tabList: vue.unref(tabKeyList),
70
+ onClose: vue.unref(close)
71
+ }, null, 8, ["model-value", "tabList", "onClose"]),
72
+ vue.createCommentVNode(" \u5217\u8868\u5206\u53D1\u5668 "),
73
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(activeComponent)), {
74
+ "active-key": vue.unref(activeKey),
75
+ onChangeTab: handelChangeTab
76
+ }, {
77
+ item: vue.withCtx(({ item, onOptions }) => [
78
+ vue.createVNode(ListCardWrapper, {
79
+ item,
80
+ "select-keys": vue.unref(selectedKeys),
81
+ disable: vue.unref(disableSelect),
82
+ onSelect: vue.unref(handleSelect),
83
+ onOptions: (e) => handleOptions(e, onOptions)
84
+ }, null, 8, ["item", "select-keys", "disable", "onSelect", "onOptions"])
85
+ ]),
86
+ "footer-extra": vue.withCtx(() => [
87
+ vue.unref(selected).length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
88
+ vue.createVNode(index$1, {
89
+ maxcount: _ctx.maxcount,
90
+ selected: vue.unref(selected),
91
+ onRemove: vue.unref(handleSelect),
92
+ onClear: vue.unref(handleClear)
93
+ }, null, 8, ["maxcount", "selected", "onRemove", "onClear"]),
94
+ vue.createVNode(vue.unref(webVue.Button), { onClick: vue.unref(close) }, {
95
+ default: vue.withCtx(() => [
96
+ vue.createTextVNode("\u53D6\u6D88")
97
+ ]),
98
+ _: 1
99
+ }, 8, ["onClick"]),
100
+ vue.createVNode(vue.unref(webVue.Button), {
101
+ type: "primary",
102
+ onClick: handleConfirm
103
+ }, {
104
+ default: vue.withCtx(() => [
105
+ vue.createTextVNode(" \u786E\u5B9A ")
106
+ ]),
107
+ _: 1
108
+ })
109
+ ])) : vue.createCommentVNode("v-if", true)
187
110
  ]),
188
- vue.unref(selected).length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8, [
189
- vue.createVNode(index$4, {
190
- maxcount: _ctx.maxcount,
191
- selected: vue.unref(selected),
192
- onRemove: vue.unref(handleSelect),
193
- onClear: vue.unref(handleClear)
194
- }, null, 8, ["maxcount", "selected", "onRemove", "onClear"]),
195
- vue.createVNode(vue.unref(webVue.Button), { onClick: handleClose }, {
196
- default: vue.withCtx(() => [
197
- vue.createTextVNode("\u53D6\u6D88")
198
- ]),
199
- _: 1
200
- }),
201
- vue.createVNode(vue.unref(webVue.Button), {
202
- type: "primary",
203
- onClick: handleConfirm
204
- }, {
205
- default: vue.withCtx(() => [
206
- vue.createTextVNode("\u786E\u5B9A")
207
- ]),
208
- _: 1
209
- })
210
- ])) : vue.createCommentVNode("v-if", true)
211
- ])
212
- ])) : (vue.openBlock(), vue.createBlock(vue.unref(index$5), {
111
+ _: 1
112
+ }, 40, ["active-key"]))
113
+ ])) : (vue.openBlock(), vue.createBlock(vue.unref(index$2), {
213
114
  key: 1,
214
115
  type: "empty",
215
116
  customTip: "\u6682\u65E0\u6743\u9650"
@@ -7,12 +7,9 @@ const _hoisted_3 = {
7
7
  key: 0,
8
8
  class: "check-box active"
9
9
  };
10
- const _hoisted_4 = {
11
- key: 1,
12
- class: "check-box"
13
- };
10
+ const _hoisted_4 = /* @__PURE__ */ vue.createElementVNode("div", { class: "check-box" }, null, -1);
14
11
  const _sfc_main = vue.defineComponent({
15
- __name: "index",
12
+ __name: "ListCardWrapper",
16
13
  props: {
17
14
  item: {},
18
15
  extraKeys: {},
@@ -24,6 +21,7 @@ const _sfc_main = vue.defineComponent({
24
21
  const props = __props;
25
22
  const emits = __emit;
26
23
  const filterOptions = vue.inject("filterOptions");
24
+ const resourceKey = vue.computed(() => props.item.id || props.item.url);
27
25
  const selectedOrder = vue.computed(() => {
28
26
  var _a;
29
27
  const result = {};
@@ -45,7 +43,7 @@ const _sfc_main = vue.defineComponent({
45
43
  return true;
46
44
  });
47
45
  const handlersKey = vue.computed(() => {
48
- var _a;
46
+ var _a, _b;
49
47
  if (props.item.status === 2) {
50
48
  return [
51
49
  { label: "\u91CD\u65B0\u4E0A\u4F20", key: "reupload" },
@@ -55,13 +53,13 @@ const _sfc_main = vue.defineComponent({
55
53
  if (props.item.status === 3) {
56
54
  return [{ label: "\u91CD\u65B0\u8F6C\u7801", key: "retranscode" }];
57
55
  }
58
- if (((_a = props.selectKeys) == null ? void 0 : _a.length) > 0 || props.disable || !canIUse.value) {
56
+ if (((_a = props.selectKeys) == null ? void 0 : _a.length) && ((_b = props.selectKeys) == null ? void 0 : _b.length) > 0 || props.disable || !canIUse.value) {
59
57
  return [];
60
58
  }
61
59
  return [{ label: "\u9009\u7528", key: "select-one" }].concat(props.extraKeys || []);
62
60
  });
63
61
  function handleCheck() {
64
- if (!canIUse.value && !selectedOrder.value[props.item.id])
62
+ if (!canIUse.value && !selectedOrder.value[resourceKey.value])
65
63
  return;
66
64
  emits("select", props.item);
67
65
  }
@@ -71,7 +69,7 @@ const _sfc_main = vue.defineComponent({
71
69
  onClick: vue.withModifiers(handleCheck, ["stop"])
72
70
  }, [
73
71
  vue.createElementVNode("div", {
74
- class: vue.normalizeClass(["card-wrapper", { disable: !canIUse.value, active: selectedOrder.value[_ctx.item.id] }])
72
+ class: vue.normalizeClass(["card-wrapper", { disable: !canIUse.value, active: selectedOrder.value[resourceKey.value] }])
75
73
  }, [
76
74
  vue.createVNode(vue.unref(index), {
77
75
  url: _ctx.item.url,
@@ -92,7 +90,11 @@ const _sfc_main = vue.defineComponent({
92
90
  class: "check-box-wrapper",
93
91
  onClick: vue.withModifiers(handleCheck, ["stop"])
94
92
  }, [
95
- selectedOrder.value[_ctx.item.id] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, vue.toDisplayString(selectedOrder.value[_ctx.item.id]), 1)) : canIUse.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4)) : vue.createCommentVNode("v-if", true)
93
+ vue.createCommentVNode(" \u5DF2\u9009 "),
94
+ selectedOrder.value[resourceKey.value] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, vue.toDisplayString(selectedOrder.value[resourceKey.value]), 1)) : canIUse.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
95
+ vue.createCommentVNode(" \u662F\u5426\u53EF\u4EE5\u9009\u62E9 "),
96
+ _hoisted_4
97
+ ], 64)) : vue.createCommentVNode("v-if", true)
96
98
  ])
97
99
  ]);
98
100
  };