(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6235e45f"],{"3b83":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-card",{attrs:{bordered:!1}},[n("div",{staticClass:"flex"},[n("a-button",{attrs:{type:"primary"},on:{click:t.addChannel}},[t._v("创建推广监控")]),n("a-button",{attrs:{type:"primary"},on:{click:t.reload}},[t._v("刷新")])],1),n("div",{staticClass:"tips"},[t._v("统计说明:指用户通过推广渠道进入推广页面下单(期间未跳出小程序)。")]),n("s-table",{ref:"table",staticClass:"tableBox",attrs:{rowKey:"id",loading:t.isLoading,columns:t.columns,data:t.loadData,pageSize:15,bordered:""},scopedSlots:t._u([{key:"monitor_name",fn:function(e,a){return n("span",{staticClass:"monitor_name"},[n("p",[t._v(t._s(e))]),n("p",{staticStyle:{color:"#7f7f7f"}},[t._v("新建时间:"+t._s(a.create_time))])])}},{key:"tag_name",fn:function(e){return n("span",{},[n("p",[t._v(t._s(e||"--"))])])}},{key:"qrcode",fn:function(t){return n("span",{},[n("a",{attrs:{title:"点击查看原图",href:t,target:"_blank"}},[n("img",{staticStyle:{"object-fit":"cover"},attrs:{width:"60",height:"60",src:t,alt:"二维码"}})])])}},{key:"ratio",fn:function(e){return n("span",{},[n("p",[t._v(t._s(e||"--")+" %")])])}},{key:"action",fn:function(e,a){return n("div",{staticClass:"actions"},[n("a",{on:{click:function(e){return t.handleEdit(a)}}},[t._v("编辑")]),n("a",{on:{click:function(e){return t.handleDetail(a)}}},[t._v("查看")])])}}])})],1)},o=[],r=n("5530"),i=(n("d3b7"),n("c590")),d=n("2af9"),c=[{title:"推广监控名称",dataIndex:"monitor_name",scopedSlots:{customRender:"monitor_name"}},{title:"推广渠道名称",dataIndex:"channel_name"},{title:"推广标签名称",dataIndex:"tag_name",scopedSlots:{customRender:"tag_name"}},{title:"推广二维码",dataIndex:"qrcode",scopedSlots:{customRender:"qrcode"}},{title:"到达浏览量",dataIndex:"pv"},{title:"访客数",dataIndex:"uv"},{title:"新访客数",dataIndex:"uv_new"},{title:"转化支付订单数",dataIndex:"pay_order_count"},{title:"转化支付人数",dataIndex:"pay_user_count"},{title:"转化支付金额(元)",dataIndex:"pay_amount"},{title:"访问-支付转化率",dataIndex:"ratio",scopedSlots:{customRender:"ratio"}},{title:"操作",dataIndex:"action",scopedSlots:{customRender:"action"}}],s={components:{STable:d["c"]},data:function(){var t=this;return{isLoading:!1,columns:c,queryParam:{},loadData:function(e){return i["d"](Object(r["a"])(Object(r["a"])({},e),t.queryParam)).then((function(t){return t.data.list}))}}},created:function(){},methods:{addChannel:function(){this.$router.push("./create")},reload:function(){var t=this;i["e"]().then((function(e){t.handleRefresh(!0)})).finally((function(){}))},handleRefresh:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$refs.table.refresh(t)},handleEdit:function(t){this.$router.push({path:"./update",query:{id:t.id}})},handleDetail:function(t){this.$router.push({path:"./detail",query:{id:t.id}})}}},u=s,l=(n("594b"),n("2877")),f=Object(l["a"])(u,a,o,!1,null,"45ebfcd5",null);e["default"]=f.exports},"594b":function(t,e,n){"use strict";n("72b67")},"72b67":function(t,e,n){},c590:function(t,e,n){"use strict";n.d(e,"d",(function(){return r})),n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return d})),n.d(e,"b",(function(){return c})),n.d(e,"e",(function(){return s}));var a=n("b775"),o={list:"/promotionMonitor/list",add:"/promotionMonitor/add",edit:"/promotionMonitor/edit",detail:"/promotionMonitor/detail",refresh:"/promotionMonitor/refresh"};function r(t){return Object(a["b"])({url:o.list,method:"get",params:t})}function i(t){return Object(a["b"])({url:o.add,method:"post",data:t})}function d(t){return Object(a["b"])({url:o.edit,method:"post",data:t})}function c(t){return Object(a["b"])({url:o.detail,method:"get",params:t})}function s(t){return Object(a["b"])({url:o.refresh,method:"get",params:t})}}}]);