You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
crmeb_php/public/system/js/chunk-fa897098.d26d1df5.js

1 line
14 KiB

12 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-fa897098"],{"0107":function(t,n,e){},"2f5d":function(t,n,e){"use strict";e("0107")},"306d":function(t,n,e){"use strict";e.r(n);var r=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"divBox"},[e("el-card",{staticClass:"box-card"},[e("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[e("div",{staticClass:"container"},[e("el-form",{attrs:{size:"small","label-width":"110px"}},[e("el-form-item",{attrs:{label:"是否显示:"}},[e("el-select",{staticClass:"selWidth",attrs:{clearable:"",placeholder:"请选择"},on:{change:function(n){return t.getList(1)}},model:{value:t.tableFrom.is_show,callback:function(n){t.$set(t.tableFrom,"is_show",n)},expression:"tableFrom.is_show"}},[e("el-option",{attrs:{label:"显示",value:"1"}}),t._v(" "),e("el-option",{attrs:{label:"不显示",value:"0"}})],1)],1),t._v(" "),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.add}},[t._v("添加数据")])],1)],1)]),t._v(" "),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini"}},[e("el-table-column",{attrs:{prop:"product_presell_id",label:"编号","min-width":"50"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.$index+(t.tableFrom.page-1)*t.tableFrom.limit+1))])]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"第几天","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.merchant?n.row.merchant.mer_name:""))])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"store_name",label:"获取积分","min-width":"120"}}),t._v(" "),e("el-table-column",{attrs:{label:"是否可用","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"显示","inactive-text":"隐藏"},nativeOn:{click:function(e){return t.onchangeIsShow(n.row)}},model:{value:n.row.is_show,callback:function(e){t.$set(n.row,"is_show",e)},expression:"scope.row.is_show"}})]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"rank",label:"排序","min-width":"90"}}),t._v(" "),e("el-table-column",{attrs:{label:"操作","min-width":"150",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(e){return t.handleEdit(n.row.broadcast_room_id)}}},[t._v("编辑")]),t._v(" "),e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return t.handleDelete(n.row,n.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),e("div",{staticClass:"block"},[e("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"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)},o=[],u=e("f8b7"),c=(e("2801"),e("b7be"),e("30dc")),a=e("0f56"),i={name:"preSaleProductList",components:{fileList:c["a"],cardsData:a["a"]},data:function(){return{timeVal:[],listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:20,is_show:""},loading:!1}},watch:{},mounted:function(){this.getList("")},methods:{selectChange:function(t){this.tableFrom.date=t,this.tableFrom.page=1,this.timeVal=[],this.getList("")},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.tableFrom.page=1,this.getList()},add:function(){},handleEdit:function(t){},handleDelete:function(t,n){var e=this;this.$modalSure().then((function(){productDeleteApi(t).then((function(t){var n=t.message;e.$message.success(n),e.getList()})).catch((function(t){var n=t.message;e.$message.error(n)}))}))},onchangeIsShow:function(t){var n=this;changeDisplayApi(t.broadcast_room_id,{is_show:t.is_show}).then((function(t){var e=t.message;n.$message.success(e),n.getList("")})).catch((function(t){var e=t.message;n.$message.error(e)}))},getList:function(t){var n=this;this.listLo