Commit 25d727b3 by 无尘

fix: 测试图片上传

parent 4175047e
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.db26aa9c6cb9f6d8d7f83b06c6c4c595.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.3d80c9ac65896d5b4634.js></script><script type=text/javascript src=./static/js/vendor.0000e68e65e4a9dc3840.js></script><script type=text/javascript src=./static/js/app.51455857f0297d6ad727.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.6648acf80e041fa98d5c4f84c69001fd.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.6ef5ea96d1bb857e7512.js></script><script type=text/javascript src=./static/js/vendor.0000e68e65e4a9dc3840.js></script><script type=text/javascript src=./static/js/app.cc49d0b4a22b25b8cde8.js></script></body></html>
\ No newline at end of file \ No newline at end of file
webpackJsonp([18],{"7fkC":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("mvHQ"),r=a.n(i),l=a("Gu7T"),s=a.n(l),n=a("Ke24"),o=a("Ie7z"),c=a("c4uw"),m=a("vRJf"),u=a("l46T"),d=a("Kkt8"),g=a("//Fk"),p=a.n(g),f=a("DAYN"),h={name:"mult-upload-image",props:{projectName:{type:String,default:"haoban-manage-web"},disabled:{type:Boolean,default:!1},wxFlag:{type:String,default:"1"},imgRate:{type:String},actionUrl:{type:String,default:"/haoban-manage-web/upload-img"},maxImageLength:{type:Number,default:9},limitW:{type:Number},limitH:{type:Number},imageList:{type:Array,default:function(){return[]}}},data:function(){return{dragImageList:JSON.parse(r()(this.imageList)),fileDatas:JSON.parse(r()(this.imageList)),initialImg:0,progress:0,pass:null,isEnlargeImage:!1,enlargeImage:""}},computed:{propStatus:function(){return this.pass?"success":!1===this.pass?"exception":"text"}},beforeMount:function(){},methods:{uploadUrl:function(){var t,e=window.location.origin,a=void 0;return t=this.wxFlag&&""!=this.wxFlag?"wxFlag="+this.wxFlag+"&":"",a="-1"!=e.indexOf("localhost")?"https://www.gicdev.com":e,this.upUrl=a+this.actionUrl+"?"+t+"requestProject="+this.projectName,this.upUrl},beforeAvatarUpload:function(t){var e=this,a=t.size/1024/1024<5;return a||e.$message.error("上传图片大小不能超过 5MB!"),a&&new p.a(function(a,i){var r=new FileReader;r.onload=function(t){var r=new Image;r.onload=function(){var t=this.width,r=this.height;e.imgRate&&""!==e.imgRate&&(Number(e.imgRate.split(":")[0])/Number(e.imgRate.split(":")[1])!=Number(t)/Number(r)&&(e.$message.error("上传图片比例不正确!"),i()));e.imgRate&&""!=e.imgRate||!e.limitW||!e.limitH||t===e.limitW||r===e.limitH||(e.$message.error("上传图片尺寸不正确!"),i()),a()},r.src=t.target.result},r.readAsDataURL(t)})},uploadOnProgress:function(t,e){t&&t.percent&&(this.progress=Math.floor(t.percent))},uploadOnChange:function(t,e){var a=this;"ready"===t.status?(a.pass=null,a.progress=0):"fail"===t.status&&a.$message.error("图片上传失败,请重试!"),a.fileDatas=e,console.log("fileList:",e,a.fileDatas),a.$nextTick(function(){var t=[];e.length&&e.forEach(function(e){t.push({imgUrl:e.response.result[0].qcloudImageUrl})}),a.$emit("uploadOnSuccess",t),a.pass=null,a.progress=0})},handleExceed:function(t,e){this.$message.warning("当前限制选择 9 个文件,本次选择了 "+t.length+" 个文件,共选择了 "+(t.length+e.length)+" 个文件")},uploadOnError:function(){this.$message.error("图片上传失败,请重试!")},previewImage:function(t){this.isEnlargeImage=!0,this.initialImg=t},deleteImage:function(t){this.$emit("deleteImage",t)},handleClose:function(t){t()},itemMoveEnd:function(t){this.$emit("sortImg",this.dragImageList)}},watch:{imageList:function(t,e){this.dragImageList=JSON.parse(r()(t)),this.fileDatas=JSON.parse(r()(t))}},mounted:function(){this.dragImageList=JSON.parse(r()(this.imageList)),this.fileDatas=JSON.parse(r()(this.imageList))},components:{draggable:a.n(f).a}},v={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"gic-upload__img"},[a("div",{staticClass:"gic-upload__img__drag"},[a("draggable",{staticClass:"drag-wrap",staticStyle:{display:"contents"},attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},on:{end:t.itemMoveEnd},model:{value:t.dragImageList,callback:function(e){t.dragImageList=e},expression:"dragImageList"}},[a("transition-group",{attrs:{name:"slide-fade"}},t._l(t.imageList,function(e,i){return a("div",{key:i,class:["img-content",i>=6?"m-t-8":""]},[a("a",{staticClass:"item-img",attrs:{href:e.imgUrl}},[a("img",{attrs:{src:e.imgUrl,alt:"上传图片"}})]),t._v(" "),a("div",{staticClass:"upload-icon__btn"},[a("i",{staticClass:"el-icon-view",on:{click:function(e){t.previewImage(i)}}}),t._v(" "),a("i",{staticClass:"el-icon-delete",on:{click:function(e){t.deleteImage(i)}}})])])}))],1),t._v(" "),t.pass||0===t.progress?t._e():a("div",{class:["img-content","img-progress",t.imageList.length>=6?"m-t-8":""]},[a("el-progress",{staticClass:"gic-img-progress",staticStyle:{"line-height":"102px"},attrs:{width:102,percentage:t.progress,status:t.propStatus}})],1),t._v(" "),t.imageList&&t.imageList.length<t.maxImageLength?a("div",{class:["img-upload",t.imageList.length>=6?"m-t-8":""]},[a("el-upload",{staticClass:"loader",attrs:{disabled:t.disabled,multiple:"",accept:"image/jpg,image/jpeg,image/png,image/gif,image/bmp","file-list":t.fileDatas,action:t.uploadUrl(),"list-type":"picture-card",limit:9,"on-exceed":t.handleExceed,"on-change":t.uploadOnChange,"before-upload":t.beforeAvatarUpload,"on-error":t.uploadOnError,"on-progress":t.uploadOnProgress}},[a("i",{staticClass:"el-icon-plus gic-upload-btn"})])],1):t._e()],1),t._v(" "),a("el-dialog",{attrs:{title:"图片预览",visible:t.isEnlargeImage,"modal-append-to-body":!1,"before-close":t.handleClose,width:"520px"},on:{"update:visible":function(e){t.isEnlargeImage=e}}},[t.isEnlargeImage?a("el-carousel",{attrs:{trigger:"click","initial-index":t.initialImg,autoplay:!1,height:"500px"}},t._l(t.imageList,function(e,i){return a("el-carousel-item",{key:i,staticStyle:{display:"flex","align-items":"center","justify-content":"center"}},[a("img",{staticStyle:{"max-width":"480px","max-height":"500px"},attrs:{src:e.imgUrl},on:{click:function(e){t.isEnlargeImage=!1}}})])})):t._e()],1)],1)},staticRenderFns:[]};var I=a("VU/8")(h,v,!1,function(t){a("v+Vb")},null,null).exports,b=a("P9l9"),S=a("3E4D"),_=a("Ch4/"),C=a("PI0u"),L={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:n.a,vueSelectStore:o.a,vueSelectEmployee:c.a,materialPreview:m.a,limitInput:u.a,limitTextarea:d.a,multUploadImage:I},data:function(){return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"2",topMenuData:[{id:"1",name:"纷享素材",path:"/enjoyMaterial?appIcon="+this.$route.query.appIcon},{id:"2",name:this.$route.query.materialId?"查看素材":"新建素材"}],searchInput:"",selectType:"",treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1,openNextBool:!0},defaultSelection:[],changed:"",onlyPerson:!1,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},currentPage:1,pageSize:6,total:0,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId,userId:JSON.parse(localStorage.getItem("userInfo")).userId,formData:{materialId:"",rangeList:[],imgUrlList:[],materialTitle:"",materialContent:"",topFlag:!1},rules:{materialTitle:[{required:!0,message:"请请输入素材标题",trigger:"blur"}],materialContent:[{required:!0,message:"请请输入发送内容",trigger:"blur"}],rangeList:[{validator:function(t,e,a){if(""==e||!e.length)return a(new Error("请选择选择行政架构或门店架构"));a()},trigger:"change"}],imgUrlList:[{required:!0,validator:function(t,e,a){if(""==e||!e.length)return a(new Error("请上传图片"));a()},trigger:"change"}]},previewVisible:!1,materialPreviewData:{}}},methods:{uploadOnSuccess:function(t){this.formData.imgUrlList=t,console.log("上传list:",t)},deleteImage:function(t){this.formData.imgUrlList.splice(t,1),console.log("删除list2:",this.formData.imgUrlList)},sortImg:function(t){this.formData.imgUrlList=t},submitForm:function(t,e){var a=this;a.formData.rangeList=[].concat(s()(a.defaultStoreList),s()(a.defaultSelection)),a.$refs[t].validate(function(t){t&&a.postSaveCard(e)})},postSaveCard:function(t){var e=this,a=[];e.formData.rangeList.forEach(function(t){a.push({groupId:2==t.type?t.groupId:"",storeId:3==t.type?t.storeId:"",storeFlag:t.isStoreGroup})});var i={enterpriseId:e.enterpriseId,imgListStr:r()(e.formData.imgUrlList),materialContent:e.formData.materialContent,materialTitle:e.formData.materialTitle,rangeListStr:r()(a),topFlag:e.formData.topFlag?1:0,relatedType:2,brandId:e.brandId,userId:e.userId};Object(b.e)("/haoban-app-material-web/material-add",i).then(function(a){var i=a.data;1==i.errorCode&&(S.a.showmsg("新建成功","success"),t?(e.formData={materialId:"",imgUrlList:[],materialTitle:"",materialContent:"",topFlag:!1},e.defaultStoreList=[],e.defaultSelection=[]):e.$router.push("/enjoyMaterial?appIcon="+e.$route.query.appIcon)),_.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},previewData:function(t){var e=this;e.formData.rangeList=[].concat(s()(e.defaultStoreList),s()(e.defaultSelection)),e.$refs[t].validate(function(t){t&&(e.materialPreviewData=e.formData,e.previewVisible=!0)})},closePre:function(){this.materialPreviewData={}},toReturn:function(){var t=this;t.$confirm("是否确认返回,返回后当前页面内容将丢失","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$router.push("/enjoyMaterial?appIcon="+t.$route.query.appIcon)}).catch(function(){})},changeId:function(t,e){this.formData.imageTextWechatId="",this.formData.imageTextGicId=e.imageTextId},toInput:Object(C.a)(function(t,e){this.currentPage=1,this.getTableList()},200),clearInput:function(){this.currentPage=1,this.getTableList()},showDialogLayer:function(t,e){return!this.$route.query.materialId&&(this.selectType=t,this.changed=t,"store"===t?(this.defaultStoreList=e,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1,openNextBool:!0})):(this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1,openNextBool:!0},void(this.defaultSelection=e)))},handleSelectedList:function(t){"store"===this.selectType?this.defaultStoreList=t:this.defaultSelection=t},delDepart:function(t,e,a){if(this.$route.query.materialId)return!1;e.splice(t,1)},getData:function(){var t=this,e={materialId:t.$route.query.materialId,brandId:t.brandId};Object(b.a)("/haoban-app-material-web/material-detail",e).then(function(e){var a=e.data;if(1==a.errorCode){var i=[],r=[];return a.result.rangeVOList&&a.result.rangeVOList.forEach(function(t){t.groupId=2==t.type?t.id:"",t.storeId=3==t.type?t.id:"",t.isStoreGroup=t.storeFlag,1==t.storeFlag?i.push(t):r.push(t)}),t.formData={materialId:a.result.materialId,imageTextWechatId:a.result.imageTextWechatId,materialTitle:a.result.materialTitle,materialContent:a.result.materialContent,topFlag:1==a.result.topFlag,imgUrlList:a.result.imgList,rangeList:a.result.rangeVOList,createTime:a.result.createTime},t.defaultStoreList=i||[],t.defaultSelection=r||[],!1}_.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.$route.query.materialId&&this.getData())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){this.$emit("showTab","2"),this.brandId&&this.$route.query.materialId&&this.getData()}},y={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"chat-log boder-box"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"new-card-body"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.formData,rules:t.rules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"发送内容标题:",prop:"materialTitle"}},[a("limitInput",{attrs:{disflag:!!t.$route.query.materialId,inputWidth:320,inputValue:t.formData.materialTitle,holder:"请输入素材标题",getByType:"word",maxLength:15},on:{"update:inputValue":function(e){t.$set(t.formData,"materialTitle",e)}}})],1),t._v(" "),a("el-form-item",{attrs:{label:"发送内容:",prop:"materialContent"}},[a("limitTextarea",{attrs:{disInput:!!t.$route.query.materialId,inputWidth:320,inputValue:t.formData.materialContent,holder:"请输入素材内容",maxLength:1500},on:{"update:inputValue":function(e){t.$set(t.formData,"materialContent",e)}}})],1),t._v(" "),a("el-form-item",{attrs:{label:"图片上传:",prop:"imgUrlList"}},[a("mult-upload-image",{attrs:{disabled:!!t.$route.query.materialId,imageList:t.formData.imgUrlList},on:{deleteImage:t.deleteImage,uploadOnSuccess:t.uploadOnSuccess,sortImg:t.sortImg}}),t._v(" "),a("div",{staticClass:"font-12 color-606266"},[t._v("单个图片大小不超过5M,最多支持上传9张")])],1),t._v(" "),a("el-form-item",{staticClass:"input-item is-required",attrs:{label:"发送范围:",prop:"rangeList"}},[a("div",{staticClass:"form-item-tip fonr-14 color-909399"},[t._v("下面两项可二选一,非全选。可选择行政架构或门店架构")]),t._v(" "),a("div",{staticClass:"flex"},[a("div",{staticClass:"flex-column item-cell-select inline-block "},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"240px"},on:{click:function(e){t.showDialogLayer("depart",t.defaultSelection)}}},[t.defaultSelection.length?t._e():a("span",{staticClass:"font-14 color-c0c4cc p-l-10"},[t._v("请选择行政架构")]),t._v(" "),a("div",{staticClass:"el-select__tags"},[a("span",[t._l(t.defaultSelection,function(e,i){return[a("span",{key:i,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.name||e.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){e.stopPropagation(),t.delDepart(i,t.defaultSelection,"depart")}}})])]})],2)])])])])]),t._v(" "),a("div",{staticClass:"flex m-t-20"},[a("div",{staticClass:"flex-column item-cell-select inline-block"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"240px"},on:{click:function(e){t.showDialogLayer("store",t.defaultStoreList)}}},[t.defaultStoreList.length?t._e():a("span",{staticClass:"font-14 color-c0c4cc p-l-10"},[t._v("请选择门店架构")]),t._v(" "),a("div",{staticClass:"el-select__tags"},[a("span",[t._l(t.defaultStoreList,function(e,i){return[a("span",{key:i,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.name||e.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){e.stopPropagation(),t.delDepart(i,t.defaultStoreList,"store")}}})])]})],2)])])])])])]),t._v(" "),a("el-form-item",{attrs:{label:"更多设置:",prop:""}},[a("div",[a("el-checkbox",{attrs:{disabled:!!t.$route.query.materialId},model:{value:t.formData.topFlag,callback:function(e){t.$set(t.formData,"topFlag",e)},expression:"formData.topFlag"}},[t._v("置顶")])],1)]),t._v(" "),a("el-form-item",[a("el-button",{on:{click:t.toReturn}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.previewData("ruleForm")}}},[t._v("预览")]),t._v(" "),a("el-button",{attrs:{disabled:!!t.$route.query.materialId,type:"primary"},on:{click:function(e){t.submitForm("ruleForm")}}},[t._v("发布")]),t._v(" "),a("el-button",{attrs:{disabled:!!t.$route.query.materialId,type:"primary"},on:{click:function(e){t.submitForm("ruleForm","flag")}}},[t._v("发布并添加下一个")])],1)],1)],1)],1),t._v(" "),a("vue-select-employee",{attrs:{appScene:t.appScene,defaultSelection:t.defaultSelection,onlyPerson:t.onlyPerson,treeSet:t.treeSet,changed:t.changed},on:{handleSelectedList:t.handleSelectedList}}),t._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:t.activeGroup,appScene:t.appScene,treeSet:t.storeTreeSet,selectType:"group-store",defaultList:t.defaultStoreList},on:{handleSelectedList:t.handleSelectedList}}),t._v(" "),a("material-preview",{ref:"materialPreview",attrs:{materialPreviewData:t.materialPreviewData},model:{value:t.previewVisible,callback:function(e){t.previewVisible=e},expression:"previewVisible"}})],1)},staticRenderFns:[]};var x=a("VU/8")(L,y,!1,function(t){a("rf7C")},"data-v-24c754d9",null);e.default=x.exports},rf7C:function(t,e){},"v+Vb":function(t,e){},vRJf:function(t,e,a){"use strict";var i=a("mvHQ"),r=a.n(i),l={name:"material-preview",props:{value:{type:Boolean,default:function(){return!1}},materialPreviewData:{type:[Object,Array],default:function(){return{materialId:"",imageTextWechatId:"",imageTextGicId:"",titleName:"",imageUrl:"",mediaUrl:"",rangeList:[],imgUrlList:[],materialTitle:"",materialContent:"",topFlag:!1}}}},directives:{htmlContent:{bind:function(t,e){t.innerHTML=e.value},update:function(t,e){t.innerHTML=e.value}}},data:function(){return{materialData:{materialId:"",imageTextWechatId:"",imageTextGicId:"",rangeList:[],imgUrlList:[],mediaUrl:"",materialTitle:"",materialContent:"",topFlag:!1}}},methods:{toUrl:function(t){window.open(t)},closeDialog:function(){this.$emit("input",!1),this.$emit("closePre")}},watch:{value:function(t,e){this.materialData=JSON.parse(r()(this.materialPreviewData))},materialPreviewData:function(t,e){this.materialData=JSON.parse(r()(t))}},mounted:function(){this.materialData=JSON.parse(r()(this.materialPreviewData))}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.value?a("div",{staticClass:"qr-dialog-content",staticStyle:{opacity:"1"}},[a("div",{staticClass:"qr-mask",on:{click:function(e){return e.stopPropagation(),t.closeDialog(e)}}}),t._v(" "),a("div",{staticClass:"qr-dialog border-box"},[a("div",{staticClass:"qr-dialog-body border-box"},[a("h2",{staticClass:"font-20 color-222 text-left main-title"},[t._v(t._s(t.materialData.materialTitle))]),t._v(" "),a("div",{staticClass:"notice-date m-t-10 flex flex-space-between"},[a("div",{staticClass:"notice-date-left font-10 color-88949C"},[t._v(t._s(t._f("timeStampToYmd")(t.materialData.materialId?t.materialData.createTime:(new Date).getTime())))]),t._v(" "),a("div",{staticClass:"notice-date-right font-10 color-4d7fd0"})]),t._v(" "),a("div",{directives:[{name:"htmlContent",rawName:"v-htmlContent",value:t.materialData.materialContent,expression:"materialData.materialContent"}],staticClass:"notice-body border-box font-14 color-222"}),t._v(" "),t.materialData.imgUrlList&&t.materialData.imgUrlList.length?a("div",{staticClass:"img-list-wrap"},[a("ul",{staticClass:"flex flex-wrap"},t._l(t.materialData.imgUrlList,function(t,e){return a("li",{key:e+"img",staticClass:"border-box flex flex-align-center flex-pack-center"},[a("img",{attrs:{src:t.imgUrl,alt:""}})])}))]):t._e(),t._v(" "),t.materialData.imageTextWechatId?a("div",{staticClass:"image-text-link"},[a("div",{staticClass:"flex cursor-pointer",on:{click:function(e){t.toUrl(t.materialData.mediaUrl)}}},[a("div",{staticClass:"flex-left-img flex flex-align-center flex-pack-center"},[a("img",{attrs:{src:t.materialData.imageUrl,alt:""}})]),t._v(" "),a("div",{staticClass:"flex-right-title border-box"},[a("div",{staticClass:"title-content font-14 color-606266"},[t._v(t._s(t.materialData.titleName))])])])]):t._e()])]),t._v(" "),a("div",{staticClass:"qr-dialog__hd"},[a("i",{staticClass:"el-icon-plus",on:{click:function(e){return e.stopPropagation(),t.closeDialog(e)}}})])]):t._e()},staticRenderFns:[]};var n=a("VU/8")(l,s,!1,function(t){a("xELH")},"data-v-91610bd2",null);e.a=n.exports},xELH:function(t,e){}});
\ No newline at end of file
webpackJsonp([19],{NNAT:function(e,t,a){"use strict";var o=a("fZjL"),i=a.n(o),s=a("mvHQ"),r=a.n(s),n=a("P9l9"),l=a("Xxa5"),c=a.n(l),d=a("exGp"),p=a.n(d),u=a("0xDb"),h=a("unF8"),m=a("Ch4/"),f={name:"list-item",props:{item:{type:String,required:!0}},filters:{formatDate:u.b},data:function(){return{typeList:["全部","全职","兼职","外包","实习","无类型"],statusList:["全部","正式","试用","离职"],reasons:["","家庭原因","个人原因","发展原因","合同到期不续签","协议解除","无法胜任工作","经济性裁员","严重违法违纪","其他"],propList:{headPic:{label:"",slot:!0,width:50},clerkName:{label:"姓名",width:90},clerkPhone:{label:"手机号"},groupName:{label:"部门"},clerkCode:{label:"code"},positionName:{label:"职位"},clerkType:{label:"员工类型",slot:!0},clerkStatus:{label:"员工状态",slot:!0},hireDate:{label:"入职日期",needSort:"custom",slot:!0},correctionDate:{label:"转正日期",needSort:"custom",slot:!0},fireDate:{label:"离职日期",needSort:"custom",slot:!0},fireReason:{label:"离职原因",slot:!0},handleEmployee:{label:"操作",slot:!0},handleUnEmployee:{label:"操作",slot:!0}}}},methods:{changeRouter:function(e){this.$router.push(e)},callHandle:function(e){if("编辑员工资料"!=e.typeTitle)this.$emit("callHandle",e.obj,e.type,e.typeTitle);else{var t="/recordInfo?recordId="+e.obj.recordId;this.changeRouter(t)}},getGicData:function(e){var t=this;return p()(c.a.mark(function a(){var o,i,s,r;return c.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return o=t,i={type:3,businessId:e.obj.recordId},a.next=4,Object(h.a)(i);case 4:if(s=a.sent,1!=(r=s.data).errorCode){a.next=12;break}if(!r.result){a.next=10;break}return o.$message.error({duration:1e3,message:"已经与 GIC 门店同步,暂无操作权限"}),a.abrupt("return",!1);case 10:a.next=13;break;case 12:m.a.errorMsg(r);case 13:case"end":return a.stop()}},a,t)}))()}},mounted:function(){}},y={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.propList[e.item].slot?a("el-table-column",{attrs:{label:e.propList[e.item].label,width:e.propList[e.item].width,sortable:e.propList[e.item].needSort,prop:e.item},scopedSlots:e._u([{key:"default",fn:function(t){return["clerkType"==e.item?a("div",[e._v("\n "+e._s(e.typeList[t.row[e.item]||5])+"\n ")]):e._e(),e._v(" "),"clerkStatus"==e.item?a("div",[e._v("\n "+e._s(e.statusList[t.row[e.item]]||"无状态")+"\n ")]):"hireDate"==e.item||"correctionDate"==e.item||"fireDate"==e.item?a("div",[e._v("\n "+e._s(e._f("formatDate")(t.row[e.item],"YY-MM-DD")||"--")+"\n ")]):"headPic"==e.item?a("div",[t.row[e.item]?a("img",{staticClass:"header-pic",attrs:{src:t.row[e.item]}}):a("div",{staticClass:"replace-head-img"},[a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])]):"fireReason"==e.item?a("div",[e._v("\n "+e._s(e.reasons[t.row[e.item]]||"--")+"\n ")]):"handleEmployee"==e.item?a("div",[a("div",{staticClass:"table-handle"},[a("el-dropdown",{staticClass:"more",on:{command:e.callHandle}},[a("span",{staticClass:"el-dropdown-link"},[e._v(" 更多"),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[2==t.row.clerkStatus?[a("el-dropdown-item",{attrs:{command:{obj:t.row,type:"turnPositive",typeTitle:"办理转正"}}},[e._v("办理转正")]),e._v(" "),a("el-dropdown-item",{attrs:{command:{obj:t.row,type:"eidtCorrectionTime",typeTitle:"修改转正时间"}}},[e._v("修改转正时间")])]:e._e(),e._v(" "),a("el-dropdown-item",{attrs:{command:{obj:t.row,type:"editEmployee",typeTitle:"编辑员工资料"}}},[e._v("编辑员工资料")]),e._v(" "),a("el-dropdown-item",{attrs:{command:{obj:t.row,type:"resignation",typeTitle:"办理离职"}}},[e._v("办理离职")])],2)],1)],1)]):"handleUnEmployee"==e.item?a("div",[a("div",{staticClass:"table-handle"},[a("a",{staticClass:"a-href",on:{click:function(a){e.changeRouter("/recordInfo?recordId="+t.row.recordId+"&type=unemployee")}}},[e._v("编辑")])])]):e._e()]}}])}):"clerkPhone"!=e.item?a("el-table-column",{attrs:{"class-name":"clerkName"==e.item?"control-width":"",label:e.propList[e.item].label,width:e.propList[e.item].width,prop:e.item,"show-overflow-tooltip":""}}):"clerkPhone"==e.item?a("el-table-column",{attrs:{"class-name":"clerkName"==e.item?"control-width":"",label:e.propList[e.item].label,width:e.propList[e.item].width,prop:e.item,"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s("86"==t.row.nationcode||null==t.row.nationcode?t.row.clerkPhone:"+"+t.row.nationcode+"-"+t.row.clerkPhone)+"\n ")]}}])}):e._e()},staticRenderFns:[]};var g=a("VU/8")(f,y,!1,function(e){a("YtO6")},null,null).exports,v=a("IVno"),S=a("Ie7z"),k=a("c4uw"),b={name:"employeeRecordList",props:{isUnEmployee:{type:Boolean,default:!1}},components:{listItem:g,handleDialog:v.a,vueSelectStore:S.a,vueSelectEmployee:k.a},data:function(){return{tableH:window.screen.availHeight-440-160,pickerOptions2:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-7776e6),e.$emit("pick",[a,t])}}]},employeeList:[],pageNum:1,pageSize:20,sortType:"desc",sortColumn:"hireDate",statusList:[{label:"全部状态",id:"0"},{label:"正式",id:"1"},{label:"试用",id:"2"},{label:"无状态",id:"-1"}],typeLsit:["全部类型","全职","兼职","外包","实习","无类型"],clerkType:0,clerkStatus:"0",total:0,handleType:"turnPositive",typeTitle:"",dialogVisible:!1,employeeObj:{},fireDate:[],startDate:"",endDate:"",showSelector:!0,searchParam:"",departMentSet:{},storeSet:{},treeData:{},selectionList:[],disabled:!0,chooseClerkIdList:[],chooseGroupIdList:[],chooseStoreIdList:[],adDefaultSelection:[],changed:0,defaultStoreList:[],treeSetDepart:{isSelectPerson:!0,dialogVisible:!1,isSingle:!1,openNextBool:!0},treeSetStore:{isSelectPerson:!0,dialogVisible:!1,isSingle:!1,openNextBool:!0}}},methods:{searchFn:function(){this.getEmloyeeList()},getGroupData:function(){var e=this;Object(n.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(t){var a=[],o=[];1==t.data.errorCode&&(a=t.data.result.departmentList||[],o=t.data.result.searchList||[]),e.treeData={treeData:a,personData:o},e.disabled=!1}).catch(function(e){})},callSelector:function(){this.treeSetDepart.dialogVisible=!0},callStoreSelector:function(){this.treeSetStore.dialogVisible=!0},showExportSet:function(){if(this.isUnEmployee){var e=window.location.origin;-1!=e.indexOf("localhost")&&(e="http://www.gicdev.com");var t=0==this.clerkType?"":this.clerkType;location.href=e+"/haoban-manage-web/record/export-fire-employee-record?clerkType="+t+"&sortType="+this.sortType+"&sortColumn="+this.sortColumn+"&startDate="+this.startDate+"&endDate="+this.endDate+"&searchParam="+this.searchParam+"&chooseClerkIdList="+this.chooseClerkIdList.join(",")+"&chooseGroupIdList="+this.chooseGroupIdList.join(",")+"&chooseStoreIdList="+this.chooseStoreIdList.join(",")}else this.$emit("showExportSetFn")},handleSelectedList:function(e){this.adDefaultSelection=e||[],this.concatList()},handleStoreSelectedList:function(e){this.defaultStoreList=e||[],this.concatList()},concatList:function(){this.selectionList=this.adDefaultSelection.concat(this.defaultStoreList),this.formatSelectionList(this.selectionList)},formatSelectionList:function(e){var t=this,a=t.unique(e);t.selectionList=a,t.chooseClerkIdList=[],t.chooseStoreIdList=[],t.chooseGroupIdList=[],a.length&&a.forEach(function(e){1==e.type?t.chooseClerkIdList.push(e.employeeClerkId):3==e.type?t.chooseStoreIdList.push(e.storeId):2==e.type&&t.chooseGroupIdList.push(e.groupId)}),t.pageNum=1,t.getEmloyeeList()},unique:function(e){var t={};return e.forEach(function(e){t[r()(e)]=e}),e=i()(t).map(function(e){return JSON.parse(e)})},delSld:function(e,t){var a=this,o=a.selectionList.indexOf(e);a.selectionList.splice(o,1),(3==e.type||e.hasOwnProperty("isStoreGroup")&&1==e.isStoreGroup||e.hasOwnProperty("isClerk")&&1==e.isClerk)&&a.defaultStoreList.forEach(function(t,o){t.id==e.id&&a.defaultStoreList.splice(o,1)}),(e.hasOwnProperty("isStoreGroup")&&0==e.isStoreGroup||e.hasOwnProperty("isClerk")&&0==e.isClerk)&&a.adDefaultSelection.forEach(function(t,o){t.id==e.id&&a.adDefaultSelection.splice(o,1)}),a.formatSelectionList(a.selectionList),a.changed+=1},handleSuccess:function(){this.dialogVisible=!1,this.getEmloyeeList()},callHandle:function(e,t,a){this.handleType=t,this.employeeObj=e,this.typeTitle=a,this.dialogVisible=!0},handleSizeChange:function(e){this.pageSize=e,this.getEmloyeeList()},handleCurrentChange:function(e){this.pageNum=e,this.getEmloyeeList()},sortList:function(e){this.sortColumn=e.prop,this.sortType="descending"==e.order?"desc":"asc",this.getEmloyeeList()},reGetList:function(){this.getEmloyeeList()},getEmloyeeList:function(){var e=this,t=e.isUnEmployee,a=t?"/haoban-manage-web/record/find-fire-employee-record-page":"/haoban-manage-web/record/find-on-work-employee-record-page",o={pageNum:e.pageNum,chooseClerkIdList:e.chooseClerkIdList.join(","),chooseGroupIdList:e.chooseGroupIdList.join(","),chooseStoreIdList:e.chooseStoreIdList.join(","),pageSize:e.pageSize,sortType:e.sortType,clerkStatus:0==e.clerkStatus?"":e.clerkStatus,sortColumn:e.sortColumn,clerkType:0==e.clerkType?"":e.clerkType,startDate:e.startDate,endDate:e.endDate,searchParam:e.searchParam};Object(n.a)(a,o).then(function(a){1==a.data.errorCode?(e.employeeList=a.data.result.list,e.total=t?a.data.result.total:a.data.result.pageInfo.total):e.$message.error({message:a.data.message})}).catch(function(t){e.$message({message:t.message})})},selectDate:function(e){e?(this.startDate=e[0],this.endDate=e[1]):(this.startDate="",this.endDate=""),this.getEmloyeeList()}},beforeMount:function(){this.getEmloyeeList(),this.getGroupData()},computed:{propList:function(){return this.isUnEmployee?["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","clerkStatus","hireDate","fireDate","fireReason","handleUnEmployee"]:["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","clerkStatus","hireDate","correctionDate","handleEmployee"]}}},L={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"e-r-l-container"},[a("div",{staticClass:"handle-area"},[a("div",{staticClass:"flex1"},[a("el-button",{staticStyle:{"margin-right":"10px",height:"32px"},attrs:{disabled:e.disabled},on:{click:e.callSelector}},[e._v("行政架构选人")]),e._v(" "),a("el-button",{staticStyle:{"margin-right":"10px",height:"32px"},on:{click:e.callStoreSelector}},[e._v("门店架构选人")]),e._v(" "),e.isUnEmployee?a("div",{staticClass:"block"},[a("span",{staticClass:"demonstration"},[e._v("离职日期")]),e._v(" "),a("el-date-picker",{attrs:{type:"daterange",align:"right","value-format":"yyyy-MM-dd","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions2},on:{change:e.selectDate},model:{value:e.fireDate,callback:function(t){e.fireDate=t},expression:"fireDate"}})],1):[a("el-select",{staticClass:"m-r-10 w-130",attrs:{placeholder:"选择类型"},on:{change:e.reGetList},model:{value:e.clerkType,callback:function(t){e.clerkType=t},expression:"clerkType"}},e._l(e.typeLsit,function(e,t){return a("el-option",{key:t,attrs:{label:e,value:t}})})),e._v(" "),a("el-select",{staticClass:"w-130",attrs:{placeholder:"选择状态"},on:{change:e.reGetList},model:{value:e.clerkStatus,callback:function(t){e.clerkStatus=t},expression:"clerkStatus"}},e._l(e.statusList,function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.id}})})),e._v(" "),a("span",{staticClass:"demonstration p-l-10",staticStyle:{"line-height":"34px","white-space":"nowrap"}},[e._v("入职时间")]),e._v(" "),a("el-date-picker",{attrs:{type:"daterange",align:"right","value-format":"yyyy-MM-dd","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions2},on:{change:e.selectDate},model:{value:e.fireDate,callback:function(t){e.fireDate=t},expression:"fireDate"}})],e._v(" "),a("el-input",{staticStyle:{width:"240px","margin-left":"10px"},attrs:{placeholder:"请输入姓名/手机号/员工code",clearable:""},on:{clear:e.searchFn},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.searchFn(t):null}},model:{value:e.searchParam,callback:function(t){e.searchParam=t},expression:"searchParam"}})],2),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.showExportSet}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),e._v("导出")])],1),e._v(" "),e.selectionList.length?a("ul",{staticClass:"selector-selected-list"},[e._l(e.selectionList,function(t,o){return[a("li",{key:o+t.id+t.label,staticClass:"sld"},[e._v(e._s(t.label)+" "),a("i",{staticClass:"el-icon-close",on:{click:function(a){e.delSld(t,t.isStoreGroup)}}})])]}),e._v(" "),a("li",{staticClass:"sld tip"},[e._v("共筛选出"+e._s(e.total)+"人")])],2):e._e(),e._v(" "),a("el-table",{staticClass:"list-table",attrs:{data:e.employeeList,"default-sort":{prop:"hireDate",order:"descending"}},on:{"sort-change":e.sortList}},[e._l(e.propList,function(t){return[a("list-item",{key:t,attrs:{item:t},on:{callHandle:e.callHandle}})]})],2),e._v(" "),e.employeeList.length?a("el-pagination",{staticClass:"pagination",attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageSize,"current-page":e.pageNum,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e(),e._v(" "),a("el-dialog",{attrs:{title:e.typeTitle,visible:e.dialogVisible,width:"480px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("handle-dialog",{attrs:{employee:e.employeeObj,handleType:e.handleType,typeTitle:e.typeTitle},on:{handleSuccess:e.handleSuccess}})],1),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{defaultList:e.defaultStoreList,treeSet:e.treeSetStore},on:{handleSelectedList:e.handleStoreSelectedList}}),e._v(" "),a("vue-select-employee",{ref:"departmentSelector",attrs:{treeSet:e.treeSetDepart,changed:e.changed,treeData:e.treeData,defaultSelection:e.adDefaultSelection},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var w=a("VU/8")(b,L,!1,function(e){a("eeUe")},null,null);t.a=w.exports},TGrv:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("3Xzz"),i=a("NNAT"),s={name:"employeeRecord",components:{navCrumb:o.a,employeeList:i.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"离职员工",path:""}],typeObj:{onWorkCout:"在职员工",allWorkCount:"全职",partTimeWorkCount:"兼职",outWorkCount:"外包",practiceWorkCount:"实习",noTypeWorkCount:"无类型",regularCount:"正式",onTrialCount:"试用",noStatusCount:"无状态"},countObj:{}}},beforeMount:function(){}},r={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"common-set-wrap unemployee-wrap"},[t("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"e-record-container"},[t("employee-list",{attrs:{isUnEmployee:!0}})],1)])]),this._v(" "),t("vue-gic-footer")],1)},staticRenderFns:[]};var n=a("VU/8")(s,r,!1,function(e){a("rMHI")},null,null);t.default=n.exports},YtO6:function(e,t){},eeUe:function(e,t){},rMHI:function(e,t){}}); webpackJsonp([18],{NNAT:function(e,t,a){"use strict";var o=a("fZjL"),i=a.n(o),s=a("mvHQ"),r=a.n(s),n=a("P9l9"),l=a("Xxa5"),c=a.n(l),d=a("exGp"),p=a.n(d),u=a("0xDb"),h=a("unF8"),m=a("Ch4/"),f={name:"list-item",props:{item:{type:String,required:!0}},filters:{formatDate:u.b},data:function(){return{typeList:["全部","全职","兼职","外包","实习","无类型"],statusList:["全部","正式","试用","离职"],reasons:["","家庭原因","个人原因","发展原因","合同到期不续签","协议解除","无法胜任工作","经济性裁员","严重违法违纪","其他"],propList:{headPic:{label:"",slot:!0,width:50},clerkName:{label:"姓名",width:90},clerkPhone:{label:"手机号"},groupName:{label:"部门"},clerkCode:{label:"code"},positionName:{label:"职位"},clerkType:{label:"员工类型",slot:!0},clerkStatus:{label:"员工状态",slot:!0},hireDate:{label:"入职日期",needSort:"custom",slot:!0},correctionDate:{label:"转正日期",needSort:"custom",slot:!0},fireDate:{label:"离职日期",needSort:"custom",slot:!0},fireReason:{label:"离职原因",slot:!0},handleEmployee:{label:"操作",slot:!0},handleUnEmployee:{label:"操作",slot:!0}}}},methods:{changeRouter:function(e){this.$router.push(e)},callHandle:function(e){if("编辑员工资料"!=e.typeTitle)this.$emit("callHandle",e.obj,e.type,e.typeTitle);else{var t="/recordInfo?recordId="+e.obj.recordId;this.changeRouter(t)}},getGicData:function(e){var t=this;return p()(c.a.mark(function a(){var o,i,s,r;return c.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return o=t,i={type:3,businessId:e.obj.recordId},a.next=4,Object(h.a)(i);case 4:if(s=a.sent,1!=(r=s.data).errorCode){a.next=12;break}if(!r.result){a.next=10;break}return o.$message.error({duration:1e3,message:"已经与 GIC 门店同步,暂无操作权限"}),a.abrupt("return",!1);case 10:a.next=13;break;case 12:m.a.errorMsg(r);case 13:case"end":return a.stop()}},a,t)}))()}},mounted:function(){}},y={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.propList[e.item].slot?a("el-table-column",{attrs:{label:e.propList[e.item].label,width:e.propList[e.item].width,sortable:e.propList[e.item].needSort,prop:e.item},scopedSlots:e._u([{key:"default",fn:function(t){return["clerkType"==e.item?a("div",[e._v("\n "+e._s(e.typeList[t.row[e.item]||5])+"\n ")]):e._e(),e._v(" "),"clerkStatus"==e.item?a("div",[e._v("\n "+e._s(e.statusList[t.row[e.item]]||"无状态")+"\n ")]):"hireDate"==e.item||"correctionDate"==e.item||"fireDate"==e.item?a("div",[e._v("\n "+e._s(e._f("formatDate")(t.row[e.item],"YY-MM-DD")||"--")+"\n ")]):"headPic"==e.item?a("div",[t.row[e.item]?a("img",{staticClass:"header-pic",attrs:{src:t.row[e.item]}}):a("div",{staticClass:"replace-head-img"},[a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])]):"fireReason"==e.item?a("div",[e._v("\n "+e._s(e.reasons[t.row[e.item]]||"--")+"\n ")]):"handleEmployee"==e.item?a("div",[a("div",{staticClass:"table-handle"},[a("el-dropdown",{staticClass:"more",on:{command:e.callHandle}},[a("span",{staticClass:"el-dropdown-link"},[e._v(" 更多"),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[2==t.row.clerkStatus?[a("el-dropdown-item",{attrs:{command:{obj:t.row,type:"turnPositive",typeTitle:"办理转正"}}},[e._v("办理转正")]),e._v(" "),a("el-dropdown-item",{attrs:{command:{obj:t.row,type:"eidtCorrectionTime",typeTitle:"修改转正时间"}}},[e._v("修改转正时间")])]:e._e(),e._v(" "),a("el-dropdown-item",{attrs:{command:{obj:t.row,type:"editEmployee",typeTitle:"编辑员工资料"}}},[e._v("编辑员工资料")]),e._v(" "),a("el-dropdown-item",{attrs:{command:{obj:t.row,type:"resignation",typeTitle:"办理离职"}}},[e._v("办理离职")])],2)],1)],1)]):"handleUnEmployee"==e.item?a("div",[a("div",{staticClass:"table-handle"},[a("a",{staticClass:"a-href",on:{click:function(a){e.changeRouter("/recordInfo?recordId="+t.row.recordId+"&type=unemployee")}}},[e._v("编辑")])])]):e._e()]}}])}):"clerkPhone"!=e.item?a("el-table-column",{attrs:{"class-name":"clerkName"==e.item?"control-width":"",label:e.propList[e.item].label,width:e.propList[e.item].width,prop:e.item,"show-overflow-tooltip":""}}):"clerkPhone"==e.item?a("el-table-column",{attrs:{"class-name":"clerkName"==e.item?"control-width":"",label:e.propList[e.item].label,width:e.propList[e.item].width,prop:e.item,"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s("86"==t.row.nationcode||null==t.row.nationcode?t.row.clerkPhone:"+"+t.row.nationcode+"-"+t.row.clerkPhone)+"\n ")]}}])}):e._e()},staticRenderFns:[]};var g=a("VU/8")(f,y,!1,function(e){a("YtO6")},null,null).exports,v=a("IVno"),S=a("Ie7z"),k=a("c4uw"),b={name:"employeeRecordList",props:{isUnEmployee:{type:Boolean,default:!1}},components:{listItem:g,handleDialog:v.a,vueSelectStore:S.a,vueSelectEmployee:k.a},data:function(){return{tableH:window.screen.availHeight-440-160,pickerOptions2:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-7776e6),e.$emit("pick",[a,t])}}]},employeeList:[],pageNum:1,pageSize:20,sortType:"desc",sortColumn:"hireDate",statusList:[{label:"全部状态",id:"0"},{label:"正式",id:"1"},{label:"试用",id:"2"},{label:"无状态",id:"-1"}],typeLsit:["全部类型","全职","兼职","外包","实习","无类型"],clerkType:0,clerkStatus:"0",total:0,handleType:"turnPositive",typeTitle:"",dialogVisible:!1,employeeObj:{},fireDate:[],startDate:"",endDate:"",showSelector:!0,searchParam:"",departMentSet:{},storeSet:{},treeData:{},selectionList:[],disabled:!0,chooseClerkIdList:[],chooseGroupIdList:[],chooseStoreIdList:[],adDefaultSelection:[],changed:0,defaultStoreList:[],treeSetDepart:{isSelectPerson:!0,dialogVisible:!1,isSingle:!1,openNextBool:!0},treeSetStore:{isSelectPerson:!0,dialogVisible:!1,isSingle:!1,openNextBool:!0}}},methods:{searchFn:function(){this.getEmloyeeList()},getGroupData:function(){var e=this;Object(n.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(t){var a=[],o=[];1==t.data.errorCode&&(a=t.data.result.departmentList||[],o=t.data.result.searchList||[]),e.treeData={treeData:a,personData:o},e.disabled=!1}).catch(function(e){})},callSelector:function(){this.treeSetDepart.dialogVisible=!0},callStoreSelector:function(){this.treeSetStore.dialogVisible=!0},showExportSet:function(){if(this.isUnEmployee){var e=window.location.origin;-1!=e.indexOf("localhost")&&(e="http://www.gicdev.com");var t=0==this.clerkType?"":this.clerkType;location.href=e+"/haoban-manage-web/record/export-fire-employee-record?clerkType="+t+"&sortType="+this.sortType+"&sortColumn="+this.sortColumn+"&startDate="+this.startDate+"&endDate="+this.endDate+"&searchParam="+this.searchParam+"&chooseClerkIdList="+this.chooseClerkIdList.join(",")+"&chooseGroupIdList="+this.chooseGroupIdList.join(",")+"&chooseStoreIdList="+this.chooseStoreIdList.join(",")}else this.$emit("showExportSetFn")},handleSelectedList:function(e){this.adDefaultSelection=e||[],this.concatList()},handleStoreSelectedList:function(e){this.defaultStoreList=e||[],this.concatList()},concatList:function(){this.selectionList=this.adDefaultSelection.concat(this.defaultStoreList),this.formatSelectionList(this.selectionList)},formatSelectionList:function(e){var t=this,a=t.unique(e);t.selectionList=a,t.chooseClerkIdList=[],t.chooseStoreIdList=[],t.chooseGroupIdList=[],a.length&&a.forEach(function(e){1==e.type?t.chooseClerkIdList.push(e.employeeClerkId):3==e.type?t.chooseStoreIdList.push(e.storeId):2==e.type&&t.chooseGroupIdList.push(e.groupId)}),t.pageNum=1,t.getEmloyeeList()},unique:function(e){var t={};return e.forEach(function(e){t[r()(e)]=e}),e=i()(t).map(function(e){return JSON.parse(e)})},delSld:function(e,t){var a=this,o=a.selectionList.indexOf(e);a.selectionList.splice(o,1),(3==e.type||e.hasOwnProperty("isStoreGroup")&&1==e.isStoreGroup||e.hasOwnProperty("isClerk")&&1==e.isClerk)&&a.defaultStoreList.forEach(function(t,o){t.id==e.id&&a.defaultStoreList.splice(o,1)}),(e.hasOwnProperty("isStoreGroup")&&0==e.isStoreGroup||e.hasOwnProperty("isClerk")&&0==e.isClerk)&&a.adDefaultSelection.forEach(function(t,o){t.id==e.id&&a.adDefaultSelection.splice(o,1)}),a.formatSelectionList(a.selectionList),a.changed+=1},handleSuccess:function(){this.dialogVisible=!1,this.getEmloyeeList()},callHandle:function(e,t,a){this.handleType=t,this.employeeObj=e,this.typeTitle=a,this.dialogVisible=!0},handleSizeChange:function(e){this.pageSize=e,this.getEmloyeeList()},handleCurrentChange:function(e){this.pageNum=e,this.getEmloyeeList()},sortList:function(e){this.sortColumn=e.prop,this.sortType="descending"==e.order?"desc":"asc",this.getEmloyeeList()},reGetList:function(){this.getEmloyeeList()},getEmloyeeList:function(){var e=this,t=e.isUnEmployee,a=t?"/haoban-manage-web/record/find-fire-employee-record-page":"/haoban-manage-web/record/find-on-work-employee-record-page",o={pageNum:e.pageNum,chooseClerkIdList:e.chooseClerkIdList.join(","),chooseGroupIdList:e.chooseGroupIdList.join(","),chooseStoreIdList:e.chooseStoreIdList.join(","),pageSize:e.pageSize,sortType:e.sortType,clerkStatus:0==e.clerkStatus?"":e.clerkStatus,sortColumn:e.sortColumn,clerkType:0==e.clerkType?"":e.clerkType,startDate:e.startDate,endDate:e.endDate,searchParam:e.searchParam};Object(n.a)(a,o).then(function(a){1==a.data.errorCode?(e.employeeList=a.data.result.list,e.total=t?a.data.result.total:a.data.result.pageInfo.total):e.$message.error({message:a.data.message})}).catch(function(t){e.$message({message:t.message})})},selectDate:function(e){e?(this.startDate=e[0],this.endDate=e[1]):(this.startDate="",this.endDate=""),this.getEmloyeeList()}},beforeMount:function(){this.getEmloyeeList(),this.getGroupData()},computed:{propList:function(){return this.isUnEmployee?["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","clerkStatus","hireDate","fireDate","fireReason","handleUnEmployee"]:["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","clerkStatus","hireDate","correctionDate","handleEmployee"]}}},L={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"e-r-l-container"},[a("div",{staticClass:"handle-area"},[a("div",{staticClass:"flex1"},[a("el-button",{staticStyle:{"margin-right":"10px",height:"32px"},attrs:{disabled:e.disabled},on:{click:e.callSelector}},[e._v("行政架构选人")]),e._v(" "),a("el-button",{staticStyle:{"margin-right":"10px",height:"32px"},on:{click:e.callStoreSelector}},[e._v("门店架构选人")]),e._v(" "),e.isUnEmployee?a("div",{staticClass:"block"},[a("span",{staticClass:"demonstration"},[e._v("离职日期")]),e._v(" "),a("el-date-picker",{attrs:{type:"daterange",align:"right","value-format":"yyyy-MM-dd","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions2},on:{change:e.selectDate},model:{value:e.fireDate,callback:function(t){e.fireDate=t},expression:"fireDate"}})],1):[a("el-select",{staticClass:"m-r-10 w-130",attrs:{placeholder:"选择类型"},on:{change:e.reGetList},model:{value:e.clerkType,callback:function(t){e.clerkType=t},expression:"clerkType"}},e._l(e.typeLsit,function(e,t){return a("el-option",{key:t,attrs:{label:e,value:t}})})),e._v(" "),a("el-select",{staticClass:"w-130",attrs:{placeholder:"选择状态"},on:{change:e.reGetList},model:{value:e.clerkStatus,callback:function(t){e.clerkStatus=t},expression:"clerkStatus"}},e._l(e.statusList,function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.id}})})),e._v(" "),a("span",{staticClass:"demonstration p-l-10",staticStyle:{"line-height":"34px","white-space":"nowrap"}},[e._v("入职时间")]),e._v(" "),a("el-date-picker",{attrs:{type:"daterange",align:"right","value-format":"yyyy-MM-dd","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions2},on:{change:e.selectDate},model:{value:e.fireDate,callback:function(t){e.fireDate=t},expression:"fireDate"}})],e._v(" "),a("el-input",{staticStyle:{width:"240px","margin-left":"10px"},attrs:{placeholder:"请输入姓名/手机号/员工code",clearable:""},on:{clear:e.searchFn},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.searchFn(t):null}},model:{value:e.searchParam,callback:function(t){e.searchParam=t},expression:"searchParam"}})],2),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.showExportSet}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),e._v("导出")])],1),e._v(" "),e.selectionList.length?a("ul",{staticClass:"selector-selected-list"},[e._l(e.selectionList,function(t,o){return[a("li",{key:o+t.id+t.label,staticClass:"sld"},[e._v(e._s(t.label)+" "),a("i",{staticClass:"el-icon-close",on:{click:function(a){e.delSld(t,t.isStoreGroup)}}})])]}),e._v(" "),a("li",{staticClass:"sld tip"},[e._v("共筛选出"+e._s(e.total)+"人")])],2):e._e(),e._v(" "),a("el-table",{staticClass:"list-table",attrs:{data:e.employeeList,"default-sort":{prop:"hireDate",order:"descending"}},on:{"sort-change":e.sortList}},[e._l(e.propList,function(t){return[a("list-item",{key:t,attrs:{item:t},on:{callHandle:e.callHandle}})]})],2),e._v(" "),e.employeeList.length?a("el-pagination",{staticClass:"pagination",attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageSize,"current-page":e.pageNum,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e(),e._v(" "),a("el-dialog",{attrs:{title:e.typeTitle,visible:e.dialogVisible,width:"480px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("handle-dialog",{attrs:{employee:e.employeeObj,handleType:e.handleType,typeTitle:e.typeTitle},on:{handleSuccess:e.handleSuccess}})],1),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{defaultList:e.defaultStoreList,treeSet:e.treeSetStore},on:{handleSelectedList:e.handleStoreSelectedList}}),e._v(" "),a("vue-select-employee",{ref:"departmentSelector",attrs:{treeSet:e.treeSetDepart,changed:e.changed,treeData:e.treeData,defaultSelection:e.adDefaultSelection},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var w=a("VU/8")(b,L,!1,function(e){a("eeUe")},null,null);t.a=w.exports},TGrv:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("3Xzz"),i=a("NNAT"),s={name:"employeeRecord",components:{navCrumb:o.a,employeeList:i.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"离职员工",path:""}],typeObj:{onWorkCout:"在职员工",allWorkCount:"全职",partTimeWorkCount:"兼职",outWorkCount:"外包",practiceWorkCount:"实习",noTypeWorkCount:"无类型",regularCount:"正式",onTrialCount:"试用",noStatusCount:"无状态"},countObj:{}}},beforeMount:function(){}},r={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"common-set-wrap unemployee-wrap"},[t("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"e-record-container"},[t("employee-list",{attrs:{isUnEmployee:!0}})],1)])]),this._v(" "),t("vue-gic-footer")],1)},staticRenderFns:[]};var n=a("VU/8")(s,r,!1,function(e){a("rMHI")},null,null);t.default=n.exports},YtO6:function(e,t){},eeUe:function(e,t){},rMHI:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([19],{"5Cd3":function(t,e){},"7fkC":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("mvHQ"),r=a.n(i),s=a("Gu7T"),l=a.n(s),n=a("Ke24"),o=a("Ie7z"),c=a("c4uw"),u=a("vRJf"),m=a("l46T"),d=a("Kkt8"),g=a("//Fk"),p=a.n(g),f=a("DAYN"),h={name:"mult-upload-image",props:{projectName:{type:String,default:"haoban-manage-web"},disabled:{type:Boolean,default:!1},wxFlag:{type:String,default:"1"},imgRate:{type:String},actionUrl:{type:String,default:"/haoban-manage-web/upload-img"},maxImageLength:{type:Number,default:9},limitW:{type:Number},limitH:{type:Number},imageList:{type:Array,default:function(){return[]}},originList:{type:Array,default:function(){return[]}}},data:function(){return{dragImageList:JSON.parse(r()(this.imageList)),fileDatas:JSON.parse(r()(this.originList)),initialImg:0,progress:0,pass:null,isEnlargeImage:!1,enlargeImage:""}},computed:{propStatus:function(){return this.pass?"success":!1===this.pass?"exception":"text"}},beforeMount:function(){},methods:{uploadUrl:function(){var t,e=window.location.origin,a=void 0;return t=this.wxFlag&&""!=this.wxFlag?"wxFlag="+this.wxFlag+"&":"",a="-1"!=e.indexOf("localhost")?"https://www.gicdev.com":e,this.upUrl=a+this.actionUrl+"?"+t+"requestProject="+this.projectName,this.upUrl},beforeAvatarUpload:function(t){var e=this,a=t.size/1024/1024<5;return a||e.$message.error("上传图片大小不能超过 5MB!"),a&&new p.a(function(a,i){var r=new FileReader;r.onload=function(t){var r=new Image;r.onload=function(){var t=this.width,r=this.height;e.imgRate&&""!==e.imgRate&&(Number(e.imgRate.split(":")[0])/Number(e.imgRate.split(":")[1])!=Number(t)/Number(r)&&(e.$message.error("上传图片比例不正确!"),i()));e.imgRate&&""!=e.imgRate||!e.limitW||!e.limitH||t===e.limitW||r===e.limitH||(e.$message.error("上传图片尺寸不正确!"),i()),a()},r.src=t.target.result},r.readAsDataURL(t)})},uploadOnProgress:function(t,e){t&&t.percent&&(this.progress=Math.floor(t.percent))},uploadOnChange:function(t,e){var a=this;"ready"===t.status?(a.pass=null,a.progress=0):"fail"===t.status&&a.$message.error("图片上传失败,请重试!"),a.fileDatas=e,console.log("fileList:",e,a.fileDatas),a.$nextTick(function(){var t=[];e.length&&e.forEach(function(e){t.push({imgUrl:e.response.result[0].qcloudImageUrl})}),a.$emit("uploadOnSuccess",t,e),a.pass=null,a.progress=0})},handleExceed:function(t,e){this.$message.warning("当前限制选择 9 个文件,本次选择了 "+t.length+" 个文件,共选择了 "+(t.length+e.length)+" 个文件")},uploadOnError:function(){this.$message.error("图片上传失败,请重试!")},previewImage:function(t){this.isEnlargeImage=!0,this.initialImg=t},deleteImage:function(t){this.$emit("deleteImage",t)},handleClose:function(t){t()},itemMoveEnd:function(t){for(var e=0;e<this.dragImageList.length;e++)this.fileDatas[e].response.result[0].qcloudImageUrl=this.dragImageList[e].imgUrl;this.$emit("sortImg",this.dragImageList,this.fileDatas)}},watch:{imageList:function(t,e){this.dragImageList=JSON.parse(r()(t))},originList:function(t,e){this.fileDatas=JSON.parse(r()(t))}},mounted:function(){this.dragImageList=JSON.parse(r()(this.imageList)),this.fileDatas=JSON.parse(r()(this.originList))},components:{draggable:a.n(f).a}},v={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"gic-upload__img"},[a("div",{staticClass:"gic-upload__img__drag"},[a("draggable",{staticClass:"drag-wrap",staticStyle:{display:"contents"},attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},on:{end:t.itemMoveEnd},model:{value:t.dragImageList,callback:function(e){t.dragImageList=e},expression:"dragImageList"}},[a("transition-group",{attrs:{name:"slide-fade"}},t._l(t.imageList,function(e,i){return a("div",{key:i,class:["img-content",i>=6?"m-t-8":""]},[a("a",{staticClass:"item-img",attrs:{href:e.imgUrl}},[a("img",{attrs:{src:e.imgUrl,alt:"上传图片"}})]),t._v(" "),a("div",{staticClass:"upload-icon__btn"},[a("i",{staticClass:"el-icon-view",on:{click:function(e){t.previewImage(i)}}}),t._v(" "),a("i",{staticClass:"el-icon-delete",on:{click:function(e){t.deleteImage(i)}}})])])}))],1),t._v(" "),t.pass||0===t.progress?t._e():a("div",{class:["img-content","img-progress",t.imageList.length>=6?"m-t-8":""]},[a("el-progress",{staticClass:"gic-img-progress",staticStyle:{"line-height":"102px"},attrs:{width:102,percentage:t.progress,status:t.propStatus}})],1),t._v(" "),t.imageList&&t.imageList.length<t.maxImageLength?a("div",{class:["img-upload",t.imageList.length>=6?"m-t-8":""]},[a("el-upload",{staticClass:"loader",attrs:{disabled:t.disabled,multiple:"",accept:"image/jpg,image/jpeg,image/png,image/gif,image/bmp","file-list":t.fileDatas,action:t.uploadUrl(),"list-type":"picture-card",limit:9,"on-exceed":t.handleExceed,"on-change":t.uploadOnChange,"before-upload":t.beforeAvatarUpload,"on-error":t.uploadOnError,"on-progress":t.uploadOnProgress}},[a("i",{staticClass:"el-icon-plus gic-upload-btn"})])],1):t._e()],1),t._v(" "),a("el-dialog",{attrs:{title:"图片预览",visible:t.isEnlargeImage,"modal-append-to-body":!1,"before-close":t.handleClose,width:"520px"},on:{"update:visible":function(e){t.isEnlargeImage=e}}},[t.isEnlargeImage?a("el-carousel",{attrs:{trigger:"click","initial-index":t.initialImg,autoplay:!1,height:"500px"}},t._l(t.imageList,function(e,i){return a("el-carousel-item",{key:i,staticStyle:{display:"flex","align-items":"center","justify-content":"center"}},[a("img",{staticStyle:{"max-width":"480px","max-height":"500px"},attrs:{src:e.imgUrl},on:{click:function(e){t.isEnlargeImage=!1}}})])})):t._e()],1)],1)},staticRenderFns:[]};var I=a("VU/8")(h,v,!1,function(t){a("tdt1")},null,null).exports,b=a("P9l9"),S=a("3E4D"),L=a("Ch4/"),_=a("PI0u"),y={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:n.a,vueSelectStore:o.a,vueSelectEmployee:c.a,materialPreview:u.a,limitInput:m.a,limitTextarea:d.a,multUploadImage:I},data:function(){return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"2",topMenuData:[{id:"1",name:"纷享素材",path:"/enjoyMaterial?appIcon="+this.$route.query.appIcon},{id:"2",name:this.$route.query.materialId?"查看素材":"新建素材"}],searchInput:"",selectType:"",treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1,openNextBool:!0},defaultSelection:[],changed:"",onlyPerson:!1,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},currentPage:1,pageSize:6,total:0,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId,userId:JSON.parse(localStorage.getItem("userInfo")).userId,formData:{materialId:"",rangeList:[],imgUrlList:[],materialTitle:"",materialContent:"",topFlag:!1},rules:{materialTitle:[{required:!0,message:"请请输入素材标题",trigger:"blur"}],materialContent:[{required:!0,message:"请请输入发送内容",trigger:"blur"}],rangeList:[{validator:function(t,e,a){if(""==e||!e.length)return a(new Error("请选择选择行政架构或门店架构"));a()},trigger:"change"}],imgUrlList:[{required:!0,validator:function(t,e,a){if(""==e||!e.length)return a(new Error("请上传图片"));a()},trigger:"change"}]},originList:[],previewVisible:!1,materialPreviewData:{}}},methods:{uploadOnSuccess:function(t,e){this.formData.imgUrlList=t,this.originList=e,console.log("上传list:",t)},deleteImage:function(t){this.formData.imgUrlList.splice(t,1),this.originList.splice(t,1),console.log("删除list2:",this.formData.imgUrlList)},sortImg:function(t,e){this.formData.imgUrlList=t,this.originList=e},submitForm:function(t,e){var a=this;a.formData.rangeList=[].concat(l()(a.defaultStoreList),l()(a.defaultSelection)),a.$refs[t].validate(function(t){t&&a.postSaveCard(e)})},postSaveCard:function(t){var e=this,a=[];e.formData.rangeList.forEach(function(t){a.push({groupId:2==t.type?t.groupId:"",storeId:3==t.type?t.storeId:"",storeFlag:t.isStoreGroup})});var i={enterpriseId:e.enterpriseId,imgListStr:r()(e.formData.imgUrlList),materialContent:e.formData.materialContent,materialTitle:e.formData.materialTitle,rangeListStr:r()(a),topFlag:e.formData.topFlag?1:0,relatedType:2,brandId:e.brandId,userId:e.userId};Object(b.e)("/haoban-app-material-web/material-add",i).then(function(a){var i=a.data;1==i.errorCode&&(S.a.showmsg("新建成功","success"),t?(e.formData={materialId:"",imgUrlList:[],materialTitle:"",materialContent:"",topFlag:!1},e.defaultStoreList=[],e.defaultSelection=[]):e.$router.push("/enjoyMaterial?appIcon="+e.$route.query.appIcon)),L.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},previewData:function(t){var e=this;e.formData.rangeList=[].concat(l()(e.defaultStoreList),l()(e.defaultSelection)),e.$refs[t].validate(function(t){t&&(e.materialPreviewData=e.formData,e.previewVisible=!0)})},closePre:function(){this.materialPreviewData={}},toReturn:function(){var t=this;t.$confirm("是否确认返回,返回后当前页面内容将丢失","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$router.push("/enjoyMaterial?appIcon="+t.$route.query.appIcon)}).catch(function(){})},changeId:function(t,e){this.formData.imageTextWechatId="",this.formData.imageTextGicId=e.imageTextId},toInput:Object(_.a)(function(t,e){this.currentPage=1,this.getTableList()},200),clearInput:function(){this.currentPage=1,this.getTableList()},showDialogLayer:function(t,e){return!this.$route.query.materialId&&(this.selectType=t,this.changed=t,"store"===t?(this.defaultStoreList=e,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1,openNextBool:!0})):(this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1,openNextBool:!0},void(this.defaultSelection=e)))},handleSelectedList:function(t){"store"===this.selectType?this.defaultStoreList=t:this.defaultSelection=t},delDepart:function(t,e,a){if(this.$route.query.materialId)return!1;e.splice(t,1)},getData:function(){var t=this,e={materialId:t.$route.query.materialId,brandId:t.brandId};Object(b.a)("/haoban-app-material-web/material-detail",e).then(function(e){var a=e.data;if(1==a.errorCode){var i=[],r=[];return a.result.rangeVOList&&a.result.rangeVOList.forEach(function(t){t.groupId=2==t.type?t.id:"",t.storeId=3==t.type?t.id:"",t.isStoreGroup=t.storeFlag,1==t.storeFlag?i.push(t):r.push(t)}),t.formData={materialId:a.result.materialId,imageTextWechatId:a.result.imageTextWechatId,materialTitle:a.result.materialTitle,materialContent:a.result.materialContent,topFlag:1==a.result.topFlag,imgUrlList:a.result.imgList,rangeList:a.result.rangeVOList,createTime:a.result.createTime},t.defaultStoreList=i||[],t.defaultSelection=r||[],!1}L.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.$route.query.materialId&&this.getData())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){this.$emit("showTab","2"),this.brandId&&this.$route.query.materialId&&this.getData()}},C={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"chat-log boder-box"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"new-card-body"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.formData,rules:t.rules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"发送内容标题:",prop:"materialTitle"}},[a("limitInput",{attrs:{disflag:!!t.$route.query.materialId,inputWidth:320,inputValue:t.formData.materialTitle,holder:"请输入素材标题",getByType:"word",maxLength:15},on:{"update:inputValue":function(e){t.$set(t.formData,"materialTitle",e)}}})],1),t._v(" "),a("el-form-item",{attrs:{label:"发送内容:",prop:"materialContent"}},[a("limitTextarea",{attrs:{disInput:!!t.$route.query.materialId,inputWidth:320,inputValue:t.formData.materialContent,holder:"请输入素材内容",maxLength:1500},on:{"update:inputValue":function(e){t.$set(t.formData,"materialContent",e)}}})],1),t._v(" "),a("el-form-item",{attrs:{label:"图片上传:",prop:"imgUrlList"}},[a("mult-upload-image",{attrs:{disabled:!!t.$route.query.materialId,originList:t.originList,imageList:t.formData.imgUrlList},on:{deleteImage:t.deleteImage,uploadOnSuccess:t.uploadOnSuccess,sortImg:t.sortImg}}),t._v(" "),a("div",{staticClass:"font-12 color-606266"},[t._v("单个图片大小不超过5M,最多支持上传9张")])],1),t._v(" "),a("el-form-item",{staticClass:"input-item is-required",attrs:{label:"发送范围:",prop:"rangeList"}},[a("div",{staticClass:"form-item-tip fonr-14 color-909399"},[t._v("下面两项可二选一,非全选。可选择行政架构或门店架构")]),t._v(" "),a("div",{staticClass:"flex"},[a("div",{staticClass:"flex-column item-cell-select inline-block "},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"240px"},on:{click:function(e){t.showDialogLayer("depart",t.defaultSelection)}}},[t.defaultSelection.length?t._e():a("span",{staticClass:"font-14 color-c0c4cc p-l-10"},[t._v("请选择行政架构")]),t._v(" "),a("div",{staticClass:"el-select__tags"},[a("span",[t._l(t.defaultSelection,function(e,i){return[a("span",{key:i,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.name||e.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){e.stopPropagation(),t.delDepart(i,t.defaultSelection,"depart")}}})])]})],2)])])])])]),t._v(" "),a("div",{staticClass:"flex m-t-20"},[a("div",{staticClass:"flex-column item-cell-select inline-block"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"240px"},on:{click:function(e){t.showDialogLayer("store",t.defaultStoreList)}}},[t.defaultStoreList.length?t._e():a("span",{staticClass:"font-14 color-c0c4cc p-l-10"},[t._v("请选择门店架构")]),t._v(" "),a("div",{staticClass:"el-select__tags"},[a("span",[t._l(t.defaultStoreList,function(e,i){return[a("span",{key:i,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.name||e.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){e.stopPropagation(),t.delDepart(i,t.defaultStoreList,"store")}}})])]})],2)])])])])])]),t._v(" "),a("el-form-item",{attrs:{label:"更多设置:",prop:""}},[a("div",[a("el-checkbox",{attrs:{disabled:!!t.$route.query.materialId},model:{value:t.formData.topFlag,callback:function(e){t.$set(t.formData,"topFlag",e)},expression:"formData.topFlag"}},[t._v("置顶")])],1)]),t._v(" "),a("el-form-item",[a("el-button",{on:{click:t.toReturn}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.previewData("ruleForm")}}},[t._v("预览")]),t._v(" "),a("el-button",{attrs:{disabled:!!t.$route.query.materialId,type:"primary"},on:{click:function(e){t.submitForm("ruleForm")}}},[t._v("发布")]),t._v(" "),a("el-button",{attrs:{disabled:!!t.$route.query.materialId,type:"primary"},on:{click:function(e){t.submitForm("ruleForm","flag")}}},[t._v("发布并添加下一个")])],1)],1)],1)],1),t._v(" "),a("vue-select-employee",{attrs:{appScene:t.appScene,defaultSelection:t.defaultSelection,onlyPerson:t.onlyPerson,treeSet:t.treeSet,changed:t.changed},on:{handleSelectedList:t.handleSelectedList}}),t._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:t.activeGroup,appScene:t.appScene,treeSet:t.storeTreeSet,selectType:"group-store",defaultList:t.defaultStoreList},on:{handleSelectedList:t.handleSelectedList}}),t._v(" "),a("material-preview",{ref:"materialPreview",attrs:{materialPreviewData:t.materialPreviewData},model:{value:t.previewVisible,callback:function(e){t.previewVisible=e},expression:"previewVisible"}})],1)},staticRenderFns:[]};var x=a("VU/8")(y,C,!1,function(t){a("5Cd3")},"data-v-11d5b4c1",null);e.default=x.exports},tdt1:function(t,e){},vRJf:function(t,e,a){"use strict";var i=a("mvHQ"),r=a.n(i),s={name:"material-preview",props:{value:{type:Boolean,default:function(){return!1}},materialPreviewData:{type:[Object,Array],default:function(){return{materialId:"",imageTextWechatId:"",imageTextGicId:"",titleName:"",imageUrl:"",mediaUrl:"",rangeList:[],imgUrlList:[],materialTitle:"",materialContent:"",topFlag:!1}}}},directives:{htmlContent:{bind:function(t,e){t.innerHTML=e.value},update:function(t,e){t.innerHTML=e.value}}},data:function(){return{materialData:{materialId:"",imageTextWechatId:"",imageTextGicId:"",rangeList:[],imgUrlList:[],mediaUrl:"",materialTitle:"",materialContent:"",topFlag:!1}}},methods:{toUrl:function(t){window.open(t)},closeDialog:function(){this.$emit("input",!1),this.$emit("closePre")}},watch:{value:function(t,e){this.materialData=JSON.parse(r()(this.materialPreviewData))},materialPreviewData:function(t,e){this.materialData=JSON.parse(r()(t))}},mounted:function(){this.materialData=JSON.parse(r()(this.materialPreviewData))}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.value?a("div",{staticClass:"qr-dialog-content",staticStyle:{opacity:"1"}},[a("div",{staticClass:"qr-mask",on:{click:function(e){return e.stopPropagation(),t.closeDialog(e)}}}),t._v(" "),a("div",{staticClass:"qr-dialog border-box"},[a("div",{staticClass:"qr-dialog-body border-box"},[a("h2",{staticClass:"font-20 color-222 text-left main-title"},[t._v(t._s(t.materialData.materialTitle))]),t._v(" "),a("div",{staticClass:"notice-date m-t-10 flex flex-space-between"},[a("div",{staticClass:"notice-date-left font-10 color-88949C"},[t._v(t._s(t._f("timeStampToYmd")(t.materialData.materialId?t.materialData.createTime:(new Date).getTime())))]),t._v(" "),a("div",{staticClass:"notice-date-right font-10 color-4d7fd0"})]),t._v(" "),a("div",{directives:[{name:"htmlContent",rawName:"v-htmlContent",value:t.materialData.materialContent,expression:"materialData.materialContent"}],staticClass:"notice-body border-box font-14 color-222"}),t._v(" "),t.materialData.imgUrlList&&t.materialData.imgUrlList.length?a("div",{staticClass:"img-list-wrap"},[a("ul",{staticClass:"flex flex-wrap"},t._l(t.materialData.imgUrlList,function(t,e){return a("li",{key:e+"img",staticClass:"border-box flex flex-align-center flex-pack-center"},[a("img",{attrs:{src:t.imgUrl,alt:""}})])}))]):t._e(),t._v(" "),t.materialData.imageTextWechatId?a("div",{staticClass:"image-text-link"},[a("div",{staticClass:"flex cursor-pointer",on:{click:function(e){t.toUrl(t.materialData.mediaUrl)}}},[a("div",{staticClass:"flex-left-img flex flex-align-center flex-pack-center"},[a("img",{attrs:{src:t.materialData.imageUrl,alt:""}})]),t._v(" "),a("div",{staticClass:"flex-right-title border-box"},[a("div",{staticClass:"title-content font-14 color-606266"},[t._v(t._s(t.materialData.titleName))])])])]):t._e()])]),t._v(" "),a("div",{staticClass:"qr-dialog__hd"},[a("i",{staticClass:"el-icon-plus",on:{click:function(e){return e.stopPropagation(),t.closeDialog(e)}}})])]):t._e()},staticRenderFns:[]};var n=a("VU/8")(s,l,!1,function(t){a("xELH")},"data-v-91610bd2",null);e.a=n.exports},xELH:function(t,e){}});
\ No newline at end of file
webpackJsonp([101],{"/NA0":function(e,t){},0:function(e,t,n){n("j1ja"),e.exports=n("NHnr")},"4qCZ":function(e,t){},"5tgt":function(e,t,n){e.exports=function(e,t){return function(a){n("Opzk")("./"+e+"/"+t+".vue").then(function(e){a(e)})}}},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("mvHQ"),r=n.n(a),o=n("fZjL"),p=n.n(o),i=(n("j1ja"),n("hKoQ")),s=n.n(i),c={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var m=n("VU/8")({name:"App",data:function(){return{}}},c,!1,function(e){n("/NA0")},null,null).exports,d=n("lRwf"),u=n.n(d),l=n("pRNm"),h=n.n(l),v=n("5tgt"),g=n.n(v);u.a.use(h.a);var A=function(e){n.e(1).then(n.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var f,y=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:g()("login","index")},{path:"/download",name:"下载",component:g()("download","index")},{path:"/index",name:"index",component:g()("index","index")},{path:"/sign",name:"index",component:g()("sign","index")},{path:"/contacts",name:"通讯录",redirect:"administrativeFrame",component:g()("contacts","index"),children:[{path:"/administrativeFrame",name:"行政架构",component:g()("contacts","administrativeFrame")},{path:"/employeeIo",name:"批量导入/导出",component:g()("contacts","employeeIo")},{path:"/addDepartment",name:"添加部门",component:g()("contacts","addDepartment")},{path:"/addClerk",name:"添加店员",component:g()("contacts","addClerk")},{path:"/storeFrame",name:"门店架构",component:g()("contacts","storeFrame")},{path:"/addGroup",name:"添加子分组",component:g()("contacts","addGroup")},{path:"/storeIo",name:"门店导入/导出",component:g()("contacts","storeIo")},{path:"/storeInfo",name:"编辑门店",component:g()("contacts","storeInfo")},{path:"/recycle",name:"门店回收站",component:g()("contacts","recycle")},{path:"/employee",name:"编辑员工",component:g()("contacts","employee")},{path:"/unemployee",name:"离职员工",component:g()("contacts","unemployee")},{path:"/fileSet",name:"档案设置",component:g()("contacts","fileSet")},{path:"/recordInfo",name:"编辑员工信息",component:g()("contacts","recordInfo")},{path:"/recordIo",name:"导入导出员工档案",component:g()("contacts","recordIo")},{path:"/shareContact",name:"共享通讯录",component:g()("contacts","shareContact")},{path:"/shareCode",name:"共享通讯录二维码",component:g()("contacts","shareCode")},{path:"/employeeRecord",name:"在职员工",component:g()("contacts","employeeRecord")}]},{path:"/enterpriseApp",name:"企业应用",redirect:"appcenter",component:g()("enterpriseApp","index"),children:[{path:"/appcenter",name:"企业应用中心",component:g()("enterpriseApp","appcenter")},{path:"/mycustomer",name:"我的顾客的",redirect:"/memeberBaseSet",component:g()("enterpriseApp/myCustomer","index"),children:[{path:"/memeberBaseSet",name:"会员基础设置",component:g()("enterpriseApp/myCustomer","memeberBaseSet")},{path:"/onlineChatSet",name:"在线沟通设置",component:g()("enterpriseApp/myCustomer","onlineChatSet")},{path:"/chatRecord",name:"聊天记录",component:g()("enterpriseApp/myCustomer","chatRecord")},{path:"/sendRecord",name:"发送记录",component:g()("enterpriseApp/myCustomer","sendRecord")},{path:"/newCard",name:"新建卡券",component:g()("enterpriseApp/myCustomer","newCard")},{path:"/cardSendRecord",name:"卡券发送记录",component:g()("enterpriseApp/myCustomer","cardSendRecord")},{path:"/cardGetRecord",name:"卡券领取卡券",component:g()("enterpriseApp/myCustomer","cardGetRecord")}]},{path:"/marketing",name:"营销素材",redirect:"/imageText",component:g()("enterpriseApp/marketingMaterial","index"),children:[{path:"/imageText",name:"图文素材",component:g()("enterpriseApp/marketingMaterial","imageText")},{path:"/newImageText",name:"选择图文",component:g()("enterpriseApp/marketingMaterial","newImageText")},{path:"/enjoyMaterial",name:"纷享素材",component:g()("enterpriseApp/marketingMaterial","enjoyMaterial")},{path:"/newEnjoy",name:"新建素材",component:g()("enterpriseApp/marketingMaterial","newEnjoy")}]},{path:"/cloudDaily",name:"云日报",redirect:"/dailyRecord",component:g()("enterpriseApp/cloudDaily","index"),children:[{path:"/dailyRecord",name:"云日报记录",component:g()("enterpriseApp/cloudDaily","dailyRecord")},{path:"/dailyDetail",name:"日报详情",component:g()("enterpriseApp/cloudDaily","dailyDetail")},{path:"/taskAssign",name:"任务下发设置",component:g()("enterpriseApp/cloudDaily","taskAssign")},{path:"/systemReport",name:"系统报表",component:g()("enterpriseApp/cloudDaily","systemReport")},{path:"/customReport",name:"自定义报表",component:g()("enterpriseApp/cloudDaily","customReport")}]},{path:"/trafficTask",name:"话务任务",redirect:"/taskRecord",component:g()("enterpriseApp/trafficTask","index"),children:[{path:"/taskRecord",name:"话务任务记录",component:g()("enterpriseApp/trafficTask","taskRecord")},{path:"/taskDetail",name:"话务任务详情",component:g()("enterpriseApp/trafficTask","taskDetail")},{path:"/taskViewDetail",name:"话务任务详情",component:g()("enterpriseApp/trafficTask","taskViewDetail")},{path:"/trafficTaskSet",name:"话务任务设置",component:g()("enterpriseApp/trafficTask","trafficTaskSet")},{path:"/badEvaluateSet",name:"不良评价设置",component:g()("enterpriseApp/badEvaluate","badEvaluateSet")}]},{path:"/noticeList",name:"企业公告",redirect:"/noticeList",component:g()("enterpriseApp/notice","index"),children:[{path:"/noticeList",name:"企业公告列表",component:g()("enterpriseApp/notice","noticeList")},{path:"/addNotice",name:"新建公告",component:g()("enterpriseApp/notice","addNotice")}]},{path:"/badEvaluate",name:"不良评价",redirect:"/badEvaluateRecord",component:g()("enterpriseApp/badEvaluate","index"),children:[{path:"/badEvaluateRecord",name:"不良评价记录",component:g()("enterpriseApp/badEvaluate","badEvaluateRecord")},{path:"/badEvaluateDetail",name:"不良评价详情",component:g()("enterpriseApp/badEvaluate","badEvaluateDetail")}]},{path:"/quota",name:"指标管理",redirect:"/monthList",component:g()("enterpriseApp/quota","index"),children:[{path:"/monthList",name:"月指标列表",component:g()("enterpriseApp/quota","monthList")},{path:"/storeMonthTask",name:"门店月指标",component:g()("enterpriseApp/quota","storeMonthTask")},{path:"/salerMonthDetail",name:"导购月指标详情",component:g()("enterpriseApp/quota","salerMonthDetail")},{path:"/companyDaySet",name:"商户日权重",component:g()("enterpriseApp/quota","companyDaySet")},{path:"/monthTask",name:"月指标任务",component:g()("enterpriseApp/quota","monthTask"),meta:{keepAlive:!0}},{path:"/monthTaskDetail",name:"月指标任务详情",component:g()("enterpriseApp/quota","monthTaskDetail"),meta:{keepAlive:!0}}]},{path:"/signList",name:"企业公告",redirect:"/signList",component:g()("enterpriseApp/signApp","index"),children:[{path:"/signList",name:"企业公告列表",component:g()("enterpriseApp/signApp","signList")}]},{path:"/clockin",name:"考勤打卡",redirect:"/dayStatistics",component:g()("enterpriseApp/dailyAttendance","index"),children:[{path:"/dayStatistics",name:"日统计",component:g()("enterpriseApp/dailyAttendance","dayStatistics")},{path:"/workSet",name:"考勤设置",component:g()("enterpriseApp/dailyAttendance","workSet")},{path:"/workGroupSet",name:"考勤设置",component:g()("enterpriseApp/dailyAttendance","workGroupSet")},{path:"/workTimeManage",name:"排班管理",component:g()("enterpriseApp/dailyAttendance","workTimeManage")}]}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:g()("reviewCenter","index"),children:[{path:"/reviewed",name:"已审核",component:g()("reviewCenter","reviewed")},{path:"/unreview",name:"未审核",component:g()("reviewCenter","unreview")}]},{path:"/setCenter",name:"设置",redirect:"companyAddress",component:g()("setting","index"),children:[{path:"/companyAddress",name:"企业地址",component:g()("setting","companyAddress")},{path:"/companyCertify",name:"企业认证",component:g()("setting","companyCertify")},{path:"/staffDetails",name:"员工详情字段",component:g()("setting","staffDetails")},{path:"/storePermission",name:"门店权限设置",component:g()("setting","storePermission")},{path:"/contactPermission",name:"通讯录控制",component:g()("setting","contactPermission")},{path:"/replaceAdmin",name:"更换超级管理员",component:g()("setting","replaceAdmin")},{path:"/setChildAdmin",name:"设置子管理员",component:g()("setting","setChildAdmin")},{path:"/addAdmin",name:"添加管理员",component:g()("setting","addAdmin")},{path:"/addAdminRole",name:"添加管理员角色",component:g()("setting","addAdminRole")}]},{path:"/staffRecordsTemplate",name:"员工档案设置",component:g()("contacts","staffRecordsTemplate")},{path:"/systemReportSet",name:"系统报表设置",component:g()("enterpriseApp/cloudDaily","systemReportSet")},{path:"/template",name:"模板设置",component:g()("enterpriseApp/cloudDaily","template")},{path:"/gic-error",name:"gic跳转失败页",component:g()("errorPage","gic-error")},{path:"/403",name:"无权访问",component:A},{path:"/404",name:"error404",component:A},{path:"/500",name:"error500",component:A},{path:"*",redirect:"/404",hidden:!0}],k=new h.a({routes:y,scrollBehavior:function(){return{y:0}}}),w=n("zL8q"),D=n.n(w),x=n("Rf8U"),S=n.n(x),R=n("mtWM"),C=n.n(R),T=n("bOdI"),M=n.n(T),E=n("SJI6"),b=n.n(E);u.a.use(b.a);var I=new b.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px"},mutations:(f={},M()(f,"login",function(e,t){sessionStorage.token=t,e.token=t}),M()(f,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),M()(f,"title",function(e,t){e.title=t}),M()(f,"show",function(e,t){e.show=t}),f)}),j=(n("4qCZ"),n("uKUT"),n("Xcu2"),{dateFormat:function(e,t){if(e){e=10===e.toString().length?1e3*e:e;var n=new Date(e),a={"M+":n.getMonth()+1,"D+":n.getDate(),W:"日一二三四五六".charAt(n.getDay()),"h+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds(),"q+":Math.floor((n.getMonth()+3)/3),S:n.getMilliseconds()};for(var r in/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length))),a)new RegExp("("+r+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?a[r]:("00"+a[r]).substr((""+a[r]).length)));return t}},formatTimeStamp:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n,o=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"-"+r+"-"+a+" "+o+":"+p+":"+i}},timeStampToYmd:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n;return t.getFullYear()+"-"+r+"-"+a}},timeStampToHms:function(e){if(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":"+(t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds())}},formatTimeYmdHms:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n,o=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"."+r+"."+a+" "+o+":"+p+":"+i}}}),V=n("TUaa"),q=n.n(V),P=n("tyqE"),G=n.n(P),H=n("pRVe"),L=n.n(H),F=n("SE7k"),O=n.n(F),N=n("XsK6"),z=n.n(N),Y=n("QRL9"),J=n.n(Y),K=n("2Pnh"),B=n.n(K),U=n("l9mu"),X=n.n(U),Q={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;B()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var n=t.width,a=t.height,r=n/592.28*841.89,o=a,p=0,i=592.28/n*a,s=t.toDataURL("image/jpeg",1),c=new X.a("","pt","a4");if(o<r)c.addImage(s,"JPEG",0,0,595.28,i);else for(;o>0;)c.addImage(s,"JPEG",0,p,595.28,i),p-=841.89,(o-=r)>0&&c.addPage();c.save(e+".pdf")})}}},Z=n("/IwO"),W=n.n(Z);s.a.polyfill(),Vue.use(W.a),W.a.initAMapApiLoader({key:"d53a58848be368a7398dc56d5670fe9c",plugin:["Autocomplete","PlaceSearch","Scale","OverView","Geocoder","ToolBar","MapType","PolyEditor","AMap.CircleEditor"],v:"1.4.4"}),Vue.use(Q),Vue.use(z.a),Vue.use(J.a),Vue.use(O.a),Vue.use(L.a),Vue.use(G.a),Vue.use(q.a),Vue.config.productionTip=!1,Vue.use(D.a,{size:"large"}),Vue.use(S.a,C.a),Vue.axios.defaults.withCredentials=!0,p()(j).forEach(function(e){Vue.filter(e,j[e])}),k.beforeEach(function(e,t,n){var a=void 0,o=window.location.origin;a=-1!=o.indexOf("localhost")?"http://www.gicdev.com":o,localStorage.getItem("userInfo")||C.a.get(a+"/haoban-manage-web/emp/get-user-info",{}).then(function(e){var t=e.data;1!=t.errorCode||localStorage.setItem("userInfo",r()(t.result))}).catch(function(e){w.Message.error({duration:1e3,message:e.message})}),"/"==e.path?n({path:"/login"}):n()}),new Vue({el:"#app",router:k,store:I,components:{App:m},template:"<App/>"})},Opzk:function(e,t,n){var a={"./contacts/addClerk.vue":["27o1",0,23],"./contacts/addDepartment.vue":["HHRu",0,21],"./contacts/addEmployee.vue":["00Sv",60],"./contacts/addGroup.vue":["mPjx",0,69],"./contacts/administrativeFrame.vue":["kLcy",0,4],"./contacts/employee.vue":["AdJp",0,59],"./contacts/employeeIo.vue":["Rwbg",0,80],"./contacts/employeeRecord.vue":["zGJY",0,9],"./contacts/fileSet.vue":["CSjr",0,11],"./contacts/index.vue":["41Rh",0,66],"./contacts/recordInfo.vue":["67iC",0,17],"./contacts/recordIo.vue":["738z",0,24],"./contacts/recycle.vue":["HkK0",0,37],"./contacts/shareAddDepartment.vue":["q5Ri",0,20],"./contacts/shareCode.vue":["JsWW",0,43],"./contacts/shareContact.vue":["Gfms",0,3],"./contacts/staffRecordsTemplate.vue":["lFAe",0,87],"./contacts/storeFrame.vue":["7SJI",0,6],"./contacts/storeInfo.vue":["h/6A",0,57],"./contacts/storeIo.vue":["RHxA",0,86],"./contacts/unemployee.vue":["TGrv",0,19],"./download/index.vue":["ASGJ",0,8],"./enterpriseApp/appcenter.vue":["yuVF",0,39],"./enterpriseApp/badEvaluate/badEvaluateDetail.vue":["4m/B",0,58],"./enterpriseApp/badEvaluate/badEvaluateRecord.vue":["r//C",0,52],"./enterpriseApp/badEvaluate/badEvaluateSet.vue":["XzAK",0,79],"./enterpriseApp/badEvaluate/index.vue":["W0k8",0,50],"./enterpriseApp/cloudDaily/customReport.vue":["DxdI",0,84],"./enterpriseApp/cloudDaily/dailyDetail.vue":["5nNU",0,64],"./enterpriseApp/cloudDaily/dailyRecord.vue":["Ujni",0,41],"./enterpriseApp/cloudDaily/index.vue":["Knd1",0,98],"./enterpriseApp/cloudDaily/systemReport.vue":["Y8F9",0,42],"./enterpriseApp/cloudDaily/systemReportSet.vue":["VE2c",0,7],"./enterpriseApp/cloudDaily/taskAssign.vue":["5x7s",0,81],"./enterpriseApp/cloudDaily/template.vue":["IA9l",0,5],"./enterpriseApp/cloudDaily/template/block.vue":["PAYw",54],"./enterpriseApp/cloudDaily/template/date-range.vue":["79Bk",96],"./enterpriseApp/cloudDaily/template/image.vue":["H8Kg",61],"./enterpriseApp/cloudDaily/template/input.vue":["s4D+",71],"./enterpriseApp/cloudDaily/template/select.vue":["t0b0",78],"./enterpriseApp/dailyAttendance/dayStatistics.vue":["gncU",0,40],"./enterpriseApp/dailyAttendance/index.vue":["vgwM",0,88],"./enterpriseApp/dailyAttendance/monthStatistics.vue":["z8Gq",99],"./enterpriseApp/dailyAttendance/workGroupSet.vue":["estW",0,15],"./enterpriseApp/dailyAttendance/workSet.vue":["A/XQ",0,30],"./enterpriseApp/dailyAttendance/workTimeManage.vue":["/n/x",0,31],"./enterpriseApp/index.vue":["da9f",51],"./enterpriseApp/marketingMaterial/enjoyMaterial.vue":["SB6x",0,28],"./enterpriseApp/marketingMaterial/imageText.vue":["0qiV",0,26],"./enterpriseApp/marketingMaterial/index.vue":["m0O4",0,67],"./enterpriseApp/marketingMaterial/newEnjoy.vue":["7fkC",0,18],"./enterpriseApp/marketingMaterial/newImageText.vue":["NajC",0,14],"./enterpriseApp/myCustomer/cardGetRecord.vue":["YqmZ",0,74],"./enterpriseApp/myCustomer/cardSendRecord.vue":["+Q5U",0,95],"./enterpriseApp/myCustomer/chatRecord.vue":["gjw3",0,56],"./enterpriseApp/myCustomer/index.vue":["/rje",0,97],"./enterpriseApp/myCustomer/memeberBaseSet.vue":["N+Or",0,47],"./enterpriseApp/myCustomer/newCard.vue":["G/J9",0,94],"./enterpriseApp/myCustomer/onlineChatSet.vue":["ahzF",0,27],"./enterpriseApp/myCustomer/sendRecord.vue":["8msp",0,83],"./enterpriseApp/mycustomer.vue":["cuIN",0,48],"./enterpriseApp/notice/addNotice.vue":["G5PL",0,2],"./enterpriseApp/notice/index.vue":["av/3",0,65],"./enterpriseApp/notice/noticeList.vue":["OVYO",0,13],"./enterpriseApp/quota/companyDaySet.vue":["xk7v",0,46],"./enterpriseApp/quota/index.vue":["FB5x",0,85],"./enterpriseApp/quota/monthList.vue":["ZxDn",0,76],"./enterpriseApp/quota/monthTask.vue":["cK0D",0,82],"./enterpriseApp/quota/monthTaskDetail.vue":["jMbb",0,75],"./enterpriseApp/quota/salerMonthDetail.vue":["IKv2",0,62],"./enterpriseApp/quota/storeMonthTask.vue":["kF1j",0,45],"./enterpriseApp/signApp/index.vue":["Gk4o",0,70],"./enterpriseApp/signApp/signList.vue":["kCy7",0,63],"./enterpriseApp/trafficTask/index.vue":["e88N",0,68],"./enterpriseApp/trafficTask/taskDetail.vue":["A33E",0,49],"./enterpriseApp/trafficTask/taskRecord.vue":["iG3v",0,34],"./enterpriseApp/trafficTask/taskViewDetail.vue":["Akas",0,73],"./enterpriseApp/trafficTask/trafficTaskSet.vue":["4H54",0,93],"./errorPage/403.vue":["6XGN",35],"./errorPage/404.vue":["AejC",38],"./errorPage/500.vue":["FskK",29],"./errorPage/gic-error.vue":["Q3j/",33],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,36],"./login/index.vue":["T+/8",0,10],"./reviewCenter/index.vue":["+lem",90],"./reviewCenter/reviewed.vue":["CLYF",0,22],"./reviewCenter/unreview.vue":["xCEU",0,12],"./setting/addAdmin.vue":["rs/A",0,55],"./setting/addAdminRole.vue":["fZsz",0,77],"./setting/companyAddress.vue":["SKyE",0,53],"./setting/companyCertify.vue":["3zYh",0,16],"./setting/contactPermission.vue":["6zFj",0,72],"./setting/index.vue":["VlR1",44],"./setting/replaceAdmin.vue":["ys9I",0,89],"./setting/setChildAdmin.vue":["VqB7",0,91],"./setting/staffDetails.vue":["Zyzf",0,32],"./setting/storePermission.vue":["Xwfy",0,25],"./sign/index.vue":["RQuk",0,92]};function r(e){var t=a[e];return t?Promise.all(t.slice(1).map(n.e)).then(function(){return n(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}r.keys=function(){return Object.keys(a)},r.id="Opzk",e.exports=r},SJI6:function(e,t){e.exports=Vuex},Xcu2:function(e,t){},lRwf:function(e,t){e.exports=Vue},pRNm:function(e,t){e.exports=VueRouter},uKUT:function(e,t){}},[0]); webpackJsonp([101],{"/NA0":function(e,t){},0:function(e,t,n){n("j1ja"),e.exports=n("NHnr")},"4qCZ":function(e,t){},"5tgt":function(e,t,n){e.exports=function(e,t){return function(a){n("Opzk")("./"+e+"/"+t+".vue").then(function(e){a(e)})}}},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("mvHQ"),r=n.n(a),o=n("fZjL"),p=n.n(o),i=(n("j1ja"),n("hKoQ")),s=n.n(i),c={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var m=n("VU/8")({name:"App",data:function(){return{}}},c,!1,function(e){n("/NA0")},null,null).exports,d=n("lRwf"),u=n.n(d),l=n("pRNm"),h=n.n(l),v=n("5tgt"),g=n.n(v);u.a.use(h.a);var A=function(e){n.e(1).then(n.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var f,y=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:g()("login","index")},{path:"/download",name:"下载",component:g()("download","index")},{path:"/index",name:"index",component:g()("index","index")},{path:"/sign",name:"index",component:g()("sign","index")},{path:"/contacts",name:"通讯录",redirect:"administrativeFrame",component:g()("contacts","index"),children:[{path:"/administrativeFrame",name:"行政架构",component:g()("contacts","administrativeFrame")},{path:"/employeeIo",name:"批量导入/导出",component:g()("contacts","employeeIo")},{path:"/addDepartment",name:"添加部门",component:g()("contacts","addDepartment")},{path:"/addClerk",name:"添加店员",component:g()("contacts","addClerk")},{path:"/storeFrame",name:"门店架构",component:g()("contacts","storeFrame")},{path:"/addGroup",name:"添加子分组",component:g()("contacts","addGroup")},{path:"/storeIo",name:"门店导入/导出",component:g()("contacts","storeIo")},{path:"/storeInfo",name:"编辑门店",component:g()("contacts","storeInfo")},{path:"/recycle",name:"门店回收站",component:g()("contacts","recycle")},{path:"/employee",name:"编辑员工",component:g()("contacts","employee")},{path:"/unemployee",name:"离职员工",component:g()("contacts","unemployee")},{path:"/fileSet",name:"档案设置",component:g()("contacts","fileSet")},{path:"/recordInfo",name:"编辑员工信息",component:g()("contacts","recordInfo")},{path:"/recordIo",name:"导入导出员工档案",component:g()("contacts","recordIo")},{path:"/shareContact",name:"共享通讯录",component:g()("contacts","shareContact")},{path:"/shareCode",name:"共享通讯录二维码",component:g()("contacts","shareCode")},{path:"/employeeRecord",name:"在职员工",component:g()("contacts","employeeRecord")}]},{path:"/enterpriseApp",name:"企业应用",redirect:"appcenter",component:g()("enterpriseApp","index"),children:[{path:"/appcenter",name:"企业应用中心",component:g()("enterpriseApp","appcenter")},{path:"/mycustomer",name:"我的顾客的",redirect:"/memeberBaseSet",component:g()("enterpriseApp/myCustomer","index"),children:[{path:"/memeberBaseSet",name:"会员基础设置",component:g()("enterpriseApp/myCustomer","memeberBaseSet")},{path:"/onlineChatSet",name:"在线沟通设置",component:g()("enterpriseApp/myCustomer","onlineChatSet")},{path:"/chatRecord",name:"聊天记录",component:g()("enterpriseApp/myCustomer","chatRecord")},{path:"/sendRecord",name:"发送记录",component:g()("enterpriseApp/myCustomer","sendRecord")},{path:"/newCard",name:"新建卡券",component:g()("enterpriseApp/myCustomer","newCard")},{path:"/cardSendRecord",name:"卡券发送记录",component:g()("enterpriseApp/myCustomer","cardSendRecord")},{path:"/cardGetRecord",name:"卡券领取卡券",component:g()("enterpriseApp/myCustomer","cardGetRecord")}]},{path:"/marketing",name:"营销素材",redirect:"/imageText",component:g()("enterpriseApp/marketingMaterial","index"),children:[{path:"/imageText",name:"图文素材",component:g()("enterpriseApp/marketingMaterial","imageText")},{path:"/newImageText",name:"选择图文",component:g()("enterpriseApp/marketingMaterial","newImageText")},{path:"/enjoyMaterial",name:"纷享素材",component:g()("enterpriseApp/marketingMaterial","enjoyMaterial")},{path:"/newEnjoy",name:"新建素材",component:g()("enterpriseApp/marketingMaterial","newEnjoy")}]},{path:"/cloudDaily",name:"云日报",redirect:"/dailyRecord",component:g()("enterpriseApp/cloudDaily","index"),children:[{path:"/dailyRecord",name:"云日报记录",component:g()("enterpriseApp/cloudDaily","dailyRecord")},{path:"/dailyDetail",name:"日报详情",component:g()("enterpriseApp/cloudDaily","dailyDetail")},{path:"/taskAssign",name:"任务下发设置",component:g()("enterpriseApp/cloudDaily","taskAssign")},{path:"/systemReport",name:"系统报表",component:g()("enterpriseApp/cloudDaily","systemReport")},{path:"/customReport",name:"自定义报表",component:g()("enterpriseApp/cloudDaily","customReport")}]},{path:"/trafficTask",name:"话务任务",redirect:"/taskRecord",component:g()("enterpriseApp/trafficTask","index"),children:[{path:"/taskRecord",name:"话务任务记录",component:g()("enterpriseApp/trafficTask","taskRecord")},{path:"/taskDetail",name:"话务任务详情",component:g()("enterpriseApp/trafficTask","taskDetail")},{path:"/taskViewDetail",name:"话务任务详情",component:g()("enterpriseApp/trafficTask","taskViewDetail")},{path:"/trafficTaskSet",name:"话务任务设置",component:g()("enterpriseApp/trafficTask","trafficTaskSet")},{path:"/badEvaluateSet",name:"不良评价设置",component:g()("enterpriseApp/badEvaluate","badEvaluateSet")}]},{path:"/noticeList",name:"企业公告",redirect:"/noticeList",component:g()("enterpriseApp/notice","index"),children:[{path:"/noticeList",name:"企业公告列表",component:g()("enterpriseApp/notice","noticeList")},{path:"/addNotice",name:"新建公告",component:g()("enterpriseApp/notice","addNotice")}]},{path:"/badEvaluate",name:"不良评价",redirect:"/badEvaluateRecord",component:g()("enterpriseApp/badEvaluate","index"),children:[{path:"/badEvaluateRecord",name:"不良评价记录",component:g()("enterpriseApp/badEvaluate","badEvaluateRecord")},{path:"/badEvaluateDetail",name:"不良评价详情",component:g()("enterpriseApp/badEvaluate","badEvaluateDetail")}]},{path:"/quota",name:"指标管理",redirect:"/monthList",component:g()("enterpriseApp/quota","index"),children:[{path:"/monthList",name:"月指标列表",component:g()("enterpriseApp/quota","monthList")},{path:"/storeMonthTask",name:"门店月指标",component:g()("enterpriseApp/quota","storeMonthTask")},{path:"/salerMonthDetail",name:"导购月指标详情",component:g()("enterpriseApp/quota","salerMonthDetail")},{path:"/companyDaySet",name:"商户日权重",component:g()("enterpriseApp/quota","companyDaySet")},{path:"/monthTask",name:"月指标任务",component:g()("enterpriseApp/quota","monthTask"),meta:{keepAlive:!0}},{path:"/monthTaskDetail",name:"月指标任务详情",component:g()("enterpriseApp/quota","monthTaskDetail"),meta:{keepAlive:!0}}]},{path:"/signList",name:"企业公告",redirect:"/signList",component:g()("enterpriseApp/signApp","index"),children:[{path:"/signList",name:"企业公告列表",component:g()("enterpriseApp/signApp","signList")}]},{path:"/clockin",name:"考勤打卡",redirect:"/dayStatistics",component:g()("enterpriseApp/dailyAttendance","index"),children:[{path:"/dayStatistics",name:"日统计",component:g()("enterpriseApp/dailyAttendance","dayStatistics")},{path:"/workSet",name:"考勤设置",component:g()("enterpriseApp/dailyAttendance","workSet")},{path:"/workGroupSet",name:"考勤设置",component:g()("enterpriseApp/dailyAttendance","workGroupSet")},{path:"/workTimeManage",name:"排班管理",component:g()("enterpriseApp/dailyAttendance","workTimeManage")}]}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:g()("reviewCenter","index"),children:[{path:"/reviewed",name:"已审核",component:g()("reviewCenter","reviewed")},{path:"/unreview",name:"未审核",component:g()("reviewCenter","unreview")}]},{path:"/setCenter",name:"设置",redirect:"companyAddress",component:g()("setting","index"),children:[{path:"/companyAddress",name:"企业地址",component:g()("setting","companyAddress")},{path:"/companyCertify",name:"企业认证",component:g()("setting","companyCertify")},{path:"/staffDetails",name:"员工详情字段",component:g()("setting","staffDetails")},{path:"/storePermission",name:"门店权限设置",component:g()("setting","storePermission")},{path:"/contactPermission",name:"通讯录控制",component:g()("setting","contactPermission")},{path:"/replaceAdmin",name:"更换超级管理员",component:g()("setting","replaceAdmin")},{path:"/setChildAdmin",name:"设置子管理员",component:g()("setting","setChildAdmin")},{path:"/addAdmin",name:"添加管理员",component:g()("setting","addAdmin")},{path:"/addAdminRole",name:"添加管理员角色",component:g()("setting","addAdminRole")}]},{path:"/staffRecordsTemplate",name:"员工档案设置",component:g()("contacts","staffRecordsTemplate")},{path:"/systemReportSet",name:"系统报表设置",component:g()("enterpriseApp/cloudDaily","systemReportSet")},{path:"/template",name:"模板设置",component:g()("enterpriseApp/cloudDaily","template")},{path:"/gic-error",name:"gic跳转失败页",component:g()("errorPage","gic-error")},{path:"/403",name:"无权访问",component:A},{path:"/404",name:"error404",component:A},{path:"/500",name:"error500",component:A},{path:"*",redirect:"/404",hidden:!0}],k=new h.a({routes:y,scrollBehavior:function(){return{y:0}}}),w=n("zL8q"),D=n.n(w),x=n("Rf8U"),S=n.n(x),R=n("mtWM"),C=n.n(R),T=n("bOdI"),M=n.n(T),E=n("SJI6"),b=n.n(E);u.a.use(b.a);var I=new b.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px"},mutations:(f={},M()(f,"login",function(e,t){sessionStorage.token=t,e.token=t}),M()(f,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),M()(f,"title",function(e,t){e.title=t}),M()(f,"show",function(e,t){e.show=t}),f)}),j=(n("4qCZ"),n("uKUT"),n("Xcu2"),{dateFormat:function(e,t){if(e){e=10===e.toString().length?1e3*e:e;var n=new Date(e),a={"M+":n.getMonth()+1,"D+":n.getDate(),W:"日一二三四五六".charAt(n.getDay()),"h+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds(),"q+":Math.floor((n.getMonth()+3)/3),S:n.getMilliseconds()};for(var r in/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length))),a)new RegExp("("+r+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?a[r]:("00"+a[r]).substr((""+a[r]).length)));return t}},formatTimeStamp:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n,o=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"-"+r+"-"+a+" "+o+":"+p+":"+i}},timeStampToYmd:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n;return t.getFullYear()+"-"+r+"-"+a}},timeStampToHms:function(e){if(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":"+(t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds())}},formatTimeYmdHms:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n,o=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"."+r+"."+a+" "+o+":"+p+":"+i}}}),V=n("TUaa"),q=n.n(V),P=n("tyqE"),G=n.n(P),H=n("pRVe"),L=n.n(H),F=n("SE7k"),O=n.n(F),N=n("XsK6"),z=n.n(N),Y=n("QRL9"),J=n.n(Y),K=n("2Pnh"),B=n.n(K),U=n("l9mu"),X=n.n(U),Q={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;B()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var n=t.width,a=t.height,r=n/592.28*841.89,o=a,p=0,i=592.28/n*a,s=t.toDataURL("image/jpeg",1),c=new X.a("","pt","a4");if(o<r)c.addImage(s,"JPEG",0,0,595.28,i);else for(;o>0;)c.addImage(s,"JPEG",0,p,595.28,i),p-=841.89,(o-=r)>0&&c.addPage();c.save(e+".pdf")})}}},Z=n("/IwO"),W=n.n(Z);s.a.polyfill(),Vue.use(W.a),W.a.initAMapApiLoader({key:"d53a58848be368a7398dc56d5670fe9c",plugin:["Autocomplete","PlaceSearch","Scale","OverView","Geocoder","ToolBar","MapType","PolyEditor","AMap.CircleEditor"],v:"1.4.4"}),Vue.use(Q),Vue.use(z.a),Vue.use(J.a),Vue.use(O.a),Vue.use(L.a),Vue.use(G.a),Vue.use(q.a),Vue.config.productionTip=!1,Vue.use(D.a,{size:"large"}),Vue.use(S.a,C.a),Vue.axios.defaults.withCredentials=!0,p()(j).forEach(function(e){Vue.filter(e,j[e])}),k.beforeEach(function(e,t,n){var a=void 0,o=window.location.origin;a=-1!=o.indexOf("localhost")?"http://www.gicdev.com":o,localStorage.getItem("userInfo")||C.a.get(a+"/haoban-manage-web/emp/get-user-info",{}).then(function(e){var t=e.data;1!=t.errorCode||localStorage.setItem("userInfo",r()(t.result))}).catch(function(e){w.Message.error({duration:1e3,message:e.message})}),"/"==e.path?n({path:"/login"}):n()}),new Vue({el:"#app",router:k,store:I,components:{App:m},template:"<App/>"})},Opzk:function(e,t,n){var a={"./contacts/addClerk.vue":["27o1",0,23],"./contacts/addDepartment.vue":["HHRu",0,21],"./contacts/addEmployee.vue":["00Sv",60],"./contacts/addGroup.vue":["mPjx",0,69],"./contacts/administrativeFrame.vue":["kLcy",0,4],"./contacts/employee.vue":["AdJp",0,59],"./contacts/employeeIo.vue":["Rwbg",0,80],"./contacts/employeeRecord.vue":["zGJY",0,9],"./contacts/fileSet.vue":["CSjr",0,11],"./contacts/index.vue":["41Rh",0,66],"./contacts/recordInfo.vue":["67iC",0,17],"./contacts/recordIo.vue":["738z",0,24],"./contacts/recycle.vue":["HkK0",0,37],"./contacts/shareAddDepartment.vue":["q5Ri",0,20],"./contacts/shareCode.vue":["JsWW",0,43],"./contacts/shareContact.vue":["Gfms",0,3],"./contacts/staffRecordsTemplate.vue":["lFAe",0,87],"./contacts/storeFrame.vue":["7SJI",0,6],"./contacts/storeInfo.vue":["h/6A",0,57],"./contacts/storeIo.vue":["RHxA",0,86],"./contacts/unemployee.vue":["TGrv",0,18],"./download/index.vue":["ASGJ",0,8],"./enterpriseApp/appcenter.vue":["yuVF",0,39],"./enterpriseApp/badEvaluate/badEvaluateDetail.vue":["4m/B",0,58],"./enterpriseApp/badEvaluate/badEvaluateRecord.vue":["r//C",0,52],"./enterpriseApp/badEvaluate/badEvaluateSet.vue":["XzAK",0,79],"./enterpriseApp/badEvaluate/index.vue":["W0k8",0,50],"./enterpriseApp/cloudDaily/customReport.vue":["DxdI",0,84],"./enterpriseApp/cloudDaily/dailyDetail.vue":["5nNU",0,64],"./enterpriseApp/cloudDaily/dailyRecord.vue":["Ujni",0,41],"./enterpriseApp/cloudDaily/index.vue":["Knd1",0,98],"./enterpriseApp/cloudDaily/systemReport.vue":["Y8F9",0,42],"./enterpriseApp/cloudDaily/systemReportSet.vue":["VE2c",0,7],"./enterpriseApp/cloudDaily/taskAssign.vue":["5x7s",0,81],"./enterpriseApp/cloudDaily/template.vue":["IA9l",0,5],"./enterpriseApp/cloudDaily/template/block.vue":["PAYw",54],"./enterpriseApp/cloudDaily/template/date-range.vue":["79Bk",96],"./enterpriseApp/cloudDaily/template/image.vue":["H8Kg",61],"./enterpriseApp/cloudDaily/template/input.vue":["s4D+",71],"./enterpriseApp/cloudDaily/template/select.vue":["t0b0",78],"./enterpriseApp/dailyAttendance/dayStatistics.vue":["gncU",0,40],"./enterpriseApp/dailyAttendance/index.vue":["vgwM",0,88],"./enterpriseApp/dailyAttendance/monthStatistics.vue":["z8Gq",99],"./enterpriseApp/dailyAttendance/workGroupSet.vue":["estW",0,15],"./enterpriseApp/dailyAttendance/workSet.vue":["A/XQ",0,30],"./enterpriseApp/dailyAttendance/workTimeManage.vue":["/n/x",0,31],"./enterpriseApp/index.vue":["da9f",51],"./enterpriseApp/marketingMaterial/enjoyMaterial.vue":["SB6x",0,28],"./enterpriseApp/marketingMaterial/imageText.vue":["0qiV",0,26],"./enterpriseApp/marketingMaterial/index.vue":["m0O4",0,67],"./enterpriseApp/marketingMaterial/newEnjoy.vue":["7fkC",0,19],"./enterpriseApp/marketingMaterial/newImageText.vue":["NajC",0,14],"./enterpriseApp/myCustomer/cardGetRecord.vue":["YqmZ",0,74],"./enterpriseApp/myCustomer/cardSendRecord.vue":["+Q5U",0,95],"./enterpriseApp/myCustomer/chatRecord.vue":["gjw3",0,56],"./enterpriseApp/myCustomer/index.vue":["/rje",0,97],"./enterpriseApp/myCustomer/memeberBaseSet.vue":["N+Or",0,47],"./enterpriseApp/myCustomer/newCard.vue":["G/J9",0,94],"./enterpriseApp/myCustomer/onlineChatSet.vue":["ahzF",0,27],"./enterpriseApp/myCustomer/sendRecord.vue":["8msp",0,83],"./enterpriseApp/mycustomer.vue":["cuIN",0,48],"./enterpriseApp/notice/addNotice.vue":["G5PL",0,2],"./enterpriseApp/notice/index.vue":["av/3",0,65],"./enterpriseApp/notice/noticeList.vue":["OVYO",0,13],"./enterpriseApp/quota/companyDaySet.vue":["xk7v",0,46],"./enterpriseApp/quota/index.vue":["FB5x",0,85],"./enterpriseApp/quota/monthList.vue":["ZxDn",0,76],"./enterpriseApp/quota/monthTask.vue":["cK0D",0,82],"./enterpriseApp/quota/monthTaskDetail.vue":["jMbb",0,75],"./enterpriseApp/quota/salerMonthDetail.vue":["IKv2",0,62],"./enterpriseApp/quota/storeMonthTask.vue":["kF1j",0,45],"./enterpriseApp/signApp/index.vue":["Gk4o",0,70],"./enterpriseApp/signApp/signList.vue":["kCy7",0,63],"./enterpriseApp/trafficTask/index.vue":["e88N",0,68],"./enterpriseApp/trafficTask/taskDetail.vue":["A33E",0,49],"./enterpriseApp/trafficTask/taskRecord.vue":["iG3v",0,34],"./enterpriseApp/trafficTask/taskViewDetail.vue":["Akas",0,73],"./enterpriseApp/trafficTask/trafficTaskSet.vue":["4H54",0,93],"./errorPage/403.vue":["6XGN",35],"./errorPage/404.vue":["AejC",38],"./errorPage/500.vue":["FskK",29],"./errorPage/gic-error.vue":["Q3j/",33],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,36],"./login/index.vue":["T+/8",0,10],"./reviewCenter/index.vue":["+lem",90],"./reviewCenter/reviewed.vue":["CLYF",0,22],"./reviewCenter/unreview.vue":["xCEU",0,12],"./setting/addAdmin.vue":["rs/A",0,55],"./setting/addAdminRole.vue":["fZsz",0,77],"./setting/companyAddress.vue":["SKyE",0,53],"./setting/companyCertify.vue":["3zYh",0,16],"./setting/contactPermission.vue":["6zFj",0,72],"./setting/index.vue":["VlR1",44],"./setting/replaceAdmin.vue":["ys9I",0,89],"./setting/setChildAdmin.vue":["VqB7",0,91],"./setting/staffDetails.vue":["Zyzf",0,32],"./setting/storePermission.vue":["Xwfy",0,25],"./sign/index.vue":["RQuk",0,92]};function r(e){var t=a[e];return t?Promise.all(t.slice(1).map(n.e)).then(function(){return n(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}r.keys=function(){return Object.keys(a)},r.id="Opzk",e.exports=r},SJI6:function(e,t){e.exports=Vuex},Xcu2:function(e,t){},lRwf:function(e,t){e.exports=Vue},pRNm:function(e,t){e.exports=VueRouter},uKUT:function(e,t){}},[0]);
\ No newline at end of file \ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,b,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],d[t]&&u.push(d[t][0]),d[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(a,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=f(f.s=n[i]);return o};var a={},d={103:0};function f(c){if(a[c])return a[c].exports;var d=a[c]={i:c,l:!1,exports:{}};return e[c].call(d.exports,d,d.exports,f),d.l=!0,d.exports}f.e=function(e){var c=d[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,f){c=d[e]=[a,f]});c[2]=a;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,f.nc&&n.setAttribute("nonce",f.nc),n.src=f.p+"static/js/"+e+"."+{0:"e02bb013de875e5ccbb7",1:"fe9dec1f31b04053fd7e",2:"54aabab28c7735d34c10",3:"b7e6d57d97174b75b050",4:"11254d7e3a102121b8ec",5:"b5e24a58d047a2ec70f5",6:"124ad8222f7b043b44ae",7:"ebad93a8c5bffffd9e98",8:"f1c9fb5c9212483138d8",9:"b5aae16b3951516573ad",10:"ebbed2d956a1376f014a",11:"59c7813cc972f62b1d18",12:"879536ae7ce46f0c54ec",13:"57e51fc1b6342003f25d",14:"dce1b92c12422c24e840",15:"043879bcee1012d065fb",16:"f483f95dbac654c7de5a",17:"ff6edf624b982c354977",18:"d33eb115b60e0d362001",19:"d7d09ae4564d64842009",20:"455fd80bd8af15457c57",21:"c1b5e15e28768af52654",22:"2a873e819c6c369d5cd1",23:"d2380bf3c276e741313b",24:"56085041ae784faf3c32",25:"e23f42a6b2180b63c129",26:"606394f2e20eb1a455fa",27:"c3f7fb68797f235ad906",28:"5c93d8a260522a61d27e",29:"c5bb15e8e1bd17cdc0f7",30:"91cd2c7b75ba4aec78dc",31:"5d5e618d2ceadec7e8cb",32:"fc2213c2b57da6c25ea2",33:"f4c48aa4b6adbdec738a",34:"e5ba3c1688f3038d3d09",35:"d8abf87eeb477b4bc1f3",36:"2cadbd4ded3457625f52",37:"8dc3e1f0f3e416135406",38:"9f4a46d2ce3c9477a06b",39:"b33ea830129fb895dd77",40:"6a72d08fe0ffa0a16cf6",41:"17121c9227dddf24b37d",42:"54f2f4850c109391114a",43:"fb46c0bad10552e7ef89",44:"3d32c7e1954754671303",45:"c0accd45711184d0044d",46:"785c8076b8d217da747e",47:"b477848570e876912bdb",48:"32a6d29de6b93cd9201c",49:"1a7182d9cdf2e08ff7f0",50:"4235ecfe09e1fc4e1ca4",51:"2f363aaad04264e9f159",52:"d56e883ddcbef7c6b221",53:"ec91f2b143d0b1e708b5",54:"31eed9c38748896262d1",55:"4f96191ae2c44c6f18f7",56:"99063bd3b07926595af4",57:"ba6530916d934b70d218",58:"2241679269f18e7f14c3",59:"5c336f6f4d119300c1d8",60:"d43c13d5c29feb45e864",61:"0806aac37bd2b86e8bc2",62:"8ef5c75f77376ecd8873",63:"bbe4da77ef31a0aa9150",64:"f26939887c305ec6f7fc",65:"069ccaf5f8e5b5f3c59d",66:"5f0382c9cb76b57ba778",67:"745b9621e5297c575b33",68:"aaaa125fb978b59c2cbf",69:"bb6a8bab41cac9f11bd4",70:"a226d330de7ebb2a4c5f",71:"9551ae81326c57064dec",72:"cb1b3985b92be4556fc1",73:"b6b1fb51b601c0fafcda",74:"6206c00744e77bc84fec",75:"93eb5a61daaa3a1df425",76:"78e5a422e9fecbbd255a",77:"b3f7cf4d2b54d306c522",78:"1fc3472c5f95a0a66979",79:"69811ba75d1fceae9737",80:"12442b543aff65f2c05d",81:"00a94b58ac2affb758dc",82:"1fa56152d6bdcfd4ec14",83:"976088a6ee120b8caa17",84:"45dae077c86a1a0050ff",85:"0c7635a15cceae31d981",86:"d0d0607a424156f2d88d",87:"aee44c25b8d252c44b6e",88:"6583c4b0dc7a8f908fa2",89:"8d513b9c9d7970a612c0",90:"57319965505945b3ae7e",91:"446342439ce97b19c84f",92:"09a5823b00d6180576b9",93:"e801fdd8bbd27a68d8ee",94:"c50da77d4e1d5a44b971",95:"04507f6fadd31b01a746",96:"d4a4beef007fa347bd93",97:"8b0f08b3974b32d7bc2a",98:"69c8efc82743796dc255",99:"58cc1884c4f80303999a",102:"2629d20834840d0da10e"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=d[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),d[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),a},f.m=e,f.c=a,f.d=function(e,c,a){f.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},f.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(c,"a",c),c},f.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},f.p="./",f.oe=function(e){throw console.error(e),e}}([]); !function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,b,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(a,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var a={},f={103:0};function d(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,d){c=f[e]=[a,d]});c[2]=a;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"e02bb013de875e5ccbb7",1:"fe9dec1f31b04053fd7e",2:"54aabab28c7735d34c10",3:"b7e6d57d97174b75b050",4:"11254d7e3a102121b8ec",5:"b5e24a58d047a2ec70f5",6:"124ad8222f7b043b44ae",7:"ebad93a8c5bffffd9e98",8:"f1c9fb5c9212483138d8",9:"b5aae16b3951516573ad",10:"ebbed2d956a1376f014a",11:"59c7813cc972f62b1d18",12:"879536ae7ce46f0c54ec",13:"57e51fc1b6342003f25d",14:"dce1b92c12422c24e840",15:"043879bcee1012d065fb",16:"f483f95dbac654c7de5a",17:"ff6edf624b982c354977",18:"f7633d51986d0c6798f1",19:"efae2c489054aff3096c",20:"455fd80bd8af15457c57",21:"c1b5e15e28768af52654",22:"2a873e819c6c369d5cd1",23:"d2380bf3c276e741313b",24:"56085041ae784faf3c32",25:"e23f42a6b2180b63c129",26:"606394f2e20eb1a455fa",27:"c3f7fb68797f235ad906",28:"5c93d8a260522a61d27e",29:"c5bb15e8e1bd17cdc0f7",30:"91cd2c7b75ba4aec78dc",31:"5d5e618d2ceadec7e8cb",32:"fc2213c2b57da6c25ea2",33:"f4c48aa4b6adbdec738a",34:"e5ba3c1688f3038d3d09",35:"d8abf87eeb477b4bc1f3",36:"2cadbd4ded3457625f52",37:"8dc3e1f0f3e416135406",38:"9f4a46d2ce3c9477a06b",39:"b33ea830129fb895dd77",40:"6a72d08fe0ffa0a16cf6",41:"17121c9227dddf24b37d",42:"54f2f4850c109391114a",43:"fb46c0bad10552e7ef89",44:"3d32c7e1954754671303",45:"c0accd45711184d0044d",46:"785c8076b8d217da747e",47:"b477848570e876912bdb",48:"32a6d29de6b93cd9201c",49:"1a7182d9cdf2e08ff7f0",50:"4235ecfe09e1fc4e1ca4",51:"2f363aaad04264e9f159",52:"d56e883ddcbef7c6b221",53:"ec91f2b143d0b1e708b5",54:"31eed9c38748896262d1",55:"4f96191ae2c44c6f18f7",56:"99063bd3b07926595af4",57:"ba6530916d934b70d218",58:"2241679269f18e7f14c3",59:"5c336f6f4d119300c1d8",60:"d43c13d5c29feb45e864",61:"0806aac37bd2b86e8bc2",62:"8ef5c75f77376ecd8873",63:"bbe4da77ef31a0aa9150",64:"f26939887c305ec6f7fc",65:"069ccaf5f8e5b5f3c59d",66:"5f0382c9cb76b57ba778",67:"745b9621e5297c575b33",68:"aaaa125fb978b59c2cbf",69:"bb6a8bab41cac9f11bd4",70:"a226d330de7ebb2a4c5f",71:"9551ae81326c57064dec",72:"cb1b3985b92be4556fc1",73:"b6b1fb51b601c0fafcda",74:"6206c00744e77bc84fec",75:"93eb5a61daaa3a1df425",76:"78e5a422e9fecbbd255a",77:"b3f7cf4d2b54d306c522",78:"1fc3472c5f95a0a66979",79:"69811ba75d1fceae9737",80:"12442b543aff65f2c05d",81:"00a94b58ac2affb758dc",82:"1fa56152d6bdcfd4ec14",83:"976088a6ee120b8caa17",84:"45dae077c86a1a0050ff",85:"0c7635a15cceae31d981",86:"d0d0607a424156f2d88d",87:"aee44c25b8d252c44b6e",88:"6583c4b0dc7a8f908fa2",89:"8d513b9c9d7970a612c0",90:"57319965505945b3ae7e",91:"446342439ce97b19c84f",92:"09a5823b00d6180576b9",93:"e801fdd8bbd27a68d8ee",94:"c50da77d4e1d5a44b971",95:"04507f6fadd31b01a746",96:"d4a4beef007fa347bd93",97:"8b0f08b3974b32d7bc2a",98:"69c8efc82743796dc255",99:"58cc1884c4f80303999a",102:"2629d20834840d0da10e"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),a},d.m=e,d.c=a,d.d=function(e,c,a){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file \ No newline at end of file
...@@ -4,12 +4,13 @@ ...@@ -4,12 +4,13 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2018-12-06 13:44:22 * @Date: 2018-12-06 13:44:22
* @LastEditors : 无尘 * @LastEditors : 无尘
* @LastEditTime : 2019-12-24 09:40:53 * @LastEditTime : 2019-12-24 10:29:32
--> -->
<!-- <!--
多个上传组件 多个上传组件
<mult-upload-image <mult-upload-image
:imageList="imageList" :imageList="imageList"
:originList = "originList"
:disabled="disabled" :disabled="disabled"
@deleteImage="deleteImage" @deleteImage="deleteImage"
@sortImg = "sortImg" @sortImg = "sortImg"
...@@ -106,13 +107,19 @@ export default { ...@@ -106,13 +107,19 @@ export default {
default() { default() {
return []; return [];
} }
},
originList: {
type: Array,
default() {
return [];
}
} }
}, },
data() { data() {
return { return {
dragImageList: JSON.parse(JSON.stringify(this.imageList)), // 传递的图片数据 dragImageList: JSON.parse(JSON.stringify(this.imageList)), // 传递的图片数据
fileDatas: JSON.parse(JSON.stringify(this.imageList)), fileDatas: JSON.parse(JSON.stringify(this.originList)),
initialImg: 0, // 初始索引 initialImg: 0, // 初始索引
progress: 0, // 上传进度 progress: 0, // 上传进度
pass: null, // 是否上传成功 pass: null, // 是否上传成功
...@@ -221,7 +228,7 @@ export default { ...@@ -221,7 +228,7 @@ export default {
}) })
}) })
} }
that.$emit('uploadOnSuccess',list); that.$emit('uploadOnSuccess',list, fileList);
that.pass = null; that.pass = null;
that.progress = 0; that.progress = 0;
}) })
...@@ -253,13 +260,19 @@ export default { ...@@ -253,13 +260,19 @@ export default {
// move end // move end
itemMoveEnd(evt) { itemMoveEnd(evt) {
const that = this; const that = this;
that.$emit('sortImg', that.dragImageList); for (let index = 0; index < that.dragImageList.length; index++) {
that.fileDatas[index].response.result[0].qcloudImageUrl = that.dragImageList[index].imgUrl;
}
that.$emit('sortImg', that.dragImageList, that.fileDatas);
} }
}, },
watch: { watch: {
imageList: function(newData, oldData) { imageList: function(newData, oldData) {
const that = this; const that = this;
that.dragImageList = JSON.parse(JSON.stringify(newData)); that.dragImageList = JSON.parse(JSON.stringify(newData));
},
originList: function(newData, oldData) {
const that = this;
that.fileDatas = JSON.parse(JSON.stringify(newData)); that.fileDatas = JSON.parse(JSON.stringify(newData));
} }
}, },
...@@ -267,7 +280,7 @@ export default { ...@@ -267,7 +280,7 @@ export default {
mounted() { mounted() {
const that = this; const that = this;
that.dragImageList = JSON.parse(JSON.stringify(that.imageList)); that.dragImageList = JSON.parse(JSON.stringify(that.imageList));
that.fileDatas = JSON.parse(JSON.stringify(that.imageList)); that.fileDatas = JSON.parse(JSON.stringify(that.originList));
}, },
components: { components: {
draggable draggable
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-09-18 15:25:12 * @Date: 2019-09-18 15:25:12
* @LastEditors : 无尘 * @LastEditors : 无尘
* @LastEditTime : 2019-12-23 13:35:56 * @LastEditTime : 2019-12-24 10:29:49
--> -->
<!-- <!--
...@@ -28,7 +28,7 @@ components: { ...@@ -28,7 +28,7 @@ components: {
<limitTextarea :disInput="$route.query.materialId ? true : false" :inputWidth="320" :inputValue.sync="formData.materialContent" :holder="'请输入素材内容'" :maxLength="1500"> </limitTextarea> <limitTextarea :disInput="$route.query.materialId ? true : false" :inputWidth="320" :inputValue.sync="formData.materialContent" :holder="'请输入素材内容'" :maxLength="1500"> </limitTextarea>
</el-form-item> </el-form-item>
<el-form-item label="图片上传:" prop="imgUrlList"> <el-form-item label="图片上传:" prop="imgUrlList">
<mult-upload-image :disabled="$route.query.materialId ? true : false" :imageList="formData.imgUrlList" @deleteImage="deleteImage" @uploadOnSuccess="uploadOnSuccess" @sortImg="sortImg"> </mult-upload-image> <mult-upload-image :disabled="$route.query.materialId ? true : false" :originList="originList" :imageList="formData.imgUrlList" @deleteImage="deleteImage" @uploadOnSuccess="uploadOnSuccess" @sortImg="sortImg"> </mult-upload-image>
<div class="font-12 color-606266">单个图片大小不超过5M,最多支持上传9张</div> <div class="font-12 color-606266">单个图片大小不超过5M,最多支持上传9张</div>
</el-form-item> </el-form-item>
<el-form-item label="发送范围:" class="input-item is-required" prop="rangeList"> <el-form-item label="发送范围:" class="input-item is-required" prop="rangeList">
...@@ -204,6 +204,7 @@ export default { ...@@ -204,6 +204,7 @@ export default {
rangeList: [{ validator: validRange, trigger: 'change' }], rangeList: [{ validator: validRange, trigger: 'change' }],
imgUrlList: [{ required: true, validator: validImg, trigger: 'change' }] imgUrlList: [{ required: true, validator: validImg, trigger: 'change' }]
}, },
originList: [],
// 预览 // 预览
previewVisible: false, previewVisible: false,
materialPreviewData: {} materialPreviewData: {}
...@@ -213,9 +214,10 @@ export default { ...@@ -213,9 +214,10 @@ export default {
/** /**
* 上传 * 上传
*/ */
uploadOnSuccess(list) { uploadOnSuccess(list, origin) {
const that = this; const that = this;
that.formData.imgUrlList = list; that.formData.imgUrlList = list;
that.originList = origin;
/* eslint-disable */ /* eslint-disable */
console.log('上传list:',list); console.log('上传list:',list);
}, },
...@@ -225,12 +227,14 @@ export default { ...@@ -225,12 +227,14 @@ export default {
deleteImage(index) { deleteImage(index) {
const that = this; const that = this;
that.formData.imgUrlList.splice(index,1); that.formData.imgUrlList.splice(index,1);
that.originList.splice(index,1);
/* eslint-disable */ /* eslint-disable */
console.log('删除list2:',that.formData.imgUrlList); console.log('删除list2:',that.formData.imgUrlList);
}, },
sortImg(list) { sortImg(list,origin) {
const that = this; const that = this;
that.formData.imgUrlList = list; that.formData.imgUrlList = list;
that.originList = origin;
}, },
/** /**
* 确认新建 * 确认新建
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment