From 71fe4f1f6a75c86640a726b9c230e8aaae2a28e7 Mon Sep 17 00:00:00 2001
From: sgj <1442489573@qq.com>
Date: 星期二, 07 四月 2026 16:19:00 +0800
Subject: [PATCH] 告警批复实体类,service

---
 fzzy-igdss-view/src/main/java/com/fzzy/igds/SecCamera.view.xml |  110 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 108 insertions(+), 2 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..17a0c0c 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;
@@ -550,10 +573,14 @@
       <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>
       <AutoForm>
-        <Property name="cols">*,*,*,*,90,90</Property>
+        <Property name="cols">*,*,*,*,90,90,120</Property>
         <Property name="dataSet">dsParam</Property>
         <Property name="labelAlign">right</Property>
         <Property name="labelWidth">100</Property>
@@ -589,6 +616,15 @@
           <Property name="caption">閲嶇疆</Property>
           <Property name="exClassName">btn-q2</Property>
           <Property name="iconClass">fa fa-refresh</Property>
+        </Button>
+        <Button>
+          <ClientEvent name="onClick">
+            var url = &quot;/com.fzzy.igds.ConfByDept.d&quot;;&#xD;
+            window.$openTab(&quot;搴撳尯閰嶇疆&quot;, url);
+          </ClientEvent>
+          <Property name="caption">搴撳尯閰嶇疆</Property>
+          <Property name="exClassName">btn-q1</Property>
+          <Property name="iconClass">fa fa-plus-square</Property>
         </Button>
       </AutoForm>
     </Container>
@@ -639,6 +675,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 +1010,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 +1077,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