1 line
17 KiB
JavaScript
1 line
17 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a1d48dd2"],{"48af":function(t,e,a){},"61e0":function(t,e,a){},"95cb":function(t,e,a){"use strict";a("61e0")},a17b:function(t,e,a){"use strict";a("fc3c")},c22d:function(t,e,a){"use strict";a("48af")},d141:function(t,e,a){},d22e:function(t,e,a){"use strict";a("d141")},dcdca: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("div",{staticClass:"selCard"},[a("el-form",{ref:"searchForm",attrs:{model:t.tableForm,size:"small","label-width":"65px",inline:""}},[a("el-form-item",{attrs:{label:"状态:",prop:"status_tag"}},[a("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择状态",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableForm.status_tag,callback:function(e){t.$set(t.tableForm,"status_tag",e)},expression:"tableForm.status_tag"}},[a("el-option",{attrs:{label:"全部",value:""}}),t._v(" "),a("el-option",{attrs:{label:"未审核",value:"0"}}),t._v(" "),a("el-option",{attrs:{label:"已审核",value:"1"}}),t._v(" "),a("el-option",{attrs:{label:"审核失败",value:"-1"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"关键字:",prop:"keyword"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入直播商品名称/ID"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableForm.keyword,callback:function(e){t.$set(t.tableForm,"keyword",e)},expression:"tableForm.keyword"}})],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.getList(1)}}},[t._v("搜索")]),t._v(" "),a("el-button",{attrs:{size:"small"},on:{click:function(e){return t.searchReset()}}},[t._v("重置")])],1)],1)],1),t._v(" "),a("el-card",{staticClass:"mt14"},[a("div",{staticClass:"mb20"},[a("router-link",{attrs:{to:{path:t.roterPre+"/marketing/broadcast/addProduct"}}},[a("el-button",{attrs:{size:"small",type:"primary"}},[t._v("添加直播商品")])],1),t._v(" "),a("el-button",{attrs:{size:"small",type:"success"},on:{click:t.batchAdd}},[t._v("批量添加直播商品")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{data:t.tableData.data,size:"small","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"序号","min-width":"60"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.tableForm.page-1)*t.tableForm.limit+1))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"goods_id",label:"商品ID","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"商品名称","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{label:"商品图","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("div",{staticClass:"demo-image__preview"},[a("el-image",{attrs:{src:t.row.cover_img,"preview-src-list":[t.row.cover_img]}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"原价","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.product?e.row.product.price:""))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"price",label:"直播价","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{label:"库存","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.product&&e.row.product.stock))])]}}])}),t._v(" "),1!==t.tableForm.status_tag?a("el-table-column",{key:"3",attrs:{label:"审核状态","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("liveReviewStatusFilter")(e.row.status)))]),t._v(" "),-1===e.row.status?a("span",{staticStyle:{display:"block","font-size":"12px"}},[t._v("原因 "+t._s(e.row.error_msg))]):t._e()]}}],null,!1,2330978579)}):t._e(),t._v(" "),a("el-table-column",{attrs:{label:"是否上架","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return 2===e.row.sta
|