From 91b0174402dc5c993a3fc506d89bae7ba1e0ce99 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期二, 23 四月 2024 18:04:52 +0800
Subject: [PATCH] 完成消息列表接口对接

---
 static/img/notice-3.svg               |    2 
 /dev/null                             |    1 
 src/view/notice.vue                   |  335 +++++++++++++++++++++++------------------
 static/img/notice-4.svg               |    2 
 src/components/tool/value-table.vue   |    9 +
 static/img/notice-2.svg               |    2 
 src/main.js                           |    3 
 static/img/notice-5.svg               |    2 
 src/view/index.vue                    |   24 ++
 src/assets/api/controller.js          |   10 +
 src/components/view/notice-detail.vue |   58 ++++---
 11 files changed, 265 insertions(+), 183 deletions(-)

diff --git a/src/assets/api/controller.js b/src/assets/api/controller.js
index 0af6352..e94eab0 100644
--- a/src/assets/api/controller.js
+++ b/src/assets/api/controller.js
@@ -21,6 +21,7 @@
     report,
     certification,
     sealScope,
+    informationNotification,
 	}
 }
 
@@ -237,3 +238,12 @@
   addSeal:"/sealScope/addSeal",//娣诲姞鍗扮珷鍙傛暟
 }
 
+const informationNotification = {
+  checkForUnreadData:"/informationNotification/checkForUnreadData",//鏌ヨ鏄惁瀛樺湪鏈鏁版嵁
+  deleteDataBasedOnId:"/informationNotification/deleteDataBasedOnId",//鏍规嵁Id鍒犻櫎鏁版嵁
+  informationReadOrDelete:"/informationNotification/informationReadOrDelete",//鏍囪鎵�鏈変俊鎭负宸茶-鍒犻櫎鎵�鏈夊凡璇绘秷鎭�
+  page:"/informationNotification/page",//婊氬姩鍒嗛〉鏌ヨ
+  updateMessageStatus:"/informationNotification/updateMessageStatus",//鏇存柊娑堟伅鐘舵�侊紙鎷掔粷銆佹帴鏀讹級
+  triggerModificationStatusToRead:"/informationNotification/triggerModificationStatusToRead",//鐐瑰嚮璇︽儏瑙﹀彂淇敼鐘舵�佷负宸茶
+}
+
diff --git a/src/components/tool/value-table.vue b/src/components/tool/value-table.vue
index e3f3b28..c71e5ca 100644
--- a/src/components/tool/value-table.vue
+++ b/src/components/tool/value-table.vue
@@ -892,6 +892,15 @@
 					}
 				}
 				this.addLoad = true
