jiazx0107
13 小时以前 4450143298f467e05c84c7f2bfc8b04412d5ebc8
fzzy-igdss-view/src/main/java/com/fzzy/igds/PatrolSuper.view.xml
@@ -61,7 +61,7 @@
    </DataType>
  </Model>
  <View layout="padding:10">
    <ClientEvent name="onClick">&#xD;
    <ClientEvent name="onReady">&#xD;
/**&#xD;
* 查看详情&#xD;
*/&#xD;
@@ -72,6 +72,19 @@
    var panelId = window.parent.frameElement.getAttribute('data-id');
    window.parent.parent.$.modal.openTab(&quot;巡更详情&quot;, url,false, panelId);
};&#xD;
&#xD;
renderStatus = function(arg){&#xD;
    var txt = arg.data.getText(&quot;isPatrol&quot;);&#xD;
    if(!txt) return true;&#xD;
    var htm = &quot;&lt;span class='s2'>&quot;+txt+&quot;&lt;/span>&quot;;&#xD;
    if(txt.includes(&quot;N&quot;)){&#xD;
        htm = &quot;&lt;span class='s3'>&quot;+txt+&quot;&lt;/span>&quot;;&#xD;
    }&#xD;
    if(txt.includes(&quot;Y&quot;)){&#xD;
        htm = &quot;&lt;span class='s1'>&quot;+txt+&quot;&lt;/span>&quot;;&#xD;
    }&#xD;
    arg.dom.innerHTML = htm;&#xD;
}&#xD;
    </ClientEvent>
    <Property name="packages">font-awesome,css-common</Property>
    <DataSet id="dsMain">
@@ -106,8 +119,7 @@
          <Property name="width">150</Property>
        </DataColumn>
        <DataColumn name="isPatrol">
          <ClientEvent name="onRenderCell">arg.dom.style.background = arg.data.get(&quot;isPatrol&quot;)== 'Y' ?&quot;&quot;:&quot;#FF5722&quot;;&#xD;
            arg.processDefault = true;</ClientEvent>
          <ClientEvent name="onRenderCell">renderStatus(arg);</ClientEvent>
          <Property name="property">isPatrol</Property>
          <Property name="align">center</Property>
          <Property name="width">120</Property>