ソースを参照

fix: 替换独栋图片、独栋数据查询传参

TwoKe945 1 年間 前
コミット
36a381cc2d

+ 3 - 1
app/src/components/MessageTipModalContent.vue

@@ -25,7 +25,9 @@ export default {
         distinguishCancelAndClose: true,
         type: "success",
         modal: false,
-        callback: action => {}
+        callback: action => {
+          this.$emit("close" )
+        }
       });
     }
   }

+ 5 - 2
app/src/views/Detail/index.vue

@@ -72,7 +72,7 @@
     <!-- 风险问号弹窗 -->
     <basic-modal top="30px" ref="whFxModal" name="安全风险分级预警流程" width="90%">
       <div style="display: flex; justify-content: center">
-        <img src="../../assets/images/dt-qyfxdj.png" />
+        <img src="../../assets/images/zl-fxyj.png" />
       </div>
     </basic-modal>
 
@@ -96,7 +96,9 @@
 
     <!-- 智慧消防 -->
     <basic-modal top="120px" ref="zhxfModal" name="智慧消防">
-      <fxfbCont :sbType="params && params.zhxfModal ? params.zhxfModal.sblx : null" />
+      <fxfbCont 
+        :gcjzmc="params && params.zhxfModal ? params.zhxfModal.gcjzmc : null"
+      :sbType="params && params.zhxfModal ? params.zhxfModal.sblx : null" />
     </basic-modal>
 
     <!-- 自查 -->
@@ -191,6 +193,7 @@ export default {
     getData() {
       getBuildDetail(this.id).then((res) => {
         this.detail = res.data.data;
+        this.params.zhxfModal.gcjzmc = this.detail.gcjzmc
       });
 
       get720({ jzid: this.id, pageSize: 1000 }).then((res) => {

+ 5 - 2
app/src/views/Home/index.vue

@@ -86,8 +86,8 @@
       </div>
     </basic-modal>
       <!-- 短信提示弹窗 -->
-    <basic-modal top="120px" ref="smsMsgModal" name="信息提示" width="50%">
-      <MessageTipModalContent />
+    <basic-modal top="120px"  ref="smsMsgModal" name="信息提示" width="50%">
+      <MessageTipModalContent @close="onCloseModal" />
     </basic-modal>
   </div>
 </template>
@@ -635,6 +635,9 @@ export default {
     },
   },
   methods: {
+    onCloseModal() {
+      this.closeModal("smsMsgModal")
+    },
     onClickAutonomousManagementItemHandler(data) {
       const temp = {
         glxs: "",

+ 7 - 0
app/src/views/Iot/components/fxfbCont.vue

@@ -96,6 +96,7 @@ export default {
   props: {
     qy: String,
     sbType: Object,
+    gcjzmc: String
   },
   watch: {
     qy: {
@@ -107,6 +108,12 @@ export default {
       immediate: true,
       deep: true,
     },
+    gcjzmc: {
+      handler(val) {
+        this.search = val;
+      },
+      immediate: true
+    },
     sbType: {
       handler(val) {
         this.sblx=val.name,