+        this.upHead.forEach((item,index)=>{
+          if(this.data.cascaderField&&this.data.cascaderField[item.label]){
+            if(this.upData[item.label]){
+              this.upData[item.label] = this.upData[item.label].join(',');
+            }else{
+              this.upData[item.label] = ''
+            }
+          }
+        })
 				this.$axios.post(this.addUrl, this.upData, {
 					headers: {
 						'Content-Type': 'application/json'
diff --git a/src/components/view/notice-detail.vue b/src/components/view/notice-detail.vue
index 6ea2eae..8b11683 100644
--- a/src/components/view/notice-detail.vue
+++ b/src/components/view/notice-detail.vue
@@ -1,31 +1,24 @@
 <template>
   <div class="notice-detail-page">
     <div class="notice-detail-head">
-      <el-row :gutter="20">
-        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="6" style="margin-bottom: 16px;">
-          <label>涓婚锛�</label>
-          <p></p>
-        </el-col>
-        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="6" style="margin-bottom: 16px;">
-          <label>鍙戜欢鏃堕棿锛�</label>
-          <p></p>
-        </el-col>
-        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="6" style="margin-bottom: 16px;">
-          <label>鍙戦�佷汉锛�</label>
-          <p></p>
-        </el-col>
-        <el-col :xs="24" :sm="12" :md="8" :lg="6" :xl="6" style="margin-bottom: 16px;">
-          <label>鏀朵欢浜猴細</label>
-          <p></p>
-        </el-col>
-      </el-row>
-      <div class="head-item">
+      <h4 style="margin-bottom: 16px;">娑堟伅涓婚</h4>
+      <p style="font-size: 12px;color: #999;margin-bottom: 20px;">
+        <!-- <span>娑堟伅绫诲瀷锛氬鎵�&nbsp; </span> -->
+        <span>鍙戦�佷汉锛�111 </span>
+        <span>&nbsp;&nbsp;</span>
+        <span>鏀朵欢浜猴細111</span>
+        <span>&nbsp;&nbsp;</span>
+        <span>鍙戜欢鏃堕棿锛�111</span>
+      </p>
+      <div class="notice-detail-head-content">
         <label>鍐呭锛�</label>
-        <p></p>
+        <div></div>
       </div>
     </div>
-    <component class="notice-content" :is="noticeInfo.u" style="height: calc(100% - 120px);">
-		</component>
+    <div class="info-box">
+      <component class="notice-content" :is="noticeInfo.u" style="height: 500px;">
+		  </component>
+    </div>
   </div>
 </template>
 
@@ -45,7 +38,7 @@
   data() {
     return{
       noticeInfo:{
-        u:'b1-inspect-order-plan'
+        u:'b1-report-preparation'
       },
     }
   }
@@ -54,6 +47,8 @@
 
 <style scoped>
 .notice-detail-page{
+  height: calc(100vh - 120px);
+  overflow-y: auto;
   padding-top: 16px;
 }
 .notice-detail-head{
@@ -62,6 +57,21 @@
   box-sizing: border-box;
   padding: 16px;
 }
-.notice-detail-head{
+.info-box{
+  margin-top: 16px;
+  width: 100%;
+  box-sizing: border-box;
+  padding: 8px 20px 20px;
+  background: rgba(148, 147, 147, 0.1);
+  border-radius: 8px;
+}
+.notice-detail-head-content div{
+  border-radius: 8px;
+  border: 1px solid #ccc;
+  min-height: 60px;
+  width: 100%;
+  padding: 16px;
+  box-sizing: border-box;
+  margin-top: 12px;
 }
 </style>
diff --git a/src/main.js b/src/main.js
index 08cbca9..72d3324 100644
--- a/src/main.js
+++ b/src/main.js
@@ -15,7 +15,8 @@
 Vue.prototype.LOCATIONVUE = "http://127.0.0.1:80";
 // const javaApi = 'http://192.168.11.200:8001';//鏉�
 // const javaApi = 'http://192.168.11.249:8001';//寮�
-const javaApi = 'http://192.168.11.50:8002';//濮�
+const javaApi = 'http://192.168.11.50:8001';//濮�
+// const javaApi = 'http://192.168.11.2:8001';//鏌�
 // const javaApi = 'http://114.132.189.42:9006';//娴嬭瘯鏈�
 //鑳滀簯鏈嶅姟鍣�
 // Vue.prototype.LOCATIONVUE = "http://syxt.shxiao2.cn";
diff --git a/src/view/index.vue b/src/view/index.vue
index 77afae7..e444d61 100644
--- a/src/view/index.vue
+++ b/src/view/index.vue
@@ -295,7 +295,7 @@
 			</div>
 			<div class="label">LIMS瀹為獙瀹ょ鐞嗙郴缁�</div>
 			<div class="user">
-        <el-badge is-dot style="cursor: pointer;margin-right: 10px;">
+        <el-badge :is-dot="newMsg" style="cursor: pointer;margin-right: 10px;">
           <i class="el-icon-bell" style="font-size: 20px;" @click="openNotice"></i>
         </el-badge>
         <el-dropdown trigger="click" @command="handleCommand">
@@ -427,7 +427,9 @@
 				activeIndex: 0,
 				power: [],
         editVisible:false,
-        query:{}
+        query:{},
+        newMsg:false,
+        timer:null,
 			};
 		},
 		created() {
@@ -458,6 +460,10 @@
 				this.activeBox = 0
 			}
 			this.getPower()
+      this.timer&&clearInterval(this.timer);
+      this.timer = setInterval(()=>{
+        this.checkForUnreadData()
+      },10000)
 		},
 		methods: {
 			saveClick(){
@@ -616,7 +622,19 @@
       },
       openNotice(){
         this.$refs.notice.open()
+        this.$refs.notice.handleType()
+      },
+      checkForUnreadData(){
+        this.$axios.get(this.$api.informationNotification.checkForUnreadData).then(res => {
+          if (res.code == 201) {
+            return
+          }
+          this.newMsg = res.data
+        })
       }
-		}
+		},
+    destroyed() {
+      this.timer&&clearInterval(this.timer);
+    }
 	};
 </script>
diff --git a/src/view/notice.vue b/src/view/notice.vue
index dac79a8..691e041 100644
--- a/src/view/notice.vue
+++ b/src/view/notice.vue
@@ -4,11 +4,11 @@
   title="娑堟伅閫氱煡"
   :visible.sync="drawer"
   :direction="direction"
-  :before-close="handleClose" style="height: 100vh;">
+  :before-close="handleClose" style="height: 100vh;z-index: 9999999;">
     <div class="head">
       <div class="head-search">
         <label>娑堟伅绫诲瀷锛�</label>
-        <el-select v-model="type" placeholder="璇烽�夋嫨" style="width: 150px;" size="small">
+        <el-select v-model="type" placeholder="璇烽�夋嫨" style="width: 150px;" size="small" @change="handleType">
         <el-option
           v-for="item in options"
           :key="item.value"
@@ -17,56 +17,74 @@
         </el-option>
       </el-select>
       </div>
-      <el-dropdown style="margin-right: 20px;">
+      <el-dropdown style="margin-right: 20px;" v-if="list.length>0" @command="handleDropdownAll">
         <span class="el-dropdown-link">
           <span class="more">&middot;&middot;&middot;</span>
         </span>
         <el-dropdown-menu slot="dropdown">
-          <el-dropdown-item>
+          <el-dropdown-item command="1">
             <i class="el-icon-check"></i>
             <span>鏍囪鎵�鏈夋秷鎭负宸茶</span>
           </el-dropdown-item>
-          <el-dropdown-item>
+          <el-dropdown-item  command="2">
             <i class="el-icon-delete"></i>
             <span>鍒犻櫎鎵�鏈夊凡璇绘秷鎭�</span>
           </el-dropdown-item>
         </el-dropdown-menu>
       </el-dropdown>
     </div>
-    <div class="notice-content">
+    <div class="notice-content" @scroll="scrollFn" v-loading="loading">
       <div class="notice-content-item" v-for="(m,i) in list" :key="i">
-        <div class="btns">
-          <el-dropdown style="margin-right: 20px;" trigger="click" @command="handleDropdown">
+        <div class="btns" v-if="m">
+          <el-dropdown style="margin-right: 20px;" trigger="click" @command="e=>handleDropdown(e,m)" v-if="m.messageType==2||m.messageType==3">
             <span class="el-dropdown-link">
               <span class="more" style="line-height: 26px;display: inline-block;">&middot;&middot;&middot;</span>
             </span>
-            <el-dropdown-menu slot="dropdown">
-              <el-dropdown-item v-for="(n,j) in dropdownList" :key="j" :command="n.value">
+            <el-dropdown-menu slot="dropdown" v-if="m.messageType==2">
+              <el-dropdown-item v-for="(n,j) in dropdownList0" :key="j" :command="n.value">
+                {{ n.label }}
+              </el-dropdown-item>
+            </el-dropdown-menu>
+            <el-dropdown-menu slot="dropdown" v-if="m.messageType==3">
+              <el-dropdown-item v-for="(n,j) in dropdownList1" :key="j" :command="n.value">
                 {{ n.label }}
               </el-dropdown-item>
             </el-dropdown-menu>
           </el-dropdown>
-          <i class="el-icon-close" style="cursor: pointer;"></i>
+          <i class="el-icon-close" style="cursor: pointer;" @click="handleDel(m)"></i>
         </div>
         <div class="content">
-          <img :src="`../../static/img/notice-${m.type}.svg`" alt="" style="width: 50px;margin-right: 18px;">
+          <img :src="`../../static/img/notice-${m.messageType}.svg`" alt="" style="width: 50px;margin-right: 18px;">
           <div class="content-info">
             <h4 style="font-weight: normal;margin-bottom: 4px;display: flex;align-items: center;justify-content: space-between;">
-              <span>{{ m.title }}</span>
-              <span class="time" style="color: #999999;font-size: 12px;">{{ m.time }}</span>
+              <span>{{ m.theme }}<el-tag :type="!m.messageStatus?'danger':'success'" size="small" v-if="m.messageType==1||m.messageType==2||m.messageType==3" style="margin-left: 8px;">{{ !m.messageStatus?'鏈鐞�':'宸插鐞�' }}</el-tag></span>
+              <span class="time" style="color: #999999;font-size: 12px;">{{ m.createTime }}</span>
             </h4>
-            <p style="color: #999999;font-size: 14px;margin-bottom: 6px;" class="ellipsis-multiline">{{ m.content }}</p>
-            <el-tag type="danger" size="small" v-if="m.status==0&&m.type==2" style="margin-bottom: 4px;">宸叉嫆缁�</el-tag>
-            <el-tag type="success" size="small" v-if="m.status==1&&m.type==2" style="margin-bottom: 4px;">宸叉帴鏀�</el-tag>
+            <p style="color: #999999;font-size: 14px;margin-bottom: 6px;cursor: pointer;" class="ellipsis-multiline" @click="goNoticeDetail(m)">{{ m.content }}</p>
             <p style="font-size: 12px;color: #999999;display: flex;align-items: center;justify-content: space-between;">
