From c25d369c352b959887999da035e019b840d0b75c Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期一, 05 一月 2026 15:03:43 +0800
Subject: [PATCH] 移动千里眼接口对接

---
 fzzy-igdss-view/src/main/java/com/fzzy/igds/SecCamera.view.xml |   99 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 98 insertions(+), 1 deletions(-)

diff --git a/fzzy-igdss-view/src/main/java/com/fzzy/igds/SecCamera.view.xml b/fzzy-igdss-view/src/main/java/com/fzzy/igds/SecCamera.view.xml
index e28c74a..df88e00 100644
--- a/fzzy-igdss-view/src/main/java/com/fzzy/igds/SecCamera.view.xml
+++ b/fzzy-igdss-view/src/main/java/com/fzzy/igds/SecCamera.view.xml
@@ -133,7 +133,7 @@
         <Property></Property>
         <Property name="label">鎵�灞炲簱鍖�</Property>
         <Property name="mapping">
-          <Property name="mapValues">${dorado.getDataProvider(&quot;deptPR#getAllData&quot;).getResult()}</Property>
+          <Property name="mapValues">${dorado.getDataProvider(&quot;deptPR#getDeptByUserType&quot;).getResult()}</Property>
           <Property name="keyProperty">id</Property>
           <Property name="valueProperty">kqmc</Property>
         </Property>
@@ -479,6 +479,29 @@
         <Property name="readOnly">true</Property>
       </PropertyDef>
     </DataType>
+    <DataType name="dtPull">
+      <Property name="creationType">com.fzzy.igds.domain.Camera</Property>
+      <PropertyDef name="deptId">
+        <Property></Property>
+        <Property name="label">鍚屾搴撳尯</Property>
+        <Property name="mapping">
+          <Property name="mapValues">${dorado.getDataProvider(&quot;deptPR#getDeptByUserType&quot;).getResult()}</Property>
+          <Property name="keyProperty">id</Property>
+          <Property name="valueProperty">kqmc</Property>
+        </Property>
+        <Property name="required">true</Property>
+      </PropertyDef>
+      <PropertyDef name="playType">
+        <Property></Property>
+        <Property name="label">鎾斁鏂瑰紡</Property>
+        <Property name="mapping">
+          <Property name="mapValues">${dorado.getDataProvider(&quot;dicPR#triggerPlayType&quot;).getResult()}</Property>
+          <Property name="keyProperty">dictValue</Property>
+          <Property name="valueProperty">dictLabel</Property>
+        </Property>
+        <Property name="required">true</Property>
+      </PropertyDef>
+    </DataType>
   </Model>
   <View layout="padding:10">
     <ClientEvent name="onClick">&#xD;
@@ -549,6 +572,10 @@
     <DataSet id="dsParam">
       <ClientEvent name="onReady">self.insert({});</ClientEvent>
       <Property name="dataType">dtSecCameraParam</Property>
+    </DataSet>
+    <DataSet id="dsPull">
+      <ClientEvent name="onReady">self.insert({});</ClientEvent>
+      <Property name="dataType">dtPull</Property>
     </DataSet>
     <Container>
       <Property name="className">c-param</Property>
@@ -639,6 +666,13 @@
           <Property name="iconClass">fa fa-refresh</Property>
           <Property name="width">100</Property>
           <Property name="action">refreshCache</Property>
+        </ToolBarButton>
+        <ToolBarButton>
+          <ClientEvent name="onClick">view.get(&quot;#dialogPull&quot;).show();</ClientEvent>
+          <Property name="caption">鍚屾鐩戞帶</Property>
+          <Property name="exClassName">btn2</Property>
+          <Property name="iconClass">fa fa-random</Property>
+          <Property name="width">100</Property>
         </ToolBarButton>
       </ToolBar>
       <DataGrid id="dataGridCamera" layoutConstraint="padding:8">
@@ -967,6 +1001,62 @@
       </Children>
       <Tools/>
     </Dialog>
+    <Dialog id="dialogPull" layout="regionPadding:8">
+      <Property name="iconClass">fa fa-tasks</Property>
+      <Property name="width">35%</Property>
+      <Property name="caption">鍚屾鐩戞帶淇℃伅</Property>
+      <Property name="closeable">false</Property>
+      <Buttons>
+        <Button>
+          <ClientEvent name="onClick">var data = view.get(&quot;#dsPull.data:#&quot;);&#xD;
+if(data.validate() != 'ok'){&#xD;
+    $notify(&quot;鏁版嵁鏍¢獙澶辫触锛侊紒&quot;);&#xD;
+    return;&#xD;
+}&#xD;
+view.get(&quot;#ajaxRemoteMedia&quot;).set(&quot;parameter&quot;,data).execute(function(result){&#xD;
+    if(result){&#xD;
+        $alert(result);&#xD;
+    }else{&#xD;
+        self.get(&quot;parent&quot;).hide();&#xD;
+        query();&#xD;
+    }&#xD;
+});</ClientEvent>
+          <Property name="caption">鍚屾</Property>
+          <Property name="iconClass">fa fa-check-circle</Property>
+          <Property name="exClassName">btn1</Property>
+          <Property name="width">120</Property>
+        </Button>
+        <Button>
+          <ClientEvent name="onClick">var cur = view.get(&quot;#dsMain.data:#&quot;);&#xD;
+            if(cur) cur.cancel();&#xD;
+            self.get(&quot;parent&quot;).hide();</ClientEvent>
+          <Property name="caption">鍙栨秷</Property>
+          <Property name="exClassName">btn3</Property>
+          <Property name="iconClass">fa fa-times-circle</Property>
+          <Property name="width">120</Property>
+        </Button>
+      </Buttons>
+      <Children>
+        <AutoForm>
+          <Property name="dataSet">dsPull</Property>
+          <Property name="cols">*</Property>
+          <Property name="labelWidth">100</Property>
+          <Property name="labelAlign">right</Property>
+          <Property name="labelSeparator">锛�</Property>
+          <AutoFormElement>
+            <Property name="name">deptId</Property>
+            <Property name="property">deptId</Property>
+            <Editor/>
+          </AutoFormElement>
+          <AutoFormElement>
+            <Property name="name">playType</Property>
+            <Property name="property">playType</Property>
+            <Editor/>
+          </AutoFormElement>
+        </AutoForm>
+      </Children>
+      <Tools/>
+    </Dialog>
     <UpdateAction id="uaAction">
       <Property name="dataResolver">secCameraPR#saveCamera</Property>
       <UpdateItem>
@@ -978,6 +1068,13 @@
       <Property name="confirmMessage">纭畾瑕佸垹闄ゅ悧锛�</Property>
       <Property name="service">secCameraPR#delCamera</Property>
     </AjaxAction>
+    <UpdateAction id="ajaxRemoteMedia">
+      <Property name="dataResolver">secCameraPR#flushByMedia</Property>
+      <UpdateItem>
+        <Property name="dataSet">dsPull</Property>
+        <Property name="dataPath">[#current]</Property>
+      </UpdateItem>
+    </UpdateAction>
     <Dialog id="dialogVideo">
       <Property name="width">1320</Property>
       <Property name="caption">瑙嗛棰勮</Property>

--
Gitblit v1.9.3