resolver-egretimp-plus 0.0.70 → 0.0.72

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.70",
3
+ "version": "0.0.72",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -25,9 +25,10 @@ export async function dispatchClickEvent(service, { dynamicMapComp, requestTrace
25
25
  }
26
26
  }
27
27
  const url = service.serviceCode
28
+ const httpMethod = service.httpMethod
28
29
  const ret = await (axiosInstance && axiosInstance({
29
30
  url,
30
- method: "post",
31
+ method: httpMethod || "post",
31
32
  data: {
32
33
  requestTraceId,
33
34
  pmHandleBusinessIdentity: {
@@ -1,6 +1,6 @@
1
1
  import { resultToast } from "../../utils/respone"
2
2
 
3
- export async function executeLoadServices(services = [], { requestTraceId, axiosInstance, messageInstance, reqData, respCb }) {
3
+ export async function executeLoadServices(services = [], { requestTraceId, businessIdentityReqData = {}, axiosInstance, messageInstance, reqData, respCb }) {
4
4
  if (reqData?.notLoad) {
5
5
  return
6
6
  }
@@ -23,6 +23,7 @@ export async function executeLoadServices(services = [], { requestTraceId, axios
23
23
  pageMetaId: service.pageMetaId,
24
24
  tenantId: service.tenantId,
25
25
  mainServiceCode: mixinServiceConfig?.mainServiceCode, // 提交按钮绑定上绑定的融合服务编码
26
+ ...businessIdentityReqData,
26
27
  },
27
28
  ...(reqData || {})
28
29
  }
@@ -109,7 +109,7 @@ export default {
109
109
  const ret = sortList.reduce((ret, item) => {
110
110
  ret = ret.sort((a, b) => (a[item.prop] > b[item.prop] ? (item.order === 'descending' ? 1 : -1) : a[item.prop] === b[item.prop] ? 0 : (item.order === 'descending' ? -1 : 1)))
111
111
  return ret
112
- }, [...(props.refValue.value || [])])
112
+ }, [...(normalTableData.value || [])])
113
113
  return ret
114
114
  })
115
115
 
@@ -44,7 +44,7 @@ export function usePageConfig() {
44
44
 
45
45
  export function useBuildInData({ messageInstance, loadingInstance, requestTraceId }) {
46
46
  const pageConfig = ref(null)
47
- function getPageConfig(reqData, cb) {
47
+ function getPageConfig(reqData, { configCb, selectsCb}) {
48
48
  if (loadingInstance.start && typeof loadingInstance.start === 'function') {
49
49
  loadingInstance.start()
50
50
  } else if (loadingInstance.show && typeof loadingInstance.show === 'function') {
@@ -54,8 +54,8 @@ export function useBuildInData({ messageInstance, loadingInstance, requestTraceI
54
54
  if (resultToast(ret.data, messageInstance, { noSuccessIip: true })) {
55
55
  // pageConfig.value = normalPageConfigs(mock)
56
56
  pageConfig.value = normalPageConfigs(ret.data.result)
57
- cb(pageConfig.value)
58
- getSelects(ret.data.result?.pmBusinessIdentityVO?.tenantId)
57
+ configCb && configCb(pageConfig.value)
58
+ getSelects(ret.data.result?.pmBusinessIdentityVO?.tenantId, selectsCb)
59
59
  return
60
60
  } else {
61
61
  if (loadingInstance.finish && typeof loadingInstance.finish === 'function') {
@@ -73,12 +73,13 @@ export function useBuildInData({ messageInstance, loadingInstance, requestTraceI
73
73
  })
74
74
  }
75
75
  const selects = ref({})
76
- function getSelects(tenantId) {
76
+ function getSelects(tenantId, selectsCb) {
77
77
  buildInRequest(GET_SYS_PARAM_CACHE, {
78
78
  tenantId
79
79
  }).then(ret => {
80
80
  if (resultToast(ret.data, messageInstance, { noSuccessIip: true })) {
81
81
  selects.value = JSON.parse(ret.data.result || '{}')
82
+ selectsCb && selectsCb(selects.value)
82
83
  return
83
84
  } else {
84
85
  if (loadingInstance.finish && typeof loadingInstance.finish === 'function') {
package/src/index.jsx CHANGED
@@ -98,6 +98,11 @@ export default {
98
98
  type: Object,
99
99
  default: () => ({})
100
100
  },
101
+ // 加载服务中businessIdentity的额外参数
102
+ businessIdentityReqData: {
103
+ type: Object,
104
+ default: () => ({})
105
+ },
101
106
  // 如果当前页面是弹框,这个是父页面传入的根数据
102
107
  parentRootValue: {
103
108
  type: Object,
@@ -187,6 +192,7 @@ export default {
187
192
  {
188
193
  requestTraceId: props.requestTraceId,
189
194
  messageInstance: toRef(props, 'messageInstance'),
195
+ businessIdentityReqData: props.businessIdentityReqData,
190
196
  axiosInstance,
191
197
  reqData: props.loadEvnetsReq,
192
198
  respCb: (result) => {
@@ -36,9 +36,15 @@ getPageConfig({
36
36
  busiIdentityId: props.busiIdentityId,
37
37
  queryPageMeta: '1',
38
38
  queryPageService: '1',
39
- }, (pageConfig) => {
40
- // 配置数据加载完成事件 'loadedConfigCompeted'
41
- attrs?.onLoadedConfigCompeted?.(pageConfig)
39
+ }, {
40
+ configCb: (pageConfig) => {
41
+ // 配置数据加载完成事件 'loadedConfigCompeted'
42
+ attrs?.onLoadedConfigCompeted?.(pageConfig)
43
+ },
44
+ selectsCb: (selects) => {
45
+ // 配置数据加载完成事件 'loadedConfigCompeted'
46
+ attrs?.onLoadedSelectsCompeted?.(selects)
47
+ },
42
48
  })
43
49
  const allSelects = computed(() => {
44
50
  return {
@@ -1,11 +1,16 @@
1
1
  @mixin nestMargin {
2
2
  & > div {
3
+ & > .CustomComponentCollapse {
4
+ & > div {
5
+ margin-right: 16px;
6
+ }
7
+ }
8
+
3
9
  & > .CustomComponentTable,
4
- & > .CustomComponentCollapse,
5
10
  & > .CustomComponentRow {
6
11
  & > div {
7
12
  margin-right: 16px;
8
- // margin-bottom: 16px;
13
+ margin-bottom: 16px;
9
14
  }
10
15
  }
11
16
  }
@@ -153,6 +153,7 @@ export const commonPropsType = {
153
153
  columnValue: item.value,
154
154
  columnDesc_zh: item.label,
155
155
  columnDesc: item.label_en || item.label,
156
+ columnStatus: item.columnStatus
156
157
  }
157
158
  })
158
159
  } catch (error) {
@@ -160,6 +161,12 @@ export const commonPropsType = {
160
161
  }
161
162
  const options = (selects?.value && selects?.value?.[selectKey]) || (selects?.value && selects?.value?.[`${config.metaCode}ListValue`]) || (selects?.value && selects?.value?.[referenceOptions]) || optionItemsList || []
162
163
  return options
164
+ // const disabled = calcDisable(config, props.mode)
165
+ // if (disabled) {
166
+ // return options
167
+ // } else {
168
+ // return options.filter(item => !(item.columnStatus == '0' || item.columnStatus == '2'))
169
+ // }
163
170
  }
164
171
  },
165
172
  placeholder: {