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.
wkcrm/static/js/chunk-03c4.33b5c5ac.js

1 line
13 KiB

4 years ago
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-03c4"],{"77fj":function(e,t,s){"use strict";var a=s("Btlj");s.n(a).a},"8GGt":function(e,t,s){"use strict";var a=s("nWZm");s.n(a).a},"9/X1":function(e,t,s){"use strict";var a=s("gQl/");s.n(a).a},"9kPm":function(e,t,s){"use strict";t.a={data:function(){return{showTable:!0}},methods:{mixinSortFn:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ascending";if("[object Array]"!==Object.prototype.toString.call(e))return[];if(!t)return e;e.sort(function(e,a){if(e[t]===a[t])return 0;var l=isNaN(Number(e[t]))||isNaN(Number(a[t]))?e[t]<a[t]:Number(e[t])<Number(a[t]);return"descending"===s?l?1:-1:l?-1:1})}}}},AO2w:function(e,t,s){"use strict";s.r(t);var a=s("9kPm"),l=s("z5/s"),i=s("CMIa"),n=s("7Qib"),o={name:"LogStatistics",components:{FiltrateHandleView:i.a},mixins:[a.a],data:function(){return{loading:!1,tableHeight:document.documentElement.clientHeight-190,postParams:{},list:[],fieldList:[{field:"realname",name:"员工"},{field:"count",name:"填写数"},{field:"unCommentCount",name:"未评论数"},{field:"commentCount",name:"已评论数"}]}},mounted:function(){var e=this;window.onresize=function(){e.tableHeight=document.documentElement.clientHeight-190}},methods:{getDataList:function(e){var t=this;this.postParams=e,this.loading=!0,Object(l.e)(e).then(function(e){t.list=e.data||[],t.loading=!1}).catch(function(){t.loading=!1})},exportExcel:function(){var e=this;this.loading=!0,Object(l.d)(this.postParams).then(function(t){e.loading=!1,Object(n.c)(t)}).catch(function(){e.loading=!1})}}},u=(s("8GGt"),s("KHd+")),c=Object(u.a)(o,function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"main-container"},[s("filtrate-handle-view",{staticClass:"filtrate-bar",attrs:{title:"日志分析","module-type":"oa"},on:{load:function(t){e.loading=!0},change:e.getDataList}}),e._v(" "),s("div",{staticClass:"content"},[s("div",{staticClass:"table-content"},[e.showTable?s("el-table",{attrs:{data:e.list,height:e.tableHeight,stripe:"",border:"","highlight-current-row":""},on:{"sort-change":function(t){var s=t.prop,a=t.order;return e.mixinSortFn(e.list,s,a)}}},e._l(e.fieldList,function(e,t){return s("el-table-column",{key:t,attrs:{prop:e.field,label:e.name,sortable:"custom",align:"center","header-align":"center"}})})):e._e()],1)])],1)},[],!1,null,"33d59c36",null);c.options.__file="Log.vue";t.default=c.exports},Btlj:function(e,t,s){},CMIa:function(e,t,s){"use strict";var a=s("KTTK"),l=s("ERJp"),i=s("6iAj"),n=s("UCfG"),o=s("HHBN"),u=s("ZX9L"),c=s("wd/R"),r=s.n(c),h={name:"FiltrateHandleView",components:{TimeTypeSelect:u.a,XhStructureCell:n.a,XhUserCell:o.a},props:{moduleType:{type:String},title:{type:String,default:""},showFilterView:{default:!0,type:Boolean},showYearSelect:{default:!1,type:Boolean},showBusinessSelect:{default:!1,type:Boolean},showUserSelect:{default:!0,type:Boolean},showCustomSelect:{default:!1,type:Boolean},customDefault:"",customOptions:{default:function(){return[]},type:Array},showProductSelect:{default:!1,type:Boolean}},data:function(){return{pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},yearValue:"",timeTypeValue:{},dataSelect:1,structuresSelectValue:[],userSelectValue:[],businessOptions:[],businessStatusValue:"",productValue:[],productOptions:[],customValue:""}},computed:{showUserStrucSelect:function(){return this.showUserSelect}},watch:{},mounted:function(){var e=this;this.showCustomSelect&&(this.customValue=this.customDefault),this.showYearSelect&&(this.yearValue=r()(new Date).year().toString()),this.$emit("load"),this.showBusinessSelect?this.getBusinessStatusList(function(){e.postFiltrateValue()}):this.postFiltrateValue(),this.showProductSelect&&this.getProductCategoryIndex()},beforeDestroy:function(){},methods:{structureChange:function(e){this.structuresSelectValue=e.value||[]},userChange