resolver-egretimp-plus 0.0.252 → 0.0.254

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.252",
3
+ "version": "0.0.254",
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
  })
@@ -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('.')
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <ElText v-bind="{...attrs, ...elRowProps,}" @click="clickAction" >
3
- {{props.refValue.value}}
3
+ {{ labelDesc }}
4
4
  </ElText>
5
5
  </template>
6
6
  <script setup>
@@ -8,6 +8,8 @@ import { ElText } from 'element-plus'
8
8
  import { computed, defineProps, inject, getCurrentInstance, useAttrs } from 'vue'
9
9
  import { commonPropsType } from '../../utils/index.js'
10
10
 
11
+ const lang = inject('lang')
12
+ const modelValue = defineModel()
11
13
  const appContext = getCurrentInstance()?.appContext
12
14
  const props = defineProps({
13
15
  ...commonPropsType,
@@ -16,6 +18,14 @@ const props = defineProps({
16
18
  })
17
19
  const attrs = useAttrs()
18
20
 
21
+ const normalVal = computed(() => {
22
+ const findItem = props?.options?.find(item => item.columnValue == modelValue.value)
23
+ if (findItem) {
24
+ return lang?.value?.indexOf('zh') > -1 ? findItem.columnDesc_zh : findItem.columnDesc
25
+ }
26
+ return modelValue.value
27
+ })
28
+
19
29
  const elRowProps = computed(() => {
20
30
  const result = Object.keys(ElText.props).reduce((ret, key) => {
21
31
  ret[key] = props[key]
@@ -25,6 +35,9 @@ const elRowProps = computed(() => {
25
35
  })
26
36
  const buttonActions = inject('buttonActions', {})
27
37
 
38
+ const labelDesc = computed(() => {
39
+ return normalVal.value
40
+ })
28
41
  const dynamicMapComp = inject('dynamicMapComp')
29
42
  const hireRelatMapRules = inject('hireRelatMapRules')
30
43
  const components = inject('components')
@@ -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
  }