Commit 6b786964 by 无尘

fix: 修改考勤组数据

parent 3bfae434
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.efbc6b828e81fdc7e97ee3910fc96765.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.5d532aaa3ab457db7674.js></script><script type=text/javascript src=./static/js/vendor.0000e68e65e4a9dc3840.js></script><script type=text/javascript src=./static/js/app.9c584469c2b22effc5a0.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.4877a99a3de91fd6ed54936d9b19ff5a.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.479b55a68687dbe07389.js></script><script type=text/javascript src=./static/js/vendor.0000e68e65e4a9dc3840.js></script><script type=text/javascript src=./static/js/app.9c584469c2b22effc5a0.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"),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){if(console.log(that.disabled),that.disabled)return!1;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(" "),t.disabled?t._e():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("kJiG")},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(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)),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(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(_.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()}},x={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,支持 jpg、jpeg、bmp、png 类型文件,最多支持上传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 C=a("VU/8")(y,x,!1,function(t){a("EOES")},"data-v-269c95ec",null);e.default=C.exports},EOES:function(t,e){},kJiG: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([18],{"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){if(that.disabled)return!1;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(" "),t.disabled?t._e():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("s6jP")},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()}},x={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,支持 jpg、jpeg、bmp、png 类型文件,最多支持上传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 C=a("VU/8")(y,x,!1,function(t){a("EOES")},"data-v-269c95ec",null);e.default=C.exports},EOES:function(t,e){},s6jP: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([27],{SB6x:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("Ke24"),n=a("joH8"),o=a("P9l9"),s=a("Ch4/"),l=a("3E4D"),r=a("PI0u"),c={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:i.a,materialRecord:n.a},data:function(){var t=this;return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"1",topMenuData:[{id:"1",name:"纷享素材"}],tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},choiceDateCopy:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-6048e5),t.$emit("pick",[a,e])}},{text:"最近一个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-2592e6),t.$emit("pick",[a,e])}},{text:"最近三个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-7776e6),t.$emit("pick",[a,e])}}],onPick:function(e){var a=e.maxDate,i=e.minDate;t.choiceDateCopy=[i.getTime()],a&&(t.choiceDateCopy=[])},disabledDate:function(e){if(t.choiceDateCopy.length){var a=t.choiceDateCopy[0]-31536e6,i=t.choiceDateCopy[0]+31536e6;return e.getTime()<a||e.getTime()>i||e.getTime()>Date.now()-864e4}return e.getTime()>Date.now()-864e4}},currentPage:1,pageSize:20,total:0,detailShow:!1,materialId:""}},methods:{toInput:Object(r.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},toCreate:function(){this.$router.push("/newEnjoy?appIcon="+this.$route.query.appIcon)},toSetTop:function(t,e){var a=this;a.$confirm(0==e?"置顶后,该素材将出现在手机好办营销素材顶部,确认置顶该素材吗":"确定「取消置顶」该条素材吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postTop(t,e)})},postTop:function(t,e){var a=this,i={materialId:t,topFlag:0==e?1:0};Object(o.a)("/haoban-app-material-web/material-to-top",i).then(function(t){var i=t.data;1==i.errorCode?(0==e?l.a.showmsg("置顶成功","success"):l.a.showmsg("取消置顶成功","success"),a.currentPage=1,a.getTableList()):l.a.showmsg(i.message,"warning")}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showDetail:function(t,e){this.$router.push("/newEnjoy?materialId="+e.materialId+"&appIcon="+this.$route.query.appIcon)},showRecord:function(t,e){this.detailShow=!0,this.materialId=e.materialId},hideDetailDialog:function(){this.detailShow=!1,this.materialId=""},toDel:function(t,e){var a=this;a.$confirm("是否要删除该素材?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(t,e){var a=this,i={materialId:t.materialId};Object(o.e)("/haoban-app-material-web/material-del",i).then(function(t){var e=t.data;if(1==e.errorCode)return l.a.showmsg("删除成功","success"),void a.getTableList();s.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getTableList:function(t){var e=this;e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var a={materialTitle:e.conditionObj.searchInput||"",startTimeStr:e.conditionObj.dateRange[0]||"",endTimeStr:e.conditionObj.dateRange[1]||"",relatedType:2,pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand};Object(o.a)("/haoban-app-material-web/material-page",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.total,!1;s.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){this.$emit("showTab","2"),this.brandId&&this.getTableList()}},u={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 border-box"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"chat-log-content border-box"},[t._m(0),t._v(" "),a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",attrs:{placeholder:"请输入标题",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}}),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{"prefix-icon":"el-icon-time","picker-options":t.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"~","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"primary"},on:{click:t.toCreate}},[t._v("新建素材")])],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"标题","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.materialTitle||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"图片","min-width":"320"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"imgs-set"},[t._l(e.row.imgList,function(e,i){return[a("el-popover",{key:i+"img",attrs:{"popper-class":"notice-img-popover",placement:"right",width:"400",trigger:"hover"}},[a("div",{staticClass:"img-preview flex flex-align-center flex-pack-center"},[a("img",{staticStyle:{"max-width":"400px"},attrs:{src:e.imgUrl,alt:""}})]),t._v(" "),a("img",{staticClass:"table-img",attrs:{slot:"reference",src:e.imgUrl,alt:""},slot:"reference"})])]})],2)]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"点赞数","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.thumbsUpCount||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"转发数","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.tranferCount||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"发布时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"219",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toSetTop(e.row.materialId,e.row.topFlag)}}},[t._v(t._s(1==e.row.topFlag?"取消置顶":"置顶"))]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.showDetail(e.$index,e.row)}}},[t._v("查看")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.showRecord(e.$index,e.row)}}},[t._v("记录")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toDel(e.$index,e.row)}}},[t._v("删除")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)],1),t._v(" "),a("material-record",{attrs:{materialId:t.materialId,detailShow:t.detailShow},on:{hideDetailDialog:t.hideDetailDialog}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"condition-tip m-b-20"},[e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-1890ff"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("纷享素材内容自定义,包含文字内容及图片编辑")])])])])}]};var d=a("VU/8")(c,u,!1,function(t){a("Y/NB")},"data-v-454eb8be",null);e.default=d.exports},VPsm:function(t,e){},"Y/NB":function(t,e){},joH8:function(t,e,a){"use strict";var i=a("P9l9"),n=a("Ch4/"),o=a("PI0u"),s={name:"material-record",props:{detailShow:{type:Boolean,default:!1},materialId:{type:String,default:""}},data:function(){return{customDialog:!1,activeName:"first",tableData:[],conditionObj:{searchInput:"",materialId:this.materialId},currentPage:1,pageSize:5,total:0}},methods:{handleTab:function(){this.conditionObj.searchInput="",this.currentPage=1,this.getTableList()},toInput:Object(o.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},handleClose:function(t){t(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideDetailDialog")},getTableList:function(t){var e=this,a={materialId:e.conditionObj.materialId,imgTextTitle:e.conditionObj.searchInput||"",relatedType:"first"==e.activeName?2:1,pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand};Object(i.a)("/haoban-app-material-web/material-log",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.total,!1;n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{detailShow:function(t,e){this.customDialog=t},materialId:function(t,e){t&&(this.conditionObj.materialId=t,this.currentPage=1,this.getTableList())}},mounted:function(){this.customDialog=this.detailShow,this.materialId&&(this.conditionObj.materialId=this.materialId,this.currentPage=1,this.getTableList())}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"记录",visible:t.customDialog,width:"739px","before-close":t.handleClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"edit-dialog-body"},[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleTab},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"点赞记录",name:"first"}},[a("div",{staticClass:"m-b-20 flex"},[a("el-input",{staticClass:"w-223",attrs:{placeholder:"请输入姓名/手机号/code","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}}),t._v(" "),a("span",{staticClass:"p-l-10 l-h-32"},[t._v("共"+t._s(t.total)+"条点赞记录")])],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,height:"332"}},[a("el-table-column",{attrs:{label:"点赞人",width:"150","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headImg?a("img",{attrs:{src:e.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"text-ellipsis"},[t._v(t._s(e.row.userName))]),t._v(" "),a("span",{staticClass:"font-13 text-ellipsis"},[t._v(t._s(e.row.storeName))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"手机号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.phoneNumber||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"点赞时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])})],1)],1),t._v(" "),a("el-tab-pane",{attrs:{label:"转发记录",name:"second"}},[a("div",{staticClass:"m-b-20 flex"},[a("el-input",{staticClass:"w-223",attrs:{placeholder:"请输入姓名/手机号/code","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}}),t._v(" "),a("span",{staticClass:"p-l-10 l-h-32"},[t._v("共"+t._s(t.total)+"条转发记录")])],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,height:"332"}},[a("el-table-column",{attrs:{label:"转发人",width:"150","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headImg?a("img",{attrs:{src:e.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"text-ellipsis"},[t._v(t._s(e.row.userName))]),t._v(" "),a("span",{staticClass:"font-13 text-ellipsis"},[t._v(t._s(e.row.storeName))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"手机号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.phoneNumber||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"转发时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])})],1)],1)],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])],1)},staticRenderFns:[]};var r=a("VU/8")(s,l,!1,function(t){a("VPsm")},"data-v-1ed80b70",null);e.a=r.exports}});
\ No newline at end of file
webpackJsonp([27],{CV99:function(t,e){},SB6x:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("Ke24"),n=a("joH8"),o=a("P9l9"),s=a("Ch4/"),l=a("3E4D"),r=a("PI0u"),c={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:i.a,materialRecord:n.a},data:function(){var t=this;return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"1",topMenuData:[{id:"1",name:"纷享素材"}],tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},choiceDateCopy:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-6048e5),t.$emit("pick",[a,e])}},{text:"最近一个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-2592e6),t.$emit("pick",[a,e])}},{text:"最近三个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-7776e6),t.$emit("pick",[a,e])}}],onPick:function(e){var a=e.maxDate,i=e.minDate;t.choiceDateCopy=[i.getTime()],a&&(t.choiceDateCopy=[])},disabledDate:function(e){if(t.choiceDateCopy.length){var a=t.choiceDateCopy[0]-31536e6,i=t.choiceDateCopy[0]+31536e6;return e.getTime()<a||e.getTime()>i||e.getTime()>Date.now()-864e4}return e.getTime()>Date.now()-864e4}},currentPage:1,pageSize:20,total:0,detailShow:!1,materialId:""}},methods:{toInput:Object(r.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},toCreate:function(){this.$router.push("/newEnjoy")},toSetTop:function(t,e){var a=this;a.$confirm(0==e?"置顶后,该素材将出现在手机好办营销素材顶部,确认置顶该素材吗":"确定「取消置顶」该条素材吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postTop(t,e)})},postTop:function(t,e){var a=this,i={materialId:t,topFlag:0==e?1:0};Object(o.a)("/haoban-app-material-web/material-to-top",i).then(function(t){var i=t.data;1==i.errorCode?(0==e?l.a.showmsg("置顶成功","success"):l.a.showmsg("取消置顶成功","success"),a.currentPage=1,a.getTableList()):l.a.showmsg(i.message,"warning")}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showDetail:function(t,e){this.$router.push("/newEnjoy?materialId="+e.materialId+"&appIcon="+this.$route.query.appIcon)},showRecord:function(t,e){this.detailShow=!0,this.materialId=e.materialId},hideDetailDialog:function(){this.detailShow=!1,this.materialId=""},toDel:function(t,e){var a=this;a.$confirm("是否要删除该素材?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(t,e){var a=this,i={materialId:t.materialId};Object(o.e)("/haoban-app-material-web/material-del",i).then(function(t){var e=t.data;if(1==e.errorCode)return l.a.showmsg("删除成功","success"),void a.getTableList();s.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getTableList:function(t){var e=this;e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var a={materialTitle:e.conditionObj.searchInput||"",startTimeStr:e.conditionObj.dateRange[0]||"",endTimeStr:e.conditionObj.dateRange[1]||"",relatedType:2,pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand};Object(o.a)("/haoban-app-material-web/material-page",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.total,!1;s.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){this.$emit("showTab","2"),this.brandId&&this.getTableList()}},u={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 border-box"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"chat-log-content border-box"},[t._m(0),t._v(" "),a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",attrs:{placeholder:"请输入标题",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}}),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{"prefix-icon":"el-icon-time","picker-options":t.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"~","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"primary"},on:{click:t.toCreate}},[t._v("新建素材")])],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"标题","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.materialTitle||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"图片","min-width":"320"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"imgs-set"},[t._l(e.row.imgList,function(e,i){return[a("el-popover",{key:i+"img",attrs:{"popper-class":"notice-img-popover",placement:"right",width:"400",trigger:"hover"}},[a("div",{staticClass:"img-preview flex flex-align-center flex-pack-center"},[a("img",{staticStyle:{"max-width":"400px"},attrs:{src:e.imgUrl,alt:""}})]),t._v(" "),a("img",{staticClass:"table-img",attrs:{slot:"reference",src:e.imgUrl,alt:""},slot:"reference"})])]})],2)]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"点赞数","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.thumbsUpCount||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"转发数","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.tranferCount||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"发布时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"219",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toSetTop(e.row.materialId,e.row.topFlag)}}},[t._v(t._s(1==e.row.topFlag?"取消置顶":"置顶"))]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.showDetail(e.$index,e.row)}}},[t._v("查看")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.showRecord(e.$index,e.row)}}},[t._v("记录")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toDel(e.$index,e.row)}}},[t._v("删除")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)],1),t._v(" "),a("material-record",{attrs:{materialId:t.materialId,detailShow:t.detailShow},on:{hideDetailDialog:t.hideDetailDialog}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"condition-tip m-b-20"},[e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-1890ff"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("纷享素材内容自定义,包含文字内容及图片编辑")])])])])}]};var d=a("VU/8")(c,u,!1,function(t){a("CV99")},"data-v-6358527c",null);e.default=d.exports},VPsm:function(t,e){},joH8:function(t,e,a){"use strict";var i=a("P9l9"),n=a("Ch4/"),o=a("PI0u"),s={name:"material-record",props:{detailShow:{type:Boolean,default:!1},materialId:{type:String,default:""}},data:function(){return{customDialog:!1,activeName:"first",tableData:[],conditionObj:{searchInput:"",materialId:this.materialId},currentPage:1,pageSize:5,total:0}},methods:{handleTab:function(){this.conditionObj.searchInput="",this.currentPage=1,this.getTableList()},toInput:Object(o.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},handleClose:function(t){t(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideDetailDialog")},getTableList:function(t){var e=this,a={materialId:e.conditionObj.materialId,imgTextTitle:e.conditionObj.searchInput||"",relatedType:"first"==e.activeName?2:1,pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand};Object(i.a)("/haoban-app-material-web/material-log",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.total,!1;n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{detailShow:function(t,e){this.customDialog=t},materialId:function(t,e){t&&(this.conditionObj.materialId=t,this.currentPage=1,this.getTableList())}},mounted:function(){this.customDialog=this.detailShow,this.materialId&&(this.conditionObj.materialId=this.materialId,this.currentPage=1,this.getTableList())}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"记录",visible:t.customDialog,width:"739px","before-close":t.handleClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"edit-dialog-body"},[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleTab},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"点赞记录",name:"first"}},[a("div",{staticClass:"m-b-20 flex"},[a("el-input",{staticClass:"w-223",attrs:{placeholder:"请输入姓名/手机号/code","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}}),t._v(" "),a("span",{staticClass:"p-l-10 l-h-32"},[t._v("共"+t._s(t.total)+"条点赞记录")])],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,height:"332"}},[a("el-table-column",{attrs:{label:"点赞人",width:"150","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headImg?a("img",{attrs:{src:e.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"text-ellipsis"},[t._v(t._s(e.row.userName))]),t._v(" "),a("span",{staticClass:"font-13 text-ellipsis"},[t._v(t._s(e.row.storeName))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"手机号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.phoneNumber||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"点赞时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])})],1)],1),t._v(" "),a("el-tab-pane",{attrs:{label:"转发记录",name:"second"}},[a("div",{staticClass:"m-b-20 flex"},[a("el-input",{staticClass:"w-223",attrs:{placeholder:"请输入姓名/手机号/code","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}}),t._v(" "),a("span",{staticClass:"p-l-10 l-h-32"},[t._v("共"+t._s(t.total)+"条转发记录")])],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,height:"332"}},[a("el-table-column",{attrs:{label:"转发人",width:"150","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headImg?a("img",{attrs:{src:e.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"text-ellipsis"},[t._v(t._s(e.row.userName))]),t._v(" "),a("span",{staticClass:"font-13 text-ellipsis"},[t._v(t._s(e.row.storeName))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"手机号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.phoneNumber||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"转发时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])})],1)],1)],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])],1)},staticRenderFns:[]};var r=a("VU/8")(s,l,!1,function(t){a("VPsm")},"data-v-1ed80b70",null);e.a=r.exports}});
\ 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],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:"2baca21202cf454cd7b0",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:"7d0d73ce8d6fd16321e6",16:"f483f95dbac654c7de5a",17:"ff6edf624b982c354977",18:"3fd10a3380b9d3fddb35",19:"d7d09ae4564d64842009",20:"455fd80bd8af15457c57",21:"c1b5e15e28768af52654",22:"2a873e819c6c369d5cd1",23:"d2380bf3c276e741313b",24:"56085041ae784faf3c32",25:"e23f42a6b2180b63c129",26:"606394f2e20eb1a455fa",27:"a03cfb5cd6c9069b179f",28:"70cb3f87bd69723dbd41",29:"c5bb15e8e1bd17cdc0f7",30:"b5b324cb1a4e5fe6a395",31:"20f69d688df3827843c5",32:"0c7863fa05e5c75053c3",33:"f4e32fc6846aa744ee48",34:"0fb2eb67d47b9ecbd519",35:"e64c33855b455bcdd9a2",36:"7b2e2fedc166438ee6b0",37:"8dc3e1f0f3e416135406",38:"9f4a46d2ce3c9477a06b",39:"b33ea830129fb895dd77",40:"b0211e85af913b5307f8",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}}([]); !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:"2baca21202cf454cd7b0",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:"7d0d73ce8d6fd16321e6",16:"f483f95dbac654c7de5a",17:"ff6edf624b982c354977",18:"3af99626b95ca7fa51ab",19:"d7d09ae4564d64842009",20:"455fd80bd8af15457c57",21:"c1b5e15e28768af52654",22:"2a873e819c6c369d5cd1",23:"d2380bf3c276e741313b",24:"56085041ae784faf3c32",25:"e23f42a6b2180b63c129",26:"606394f2e20eb1a455fa",27:"4a1c52078d154a141023",28:"70cb3f87bd69723dbd41",29:"c5bb15e8e1bd17cdc0f7",30:"b5b324cb1a4e5fe6a395",31:"20f69d688df3827843c5",32:"0c7863fa05e5c75053c3",33:"f4e32fc6846aa744ee48",34:"0fb2eb67d47b9ecbd519",35:"e64c33855b455bcdd9a2",36:"7b2e2fedc166438ee6b0",37:"8dc3e1f0f3e416135406",38:"9f4a46d2ce3c9477a06b",39:"b33ea830129fb895dd77",40:"b0211e85af913b5307f8",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,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2018-12-06 13:44:22 * @Date: 2018-12-06 13:44:22
* @LastEditors : 无尘 * @LastEditors : 无尘
* @LastEditTime : 2019-12-24 11:02:57 * @LastEditTime : 2019-12-25 14:53:11
--> -->
<!-- <!--
多个上传组件 多个上传组件
...@@ -248,6 +248,8 @@ export default { ...@@ -248,6 +248,8 @@ export default {
}, },
// 删除图片 // 删除图片
deleteImage(i) { deleteImage(i) {
/* eslint-disable */
console.log(that.disabled)
if (that.disabled) { if (that.disabled) {
return false; return false;
} }
......
...@@ -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-24 11:37:54 * @LastEditTime : 2019-12-25 14:50:19
--> -->
<!-- <!--
...@@ -216,7 +216,7 @@ export default { ...@@ -216,7 +216,7 @@ export default {
*/ */
toCreate() { toCreate() {
const that = this; const that = this;
that.$router.push('/newEnjoy'); that.$router.push(`/newEnjoy?appIcon=${that.$route.query.appIcon}`);
}, },
/** /**
* 设置置顶 * 设置置顶
......
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