| | |
| | | report, |
| | | certification, |
| | | sealScope, |
| | | informationNotification, |
| | | } |
| | | } |
| | | |
| | |
| | | addSeal:"/sealScope/addSeal",//æ·»å å°ç« åæ° |
| | | } |
| | | |
| | | const informationNotification = { |
| | | checkForUnreadData:"/informationNotification/checkForUnreadData",//æ¥è¯¢æ¯å¦å卿ªè¯»æ°æ® |
| | | deleteDataBasedOnId:"/informationNotification/deleteDataBasedOnId",//æ ¹æ®Idå 餿°æ® |
| | | informationReadOrDelete:"/informationNotification/informationReadOrDelete",//æ è®°ææä¿¡æ¯ä¸ºå·²è¯»-å 餿æå·²è¯»æ¶æ¯ |
| | | page:"/informationNotification/page",//æ»å¨å页æ¥è¯¢ |
| | | updateMessageStatus:"/informationNotification/updateMessageStatus",//æ´æ°æ¶æ¯ç¶æï¼æç»ãæ¥æ¶ï¼ |
| | | triggerModificationStatusToRead:"/informationNotification/triggerModificationStatusToRead",//ç¹å»è¯¦æ
触åä¿®æ¹ç¶æä¸ºå·²è¯» |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | 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' |
| | |
| | | <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>æ¶æ¯ç±»åï¼å®¡æ¹ </span> --> |
| | | <span>åé人ï¼111 </span> |
| | | <span> </span> |
| | | <span>æ¶ä»¶äººï¼111</span> |
| | | <span> </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> |
| | | |
| | |
| | | data() { |
| | | return{ |
| | | noticeInfo:{ |
| | | u:'b1-inspect-order-plan' |
| | | u:'b1-report-preparation' |
| | | }, |
| | | } |
| | | } |
| | |
| | | |
| | | <style scoped> |
| | | .notice-detail-page{ |
| | | height: calc(100vh - 120px); |
| | | overflow-y: auto; |
| | | padding-top: 16px; |
| | | } |
| | | .notice-detail-head{ |
| | |
| | | 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> |
| | |
| | | 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"; |
| | |
| | | </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"> |
| | |
| | | activeIndex: 0, |
| | | power: [], |
| | | editVisible:false, |
| | | query:{} |
| | | query:{}, |
| | | newMsg:false, |
| | | timer:null, |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | this.activeBox = 0 |
| | | } |
| | | this.getPower() |
| | | this.timer&&clearInterval(this.timer); |
| | | this.timer = setInterval(()=>{ |
| | | this.checkForUnreadData() |
| | | },10000) |
| | | }, |
| | | methods: { |
| | | saveClick(){ |
| | |
| | | }, |
| | | 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> |
| | |
| | | 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" |
| | |
| | | </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">···</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;">···</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> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | export default { |
| | | data(){ |
| | | return{ |
| | |
| | | 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çå±ç¤º,é»è®¤ä¸ºtrue |
| | | isLoding: false, // å è½½ä¸ï¼loading徿 ,é»è®¤ä¸ºtrue |
| | | 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+'¤t='+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; |
| | | }, |
| | |
| | | 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> |
| | | |
| | |
| | | <?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> |
| | | <?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> |
| | |
| | | <?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> |
| | | <?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> |
| | |
| | | <?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> |
| | | <?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> |
| | |
| | | <?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> |
| | | <?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> |