|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-40a66b02"],{"6eb8":function(e,t,a){},"8c03":function(e,t,a){"use strict";a.r(t);var i=a("c7eb"),r=a("1da1"),n=(a("a15b"),a("d81d"),a("c73d"),a("90e7")),o={name:"index",data:function(){return{formValidate:{page:1,limit:15,data:"",nickname:""},tableList2:[],timeVal:[],fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},currentid:0,productRow:{},loading2:!1,total2:0}},created:function(){},mounted:function(){this.getListService()},methods:{onchangeTime:function(e){this.timeVal=e,this.formValidate.data=this.timeVal?this.timeVal.join("-"):"",this.getListService()},selectChange:function(e){this.formValidate.data=e,this.timeVal=[],this.getListService()},getListService:function(){var e=this;this.loading2=!0,Object(n.G)(this.formValidate).then(function(){var t=Object(r.a)(Object(i.a)().mark((function t(a){var r;return Object(i.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=a.data,e.tableList2=r.list,e.total2=r.count,e.tableList2.map((function(e){e._isChecked=!1})),e.loading2=!1;case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.loading2=!1,e.$message.error(t.msg)}))},userSearchs:function(){this.formValidate.page=1,this.getListService()},currentidRadio:function(e){self.currentid=e.uid,this.productRow=e,this.productRow.uid?"image"===this.$route.query.fodder?(e={image:this.productRow.headimgurl,uid:this.productRow.uid},form_create_helper.set("image",e),form_create_helper.close("image")):this.$emit("imageObject",{image:this.productRow.headimgurl,uid:this.productRow.uid}):this.$message.warning("请先选择商品")}}};a("e32b"),a=a("2877"),a=Object(a.a)(o,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"customer"},[t("el-form",{ref:"formValidate",attrs:{model:e.formValidate,"label-width":"80px",inline:""},nativeOn:{submit:function(e){e.preventDefault()}}},[t("el-form-item",{attrs:{label:"搜索日期:"}},[t("el-date-picker",{staticStyle:{width:"250px"},attrs:{editable:!1,"value-format":"yyyy/MM/dd",type:"daterange",placement:"bottom-end","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.onchangeTime},model:{value:e.timeVal,callback:function(t){e.timeVal=t},expression:"timeVal"}})],1),t("el-form-item",{attrs:{label:"用户名称:"}},[t("el-input",{staticClass:"form_content_width",attrs:{clearable:"",placeholder:"请输入用户名称"},model:{value:e.formValidate.nickname,callback:function(t){e.$set(e.formValidate,"nickname",t)},expression:"formValidate.nickname"}})],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.userSearchs}},[e._v("查询")])],1)],1),t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading2,expression:"loading2"}],ref:"selection",staticClass:"mt15",attrs:{"highlight-current-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果",data:e.tableList2,height:"450"}},[t("el-table-column",{attrs:{width:"50"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-radio",{attrs:{disabled:!!a.row.is_del,label:a.row.uid},on:{input:function(){return e.currentidRadio(a.row)}},model:{value:e.currentid,callback:function(t){e.currentid=t},expression:"currentid"}},[e._v(" ")])]}}])}),t("el-table-column",{attrs:{label:"ID",width:"80"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("span",[e._v(e._s(a.row.uid))])]}}])}),t("el-table-column",{attrs:{label:"微信用户名称","min-width":"180"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("div",[e._v(e._s(a.row.nickname))]),t("div",{staticStyle:{color:"red"}},[e._v(e._s(a.row.is_del?"用户已注销":""))])]}}])}),t("el-table-column",{attrs:{label:"客服头像","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(e){return[t("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.row.headimgurl,expression:"scope.row.headimgurl"}]})])]}}])}),t("el-table-column",{attrs:{label:"用户类型","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(a){return["wechat"===a.row.user_type?t("span",[e._v("公众号")]):"routine"===a.row.user_type?t("span",[e._v("小程序")]):"h5"===a.row.user_type?t("span",[e._v("H5")]):"pc"===a.row.user_type?t("span",[e._v("PC")]):t("span",[e._v("--")])]}}])}),t("el-table-column",{attrs:{label:"性别","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("span",{directives:[{name:"show",rawName:"v-show",value:1===a.row.sex,expression:"scope.row.sex === 1"}]},[e._v("男")]),t("span",{directives:[{name:"show",rawName:"v-show",value:2===a.row.sex,expression:"scope.row.sex === 2"}]},[e._v("女")]),t("span",{directives:[{name:"show",rawName:"v-show",value:0===a.row.sex,expression:"scope.row.sex === 0"}]},[e._v("保密")]),t("span",{directives:[{name:"show",rawName:"v-show",value:null===a.row.sex,expression:"scope.row.sex === null"}]},[e._v("--")])]}}])}),t("el-table-column",{attrs:{label:"是否关注公众号","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("span",{domProps:{textContent:e._s(1===a.row.subscribe?"关注":"未关注")}})]}}])})],1),t("div",{staticClass:"acea-row row-right page"},[e.total2?t("pagination",{attrs:{total:e.total2,page:e.formValidate.page,limit:e.formValidate.limit},on:{"update:page":function(t){return e.$set(e.formValidate,"page",t)},"update:limit":function(t){return e.$set(e.formValidate,"limit",t)},pagination:e.getListService}}):e._e()],1)],1)}),[],!1,null,"2f15f824",null);t.default=a.exports},e32b:function(e,t,a){"use strict";a("6eb8")}}]); |