chunk-2d0c1f57.47f9d05d.js 1.5 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c1f57"],{"47ec":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-list-content"},[t("x-crud",{staticClass:"liu-crud-wrap",on:{load:e.onLoad},scopedSlots:e._u([{key:"table-column-gatheringCode",fn:function({scope:a}){return[t("el-button",{attrs:{type:"text"},on:{click:function(t){return e.gotoPage(1,a.row)}}})]}}])})],1)},n=[],l=a("8bc2"),s={data(){return{app:null}},mounted(){},methods:{onLoad({ctx:e,app:t}){this.app=t;let a=()=>this.$service.sassShop.shopList();e.service({page:a}).set("table",{columns:[{prop:"id",label:"ID",align:"center"},{prop:"shopName",label:"门店名称",align:"center"},{prop:"name",label:"商家",align:"center"},{prop:"shopProvince",label:"省",align:"center"},{prop:"shopCity",label:"市",align:"center",emptyText:"无"},{prop:"shopDist",label:"区",align:"center",emptyText:"无"},{prop:"gatheringCode",label:"收款二维码",align:"center"}],op:{visible:!1,props:{width:150,align:"center",fixed:"right",label:"操作"},layout:[]}}).set("layout",[["slot-tabs"],["flex1","refresh-btn"],["data-table"],["flex1","pagination"]]).done(),t.refresh()},gotoPage(e,t){console.log(t);let a="http://api.shop."+Object(l["getFirstHost"])(),o=null;switch(e){case 1:o="/user/gathering-code?id="+t.id;break;case 2:o="/user/apply-code?id="+t.id;break}window.open(a+o)}}},p=s,r=a("1805"),i=Object(r["a"])(p,o,n,!1,null,null,null);t["default"]=i.exports}}]);