@newview/file-ui 1.1.27 → 1.1.28

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/README.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 1.1.28
2
+ 1. ComFormUp 增加CA签字签章配置项
3
+
1
4
  ## 1.1.27
2
5
  1. UploadFile 新增控制上传附件的数量
3
6
 
package/dist/file-ui.js CHANGED
@@ -10,6 +10,7 @@ import { QueryWrapper, storageInfo } from "@newview/infrastructure";
10
10
  import { OSSFileApi, FileApi, UploadApi, FileInfoApi } from "@newview/fileservice-api";
11
11
  import { DictionaryDetailApi, DataStructureApi, StructureInstanceApi } from "@newview/basics-api";
12
12
  import { utilities } from "@newview/tools";
13
+ import { CASign } from "@newview/permission-ui";
13
14
  const propDefine$7 = {
14
15
  modelValue: {
15
16
  // 是否显示
@@ -19677,7 +19678,7 @@ const propDefine = {
19677
19678
  };
19678
19679
  const _sfc_main = defineComponent({
19679
19680
  name: "NvComFormUp",
19680
- components: { UploadFile, TextEditor: TextEditor2, NvDicSelect, NvStructureTypeSelect, NvStructureSelect, UploadFileList },
19681
+ components: { UploadFile, TextEditor: TextEditor2, NvDicSelect, NvStructureTypeSelect, NvStructureSelect, UploadFileList, CASign },
19681
19682
  emits: ["textChange", "TokenChange"],
19682
19683
  props: propDefine,
19683
19684
  setup(props, ctx) {
@@ -19787,6 +19788,14 @@ class ComFormInstance extends BaseInstance {
19787
19788
  };
19788
19789
  }
19789
19790
  });
19791
+ /**
19792
+ * CA签字签章成功回调
19793
+ * @param item
19794
+ * @param data
19795
+ */
19796
+ __publicField(this, "signOnSuccess", (item, data) => {
19797
+ this.props.formModel[item.model] = data;
19798
+ });
19790
19799
  this.props = props;
19791
19800
  this.ctx = ctx;
19792
19801
  }
@@ -19798,6 +19807,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
19798
19807
  const _component_NvStructureTypeSelect = resolveComponent("NvStructureTypeSelect");
19799
19808
  const _component_NvStructureSelect = resolveComponent("NvStructureSelect");
19800
19809
  const _component_UploadFileList = resolveComponent("UploadFileList");
19810
+ const _component_CASign = resolveComponent("CASign");
19801
19811
  const _component_NvComForm = resolveComponent("NvComForm");
19802
19812
  return openBlock(), createBlock(_component_NvComForm, {
19803
19813
  onlyView: _ctx.onlyView,
@@ -19852,7 +19862,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
19852
19862
  token: _ctx.formModel[item.model],
19853
19863
  paginationSet: _ctx.getPaginationSet(item),
19854
19864
  onReturnFileList: ($event) => _ctx.tokenList($event, item)
19855
- }, null, 8, ["style", "readonly", "token", "paginationSet", "onReturnFileList"])) : createCommentVNode("", true)
19865
+ }, null, 8, ["style", "readonly", "token", "paginationSet", "onReturnFileList"])) : createCommentVNode("", true),
19866
+ item.type === "CASign" ? (openBlock(), createBlock(_component_CASign, {
19867
+ key: 6,
19868
+ signContent: _ctx.getPropValue(item.signProp, "signContent"),
19869
+ signType: _ctx.getPropValue(item.signProp, "signType"),
19870
+ isFakeVerifySign: _ctx.getPropValue(item.signProp, "isFakeVerifySign"),
19871
+ signResult: _ctx.formModel[item.model],
19872
+ onSignSuccess: ($event) => _ctx.signOnSuccess(item, $event)
19873
+ }, null, 8, ["signContent", "signType", "isFakeVerifySign", "signResult", "onSignSuccess"])) : createCommentVNode("", true)
19856
19874
  ]),
19857
19875
  _: 1
19858
19876
  }, 8, ["onlyView", "formItems", "formModel"]);