sgj
2026-03-24 deb8a2c32ba0cb7a88819b54d720418cdc2f7ebb
fzzy-igdss-view/src/main/java/com/fzzy/igds/Dept.view.xml
@@ -97,6 +97,14 @@
        <Property name="dataType">Double</Property>
        <Property name="label">纬度</Property>
      </PropertyDef>
      <PropertyDef name="contact">
        <Property></Property>
        <Property name="label">监管联系人</Property>
      </PropertyDef>
      <PropertyDef name="contactTel">
        <Property></Property>
        <Property name="label">监管联系电话</Property>
      </PropertyDef>
      <PropertyDef name="remark">
        <Property></Property>
        <Property name="label">备注说明</Property>
@@ -149,10 +157,51 @@
      view.get(&quot;#dialogImg&quot;).show();&#xD;
      &#xD;
      };</ClientEvent>
    <ClientEvent name="onReady">var parentId = &quot;${request.getParameter('parentId')}&quot;;&#xD;
view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,{parentId: parentId}).flushAsync();&#xD;
&#xD;
/**&#xD;
* 查看详情&#xD;
* @param {String/Number} manualId 手动传入的id值(可选)&#xD;
*/&#xD;
detail = function(){&#xD;
    var cur = view.get(&quot;#dgMain&quot;).get(&quot;selection&quot;);&#xD;
     if (cur) {&#xD;
      var id = cur.get(&quot;id&quot;);&#xD;
        var url = &quot;/com.fzzy.igds.Depot.d?parentId=&quot;+ id;&#xD;
      window.$openTab(&quot;库区管理&quot;, url);&#xD;
   }else {&#xD;
      $notify(&quot;请先选择数据……&quot;);&#xD;
   }  &#xD;
};&#xD;
&#xD;
&#xD;
showDlg=function(){&#xD;
   var select = view.get(&quot;#dgMain&quot;).get(&quot;selection&quot;);&#xD;
   if(select){&#xD;
       view.get(&quot;#dialogMain&quot;).show();;&#xD;
   }else{&#xD;
        $notify(&quot;请先选择数据……&quot;);&#xD;
   }&#xD;
};&#xD;
&#xD;
renderId = function(arg){&#xD;
    var txt = arg.data.getText(&quot;id&quot;);&#xD;
    if(!txt) return true;&#xD;
    var htm = &quot;&lt;a href='javascript:;' onClick='showDlg()' >&quot;+txt+&quot;&lt;/a>&quot;;&#xD;
    arg.dom.innerHTML = htm;&#xD;
}
renderName = function(arg){&#xD;
    var txt = arg.data.getText(&quot;kqmc&quot;);&#xD;
    if(!txt) return true;&#xD;
    var htm = &quot;&lt;a href='javascript:;' onClick='showDlg()' >&quot;+txt+&quot;&lt;/a>&quot;;&#xD;
    arg.dom.innerHTML = htm;&#xD;
}</ClientEvent>
    <Property name="packages">font-awesome,css-common</Property>
    <DataSet id="dsMain">
      <Property name="dataProvider">deptPR#getData</Property>
      <Property name="dataProvider">deptPR#getDeptByUserType</Property>
      <Property name="dataType">[dtMain]</Property>
      <Property name="loadMode">manual</Property>
    </DataSet>
    <Container>
      <Property name="className">c-param</Property>
@@ -186,11 +235,13 @@
        <RowSelectorColumn/>
        <RowNumColumn/>
        <DataColumn name="id">
          <ClientEvent name="onRenderCell">renderId(arg);</ClientEvent>
          <Property name="property">id</Property>
          <Property name="align">center</Property>
          <Property name="width">160</Property>
        </DataColumn>
        <DataColumn name="kqmc">
          <ClientEvent name="onRenderCell">renderName(arg);</ClientEvent>
          <Property name="property">kqmc</Property>
          <Property name="align">left</Property>
        </DataColumn>
@@ -221,6 +272,14 @@
          <Property name="property">updateTime</Property>
          <Property name="align">center</Property>
          <Property name="width">160</Property>
        </DataColumn>
        <DataColumn>
          <ClientEvent name="onRenderCell">arg.dom.innerHTML = &quot;&lt;a href='javascript:;' onClick='detail()' class='a-btn1'>查看仓库&lt;/a>&quot;;</ClientEvent>
          <Property name="width">160</Property>
          <Property name="caption">操作</Property>
          <Property name="align">center</Property>
          <Property name="width">120</Property>
          <Editor/>
        </DataColumn>
      </DataGrid>
    </Container>
@@ -367,6 +426,16 @@
            </Property>
            <Property name="text">帮助:点击坐标位置拾取</Property>
          </Link>
          <AutoFormElement>
            <Property name="name">contact</Property>
            <Property name="property">contact</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">contactTel</Property>
            <Property name="property">contactTel</Property>
            <Editor/>
          </AutoFormElement>
        </AutoForm>
      </Children>
      <Tools/>
@@ -457,9 +526,9 @@
      </Container>
    </CustomDropDown>
    <UploadAction id="uploadFileImg">
      <ClientEvent name="onFileUploaded">var imgPath = arg.returnValue;&#xD;
      <ClientEvent name="onFileUploaded">var fileId = arg.returnValue;&#xD;
        var data = view.get(&quot;#dsMain.data:#&quot;);&#xD;
        data.set(&quot;imgPath&quot;,imgPath);&#xD;
        data.set(&quot;imgPath&quot;,fileId);&#xD;
        data.set(&quot;imgName&quot;,arg.file.name);</ClientEvent>
      <Property name="fileResolver">fileUploadManage#imgFile</Property>
      <Property name="maxFileSize">50MB</Property>