1 line
3.8 KiB
JavaScript
1 line
3.8 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d364b"],{"5d28":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("div",{staticClass:"selCard"},[a("el-form",{attrs:{size:"small","label-width":"85px",inline:!0}},[a("el-form-item",{attrs:{label:"选择时间:"}},[a("el-date-picker",{attrs:{type:"daterange",placeholder:"选择日期",format:"yyyy/MM/dd","value-format":"yyyy/MM/dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1)],1)],1),t._v(" "),a("el-card",{staticClass:"mt14"},[a("div",{staticClass:"mb20"},[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.onAdd}},[t._v("导出")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"switchTable",attrs:{data:t.tableData.data,size:"small","highlight-current-row":""}},[a("el-table-column",{attrs:{prop:"activity.activity_name",label:"活动名称","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{label:"用户名称/ID","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("div",[t._v("\n "+t._s(i.user.nickname)+"/"+t._s(i.user.uid)+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"phone",label:"用户手机号","min-width":"150"}}),t._v(" "),t._l(t.headers,(function(e,i){return a("el-table-column",{key:i,attrs:{label:e.label,"min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(i){var l=i.row;return["uploadPicture"==e.type?a("div",t._l(l.value[e.key],(function(t,e){return a("el-image",{key:e,staticStyle:{width:"36px",height:"36px"},attrs:{src:t,"preview-src-list":[t]}})})),1):"dateranges"==e.type?a("div",[l.value[e.key]?a("div",[t._v(t._s(l.value[e.key][0])+"至"),a("br"),t._v(t._s(l.value[e.key][1]))]):t._e()]):a("div",[t._v("\n "+t._s(l.value[e.key])+"\n ")])]}}],null,!0)})})),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"150"}})],2),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{background:"","page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},l=[],n=a("90e7"),s=a("83d6"),r={name:"FormDetail",data:function(){return{roterPre:s["roterPre"],listLoading:!0,pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-6048e5),t.$emit("pick",[a,e])}},{text:"最近一个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-2592e6),t.$emit("pick",[a,e])}},{text:"最近三个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-7776e6),t.$emit("pick",[a,e])}}]},tableData:{data:[],total:0},tableFrom:{page:1,limit:20,date:"",keyword:""},drawer:!1,timeVal:[],headers:[]}},mounted:function(){this.getList("")},methods:{onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=this.timeVal?this.timeVal.join("-"):"",this.tableFrom.page=1,this.getList("")},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(n["k"])(this.$route.params.id,this.tableFrom).then((function(t){e.headers=t.data.header,e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList(1)},onAdd:function(){}}},o=r,c=a("2877"),d=Object(c["a"])(o,i,l,!1,null,"61d2331a",null);e["default"]=d.exports}}]); |