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-0d57.438d56a8.js

1 line
13 KiB

3 years ago
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-0d57"],{"1q41":function(e,t,s){},"77fj":function(e,t,s){"use strict";var a=s("Btlj");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 n=isNaN(Number(e[t]))||isNaN(Number(a[t]))?e[t]<a[t]:Number(e[t])<Number(a[t]);return"descending"===s?n?1:-1:n?-1:1})}}}},AO2w:function(e,t,s){"use strict";s.r(t);var a=s("9kPm"),n=s("z5/s"),i=s("CMIa"),l=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(n.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(n.d)(this.postParams).then(function(t){e.loading=!1,Object(l.c)(t)}).catch(function(){e.loading=!1})}}},u=(s("nB0Y"),s("KHd+")),r=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}},[s("el-button",{staticClass:"export-button",attrs:{type:"primary"},nativeOn:{click:function(t){return e.exportExcel(t)}}},[e._v("导出")])],1),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,"8b03f588",null);r.options.__file="Log.vue";t.default=r.exports},BpwI:function(e,t,s){},Btlj:function(e,t,s){},CMIa:function(e,t,s){"use strict";var a=s("QbLZ"),n=s.n(a),i=s("KTTK"),l=s("ERJp"),o=s("6iAj"),u=s("UCfG"),r=s("HHBN"),c=s("ZX9L"),h=s("wd/R"),p=s.n(h),d=s("L2JU"),f={name:"FiltrateHandleView",components:{TimeTypeSelect:c.a,XhStructureCell:u.a,XhUserCell:r.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:n()({},Object(d.b)(["userInfo"]),{showUserStrucSelect:function(){return this.showUserSelect}}),watch:{},mounted:function(){var e=this;this.showCustomSelect&&(this.customValue=this.customDefault),this.showYearSelect&&(this.yearValue=p()(new Date).year().toString()),this.$emit("load"),this.showBusinessSelect?this.getBusinessStatusList(function(){e.postFiltrateValue()}):this.postFiltrateValue(),this.showProductSelect&&this.getProd