2 lines
4.5 KiB
JavaScript
2 lines
4.5 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1beb80cf"],{"1e1c":function(t,e,s){"use strict";s("68c9")},"68c9":function(t,e,s){},b5b1:function(t,e,s){"use strict";s.d(e,"b",(function(){return n})),s.d(e,"d",(function(){return a})),s.d(e,"c",(function(){return i})),s.d(e,"e",(function(){return l})),s.d(e,"f",(function(){return r}));var o=s("b775");function n(t){return new Promise((e,s)=>{Object(o["a"])({url:"/shopSms.listShopSms",method:"get",params:t}).then(t=>{const s=t.data;e(s)}).catch(t=>{s(t)})})}function a(t){return new Promise((e,s)=>{Object(o["a"])({url:"/shopSms.listShopSmsDetail",method:"get",params:t}).then(t=>{const s=t.data;e(s)}).catch(t=>{s(t)})})}function i(t){return new Promise((e,s)=>{Object(o["a"])({url:"/shopSms.listAShopSms",method:"get",params:t}).then(t=>{const s=t.data;e(s)}).catch(t=>{s(t)})})}function l(t){return new Promise((e,s)=>{Object(o["a"])({url:"/shopSms.updateAShopSms",method:"post",data:t}).then(t=>{const s=t.data;e(s)}).catch(t=>{s(t)})})}function r(t){return new Promise((e,s)=>{Object(o["a"])({url:"/shopSms.updateShopSmsSwitch",method:"post",data:t}).then(t=>{const s=t.data;e(s)}).catch(t=>{s(t)})})}},ce29:function(t,e,s){"use strict";s.r(e);var o=function(){var t=this,e=t._self._c;return e("div",[e("el-card",{},[e("div",{staticClass:"flex justify-between items-center",attrs:{slot:"header"},slot:"header"},[e("div",[t._v(t._s(t.$t("shopSmsDetail.queryCondition")))])]),e("div",{},[e("el-form",{staticClass:"text-left",attrs:{"label-position":"left"}},[e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:6}},[e("el-form-item",[e("el-input",{attrs:{placeholder:t.$t("shopSmsDetail.enterPhoneNumber"),clearable:""},model:{value:t.shopSmsDetailInfo.conditions.link,callback:function(e){t.$set(t.shopSmsDetailInfo.conditions,"link",e)},expression:"shopSmsDetailInfo.conditions.link"}})],1)],1),e("el-col",{attrs:{span:4}},[e("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-search"},on:{click:function(e){return t._queryShopSmsDetailMethod()}}},[t._v(" "+t._s(t.$t("shopSmsDetail.query"))+" ")])],1)],1)],1)],1)]),e("el-card",{staticClass:"margin-top"},[e("div",{staticClass:"flex justify-between items-center",attrs:{slot:"header"},slot:"header"},[e("div",[t._v(t._s(t.$t("shopSmsDetail.sendRecords")))]),e("div",{staticStyle:{top:"10px"}},[e("el-button",{attrs:{type:"default",size:"small"},on:{click:function(e){return t.$router.go(-1)}}},[t._v(" "+t._s(t.$t("shopSmsDetail.back"))+" ")])],1)]),e("div",{},[e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.shopSmsDetailInfo.details,border:""}},[e("el-table-column",{attrs:{prop:"detailId",label:t.$t("shopSmsDetail.detailId"),align:"center"}}),e("el-table-column",{attrs:{prop:"shopName",label:t.$t("shopSmsDetail.shopName"),align:"center"}}),e("el-table-column",{attrs:{prop:"smsContent",label:t.$t("shopSmsDetail.smsContent"),align:"center"}}),e("el-table-column",{attrs:{prop:"link",label:t.$t("shopSmsDetail.phoneNumber"),align:"center"}}),e("el-table-column",{attrs:{prop:"createTime",label:t.$t("shopSmsDetail.sendTime"),align:"center"}})],1),e("el-pagination",{staticStyle:{"margin-top":"20px","text-align":"right"},attrs:{"current-page":t.shopSmsDetailInfo.conditions.page,"page-size":t.DEFAULT_ROWS,layout:"total, prev, pager, next",total:t.shopSmsDetailInfo.total},on:{"current-change":t.handleCurrentChange,"update:currentPage":function(e){return t.$set(t.shopSmsDetailInfo.conditions,"page",e)},"update:current-page":function(e){return t.$set(t.shopSmsDetailInfo.conditions,"page",e)}}})],1)])],1)},n=[],a=s("b5b1"),i=s("7323"),l={name:"ShopSmsDetail",data(){return{DEFAULT_PAGE:1,DEFAULT_ROWS:10,shopSmsDetailInfo:{details:[],total:0,records:1,moreCondition:!1,shopId:"",conditions:{shopId:"",link:"",page:1,row:10}}}},created(){this._initMethod()},methods:{_initMethod(){this._listShopSmsDetails(this.DEFAULT_PAGE,this.DEFAULT_ROWS)},async _listShopSmsDetails(t,e){this.shopSmsDetailInfo.conditions.page=t,this.shopSmsDetailInfo.conditions.row=e,this.shopSmsDetailInfo.conditions.shopId=Object(i["f"])();try{const t=await Object(a["d"])(this.shopSmsDetailInfo.conditions);this.shopSmsDetailInfo.total=t.total,this.shopSmsDetailInfo.records=t.records,this.shopSmsDetailInfo.details=t.data}catch(s){console.error("请求失败:",s)}},handleCurrentChange(t){this._listShopSmsDetails(t,this.DEFAULT_ROWS)},_queryShopSmsDetailMethod(){this._listShopSmsDetails(this.DEFAULT_PAGE,this.DEFAULT_ROWS)}}},r=l,c=(s("1e1c"),s("2877")),h=Object(c["a"])(r,o,n,!1,null,"d3d5c7e4",null);e["default"]=h.exports}}]);
|
|
//# sourceMappingURL=chunk-1beb80cf.bddd21e6.js.map
|