hy-dispatch-ui-v3 0.2.71 → 0.2.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tailwind.css +22 -4
- package/es/bussiness/hyMapAearchPlace/js/index.mjs +1 -1
- package/es/bussiness/hyRuleSetting/js/ruleSetting.mjs +6 -7
- package/es/components/hyTable/js/index.mjs +6 -1
- package/es/components/hyTable/js/useAppTable.mjs +1 -1
- package/es/components/hyTable/table.vue.mjs +41 -16
- package/es/version.mjs +1 -1
- package/lib/bussiness/hyMapAearchPlace/js/index.js +1 -1
- package/lib/bussiness/hyRuleSetting/js/ruleSetting.js +6 -7
- package/lib/components/hyTable/js/index.js +6 -1
- package/lib/components/hyTable/js/useAppTable.js +1 -1
- package/lib/components/hyTable/table.vue.js +40 -15
- package/lib/version.js +1 -1
- package/package.json +1 -1
package/dist/tailwind.css
CHANGED
|
@@ -221,10 +221,6 @@
|
|
|
221
221
|
left: 50%;
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
.left-4 {
|
|
225
|
-
left: 1rem;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
224
|
.left-full {
|
|
229
225
|
left: 100%;
|
|
230
226
|
}
|
|
@@ -316,6 +312,11 @@
|
|
|
316
312
|
margin-right: 0.5rem;
|
|
317
313
|
}
|
|
318
314
|
|
|
315
|
+
.mx-3 {
|
|
316
|
+
margin-left: 0.75rem;
|
|
317
|
+
margin-right: 0.75rem;
|
|
318
|
+
}
|
|
319
|
+
|
|
319
320
|
.my-0 {
|
|
320
321
|
margin-top: 0px;
|
|
321
322
|
margin-bottom: 0px;
|
|
@@ -1147,6 +1148,10 @@
|
|
|
1147
1148
|
column-gap: 1.5rem;
|
|
1148
1149
|
}
|
|
1149
1150
|
|
|
1151
|
+
.gap-y-3 {
|
|
1152
|
+
row-gap: 0.75rem;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1150
1155
|
.overflow-auto {
|
|
1151
1156
|
overflow: auto;
|
|
1152
1157
|
}
|
|
@@ -1281,6 +1286,11 @@
|
|
|
1281
1286
|
border-color: rgb(var(--hy-border), 0.5);
|
|
1282
1287
|
}
|
|
1283
1288
|
|
|
1289
|
+
.border-danger-2 {
|
|
1290
|
+
--tw-border-opacity: 1;
|
|
1291
|
+
border-color: rgb(var(--hy-danger-2), var(--tw-border-opacity, 1));
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1284
1294
|
.border-theme {
|
|
1285
1295
|
--tw-border-opacity: 1;
|
|
1286
1296
|
border-color: rgb(var(--hy-theme), var(--tw-border-opacity, 1));
|
|
@@ -1649,6 +1659,10 @@
|
|
|
1649
1659
|
padding-top: 0.75rem;
|
|
1650
1660
|
}
|
|
1651
1661
|
|
|
1662
|
+
.pt-5 {
|
|
1663
|
+
padding-top: 1.25rem;
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1652
1666
|
.pt-6 {
|
|
1653
1667
|
padding-top: 1.5rem;
|
|
1654
1668
|
}
|
|
@@ -1959,3 +1973,7 @@ menu {
|
|
|
1959
1973
|
.hover\:outline-theme:hover {
|
|
1960
1974
|
outline-color: rgb(var(--hy-theme), 1);
|
|
1961
1975
|
}
|
|
1976
|
+
|
|
1977
|
+
.active\:opacity-50:active {
|
|
1978
|
+
opacity: 0.5;
|
|
1979
|
+
}
|
|
@@ -97,7 +97,7 @@ const useMapAearchPlace = (hy) => {
|
|
|
97
97
|
permission: "commands_dutyStatus"
|
|
98
98
|
}
|
|
99
99
|
].filter((item) => {
|
|
100
|
-
if (
|
|
100
|
+
if (item.permission && !isPermission(item.permission)) {
|
|
101
101
|
return false;
|
|
102
102
|
}
|
|
103
103
|
return selectIdSet.has(item.value);
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import '../../../hooks/index.mjs';
|
|
2
|
+
import '../../../utils/index.mjs';
|
|
2
3
|
import { $t } from '../../../hooks/useLocale.mjs';
|
|
4
|
+
import { isPermission } from '../../../utils/is.mjs';
|
|
3
5
|
|
|
4
6
|
function getTabsList() {
|
|
5
|
-
let permissionIdList = window.sessionStorage.getItem("permissionIdList");
|
|
6
|
-
permissionIdList = JSON.parse(permissionIdList || "[]").reduce((obj, val) => {
|
|
7
|
-
obj[val] = true;
|
|
8
|
-
return obj;
|
|
9
|
-
}, {});
|
|
10
7
|
return [
|
|
11
8
|
{
|
|
12
9
|
name: $t("ruleSetting.noEntry"),
|
|
@@ -36,10 +33,12 @@ function getTabsList() {
|
|
|
36
33
|
name: $t("ruleSetting.gather"),
|
|
37
34
|
permission: "operator_ruleSetting_gatheringPeople"
|
|
38
35
|
}
|
|
39
|
-
]
|
|
36
|
+
].filter((item) => {
|
|
37
|
+
return !item.permission || isPermission(item.permission);
|
|
38
|
+
});
|
|
40
39
|
}
|
|
41
40
|
function weekDateFn(weekDate) {
|
|
42
|
-
weekDate = weekDate.split(",");
|
|
41
|
+
weekDate = (weekDate || "").split(",").filter(Boolean);
|
|
43
42
|
const data = [];
|
|
44
43
|
weekDate.forEach((v) => {
|
|
45
44
|
v -= 0;
|
|
@@ -335,6 +335,10 @@ const useAppTableWrapper = (hy) => {
|
|
|
335
335
|
tableRef.value?.clearSelection();
|
|
336
336
|
selectedList.value = [];
|
|
337
337
|
}
|
|
338
|
+
function cancalAllSelection() {
|
|
339
|
+
clearSelection();
|
|
340
|
+
emits("on-select-checkbox", [], null);
|
|
341
|
+
}
|
|
338
342
|
function getSelectedList() {
|
|
339
343
|
return selectedList.value;
|
|
340
344
|
}
|
|
@@ -445,7 +449,8 @@ const useAppTableWrapper = (hy) => {
|
|
|
445
449
|
closeAppTableLoading,
|
|
446
450
|
scrollToTop,
|
|
447
451
|
scrollToLeft,
|
|
448
|
-
onScrollHandler
|
|
452
|
+
onScrollHandler,
|
|
453
|
+
cancalAllSelection
|
|
449
454
|
};
|
|
450
455
|
};
|
|
451
456
|
|
|
@@ -39,7 +39,7 @@ function getColumnDefaultWidth(column) {
|
|
|
39
39
|
if (column.type === "index") return 80;
|
|
40
40
|
if (column.type === "operator") {
|
|
41
41
|
const length = (column.operator || []).reduce((total, item) => {
|
|
42
|
-
if (!item.permission
|
|
42
|
+
if (!item.permission || isPermission(item.permission)) {
|
|
43
43
|
total++;
|
|
44
44
|
}
|
|
45
45
|
return total;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, useModel, useTemplateRef, openBlock, createElementBlock, createCommentVNode, createElementVNode, createBlock, unref, createVNode, toDisplayString, withCtx, renderSlot, normalizeClass, createSlots, renderList, normalizeProps, guardReactiveProps, mergeProps, Fragment, withModifiers, normalizeStyle, isRef, mergeModels } from 'vue';
|
|
1
|
+
import { defineComponent, useModel, useTemplateRef, openBlock, createElementBlock, createCommentVNode, createElementVNode, createBlock, unref, createVNode, toDisplayString, withCtx, renderSlot, normalizeClass, createSlots, renderList, normalizeProps, guardReactiveProps, mergeProps, Fragment, withModifiers, normalizeStyle, isRef, createTextVNode, mergeModels } from 'vue';
|
|
2
2
|
import { ElTable, ElTableColumn, ElDropdown, ElIcon, ElDropdownMenu, ElDropdownItem, ElAutoResizer, ElPagination } from 'element-plus';
|
|
3
3
|
import { MoreFilled } from '@element-plus/icons-vue';
|
|
4
4
|
import '../index.mjs';
|
|
@@ -259,7 +259,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
259
259
|
getOptions,
|
|
260
260
|
getOptionsFields,
|
|
261
261
|
getOptionsError,
|
|
262
|
-
getOptionsByField
|
|
262
|
+
getOptionsByField,
|
|
263
|
+
cancalAllSelection
|
|
263
264
|
} = useMixins(
|
|
264
265
|
{
|
|
265
266
|
props,
|
|
@@ -757,17 +758,39 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
757
758
|
createCommentVNode(" \u5206\u9875 "),
|
|
758
759
|
__props.showPagination ? (openBlock(), createElementBlock("div", {
|
|
759
760
|
key: 0,
|
|
760
|
-
class: "flex items-center justify-
|
|
761
|
+
class: "flex flex-wrap gap-y-3 items-center justify-between min-h-6 relative pt-5 pb-5"
|
|
761
762
|
}, [
|
|
762
|
-
createElementVNode(
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
763
|
+
createElementVNode("div", { class: "text-sm ml-4" }, [
|
|
764
|
+
createElementVNode(
|
|
765
|
+
"span",
|
|
766
|
+
null,
|
|
767
|
+
toDisplayString(unref($t)("table.aTotalOfPiecesOfData", [unref(totalElements)])),
|
|
768
|
+
1
|
|
769
|
+
/* TEXT */
|
|
770
|
+
),
|
|
771
|
+
unref(selectedList) && unref(selectedList).length ? (openBlock(), createElementBlock("span", {
|
|
772
|
+
key: 0,
|
|
773
|
+
class: "ml-3"
|
|
774
|
+
}, [
|
|
775
|
+
createTextVNode(" \u5DF2\u9009\u4E2D"),
|
|
776
|
+
createElementVNode(
|
|
777
|
+
"span",
|
|
778
|
+
{ class: "text-theme" },
|
|
779
|
+
toDisplayString(unref(selectedList).length),
|
|
780
|
+
1
|
|
781
|
+
/* TEXT */
|
|
782
|
+
),
|
|
783
|
+
createTextVNode("\u6761\u6570\u636E ")
|
|
784
|
+
])) : createCommentVNode("v-if", true),
|
|
785
|
+
unref(selectedList) && unref(selectedList).length ? (openBlock(), createElementBlock("span", {
|
|
786
|
+
key: 1,
|
|
787
|
+
onClick: unref(cancalAllSelection),
|
|
788
|
+
class: "text-danger-2 ml-3 border-b border-danger-2 cursor-pointer active:opacity-50"
|
|
789
|
+
}, "\u53D6\u6D88\u5168\u9009", 8, ["onClick"])) : createCommentVNode("v-if", true)
|
|
790
|
+
]),
|
|
769
791
|
unref(totalElements) >= 10 ? (openBlock(), createBlock(unref(ElPagination), {
|
|
770
792
|
key: 0,
|
|
793
|
+
class: "ml-3",
|
|
771
794
|
"current-page": __props.filterModel.page,
|
|
772
795
|
"onUpdate:currentPage": ($event) => __props.filterModel.page = $event,
|
|
773
796
|
"page-size": __props.filterModel.size,
|
|
@@ -781,12 +804,14 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
781
804
|
onSizeChange: unref(onSizeChangeHandler),
|
|
782
805
|
onCurrentChange: unref(onCurrentChangeHandler)
|
|
783
806
|
}, null, 8, ["current-page", "onUpdate:currentPage", "page-size", "onUpdate:pageSize", "total", "pager-count", "layout", "onSizeChange", "onCurrentChange"])) : createCommentVNode("v-if", true),
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
807
|
+
createElementVNode("div", { class: "mx-3" }, [
|
|
808
|
+
unref(selectedList) && unref(selectedList).length > 0 ? (openBlock(), createElementBlock("div", {
|
|
809
|
+
key: 0,
|
|
810
|
+
class: ""
|
|
811
|
+
}, [
|
|
812
|
+
renderSlot(_ctx.$slots, "multiple-operator-slot")
|
|
813
|
+
])) : createCommentVNode("v-if", true)
|
|
814
|
+
])
|
|
790
815
|
])) : createCommentVNode("v-if", true)
|
|
791
816
|
]),
|
|
792
817
|
createCommentVNode(" \u8868\u683C\u884C\u53F3\u952E\u5C55\u793A\u64CD\u4F5C\u5217\u8868 "),
|
package/es/version.mjs
CHANGED
|
@@ -99,7 +99,7 @@ const useMapAearchPlace = (hy) => {
|
|
|
99
99
|
permission: "commands_dutyStatus"
|
|
100
100
|
}
|
|
101
101
|
].filter((item) => {
|
|
102
|
-
if (
|
|
102
|
+
if (item.permission && !is.isPermission(item.permission)) {
|
|
103
103
|
return false;
|
|
104
104
|
}
|
|
105
105
|
return selectIdSet.has(item.value);
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../../../hooks/index.js');
|
|
4
|
+
require('../../../utils/index.js');
|
|
4
5
|
var useLocale = require('../../../hooks/useLocale.js');
|
|
6
|
+
var is = require('../../../utils/is.js');
|
|
5
7
|
|
|
6
8
|
function getTabsList() {
|
|
7
|
-
let permissionIdList = window.sessionStorage.getItem("permissionIdList");
|
|
8
|
-
permissionIdList = JSON.parse(permissionIdList || "[]").reduce((obj, val) => {
|
|
9
|
-
obj[val] = true;
|
|
10
|
-
return obj;
|
|
11
|
-
}, {});
|
|
12
9
|
return [
|
|
13
10
|
{
|
|
14
11
|
name: useLocale.$t("ruleSetting.noEntry"),
|
|
@@ -38,10 +35,12 @@ function getTabsList() {
|
|
|
38
35
|
name: useLocale.$t("ruleSetting.gather"),
|
|
39
36
|
permission: "operator_ruleSetting_gatheringPeople"
|
|
40
37
|
}
|
|
41
|
-
]
|
|
38
|
+
].filter((item) => {
|
|
39
|
+
return !item.permission || is.isPermission(item.permission);
|
|
40
|
+
});
|
|
42
41
|
}
|
|
43
42
|
function weekDateFn(weekDate) {
|
|
44
|
-
weekDate = weekDate.split(",");
|
|
43
|
+
weekDate = (weekDate || "").split(",").filter(Boolean);
|
|
45
44
|
const data = [];
|
|
46
45
|
weekDate.forEach((v) => {
|
|
47
46
|
v -= 0;
|
|
@@ -337,6 +337,10 @@ const useAppTableWrapper = (hy) => {
|
|
|
337
337
|
tableRef.value?.clearSelection();
|
|
338
338
|
selectedList.value = [];
|
|
339
339
|
}
|
|
340
|
+
function cancalAllSelection() {
|
|
341
|
+
clearSelection();
|
|
342
|
+
emits("on-select-checkbox", [], null);
|
|
343
|
+
}
|
|
340
344
|
function getSelectedList() {
|
|
341
345
|
return selectedList.value;
|
|
342
346
|
}
|
|
@@ -447,7 +451,8 @@ const useAppTableWrapper = (hy) => {
|
|
|
447
451
|
closeAppTableLoading,
|
|
448
452
|
scrollToTop,
|
|
449
453
|
scrollToLeft,
|
|
450
|
-
onScrollHandler
|
|
454
|
+
onScrollHandler,
|
|
455
|
+
cancalAllSelection
|
|
451
456
|
};
|
|
452
457
|
};
|
|
453
458
|
|
|
@@ -41,7 +41,7 @@ function getColumnDefaultWidth(column) {
|
|
|
41
41
|
if (column.type === "index") return 80;
|
|
42
42
|
if (column.type === "operator") {
|
|
43
43
|
const length = (column.operator || []).reduce((total, item) => {
|
|
44
|
-
if (!item.permission
|
|
44
|
+
if (!item.permission || is.isPermission(item.permission)) {
|
|
45
45
|
total++;
|
|
46
46
|
}
|
|
47
47
|
return total;
|
|
@@ -263,7 +263,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
263
263
|
getOptions,
|
|
264
264
|
getOptionsFields,
|
|
265
265
|
getOptionsError,
|
|
266
|
-
getOptionsByField
|
|
266
|
+
getOptionsByField,
|
|
267
|
+
cancalAllSelection
|
|
267
268
|
} = useMixins.useMixins(
|
|
268
269
|
{
|
|
269
270
|
props,
|
|
@@ -761,17 +762,39 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
761
762
|
vue.createCommentVNode(" \u5206\u9875 "),
|
|
762
763
|
__props.showPagination ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
763
764
|
key: 0,
|
|
764
|
-
class: "flex items-center justify-
|
|
765
|
+
class: "flex flex-wrap gap-y-3 items-center justify-between min-h-6 relative pt-5 pb-5"
|
|
765
766
|
}, [
|
|
766
|
-
vue.createElementVNode(
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
767
|
+
vue.createElementVNode("div", { class: "text-sm ml-4" }, [
|
|
768
|
+
vue.createElementVNode(
|
|
769
|
+
"span",
|
|
770
|
+
null,
|
|
771
|
+
vue.toDisplayString(vue.unref(useLocale.$t)("table.aTotalOfPiecesOfData", [vue.unref(totalElements)])),
|
|
772
|
+
1
|
|
773
|
+
/* TEXT */
|
|
774
|
+
),
|
|
775
|
+
vue.unref(selectedList) && vue.unref(selectedList).length ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
776
|
+
key: 0,
|
|
777
|
+
class: "ml-3"
|
|
778
|
+
}, [
|
|
779
|
+
vue.createTextVNode(" \u5DF2\u9009\u4E2D"),
|
|
780
|
+
vue.createElementVNode(
|
|
781
|
+
"span",
|
|
782
|
+
{ class: "text-theme" },
|
|
783
|
+
vue.toDisplayString(vue.unref(selectedList).length),
|
|
784
|
+
1
|
|
785
|
+
/* TEXT */
|
|
786
|
+
),
|
|
787
|
+
vue.createTextVNode("\u6761\u6570\u636E ")
|
|
788
|
+
])) : vue.createCommentVNode("v-if", true),
|
|
789
|
+
vue.unref(selectedList) && vue.unref(selectedList).length ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
790
|
+
key: 1,
|
|
791
|
+
onClick: vue.unref(cancalAllSelection),
|
|
792
|
+
class: "text-danger-2 ml-3 border-b border-danger-2 cursor-pointer active:opacity-50"
|
|
793
|
+
}, "\u53D6\u6D88\u5168\u9009", 8, ["onClick"])) : vue.createCommentVNode("v-if", true)
|
|
794
|
+
]),
|
|
773
795
|
vue.unref(totalElements) >= 10 ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElPagination), {
|
|
774
796
|
key: 0,
|
|
797
|
+
class: "ml-3",
|
|
775
798
|
"current-page": __props.filterModel.page,
|
|
776
799
|
"onUpdate:currentPage": ($event) => __props.filterModel.page = $event,
|
|
777
800
|
"page-size": __props.filterModel.size,
|
|
@@ -785,12 +808,14 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
785
808
|
onSizeChange: vue.unref(onSizeChangeHandler),
|
|
786
809
|
onCurrentChange: vue.unref(onCurrentChangeHandler)
|
|
787
810
|
}, null, 8, ["current-page", "onUpdate:currentPage", "page-size", "onUpdate:pageSize", "total", "pager-count", "layout", "onSizeChange", "onCurrentChange"])) : vue.createCommentVNode("v-if", true),
|
|
788
|
-
vue.
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
811
|
+
vue.createElementVNode("div", { class: "mx-3" }, [
|
|
812
|
+
vue.unref(selectedList) && vue.unref(selectedList).length > 0 ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
813
|
+
key: 0,
|
|
814
|
+
class: ""
|
|
815
|
+
}, [
|
|
816
|
+
vue.renderSlot(_ctx.$slots, "multiple-operator-slot")
|
|
817
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
818
|
+
])
|
|
794
819
|
])) : vue.createCommentVNode("v-if", true)
|
|
795
820
|
]),
|
|
796
821
|
vue.createCommentVNode(" \u8868\u683C\u884C\u53F3\u952E\u5C55\u793A\u64CD\u4F5C\u5217\u8868 "),
|
package/lib/version.js
CHANGED