cnhis-design-vue 3.1.16-beta.11 → 3.1.16-beta.12

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.
@@ -161,7 +161,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
161
161
  init: () => Promise<boolean>;
162
162
  handleClickBtn: () => Promise<false | undefined>;
163
163
  reformatPrintParams: () => void;
164
- verifiySuccess: (token: any) => void;
164
+ verifiySuccess: () => void;
165
165
  NDropdown: import("vue").DefineComponent<{
166
166
  readonly theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Dropdown", {
167
167
  optionHeightSmall: string;
@@ -165,7 +165,7 @@ declare const _default: import("vue").DefineComponent<{
165
165
  init: () => Promise<boolean>;
166
166
  handleClickBtn: () => Promise<false | undefined>;
167
167
  reformatPrintParams: () => void;
168
- verifiySuccess: (token: any) => void;
168
+ verifiySuccess: () => void;
169
169
  NDropdown: import("vue").DefineComponent<{
170
170
  readonly theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Dropdown", {
171
171
  optionHeightSmall: string;
@@ -240,16 +240,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
240
240
  state.visible = false;
241
241
  });
242
242
  };
243
- const handleClickEdit = () => {
244
- props.prevFn().catch(() => {
245
- prevFnError();
246
- return Promise.reject();
247
- }).then(() => {
248
- state.identityVerification.visible = true;
249
- }).finally(() => {
250
- state.visible = false;
251
- });
252
- };
253
243
  const handleSelect = (key) => {
254
244
  switch (key) {
255
245
  case "printText":
@@ -259,7 +249,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
259
249
  handleClickPreview();
260
250
  break;
261
251
  case "formatEditText":
262
- handleClickEdit();
252
+ verifiySuccess();
263
253
  break;
264
254
  case "downloadPdf":
265
255
  handleClickPdf();
@@ -416,13 +406,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
416
406
  }
417
407
  state.printParams = formatParams(state.templateParams, props.params);
418
408
  };
419
- const verifiySuccess = (token) => {
420
- state.identityVerification.visible = false;
409
+ const verifiySuccess = () => {
421
410
  const queryParams = {
422
411
  formatId: state.currentFormatId,
423
412
  templateId: getTemplateIdByFormatId(state.currentFormatId),
424
- params: getPrintParams(),
425
- token
413
+ params: getPrintParams()
426
414
  };
427
415
  printInstance.editPrintFormat(queryParams, (res) => {
428
416
  callLocalServicesSuccessCb(res, "edit");
@@ -260,7 +260,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
260
260
  const list = (item == null ? void 0 : item.list) || [];
261
261
  if (!list.length)
262
262
  return 0;
263
- return yCellHeight.value / ((parseInt(list[1]) - parseInt(list[0])) / item.spaceGridNumber);
263
+ return yCellHeight.value / ((list[1] - list[0]) / item.spaceGridNumber);
264
264
  }
265
265
  const { cumputedX, cumputedY, getXValue, getYValue } = useCumputedPoint(propItems);
266
266
  useTop(canvas, propItems);
@@ -54,6 +54,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
54
54
  effects() {
55
55
  onFieldValueChange("*", async (field) => {
56
56
  const fieldKey = field.props.name.toString();
57
+ businessCollector.trigger(fieldKey);
58
+ formItemDepsCollector.trigger(fieldKey);
57
59
  emit("formChange", {
58
60
  fieldInstance: field,
59
61
  fieldKey,
@@ -61,8 +63,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
61
63
  value: field.value,
62
64
  context: await changeContextCollector.getContext(fieldKey)
63
65
  });
64
- businessCollector.trigger(fieldKey);
65
- formItemDepsCollector.trigger(fieldKey);
66
66
  });
67
67
  }
68
68
  });
@@ -8,7 +8,8 @@ function useTypeNormalize() {
8
8
  validate: { obj_type: FIELD_BUSINESS_TYPE.AGE_UNIT },
9
9
  val_key: item.val_key_unit,
10
10
  html_type: "SELECT",
11
- option: item.option
11
+ option: item.option,
12
+ urlConfig: item.urlConfig
12
13
  }
13
14
  ];
14
15
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
3
  "private": false,
4
- "version": "3.1.16-beta.11",
4
+ "version": "3.1.16-beta.12",
5
5
  "license": "ISC",
6
6
  "module": "es/packages/index.js",
7
7
  "main": "es/packages/index.js",