소스 검색

bug 修复

lilei 2 년 전
부모
커밋
5917dbaccf
1개의 변경된 파일14개의 추가작업 그리고 5개의 파일을 삭제
  1. 14 5
      src/views/notice/list.vue

+ 14 - 5
src/views/notice/list.vue

@@ -169,11 +169,20 @@ export default {
       this.queryParam.endDate = date[1] ? date[1] : ''
     },
     handleSetRead () {
-      this.setAllNoticeRead().then(res => {
-      	if (res.status == 200) {
-          this.$message.info(res.message)
-          this.resetSearchForm()
-      	}
+      const _this = this
+      this.$confirm({
+        title: '提示',
+        content: '确认将所有未读消息标记为已读?',
+        centered: true,
+        closable: true,
+        onOk () {
+          _this.setAllNoticeRead().then(res => {
+           	if (res.status == 200) {
+              _this.$message.info(res.message)
+              _this.resetSearchForm()
+           	}
+          })
+        }
       })
     },
     toAction (data) {