mooho-base-admin-plus 2.2.6 → 2.2.7

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/history.md CHANGED
@@ -8,3 +8,4 @@
8
8
  2.2.4 - 非多语言情况下,仍旧要解析后端传过来的内容
9
9
  2.2.5 - 流程模板页面增加 all 权限的判断
10
10
  2.2.6 - 流程模板页面增加 create 权限的判断
11
+ 2.2.7 - 静态选项支持数字
@@ -37071,15 +37071,39 @@ const _sfc_main$w = {
37071
37071
  if (item.split(":").length > 1) {
37072
37072
  let key = item.split(":")[0];
37073
37073
  let value = item.split(":")[1];
37074
- column.dataSource.push({
37075
- id: key,
37076
- name: value
37077
- });
37074
+ if (column.dataType == "Integer" || column.dataType == "BigInteger") {
37075
+ column.dataSource.push({
37076
+ id: parseInt(key),
37077
+ name: value
37078
+ });
37079
+ } else if (column.dataType == "Decimal" || column.dataType == "Float" || column.dataType == "Double") {
37080
+ column.dataSource.push({
37081
+ id: parseFloat(key),
37082
+ name: value
37083
+ });
37084
+ } else {
37085
+ column.dataSource.push({
37086
+ id: key,
37087
+ name: value
37088
+ });
37089
+ }
37078
37090
  } else {
37079
- column.dataSource.push({
37080
- id: item,
37081
- name: item
37082
- });
37091
+ if (column.dataType == "Integer" || column.dataType == "BigInteger") {
37092
+ column.dataSource.push({
37093
+ id: parseInt(item),
37094
+ name: item
37095
+ });
37096
+ } else if (column.dataType == "Decimal" || column.dataType == "Float" || column.dataType == "Double") {
37097
+ column.dataSource.push({
37098
+ id: parseFloat(item),
37099
+ name: item
37100
+ });
37101
+ } else {
37102
+ column.dataSource.push({
37103
+ id: item,
37104
+ name: item
37105
+ });
37106
+ }
37083
37107
  }
37084
37108
  }
37085
37109
  });
@@ -41412,15 +41436,39 @@ const _sfc_main$r = {
41412
41436
  if (item.split(":").length > 1) {
41413
41437
  let key = item.split(":")[0];
41414
41438
  let value = item.split(":")[1];
41415
- column.dataSource.push({
41416
- id: key,
41417
- name: value
41418
- });
41439
+ if (column.dataType == "Integer" || column.dataType == "BigInteger") {
41440
+ column.dataSource.push({
41441
+ id: parseInt(key),
41442
+ name: value
41443
+ });
41444
+ } else if (column.dataType == "Decimal" || column.dataType == "Float" || column.dataType == "Double") {
41445
+ column.dataSource.push({
41446
+ id: parseFloat(key),
41447
+ name: value
41448
+ });
41449
+ } else {
41450
+ column.dataSource.push({
41451
+ id: key,
41452
+ name: value
41453
+ });
41454
+ }
41419
41455
  } else {
41420
- column.dataSource.push({
41421
- id: item,
41422
- name: item
41423
- });
41456
+ if (column.dataType == "Integer" || column.dataType == "BigInteger") {
41457
+ column.dataSource.push({
41458
+ id: parseInt(item),
41459
+ name: item
41460
+ });
41461
+ } else if (column.dataType == "Decimal" || column.dataType == "Float" || column.dataType == "Double") {
41462
+ column.dataSource.push({
41463
+ id: parseFloat(item),
41464
+ name: item
41465
+ });
41466
+ } else {
41467
+ column.dataSource.push({
41468
+ id: item,
41469
+ name: item
41470
+ });
41471
+ }
41424
41472
  }
41425
41473
  }
41426
41474
  });
@@ -50993,15 +51041,39 @@ const _sfc_main$o = {
50993
51041
  if (item.split(":").length > 1) {
50994
51042
  let key = item.split(":")[0];
50995
51043
  let value = item.split(":")[1];
50996
- column.dataSource.push({
50997
- id: key,
50998
- name: value
50999
- });
51044
+ if (column.dataType == "Integer" || column.dataType == "BigInteger") {
51045
+ column.dataSource.push({
51046
+ id: parseInt(key),
51047
+ name: value
51048
+ });
51049
+ } else if (column.dataType == "Decimal" || column.dataType == "Float" || column.dataType == "Double") {
51050
+ column.dataSource.push({
51051
+ id: parseFloat(key),
51052
+ name: value
51053
+ });
51054
+ } else {
51055
+ column.dataSource.push({
51056
+ id: key,
51057
+ name: value
51058
+ });
51059
+ }
51000
51060
  } else {
51001
- column.dataSource.push({
51002
- id: item,
51003
- name: item
51004
- });
51061
+ if (column.dataType == "Integer" || column.dataType == "BigInteger") {
51062
+ column.dataSource.push({
51063
+ id: parseInt(item),
51064
+ name: item
51065
+ });
51066
+ } else if (column.dataType == "Decimal" || column.dataType == "Float" || column.dataType == "Double") {
51067
+ column.dataSource.push({
51068
+ id: parseFloat(item),
51069
+ name: item
51070
+ });
51071
+ } else {
51072
+ column.dataSource.push({
51073
+ id: item,
51074
+ name: item
51075
+ });
51076
+ }
51005
51077
  }
51006
51078
  }
51007
51079
  });