Browse Source

fix: 独栋页面消息提示模拟

TwoKe945 1 năm trước cách đây
mục cha
commit
960c38feca
1 tập tin đã thay đổi với 14 bổ sung2 xóa
  1. 14 2
      app/src/views/Detail/components/Risklevel.vue

+ 14 - 2
app/src/views/Detail/components/Risklevel.vue

@@ -47,8 +47,8 @@
               }}<span class="blue">(管理单位、维保单位)</span>
             </div>
             <div class="oper">
-              <template v-if="detail.sfts === '未提示'">
-                <span class="error">未提示</span><span class="act">提示</span>
+              <template v-if="detail.sfts === '未提示' && !tiped">
+                <span class="error">未提示</span><span class="act"  @click="clickToTip">提示</span>
               </template>
               <span v-else class="success">已提示</span>
             </div>
@@ -117,6 +117,7 @@ export default {
       hzs: [],
       qrcode: null,
       color: null,
+      tiped: false
     };
   },
   props: ["detail"],
@@ -135,6 +136,17 @@ export default {
     rowClickHandler() {
       this.$router.push(`/h5?id=${"72042"}`);
     },
+    clickToTip() {
+      this.$alert('信息已发送', '信息提示', {
+        confirmButtonText: '确定',
+        distinguishCancelAndClose: true,
+        type: "success",
+        modal: false,
+        callback: action => {
+          this.tiped = true
+        }
+      });
+    },
     getList() {
       const param = {
         pageNum: 1,