1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f6bded66"],{"3b83":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t._self._c;return e("a-card",{attrs:{bordered:!1}},[e("div",{staticClass:"flex"},[e("a-button",{attrs:{type:"primary"},on:{click:t.addChannel}},[t._v("创建推广监控")]),e("a-button",{attrs:{type:"primary"},on:{click:t.reload}},[t._v("刷新")])],1),e("div",{staticClass:"tips"},[t._v("统计说明:指用户通过推广渠道进入推广页面下单(期间未跳出小程序)。")]),e("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(n,a){return e("span",{staticClass:"monitor_name"},[e("p",[t._v(t._s(n))]),e("p",{staticStyle:{color:"#7f7f7f"}},[t._v("新建时间:"+t._s(a.create_time))])])}},{key:"tag_name",fn:function(n){return e("span",{},[e("p",[t._v(t._s(n||"--"))])])}},{key:"qrcode",fn:function(t){return e("span",{},[e("a",{attrs:{title:"点击查看原图",href:t,target:"_blank"}},[e("img",{staticStyle:{"object-fit":"cover"},attrs:{width:"60",height:"60",src:t,alt:"二维码"}})])])}},{key:"ratio",fn:function(n){return e("span",{},[e("p",[t._v(t._s(n||"--")+" %")])])}},{key:"action",fn:function(n,a){return e("div",{staticClass:"actions"},[e("a",{on:{click:function(e){return t.handleEdit(a)}}},[t._v("编辑")]),e("a",{on:{click:function(e){return t.handleDetail(a)}}},[t._v("查看")])])}}])})],1)},o=[],r=n("753f"),i=(n("9f29"),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("e87e"),n("829d")),f=Object(l["a"])(u,a,o,!1,null,"45ebfcd5",null);e["default"]=f.exports},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})}},ce0e:function(t,e,n){},e87e:function(t,e,n){"use strict";n("ce0e")}}]);
|