1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-commons"],{"3U5X":function(e,t,a){"use strict";var i=a("YpJW");a.n(i).a},"BXD+":function(e,t,a){"use strict";var i=a("ucs3");a.n(i).a},E9of:function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,"\n.el-upload--picture-card {\n height: 100px;\n width: 100px;\n line-height: 100px;\n}\n.el-upload--picture-card i {\n font-size: 16px;\n}\n",""])},Hth8:function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,"\n.avatar-uploader .el-upload[data-v-555ad0a0] {\n border: 1px dashed #d9d9d9;\n border-radius: 6px;\n cursor: pointer;\n position: relative;\n overflow: hidden;\n background-color: #f9f9f9;\n}\n.avatar-uploader .el-upload[data-v-555ad0a0]:hover {\n border-color: #409EFF;\n}\n.avatar-uploader-icon[data-v-555ad0a0] {\n font-size: 16px;\n color: #8c939d;\n width: 50px;\n height: 50px;\n line-height: 50px;\n text-align: center;\n background-color: #fbfdff;\n border: 1px dashed #c0ccda;\n border-radius: 6px;\n}\n.avatar[data-v-555ad0a0] {\n width: 50px;\n height: 50px;\n display: block;\n}\n.avatar1[data-v-555ad0a0] {\n width: 120px;\n height: 120px;\n display: block;\n}\n",""])},"JK/W":function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,".tree-pannel {\n position: absolute;\n width: 100%;\n border: 1px solid #dcdfe6;\n border-top: none;\n z-index: 999;\n overflow: auto;\n max-height: 400px;\n}\n.tree-pannel.top38 {\n top: 38px;\n}\n.el-tree {\n min-width: 100%;\n display: inline-block;\n}\n /* .tree {\n overflow: auto;\n max-height: 200px;\n } */\n.form_bg .el-form-item__content {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n /* .el-input{\n border: none;\n }\n */\n /* .input_search {\n border: 0;\n border-radius: 0px;\n box-shadow: none;\n &:focus {\n border-bottom: 1px solid #409eff;\n }\n }\n*/\n.inputDeep > > > .el-input--mini .el-input__inner {\n border: 0;\n border-radius: 0px;\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n.inputDeep > > > .el-input--mini .el-input__inner:focus {\n border-bottom: 1px solid #409eff;\n}\n.input_search {\n border: 0;\n}\n",""])},JjzL:function(e,t,a){var i=a("E9of");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);(0,a("SZ7m").default)("6b1c58ae",i,!0,{})},KCUz:function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,"\n.pre-img[data-v-5c9cc2ff] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n}\n.pre-img-item[data-v-5c9cc2ff] {\n position: relative;\n width: 100px;\n height: 100px;\n margin-right: 5px;\n /*margin-left: 5px;*/\n}\n.pre-img-item img[data-v-5c9cc2ff] {\n width: 100%;\n height: 100%;\n}\n.move-control[data-v-5c9cc2ff] {\n width: 0;\n height: 0;\n overflow: hidden;\n background-color: rgba(0, 0, 0, 0.5);\n color: white;\n font-size: 12px;\n position: absolute;\n bottom: -2px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n padding: 0 10px;\n cursor: pointer;\n}\n.pre-img-item:hover .move-control[data-v-5c9cc2ff] {\n width: 100%;\n height: auto;\n}\n.el-upload--picture-card[data-v-5c9cc2ff] {\n width: 50px;\n}\n.remove-img[data-v-5c9cc2ff] {\n background-color: #fef0f0;\n color: #f56c6c;\n position: absolute;\n right: -3px;\n top: -5px;\n cursor: pointer;\n}\n",""])},WVm0:function(e,t,a){var i=a("JK/W");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);(0,a("SZ7m").default)("5aed2c8a",i,!0,{})},YpJW:function(e,t,a){var i=a("Hth8");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);(0,a("SZ7m").default)("51f7ebb8",i,!0,{})},ZJZS:function(e,t,a){"use strict";var i=a("JjzL");a.n(i).a},j3k1:function(e,t,a){"use strict";var i=a("4d7F"),n=a.n(i),r=a("MSNs"),o=a("iJd5"),s={name:"UpImage",props:{value:{type:Array,default:function(){return[]}},width:{type:String,default:"100"},actionURL:{type:String,default:"https://up-z2.qiniup.com/"},fileSize:{type:Number,default:o.d}},data:function(){return{upData:{token:""},loading:!1}},computed:{imageList:function(){return this.value?this.value.map(function(e){return{name:"x",url:e}}):{}}},methods:{emitInput:function(e){this.$emit("removeImg",e)},handleRemoveImage:function(e){this.emitInput(e)},handleRemove:function(e,t){this.emitInput(e)},beforeUpload:function(e){var t=this;this.loading=!0;var a=this;return e.size>1024*this.fileSize*1024?(this.loading=!1,this.$message({message:"最大只能上传"+this.fileSize+"MB的文件",type:"warning",duration:3e3}),!1):new n.a(function(e,i){Object(r.a)().then(function(n){if(200===n.data.code){var r=n.data.data.token;a._data.upData.token=r,e(!0)}else a.loading=!1,t.$notify.error({title:"错误",message:n.data.msg}),i(!1)}).catch(function(e){a.loading=!1,t.$notify.error({title:"错误",message:e}),i(!1)})})},handleSuccess:function(e,t,a){this.loading=!1,this.value.push("https://qiniu.bms16.com/"+e.key),this.value.length>3&&(this.value.splice(3,1),this.$message.error("最多上传三张图片"))},handleError:function(e,t,a){this.loading=!1,this.$notify({title:"失败",message:"上传失败:["+e+"]",type:"error"})},moveLeft:function(e){if(0!==e){var t=this.value[e-1];this.value.splice(e-1,1),this.value.splice(e,0,t)}},moveRight:function(e){if(e!==this.value.length-1){var t=this.value[e];this.value.splice(e,1),this.value.splice(e+1,0,t)}}}},d=(a("BXD+"),a("ZJZS"),a("KHd+")),l=Object(d.a)(s,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pre-img"},[e._l(e.value,function(t,i){return a("div",{key:i,staticClass:"pre-img-item"},[a("img",{attrs:{src:t}}),e._v(" "),a("i",{staticClass:"el-alert__icon el-icon-error remove-img",on:{click:function(a){e.handleRemoveImage(t)}}}),e._v(" "),a("div",{staticClass:"move-control"},[a("span",{staticClass:"move-left",staticStyle:{"font-size":"10px"},on:{click:function(t){e.moveLeft(i)}}},[a("i",{staticClass:"el-icon-caret-left"}),e._v("前移")]),e._v(" "),a("span",{staticClass:"move-right",staticStyle:{"font-size":"10px"},on:{click:function(t){e.moveRight(i)}}},[e._v("后移"),a("i",{staticClass:"el-icon-caret-right"})])])])}),e._v(" "),a("el-upload",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"90px"},attrs:{action:e.actionURL,data:e.upData,"on-remove":e.handleRemove,"on-success":e.handleSuccess,"before-upload":e.beforeUpload,"on-error":e.handleError,"file-list":e.imageList,"show-file-list":!1,"element-loading-spinner":"el-icon-loading",name:"file","list-type":"picture-card"}},[a("i",{staticClass:"el-icon-plus"})])],2)},[],!1,null,"5c9cc2ff",null);l.options.__file="upImageWall.vue";t.a=l.exports},kJ24:function(e,t,a){"use strict";var i=a("WVm0");a.n(i).a},ucs3:function(e,t,a){var i=a("KCUz");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);(0,a("SZ7m").default)("498565c0",i,!0,{})},wwhB:function(e,t,a){"use strict";var i=a("4d7F"),n=a.n(i),r=a("MSNs"),o=a("iJd5"),s={name:"UpImage",props:{value:{type:String,default:""},tips:{type:String,default:"80*80,大小不超过2KB"},width:{type:String,default:""},size:{type:String,default:"50"},height:{type:String,default:""},actionURL:{type:String,default:"https://up-z2.qiniup.com/"},isVideo:{type:Boolean,default:!1},fileSize:{type:Number,default:o.d}},data:function(){return{upData:{token:""},loading:!1,isImage:!1,isVideoFormat:!1}},computed:{imageUrl:function(){return this.value},cWidth:function(){return"width: "+this.width+"px"},cHeight:function(){return"height: "+this.height+"px"},cSize:function(){return"width: "+(this.width?this.width:this.size)+"px; height: "+(this.height?this.height:this.size)+"px; line-height: "+(this.height?this.height:this.size)+"px"}},methods:{rmImage:function(){this.emitInput("")},emitInput:function(e){this.$emit("input",e)},beforeUpload:function(e){var t=this,a=e.name.substr(e.name.lastIndexOf(".")+1);this.isImage=-1!=["png","jpg","jpeg","bmp","gif","webp","psd","svg","tiff"].indexOf(a),this.isVideoFormat=-1!=["avi","asf","wmv","mpeg","mp4","m4v","mov","flv","f4v","rmvb","rm","3gp","vob"].indexOf(a),this.loading=!0;var i=this;return e.size>1024*this.fileSize*1024?(this.loading=!1,this.$message({message:"最大只能上传"+this.fileSize+"MB的文件",type:"warning",duration:3e3}),!1):new n.a(function(e,a){!t.isImage&&t.isVideo&&t.isVideoFormat?Object(r.b)().then(function(n){if(200===n.data.code){var r=n.data.data.token;i._data.upData.token=r,e(!0)}else t.$notify.error({title:"错误",message:n.data.msg}),a(!1);i.loading=!1}).catch(function(e){i.loading=!1,t.$notify.error({title:"错误",message:e}),a(!1)}):!t.isImage||t.isVideo||t.isVideoFormat?!t.isVideoFormat&&t.isVideo?(i.loading=!1,t.$message.error("请上传正常格式视频文件!")):t.isImage||t.isVideo||(i.loading=!1,t.$message.error("请上传正常格式图片文件!")):Object(r.a)().then(function(n){if(200===n.data.code){var r=n.data.data.token;i._data.upData.token=r,e(!0)}else t.$notify.error({title:"错误",message:n.data.msg}),a(!1);i.loading=!1}).catch(function(e){i.loading=!1,t.$notify.error({title:"错误",message:e}),a(!1)})})},handleSuccess:function(e,t,a){this.loading=!1,this.isVideo?this.emitInput("http://cdn.yiyuanchong.com/"+e.key):this.emitInput("https://qiniu.bms16.com/"+e.key)},handleError:function(e,t,a){(this.isImage&&!this.isVideo||!this.isImage&&this.isVideo)&&(this.loading=!1,this.$notify({title:"失败",message:"上传失败:["+e+"]",type:"error"}))}}},d=(a("3U5X"),a("KHd+")),l=Object(d.a)(s,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-upload",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"avatar-uploader",style:e.cSize,attrs:{action:e.actionURL,"show-file-list":!1,data:e.upData,"on-success":e.handleSuccess,"before-upload":e.beforeUpload,"on-error":e.handleError,"element-loading-spinner":"el-icon-loading",name:"file","list-type":"picture"}},[e.imageUrl&&!e.isVideo?a("img",{staticClass:"avatar",style:e.cSize,attrs:{src:e.imageUrl}}):e._e(),e._v(" "),e.imageUrl&&e.isVideo?a("video",{staticClass:"avatar1",attrs:{controls:"",autoplayNew:!1}},[a("source",{attrs:{src:e.imageUrl,type:"video/mp4"}})]):e._e(),e._v(" "),e.imageUrl?e._e():a("i",{staticClass:"el-icon-plus avatar-uploader-icon",style:e.cSize})])],1)},[],!1,null,"555ad0a0",null);l.options.__file="upImage2.vue";t.a=l.exports},zBnO:function(e,t,a){"use strict";var i=a("wk8/"),n={props:{tree:{type:String,default:""},disabled:{type:Boolean,default:!1},isGap:{type:Boolean,default:!0}},data:function(){return{transferShopLoading:!1,showTransferShopData:[],treeDataIds:[],filterTransferShopTreeName:"",userTreeShopShow:!1,is_all_level:0,transferTreeLoading:!1,showTransferTreeData:[],filterTransferShopName:"",defaultProps:{children:"children",label:"shop_name"},transferShopUserInfo:{}}},computed:{},watch:{tree:{handler:function(e,t){this.filterTransferShopName=e}},filterShopTreeName:function(e){this.$refs.leftShoptree.filter(e)},filterTransferShopTreeName:function(e){e!==this.transferUserInfo.shop_name&&(this.transferUserInfo={}),this.$refs.transferShoptree&&this.$refs.transferShoptree.filter(e),this.$refs.transferUsertree&&this.$refs.transferUsertree.filter(e)},filterTransferShopName:function(e){this.filterTransferShopName=e,e!==this.transferShopUserInfo.shop_name&&(this.transferShopUserInfo={}),this.$refs.transferShoptree&&this.$refs.transferShoptree.filter(e),this.$refs.transferUsertree&&this.$refs.transferUsertree.filter(e)}},mounted:function(){},methods:{clickInputSelectUserShop:function(){this.userTreeShopShow=!0,this.handleSearchTransferShopList()},handleShopNodeExpand:function(e){this.reloadExpandShopList(e.shop_id,1)},handleUserNodeExpand:function(e){this.reloadExpandShopList(e.shop_id,2)},handleSearchTransferShopNameList:function(){this.treeDataIds=[],this.loadSearchShopList(1)},clickoutside:function(){this.userTreeShopShow=!1},handleSearchTransferShopList:function(){this.treeDataIds=[],this.loadSearchShopList(2)},selectedTransferShop:function(e){this.userTreeShopShow=!1,this.transferShopUserInfo=e,this.$emit("handleSelectGroup",this.transferShopUserInfo),this.filterTransferShopName=e.shop_name},clearShopTransferShop:function(){this.$emit("handleClearData",""),this.transferShopUserInfo={},this.$emit("handleSelectGroup",this.transferShopUserInfo)},loadSearchShopList:function(e){var t=this,a="";1===e?(this.transferShopLoading=!0,a=this.filterTransferShopTreeName):2===e&&(this.transferTreeLoading=!0,a=this.filterTransferShopName),Object(i.Ab)({shop_name:a}).then(function(a){if(t.transferShopLoading=!1,t.transferTreeLoading=!1,200===a.data.code){for(var i=[],n=0;n<a.data.data.length;n++)if(t.dialogTransferShopVisible&&a.data.data[n].shop_id===t.selectedShopInfo.shop_id)a.data.data[n]=[];else{if(!a.data.data[n].hasOwnProperty("children")){a.data.data[n].children=[{id:"1"}]}""===a.data.data[n].shop_image?a.data.data[n].shop_image=[]:a.data.data[n].shop_image=JSON.parse(a.data.data[n].shop_image),i.push(a.data.data[n])}i.length>0?i[0].children[0].hasOwnProperty("id")?1===e?t.showTransferShopData=i:2===e&&(t.showTransferTreeData=i):1===e?t.showTransferShopData=t.loadRecursiveTreeData(i):2===e&&(t.showTransferTreeData=t.loadRecursiveTreeData(i)):1===e?t.showTransferShopData=i:2===e&&(t.showTransferTreeData=i)}})},loadRecursiveTreeData:function(e){for(var t=0;e.length>t;t++)if(e[t].children.length>0)this.treeDataIds.push(e[t].shop_id),this.loadRecursiveTreeData(e[t].children);else if(!0===e[t].has_children){e[t].children=[{id:"1",children:[]}]}return e},reloadExpandShopList:function(e,t){var a=this;2===t?this.transferTreeLoading=!0:this.transferShopLoading=!0,Object(i.vb)({parent_id:e}).then(function(i){if(a.transferTreeLoading=!1,a.transferShopLoading=!1,200===i.data.code){for(var n=[],r=0;r<i.data.data.length;r++)if(a.dialogTransferShopVisible&&i.data.data[r].shop_id===a.selectedShopInfo.shop_id)i.data.data[r]=[];else{if(!1===i.data.data[r].has_children)i.data.data[r].children=[];else{i.data.data[r].children=[{id:"1",children:[]}]}""===i.data.data[r].shop_image?i.data.data[r].shop_image=[]:i.data.data[r].shop_image=JSON.parse(i.data.data[r].shop_image),n.push(i.data.data[r])}1===t?a.showTransferShopData=a.loadRecursiveChildrenTreeData(a.showTransferShopData,e,n):2===t&&(a.showTransferTreeData=a.loadRecursiveChildrenTreeData(a.showTransferTreeData,e,n))}})},loadRecursiveChildrenTreeData:function(e,t,a){for(var i=0;e.length>i;i++)e[i].shop_id===t?e[i].children=a:this.loadRecursiveChildrenTreeData(e[i].children,t,a);return e},loadNode:function(e,t){var a=this,n="";0!==e.level&&(n=e.data.shop_id),Object(i.vb)({parent_id:n}).then(function(e){if(200===e.data.code){for(var i=[],n=0;n<e.data.data.length;n++)a.dialogTransferShopVisible&&e.data.data[n].shop_id===a.selectedShopInfo.shop_id?e.data.data[n]=[]:(""===e.data.data[n].shop_image?e.data.data[n].shop_image=[]:e.data.data[n].shop_image=JSON.parse(e.data.data[n].shop_image),i.push(e.data.data[n]));t(i)}})},filterShopTreeNode:function(e,t){if(!e)return!0;if("?"===e[0]){var a=this.$root.totalStatisList.shopList.find(function(t){return t.shop_name===e.slice(1)||t.login_name===e.slice(1)});return void 0!==a&&0===t.path.indexOf(a.path)}return-1!==t.shop_name.indexOf(e)||-1!==t.login_name.indexOf(e)}}},r=(a("kJ24"),a("KHd+")),o=Object(r.a)(n,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form-item",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.clickoutside,expression:"clickoutside"}],staticClass:"form_bg",staticStyle:{"margin-bottom":"0"},attrs:{label:""}},[a("el-row",{staticClass:"flex-row flex-between"},[a("div",{staticClass:"inputDeep"},[a("el-input",{staticClass:"input_search",staticStyle:{width:"100%"},attrs:{disabled:e.disabled,placeholder:"请选择",size:"mini",clearable:""},on:{clear:e.clearShopTransferShop,focus:e.clickInputSelectUserShop},model:{value:e.filterTransferShopName,callback:function(t){e.filterTransferShopName=t},expression:"filterTransferShopName"}})],1),e._v(" "),e.disabled?e._e():a("el-button",{attrs:{type:"success",size:"mini",icon:"el-icon-search"},on:{click:e.handleSearchTransferShopList}})],1),e._v(" "),a("div",{class:["tree-pannel",e.isGap&&"top38"],style:e.userTreeShopShow?"visibility:visible":"visibility:hidden"},[a("el-tree",{directives:[{name:"loading",rawName:"v-loading",value:e.transferTreeLoading,expression:"transferTreeLoading"}],ref:"treeData",attrs:{data:e.showTransferTreeData,load:e.loadNode,"expand-on-click-node":!1,props:e.defaultProps,"highlight-current":!0,"default-expanded-keys":e.treeDataIds,"filter-node-method":e.filterShopTreeNode,"element-loading-spinner":"el-icon-loading","node-key":"shop_id",draggable:""},on:{"node-click":e.selectedTransferShop,"node-expand":e.handleUserNodeExpand},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.node,n=t.data;return a("span",{staticClass:"custom-tree-node"},[a("span",[e._v(e._s(i.label)+"["+e._s(n.direct-0)+"/"+e._s(n.total-0)+"]")])])}}])})],1)],1)},[],!1,null,null,null);o.options.__file="index.vue";t.a=o.exports}}]);
|