bm-admin-ui 1.2.27-alpha → 1.2.28-alpha

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.
@@ -19140,6 +19140,9 @@ const _sfc_main$7 = defineComponent({
19140
19140
  }
19141
19141
  async function handleBatchDelete() {
19142
19142
  const selected = xGrid.value.getCheckboxRecords();
19143
+ if (!selected?.length) {
19144
+ return;
19145
+ }
19143
19146
  if (isProductCenter.value) {
19144
19147
  if (await utils.confirmModal(`\u786E\u5B9A\u8981\u5220\u9664\u6240\u9009\u7684${selected?.length}\u6761\u6570\u636E\u4E48\uFF1F`)) {
19145
19148
  selected.forEach((item) => {
@@ -20847,11 +20850,20 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
20847
20850
  }
20848
20851
  return false;
20849
20852
  });
20853
+ function isProductCenterSuit(rule) {
20854
+ return [
20855
+ "F2CTemplate",
20856
+ "B2CTemplate",
20857
+ "DistributeTemp",
20858
+ "FreshTemplate",
20859
+ "activityApply"
20860
+ ].includes(rule.name);
20861
+ }
20850
20862
  function isAssociatedFn(rule) {
20851
- if (rule?.config?.dataFiltering === field.value) {
20863
+ if (rule?.config?.dataFiltering === field.value && !isProductCenterSuit(rule)) {
20852
20864
  return true;
20853
20865
  }
20854
- if (rule?.config?.childRules?.length) {
20866
+ if (rule?.config?.childRules?.length && !isProductCenterSuit(rule)) {
20855
20867
  for (const cRule of rule.config.childRules) {
20856
20868
  if (isAssociatedFn(cRule))
20857
20869
  return true;
@@ -19154,6 +19154,9 @@ const _sfc_main$7 = vue.defineComponent({
19154
19154
  }
19155
19155
  async function handleBatchDelete() {
19156
19156
  const selected = xGrid.value.getCheckboxRecords();
19157
+ if (!selected?.length) {
19158
+ return;
19159
+ }
19157
19160
  if (isProductCenter.value) {
19158
19161
  if (await utils__default["default"].confirmModal(`\u786E\u5B9A\u8981\u5220\u9664\u6240\u9009\u7684${selected?.length}\u6761\u6570\u636E\u4E48\uFF1F`)) {
19159
19162
  selected.forEach((item) => {
@@ -20861,11 +20864,20 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
20861
20864
  }
20862
20865
  return false;
20863
20866
  });
20867
+ function isProductCenterSuit(rule) {
20868
+ return [
20869
+ "F2CTemplate",
20870
+ "B2CTemplate",
20871
+ "DistributeTemp",
20872
+ "FreshTemplate",
20873
+ "activityApply"
20874
+ ].includes(rule.name);
20875
+ }
20864
20876
  function isAssociatedFn(rule) {
20865
- if (rule?.config?.dataFiltering === field.value) {
20877
+ if (rule?.config?.dataFiltering === field.value && !isProductCenterSuit(rule)) {
20866
20878
  return true;
20867
20879
  }
20868
- if (rule?.config?.childRules?.length) {
20880
+ if (rule?.config?.childRules?.length && !isProductCenterSuit(rule)) {
20869
20881
  for (const cRule of rule.config.childRules) {
20870
20882
  if (isAssociatedFn(cRule))
20871
20883
  return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bm-admin-ui",
3
- "version": "1.2.27-alpha",
3
+ "version": "1.2.28-alpha",
4
4
  "private": false,
5
5
  "description": "An Admin Component Library for Bm",
6
6
  "license": "UNLICENSED",