NoticeList.f41c47d4.js 4.2 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["NoticeList"],{"4ba9a":function(e,t,a){"use strict";a("b94e")},5890:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"tabs-wind NoticeList"},[t("div",{staticClass:"crm-title-box"},[t("div",{staticClass:"tit"},[t("span",{directives:[{name:"t",rawName:"v-t",value:"News.Notice",expression:"'News.Notice'"}]})])]),t("div",{staticClass:"main-content"},[t("div",{staticClass:"search crm_search"},[t("div",{staticClass:"search-btn"},[t("el-form",{ref:"form",attrs:{"label-position":"top",model:e.search,"label-width":"80px"}},[t("el-form-item",{staticStyle:{"margin-right":"10px"}},[t("el-select",{staticClass:"crm_search_down_tit select_down",attrs:{filterable:"",size:"small",placeholder:e.$t("placeholder.choose")},model:{value:e.search.read,callback:function(t){e.$set(e.search,"read",t)},expression:"search.read"}},[t("el-option",{attrs:{label:e.$t("State.All"),value:null},nativeOn:{click:function(t){return e.handleSearch.apply(null,arguments)}}}),t("el-option",{attrs:{label:e.$t("News.Unread"),value:0},nativeOn:{click:function(t){return e.handleSearch.apply(null,arguments)}}}),t("el-option",{attrs:{label:e.$t("News.Read"),value:1},nativeOn:{click:function(t){return e.handleSearch.apply(null,arguments)}}})],1)],1)],1)],1)]),t("div",{staticClass:"tab"},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],staticClass:"crm_tab",staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"","element-loading-background":"rgba(43, 48, 67, 0.05)","element-loading-spinner":"el-icon-loading"}},[t("el-table-column",{attrs:{align:"center","header-align":"center",label:e.$t("News.Title")},scopedSlots:e._u([{key:"default",fn:function(a){return[a.row.subject?t("span",{staticClass:"titleClick",on:{click:function(t){return e.toView(a.row,7)}}},[e._v(e._s(a.row.subject))]):t("span",{staticClass:"titleClick"},[e._v(e._s("--"))])]}}])}),t("el-table-column",{attrs:{align:"center",label:e.$t("Drawer.Label.Date")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.addTime||"--")+" ")]}}])}),t("el-table-column",{attrs:{align:"center",width:"150",label:e.$t("Custom.Recording.Status")},scopedSlots:e._u([{key:"default",fn:function(a){return[0==a.row.read?t("span",{directives:[{name:"t",rawName:"v-t",value:"News.Unread",expression:"'News.Unread'"}],staticClass:"state"}):e._e(),1==a.row.read?t("span",{directives:[{name:"t",rawName:"v-t",value:"News.Read",expression:"'News.Read'"}],staticClass:"state"}):e._e()]}}])})],1)],1),e.pagerInfo.rowTotal?t("div",{staticClass:"crm_pagination"},[t("el-pagination",{staticClass:"page",attrs:{background:"",layout:"prev, pager, next","page-size":e.pagerInfo.row,total:e.pagerInfo.rowTotal},on:{"current-change":e.handleCurrentChange}})],1):e._e()])])},n=[],i=(a("14d9"),a("663b")),r=a("f121"),l=a.n(r);let{Code:c}=l.a;var o={name:"NoticeList",data(){return{flag:!1,pictLoading:!1,tableData:[],search:{read:null,date:[],startDate:"",endDate:""},pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0}}},computed:{AccessToken(){return{"Access-Token":this.Session.Get("access_token")}},lang(){return this.Session.Get("lang")}},methods:{handleSearch(){this.pagerInfo.current=1,this.searchFunc()},async searchFunc(){if(this.flag)return;this.flag=!0,this.pictLoading=!0;let e=await i["a"].newsNoticeList({lang:this.lang,...this.search,page:{current:this.pagerInfo.current,row:this.pagerInfo.row}});e.code==c.StatusOK?(this.tableData=e.data,this.pagerInfo.rowTotal=e.page.rowTotal,this.pagerInfo.pageTotal=e.page.pageTotal,this.$pigeon.MessageOK(this.$i18n.t("Msg.SearchSuccess")),this.pictLoading=!1,this.flag=!1):(this.$pigeon.MessageError(e.msg),this.pictLoading=!1,this.flag=!1)},toView(e,t){this.$router.push({path:"/news/content",query:{title:t,id:e.id}}).catch(e=>e),7==t&&(e.read=1)},handleSizeChange(e){this.pagerInfo.row=e,this.searchFunc()},handleCurrentChange(e){this.pagerInfo.current=e,this.searchFunc()}},mounted(){this.searchFunc()}},u=o,d=(a("4ba9a"),a("9054"),a("2877")),h=Object(d["a"])(u,s,n,!1,null,"98f34bc6",null);t["default"]=h.exports},"68b4":function(e,t,a){},9054:function(e,t,a){"use strict";a("68b4")},b94e:function(e,t,a){}}]);