-              <span>鍙戦�佷汉锛歿{m.sendUser}}</span>
-              <span>鏀朵欢浜猴細{{ m.getUser }}</span>
+              <span>鍙戦�佷汉锛歿{m.createUser}}</span>
+              <span>鏀朵欢浜猴細{{ m.consigneeUser }}</span>
             </p>
           </div>
         </div>
-        <div class="new-notice" v-if="m.isRead==0">
+        <div class="new-notice" v-if="!m.viewStatus">
           <span>new</span>
         </div>
+      </div>
+      <div v-if="list.length<1&&!loading&&!isLoding" style="color:#909399;font-size:14px;text-align: center;margin-top:200px" >鏆傛棤鏁版嵁</div>
+      <div v-if="list.length>0">
+        <el-button
+          v-if="isLoding"
+          type="text"
+          style="display: flex; margin: 0 auto; color: #909399"
+          ><i class="el-icon-loading" style="font-size:20px"></i
+        ></el-button>
+         <el-button
+          type="text"
+          v-if="finishLoding"
+          style="display: flex; margin: 0 auto; color: #909399"
+          >宸茬粡娌℃湁鏇村鍟</el-button
+        >
       </div>
     </div>
   </el-drawer>
@@ -74,6 +92,7 @@
 </template>
 
 <script>
+
 export default {
   data(){
     return{
@@ -81,144 +100,81 @@
       direction:'rtl',
       options:[],
       type:'0',
-      list:[
+      list:[],
+      dropdownList0:[
         {
-          type:1,
-          title:'鏍囬',
-          content:'鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭鍐呭',
-          time:'2019-08-07 15:34:26',
-          status:0,//娑堟伅鐘舵�侊細鎷掔粷銆佹帴鏀�
-          isRead:0,//鏄惁宸茶
-          sendUser:'灏忔槑',
-          getUser:'鏉庡崕',
-        },
-        {
-          type:2,
-          title:'鏍囬',
-          content:'鍐呭',
-          time:'2019-08-07 15:34:26',
-          status:1,//娑堟伅鐘舵�侊細鎷掔粷銆佹帴鏀�
-          isRead:1,//鏄惁宸茶
-          sendUser:'灏忔槑',
-          getUser:'鏉庡崕',
-        },
-        {
-          type:3,
-          title:'鏍囬',
-          content:'鍐呭',
-          time:'2019-08-07 15:34:26',
-          status:1,//娑堟伅鐘舵�侊細鎷掔粷銆佹帴鏀�
-          isRead:0,//鏄惁宸茶
-          sendUser:'灏忔槑',
-          getUser:'鏉庡崕',
-        },
-        {
-          type:4,
-          title:'鏍囬',
-          content:'鍐呭',
-          time:'2019-08-07 15:34:26',
-          status:1,//娑堟伅鐘舵�侊細鎷掔粷銆佹帴鏀�
-          isRead:0,//鏄惁宸茶
-          sendUser:'灏忔槑',
-          getUser:'鏉庡崕',
-        },
-        {
-          type:5,
-          title:'鏍囬',
-          content:'鍐呭',
-          time:'2019-08-07 15:34:26',
-          status:1,//娑堟伅鐘舵�侊細鎷掔粷銆佹帴鏀�
-          isRead:0,//鏄惁宸茶
-          sendUser:'灏忔槑',
-          getUser:'鏉庡崕',
-        },
-        {
-          type:6,
-          title:'鏍囬',
-          content:'鍐呭',
-          time:'2019-08-07 15:34:26',
-          status:1,//娑堟伅鐘舵�侊細鎷掔粷銆佹帴鏀�
-          isRead:1,//鏄惁宸茶
-          sendUser:'灏忔槑',
-          getUser:'鏉庡崕',
-        },
-        {
-          type:6,
-          title:'鏍囬',
-          content:'鍐呭',
-          time:'2019-08-07 15:34:26',
-          status:1,//娑堟伅鐘舵�侊細鎷掔粷銆佹帴鏀�
-          isRead:1,//鏄惁宸茶
-          sendUser:'灏忔槑',
-          getUser:'鏉庡崕',
-        },
-        {
-          type:6,
-          title:'鏍囬',
-          content:'鍐呭',
-          time:'2019-08-07 15:34:26',
-          status:1,//娑堟伅鐘舵�侊細鎷掔粷銆佹帴鏀�
-          isRead:1,//鏄惁宸茶
-          sendUser:'灏忔槑',
-          getUser:'鏉庡崕',
-        },
-        {
-          type:6,
-          title:'鏍囬',
-          content:'鍐呭',
-          time:'2019-08-07 15:34:26',
-          status:1,//娑堟伅鐘舵�侊細鎷掔粷銆佹帴鏀�
-          isRead:1,//鏄惁宸茶
-          sendUser:'灏忔槑',
-          getUser:'鏉庡崕',
-        },
-        {
-          type:6,
-          title:'鏍囬',
-          content:'鍐呭',
-          time:'2019-08-07 15:34:26',
-          status:1,//娑堟伅鐘舵�侊細鎷掔粷銆佹帴鏀�
-          isRead:1,//鏄惁宸茶
-          sendUser:'灏忔槑',
-          getUser:'鏉庡崕',
-        },
-      ],
-      dropdownList:[
-        {
-          label:'鎷掔粷',
+          label:'閫氳繃',
           value:0
         },
         {
-          label:'鎺ユ敹',
+          label:'涓嶉�氳繃',
           value:1
         },
         {
-          label:'閫氳繃',
+          label:'鏌ョ湅鏇村',
+          value:4
+        },
+      ],
+      dropdownList1:[
+        {
+          label:'鎵瑰噯',
           value:2
         },
         {
-          label:'涓嶉�氳繃',
+          label:'涓嶆壒鍑�',
           value:3
         },
         {
-          label:'鎵瑰噯',
+          label:'鏌ョ湅鏇村',
           value:4
         },
-        {
-          label:'涓嶆壒鍑�',
-          value:5
-        },
-        {
-          label:'鏌ョ湅鏇村',
-          value:6
-        },
-      ]
+      ],
+      currentPage:1,
+      pageSize: 16, // 涓�椤�16鏉�
+      total: null,
+      loading: false, // 缁勪欢loading鐨勫睍绀�,榛樿涓簍rue
+      isLoding: false, // 鍔犺浇涓紝loading鍥炬爣,榛樿涓簍rue
+      finishLoding: false // 鍔犺浇瀹屾垚锛屾樉绀哄凡缁忔病鏈夋洿澶氫簡
     }
   },
   mounted(){
     this.getTypeDicts();
+    this.currentPage = 1;
+    this.list = [];
+    this.refresh();
   },
   methods:{
+    refresh(){
+      if(this.currentPage>1){
+        this.isLoding = true
+      }else{
+        this.loading = true
+      }
+      if(this.list.length==0){
+        window.addEventListener("scroll", this.throttle(this.scrollFn, 20000));
+      }
+      let type = this.type==0?null:this.type;
+      this.$axios.get(this.$api.informationNotification.page+'?size='+this.pageSize+'&current='+this.currentPage+(type?'&messageType='+type:'')).then(res => {
+        if(res.code === 201){
+          return
+        }
+        let list = res.data.records;
+        this.total = res.data.total;
+        if(list.length==0){
+          this.finishLoding = true;
+        }else{
+          if(list.length<this.pageSize){
+            this.finishLoding = true;
+          }
+          this.list = this.list.concat(list)
+          if(this.total==this.list.length){
+            this.finishLoding = true;
+          }
+        }
+        this.loading = false
+        this.isLoding = false;
+      })
+    },
     open(){
       this.drawer = true;
     },
@@ -233,26 +189,105 @@
         this.options = data;
       })
     },
