Files
PropertyDeployment/resources/Web/MicroCommunityMallWeb/html/js/chunk-0ebe81a1.9f2c5423.js
Anfioo adfd019d2d 江门
1
2026-02-01 15:37:55 +08:00

2 lines
6.9 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0ebe81a1"],{"02c0":function(e,a,t){"use strict";t.r(a);var r=function(){var e=this,a=e._self._c;return a("div",{staticClass:"animated fadeInRight ecommerce"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("查询条件")])]),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:4}},[a("el-input",{attrs:{placeholder:"商品名称",clearable:""},model:{value:e.shopAppraiseManageInfo.conditions.prodName,callback:function(a){e.$set(e.shopAppraiseManageInfo.conditions,"prodName",a)},expression:"shopAppraiseManageInfo.conditions.prodName"}})],1),a("el-col",{attrs:{span:4}},[a("el-input",{attrs:{placeholder:"请输入用户",clearable:""},model:{value:e.shopAppraiseManageInfo.conditions.appraiseUserName,callback:function(a){e.$set(e.shopAppraiseManageInfo.conditions,"appraiseUserName",a)},expression:"shopAppraiseManageInfo.conditions.appraiseUserName"}})],1),a("el-col",{attrs:{span:4}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择评分"},model:{value:e.shopAppraiseManageInfo.conditions.appraiseScore,callback:function(a){e.$set(e.shopAppraiseManageInfo.conditions,"appraiseScore",a)},expression:"shopAppraiseManageInfo.conditions.appraiseScore"}},e._l(e.shopAppraiseManageInfo.appraiseScores,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.statusCd}})})),1)],1),a("el-col",{attrs:{span:4}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e._queryOrdersMethod}},[e._v("查询")]),a("el-button",{attrs:{icon:"el-icon-refresh"},on:{click:e._resetOrdersMethod}},[e._v("重置")])],1)],1)],1),a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("商品评论")])]),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.shopAppraiseManageInfo.appraises,border:""}},[a("el-table-column",{attrs:{prop:"prodName",label:"商品名称",align:"center"}}),a("el-table-column",{attrs:{prop:"appraiseUserName",label:"用户",align:"center"}}),a("el-table-column",{attrs:{prop:"appraiseScore",label:"评分",align:"center"}}),a("el-table-column",{attrs:{prop:"context",label:"内容",align:"center"}}),a("el-table-column",{attrs:{prop:"imgPath",label:"图片",align:"center"}}),a("el-table-column",{attrs:{prop:"createTime",label:"评论时间",align:"center"}}),a("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini"},on:{click:function(a){return e._ackAppraise(t.row)}}},[e._v("回复")])]}}])})],1),a("el-pagination",{attrs:{"current-page":e.currentPage,"page-sizes":[10,20,30,50],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)},s=[],n=t("eb91"),o=t("7323"),i={name:"ShopAppraiseManage",data(){return{DEFAULT_PAGE:1,DEFAULT_ROWS:10,currentPage:1,pageSize:10,total:0,shopAppraiseManageInfo:{appraises:[],total:0,records:1,appraiseScores:[],conditions:{prodName:"",appraiseScore:"",appraiseUserName:"",shopId:"",objType:"1001",page:1,row:10}}}},created(){this.shopAppraiseManageInfo.conditions.shopId=Object(o["f"])(),this._listShopAppraises(this.DEFAULT_PAGE,this.DEFAULT_ROWS),this.getDictData()},methods:{async getDictData(){try{const{data:e}=await Object(o["e"])("s_shop_appraise","appraise_score");this.shopAppraiseManageInfo.appraiseScores=e}catch(e){console.error("获取字典数据失败:",e)}},async _listShopAppraises(e,a){this.shopAppraiseManageInfo.conditions.page=e,this.shopAppraiseManageInfo.conditions.row=a;const t={...this.shopAppraiseManageInfo.conditions,appraiseUserName:this.shopAppraiseManageInfo.conditions.appraiseUserName.trim(),prodName:this.shopAppraiseManageInfo.conditions.prodName.trim(),appraiseScore:this.shopAppraiseManageInfo.conditions.appraiseScore.trim()};try{const e=await Object(n["i"])(t);this.shopAppraiseManageInfo.total=e.total,this.shopAppraiseManageInfo.records=e.records,this.shopAppraiseManageInfo.appraises=e.data,this.total=e.records}catch(r){console.error("请求失败处理",r)}},_queryOrdersMethod(){this._listShopAppraises(this.DEFAULT_PAGE,this.DEFAULT_ROWS)},_resetOrdersMethod(){this.shopAppraiseManageInfo.conditions.prodName="",this.shopAppraiseManageInfo.conditions.appraiseUserName="",this.shopAppraiseManageInfo.conditions.appraiseScore="",this._listShopAppraises(this.DEFAULT_PAGE,this.DEFAULT_ROWS)},_ackAppraise(e){console.log(e)},handleSizeChange(e){this.pageSize=e,this._listShopAppraises(this.currentPage,e)},handleCurrentChange(e){this.currentPage=e,this._listShopAppraises(e,this.pageSize)}}},p=i,c=(t("fb6a"),t("2877")),l=Object(c["a"])(p,r,s,!1,null,"45bbdc59",null);a["default"]=l.exports},"2f15":function(e,a,t){},eb91:function(e,a,t){"use strict";t.d(a,"i",(function(){return s})),t.d(a,"g",(function(){return n})),t.d(a,"f",(function(){return o})),t.d(a,"e",(function(){return i})),t.d(a,"j",(function(){return p})),t.d(a,"h",(function(){return c})),t.d(a,"a",(function(){return l})),t.d(a,"b",(function(){return d})),t.d(a,"c",(function(){return h})),t.d(a,"d",(function(){return u}));var r=t("b775");function s(e){return new Promise((a,t)=>{Object(r["a"])({url:"/shopAppraise/queryShopAppraise",method:"get",params:e}).then(e=>{const t=e.data;a(t)}).catch(e=>{t(e)})})}function n(e){return new Promise((a,t)=>{Object(r["a"])({url:"/product.queryProductLabel",method:"get",params:e}).then(e=>{const t=e.data;a(t)}).catch(e=>{t(e)})})}function o(e){return new Promise((a,t)=>{Object(r["a"])({url:"/inoutOrder.queryInoutOrderProduct",method:"get",params:e}).then(e=>{const t=e.data;a(t)}).catch(e=>{t(e)})})}function i(e){return new Promise((a,t)=>{Object(r["a"])({url:"/allocationOrder/queryAllocationOrder",method:"get",params:e}).then(e=>{const t=e.data;a(t)}).catch(e=>{t(e)})})}function p(e){return new Promise((a,t)=>{Object(r["a"])({url:"/storeOrder.queryStoreOrder",method:"get",params:e}).then(e=>{const t=e.data;a(t)}).catch(e=>{t(e)})})}function c(e){return new Promise((a,t)=>{Object(r["a"])({url:"/refundOrder.queryRefundOrders",method:"get",params:e}).then(e=>{const t=e.data;a(t)}).catch(e=>{t(e)})})}function l(e){return new Promise((a,t)=>{Object(r["a"])({url:"/productGroup.listProductGroup",method:"get",params:e}).then(e=>{const t=e.data;a(t)}).catch(e=>{t(e)})})}function d(e){return new Promise((a,t)=>{Object(r["a"])({url:"/productGroup.listProductGroupOrder",method:"get",params:e}).then(e=>{const t=e.data;a(t)}).catch(e=>{t(e)})})}function h(e){return new Promise((a,t)=>{Object(r["a"])({url:"/productSeckill.listProductSeckill",method:"get",params:e}).then(e=>{const t=e.data;a(t)}).catch(e=>{t(e)})})}function u(e){return new Promise((a,t)=>{Object(r["a"])({url:"/productSeckill.listProductSeckillOrder",method:"get",params:e}).then(e=>{const t=e.data;a(t)}).catch(e=>{t(e)})})}},fb6a:function(e,a,t){"use strict";t("2f15")}}]);
//# sourceMappingURL=chunk-0ebe81a1.9f2c5423.js.map