shop_mer_admin/mer/js/chunk-commons.0beed079.js

1 line
24 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-commons"],{"0c65":function(e,t,a){"use strict";a("9302")},"0f56":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-row",{staticClass:"ivu-mt",attrs:{gutter:14,align:"middle"}},[e._l(e.cardLists,(function(t,i){return a("el-col",{key:i,staticClass:"ivu-mb mb14",attrs:{xl:e.more?6:4,lg:e.more?6:8,md:12,sm:24,xs:24}},[a("div",{staticClass:"card_box"},[a("div",{staticClass:"card_box_cir",class:{one:i%5==0,two:i%5==1,three:i%5==2,four:i%5==3,five:i%5==4}},[a("div",{staticClass:"card_box_cir1",class:{one1:i%5==0,two1:i%5==1,three1:i%5==2,four1:i%5==3,five1:i%5==4}},[a("i",{class:t.className,staticStyle:{"font-size":"24px"}})])]),e._v(" "),a("div",{staticClass:"card_box_txt"},[a("span",{staticClass:"sp1",domProps:{textContent:e._s(t.count||0)}}),e._v(" "),a("span",{staticClass:"sp2",domProps:{textContent:e._s(t.name)}})])])])})),e._v(" "),a("div",{staticClass:"ivu-mb mb10"})],2)},n=[],s={name:"Index",props:{cardLists:Array,more:Boolean}},o=s,l=(a("5282"),a("2877")),r=Object(l["a"])(o,i,n,!1,null,"2ae00f2e",null);t["a"]=r.exports},"0f86":function(e,t,a){"use strict";a("9097")},"2f08":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return"0"!==e.openVersion?a("div",{staticClass:"ivu-global-footer i-copyright"},[-1==e.version.status?a("div",{staticClass:"ivu-global-footer-copyright"},[e._v(e._s("Copyright "+e.version.year+" ")),a("a",{attrs:{href:""+e.version.url,target:"_blank"}},[e._v(e._s(e.version.version))])]):a("div",{staticClass:"ivu-global-footer-copyright"},[e._v(e._s(e.version.Copyright))])]):e._e()},n=[],s=a("2801"),o={name:"i-copyright",data:function(){return{copyright:"Copyright © 2022 西安众邦网络科技有限公司",openVersion:"0",copyright_status:"0",version:{}}},mounted:function(){this.getVersion()},methods:{getVersion:function(){var e=this;Object(s["i"])().then((function(t){t.data.version;e.version=t.data,e.copyright=t.data.copyright,e.openVersion=t.data.sys_open_version})).catch((function(t){e.$message.error(t.message)}))}}},l=o,r=(a("e46d"),a("2877")),c=Object(r["a"])(l,i,n,!1,null,"828afd98",null);t["a"]=c.exports},"30dc":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.fileVisible?a("el-dialog",{attrs:{title:"导出订单列表",visible:e.fileVisible,width:"900px"},on:{"update:visible":function(t){e.fileVisible=t}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:e.tableData.data,size:"mini","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"文件名",prop:"name","min-width":"200"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作者ID",prop:"admin_id","min-width":"80"}}),e._v(" "),a("el-table-column",{attrs:{label:"生成时间",prop:"create_time","min-width":"180"}}),e._v(" "),a("el-table-column",{attrs:{label:"类型","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.type))])]}}],null,!1,1406222782)}),e._v(" "),a("el-table-column",{attrs:{label:"状态","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("exportOrderStatusFilter")(t.row.status)))])]}}],null,!1,359322133)}),e._v(" "),a("el-table-column",{key:"8",attrs:{label:"操作","min-width":"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.status?a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return e.downLoad(t.row.path)}}},[e._v("下载")]):e._e()]}}],null,!1,921379384)})],1),e._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1)]):e._e()],1)},n=[],s=a("f8b7"),o=(a("bbcc"),a("5f87"),{name:"FileList",data:function(){return{fileVisible:!1,loading:!1,tableData:{data:[],total:0},tableFrom:{page:1,limit:10}}},methods:{exportFileList:function(){var e=this;this.loading=!0,Object(s["l"])(this.tableFrom).then((function(t){e.fileVisible=!0,e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.loading=!1})).catch((function(t){e.$message.error(t.message),e.listLoading=!1}))},downLoad:function(e){window.open(e)},pageChange:function(e){this.tableFrom.page=e,this.exportFileList()},pageChangeLog:function(e){this.tableFromLog.page=e,this.exportFileList()},handleSizeChange:function(e){this.tableFrom.limit=e,this.exportFileList()}}}),l=o,r=(a("7d32"),a("2877")),c=Object(r["a"])(l,i,n,!1,null,"6225beaf",null);t["a"]=c.exports},"3df7":function(e,t,a){},"40ab":function(e,t,a){},"44a8":function(e,t,a){},4553:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"mt20 ml20"},[a("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入视频链接"},model:{value:e.videoLink,callback:function(t){e.videoLink=t},expression:"videoLink"}}),e._v(" "),a("input",{ref:"refid",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:e.zh_uploadFile_change}}),e._v(" "),a("el-button",{staticClass:"ml10",attrs:{type:"primary",icon:"ios-cloud-upload-outline"},on:{click:e.zh_uploadFile}},[e._v(e._s(e.videoLink?"确认添加":"上传视频"))]),e._v(" "),e.upload.videoIng?a("el-progress",{staticStyle:{"margin-top":"20px"},attrs:{"stroke-width":20,percentage:e.progress,"text-inside":!0}}):e._e(),e._v(" "),e.formValidate.video_link?a("div",{staticClass:"iview-video-style"},[a("video",{staticStyle:{width:"100%",height:"100%!important","border-radius":"10px"},attrs:{src:e.formValidate.video_link,controls:"controls"}},[e._v("\n 您的浏览器不支持 video 标签。\n ")]),e._v(" "),a("div",{staticClass:"mark"}),e._v(" "),a("i",{staticClass:"iconv el-icon-delete",on:{click:e.delVideo}})]):e._e()],1),e._v(" "),a("div",{staticClass:"mt50 ml20"},[a("el-button",{attrs:{type:"primary"},on:{click:e.uploads}},[e._v("确认")])],1)])},n=[],s=(a("7f7f"),a("c4c8")),o=(a("6bef"),{name:"Vide11o",props:{isDiy:{type:Boolean,default:!1}},data:function(){return{upload:{videoIng:!1},progress:20,videoLink:"",formValidate:{video_link:""}}},methods:{delVideo:function(){var e=this;e.$set(e.formValidate,"video_link","")},zh_uploadFile:function(){this.videoLink?this.formValidate.video_link=this.videoLink:this.$refs.refid.click()},zh_uploadFile_change:function(e){var t=this,a=e.target.files[0].name.substr(e.target.files[0].name.indexOf("."));if(".mp4"!==a)return t.$message.error("只能上传MP4文件");Object(s["kb"])().then((function(a){t.$videoCloud.videoUpload({type:a.data.type,evfile:e,res:a,uploading:function(e,a){t.upload.videoIng=e,console.log(e,a)}}).then((function(e){t.formValidate.video_link=e.url||e.data.src,t.$message.success("视频上传成功"),t.progress=100,t.upload.videoIng=!1})).catch((function(e){t.$message.error(e)}))}))},uploads:function(){this.formValidate.video_link||this.videoLink?!this.videoLink||this.formValidate.video_link?this.isDiy?this.$emit("getVideo",this.formValidate.video_link):nowEditor&&(nowEditor.dialog.close(!0),nowEditor.editor.setContent("<video src='"+this.formValidate.video_link+"' controls='controls'></video>",!0)):this.$message.error("请点击确认添加按钮!"):this.$message.error("您还没有上传视频!")}}}),l=o,r=(a("0c65"),a("2877")),c=Object(r["a"])(l,i,n,!1,null,"6da5203f",null);t["default"]=c.exports},5282:function(e,t,a){"use strict";a("7f21")},"5b3f":function(e,t,a){"use strict";a("ffd6")},6575:function(e,t,a){"use strict";a("3df7")},"7acc":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"label-wrapper"},[a("div",{staticClass:"list-box"},e._l(e.attrs,(function(t,i){return a("div",{key:i,staticClass:"label-box"},[a("div",{staticClass:"title"},[e._v(e._s(t.value))]),e._v(" "),a("div",{staticClass:"list"},e._l(t.details,(function(t,i){return a("div",{key:i,staticClass:"label-item",class:t.select?"on":"",on:{click:function(a){return e.selectAttr(t,i)}}},[e._v(e._s(t.name))])})),0)])})),0),e._v(" "),a("div",{staticClass:"footer"},[a("el-button",{staticClass:"btns",attrs:{type:"primary",plain:"",size:"mini"},on:{click:e.cancel}},[e._v("取消")]),e._v(" "),a("el-button",{staticClass:"btns",attrs:{type:"primary",plain:"",size:"mini"},on:{click:e.reset}},[e._v("重置")]),e._v(" "),a("el-button",{staticClass:"btns",attrs:{type:"primary",size:"mini"},on:{click:e.subBtn}},[e._v("确定")])],1)])},n=[],s={name:"attrList",props:{attrs:{type:Array,default:function(){return[]}}},data:function(){return{}},mounted:function(){},methods:{selectAttr:function(e,t){e.select=!e.select,this.$emit("activeData",JSON.parse(JSON.stringify(this.attrs)))},cancel:function(){this.$emit("close")},reset:function(){var e=this.attrs;e.map((function(e){e.details.map((function(e){e.select=!1}))})),this.attrs=e},subBtn:function(){this.$emit("subAttrs")}}},o=s,l=(a("6575"),a("2877")),r=Object(l["a"])(o,i,n,!1,null,"4141862b",null);t["a"]=r.exports},"7d32":function(e,t,a){"use strict";a("40ab")},"7f21":function(e,t,a){},"8c98":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"goods_detail"},[a("div",{staticClass:"goods_detail_wrapper",class:e.previewKey||e.goodsId?"on":""},[e.previewKey?a("iframe",{staticStyle:{width:"100%",height:"600px"},attrs:{src:"/pages/admin/goods_details/index?preview_key="+e.previewKey+"&product_type="+e.productType+"&inner_frame=1",frameborder:"0"}}):e._e(),e._v(" "),e.goodsId?a("iframe",{staticStyle:{width:"100%",height:"600px"},attrs:{src:"/pages/admin/goods_details/index?product_id="+e.goodsId+"&product_type="+e.productType+"&inner_frame=1",frameborder:"0"}}):e._e()])])},n=[],s=(a("c5f6"),{name:"PreviewBox",props:{goodsId:{type:String|Number,default:""},productType:{type:String|Number,default:""},previewKey:{type:String|Number,default:""}},data:function(){return{}},mounted:function(){},methods:{getProListUrl:function(){}}}),o=s,l=(a("0f86"),a("2877")),r=Object(l["a"])(o,i,n,!1,null,"03eed66e",null);t["a"]=r.exports},9097:function(e,t,a){},9302:function(e,t,a){},ae43:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{attrs:{title:e.isEdit?"编辑服务说明模板":"添加服务说明模板",visible:e.dialogVisible,width:"1000px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("el-form",{ref:"formValidate",staticClass:"formValidate mt20",attrs:{model:e.formValidate,rules:e.ruleInline,"label-width":"90px"}},[a("el-form-item",{attrs:{label:"模板名称:",prop:"template_name"}},[a("el-input",{attrs:{placeholder:"请输入模板名称",size:"small"},model:{value:e.formValidate.template_name,callback:function(t){e.$set(e.formValidate,"template_name",t)},expression:"formValidate.template_name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"服务条款:",prop:"template_value"}},[a("div",{staticClass:"acea-row"},e._l(e.termsService,(function(t,i){return a("el-tag",{key:i,staticClass:"mr10",attrs:{closable:"","disable-transitions":!1},on:{close:function(a){return e.handleCloseItems(t)}}},[e._v(e._s(t.guarantee_name))])})),1)]),e._v(" "),a("el-form-item",[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入服务条款名称搜索",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getServiceTerms(t)}},model:{value:e.guarantee_name,callback:function(t){e.guarantee_name=t},expression:"guarantee_name"}}),e._v(" "),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.getServiceTerms}},[e._v("搜索")])],1),e._v(" "),a("el-form-item",[a("el-checkbox-group",{on:{change:e.handleCheckedTermsChange},model:{value:e.formValidate.template_value,callback:function(t){e.$set(e.formValidate,"template_value",t)},expression:"formValidate.template_value"}},e._l(e.termsList,(function(t){return a("el-checkbox",{directives:[{name:"show",rawName:"v-show",value:t.isShow,expression:"item.isShow"}],key:t.guarantee_id,staticClass:"guarantee_checkbox",attrs:{label:t.guarantee_id}},[a("span",{staticClass:"guarantee_name"},[e._v(e._s(t.guarantee_name))]),e._v(" "),a("span",{staticClass:"guarantee_info"},[e._v(e._s(t.guarantee_info))])])})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"排序:"}},[a("el-input-number",{attrs:{placeholder:"请输入排序"},model:{value:e.formValidate.sort,callback:function(t){e.$set(e.formValidate,"sort",t)},expression:"formValidate.sort"}})],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isEdit?a("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:function(t){return e.updateGuarantee("formValidate")}}},[e._v("确 定")]):a("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:function(t){return e.createGuarantee("formValidate")}}},[e._v("确 定")])],1)],1)],1)},n=[],s=(a("7f7f"),a("55dd"),a("ac6a"),a("c4c8")),o={name:"CreatGuarantee",data:function(){return{isEdit:!1,dialogVisible:!1,loading:!1,guarantee_id:"",guarantee_name:"",termsService:[],termsList:[],formValidate:{template_name:"",template_value:[],sort:""},ruleInline:{template_name:[{required:!0,message:"请输入模板名称",trigger:"blur"}],template_value:[{required:!0,message:"请选择服务条款",trigger:"change"}]}}},watch:{},mounted:function(){this.getServiceTerms()},methods:{getServiceTerms:function(){var e=this;Object(s["I"])({keyword:this.guarantee_name}).then((function(t){e.guarantee_name?e.getSearchItem(t.data):(e.termsList=t.data,e.termsList.forEach((function(e,t){e.isShow=!0})))})).catch((function(t){var a=t.message;e.$message.error(a)}))},getSearchItem:function(e){var t=this;this.termsList.forEach((function(a,i){e.length>0?e.forEach((function(e,t){e.guarantee_id==a.guarantee_id?a.isShow=!0:a.isShow=!1})):a.isShow=!1,t.$set(t.termsList,i,a),console.log(t.termsList)}))},handleCheckedTermsChange:function(e){this.getSelectedItems(e)},handleCloseItems:function(e){var t=this;this.termsService.splice(this.termsService.indexOf(e),1),this.formValidate.template_value=[],this.termsService.map((function(e){t.formValidate.template_value.push(e.guarantee_id)}))},getSelectedItems:function(e){var t=this;this.termsService=[],this.termsList.forEach((function(a,i){e.forEach((function(e,i){e==a.guarantee_id&&t.termsService.push(a)}))}))},handleEdit:function(e){var t=this;this.isEdit=!0,this.dialogVisible=!0,this.loading=!1,this.guarantee_id=e,Object(s["F"])(e).then((function(e){var a=e.data;t.formValidate={template_name:a.template_name,template_value:a.template_value,sort:a.sort},t.getSelectedItems(a.template_value),t.$refs["formValidate"].clearValidate()})).catch((function(e){var a=e.message;t.$message.error(a)}))},add:function(){this.isEdit=!1,this.dialogVisible=!0,this.loading=!1,this.guarantee_name="",this.formValidate={template_name:"",template_value:[],sort:""},this.getServiceTerms()},createGuarantee:function(e){var t=this;this.$refs[e].validate((function(e){e&&(t.loading=!0,Object(s["D"])(t.formValidate).then((function(e){var a=e.message;t.$message.success(a),t.dialogVisible=!1,t.loading=!1,t.$emit("get-list","")})).catch((function(e){var a=e.message;t.loading=!1,t.$message.error(a)})))}))},updateGuarantee:function(e){var t=this;this.$refs[e].validate((function(e){e&&(t.loading=!0,Object(s["L"])(t.guarantee_id,t.formValidate).then((function(e){var a=e.message;t.$message.success(a),t.dialogVisible=!1,t.loading=!1,t.$emit("get-list","")})).catch((function(e){var a=e.message;t.loading=!1,t.$message.error(a)})))}))}}},l=o,r=(a("5b3f"),a("2877")),c=Object(r["a"])(l,i,n,!1,null,"62e65918",null);t["a"]=c.exports},b59b:function(e,t,a){"use strict";a("dc41")},c4ad:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"goodList"},[a("el-form",{attrs:{size:"small",inline:"","label-width":"85px"}},[a("el-form-item",{attrs:{label:"商品分类:"}},[a("el-select",{staticClass:"dialogWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(t){return e.getList(1)}},model:{value:e.tableFrom.mer_cate_id,callback:function(t){e.$set(e.tableFrom,"mer_cate_id",t)},expression:"tableFrom.mer_cate_id"}},e._l(e.merCateList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"商品搜索:"}},[a("el-input",{staticClass:"dialogWidth",attrs:{placeholder:"请输入商品名称,关键字,编号"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getList(1)}},model:{value:e.tableFrom.keyword,callback:function(t){e.$set(e.tableFrom,"keyword",t)},expression:"tableFrom.keyword"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.getList(1)}}},[e._v("查询")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"table",attrs:{data:e.tableData.data,"row-key":e.getRowKeys,size:"small"},on:{"selection-change":e.changeCheckbox}},[a("el-table-column",{attrs:{type:"selection","reserve-selection":!0,selectable:e.checkSelectSet,width:"55"}}),e._v(" "),a("el-table-column",{attrs:{prop:"product_id",label:"商品id","min-width":"80"}}),e._v(" "),a("el-table-column",{attrs:{label:"商品图","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("div",{staticClass:"demo-image__preview"},[a("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:e.row.image,"preview-src-list":[e.row.image]}})],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"store_name",label:"商品名称","min-width":"200"}}),e._v(" "),a("el-table-column",{attrs:{label:"售价",prop:"price","min-width":"80"}}),e._v(" "),a("el-table-column",{attrs:{label:"会员价",prop:"svip_price","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.svip_price_type?a("span",[e._v("未设置")]):a("span",[e._v(e._s(t.row.svip_price))])]}}])})],1),e._v(" "),a("div",{staticClass:"acea-row row-between mt20 mb15"},[a("el-pagination",{attrs:{"page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}}),e._v(" "),a("div",{staticClass:"footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:e.close}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"small",loading:e.modal_loading},on:{click:e.ok}},[e._v("提交")])],1)],1)],1)},n=[],s=(a("ac6a"),a("c7eb")),o=(a("96cf"),a("1da1")),l=a("c4c8"),r={name:"index",props:{is_new:{type:String,default:""},diy:{type:Boolean,default:!1},isdiy:{type:Boolean,default:!1},ischeckbox:{type:Boolean,default:!1},liveStatus:{type:Boolean,default:!1},isLive:{type:Boolean,default:!1},isGood:{type:Boolean,default:!1},datas:{type:Object,default:function(){return{}}},selectedArr:{type:Array,default:function(){return[]}},product_id:{type:String,default:""}},data:function(){return{cateIds:[],merCateList:[],modal_loading:!1,treeSelect:[],props:{emitPath:!1},tableFrom:{mer_cate_id:"",keyword:"",is_gift_bag:0,is_good:this.isGood?1:"",page:1,limit:6},total:0,loading:!1,tableData:{total:0,data:[]},currentid:0,productRow:{},images:[],diyVal:[],many:"",idKey:"product_id",multipleSelectionAll:this.selectedArr}},computed:{},created:function(){var e="";e=this.ischeckbox?"many":this.$route.query.type,this.many=e},mounted:function(){var e=this;this.getCategorySelect(),this.getList(""),setTimeout((function(){e.setSelectRow()}),500)},methods:{getRowKeys:function(e){return e.product_id},checkSelectSet:function(e,t){return e.product_id!=this.product_id},handleSelectAll:function(){this.$refs.table.selectAll(!1)},changeCheckbox:function(e){this.images=e,this.diyVal=e,this.isdiy&&this.$emit("getProductDiy",e)},goodsCategory:function(){var e=this;Object(l["t"])(1).then((function(t){e.treeSelect=t.data})).catch((function(t){e.$message.error(t.message)}))},getCategorySelect:function(){var e=this;Object(l["u"])().then((function(t){e.merCateList=t.data})).catch((function(t){e.$message.error(t.message)}))},pageChange:function(e){this.tableFrom.page=e,this.getList("")},handleSizeChange:function(e){this.tableFrom.limit=e,this.getList("")},getList:function(e){var t=this,a=this;a.loading=!0,a.tableFrom.page=e||a.tableFrom.page,this.isdiy&&(delete a.tableFrom.is_gift_bag,delete a.tableFrom.is_good),Object(l["B"])(a.tableFrom).then(function(){var e=Object(o["a"])(Object(s["a"])().mark((function e(i){return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a.tableData.data=i.data.list,a.tableData.total=i.data.count,t.$nextTick((function(){this.setSelectRow()})),a.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){a.loading=!1,a.$message.error(e.message)}))},setSelectRow:function(){if(this.multipleSelectionAll&&!(this.multipleSelectionAll.length<=0)){var e=this.idKey,t=[];this.multipleSelectionAll.forEach((function(a){t.push(a[e])}));for(var a=0;a<this.tableData.data.length;a++)t.indexOf(this.tableData.data[a][e])>=0&&this.$refs.table.toggleRowSelection(this.tableData.data[a],!0)}},close:function(){this.$emit("close")},ok:function(){if(this.images.length>0)if("image"===this.$route.query.fodder){var e=form_create_helper.get("image");form_create_helper.set("image",e.concat(this.images)),form_create_helper.close("image")}else this.isdiy?this.$emit("getProductId",this.diyVal):this.$emit("getProductId",this.images);else this.$message.warning("请先选择商品")}}},c=r,d=(a("b59b"),a("2877")),u=Object(d["a"])(c,i,n,!1,null,"e8ec639c",null);t["a"]=u.exports},dc41:function(e,t,a){},e46d:function(e,t,a){"use strict";a("44a8")},ef0d:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("vue-ueditor-wrap",{staticStyle:{width:"90%"},attrs:{config:e.myConfig},on:{beforeInit:e.addCustomDialog},model:{value:e.contents,callback:function(t){e.contents=t},expression:"contents"}})],1)},n=[],s=a("6625"),o=a.n(s),l=a("83d6"),r=a("bbcc"),c=a("5f87"),d={name:"Index",components:{VueUeditorWrap:o.a},scrollerHeight:{content:String,default:""},props:{content:{type:String,default:""}},data:function(){var e=r["a"].https+"/upload/image/0/file?ueditor=1&token="+Object(c["a"])();return{contents:this.content,myConfig:{autoHeightEnabled:!1,initialFrameHeight:500,initialFrameWidth:"100%",UEDITOR_HOME_URL:"/UEditor/",serverUrl:e,imageUrl:e,imageFieldName:"file",imageUrlPrefix:"",imageActionName:"upfile",imageMaxSize:2048e3,imageAllowFiles:[".png",".jpg",".jpeg",".gif",".bmp"]}}},watch:{content:function(e){this.contents=this.content},contents:function(e){this.$emit("input",e)}},created:function(){},methods:{addCustomDialog:function(e){window.UE.registerUI("test-dialog",(function(e,t){var a=new window.UE.ui.Dialog({iframeUrl:l["roterPre"]+"/setting/uploadPicture?field=dialog",editor:e,name:t,title:"上传图片",cssRules:"width:1000px;height:620px;padding:20px;"});this.dialog=a;var i=new window.UE.ui.Button({name:"dialog-button",title:"上传图片",cssRules:"background-image: url(@/assets/images/icons.png);background-position: -726px -77px;",onclick:function(){a.render(),a.open()}});return i}),37)}}},u=d,m=a("2877"),f=Object(m["a"])(u,i,n,!1,null,"000e1cf6",null);t["a"]=f.exports},ffd6:function(e,t,a){}}]);