resolver-egretimp-plus 0.0.251 → 0.0.253

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resolver-egretimp-plus",
3
- "version": "0.0.251",
3
+ "version": "0.0.253",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -83,6 +83,7 @@ export async function executeLoadServices(services = [], {
83
83
  respCb && respCb(ret?.data?.result)
84
84
  return
85
85
  }
86
+ respCb && respCb({})
86
87
  messageInstance?.value?.error(ret?.data?.resultMessage || '')
87
88
  await Promise.reject()
88
89
  }
@@ -47,7 +47,7 @@ const tabProps = computed(() => {
47
47
  activekey: activeNames.value,
48
48
  sticky: props.config?.sticky == '1',
49
49
  offsettop: (props.config?.offsetTop || '0') + 'vw',
50
- type: props.config.displayType,
50
+ type: props.config.displayType || props.config.tabType,
51
51
  title: lang.value?.indexOf('zh') > -1 ? props.config.metaNameZh : props.config.metaNameEn
52
52
  }
53
53
  })
@@ -475,7 +475,9 @@ export default {
475
475
  },
476
476
  ...tableExpose
477
477
  })
478
-
478
+ const dataList = computed(() => {
479
+ return totalRow.value?.length ? [...tableData.value, ...totalRow.value] : tableData.value
480
+ })
479
481
  // console.log('dynamicMapComp===:', inject('dynamicMapComp'))
480
482
  return () => {
481
483
  return (
@@ -484,7 +486,7 @@ export default {
484
486
  ref={(e) => {tableRef.value = e}}
485
487
  highlight-current-row={selectable.value || tableProps.value?.highlightCurrentRow ? true : false}
486
488
  onCurrentChange={selectable.value || tableProps.value?.highlightCurrentRow ? currentChange : () => {}}
487
- data={[...tableData.value, ...totalRow.value]}
489
+ data={dataList.value}
488
490
  onSelectionChange={handleSelectionChange}
489
491
  onSortChange={onSortChange}
490
492
  >
@@ -21,6 +21,10 @@ export default {
21
21
  type: [String, Number],
22
22
  default: ''
23
23
  },
24
+ moneySeg: {
25
+ type: [String],
26
+ default: ','
27
+ },
24
28
  min: {
25
29
  type: Number,
26
30
  default: -Infinity
@@ -270,7 +274,7 @@ export default {
270
274
 
271
275
  // 处理千分位
272
276
  const parts = val.toFixed(props.decimal).split('.')
273
- parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ',')
277
+ parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, props.moneySeg)
274
278
 
275
279
  // 添加货币符号
276
280
  const formatted = parts.join('.')
@@ -118,6 +118,7 @@
118
118
  }
119
119
  .hidden-column {
120
120
  border: none;
121
+ overflow: hidden;
121
122
  // display: none;
122
123
  }
123
124
  .hidden-column + .el-table__cell {
@@ -127,14 +127,12 @@ function getRelateConfigs(codesStr, config, type) {
127
127
  const fincCg = cg?.pmPageMetaList?.find(childCg => childCg.metaCode === code)
128
128
  if (!fincCg) return
129
129
  list.push(fincCg)
130
- } else {
131
- cg.multiPmPageMetaList.forEach(childCgList => {
132
- const fincCg = childCgList.find(childCg => childCg.metaCode === code)
133
- if (!fincCg) return
134
- list.push(fincCg)
135
- })
136
130
  }
137
-
131
+ cg.multiPmPageMetaList.forEach(childCgList => {
132
+ const fincCg = childCgList.find(childCg => childCg.metaCode === code)
133
+ if (!fincCg) return
134
+ list.push(fincCg)
135
+ })
138
136
  }
139
137
  } else {
140
138
  const fincCg = cg?.pmPageMetaList?.find(childCg => childCg.metaCode === code)
@@ -3,6 +3,12 @@
3
3
  --el-input-text-color: #1f2329;
4
4
  }
5
5
 
6
+ .ElInput {
7
+ .el-input {
8
+ display: flex;
9
+ }
10
+ }
11
+
6
12
  .el-input__wrapper {
7
13
  .el-input__clear {
8
14
  svg path {
@@ -154,7 +154,7 @@ export const formatAmount = (val, data) => {
154
154
  return val
155
155
  }
156
156
  let params = isPlainObject(data) ? data : { decimals: 2, isThousandth: true }
157
- let str = String(val).replace(/[^\d\.\-]/g, "")
157
+ let str = String(val).replace(/[^\d\.\-\e\E]/g, "")
158
158
  if (params?.decimals || params?.decimals == 0) {
159
159
  str = parseFloat(str).toFixed(params.decimals).toString()
160
160
  }