CZT
2023-11-16 c8758e2ecad0d3acd8e100619030b132844c6331
src/main/java/com/fzzy/api/view/Api1403.view.xml
@@ -116,6 +116,9 @@
        <Property></Property>
        <Property name="label">文件存储ID</Property>
      </PropertyDef>
      <PropertyDef name="wjdz">
        <Property name="label">文件地址</Property>
      </PropertyDef>
      <PropertyDef name="fileName">
          <Property></Property>
          <Property name="label">文件名称</Property>
@@ -351,6 +354,12 @@
          <Property name="exClassName">toolbar-button</Property>
        </Button>
        <Button>
          <Property name="caption">上传文件</Property>
          <Property name="iconClass">fa fa-upload</Property>
          <Property name="exClassName">toolbar-button-warm</Property>
          <Property name="action">uploadAction</Property>
        </Button>
        <Button>
          <ClientEvent name="onClick">var cur = view.get(&quot;#dgMain&quot;).getCurrentItem();&#xD;
self.get(&quot;parent&quot;).hide();&#xD;
if(cur) cur.cancel();</ClientEvent>
@@ -436,6 +445,11 @@
                <Property name="property">kqdm</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">wjdz</Property>
                <Property name="property">wjdz</Property>
                <Editor/>
              </AutoFormElement>
            </AutoForm>
          </Children>
        </GroupBox>
@@ -505,5 +519,13 @@
      <Property name="service">api1403PR#delUpdate</Property>
      <Property name="confirmMessage">确定要将数据标记为删除么?</Property>
    </AjaxAction>
    <UploadAction id="uploadAction">
      <ClientEvent name="onFileUploaded">var returnValue = arg.returnValue;//获取FileResolver方法返回的信息&amp;#xD;&#xD;
        &#xD;
        var cur = view.get(&quot;#dsMain.data:#&quot;);&#xD;
        cur.set(&quot;wjdz&quot;,returnValue);</ClientEvent>
      <Property name="fileResolver">uploadProcessor#uploadFile</Property>
      <Filters/>
    </UploadAction>
  </View>
</ViewConfig>