star-horse-lowcode 2.7.61 → 2.7.62
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/README.md +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/index.es.js +174 -133
- package/dist/types/index.d.ts +72 -82
- package/package.json +4 -4
package/dist/index.es.js
CHANGED
|
@@ -318,7 +318,7 @@ const useNamespace = (block, namespaceOverrides) => {
|
|
|
318
318
|
};
|
|
319
319
|
|
|
320
320
|
/**
|
|
321
|
-
* @vue/shared v3.5.
|
|
321
|
+
* @vue/shared v3.5.18
|
|
322
322
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
323
323
|
* @license MIT
|
|
324
324
|
**/
|
|
@@ -51007,7 +51007,7 @@ const flip$1 = function (options) {
|
|
|
51007
51007
|
if (!ignoreCrossAxisOverflow ||
|
|
51008
51008
|
// We leave the current main axis only if every placement on that axis
|
|
51009
51009
|
// overflows the main axis.
|
|
51010
|
-
overflowsData.every(d => d.overflows[0] > 0
|
|
51010
|
+
overflowsData.every(d => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {
|
|
51011
51011
|
// Try next placement and re-run the lifecycle.
|
|
51012
51012
|
return {
|
|
51013
51013
|
data: {
|
|
@@ -69044,41 +69044,6 @@ const useSelfOperationStore = defineStore("selfOperation", () => {
|
|
|
69044
69044
|
};
|
|
69045
69045
|
});
|
|
69046
69046
|
|
|
69047
|
-
/*!
|
|
69048
|
-
* vue-router v4.5.1
|
|
69049
|
-
* (c) 2025 Eduardo San Martin Morote
|
|
69050
|
-
* @license MIT
|
|
69051
|
-
*/
|
|
69052
|
-
var NavigationType;
|
|
69053
|
-
(function(NavigationType2) {
|
|
69054
|
-
NavigationType2["pop"] = "pop";
|
|
69055
|
-
NavigationType2["push"] = "push";
|
|
69056
|
-
})(NavigationType || (NavigationType = {}));
|
|
69057
|
-
var NavigationDirection;
|
|
69058
|
-
(function(NavigationDirection2) {
|
|
69059
|
-
NavigationDirection2["back"] = "back";
|
|
69060
|
-
NavigationDirection2["forward"] = "forward";
|
|
69061
|
-
NavigationDirection2["unknown"] = "";
|
|
69062
|
-
})(NavigationDirection || (NavigationDirection = {}));
|
|
69063
|
-
Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
|
|
69064
|
-
var NavigationFailureType;
|
|
69065
|
-
(function(NavigationFailureType2) {
|
|
69066
|
-
NavigationFailureType2[NavigationFailureType2["aborted"] = 4] = "aborted";
|
|
69067
|
-
NavigationFailureType2[NavigationFailureType2["cancelled"] = 8] = "cancelled";
|
|
69068
|
-
NavigationFailureType2[NavigationFailureType2["duplicated"] = 16] = "duplicated";
|
|
69069
|
-
})(NavigationFailureType || (NavigationFailureType = {}));
|
|
69070
|
-
Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
|
|
69071
|
-
Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
|
|
69072
|
-
const routerKey = Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
|
|
69073
|
-
const routeLocationKey = Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
|
|
69074
|
-
Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
|
|
69075
|
-
function useRouter() {
|
|
69076
|
-
return inject(routerKey);
|
|
69077
|
-
}
|
|
69078
|
-
function useRoute(_name) {
|
|
69079
|
-
return inject(routeLocationKey);
|
|
69080
|
-
}
|
|
69081
|
-
|
|
69082
69047
|
const userOperation$1 = useSelfOperationStore(piniaInstance);
|
|
69083
69048
|
const userFunction = (code, context, formData) => {
|
|
69084
69049
|
if (!code) {
|
|
@@ -69146,7 +69111,7 @@ function userAction(tableRef, primaryKey, datas) {
|
|
|
69146
69111
|
} else if (item["eventType"] == "dialog") {
|
|
69147
69112
|
warning("暂未实现");
|
|
69148
69113
|
} else if (item["eventType"] == "page") {
|
|
69149
|
-
let router =
|
|
69114
|
+
let router = window.__hostRouter__;
|
|
69150
69115
|
item["funcName"] = (row) => {
|
|
69151
69116
|
router.push({
|
|
69152
69117
|
path: content,
|
|
@@ -75643,7 +75608,7 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
75643
75608
|
await nextTick();
|
|
75644
75609
|
rowDataFormRef.value.setFormData(row);
|
|
75645
75610
|
};
|
|
75646
|
-
const mergeData = async () => {
|
|
75611
|
+
const mergeData = async (type) => {
|
|
75647
75612
|
let flag = false;
|
|
75648
75613
|
let formRef = rowDataFormRef.value.$refs.starHorseFormRef;
|
|
75649
75614
|
await formRef.validate((res) => flag = res);
|
|
@@ -75656,7 +75621,11 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
75656
75621
|
} else {
|
|
75657
75622
|
dataForm.value[props.batchName].push(formData);
|
|
75658
75623
|
}
|
|
75659
|
-
|
|
75624
|
+
if (type == "close") {
|
|
75625
|
+
closeAction();
|
|
75626
|
+
} else {
|
|
75627
|
+
rowDataFormRef.value.resetForm();
|
|
75628
|
+
}
|
|
75660
75629
|
};
|
|
75661
75630
|
const closeAction = () => {
|
|
75662
75631
|
rowDialogVisible.value = false;
|
|
@@ -75819,6 +75788,7 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
75819
75788
|
title: "编辑数据",
|
|
75820
75789
|
dialogVisible: unref(rowDialogVisible),
|
|
75821
75790
|
boxWidth: "50%",
|
|
75791
|
+
"is-show-btn-continue": true,
|
|
75822
75792
|
selfFunc: true,
|
|
75823
75793
|
onMerge: mergeData,
|
|
75824
75794
|
onCloseAction: closeAction
|
|
@@ -76093,7 +76063,7 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
76093
76063
|
|
|
76094
76064
|
/* unplugin-vue-components disabled */
|
|
76095
76065
|
|
|
76096
|
-
const __unplugin_components_0$6 = /* @__PURE__ */ _export_sfc(_sfc_main$1y, [["__scopeId", "data-v-
|
|
76066
|
+
const __unplugin_components_0$6 = /* @__PURE__ */ _export_sfc(_sfc_main$1y, [["__scopeId", "data-v-e8d0ba73"]]);
|
|
76097
76067
|
|
|
76098
76068
|
const StarHorseFormList = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
76099
76069
|
__proto__: null,
|
|
@@ -123037,79 +123007,6 @@ const StarHorseStaticTable$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.de
|
|
|
123037
123007
|
default: StarHorseStaticTable
|
|
123038
123008
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
123039
123009
|
|
|
123040
|
-
const useButtonPermissionStore = defineStore("buttonPermission", () => {
|
|
123041
|
-
const pageBtnPermisson = ref({});
|
|
123042
|
-
const currentPermission = ref({});
|
|
123043
|
-
const permissionUrlPrefix = ref(
|
|
123044
|
-
"/system-config/system/resourcesEntity/permissionResources/"
|
|
123045
|
-
);
|
|
123046
|
-
const addRoute = async (route) => {
|
|
123047
|
-
let data = route ?? (window.__hostRouter__?.currentRoute || window.__hostRouter__);
|
|
123048
|
-
const meta = unref(data)?.meta;
|
|
123049
|
-
return await getPagePermission(meta?.menuId);
|
|
123050
|
-
};
|
|
123051
|
-
const setPermissionUrl = (url) => {
|
|
123052
|
-
permissionUrlPrefix.value = url;
|
|
123053
|
-
};
|
|
123054
|
-
const addPermission = (menuId, data) => {
|
|
123055
|
-
pageBtnPermisson.value[menuId] = data;
|
|
123056
|
-
};
|
|
123057
|
-
const removePermission = (menuId) => {
|
|
123058
|
-
delete pageBtnPermisson.value[menuId];
|
|
123059
|
-
};
|
|
123060
|
-
const addAllPermission = (data) => {
|
|
123061
|
-
pageBtnPermisson.value = data;
|
|
123062
|
-
};
|
|
123063
|
-
const cleanPermission = () => {
|
|
123064
|
-
pageBtnPermisson.value = {};
|
|
123065
|
-
};
|
|
123066
|
-
const getPagePermission = async (menuId) => {
|
|
123067
|
-
currentPermission.value = [];
|
|
123068
|
-
if (menuId) {
|
|
123069
|
-
menuId = menuId.split("_")[1];
|
|
123070
|
-
let permissons = [];
|
|
123071
|
-
if (!permissons || permissons.length == 0) {
|
|
123072
|
-
const userId = getUserInfo()?.idUsersinfo;
|
|
123073
|
-
if (!userId) {
|
|
123074
|
-
warning("Session 失效");
|
|
123075
|
-
return;
|
|
123076
|
-
}
|
|
123077
|
-
await postRequest(
|
|
123078
|
-
`${permissionUrlPrefix.value}${userId}/${menuId}`,
|
|
123079
|
-
{}
|
|
123080
|
-
).then((res) => {
|
|
123081
|
-
if (res.data.code) {
|
|
123082
|
-
console.log(res.data.cnMessage);
|
|
123083
|
-
return;
|
|
123084
|
-
}
|
|
123085
|
-
permissons = res.data.data;
|
|
123086
|
-
});
|
|
123087
|
-
if (permissons && permissons.length > 0) {
|
|
123088
|
-
addPermission(menuId, permissons);
|
|
123089
|
-
} else {
|
|
123090
|
-
warning("没有页面按钮操作权限,请联系系统管理员授权");
|
|
123091
|
-
}
|
|
123092
|
-
}
|
|
123093
|
-
const permission = {};
|
|
123094
|
-
permissons?.forEach((item) => {
|
|
123095
|
-
permission[item.resCode] = item.resCode;
|
|
123096
|
-
});
|
|
123097
|
-
currentPermission.value = permission;
|
|
123098
|
-
}
|
|
123099
|
-
return currentPermission.value;
|
|
123100
|
-
};
|
|
123101
|
-
return {
|
|
123102
|
-
pageBtnPermisson,
|
|
123103
|
-
currentPermission,
|
|
123104
|
-
setPermissionUrl,
|
|
123105
|
-
addPermission,
|
|
123106
|
-
addAllPermission,
|
|
123107
|
-
addRoute,
|
|
123108
|
-
removePermission,
|
|
123109
|
-
cleanPermission
|
|
123110
|
-
};
|
|
123111
|
-
});
|
|
123112
|
-
|
|
123113
123010
|
const _hoisted_1$I = {
|
|
123114
123011
|
key: 0,
|
|
123115
123012
|
class: "inner_button"
|
|
@@ -123141,18 +123038,14 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
123141
123038
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
123142
123039
|
const props = __props;
|
|
123143
123040
|
const emits = __emit;
|
|
123144
|
-
const route = useRoute();
|
|
123145
123041
|
let configStore = useGlobalConfigStore(piniaInstance);
|
|
123146
|
-
let pagePermission = useButtonPermissionStore(piniaInstance);
|
|
123147
123042
|
let compSize = computed(
|
|
123148
123043
|
() => configStore.configFormInfo?.buttonSize || Config.compSize
|
|
123149
123044
|
);
|
|
123150
123045
|
let showType = computed(
|
|
123151
123046
|
() => configStore.configFormInfo?.buttonShowType || "dropdown"
|
|
123152
123047
|
);
|
|
123153
|
-
let permissions = computed(
|
|
123154
|
-
() => props.btnPermissions || pagePermission.addRoute(route)
|
|
123155
|
-
);
|
|
123048
|
+
let permissions = computed(() => props.btnPermissions);
|
|
123156
123049
|
const dataForm = ref({});
|
|
123157
123050
|
const tableCompFunc = (funcName) => {
|
|
123158
123051
|
emits("tableCompFunc", funcName);
|
|
@@ -123534,7 +123427,7 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
123534
123427
|
|
|
123535
123428
|
/* unplugin-vue-components disabled */
|
|
123536
123429
|
|
|
123537
|
-
const __unplugin_components_2 = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["__scopeId", "data-v-
|
|
123430
|
+
const __unplugin_components_2 = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["__scopeId", "data-v-05974278"]]);
|
|
123538
123431
|
|
|
123539
123432
|
const StarHorseButtonList = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
123540
123433
|
__proto__: null,
|
|
@@ -123827,6 +123720,79 @@ const tableColumn = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.definePropert
|
|
|
123827
123720
|
default: _sfc_main$1m
|
|
123828
123721
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
123829
123722
|
|
|
123723
|
+
const useButtonPermissionStore = defineStore("buttonPermission", () => {
|
|
123724
|
+
const pageBtnPermisson = ref({});
|
|
123725
|
+
const currentPermission = ref({});
|
|
123726
|
+
const permissionUrlPrefix = ref(
|
|
123727
|
+
"/system-config/system/resourcesEntity/permissionResources/"
|
|
123728
|
+
);
|
|
123729
|
+
const addRoute = async (route) => {
|
|
123730
|
+
let data = route ?? (window.__hostRouter__?.currentRoute || window.__hostRouter__);
|
|
123731
|
+
const meta = unref(data)?.meta;
|
|
123732
|
+
return await getPagePermission(meta?.menuId);
|
|
123733
|
+
};
|
|
123734
|
+
const setPermissionUrl = (url) => {
|
|
123735
|
+
permissionUrlPrefix.value = url;
|
|
123736
|
+
};
|
|
123737
|
+
const addPermission = (menuId, data) => {
|
|
123738
|
+
pageBtnPermisson.value[menuId] = data;
|
|
123739
|
+
};
|
|
123740
|
+
const removePermission = (menuId) => {
|
|
123741
|
+
delete pageBtnPermisson.value[menuId];
|
|
123742
|
+
};
|
|
123743
|
+
const addAllPermission = (data) => {
|
|
123744
|
+
pageBtnPermisson.value = data;
|
|
123745
|
+
};
|
|
123746
|
+
const cleanPermission = () => {
|
|
123747
|
+
pageBtnPermisson.value = {};
|
|
123748
|
+
};
|
|
123749
|
+
const getPagePermission = async (menuId) => {
|
|
123750
|
+
currentPermission.value = [];
|
|
123751
|
+
if (menuId) {
|
|
123752
|
+
menuId = menuId.split("_")[1];
|
|
123753
|
+
let permissons = [];
|
|
123754
|
+
if (!permissons || permissons.length == 0) {
|
|
123755
|
+
const userId = getUserInfo()?.idUsersinfo;
|
|
123756
|
+
if (!userId) {
|
|
123757
|
+
warning("Session 失效");
|
|
123758
|
+
return;
|
|
123759
|
+
}
|
|
123760
|
+
await postRequest(
|
|
123761
|
+
`${permissionUrlPrefix.value}${userId}/${menuId}`,
|
|
123762
|
+
{}
|
|
123763
|
+
).then((res) => {
|
|
123764
|
+
if (res.data.code) {
|
|
123765
|
+
console.log(res.data.cnMessage);
|
|
123766
|
+
return;
|
|
123767
|
+
}
|
|
123768
|
+
permissons = res.data.data;
|
|
123769
|
+
});
|
|
123770
|
+
if (permissons && permissons.length > 0) {
|
|
123771
|
+
addPermission(menuId, permissons);
|
|
123772
|
+
} else {
|
|
123773
|
+
warning("没有页面按钮操作权限,请联系系统管理员授权");
|
|
123774
|
+
}
|
|
123775
|
+
}
|
|
123776
|
+
const permission = {};
|
|
123777
|
+
permissons?.forEach((item) => {
|
|
123778
|
+
permission[item.resCode] = item.resCode;
|
|
123779
|
+
});
|
|
123780
|
+
currentPermission.value = permission;
|
|
123781
|
+
}
|
|
123782
|
+
return currentPermission.value;
|
|
123783
|
+
};
|
|
123784
|
+
return {
|
|
123785
|
+
pageBtnPermisson,
|
|
123786
|
+
currentPermission,
|
|
123787
|
+
setPermissionUrl,
|
|
123788
|
+
addPermission,
|
|
123789
|
+
addAllPermission,
|
|
123790
|
+
addRoute,
|
|
123791
|
+
removePermission,
|
|
123792
|
+
cleanPermission
|
|
123793
|
+
};
|
|
123794
|
+
});
|
|
123795
|
+
|
|
123830
123796
|
const useDynamicFormStore = defineStore("dynamicForm", () => {
|
|
123831
123797
|
const dataForm = ref({});
|
|
123832
123798
|
const selectData = ref(null);
|
|
@@ -124071,7 +124037,6 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
124071
124037
|
const dynamicForm = useDynamicFormStore(piniaInstance);
|
|
124072
124038
|
const props = __props;
|
|
124073
124039
|
const emits = __emit;
|
|
124074
|
-
const route = useRoute();
|
|
124075
124040
|
let pagePermission = useButtonPermissionStore(piniaInstance);
|
|
124076
124041
|
let configStore = useGlobalConfigStore(piniaInstance);
|
|
124077
124042
|
let permissions = ref({});
|
|
@@ -124180,7 +124145,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
124180
124145
|
if (props.btnPermissions && Object.keys(props.btnPermissions).length > 0) {
|
|
124181
124146
|
permissions.value = props.btnPermissions;
|
|
124182
124147
|
} else {
|
|
124183
|
-
permissions.value = await pagePermission.addRoute(
|
|
124148
|
+
permissions.value = await pagePermission.addRoute(window.__hostRouter__?.currentRoute.value);
|
|
124184
124149
|
}
|
|
124185
124150
|
if (!props.fieldList?.stopAutoLoad) {
|
|
124186
124151
|
loadByPage();
|
|
@@ -125071,7 +125036,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
125071
125036
|
|
|
125072
125037
|
/* unplugin-vue-components disabled */
|
|
125073
125038
|
|
|
125074
|
-
const __unplugin_components_1$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["__scopeId", "data-v-
|
|
125039
|
+
const __unplugin_components_1$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["__scopeId", "data-v-cc5402b1"]]);
|
|
125075
125040
|
|
|
125076
125041
|
const StarHorseTableComp = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
125077
125042
|
__proto__: null,
|
|
@@ -132261,7 +132226,6 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
132261
132226
|
});
|
|
132262
132227
|
onMounted(() => {
|
|
132263
132228
|
props.field.preps["disabledDate"] = (date) => {
|
|
132264
|
-
console.log(disabledDate.value, date.getDate());
|
|
132265
132229
|
return disabledDate.value.includes(date.getDate().toString());
|
|
132266
132230
|
};
|
|
132267
132231
|
initCompCallEvent(props, emits, formData);
|
|
@@ -132300,7 +132264,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
132300
132264
|
|
|
132301
132265
|
/* unplugin-vue-components disabled */
|
|
132302
132266
|
|
|
132303
|
-
const datetimeItem = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-
|
|
132267
|
+
const datetimeItem = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-767b952b"]]);
|
|
132304
132268
|
|
|
132305
132269
|
const datetimeItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
132306
132270
|
__proto__: null,
|
|
@@ -132581,7 +132545,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
132581
132545
|
|
|
132582
132546
|
/* unplugin-vue-components disabled */
|
|
132583
132547
|
|
|
132584
|
-
const dialogInputItem = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-
|
|
132548
|
+
const dialogInputItem = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-5bb4663f"]]);
|
|
132585
132549
|
|
|
132586
132550
|
const dialogInputItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
132587
132551
|
__proto__: null,
|
|
@@ -151448,17 +151412,74 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
151448
151412
|
return row[props.field.preps?.primaryKey];
|
|
151449
151413
|
};
|
|
151450
151414
|
const handleSelectionChange = (val) => {
|
|
151451
|
-
|
|
151415
|
+
if (!props.field.preps?.multiple) {
|
|
151416
|
+
if (val.length <= 1) {
|
|
151417
|
+
multipleSelection.value = val;
|
|
151418
|
+
} else {
|
|
151419
|
+
let keys = props.field.preps?.primaryKey;
|
|
151420
|
+
if (Array.isArray(keys)) {
|
|
151421
|
+
let arr = [];
|
|
151422
|
+
for (let index in multipleSelection.value) {
|
|
151423
|
+
let temp = multipleSelection.value[index];
|
|
151424
|
+
let temp1 = {};
|
|
151425
|
+
for (let key of keys) {
|
|
151426
|
+
temp1[key] = temp[key];
|
|
151427
|
+
}
|
|
151428
|
+
arr.push(temp1);
|
|
151429
|
+
}
|
|
151430
|
+
let filters = [];
|
|
151431
|
+
for (let index in val) {
|
|
151432
|
+
let temp = val[index];
|
|
151433
|
+
for (let sindex in arr) {
|
|
151434
|
+
let stemp = arr[sindex];
|
|
151435
|
+
let bflag = 0;
|
|
151436
|
+
for (let skey in stemp) {
|
|
151437
|
+
if (temp.hasOwnProperty(skey) && stemp[skey] == temp[skey]) {
|
|
151438
|
+
bflag++;
|
|
151439
|
+
}
|
|
151440
|
+
}
|
|
151441
|
+
if (bflag != Object.keys(stemp).length) {
|
|
151442
|
+
filters.push(temp);
|
|
151443
|
+
}
|
|
151444
|
+
}
|
|
151445
|
+
}
|
|
151446
|
+
multipleSelection.value = filters;
|
|
151447
|
+
} else {
|
|
151448
|
+
let ids = multipleSelection.value.map(
|
|
151449
|
+
(item) => item[keys]
|
|
151450
|
+
);
|
|
151451
|
+
multipleSelection.value = val.filter(
|
|
151452
|
+
(item) => !ids.includes(item[keys])
|
|
151453
|
+
);
|
|
151454
|
+
}
|
|
151455
|
+
let data = multipleSelection.value[0];
|
|
151456
|
+
starHorseTableCompRef.value.toggleRowSelection(data, true);
|
|
151457
|
+
}
|
|
151458
|
+
} else {
|
|
151459
|
+
multipleSelection.value = val;
|
|
151460
|
+
}
|
|
151452
151461
|
assignVal();
|
|
151453
151462
|
};
|
|
151454
151463
|
const selectRow = (row, _column, _evt) => {
|
|
151464
|
+
if (multipleSelection.value?.length > 0) {
|
|
151465
|
+
for (let valueElement of multipleSelection.value) {
|
|
151466
|
+
starHorseTableCompRef.value.toggleRowSelection(valueElement);
|
|
151467
|
+
}
|
|
151468
|
+
}
|
|
151455
151469
|
const selected = multipleSelection.value.some(
|
|
151456
151470
|
(item) => item[props.field.preps?.primaryKey] === row[props.field.preps?.primaryKey]
|
|
151457
151471
|
);
|
|
151458
151472
|
if (!selected) {
|
|
151459
|
-
|
|
151473
|
+
if (!props.field.preps?.multiple) {
|
|
151474
|
+
multipleSelection.value = [row];
|
|
151475
|
+
} else {
|
|
151476
|
+
multipleSelection.value.push(row);
|
|
151477
|
+
}
|
|
151460
151478
|
starHorseTableCompRef.value.toggleRowSelection(row);
|
|
151461
151479
|
} else {
|
|
151480
|
+
multipleSelection.value = multipleSelection.value.filter(
|
|
151481
|
+
(item) => item[props.field.preps?.primaryKey] !== row[props.field.preps?.primaryKey]
|
|
151482
|
+
);
|
|
151462
151483
|
starHorseTableCompRef.value.toggleRowSelection(row, false);
|
|
151463
151484
|
}
|
|
151464
151485
|
assignVal();
|
|
@@ -151552,7 +151573,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
151552
151573
|
}, toHandlers(unref(getDynamicEvents)(props, itemAction)), {
|
|
151553
151574
|
modelValue: formData.value[__props.field.fieldName],
|
|
151554
151575
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => formData.value[__props.field.fieldName] = $event)
|
|
151555
|
-
}), {
|
|
151576
|
+
}), createSlots({
|
|
151556
151577
|
empty: withCtx(() => [
|
|
151557
151578
|
createVNode(_component_el_card, {
|
|
151558
151579
|
class: "inner_content",
|
|
@@ -151574,6 +151595,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
151574
151595
|
stripe: true,
|
|
151575
151596
|
"row-key": getRowIdentity,
|
|
151576
151597
|
fit: true,
|
|
151598
|
+
size: "small",
|
|
151577
151599
|
"max-height": "250px",
|
|
151578
151600
|
"highlight-current-row": true,
|
|
151579
151601
|
"header-cell-style": {
|
|
@@ -151622,7 +151644,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
151622
151644
|
]),
|
|
151623
151645
|
footer: withCtx(() => [
|
|
151624
151646
|
createVNode(_component_el_pagination, {
|
|
151625
|
-
size: "
|
|
151647
|
+
size: "small",
|
|
151626
151648
|
total: unref(pageInfo).totalData,
|
|
151627
151649
|
onCurrentChange: pageChangeClick,
|
|
151628
151650
|
onSizeChange: pageSizeClick,
|
|
@@ -151635,8 +151657,27 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
151635
151657
|
"onUpdate:pageCount": _cache[3] || (_cache[3] = ($event) => unref(pageInfo).totalPage = $event)
|
|
151636
151658
|
}, null, 8, ["total", "currentPage", "page-size", "pageCount"])
|
|
151637
151659
|
]),
|
|
151638
|
-
_:
|
|
151639
|
-
},
|
|
151660
|
+
_: 2
|
|
151661
|
+
}, [
|
|
151662
|
+
!__props.field.preps?.multiple && __props.field.preps?.displayField ? {
|
|
151663
|
+
name: "label",
|
|
151664
|
+
fn: withCtx(() => [
|
|
151665
|
+
createTextVNode(toDisplayString(unref(multipleSelection)[0]?.[`${__props.field.preps?.displayField}`] ?? formData.value[__props.field.fieldName]), 1)
|
|
151666
|
+
]),
|
|
151667
|
+
key: "0"
|
|
151668
|
+
} : void 0,
|
|
151669
|
+
__props.field.preps?.multiple && __props.field.preps?.displayField ? {
|
|
151670
|
+
name: "tag",
|
|
151671
|
+
fn: withCtx(() => [
|
|
151672
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(multipleSelection), (item) => {
|
|
151673
|
+
return openBlock(), createElementBlock("span", {
|
|
151674
|
+
key: item[__props.field.preps?.primaryKey]
|
|
151675
|
+
}, toDisplayString(item[__props.field.preps?.displayField]), 1);
|
|
151676
|
+
}), 128))
|
|
151677
|
+
]),
|
|
151678
|
+
key: "1"
|
|
151679
|
+
} : void 0
|
|
151680
|
+
]), 1040, ["fid", "disabled", "modelValue"])
|
|
151640
151681
|
]),
|
|
151641
151682
|
_: 1
|
|
151642
151683
|
}, 8, ["showFormItem", "isDesign", "disabled", "bareFlag", "formItem", "parentField"]);
|
|
@@ -151646,7 +151687,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
151646
151687
|
|
|
151647
151688
|
/* unplugin-vue-components disabled */
|
|
151648
151689
|
|
|
151649
|
-
const pageSelectItem = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-
|
|
151690
|
+
const pageSelectItem = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-28c3884d"]]);
|
|
151650
151691
|
|
|
151651
151692
|
const pageSelectItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
151652
151693
|
__proto__: null,
|