easypay-admin/crmebadmin/static/js/chunk-2c391aec.2d6f4a8e.js
2023-12-20 21:43:49 +08:00

1 line
5.9 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2c391aec"],{"643e5":function(t,e,a){},"8b94":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{inline:""}},[a("el-form-item",{attrs:{label:"商品ID"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品ID"},model:{value:t.tableFrom.proId,callback:function(e){t.$set(t.tableFrom,"proId",e)},expression:"tableFrom.proId"}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["admin:pay:component:product:list"],expression:"['admin:pay:component:product:list']"}],attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"商品名称:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称",clearable:""},model:{value:t.tableFrom.search,callback:function(e){t.$set(t.tableFrom,"search",e)},expression:"tableFrom.search"}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["aadmin:pay:component:product:list"],expression:"['aadmin:pay:component:product:list']"}],attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1)],1)],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","header-cell-style":{fontWeight:"bold"}}},[a("el-table-column",{attrs:{prop:"id",label:"ID","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{label:"名称",prop:"title","min-width":"300"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-popover",{attrs:{trigger:"hover",placement:"right","open-delay":800}},[a("div",{staticClass:"text_overflow",attrs:{slot:"reference"},slot:"reference"},[t._v(t._s(e.row.title))]),t._v(" "),a("div",{staticClass:"pup_card"},[t._v(t._s(e.row.title))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"商品图片","min-width":"80",align:"center"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("div",{staticClass:"demo-image__preview"},[a("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:JSON.parse(t.row.headImg)[0],"preview-src-list":JSON.parse(t.row.headImg)}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"componentProductId",label:"视频号商品ID","min-width":"150",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"类目","min-width":"150",prop:"thirdCatName",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"获得积分",prop:"giveIntegral","min-width":"100",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"sales",label:"销量","min-width":"90",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"stock",label:"库存","min-width":"90",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"sales",label:"状态","min-width":"90",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("videoStatusFilter")(e.row.status)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"创建时间",prop:"createTime","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"150",fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[11===e.row.status?a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["admin:pay:component:product:listing"],expression:"['admin:pay:component:product:listing']"}],attrs:{type:"text",size:"small"},on:{click:function(a){return t.upChange(e.row.id)}}},[t._v("上架")]):t._e(),t._v(" "),5===e.row.status?a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["admin:pay:component:product:delisting"],expression:"['admin:pay:component:product:delisting']"}],attrs:{type:"text",size:"small"},on:{click:function(a){return t.downChange(e.row.id)}}},[t._v("下架")]):t._e(),t._v(" "),a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["admin:pay:component:product:delete"],expression:"['admin:pay:component:product:delete']"}],attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.id,e.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),a("div",{staticClass:"block mb20"},[a("el-pagination",{attrs:{"page-sizes":[10,20,30,40],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},n=[],l=a("b7be"),s={name:"videoList",data:function(){return{listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:20,proId:"",search:""}}},mounted:function(){this.getList()},methods:{upChange:function(t){var e=this;Object(l["X"])(t).then((function(){e.$message.success("上架成功"),e.getList()}))},downChange:function(t){var e=this;Object(l["V"])(t).then((function(){e.$message.success("下架成功"),e.getList()}))},handleDelete:function(t,e){var a=this;this.$modalSure("删除吗?此操作不可逆,请谨慎操作!").then((function(){Object(l["U"])(t).then((function(){a.$message.success("删除成功"),1===a.tableData.data.length&&a.tableFrom.page>1&&(a.tableFrom.page=a.tableFrom.page-1),a.getList()}))}))},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(l["W"])(this.tableFrom).then((function(t){e.tableData.data=t.list,e.tableData.total=t.total,e.listLoading=!1})).catch((function(t){e.listLoading=!1}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList()}}},o=s,r=(a("9682"),a("2877")),c=Object(r["a"])(o,i,n,!1,null,"ed4aa22a",null);e["default"]=c.exports},9682:function(t,e,a){"use strict";a("643e5")}}]);