guhongwei 3 år sedan
förälder
incheckning
8264a4a414

+ 9 - 0
src/views/patent/admin/message/parts/list-4.vue

@@ -9,6 +9,9 @@
           <van-col span="24" class="otherInfo">
           <van-col span="24" class="otherInfo">
             发送时间:<span>{{ getDate(item.meta) || '暂无' }}</span>
             发送时间:<span>{{ getDate(item.meta) || '暂无' }}</span>
           </van-col>
           </van-col>
+          <van-col span="24" class="otherInfo">
+            预警次数:<span>{{ getNum(item.early_num) }}</span>
+          </van-col>
           <van-col span="24" class="otherInfo">
           <van-col span="24" class="otherInfo">
             预警信息:<span>{{ item.content }}</span>
             预警信息:<span>{{ item.content }}</span>
           </van-col>
           </van-col>
@@ -42,6 +45,12 @@ export default {
       let newDate = moment(data.createdAt).format('YYYY-MM-DD hh:mm:ss');
       let newDate = moment(data.createdAt).format('YYYY-MM-DD hh:mm:ss');
       if (newDate) return newDate;
       if (newDate) return newDate;
     },
     },
+    getNum(num) {
+      if (num === 1) return '还有三个月到期';
+      else if (num === 2) return '还有两个月到期';
+      else if (num === 3) return '本月到期';
+      else return '暂无';
+    },
   },
   },
   computed: {
   computed: {
     ...mapState(['user']),
     ...mapState(['user']),

+ 9 - 0
src/views/patent/mech/patent/parts/list-4.vue

@@ -9,6 +9,9 @@
           <van-col span="24" class="otherInfo">
           <van-col span="24" class="otherInfo">
             发送时间:<span>{{ getDate(item.meta) || '暂无' }}</span>
             发送时间:<span>{{ getDate(item.meta) || '暂无' }}</span>
           </van-col>
           </van-col>
+          <van-col span="24" class="otherInfo">
+            预警次数:<span>{{ getNum(item.early_num) }}</span>
+          </van-col>
           <van-col span="24" class="otherInfo">
           <van-col span="24" class="otherInfo">
             预警信息:<span>{{ item.content }}</span>
             预警信息:<span>{{ item.content }}</span>
           </van-col>
           </van-col>
@@ -42,6 +45,12 @@ export default {
       let newDate = moment(data.createdAt).format('YYYY-MM-DD hh:mm:ss');
       let newDate = moment(data.createdAt).format('YYYY-MM-DD hh:mm:ss');
       if (newDate) return newDate;
       if (newDate) return newDate;
     },
     },
+    getNum(num) {
+      if (num === 1) return '还有三个月到期';
+      else if (num === 2) return '还有两个月到期';
+      else if (num === 3) return '本月到期';
+      else return '暂无';
+    },
   },
   },
   computed: {
   computed: {
     ...mapState(['user']),
     ...mapState(['user']),

+ 9 - 0
src/views/patent/user/patent/early/parts/list-4.vue

@@ -9,6 +9,9 @@
           <van-col span="24" class="otherInfo">
           <van-col span="24" class="otherInfo">
             发送时间:<span>{{ getDate(item.meta) || '暂无' }}</span>
             发送时间:<span>{{ getDate(item.meta) || '暂无' }}</span>
           </van-col>
           </van-col>
+          <van-col span="24" class="otherInfo">
+            预警次数:<span>{{ getNum(item.early_num) }}</span>
+          </van-col>
           <van-col span="24" class="otherInfo">
           <van-col span="24" class="otherInfo">
             预警信息:<span>{{ item.content }}</span>
             预警信息:<span>{{ item.content }}</span>
           </van-col>
           </van-col>
@@ -42,6 +45,12 @@ export default {
       let newDate = moment(data.createdAt).format('YYYY-MM-DD hh:mm:ss');
       let newDate = moment(data.createdAt).format('YYYY-MM-DD hh:mm:ss');
       if (newDate) return newDate;
       if (newDate) return newDate;
     },
     },
+    getNum(num) {
+      if (num === 1) return '还有三个月到期';
+      else if (num === 2) return '还有两个月到期';
+      else if (num === 3) return '本月到期';
+      else return '暂无';
+    },
   },
   },
   computed: {
   computed: {
     ...mapState(['user']),
     ...mapState(['user']),