@cmstops/pro-compo 0.1.64 → 0.1.66

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 (28) hide show
  1. package/dist/index.css +13 -0
  2. package/dist/index.min.css +1 -1
  3. package/es/contentDetailList/__demo__/matrix/platform.d.ts +11 -2
  4. package/es/contentDetailList/component.js +12 -0
  5. package/es/contentDetailList/components/Content/DocItem/index.js +14 -1
  6. package/es/contentDetailList/components/Doc/index.js +6 -0
  7. package/es/contentDetailList/components/Records/MatrixItem/index.js +14 -12
  8. package/es/contentDetailList/style/MatrixItem.less +15 -0
  9. package/es/contentDetailList/style/index.css +9 -0
  10. package/es/contentModal/components/MpContentList/MediaFilter/index.js +83 -33
  11. package/es/contentModal/components/MpContentList/index.js +18 -4
  12. package/es/contentModal/components/ViewAllColumn/index.js +2 -1
  13. package/es/contentModal/style/MediaFilter.less +5 -0
  14. package/es/contentModal/style/index.css +4 -0
  15. package/es/index.css +13 -0
  16. package/lib/contentDetailList/component.js +12 -0
  17. package/lib/contentDetailList/components/Content/DocItem/index.js +14 -1
  18. package/lib/contentDetailList/components/Doc/index.js +6 -0
  19. package/lib/contentDetailList/components/Records/MatrixItem/index.js +13 -11
  20. package/lib/contentDetailList/style/MatrixItem.less +15 -0
  21. package/lib/contentDetailList/style/index.css +9 -0
  22. package/lib/contentModal/components/MpContentList/MediaFilter/index.js +81 -31
  23. package/lib/contentModal/components/MpContentList/index.js +16 -2
  24. package/lib/contentModal/components/ViewAllColumn/index.js +2 -1
  25. package/lib/contentModal/style/MediaFilter.less +5 -0
  26. package/lib/contentModal/style/index.css +4 -0
  27. package/lib/index.css +13 -0
  28. package/package.json +1 -1
@@ -1,7 +1,10 @@
1
- import { defineComponent, ref, computed, watch, onMounted, openBlock, createElementBlock, createVNode, unref, withCtx, Fragment, renderList, createBlock } from "vue";
2
- import { Space, Input, Select, Option } from "@arco-design/web-vue";
1
+ import { defineComponent, ref, computed, watch, onMounted, openBlock, createElementBlock, createVNode, unref, withCtx, Fragment, renderList, createBlock, createElementVNode, toDisplayString } from "vue";
2
+ import { Row, Col, Input, Select, Option } from "@arco-design/web-vue";
3
+ import { IconSort } from "@arco-design/web-vue/es/icon";
3
4
  import { searchMpaccount } from "../../../script/api.js";
4
5
  const _hoisted_1 = { class: "media-filter-container" };
