1 line
24 KiB
JavaScript
1 line
24 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-commons"],{"0bb7":function(e,t,i){"use strict";i("360f")},"0f56":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-row",{staticClass:"ivu-mt",attrs:{gutter:14,align:"middle"}},[e._l(e.cardLists,(function(t,a){return i("el-col",{key:a,staticClass:"ivu-mb mb14",attrs:{xl:e.more?6:4,lg:e.more?6:8,md:12,sm:24,xs:24}},[i("div",{staticClass:"card_box"},[i("div",{staticClass:"card_box_cir",class:{one:a%5==0,two:a%5==1,three:a%5==2,four:a%5==3,five:a%5==4}},[i("div",{staticClass:"card_box_cir1",class:{one1:a%5==0,two1:a%5==1,three1:a%5==2,four1:a%5==3,five1:a%5==4}},[i("i",{class:t.className,staticStyle:{"font-size":"24px"}})])]),e._v(" "),i("div",{staticClass:"card_box_txt"},[i("span",{staticClass:"sp1",domProps:{textContent:e._s(t.count||0)}}),e._v(" "),i("span",{staticClass:"sp2",domProps:{textContent:e._s(t.name)}})])])])})),e._v(" "),i("div",{staticClass:"ivu-mb mb10"})],2)},s=[],n={name:"Index",props:{cardLists:Array,more:Boolean}},o=n,l=(i("7c8b"),i("2877")),r=Object(l["a"])(o,a,s,!1,null,"bf8de7e6",null);t["a"]=r.exports},1973:function(e,t,i){"use strict";i("53aa")},"2f08":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return 1==e.openVersion?i("div",{staticClass:"ivu-global-footer i-copyright"},[-1==e.version.status?i("div",{staticClass:"ivu-global-footer-copyright"},[e._v(e._s("Copyright "+e.version.year+" ")),i("a",{attrs:{href:""+e.version.url,target:"_blank"}},[e._v(e._s(e.version.version))])]):i("div",{staticClass:"ivu-global-footer-copyright"},[e._v(e._s(e.version.Copyright))])]):e._e()},s=[],n=i("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(n["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=(i("1973"),i("2877")),c=Object(r["a"])(l,a,s,!1,null,"23464035",null);t["a"]=c.exports},"30dc":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.fileVisible?i("el-dialog",{attrs:{title:"导出订单列表",visible:e.fileVisible,width:"900px"},on:{"update:visible":function(t){e.fileVisible=t}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("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":""}},[i("el-table-column",{attrs:{label:"文件名",prop:"name","min-width":"200"}}),e._v(" "),i("el-table-column",{attrs:{label:"操作者ID",prop:"admin_id","min-width":"80"}}),e._v(" "),i("el-table-column",{attrs:{label:"生成时间",prop:"create_time","min-width":"180"}}),e._v(" "),i("el-table-column",{attrs:{label:"类型","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.type))])]}}],null,!1,1406222782)}),e._v(" "),i("el-table-column",{attrs:{label:"状态","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("exportOrderStatusFilter")(t.row.status)))])]}}],null,!1,359322133)}),e._v(" "),i("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?i("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(i){return e.downLoad(t.row.path)}}},[e._v("下载")]):e._e()]}}],null,!1,921379384)})],1),e._v(" "),i("div",{staticClass:"block"},[i("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)},s=[],n=i("f8b7"),o=(i("bbcc"),i("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(n["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=(i("6635"),i("2877")),c=Object(r["a"])(l,a,s,!1,null,"13f6c330",null);t["a"]=c.exports},"360f":function(e,t,i){},"422e":function(e,t,i){},4553:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"mt20 ml20"},[i("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入视频链接"},model:{value:e.videoLink,callback:function(t){e.videoLink=t},expression:"videoLink"}}),e._v(" "),i("input",{ref:"refid",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:e.zh_uploadFile_change}}),e._v(" "),i("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?i("el-progress",{staticStyle:{"margin-top":"20px"},attrs:{"stroke-width":20,percentage:e.progress,"text-inside":!0}}):e._e(),e._v(" "),e.formValidate.video_link?i("div",{staticClass:"iview-video-style"},[i("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(" "),i("div",{staticClass:"mark"}),e._v(" "),i("i",{staticClass:"iconv el-icon-delete",on:{click:e.delVideo}})]):e._e()],1),e._v(" "),i("div",{staticClass:"mt50 ml20"},[i("el-button",{attrs:{type:"primary"},on:{click:e.uploads}},[e._v("确认")])],1)])},s=[],n=(i("7f7f"),i("c4c8")),o=(i("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,i=e.target.files[0].name.substr(e.target.files[0].name.lastIndexOf("."));if(".mp4"!==i)return t.$message.error("只能上传MP4文件");Object(n["kb"])().then((function(i){t.$videoCloud.videoUpload({type:i.data.type,evfile:e,res:i,uploading:function(e,i){t.upload.videoIng=e,console.log(e,i)}}).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=(i("7ec8"),i("2877")),c=Object(r["a"])(l,a,s,!1,null,"15782d36",null);t["default"]=c.exports},"4c03":function(e,t,i){},"53aa":function(e,t,i){},5467:function(e,t,i){},"5cb4":function(e,t,i){"use strict";i("422e")},6635:function(e,t,i){"use strict";i("bbe1")},"7acc":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"label-wrapper"},[i("div",{staticClass:"list-box"},e._l(e.attrs,(function(t,a){return i("div",{key:a,staticClass:"label-box"},[i("div",{staticClass:"title"},[e._v(e._s(t.value))]),e._v(" "),i("div",{staticClass:"list"},e._l(t.details,(function(t,a){return i("div",{key:a,staticClass:"label-item",class:t.select?"on":"",on:{click:function(i){return e.selectAttr(t,a)}}},[e._v(e._s(t.name))])})),0)])})),0),e._v(" "),i("div",{staticClass:"footer"},[i("el-button",{staticClass:"btns",attrs:{type:"primary",plain:"",size:"mini"},on:{click:e.cancel}},[e._v("取消")]),e._v(" "),i("el-button",{staticClass:"btns",attrs:{type:"primary",plain:"",size:"mini"},on:{click:e.reset}},[e._v("重置")]),e._v(" "),i("el-button",{staticClass:"btns",attrs:{type:"primary",size:"mini"},on:{click:e.subBtn}},[e._v("确定")])],1)])},s=[],n={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=n,l=(i("5cb4"),i("2877")),r=Object(l["a"])(o,a,s,!1,null,"a234db6c",null);t["a"]=r.exports},"7c8b":function(e,t,i){"use strict";i("4c03")},"7ec8":function(e,t,i){"use strict";i("e2f3")},"8c98":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"goods_detail"},[i("div",{staticClass:"goods_detail_wrapper",class:e.previewKey||e.goodsId?"on":""},[e.previewKey?i("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?i("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()])])},s=[],n=(i("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=n,l=(i("bb45"),i("2877")),r=Object(l["a"])(o,a,s,!1,null,"6044214d",null);t["a"]=r.exports},"9bd6":function(e,t,i){"use strict";i("5467")},ae43:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-dialog",{attrs:{title:e.isEdit?"编辑服务说明模板":"添加服务说明模板",visible:e.dialogVisible,width:"1000px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("el-form",{ref:"formValidate",staticClass:"formValidate mt20",attrs:{size:"small",model:e.formValidate,rules:e.ruleInline,"label-width":"90px"}},[i("el-form-item",{attrs:{label:"模板名称:",prop:"template_name"}},[i("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(" "),i("el-form-item",{attrs:{label:"服务条款:",prop:"template_value"}},[i("div",{staticClass:"acea-row"},e._l(e.termsService,(function(t,a){return i("el-tag",{key:a,staticClass:"mr10",attrs:{closable:"","disable-transitions":!1},on:{close:function(i){return e.handleCloseItems(t)}}},[e._v(e._s(t.guarantee_name))])})),1)]),e._v(" "),i("el-form-item",[i("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(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.getServiceTerms}},[e._v("搜索")])],1),e._v(" "),i("el-form-item",[i("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 i("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}},[i("span",{staticClass:"guarantee_name"},[e._v(e._s(t.guarantee_name))]),e._v(" "),i("span",{staticClass:"guarantee_info"},[e._v(e._s(t.guarantee_info))])])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"排序:"}},[i("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(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isEdit?i("el-button",{attrs:{type:"primary",size:"small",loading:e.loading},on:{click:function(t){return e.updateGuarantee("formValidate")}}},[e._v("确 定")]):i("el-button",{attrs:{type:"primary",size:"small",loading:e.loading},on:{click:function(t){return e.createGuarantee("formValidate")}}},[e._v("确 定")])],1)],1)],1)},s=[],n=(i("7f7f"),i("55dd"),i("ac6a"),i("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(n["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 i=t.message;e.$message.error(i)}))},getSearchItem:function(e){var t=this;this.termsList.forEach((function(i,a){e.length>0?e.forEach((function(e,t){e.guarantee_id==i.guarantee_id?i.isShow=!0:i.isShow=!1})):i.isShow=!1,t.$set(t.termsList,a,i)}))},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(i,a){e.forEach((function(e,a){e==i.guarantee_id&&t.termsService.push(i)}))}))},handleEdit:function(e){var t=this;this.isEdit=!0,this.dialogVisible=!0,this.loading=!1,this.guarantee_id=e,Object(n["F"])(e).then((function(e){var i=e.data;t.formValidate={template_name:i.template_name,template_value:i.template_value,sort:i.sort},t.getSelectedItems(i.template_value),t.$refs["formValidate"].clearValidate()})).catch((function(e){var i=e.message;t.$message.error(i)}))},add:function(){this.isEdit=!1,this.dialogVisible=!0,this.loading=!1,this.guarantee_name="",this.termsService=[],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(n["D"])(t.formValidate).then((function(e){var i=e.message;t.$message.success(i),t.dialogVisible=!1,t.loading=!1,t.$emit("get-list","")})).catch((function(e){var i=e.message;t.loading=!1,t.$message.error(i)})))}))},updateGuarantee:function(e){var t=this;this.$refs[e].validate((function(e){e&&(t.loading=!0,Object(n["L"])(t.guarantee_id,t.formValidate).then((function(e){var i=e.message;t.$message.success(i),t.dialogVisible=!1,t.loading=!1,t.$emit("get-list","")})).catch((function(e){var i=e.message;t.loading=!1,t.$message.error(i)})))}))}}},l=o,r=(i("9bd6"),i("2877")),c=Object(r["a"])(l,a,s,!1,null,"20335605",null);t["a"]=c.exports},bb45:function(e,t,i){"use strict";i("f41d")},bbe1:function(e,t,i){},c4ad:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"goodList"},[i("el-form",{attrs:{size:"small",inline:"","label-width":"85px"}},[i("el-form-item",{attrs:{label:"商品分类:"}},[i("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 i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"商品搜索:"}},[i("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(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.getList(1)}}},[e._v("查询")])],1)],1),e._v(" "),i("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}},[i("el-table-column",{attrs:{type:"selection","reserve-selection":!0,selectable:e.checkSelectSet,width:"55"}}),e._v(" "),i("el-table-column",{attrs:{prop:"product_id",label:"商品id","min-width":"80"}}),e._v(" "),i("el-table-column",{attrs:{label:"商品图","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(e){return[i("div",{staticClass:"demo-image__preview"},[i("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:e.row.image,"preview-src-list":[e.row.image]}})],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"store_name",label:"商品名称","min-width":"200"}}),e._v(" "),i("el-table-column",{attrs:{label:"售价",prop:"price","min-width":"80"}}),e._v(" "),i("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?i("span",[e._v("未设置")]):i("span",[e._v(e._s(t.row.svip_price))])]}}])})],1),e._v(" "),i("div",{staticClass:"acea-row row-between mt20 mb15"},[i("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(" "),i("div",{staticClass:"footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"small"},on:{click:e.close}},[e._v("取消")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small",loading:e.modal_loading},on:{click:e.ok}},[e._v("提交")])],1)],1)],1)},s=[],n=(i("ac6a"),i("c80c")),o=(i("96cf"),i("3b8d")),l=i("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},isDiscount:{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,i=this;i.loading=!0,i.tableFrom.page=e||i.tableFrom.page,i.isDiscount&&(i.tableFrom.is_ficti=0,i.tableFrom.mer_form_id=0),this.isdiy&&delete i.tableFrom.is_good,Object(l["B"])(i.tableFrom).then(function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(a){return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:i.tableData.data=a.data.list,i.tableData.total=a.data.count,t.$nextTick((function(){this.setSelectRow()})),i.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){i.loading=!1,i.$message.error(e.message)}))},setSelectRow:function(){if(this.multipleSelectionAll&&!(this.multipleSelectionAll.length<=0)){var e=this.idKey,t=[];this.multipleSelectionAll.forEach((function(i){t.push(i[e])}));for(var i=0;i<this.tableData.data.length;i++)t.indexOf(this.tableData.data[i][e])>=0&&this.$refs.table.toggleRowSelection(this.tableData.data[i],!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=(i("0bb7"),i("2877")),u=Object(d["a"])(c,a,s,!1,null,"c368289c",null);t["a"]=u.exports},e2f3:function(e,t,i){},ef0d:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("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)},s=[],n=i("6625"),o=i.n(n),l=i("83d6"),r=i("bbcc"),c=i("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 i=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=i;var a=new window.UE.ui.Button({name:"dialog-button",title:"上传图片",cssRules:"background-image: url(@/assets/images/icons.png);background-position: -726px -77px;",onclick:function(){i.render(),i.open()}});return a}),37)}}},u=d,m=i("2877"),f=Object(m["a"])(u,a,s,!1,null,"8d989574",null);t["a"]=f.exports},f41d:function(e,t,i){}}]); |