chunk-e1c65ee0.3ee25f5e.js 4.4 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e1c65ee0"],{"1a64":function(e,t,s){"use strict";s("98b5")},"98b5":function(e,t,s){},ba2e:function(e,t,s){"use strict";s.r(t);var a=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"top-box flex-align"},[t("div",[t("a-button",{attrs:{type:"primary"},on:{click:e._UserMessageDeleteList}},[e._v("删除")])],1),t("div",{staticClass:"flex"},[t("a-select",{staticStyle:{width:"260px","margin-right":"8px"},attrs:{"default-value":"",placeholder:"选择类型"},on:{change:e.statusChange}},[t("a-select-option",{key:""},[e._v("全部")]),t("a-select-option",{key:0},[e._v("解析任务")]),t("a-select-option",{key:1},[e._v("生成任务")])],1),t("a-input-search",{staticStyle:{width:"400px"},attrs:{placeholder:"搜索学段","enter-button":""},on:{search:e.onSearch}})],1)]),t("a-table",{attrs:{rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange},columns:e.columns,loading:e.loading,dataSource:e.data,size:"small",rowKey:e=>e.id,pagination:e.pagination},on:{change:e.handleChange},scopedSlots:e._u([{key:"isRead",fn:function(s){return[t("span",{style:{color:s?"green":"orange"}},[e._v(e._s(s?"已读":"未读"))])]}},{key:"creationTime",fn:function(t){return[e._v(" "+e._s(e._f("sliceTime")(t))+" ")]}},{key:"action",fn:function(s,a){return[t("a",{staticClass:"m-r8",on:{click:function(t){return e.toDetails(a)}}},[e._v("详情")]),t("a",{on:{click:function(t){return e._UserMessageDelete(a)}}},[e._v("删除")])]}}])})],1)},n=[],i=(s("14d9"),s("d58c")),o=s("4ec3");const c=[{title:"消息内容",dataIndex:"message",key:"message",scopedSlots:{customRender:"message"},ellipsis:!0,width:180},{title:"时间",dataIndex:"creationTime",key:"creationTime",scopedSlots:{customRender:"creationTime"},ellipsis:!0,width:100},{title:"操作",key:"action",dataIndex:"action",scopedSlots:{customRender:"action"},width:100,align:"center"}];var r={mixins:[i["a"]],components:{},data(){return{columns:c,loading:!1,data:[],selectedRowKeys:[],KeyWisReadrd:"",KeyWord:"",MessageType:""}},mounted(){this._GetUserMessage()},methods:{_UserMessageDeleteList(){if(0==this.selectedRowKeys.length)return void this.$message.error("请选择需要删除的消息!");let e=this;this.$confirm({okText:"确认",cancelText:"取消",mask:!1,title:`您确认要这${e.selectedRowKeys.length}条消息吗?`,onOk(){e.loading=!0;let t={idList:e.selectedRowKeys};Object(o["bc"])(t).then(t=>{e.$message.success("删除成功!"),e._GetUserMessage(),e.selectedRowKeys=[],e.loading=!1}).catch(t=>{e.loading=!1})}})},_UserMessageDelete(e){let t=this;this.$confirm({okText:"确认",cancelText:"取消",mask:!1,title:"您确认要此条消息吗?",onOk(){t.loading=!0;let s={id:e.id};Object(o["ac"])(s).then(e=>{t.$message.success("删除成功!"),t._GetUserMessage(),t.loading=!1}).catch(e=>{t.loading=!1})}})},_GetUserMessage(){this.loading=!0;let e={KeyWord:this.KeyWord,isRead:this.isRead,MessageType:this.MessageType,SkipCount:(this.pagination.current-1)*this.pagination.pageSize,MaxResultCount:this.pagination.pageSize,isPreview:!1};Object(o["L"])(e).then(e=>{console.log(e,"消息列表"),this.data=e.items,this.pagination.total=e.totalCount,this.loading=!1}).catch(e=>{this.loading=!1})},showModal(e,t={}){this.$refs.EditLearningSection.showModal(e,t)},onSearch(e){this.KeyWord=e;const t={...this.pagination};t.current=1,this.pagination=t,this._GetUserMessage()},onSelectChange(e){this.selectedRowKeys=e},handleChange(e,t,s){const a={...this.pagination};a.current=e.current,this.pagination=a,this._GetUserMessage()},toDetails(e){switch(console.log(e,"item"),e.messageType){case 0:this.$router.push({name:"questionImportList"});break;case 1:this.$router.push({name:"examPaperManage"});break}},statusChange(e){console.log(e),this.MessageType=e;const t={...this.pagination};t.current=1,this.pagination=t,this._GetUserMessage()}}},l=r,h=(s("1a64"),s("2877")),g=Object(h["a"])(l,a,n,!1,null,"0e6e2414",null);t["default"]=g.exports},d58c:function(e,t,s){"use strict";s.d(t,"a",(function(){return a}));const a={data(){return{pagination:{current:1,total:0,defaultPageSize:15,pageSize:15,showTotal:e=>`共 ${e} 条数据`,showSizeChanger:!0,pageSizeOptions:["15","20","30","50","100"],onShowSizeChange:(e,t)=>{console.log(e,t),this.pagination.pageSize=t,this.pagination.current=e}}}},methods:{TableChange(e){const t={...this.pagination};t.current=e.current,this.pagination=t}}}}}]);
  2. //# sourceMappingURL=chunk-e1c65ee0.3ee25f5e.js.map