mooho-base-admin-plus 2.2.5 → 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
@@ -7,3 +7,5 @@
7
7
  2.2.2 - 路由权限判断 bug 修复,处理带 query 参数的情况
8
8
  2.2.4 - 非多语言情况下,仍旧要解析后端传过来的内容
9
9
  2.2.5 - 流程模板页面增加 all 权限的判断
10
+ 2.2.6 - 流程模板页面增加 create 权限的判断
11
+ 2.2.7 - 静态选项支持数字
@@ -34171,6 +34171,7 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
34171
34171
  key: 0,
34172
34172
  ref: "table",
34173
34173
  filter: $data.filter,
34174
+ "create-enable": _ctx.allow("create"),
34174
34175
  onCreate: $options.create
34175
34176
  }, {
34176
34177
  command: withCtx(({ row }) => [
@@ -34192,7 +34193,7 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
34192
34193
  }, null, 8, ["title", "onClick"])) : createCommentVNode("v-if", true)
34193
34194
  ]),
34194
34195
  _: 1
34195
- }, 8, ["filter", "onCreate"])) : createCommentVNode("v-if", true)
34196
+ }, 8, ["filter", "create-enable", "onCreate"])) : createCommentVNode("v-if", true)
34196
34197
  ]),
34197
34198
  _: 1
34198
34199
  }),
@@ -37070,15 +37071,39 @@ const _sfc_main$w = {
37070
37071
  if (item.split(":").length > 1) {
37071
37072
  let key = item.split(":")[0];
37072
37073
  let value = item.split(":")[1];
37073
- column.dataSource.push({
37074
- id: key,
37075
- name: value
37076
- });
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
+ }
37077
37090
  } else {
37078
- column.dataSource.push({
37079
- id: item,
37080
- name: item
37081
- });
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
+ }
37082
37107
  }
37083
37108
  }
37084
37109
  });
@@ -41411,15 +41436,39 @@ const _sfc_main$r = {
41411
41436
  if (item.split(":").length > 1) {
41412
41437
  let key = item.split(":")[0];
41413
41438
  let value = item.split(":")[1];
41414
- column.dataSource.push({
41415
- id: key,
41416
- name: value
41417
- });
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
+ }
41418
41455
  } else {
41419
- column.dataSource.push({
41420
- id: item,
41421
- name: item
41422
- });
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
+ }
41423
41472
  }
41424
41473
  }
41425
41474
  });
@@ -50992,15 +51041,39 @@ const _sfc_main$o = {
50992
51041
  if (item.split(":").length > 1) {
50993
51042
  let key = item.split(":")[0];
50994
51043
  let value = item.split(":")[1];
50995
- column.dataSource.push({
50996
- id: key,
50997
- name: value
50998
- });
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
+ }
50999
51060
  } else {
51000
- column.dataSource.push({
51001
- id: item,
51002
- name: item
51003
- });
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
+ }
51004
51077
  }
51005
51078
  }
51006
51079
  });