6
+ const _hoisted_2 = { style: { "margin-right": "10px" } };
7
+ const _hoisted_3 = /* @__PURE__ */ createElementVNode("span", null, null, -1);
5
8
  const _sfc_main = defineComponent({
6
9
  ...{ name: "MediaFilter" },
7
10
  __name: "index",
@@ -14,8 +17,12 @@ const _sfc_main = defineComponent({
14
17
  var _a, _b, _c;
15
18
  const props = __props;
16
19
  const emit = __emit;
17
- const filter = ref({ wd: "", account_uid: "", order: 1 });
20
+ const filter = ref({ wd: "", account_uid: "", order: 0 });
18
21
  const typeOptions = ref([{ mp_name: "\u5168\u90E8", uid: "all" }]);
22
+ const sortOptions = ref([
23
+ { value: 0, label: "\u6B63\u5E8F" },
24
+ { value: 1, label: "\u5012\u5E8F" }
25
+ ]);
19
26
  const limit = ref(100);
20
27
  const mpName = ((_c = (_b = (_a = window.situoyun) == null ? void 0 : _a.config) == null ? void 0 : _b.oem_config) == null ? void 0 : _c.mp_name) || "\u516C\u4F17\u53F7";
21
28
  computed({
@@ -39,45 +46,88 @@ const _sfc_main = defineComponent({
39
46
  const handleSearch = () => {
40
47
  emit("search", filter.value);
41
48
  };
42
- watch(filter.value, () => {
43
- if (filter.value.account_uid === "all") {
44
- filter.value.account_uid = "";
45
- }
46
- handleSearch();
47
- });
49
+ watch(
50
+ () => filter.value,
51
+ (val) => {
52
+ if (filter.value.account_uid === "all") {
53
+ filter.value.account_uid = "";
54
+ }
55
+ handleSearch();
56
+ },
57
+ { deep: true }
58
+ );
48
59
  onMounted(() => {
49
60
  getTypeData();
50
61
  });
51
62
  return (_ctx, _cache) => {
52
63
  return openBlock(), createElementBlock("div", _hoisted_1, [
53
- createVNode(unref(Space), { size: "large" }, {
64
+ createVNode(unref(Row), {
65
+ justify: "space-between",
66
+ style: { "width": "100%" }
67
+ }, {
54
68
  default: withCtx(() => [
55
- createVNode(unref(Input), {
56
- modelValue: filter.value.wd,
57
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filter.value.wd = $event),
58
- class: "filter-item",
59
- "allow-clear": "",
60
- placeholder: "\u8F93\u5165\u5185\u5BB9\u6807\u9898",
61
- onPressEnter: handleSearch
62
- }, null, 8, ["modelValue"]),
63
- createVNode(unref(Select), {
64
- modelValue: filter.value.account_uid,
65
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => filter.value.account_uid = $event),
66
- class: "filter-item",
67
- placeholder: unref(mpName),
68
- "allow-search": ""
69
- }, {
69
+ createVNode(unref(Col), { span: 20 }, {
70
+ default: withCtx(() => [
71
+ createVNode(unref(Input), {
72
+ modelValue: filter.value.wd,
73
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filter.value.wd = $event),
74
+ class: "filter-item",
75
+ style: { "margin-right": "10px" },
76
+ "allow-clear": "",
77
+ placeholder: "\u8F93\u5165\u5185\u5BB9\u6807\u9898",
78
+ onPressEnter: handleSearch
79
+ }, null, 8, ["modelValue"]),
80
+ createVNode(unref(Select), {
81
+ modelValue: filter.value.account_uid,
82
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => filter.value.account_uid = $event),
83
+ class: "filter-item",
84
+ placeholder: unref(mpName),
85
+ "allow-search": ""
86
+ }, {
87
+ default: withCtx(() => [
88
+ (openBlock(true), createElementBlock(Fragment, null, renderList(typeOptions.value, (item) => {
89
+ return openBlock(), createBlock(unref(Option), {
90
+ key: item.uid,
91
+ label: item.mp_name,
92
+ value: item.uid
93
+ }, null, 8, ["label", "value"]);
94
+ }), 128))
95
+ ]),
96
+ _: 1
97
+ }, 8, ["modelValue", "placeholder"])
98
+ ]),
99
+ _: 1
100
+ }),
101
+ createVNode(unref(Row), { justify: "end" }, {
70
102
  default: withCtx(() => [
71
- (openBlock(true), createElementBlock(Fragment, null, renderList(typeOptions.value, (item) => {
72
- return openBlock(), createBlock(unref(Option), {
73
- key: item.uid,
74
- label: item.mp_name,
75
- value: item.uid
76
- }, null, 8, ["label", "value"]);
77
- }), 128))
103
+ createVNode(unref(Select), {
104
+ modelValue: filter.value.order,
105
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => filter.value.order = $event),
106
+ class: "filter-item"
107
+ }, {
108
+ label: withCtx(({ data }) => [
109
+ createElementVNode("span", _hoisted_2, [
110
+ createVNode(unref(IconSort))
111
+ ]),
112
+ createElementVNode("span", null, toDisplayString(data == null ? void 0 : data.label), 1)
113
+ ]),
114
+ "arrow-icon": withCtx(() => [
115
+ _hoisted_3
116
+ ]),
117
+ default: withCtx(() => [
118
+ (openBlock(true), createElementBlock(Fragment, null, renderList(sortOptions.value, (item) => {
119
+ return openBlock(), createBlock(unref(Option), {
120
+ key: item.value,
121
+ label: item.label,
122
+ value: item.value
123
+ }, null, 8, ["label", "value"]);
124
+ }), 128))
125
+ ]),
126
+ _: 1
127
+ }, 8, ["modelValue"])
78
128
  ]),
79
129
  _: 1
80
- }, 8, ["modelValue", "placeholder"])
130
+ })
81
131
  ]),
82
132
  _: 1
83
133
  })
@@ -1,5 +1,5 @@
1
- import { defineComponent, ref, computed, watch, onMounted, openBlock, createElementBlock, createVNode, createElementVNode, unref, withCtx, withModifiers, createBlock, toDisplayString, renderSlot } from "vue";
2
- import { Table, Checkbox, Message } from "@arco-design/web-vue";
1
+ import { defineComponent, ref, computed, watch, onMounted, openBlock, createElementBlock, createVNode, createElementVNode, unref, withCtx, withModifiers, createBlock, toDisplayString, renderSlot, withDirectives, vShow } from "vue";
2
+ import { Table, Checkbox, Pagination, Message } from "@arco-design/web-vue";
3
3
  import _sfc_main$2 from "../../../typeIcons/component.js";
4
4
  import _sfc_main$1 from "./MediaFilter/index.js";
5
5
  import useTableBatch from "../../../hooks/batch.js";
@@ -59,7 +59,7 @@ const _sfc_main = defineComponent({
59
59
  return props.defaultSelectedData || [];
60
60
  });
61
61
  const search = (_filter) => {
62
- if (_filter.account_uid || _filter.wd) {
62
+ if (_filter.account_uid || _filter.wd || _filter.order === 0 || _filter.order === 1) {
63
63
  filter.value = { ..._filter };
64
64
  } else {
65
65
  filter.value = null;
@@ -92,6 +92,10 @@ const _sfc_main = defineComponent({
92
92
  }) || [];
93
93
  }
94
94
  };
95
+ const pageChangeHandle = (index) => {
96
+ page.value.index = index;
97
+ loadData();
98
+ };
95
99
  const clickCheckbox = (e, record) => {
96
100
  e.stopPropagation();
97
101
  e.preventDefault();
@@ -151,6 +155,7 @@ const _sfc_main = defineComponent({
151
155
  watch(
152
156
  () => group_id.value,
153
157
  () => {
158
+ page.value.index = 1;
154
159
  loadData();
155
160
  }
156
161
  );
@@ -190,6 +195,7 @@ const _sfc_main = defineComponent({
190
195
  ], 8, _hoisted_4)) : (openBlock(), createBlock(_sfc_main$2, {
191
196
  key: 1,
192
197
  class: "icon",
198
+ doc: true,
193
199
  type: record.series
194
200
  }, null, 8, ["type"])),
195
201
  createElementVNode("span", _hoisted_5, toDisplayString(record.title || record.alias || "--"), 1)
@@ -206,7 +212,15 @@ const _sfc_main = defineComponent({
206
212
  ]),
207
213
  createElementVNode("div", _hoisted_6, [
208
214
  createElementVNode("div", _hoisted_7, [
209
- renderSlot(_ctx.$slots, "store")
215
+ renderSlot(_ctx.$slots, "store"),
216
+ withDirectives(createVNode(unref(Pagination), {
217
+ current: page.value.index,
218
+ "page-size": page.value.size,
219
+ total: page.value.total,
220
+ onChange: pageChangeHandle
221
+ }, null, 8, ["current", "page-size", "total"]), [
222
+ [vShow, mediaFileData.value.length > 0]
223
+ ])
210
224
  ]),
211
225
  renderSlot(_ctx.$slots, "options")
212
226
  ])
@@ -277,6 +277,7 @@ const _sfc_main = defineComponent({
277
277
  columns: columns.value,
278
278
  data: mediaFileData.value,
279
279
  pagination: false,
280
+ loading: dataLoading.value,
280
281
  scroll: scrollPercent,
281
282
  onCellMouseEnter: unref(tableCellMouseEnter),
282
283
  onCellMouseLeave: unref(tableCellMouseLeave),
@@ -329,7 +330,7 @@ const _sfc_main = defineComponent({
329
330
  ])
330
331
  ]),
331
332
  _: 1
332
- }, 8, ["columns", "data", "onCellMouseEnter", "onCellMouseLeave"])
333
+ }, 8, ["columns", "data", "loading", "onCellMouseEnter", "onCellMouseLeave"])
333
334
  ]),
334
335
  createElementVNode("div", _hoisted_9, [
335
336
  createElementVNode("div", _hoisted_10, [
@@ -8,6 +8,11 @@
8
8
  width: auto;
9
9
  }
10
10
 
11
+ :deep(.arco-popover-content) {
12
+ display: flex;
13
+ flex-direction: column;
14
+ }
15
+
11
16
  // 重置
12
17
  .reset-button {
13
18
  width: 74px;
@@ -30,6 +30,10 @@
30
30
  .media-filter-container .filter-item {
31
31
  width: auto;
32
32
  }
33
+ .media-filter-container :deep(.arco-popover-content) {
34
+ display: flex;
35
+ flex-direction: column;
36
+ }
33
37
  .media-filter-container .reset-button {
34
38
  width: 74px;
35
39
  padding: 9px 12px;
package/es/index.css CHANGED
@@ -357,6 +357,10 @@
357
357
  .media-filter-container .filter-item {
358
358
  width: auto;
359
359
  }
360
+ .media-filter-container :deep(.arco-popover-content) {
361
+ display: flex;
362
+ flex-direction: column;
363
+ }
360
364
  .media-filter-container .reset-button {
361
365
  width: 74px;
362
366
  padding: 9px 12px;
@@ -3057,6 +3061,15 @@
3057
3061
  border-radius: 50%;
3058
3062
  content: '';
3059
3063
  }
3064
+ .matrix-records-item-view .info-view .abttrite-v .left .state.p-state-2 {
3065
+ color: #4caf50;
3066
+ }
3067
+ .matrix-records-item-view .info-view .abttrite-v .left .state.m-state-0 {
3068
+ color: #4caf50;
3069
+ }
3070
+ .matrix-records-item-view .info-view .abttrite-v .left .state.m-state-1 {
3071
+ color: #ff9800;
3072
+ }
3060
3073
  .matrix-records-item-view .info-view .abttrite-v .right {
3061
3074
  margin-right: 20px;
3062
3075
  }
@@ -128,6 +128,12 @@ const _sfc_main = vue.defineComponent({
128
128
  onCellMouseEnter: tableCellMouseEnter,
129
129
  onCellMouseLeave: tableCellMouseLeave
130
130
  }, {
131
+ tip: vue.withCtx(() => [
132
+ vue.renderSlot(_ctx.$slots, "tip", {
133
+ row: element,
134
+ index: index$3
135
+ })
136
+ ]),
131
137
  batch: vue.withCtx(() => [
132
138
  vue.renderSlot(_ctx.$slots, "batch", {
133
139
  row: element,
@@ -207,6 +213,12 @@ const _sfc_main = vue.defineComponent({
207
213
  onCellMouseEnter: tableCellMouseEnter,
208
214
  onCellMouseLeave: tableCellMouseLeave
209
215
  }, {
216
+ tip: vue.withCtx(() => [
217
+ vue.renderSlot(_ctx.$slots, "tip", {
218
+ row: item,
219
+ index: index$3
220
+ })
221
+ ]),
210
222
  batch: vue.withCtx(() => [
211
223
  vue.renderSlot(_ctx.$slots, "batch", {
212
224
  row: item,
@@ -72,6 +72,16 @@ const _sfc_main = vue.defineComponent({
72
72
  }
73
73
  return null;
74
74
  });
75
+ const showDataTags = vue.computed(() => {
76
+ if (!props.extraAttrs)
77
+ return true;
78
+ if (!props.extraAttrs.doc)
79
+ return true;
80
+ const { showDataTags: showDataTags2 } = props.extraAttrs.doc;
81
+ if (showDataTags2 === void 0 || showDataTags2 === null)
82
+ return true;
83
+ return showDataTags2;
84
+ });
75
85
  const mouseEnterFun = (event, row) => {
76
86
  emit("cellMouseEnter", { row, event });
77
87
  };
@@ -120,7 +130,10 @@ const _sfc_main = vue.defineComponent({
120
130
  type: _ctx.item.series
121
131
  }, null, 8, ["type"]),
122
132
  vue.createElementVNode("span", _hoisted_7, [
123
- vue.createVNode(component$1, { item: _ctx.item }, null, 8, ["item"]),
133
+ showDataTags.value ? (vue.openBlock(), vue.createBlock(component$1, {
134
+ key: 0,
135
+ item: _ctx.item
136
+ }, null, 8, ["item"])) : vue.createCommentVNode("v-if", true),
124
137
  vue.renderSlot(_ctx.$slots, "tip")
125
138
  ]),
126
139
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.abttrites, (column, i) => {
@@ -30,6 +30,12 @@ const _sfc_main = vue.defineComponent({
30
30
  onCellMouseEnter: cellMouseEnter,
31
31
  onCellMouseLeave: cellMouseLeave
32
32
  }, {
33
+ tip: vue.withCtx(() => [
34
+ vue.renderSlot(_ctx.$slots, "tip", {
35
+ row: _ctx.item,
36
+ index: _ctx.index
37
+ })
38
+ ]),
33
39
  batch: vue.withCtx(() => [
34
40
  vue.renderSlot(_ctx.$slots, "batch", {
35
41
  row: _ctx.item,
@@ -18,12 +18,10 @@ const _hoisted_7 = { class: "left" };
18
18
  const _hoisted_8 = { class: "abttr tags account" };
19
19
  const _hoisted_9 = { class: "name" };
20
20
  const _hoisted_10 = { key: 1 };
21
- const _hoisted_11 = { class: "abttr tags state" };
22
- const _hoisted_12 = { class: "abttr tags user" };
21
+ const _hoisted_11 = { class: "abttr tags user" };
22
+ const _hoisted_12 = { class: "abttr time" };
23
23
  const _hoisted_13 = { class: "abttr time" };
24
- const _hoisted_14 = { class: "abttr tags state" };
25
- const _hoisted_15 = { class: "abttr time" };
26
- const _hoisted_16 = { class: "right" };
24
+ const _hoisted_14 = { class: "right" };
27
25
  const _sfc_main = vue.defineComponent({
28
26
  __name: "index",
29
27
  props: {
@@ -108,19 +106,23 @@ const _sfc_main = vue.defineComponent({
108
106
  vue.createElementVNode("span", _hoisted_9, vue.toDisplayString(account.value.name), 1)
109
107
  ], 64)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_10, "--"))
110
108
  ]),
111
- vue.createElementVNode("span", _hoisted_11, vue.toDisplayString(vue.unref(typeMap.matrixPublishStateMap)[_ctx.item.publishState]), 1),
112
- vue.createElementVNode("span", _hoisted_12, vue.toDisplayString(((_a = _ctx.item.user) == null ? void 0 : _a.alias) || "--"), 1),
113
- vue.createElementVNode("span", _hoisted_13, [
109
+ vue.createElementVNode("span", {
110
+ class: vue.normalizeClass(["abttr tags state", [`p-state-${vue.unref(typeMap.matrixPublishStateMap)[_ctx.item.publishState]}`]])
111
+ }, vue.toDisplayString(vue.unref(typeMap.matrixPublishStateMap)[_ctx.item.publishState]), 3),
112
+ vue.createElementVNode("span", _hoisted_11, vue.toDisplayString(((_a = _ctx.item.user) == null ? void 0 : _a.alias) || "--"), 1),
113
+ vue.createElementVNode("span", _hoisted_12, [
114
114
  vue.createVNode(vue.unref(icon.IconSubscribed)),
115
115
  vue.createTextVNode(" \u53D1\u5E03\u65F6\u95F4: " + vue.toDisplayString(vue.unref(index.timeFormat)(_ctx.item.publishTime)), 1)
116
116
  ]),
117
- vue.createElementVNode("span", _hoisted_14, vue.toDisplayString(vue.unref(typeMap.matrixPublishFormalStateMap)[_ctx.item.platformState]), 1),
118
- vue.createElementVNode("span", _hoisted_15, [
117
+ vue.createElementVNode("span", {
118
+ class: vue.normalizeClass(["abttr tags state", [`m-state-${vue.unref(typeMap.matrixPublishStateMap)[_ctx.item.platformState]}`]])
119
+ }, vue.toDisplayString(vue.unref(typeMap.matrixPublishFormalStateMap)[_ctx.item.platformState]), 3),
120
+ vue.createElementVNode("span", _hoisted_13, [
119
121
  vue.createVNode(vue.unref(icon.IconSend)),
120
122
  vue.createTextVNode(" \u5206\u53D1\u65F6\u95F4: " + vue.toDisplayString(vue.unref(index.timeFormat)(_ctx.item.distributeTime)), 1)
121
123
  ])
122
124
  ]),
123
- vue.createElementVNode("div", _hoisted_16, [
125
+ vue.createElementVNode("div", _hoisted_14, [
124
126
  vue.renderSlot(_ctx.$slots, "option", { row: _ctx.item })
125
127
  ])
126
128
  ])
@@ -116,6 +116,21 @@
116
116
  border-radius: 50%;
117
117
  content: '';
118
118
  }
119
+
120
+ &.p-state-2 {
121
+ // 成功
122
+ color: #4caf50;
123
+ }
124
+
125
+ &.m-state-0 {
126
+ // 成功
127
+ color: #4caf50;
128
+ }
129
+
130
+ &.m-state-1 {
131
+ // 审核
132
+ color: #ff9800;
133
+ }
119
134
  }
120
135
  }
121
136
 
@@ -1038,6 +1038,15 @@
1038
1038
  border-radius: 50%;
1039
1039
  content: '';
1040
1040
  }
1041
+ .matrix-records-item-view .info-view .abttrite-v .left .state.p-state-2 {
1042
+ color: #4caf50;
1043
+ }
1044
+ .matrix-records-item-view .info-view .abttrite-v .left .state.m-state-0 {
1045
+ color: #4caf50;
1046
+ }
1047
+ .matrix-records-item-view .info-view .abttrite-v .left .state.m-state-1 {
1048
+ color: #ff9800;
1049
+ }
1041
1050
  .matrix-records-item-view .info-view .abttrite-v .right {
1042
1051
  margin-right: 20px;
1043
1052
  }
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  var vue = require("vue");
3
3
  var webVue = require("@arco-design/web-vue");
4
+ var icon = require("@arco-design/web-vue/es/icon");
4
5
  var api = require("../../../script/api.js");
5
6
  const _hoisted_1 = { class: "media-filter-container" };
7
+ const _hoisted_2 = { style: { "margin-right": "10px" } };
8
+ const _hoisted_3 = /* @__PURE__ */ vue.createElementVNode("span", null, null, -1);
6
9
  const _sfc_main = vue.defineComponent({
7
10
  ...{ name: "MediaFilter" },
8
11
  __name: "index",
@@ -15,8 +18,12 @@ const _sfc_main = vue.defineComponent({
15
18
  var _a, _b, _c;
16
19
  const props = __props;
17
20
  const emit = __emit;
18
- const filter = vue.ref({ wd: "", account_uid: "", order: 1 });
21
+ const filter = vue.ref({ wd: "", account_uid: "", order: 0 });
19
22
  const typeOptions = vue.ref([{ mp_name: "\u5168\u90E8", uid: "all" }]);
23
+ const sortOptions = vue.ref([
24
+ { value: 0, label: "\u6B63\u5E8F" },
25
+ { value: 1, label: "\u5012\u5E8F" }
26
+ ]);
20
27
  const limit = vue.ref(100);
21
28
  const mpName = ((_c = (_b = (_a = window.situoyun) == null ? void 0 : _a.config) == null ? void 0 : _b.oem_config) == null ? void 0 : _c.mp_name) || "\u516C\u4F17\u53F7";
22
29
  vue.computed({
@@ -40,45 +47,88 @@ const _sfc_main = vue.defineComponent({
40
47
  const handleSearch = () => {
41
48
  emit("search", filter.value);
42
49
  };
43
- vue.watch(filter.value, () => {
44
- if (filter.value.account_uid === "all") {
45
- filter.value.account_uid = "";
46
- }
47
- handleSearch();
48
- });
50
+ vue.watch(
51
+ () => filter.value,
52
+ (val) => {
53
+ if (filter.value.account_uid === "all") {
54
+ filter.value.account_uid = "";
55
+ }
56
+ handleSearch();
57
+ },
58
+ { deep: true }
59
+ );
49
60
  vue.onMounted(() => {
50
61
  getTypeData();
51
62
  });
52
63
  return (_ctx, _cache) => {
53
64
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
54
- vue.createVNode(vue.unref(webVue.Space), { size: "large" }, {
65
+ vue.createVNode(vue.unref(webVue.Row), {
66
+ justify: "space-between",
67
+ style: { "width": "100%" }
68
+ }, {
55
69
  default: vue.withCtx(() => [
56
- vue.createVNode(vue.unref(webVue.Input), {
57
- modelValue: filter.value.wd,
58
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filter.value.wd = $event),
59
- class: "filter-item",
60
- "allow-clear": "",
61
- placeholder: "\u8F93\u5165\u5185\u5BB9\u6807\u9898",
62
- onPressEnter: handleSearch
63
- }, null, 8, ["modelValue"]),
64
- vue.createVNode(vue.unref(webVue.Select), {
65
- modelValue: filter.value.account_uid,
66
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => filter.value.account_uid = $event),
67
- class: "filter-item",
68
- placeholder: vue.unref(mpName),
69
- "allow-search": ""
70
- }, {
70
+ vue.createVNode(vue.unref(webVue.Col), { span: 20 }, {
71
+ default: vue.withCtx(() => [
72
+ vue.createVNode(vue.unref(webVue.Input), {
73
+ modelValue: filter.value.wd,
74
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filter.value.wd = $event),
75
+ class: "filter-item",
76
+ style: { "margin-right": "10px" },
77
+ "allow-clear": "",
78
+ placeholder: "\u8F93\u5165\u5185\u5BB9\u6807\u9898",
79
+ onPressEnter: handleSearch
80
+ }, null, 8, ["modelValue"]),
81
+ vue.createVNode(vue.unref(webVue.Select), {
82
+ modelValue: filter.value.account_uid,
83
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => filter.value.account_uid = $event),
84
+ class: "filter-item",
85
+ placeholder: vue.unref(mpName),
86
+ "allow-search": ""
87
+ }, {
88
+ default: vue.withCtx(() => [
89
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(typeOptions.value, (item) => {
90
+ return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
91
+ key: item.uid,
92
+ label: item.mp_name,
93
+ value: item.uid
94
+ }, null, 8, ["label", "value"]);
95
+ }), 128))
96
+ ]),
97
+ _: 1
98
+ }, 8, ["modelValue", "placeholder"])
99
+ ]),
100
+ _: 1
101
+ }),
102
+ vue.createVNode(vue.unref(webVue.Row), { justify: "end" }, {
71
103
  default: vue.withCtx(() => [
72
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(typeOptions.value, (item) => {
73
- return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
74
- key: item.uid,
75
- label: item.mp_name,
76
- value: item.uid
77
- }, null, 8, ["label", "value"]);
78
- }), 128))
104
+ vue.createVNode(vue.unref(webVue.Select), {
105
+ modelValue: filter.value.order,
106
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => filter.value.order = $event),
107
+ class: "filter-item"
108
+ }, {
109
+ label: vue.withCtx(({ data }) => [
110
+ vue.createElementVNode("span", _hoisted_2, [
111
+ vue.createVNode(vue.unref(icon.IconSort))
112
+ ]),
113
+ vue.createElementVNode("span", null, vue.toDisplayString(data == null ? void 0 : data.label), 1)
114
+ ]),
115
+ "arrow-icon": vue.withCtx(() => [
116
+ _hoisted_3
117
+ ]),
118
+ default: vue.withCtx(() => [
119
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(sortOptions.value, (item) => {
120
+ return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
121
+ key: item.value,
122
+ label: item.label,
123
+ value: item.value
124
+ }, null, 8, ["label", "value"]);
125
+ }), 128))
126
+ ]),
127
+ _: 1
128
+ }, 8, ["modelValue"])
79
129
  ]),
80
130
  _: 1
81
- }, 8, ["modelValue", "placeholder"])
131
+ })
82
132
  ]),
83
133
  _: 1
84
134
  })
@@ -60,7 +60,7 @@ const _sfc_main = vue.defineComponent({
60
60
  return props.defaultSelectedData || [];
61
61
  });
62
62
  const search = (_filter) => {
63
- if (_filter.account_uid || _filter.wd) {
63
+ if (_filter.account_uid || _filter.wd || _filter.order === 0 || _filter.order === 1) {
64
64
  filter.value = { ..._filter };
65
65
  } else {
66
66
  filter.value = null;
@@ -93,6 +93,10 @@ const _sfc_main = vue.defineComponent({
93
93
  }) || [];
94
94
  }
95
95
  };
96
+ const pageChangeHandle = (index2) => {
97
+ page.value.index = index2;
98
+ loadData();
99
+ };
96
100
  const clickCheckbox = (e, record) => {
97
101
  e.stopPropagation();
98
102
  e.preventDefault();
@@ -152,6 +156,7 @@ const _sfc_main = vue.defineComponent({
152
156
  vue.watch(
153
157
  () => group_id.value,
154
158
  () => {
159
+ page.value.index = 1;
155
160
  loadData();
156
161
  }
157
162
  );
@@ -191,6 +196,7 @@ const _sfc_main = vue.defineComponent({
191
196
  ], 8, _hoisted_4)) : (vue.openBlock(), vue.createBlock(component, {
192
197
  key: 1,
193
198
  class: "icon",
199
+ doc: true,
194
200
  type: record.series
195
201
  }, null, 8, ["type"])),
196
202
  vue.createElementVNode("span", _hoisted_5, vue.toDisplayString(record.title || record.alias || "--"), 1)
@@ -207,7 +213,15 @@ const _sfc_main = vue.defineComponent({
207
213
  ]),
208
214
  vue.createElementVNode("div", _hoisted_6, [
209
215
  vue.createElementVNode("div", _hoisted_7, [
210
- vue.renderSlot(_ctx.$slots, "store")
216
+ vue.renderSlot(_ctx.$slots, "store"),
217
+ vue.withDirectives(vue.createVNode(vue.unref(webVue.Pagination), {
218
+ current: page.value.index,
219
+ "page-size": page.value.size,
220
+ total: page.value.total,
221
+ onChange: pageChangeHandle
222
+ }, null, 8, ["current", "page-size", "total"]), [
223
+ [vue.vShow, mediaFileData.value.length > 0]
224
+ ])
211
225
  ]),
212
226
  vue.renderSlot(_ctx.$slots, "options")
213
227
  ])
@@ -278,6 +278,7 @@ const _sfc_main = vue.defineComponent({
278
278
  columns: columns.value,
279
279
  data: mediaFileData.value,
280
280
  pagination: false,
281
+ loading: dataLoading.value,
281
282
  scroll: scrollPercent,
282
283
  onCellMouseEnter: vue.unref(tableCellMouseEnter),
283
284
  onCellMouseLeave: vue.unref(tableCellMouseLeave),
@@ -330,7 +331,7 @@ const _sfc_main = vue.defineComponent({
330
331
  ])
331
332
  ]),
332
333
  _: 1
333
- }, 8, ["columns", "data", "onCellMouseEnter", "onCellMouseLeave"])
334
+ }, 8, ["columns", "data", "loading", "onCellMouseEnter", "onCellMouseLeave"])
334
335
  ]),
335
336
  vue.createElementVNode("div", _hoisted_9, [
336
337
  vue.createElementVNode("div", _hoisted_10, [