-    goNoticeDetail(){
-      this.drawer = false;
-      this.$parent.addTab({
-			v: "娑堟伅璇︽儏",
-			i: "el-icon-s-tools",
-			u: "notice-detail",
-      k:35,
-			p: "abcd"
-		},29);
+    goNoticeDetail(row){
+      this.$axios.put(this.$api.informationNotification.triggerModificationStatusToRead+'/'+row.id).then(res => {
+        this.drawer = false;
+        this.$parent.addTab({
+          v: "娑堟伅璇︽儏",
+          i: "el-icon-s-tools",
+          u: "notice-detail",
+          k:35,
+          p: "abcd"
+        },29);
+        this.list = [];
+        this.currentPage = 1;
+        this.refresh();
+      })
     },
-    handleDropdown(e){
+    handleDropdown(e,row){
       switch(e){
         case 0:
           break;
-        case 6:
-          this.goNoticeDetail()
+        case 4:
+          this.goNoticeDetail(row)
           break;
       }
+    },
+    handleDel(row){
+      this.$confirm('鏄惁鍒犻櫎褰撳墠鏁版嵁?', "璀﹀憡", {
+        confirmButtonText: "纭畾",
+        cancelButtonText: "鍙栨秷",
+        type: "warning"
+      }).then(() => {
+        this.$axios.delete(this.$api.informationNotification.deleteDataBasedOnId+'?id='+row.id).then(res => {
+          if (res.code === 201) {
+            return
+          }
+          this.$message.success('鍒犻櫎鎴愬姛')
+          this.list = [];
+          this.currentPage = 1;
+          this.refresh()
+        }).catch(e => {
+          this.$message.error('鍒犻櫎澶辫触')
+        })
+      }).catch(() => {})
+    },
+    // 婊氬姩瑙﹀簳鍔犺浇
+    scrollFn() {
+      let clientHeight = document.documentElement.clientHeight - 18; //鍙鍖哄煙
+      let scrollHeight = document.body.scrollHeight; // 婊氬姩鏂囨。楂樺害
+      let scrollTop = parseInt(document.documentElement.scrollTop); // 宸叉粴鍔ㄧ殑楂樺害
+      let height = 300;
+      if (
+        scrollTop + clientHeight >= scrollHeight - height &&
+        scrollHeight != 0
+      ) {
+        if (!this.finishLoding&&this.currentPage*this.pageSize<this.total) {
+          this.currentPage = this.currentPage + 1;
+          this.refresh();
+        }
+      } else {
+        return false;
+      }
+    },
+    throttle(fn, wait) {
+      // 灏佽鍑芥暟杩涜鑺傛祦
+      var timer = null;
+      return function () {
+        var context = this;
+        var args = arguments;
+        if (!timer) {
+          timer = setTimeout(function () {
+            fn.apply(context, args);
+            timer = null;
+          }, wait);
+        }
+      };
+    },
+    handleType(){
+      this.list = [];
+      this.currentPage = 1;
+      this.refresh();
+    },
+    handleDropdownAll(e){
+      let type = false;
+      if(e==1){
+        type = true;
+      }
+      this.$axios.put(this.$api.informationNotification.informationReadOrDelete+'/'+type).then(res => {
+        if(res.code===201){
+          return
+        }
+        this.$message.success('鎿嶄綔鎴愬姛')
+        this.list = [];
+        this.currentPage = 1;
+        this.refresh();
+      })
     }
-  }
+  },
+  destroyed() {
+    window.removeEventListener("scroll", this.throttle(), false);
+  },
 }
 </script>
 
