From 93e01fa050330ead95041ed11cc85e9765c19fc1 Mon Sep 17 00:00:00 2001
From: vince <757871790@qq.com>
Date: 星期四, 09 十一月 2023 12:06:52 +0800
Subject: [PATCH] 手动测试

---
 src/main/java/com/fzzy/gateway/view/GatewayConf.view.xml |   20 ++++++++++++++------
 1 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/src/main/java/com/fzzy/gateway/view/GatewayConf.view.xml b/src/main/java/com/fzzy/gateway/view/GatewayConf.view.xml
index dc60b1b..3e6254f 100644
--- a/src/main/java/com/fzzy/gateway/view/GatewayConf.view.xml
+++ b/src/main/java/com/fzzy/gateway/view/GatewayConf.view.xml
@@ -82,8 +82,8 @@
         <Property name="label">绮簱绯荤粺涓簱鍖虹紪鐮�</Property>
       </PropertyDef>
     </DataType>
-    <DataType name="dtParam" parent="Map">
-      <Property name="creationType">com.fzzy.gateway.hx2023.data.GateWayTestParam</Property>
+    <DataType name="dtParam">
+      <Property name="creationType">com.fzzy.gateway.entity.GateWayTestParam</Property>
       <PropertyDef name="start">
         <Property name="dataType">DateTime</Property>
       </PropertyDef>
@@ -111,8 +111,8 @@
       <Property name="dataProvider">gatewayConfService#listAll</Property>
     </DataSet>
     <DataSet id="dsQuery">
-      <ClientEvent name="onReady">self.insert({});</ClientEvent>
       <Property name="dataType">dtParam</Property>
+      <Property name="dataProvider">gatewayDeviceService#getQuery</Property>
     </DataSet>
     <ToolBar>
       <ToolBarLabel>
@@ -167,6 +167,12 @@
       <ToolBarButton>
         <ClientEvent name="onClick">view.get(&quot;#dialogWeight&quot;).show();</ClientEvent>
         <Property name="caption">鍦扮鎺ㄩ�佹祴璇�</Property>
+        <Property name="iconClass">fa fa-search</Property>
+        <Property name="exClassName">toolbar-button-push</Property>
+      </ToolBarButton>
+      <ToolBarButton>
+        <ClientEvent name="onClick">view.get(&quot;#dialogLpr&quot;).show();</ClientEvent>
+        <Property name="caption">杞︾墝璇嗗埆鎺ㄩ�佹祴璇�</Property>
         <Property name="iconClass">fa fa-search</Property>
         <Property name="exClassName">toolbar-button-push</Property>
       </ToolBarButton>
@@ -398,7 +404,7 @@
       <Buttons>
         <Button>
           <ClientEvent name="onClick">var data = view.get(&quot;#dsQuery.data&quot;);&#xD;
-view.get(&quot;#ajaxTestWeight&quot;).set(&quot;parameter&quot;,data.get(&quot;weight&quot;)).execute(function(result){&#xD;
+view.get(&quot;#ajaxTestWeight&quot;).set(&quot;parameter&quot;,data.toJSON()).execute(function(result){&#xD;
 	self.get(&quot;parent&quot;).hide();&#xD;
 	$alert(result);&#xD;
 });</ClientEvent>
@@ -433,11 +439,13 @@
       <Buttons>
         <Button>
           <ClientEvent name="onClick">var data = view.get(&quot;#dsQuery.data&quot;);&#xD;
-view.get(&quot;#ajaxTestLpr&quot;).set(&quot;parameter&quot;,data).execute(function(result){&#xD;
+console.log(data.toJSON());&#xD;
+view.get(&quot;#ajaxTestLpr&quot;).set(&quot;parameter&quot;,data.toJSON()).execute(function(result){&#xD;
 	self.get(&quot;parent&quot;).hide();&#xD;
 	$alert(result);&#xD;
 });</ClientEvent>
           <Property name="caption">纭畾鎵ц</Property>
+          <Property name="action">updateAction1</Property>
         </Button>
         <Button>
           <ClientEvent name="onClick">view.get(&quot;#dialogLpr&quot;).hide();</ClientEvent>
@@ -458,8 +466,8 @@
       <Tools/>
     </Dialog>
     <AjaxAction id="ajaxTestLpr">
-      <Property name="service">gatewayDeviceService#ajaxTestLpr</Property>
       <Property name="executingMessage">鍦ㄥ姫鍔涙墽琛屼腑鈥︹��</Property>
+      <Property name="service">gatewayDeviceService#ajaxTestLpr</Property>
     </AjaxAction>
   </View>
 </ViewConfig>

--
Gitblit v1.9.3