webpackJsonp([11],{"8jHj":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("d7EF"),n=a.n(r),o=a("EOvX"),s={name:"member-group-log",data:function(){return{searchKey:"",dateValue:[],tableData:[],total:0,pageSize:20,currentPage:1,loading:!1}},filters:{formatTimeYMD:function(e){return e?Object(o.a)(new Date(e),"yyyy-MM-dd"):"--"},formatTimeHMS:function(e){return e?Object(o.a)(new Date(e),"hh:mm:ss"):"--"}},methods:{selectDate:function(e){this.currentPage=1,this.getList()},clearSearch:function(){this.currentPage=1,this.getList()},getList:function(){var e=this;this.loading=!0;var t=this.dateValue||[],a=n()(t,2),r=a[0],o=void 0===r?"":r,s=a[1],i=void 0===s?"":s;return this.axios.get("/gic-member-tag-web/member-tag-group/groupLog",{params:{pageSize:this.pageSize,pageNum:this.currentPage,requestProject:"gic-member-tag-web",search:this.searchKey,startDate:o,endDate:i}}).then(function(t){var a=t.data,r=t.data.result;console.log(a),1===a.errorCode&&(e.total=r.totalCount,e.tableData=r.result||[]),e.loading=!1})},handleCurrentChange:function(e){this.currentPage=e,this.getList()},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getList()},onSearch:function(){this.currentPage=1,this.getList()},getName:function(e){return e&&e.split("-")[0]||"--"},getPhone:function(e){return e&&e.split("-")[1]||"--"},formatter:function(e,t,a){return a||"--"}},mounted:function(){this.searchKey=this.$route.query.groupName||"",this.getList()}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"member-group-log"},[a("div",{staticClass:"member-group-log__content"},[a("div",{staticClass:"font-0"},[a("el-input",{staticClass:"w-220 m-r-8",attrs:{placeholder:"请输入内容","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onSearch(t)}},model:{value:e.searchKey,callback:function(t){e.searchKey=t},expression:"searchKey"}}),e._v(" "),a("el-date-picker",{staticClass:"date-picker",attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"]},on:{change:e.selectDate},model:{value:e.dateValue,callback:function(t){e.dateValue=t},expression:"dateValue"}})],1),e._v(" "),a("div",{staticClass:"common-wrap__table m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.tableData}},[a("el-table-column",{attrs:{label:"日志ID",width:350,formatter:e.formatter,prop:"logId"}}),e._v(" "),a("el-table-column",{attrs:{width:180,label:"分组名称",prop:"operateObject",formatter:e.formatter,"show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"操作内容",prop:"content",formatter:e.formatter,"show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{width:180,label:"操作时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",{staticClass:"h-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("p",{staticClass:"h-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{width:180,label:"操作人"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",{staticClass:"h-18"},[e._v(e._s(e.getName(t.row.userName)))]),e._v(" "),a("p",{staticClass:"h-18"},[e._v(e._s(e.getPhone(t.row.userName)))])]}}])})],1)],1),e._v(" "),0!==e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[10,20,30,40],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()])])},staticRenderFns:[]};var l=a("VU/8")(s,i,!1,function(e){a("bWGq"),a("H7dz")},"data-v-93136442",null);t.default=l.exports},H7dz:function(e,t){},bWGq:function(e,t){}});