diff --git a/static/img/notice-2.svg b/static/img/notice-2.svg
index ac86ffb..415db6a 100644
--- a/static/img/notice-2.svg
+++ b/static/img/notice-2.svg
@@ -1 +1 @@
-<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1713774580175" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2343" width="24" height="24" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M85.333333 0h853.333334a85.333333 85.333333 0 0 1 85.333333 85.333333v853.333334a85.333333 85.333333 0 0 1-85.333333 85.333333H85.333333a85.333333 85.333333 0 0 1-85.333333-85.333333V85.333333a85.333333 85.333333 0 0 1 85.333333-85.333333z m426.666667 213.333333c-68.778667-0.682667-278.144 112.426667-277.333333 149.248 3.242667 296.96 225.322667 447.744 277.333333 448.085334 52.010667 0.341333 278.613333-148.565333 277.333333-448-0.256-37.418667-208.554667-148.650667-277.333333-149.333334z m164.394667 196.010667c12.032 12.458667 12.032 32.981333-0.725334 44.672l-155.264 160.426667a30.506667 30.506667 0 0 1-22.656 9.557333 32.085333 32.085333 0 0 1-23.381333-9.514667l-91.477333-93.781333c-12.757333-13.226667-12.757333-33.706667 0-46.890667 12.8-13.226667 33.322667-13.226667 46.08 0l70.186666 72.533334 132.565334-137.002667a31.36 31.36 0 0 1 44.672 0z" fill="#15B4D4" p-id="2344"></path></svg>
\ No newline at end of file
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1713774491978" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1483" width="24" height="24" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M554.666667 554.666667v-92.586667a128.042667 128.042667 0 1 0-85.333334 0V554.666667H267.946667a42.666667 42.666667 0 0 0-41.386667 53.034666l21.333333 85.333334a42.666667 42.666667 0 0 0 41.386667 32.298666h445.44a42.666667 42.666667 0 0 0 41.386667-32.298666l21.333333-85.333334A42.666667 42.666667 0 0 0 756.053333 554.666667H554.666667zM85.333333 0h853.333334a85.333333 85.333333 0 0 1 85.333333 85.333333v853.333334a85.333333 85.333333 0 0 1-85.333333 85.333333H85.333333a85.333333 85.333333 0 0 1-85.333333-85.333333V85.333333a85.333333 85.333333 0 0 1 85.333333-85.333333z m234.666667 768a21.333333 21.333333 0 1 0 0 42.666667h384a21.333333 21.333333 0 1 0 0-42.666667h-384z" fill="#FAAB0C" p-id="1484"></path></svg>
\ No newline at end of file
diff --git a/static/img/notice-3.svg b/static/img/notice-3.svg
index 415db6a..dcfcf93 100644
--- a/static/img/notice-3.svg
+++ b/static/img/notice-3.svg
@@ -1 +1 @@
-<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1713774491978" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1483" width="24" height="24" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M554.666667 554.666667v-92.586667a128.042667 128.042667 0 1 0-85.333334 0V554.666667H267.946667a42.666667 42.666667 0 0 0-41.386667 53.034666l21.333333 85.333334a42.666667 42.666667 0 0 0 41.386667 32.298666h445.44a42.666667 42.666667 0 0 0 41.386667-32.298666l21.333333-85.333334A42.666667 42.666667 0 0 0 756.053333 554.666667H554.666667zM85.333333 0h853.333334a85.333333 85.333333 0 0 1 85.333333 85.333333v853.333334a85.333333 85.333333 0 0 1-85.333333 85.333333H85.333333a85.333333 85.333333 0 0 1-85.333333-85.333333V85.333333a85.333333 85.333333 0 0 1 85.333333-85.333333z m234.666667 768a21.333333 21.333333 0 1 0 0 42.666667h384a21.333333 21.333333 0 1 0 0-42.666667h-384z" fill="#FAAB0C" p-id="1484"></path></svg>
\ No newline at end of file
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1713774535390" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1993" width="24" height="24" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M85.333333 0h853.333334a85.333333 85.333333 0 0 1 85.333333 85.333333v853.333334a85.333333 85.333333 0 0 1-85.333333 85.333333H85.333333a85.333333 85.333333 0 0 1-85.333333-85.333333V85.333333a85.333333 85.333333 0 0 1 85.333333-85.333333z m426.666667 810.666667a298.666667 298.666667 0 1 0 0-597.333334 298.666667 298.666667 0 0 0 0 597.333334z m-170.666667-256a42.666667 42.666667 0 1 1 0-85.333334 42.666667 42.666667 0 0 1 0 85.333334z m170.666667 0a42.666667 42.666667 0 1 1 0-85.333334 42.666667 42.666667 0 0 1 0 85.333334z m170.666667 0a42.666667 42.666667 0 1 1 0-85.333334 42.666667 42.666667 0 0 1 0 85.333334z" fill="#B162D9" p-id="1994"></path></svg>
\ No newline at end of file
diff --git a/static/img/notice-4.svg b/static/img/notice-4.svg
index dcfcf93..39c8f84 100644
--- a/static/img/notice-4.svg
+++ b/static/img/notice-4.svg
@@ -1 +1 @@
-<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1713774535390" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1993" width="24" height="24" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M85.333333 0h853.333334a85.333333 85.333333 0 0 1 85.333333 85.333333v853.333334a85.333333 85.333333 0 0 1-85.333333 85.333333H85.333333a85.333333 85.333333 0 0 1-85.333333-85.333333V85.333333a85.333333 85.333333 0 0 1 85.333333-85.333333z m426.666667 810.666667a298.666667 298.666667 0 1 0 0-597.333334 298.666667 298.666667 0 0 0 0 597.333334z m-170.666667-256a42.666667 42.666667 0 1 1 0-85.333334 42.666667 42.666667 0 0 1 0 85.333334z m170.666667 0a42.666667 42.666667 0 1 1 0-85.333334 42.666667 42.666667 0 0 1 0 85.333334z m170.666667 0a42.666667 42.666667 0 1 1 0-85.333334 42.666667 42.666667 0 0 1 0 85.333334z" fill="#B162D9" p-id="1994"></path></svg>
\ No newline at end of file
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1713774524927" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1786" width="24" height="24" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M85.333333 0h853.333334a85.333333 85.333333 0 0 1 85.333333 85.333333v853.333334a85.333333 85.333333 0 0 1-85.333333 85.333333H85.333333a85.333333 85.333333 0 0 1-85.333333-85.333333V85.333333a85.333333 85.333333 0 0 1 85.333333-85.333333z m496.426667 257.792c-31.317333-59.306667-108.202667-59.306667-139.52 0L224.469333 672.853333C193.152 733.738667 231.594667 810.666667 294.229333 810.666667h435.541334c62.634667 0 101.12-76.928 69.76-137.813334l-217.770667-415.061333zM512 725.333333a42.666667 42.666667 0 1 1 0-85.333333 42.666667 42.666667 0 0 1 0 85.333333z m-0.938667-341.333333a40.874667 40.874667 0 0 1 40.746667 44.16l-11.562667 143.530667c-1.194667 14.506667-13.269333 25.642667-27.818666 25.642666a28.245333 28.245333 0 0 1-28.074667-25.6l-13.44-143.616A40.362667 40.362667 0 0 1 511.061333 384z" fill="#EA493D" p-id="1787"></path></svg>
\ No newline at end of file
diff --git a/static/img/notice-5.svg b/static/img/notice-5.svg
index 39c8f84..cb6d3b9 100644
--- a/static/img/notice-5.svg
+++ b/static/img/notice-5.svg
@@ -1 +1 @@
-<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1713774524927" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1786" width="24" height="24" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M85.333333 0h853.333334a85.333333 85.333333 0 0 1 85.333333 85.333333v853.333334a85.333333 85.333333 0 0 1-85.333333 85.333333H85.333333a85.333333 85.333333 0 0 1-85.333333-85.333333V85.333333a85.333333 85.333333 0 0 1 85.333333-85.333333z m496.426667 257.792c-31.317333-59.306667-108.202667-59.306667-139.52 0L224.469333 672.853333C193.152 733.738667 231.594667 810.666667 294.229333 810.666667h435.541334c62.634667 0 101.12-76.928 69.76-137.813334l-217.770667-415.061333zM512 725.333333a42.666667 42.666667 0 1 1 0-85.333333 42.666667 42.666667 0 0 1 0 85.333333z m-0.938667-341.333333a40.874667 40.874667 0 0 1 40.746667 44.16l-11.562667 143.530667c-1.194667 14.506667-13.269333 25.642667-27.818666 25.642666a28.245333 28.245333 0 0 1-28.074667-25.6l-13.44-143.616A40.362667 40.362667 0 0 1 511.061333 384z" fill="#EA493D" p-id="1787"></path></svg>
\ No newline at end of file
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1713774611710" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3358" width="24" height="24" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M85.333333 0h853.333334a85.333333 85.333333 0 0 1 85.333333 85.333333v853.333334a85.333333 85.333333 0 0 1-85.333333 85.333333H85.333333a85.333333 85.333333 0 0 1-85.333333-85.333333V85.333333a85.333333 85.333333 0 0 1 85.333333-85.333333z m227.541334 213.333333C257.92 213.333333 213.333333 249.002667 213.333333 292.992v438.016C213.333333 774.997333 257.92 810.666667 312.874667 810.666667h398.250666C766.08 810.666667 810.666667 774.997333 810.666667 731.008V292.992C810.666667 249.002667 766.08 213.333333 711.125333 213.333333H312.874667z m149.333333 85.333334a64 64 0 1 1 0 128 64 64 0 0 1 0-128z m-128 220.842666h355.584c19.626667 0 35.541333 14.336 35.541333 32 0 17.706667-15.914667 32-35.541333 32H334.208c-19.626667 0-35.541333-14.293333-35.541333-32 0-17.664 15.914667-32 35.541333-32z m0 130.56H512c19.626667 0 35.541333 14.293333 35.541333 32 0 17.664-15.914667 32-35.541333 32H334.208c-19.626667 0-35.541333-14.336-35.541333-32 0-17.706667 15.914667-32 35.541333-32z" fill="#F57818" p-id="3359"></path></svg>
\ No newline at end of file
diff --git a/static/img/notice-6.svg b/static/img/notice-6.svg
deleted file mode 100644
index cb6d3b9..0000000
--- a/static/img/notice-6.svg
+++ /dev/null
@@ -1 +0,0 @@
-<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1713774611710" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3358" width="24" height="24" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M85.333333 0h853.333334a85.333333 85.333333 0 0 1 85.333333 85.333333v853.333334a85.333333 85.333333 0 0 1-85.333333 85.333333H85.333333a85.333333 85.333333 0 0 1-85.333333-85.333333V85.333333a85.333333 85.333333 0 0 1 85.333333-85.333333z m227.541334 213.333333C257.92 213.333333 213.333333 249.002667 213.333333 292.992v438.016C213.333333 774.997333 257.92 810.666667 312.874667 810.666667h398.250666C766.08 810.666667 810.666667 774.997333 810.666667 731.008V292.992C810.666667 249.002667 766.08 213.333333 711.125333 213.333333H312.874667z m149.333333 85.333334a64 64 0 1 1 0 128 64 64 0 0 1 0-128z m-128 220.842666h355.584c19.626667 0 35.541333 14.336 35.541333 32 0 17.706667-15.914667 32-35.541333 32H334.208c-19.626667 0-35.541333-14.293333-35.541333-32 0-17.664 15.914667-32 35.541333-32z m0 130.56H512c19.626667 0 35.541333 14.293333 35.541333 32 0 17.664-15.914667 32-35.541333 32H334.208c-19.626667 0-35.541333-14.336-35.541333-32 0-17.706667 15.914667-32 35.541333-32z" fill="#F57818" p-id="3359"></path></svg>
\ No newline at end of file

--
Gitblit v1.9.3