2 lines
5.3 KiB
JavaScript
2 lines
5.3 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6f44c102"],{"0cfc":function(t,e,a){"use strict";a("f2a1")},"4a56":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return e("div",[e("el-card",{staticClass:"ibox"},[e("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[e("div",[t._v(t._s(t.$t("integralShopGift.queryCondition")))]),e("div",{staticClass:"ibox-tools",staticStyle:{top:"10px"}})]),e("div",{},[e("el-form",{staticClass:"flex justify-start",attrs:{inline:!0,model:t.integralShopGiftInfo.conditions}},[e("el-form-item",[e("el-input",{attrs:{placeholder:t.$t("integralShopGift.personNamePlaceholder"),clearable:""},model:{value:t.integralShopGiftInfo.conditions.personName,callback:function(e){t.$set(t.integralShopGiftInfo.conditions,"personName",e)},expression:"integralShopGiftInfo.conditions.personName"}})],1),e("el-form-item",[e("el-input",{attrs:{placeholder:t.$t("integralShopGift.telPlaceholder"),clearable:""},model:{value:t.integralShopGiftInfo.conditions.tel,callback:function(e){t.$set(t.integralShopGiftInfo.conditions,"tel",e)},expression:"integralShopGiftInfo.conditions.tel"}})],1),e("el-form-item",[e("el-input",{attrs:{placeholder:t.$t("integralShopGift.accountNamePlaceholder"),clearable:""},model:{value:t.integralShopGiftInfo.conditions.personIntegralName,callback:function(e){t.$set(t.integralShopGiftInfo.conditions,"personIntegralName",e)},expression:"integralShopGiftInfo.conditions.personIntegralName"}})],1),e("el-form-item",[e("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:t._queryIntegralShopGiftMethod}},[t._v(" "+t._s(t.$t("integralShopGift.query"))+" ")])],1)],1)],1)]),e("el-card",{staticClass:"margin-top-sm"},[e("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[e("div",[t._v(t._s(t.$t("integralShopGift.title")))]),e("div",{staticClass:"ibox-tools",staticStyle:{top:"10px"}})]),e("div",{},[e("integral-shop-gift-table",{attrs:{data:t.integralShopGiftInfo.integralShopGifts,loading:t.loading}}),e("el-pagination",{attrs:{"current-page":t.currentPage,"page-size":t.pageSize,layout:"total, prev, pager, next",total:t.integralShopGiftInfo.total},on:{"current-change":t.handleCurrentChange}})],1)])],1)},n=[],l=a("b775");function o(t){return new Promise((e,a)=>{Object(l["a"])({url:"/integral.listIntegralShopGift",method:"get",params:t}).then(t=>{const a=t.data;e(a)}).catch(t=>{a(t)})})}var r=function(){var t=this,e=t._self._c;return e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.data,border:""}},[e("el-table-column",{attrs:{prop:"giftId",label:t.$t("integralShopGift.id"),align:"center"}}),e("el-table-column",{attrs:{prop:"ruleId",label:t.$t("integralShopGift.rule"),align:"center"}}),e("el-table-column",{attrs:{prop:"ruleName",label:t.$t("integralShopGift.ruleName"),align:"center"}}),e("el-table-column",{attrs:{prop:"quantity",label:t.$t("integralShopGift.quantity"),align:"center"}}),e("el-table-column",{attrs:{prop:"personId",label:t.$t("integralShopGift.personId"),align:"center"}}),e("el-table-column",{attrs:{prop:"personName",label:t.$t("integralShopGift.personName"),align:"center"}}),e("el-table-column",{attrs:{prop:"tel",label:t.$t("integralShopGift.tel"),align:"center"}}),e("el-table-column",{attrs:{prop:"personIntegralId",label:t.$t("integralShopGift.accountId"),align:"center"}}),e("el-table-column",{attrs:{prop:"personIntegralName",label:t.$t("integralShopGift.accountName"),align:"center"}}),e("el-table-column",{attrs:{prop:"integralDetailId",label:t.$t("integralShopGift.detailId"),align:"center"}}),e("el-table-column",{attrs:{prop:"remark",label:t.$t("integralShopGift.remark"),align:"center"}}),e("el-table-column",{attrs:{prop:"createTime",label:t.$t("integralShopGift.createTime"),align:"center"}})],1)},s=[],c={name:"IntegralShopGiftTable",props:{data:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1}}},p=c,f=(a("e732"),a("2877")),g=Object(f["a"])(p,r,s,!1,null,"d66062c6",null),h=g.exports,d=a("7323"),u={name:"IntegralShopGift",components:{IntegralShopGiftTable:h},data(){return{integralShopGiftInfo:{integralShopGifts:[],total:0,records:1,conditions:{personName:"",tel:"",personIntegralName:"",shopId:""}},currentPage:1,pageSize:10,loading:!1}},created(){this._initMethod()},methods:{_initMethod(){this._listIntegralShopGifts(this.currentPage,this.pageSize)},async _listIntegralShopGifts(t,e){this.loading=!0,this.integralShopGiftInfo.conditions.page=t,this.integralShopGiftInfo.conditions.row=e,this.integralShopGiftInfo.conditions.shopId=Object(d["f"])();try{const t=await o(this.integralShopGiftInfo.conditions);this.integralShopGiftInfo.total=t.total,this.integralShopGiftInfo.records=t.records,this.integralShopGiftInfo.integralShopGifts=t.data}catch(a){console.error("请求失败:",a)}finally{this.loading=!1}},_queryIntegralShopGiftMethod(){this.currentPage=1,this._listIntegralShopGifts(this.currentPage,this.pageSize)},handleCurrentChange(t){this.currentPage=t,this._listIntegralShopGifts(this.currentPage,this.pageSize)}}},S=u,m=(a("0cfc"),Object(f["a"])(S,i,n,!1,null,"3b47e3c9",null));e["default"]=m.exports},d0c4:function(t,e,a){},e732:function(t,e,a){"use strict";a("d0c4")},f2a1:function(t,e,a){}}]);
|
|
//# sourceMappingURL=chunk-6f44c102.700fb5dc.js.map
|