You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
6.1 KiB

"use strict";(self["webpackChunkagile_portal_front"]=self["webpackChunkagile_portal_front"]||[]).push([[251],{86251:(t,e,a)=>{a.r(e),a.d(e,{default:()=>c});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"my-smg"},[e("div",{staticClass:"btn-group",staticStyle:{"text-align":"right","margin-bottom":"10px"}},[e("el-button",{attrs:{type:"primary",size:"mini",disabled:0==t.ids.length},on:{click:t.handleImport}},[t._v("已读")]),e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.handleImports}},[t._v("全部已读")])],1),e("div",{staticClass:"tale-list"},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"messageList",staticStyle:{"min-height":"355px","max-height":"500px"},attrs:{data:t.goodsList,"max-height":"500px"},on:{"selection-change":t.handleSelectionChange}},[e("div",{staticStyle:{"text-align":"left"},attrs:{slot:"empty"},slot:"empty"},[e("el-empty",{attrs:{description:"暂无数据"}})],1),e("el-table-column",{attrs:{align:"center",type:"selection",width:"55"}}),e("el-table-column",{attrs:{align:"center",label:"消息标题",prop:"msgTitle","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",{staticStyle:{color:"#1890ff",cursor:"pointer"},on:{click:function(e){return t.handleDetail(a.row)}}},[t._v(t._s(a.row.msgTitle))])]}}])}),e("el-table-column",{attrs:{align:"center",label:"消息内容",prop:"msgText","show-overflow-tooltip":!0}}),e("el-table-column",{attrs:{align:"center",label:"消息状态",prop:"msgStatus"},scopedSlots:t._u([{key:"default",fn:function(a){return["1"===a.row.msgStatus?e("span",{staticClass:"review-status"},[e("i",{staticClass:"icon-circle green"}),t._v("已读 ")]):t._e(),"0"===a.row.msgStatus?e("span",{staticClass:"review-status"},[e("i",{staticClass:"icon-circle red"}),t._v("未读 ")]):t._e()]}}])}),e("el-table-column",{attrs:{align:"center",label:"时间",prop:"createTime","show-overflow-tooltip":!0}})],1),e("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total > 0"}],attrs:{total:t.total,page:t.queryParams.pageNum,limit:t.queryParams.pageSize},on:{"update:page":function(e){return t.$set(t.queryParams,"pageNum",e)},"update:limit":function(e){return t.$set(t.queryParams,"pageSize",e)},pagination:t.getList}})],1),e("el-dialog",{attrs:{title:"查看消息详情",visible:t.openPreview,width:"780px","append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(e){t.openPreview=e},"before-close":t.colseCk}},[e("div",{staticClass:"content"},[e("div",{staticClass:"news-title"},[t._v(t._s(t.detail.msgTitle))]),e("div",{staticClass:"news-upadate-time"},[t._v(t._s(t.detail.createTime))]),e("div",{staticClass:"news-detail"},[e("p",[t._v(t._s(t.detail.msgText))])])]),e("div",{staticClass:"dialog-footer",staticStyle:{"text-align":"right"},attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:t.colseCk}},[t._v("关 闭")])],1)])],1)},n=[],i=(a(21249),a(32900));const r={name:"MyMsg",data:function(){return{loading:!1,ids:[],single:!0,multiple:!0,total:10,goodsList:[],queryParams:{pageNum:1,pageSize:10},openPreview:!1,detail:{}}},created:function(){this.getList()},methods:{getList:function(){var t=this;(0,i.rK)(this.queryParams).then((function(e){t.goodsList=e.rows,t.total=e.total}))},handleImport:function(){var t=this;0!=this.ids.length?(0,i.jr)(this.ids).then((function(e){t.$message({type:"success",message:"成功标记已读"}),t.getList()})):this.$message({type:"warning",message:"请选择需要标记的数据"})},handleImports:function(){var t=this;(0,i.jr)([]).then((function(e){t.$message({type:"success",message:"成功标记已读"}),t.getList()}))},handleDetail:function(t){var e=this;(0,i.JE)(t.msgId).then((function(t){e.detail=t.data,e.openPreview=!0}))},colseCk:function(){this.openPreview=!1,this.getList()},handleSelectionChange:function(t){this.ids=t.map((function(t){return t.msgId})),this.single=1!=t.length,this.multiple=!t.length}}},o=r;var l=a(43736),u=(0,l.Z)(o,s,n,!1,null,"45009cb2",null);const c=u.exports},32900:(t,e,a)=>{a.d(e,{Cp:()=>S,F7:()=>L,Hc:()=>w,Ht:()=>l,JE:()=>y,W1:()=>p,WG:()=>r,_I:()=>C,aX:()=>n,bL:()=>Z,c0:()=>P,cT:()=>b,d5:()=>i,e_:()=>h,en:()=>u,fR:()=>o,in:()=>_,jr:()=>v,oK:()=>g,qS:()=>d,rK:()=>f,uN:()=>m,ur:()=>c});var s=a(73821);function n(t){return(0,s.Z)({url:"/myApply/laboratoryList",method:"get",params:t})}function i(t){return(0,s.Z)({url:"/myApply/laboratoryDetail?reviewId="+t,method:"get"})}function r(t){return(0,s.Z)({url:"/myApply/exportList",method:"get",params:t})}function o(t){return(0,s.Z)({url:"/myApply/download",method:"get",params:t})}function l(t){return(0,s.Z)({url:"/myLab/list",method:"get",params:t})}function u(t){return(0,s.Z)({url:"/myLab/info?applyId="+t,method:"get"})}function c(t){return(0,s.Z)({url:"/myLab/restart",method:"post",data:t})}function d(t){return(0,s.Z)({url:"/myLab/dataInjection",method:"post",data:t})}function m(t){return(0,s.Z)({url:"/myLab/fileList?applyId="+t,method:"get"})}function p(t){return(0,s.Z)({url:"/myLab/applyDown",method:"post",data:t})}function g(t){return(0,s.Z)({url:"/api/userApiList",method:"get",params:t})}function h(t){return(0,s.Z)({url:"/api/userApiStatisticsList",method:"get",params:t})}function f(t){return(0,s.Z)({url:"/myMessage/page",method:"get",params:t})}function y(t){return(0,s.Z)({url:"/myMessage/detail?msgId="+t,method:"post"})}function v(t){return(0,s.Z)({url:"myMessage/markRead",method:"post",data:t})}function w(t){return(0,s.Z)({url:"/myResources/list",method:"get",params:t})}function b(t){return(0,s.Z)({url:"/myResources/uploadFile",method:"post",data:t,headers:{"Content-Type":"multipart/form-data"}})}function C(t){return(0,s.Z)({url:"/myResources/delete?fileId="+t,method:"delete"})}function _(t){return(0,s.Z)({url:"/rePwd/getPhoneByUser?username="+t,method:"get"})}function Z(){return(0,s.Z)({url:"/rePwd/sendPhoneCode",method:"get"})}function L(t){return(0,s.Z)({url:"/rePwd/verifyPhoneCode?phoneCode="+t,method:"get"})}function P(t){return(0,s.Z)({url:"/rePwd/reset",method:"post",data:t})}function S(t){return(0,s.Z)({url:"/changePassword",method:"post",data:t})}}}]);