企微助手 ,仓库名 短剧

89.588e342b6ea89acc835a.js 6.4KB

1
  1. webpackJsonp([89],{"3sSK":function(e,t){},"4rb+":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("Xxa5"),i=a.n(n),s=a("exGp"),o=a.n(s),l=a("pdUL"),r=a("lFm0"),d=a("gzej"),c=a("FsX6"),g={components:{selfInputV2:l.a,selfSelectCorp:r.a,datePicker:d.a,selfChannelV2:c.a},data:function(){var e=[this.$getDay(-30,!1),this.$getDay(0,!1)];return{reset:!1,default_time:e,pageLoading:!1,height:"",detailLoading:!1,detailsTableCol:[{column:"create_time",name:"时间",min_width:140,fixed:"left"},{column:"corp_name",name:"企微主体",min_width:200,fixed:""},{column:"user_name",name:"成员",min_width:140,fixed:""},{column:"msg_type_text",name:"消息类型",min_width:140,fixed:""},{column:"send_status_text",name:"发送状态",min_width:140,fixed:""},{column:"notice",name:"消息内容",min_width:400,fixed:""}],pagination:{page:1,page_size:20,pages:0,total:0},filter:{sys_group_id:1==this.$cookie.getCookie("isSuperManage")?sessionStorage.getItem("company_session_defaultCorp_level_1").toString():"",time:e,corpid:"",user_name:"",send_status:1,msg_type:""}}},created:function(){this.initTableHeight(),this.handleGetData()},methods:{handleGetData:function(){this.handleGetList()},handleGetList:function(){var e=this;return o()(i.a.mark(function t(){var a,n,s,o,l,r;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e.detailLoading=!0,a={sys_group_id:e.filter.sys_group_id,start_date:e.filter.time[0],end_date:e.filter.time[1],corp_id:e.filter.corpid,user_name:e.filter.user_name,send_status:e.filter.send_status,msg_type:e.filter.msg_type,page:e.pagination.page,page_size:e.pagination.page_size},n=""+e.URL.BASEURL+e.URL.system_sendNoticeList,t.next=6,e.$axios.get(n,{params:a});case 6:s=t.sent,o=s.data,(l=void 0===o?{}:o)&&0==l.errno?(r=Array.isArray(l.rst.data)?l.rst.data:[],e.$refs.detailsTable.reloadData(r),e.pagination.total=l.rst.pageInfo.total,e.pagination.pages=l.rst.pageInfo.pages):4002!=l.errno&&(e.$message.warning(l.err),e.$refs.detailsTable.reloadData([]),e.pagination.total=0,e.pagination.pages=0),t.next=18;break;case 12:t.prev=12,t.t0=t.catch(0),console.log(t.t0),e.$refs.detailsTable.reloadData([]),e.pagination.total=0,e.pagination.pages=0;case 18:return t.prev=18,e.detailLoading=!1,t.finish(18);case 21:case"end":return t.stop()}},t,e,[[0,12,18,21]])}))()},handleCurrentChange:function(e){this.pagination.page=e,this.handleGetData()},onChangeTime:function(e){this.filter.time=Array.isArray(e)?e:[],this.pagination.page=1,this.handleGetData()},onChangeCorpid:function(e){this.pagination.page=1,this.handleGetData()},onChangeUserName:function(e){this.filter.user_name=e,this.pagination.page=1,this.handleGetData()},onChangeSendStatus:function(e){console.log("onChangeSendStatus => ",e),this.filter.send_status=e,this.pagination.page=1,this.handleGetData()},onChangeMsgType:function(e){console.log("onChangeSendStatus => ",e),this.filter.msg_type=e,this.pagination.page=1,this.handleGetData()},onClickReset:function(){this.reset=!this.reset,this.filter.time=this.default_time,this.filter.corpid="",this.filter.user_name="",this.filter.send_status=1,this.filter.msg_type="",this.pagination.page=1,this.handleGetData()},getHeaderCellStyle:function(){return{backgroundColor:"#FFFFFF !important",border:"none!important"}},initTableHeight:function(){this.height=document.documentElement.clientHeight-240>400?document.documentElement.clientHeight-240:400}}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.pageLoading,expression:"pageLoading"}],staticClass:"customerStaff-wrap"},[a("div",{staticClass:"screenBox",staticStyle:{"padding-right":"100px"}},[a("datePicker",{attrs:{reset:e.reset,title:"自定义",quickFlag:!0,afferent_time:e.default_time,clearFlag:!1},on:{changeTime:e.onChangeTime}}),e._v(" "),a("selfSelectCorp",{staticStyle:{"margin-right":"30px"},on:{change:e.onChangeCorpid},model:{value:e.filter.corpid,callback:function(t){e.$set(e.filter,"corpid",t)},expression:"filter.corpid"}}),e._v(" "),a("selfInputV2",{staticStyle:{"margin-left":"-20px"},attrs:{labelWidth:!0,label_name:"成员",placeholder:"请输入"},on:{change:e.onChangeUserName},model:{value:e.filter.user_name,callback:function(t){e.$set(e.filter,"user_name",t)},expression:"filter.user_name"}}),e._v(" "),a("selfChannelV2",{attrs:{title:"消息类型",type:"msgType",labelWidth:""},on:{change:e.onChangeMsgType},model:{value:e.filter.msg_type,callback:function(t){e.$set(e.filter,"msg_type",t)},expression:"filter.msg_type"}}),e._v(" "),a("selfChannelV2",{attrs:{title:"发送状态",type:"msgSendStatus",labelWidth:""},on:{change:e.onChangeSendStatus},model:{value:e.filter.send_status,callback:function(t){e.$set(e.filter,"send_status",t)},expression:"filter.send_status"}}),e._v(" "),a("div",{staticClass:"reset",on:{click:e.onClickReset}},[e._v("重置")])],1),e._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.detailLoading,expression:"detailLoading"}]},[a("ux-grid",{ref:"detailsTable",staticClass:"detailsTable",attrs:{border:!1,"header-cell-style":e.getHeaderCellStyle,"show-footer-overflow":"tooltip","show-overflow":"tooltip",size:"mini",height:e.height},on:{"row-click":function(){}}},e._l(e.detailsTableCol,function(t,n){return a("ux-table-column",{key:t.column+t.name,attrs:{resizable:!0,field:t.column,title:t.name,"min-width":t.min_width?t.min_width:160,fixed:t.fixed?t.fixed:"",align:"center"},scopedSlots:e._u([{key:"header",fn:function(){return[a("div",{staticClass:"flex-align-jus-center"},[e._v("\n "+e._s(t.name)+"\n "),t.notes?a("el-tooltip",{attrs:{content:t.notes,placement:"top"}},[a("div",[a("i",{staticClass:"el-icon-question"})])]):e._e()],1)]},proxy:!0},{key:"default",fn:function(n){var i=n.row;return["send_status_text"==t.column?[1==i.send_status?a("span",{staticClass:"c-FE9"},[e._v(e._s(i[t.column]))]):a("span",{staticClass:"c-00b38a"},[e._v(e._s(i[t.column]))])]:a("span",[e._v(e._s(i[t.column]||0==i[t.column]?e.$formatNum(i[t.column]):"-"))])]}}],null,!0)})}),1),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:e.pagination.total>0,expression:"pagination.total > 0"}],staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","current-page":e.pagination.page,layout:"prev, pager, next","page-count":Number(e.pagination.pages)},on:{"current-change":e.handleCurrentChange}})],1)],1)])},staticRenderFns:[]};var u=a("VU/8")(g,p,!1,function(e){a("3sSK")},"data-v-391afc09",null);t.default=u.exports}});