chunk-18f3.b3df374a.js 4.8 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-18f3"],{aGuW:function(t,e,a){"use strict";var i=a("kOHX");a.n(i).a},kOHX:function(t,e,a){},"zT+M":function(t,e,a){"use strict";a.r(e);var i=a("QbLZ"),l=a.n(i),n=a("t3Un");var s={name:"Order",components:{Pagination:a("Mz3J").a},filters:{},data:function(){return{list:void 0,total:0,listLoading:!0,listQuery:{pageNo:1,limit:20,id:void 0,spuName:void 0,content:void 0,userName:void 0}}},created:function(){this.getList()},methods:{getList:function(){var t=this;this.listLoading=!0,function(t){return Object(n.a)({method:"get",params:l()({_gp:"admin.appraise",_mt:"getAppraiseList"},t)})}(this.listQuery).then(function(e){t.list=e.data.data.items,t.total=e.data.data.total,t.listLoading=!1}).catch(function(){t.list=[],t.total=0,t.listLoading=!1})},handleDelete:function(t){var e=this;this.$confirm("此操作将永久删除该评论"+t.id+", 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){(function(t){return Object(n.a)({method:"get",params:l()({_gp:"admin.appraise",_mt:"deleteAppraise"},t)})})(t).then(function(a){e.$notify.success({title:"成功",message:"删除优惠券成功"});var i=e.list.indexOf(t);e.list.splice(i,1)}).catch(function(t){e.$notify.error({title:"失败",message:t.data.errmsg})})}).catch(function(){return!1})},handleFilter:function(){this.listQuery.page=1,this.getList()}}},r=(a("aGuW"),a("KHd+")),o=Object(r.a)(s,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{clearable:"",placeholder:"评论ID"},model:{value:t.listQuery.id,callback:function(e){t.$set(t.listQuery,"id",e)},expression:"listQuery.id"}}),t._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{clearable:"",placeholder:"用户姓名"},model:{value:t.listQuery.userName,callback:function(e){t.$set(t.listQuery,"userName",e)},expression:"listQuery.userName"}}),t._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{clearable:"",placeholder:"商品名称"},model:{value:t.listQuery.spuName,callback:function(e){t.$set(t.listQuery,"spuName",e)},expression:"listQuery.spuName"}}),t._v(" "),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{clearable:"",placeholder:"评论内容"},model:{value:t.listQuery.content,callback:function(e){t.$set(t.listQuery,"content",e)},expression:"listQuery.content"}}),t._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:["operation:appraise:query"],expression:"['operation:appraise:query']"}],staticClass:"filter-item",attrs:{clearable:"",type:"primary",icon:"el-icon-search"},on:{click:t.handleFilter}},[t._v("查找")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{data:t.list,size:"small","element-loading-text":"正在查询中。。。",border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{align:"center",label:"评论编号",prop:"id"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"评论内容",width:"300",prop:"content"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"评论分数",prop:"score"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"用户ID",prop:"userId"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"用户昵称",prop:"userNickName"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"订单ID",prop:"orderId"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"商品ID",prop:"spuId"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"商品名称",prop:"spuTitle"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"评论时间",prop:"gmtCreate"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("formatTime")(e.row.gmtCreate)))]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作",width:"200","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:["operation:appraise:delete"],expression:"['operation:appraise:delete']"}],attrs:{type:"danger",size:"mini"},on:{click:function(a){t.handleDelete(e.row)}}},[t._v("删除")])]}}])})],1),t._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],attrs:{total:t.total,page:t.listQuery.pageNo,limit:t.listQuery.limit},on:{"update:page":function(e){t.$set(t.listQuery,"pageNo",e)},"update:limit":function(e){t.$set(t.listQuery,"limit",e)},pagination:t.getList}})],1)},[],!1,null,null,null);o.options.__file="appraise.vue";e.default=o.exports}}]);