Commit c9cb4962 by 无尘

fix: 修改素材

parent 49035221
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.ad5d587cb23b468a4f2da46b2c806c8d.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.df83c28a7b20a3d783c1.js></script><script type=text/javascript src=./static/js/vendor.0000e68e65e4a9dc3840.js></script><script type=text/javascript src=./static/js/app.fd9c9e8a7bb33a982171.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.1067d005345d5d35cde82f0b9d198f02.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.dee40cc70bc071f5f77d.js></script><script type=text/javascript src=./static/js/vendor.0000e68e65e4a9dc3840.js></script><script type=text/javascript src=./static/js/app.fd9c9e8a7bb33a982171.js></script></body></html>
\ No newline at end of file \ No newline at end of file
webpackJsonp([14],{AVrv:function(e,t){},FFFL:function(e,t){e.exports="data:image/jpeg;base64,iVBORw0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D0ocEesZBVu5hHWUQ7XtXpxVXOcZIjiFJdn7lEsIZ+iwJ0AP0gx82NUvD5QqnTwjr08LxFGCYaugYuJC9M4zlfEFLgTcruI8PUugG0ZsC2j9UOiTwkhkOcl4iSDqSuYjh0MB8fxrPYcCtyJuT/OtFgn4AIwjPpYTZt9QCrOkaY50qyAY6qYjl14bjf7SO4aBe6E+UGKIMrhhyk0TYVt1rPePoqhK87rW1GTDHnBcDFxMBqYvSzPeg8KHEFRVojTAn6QYhVmPw7wqqqyuU5LftUMKABUrAJjFVhVoSgZiqK+zWY6duDa+ta936eCAkce4UIginOEcY40Zwjj/Efgmr7WB1HrvzgX9a2tFUfFOTzHgGlocCwNjnW6IXuIAkdeVC8FOVj14OvmOqiq4r8HUJKgKDIMXYGuKdBV5STP6f2R49x7JTujyDIUXcZpbGnsH/0IIqRFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RF/x8qjTga7LYI7gAAAABJRU5ErkJggg=="},NajC:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("mvHQ"),r=a.n(i),l=a("Gu7T"),o=a.n(l),s=a("Ke24"),n=a("Ie7z"),c=a("c4uw"),d=a("vRJf"),u=a("P9l9"),m=a("Ch4/"),g=a("PI0u"),h={name:"use-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:{toInput:Object(g.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleClose:function(e){e(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideDetailDialog")},getTableList:function(e){var t=this,a={imgTextMaterialId:t.conditionObj.materialId,imgTextTitle:t.conditionObj.searchInput||"",relatedType:4,pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(u.a)("/haoban-app-material-web/material-log",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.total,!1;m.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{detailShow:function(e,t){this.customDialog=e},materialId:function(e,t){e&&(this.conditionObj.materialId=e,this.currentPage=1,this.getTableList())}},mounted:function(){this.customDialog=this.detailShow,this.materialId&&(this.conditionObj.materialId=this.materialId,this.currentPage=1,this.getTableList())}},f={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"记录",visible:e.customDialog,width:"739px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"edit-dialog-body"},[a("div",{staticClass:"m-b-20 flex"},[a("el-input",{staticClass:"w-203",attrs:{placeholder:"请输入标题","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}})],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,height:"332"}},[a("el-table-column",{attrs:{label:"发布人",width:"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.userName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"标题","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.imgTextTitle||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"发布时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])],1)},staticRenderFns:[]};var p=a("VU/8")(h,f,!1,function(e){a("AVrv")},"data-v-294e8f48",null).exports,v=a("l46T"),I=a("Kkt8"),S=a("3E4D"),b={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:s.a,vueSelectStore:n.a,vueSelectEmployee:c.a,materialPreview:d.a,useRecord:p,limitInput:v.a,limitTextarea:I.a},data:function(){return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"2",topMenuData:[{id:"1",name:"图文素材",path:"/imageText?appIcon="+this.$route.query.appIcon},{id:"2",name:"选择图文"}],tableData:[],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},defaultImg:a("FFFL"),currentPage:1,pageSize:6,total:0,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId,userId:JSON.parse(localStorage.getItem("userInfo")).userId,formData:{materialId:"",imageTextWechatId:"",imageTextGicId:"",titleName:"",imageUrl:"",imageTextUrl:"",rangeList:[],materialTitle:"",materialContent:"",topFlag:!1},rules:{imageTextWechatId:[{required:!0,message:"请选择图文",trigger:"change"}],materialTitle:[{required:!0,message:"请请输入素材标题",trigger:"blur"}],materialContent:[{required:!0,message:"请请输入发送内容",trigger:"blur"}],rangeList:[{validator:function(e,t,a){if(""==t||!t.length)return a(new Error("请选择选择行政架构或门店架构"));a()},trigger:"change"}]},previewVisible:!1,materialPreviewData:{},detailShow:!1,imageTextWechatId:""}},methods:{showRecord:function(e){if(!e.useCount)return!1;this.detailShow=!0,this.imageTextWechatId=e.imageTextWechatId},hideDetailDialog:function(){this.detailShow=!1,this.imageTextWechatId=""},showPreviewDetail:function(e){window.open(e.mediaUrl)},submitForm:function(e,t){var a=this;a.formData.rangeList=[].concat(o()(a.defaultStoreList),o()(a.defaultSelection)),a.$refs[e].validate(function(e){e&&a.postSaveCard(t)})},postSaveCard:function(e){var t=this,a=[];t.formData.rangeList.forEach(function(e){a.push({groupId:2==e.type?e.groupId:"",storeId:3==e.type?e.storeId:"",storeFlag:e.isStoreGroup})});var i={enterpriseId:t.enterpriseId,imageTextWechatId:t.formData.imageTextWechatId,imageTextGicId:t.formData.imageTextGicId,materialContent:t.formData.materialContent,imageTextUrl:t.formData.imageTextUrl,materialTitle:t.formData.materialTitle,rangeListStr:r()(a),topFlag:t.formData.topFlag?1:0,relatedType:1,brandId:t.brandId,userId:t.userId};Object(u.e)("/haoban-app-material-web/material-add",i).then(function(a){var i=a.data;1==i.errorCode&&(S.a.showmsg("新建成功","success"),e?(t.formData={materialId:"",imageTextWechatId:"",imageTextGicId:"",titleName:"",imageUrl:"",imageTextUrl:"",rangeList:[],materialTitle:"",materialContent:"",topFlag:!1},t.defaultStoreList=[],t.defaultSelection=[]):t.$router.push("/imageText?appIcon="+t.$route.query.appIcon)),m.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},previewData:function(e){var t=this;t.formData.rangeList=[].concat(o()(t.defaultStoreList),o()(t.defaultSelection)),t.$refs[e].validate(function(e){e&&(t.tableData.forEach(function(e){e.imageTextWechatId==t.formData.imageTextWechatId&&(t.formData.imageUrl=e.imageUrl,t.formData.titleName=e.titleName,t.formData.mediaUrl=e.mediaUrl)}),t.materialPreviewData=t.formData,t.previewVisible=!0)})},toReturn:function(){var e=this;e.$confirm("是否确认返回,返回后当前页面内容将丢失","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$router.push("/imageText?appIcon="+e.$route.query.appIcon)}).catch(function(){})},changeId:function(e,t){this.formData.imageTextWechatId=e,this.formData.imageTextGicId=t.imageTextId},toInput:Object(g.a)(function(e,t){this.currentPage=1,this.getTableList()},200),clearInput:function(){this.currentPage=1,this.getTableList()},showDialogLayer:function(e,t){return!this.$route.query.materialId&&(this.selectType=e,this.changed=e,"store"===e?(this.defaultStoreList=t,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1,openNextBool:!0})):(this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1,openNextBool:!0},void(this.defaultSelection=t)))},handleSelectedList:function(e){"store"===this.selectType?this.defaultStoreList=e:this.defaultSelection=e,this.formData.rangeList=[].concat(o()(this.defaultStoreList),o()(this.defaultSelection))},delDepart:function(e,t,a){if(this.$route.query.materialId)return!1;t.splice(e,1),this.formData.rangeList=[].concat(o()(this.defaultStoreList),o()(this.defaultSelection))},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getImageData:function(){var e=this,t={materialId:e.$route.query.materialId,brandId:e.brandId};Object(u.a)("/haoban-app-material-web/material-detail",t).then(function(t){var a=t.data;if(1==a.errorCode){var i=[],r=[];return a.result.rangeVOList&&a.result.rangeVOList.forEach(function(e){e.groupId=2==e.type?e.id:"",e.storeId=3==e.type?e.id:"",e.isStoreGroup=e.storeFlag,1==e.storeFlag?i.push(e):r.push(e)}),e.formData={materialId:a.result.materialId,imageTextWechatId:a.result.imageTextWechatId,imageTextUrl:a.result.imageTextUrl,titleName:"",imageUrl:"",materialTitle:a.result.materialTitle,materialContent:a.result.materialContent,topFlag:1==a.result.topFlag,rangeList:a.result.rangeVOList,createTime:a.result.createTime},e.defaultStoreList=i||[],e.defaultSelection=r||[],!1}m.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getTableList:function(e){var t=this,a={title:t.searchInput||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(u.a)("/haoban-app-material-web/wechat-material-detail",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.total,t.$route.query.materialId&&t.getImageData(),!1;m.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.$emit("showTab","1"),this.brandId&&this.getTableList()}},w={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"chat-log boder-box"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"new-card-body"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"选择图文:",prop:"imageTextWechatId"}},[a("div",{staticClass:"search-div"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入图文标题",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchInput);var a}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("div",{staticClass:"chat-log-content boder-box m-t-20"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{label:"",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-radio",{attrs:{disabled:!!e.$route.query.materialId,label:t.row.imageTextWechatId},on:{change:function(a){e.changeId(a,t.row)}},model:{value:e.formData.imageTextWechatId,callback:function(t){e.$set(e.formData,"imageTextWechatId",t)},expression:"formData.imageTextWechatId"}},[e._v(e._s(""))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"imageUrl",label:"图片","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"cell"},[a("img",{staticClass:"img-40",attrs:{src:t.row.imageUrl?t.row.imageUrl:e.defaultImg,alt:""}})])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"titleName",label:"图文标题","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"cell color-1890ff cursor-pointer",on:{click:function(a){e.showPreviewDetail(t.row)}}},[e._v(e._s(t.row.titleName||"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"作者","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.authorName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"storeMode",label:"使用记录","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"cell color-1890ff cursor-pointer",on:{click:function(a){e.showRecord(t.row)}}},[e._v(e._s(t.row.useCount||"--"))])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-size":e.pageSize,layout:" prev, pager, next",total:e.total},on:{"current-change":e.handleCurrentChange}})],1):e._e()],1)]),e._v(" "),a("el-form-item",{staticClass:"input-item is-required",attrs:{label:"发送范围:",prop:"rangeList"}},[a("div",{staticClass:"form-item-tip fonr-14 color-909399"},[e._v("下面两项可二选一,非全选。可选择行政架构或门店架构")]),e._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(t){e.showDialogLayer("depart",e.defaultSelection)}}},[e.defaultSelection.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc p-l-10"},[e._v("请选择行政架构")]),e._v(" "),a("div",{staticClass:"el-select__tags"},[a("span",[e._l(e.defaultSelection,function(t,i){return[a("span",{key:i,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(i,e.defaultSelection,"depart")}}})])]})],2)])])])])]),e._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(t){e.showDialogLayer("store",e.defaultStoreList)}}},[e.defaultStoreList.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc p-l-10"},[e._v("请选择门店架构")]),e._v(" "),a("div",{staticClass:"el-select__tags"},[a("span",[e._l(e.defaultStoreList,function(t,i){return[a("span",{key:i,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(i,e.defaultStoreList,"store")}}})])]})],2)])])])])])]),e._v(" "),a("el-form-item",{attrs:{label:"发送内容标题:",prop:"materialTitle"}},[a("limitInput",{attrs:{disflag:!!e.$route.query.materialId,inputWidth:320,inputValue:e.formData.materialTitle,holder:"请输入素材标题",getByType:"word",maxLength:15},on:{"update:inputValue":function(t){e.$set(e.formData,"materialTitle",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"发送内容:",prop:"materialContent"}},[a("limitTextarea",{attrs:{disInput:!!e.$route.query.materialId,inputWidth:320,inputValue:e.formData.materialContent,holder:"请输入素材内容",maxLength:1500},on:{"update:inputValue":function(t){e.$set(e.formData,"materialContent",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"更多设置:",prop:""}},[a("div",[a("el-checkbox",{attrs:{disabled:!!e.$route.query.materialId},model:{value:e.formData.topFlag,callback:function(t){e.$set(e.formData,"topFlag",t)},expression:"formData.topFlag"}},[e._v("置顶")])],1)]),e._v(" "),a("el-form-item",[a("el-button",{on:{click:e.toReturn}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.previewData("ruleForm")}}},[e._v("预览")]),e._v(" "),a("el-button",{attrs:{disabled:!!e.$route.query.materialId,type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("发布")]),e._v(" "),a("el-button",{attrs:{disabled:!!e.$route.query.materialId,type:"primary"},on:{click:function(t){e.submitForm("ruleForm","flag")}}},[e._v("发布并添加下一个")])],1)],1)],1)],1),e._v(" "),a("vue-select-employee",{attrs:{appScene:e.appScene,defaultSelection:e.defaultSelection,onlyPerson:e.onlyPerson,treeSet:e.treeSet,changed:e.changed},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"group-store",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),a("material-preview",{ref:"materialPreview",attrs:{materialPreviewData:e.materialPreviewData},model:{value:e.previewVisible,callback:function(t){e.previewVisible=t},expression:"previewVisible"}}),e._v(" "),a("use-record",{attrs:{materialId:e.imageTextWechatId,detailShow:e.detailShow},on:{hideDetailDialog:e.hideDetailDialog}})],1)},staticRenderFns:[]};var x=a("VU/8")(b,w,!1,function(e){a("fd9k")},"data-v-31b78f81",null);t.default=x.exports},fd9k:function(e,t){},vRJf:function(e,t,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(e,t){e.innerHTML=t.value},update:function(e,t){e.innerHTML=t.value}}},data:function(){return{materialData:{materialId:"",imageTextWechatId:"",imageTextGicId:"",rangeList:[],imgUrlList:[],mediaUrl:"",materialTitle:"",materialContent:"",topFlag:!1}}},methods:{toUrl:function(e){window.open(e)},closeDialog:function(){this.$emit("input",!1),this.$emit("closePre")}},watch:{value:function(e,t){this.materialData=JSON.parse(r()(this.materialPreviewData))},materialPreviewData:function(e,t){this.materialData=JSON.parse(r()(e))}},mounted:function(){this.materialData=JSON.parse(r()(this.materialPreviewData))}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.value?a("div",{staticClass:"qr-dialog-content",staticStyle:{opacity:"1"}},[a("div",{staticClass:"qr-mask",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}}),e._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"},[e._v(e._s(e.materialData.materialTitle))]),e._v(" "),a("div",{staticClass:"notice-date m-t-10 flex flex-space-between"},[a("div",{staticClass:"notice-date-left font-10 color-88949C"},[e._v(e._s(e._f("timeStampToYmd")(e.materialData.materialId?e.materialData.createTime:(new Date).getTime())))]),e._v(" "),a("div",{staticClass:"notice-date-right font-10 color-4d7fd0"})]),e._v(" "),a("div",{directives:[{name:"htmlContent",rawName:"v-htmlContent",value:e.materialData.materialContent,expression:"materialData.materialContent"}],staticClass:"notice-body border-box font-14 color-222"}),e._v(" "),e.materialData.imgUrlList&&e.materialData.imgUrlList.length?a("div",{staticClass:"img-list-wrap"},[a("ul",{staticClass:"flex flex-wrap"},e._l(e.materialData.imgUrlList,function(e,t){return a("li",{key:t+"img",staticClass:"border-box flex flex-align-center flex-pack-center"},[a("img",{attrs:{src:e.imgUrl,alt:""}})])}))]):e._e(),e._v(" "),e.materialData.imageTextWechatId?a("div",{staticClass:"image-text-link"},[a("div",{staticClass:"flex cursor-pointer",on:{click:function(t){e.toUrl(e.materialData.mediaUrl)}}},[a("div",{staticClass:"flex-left-img flex flex-align-center flex-pack-center"},[a("img",{attrs:{src:e.materialData.imageUrl,alt:""}})]),e._v(" "),a("div",{staticClass:"flex-right-title border-box"},[a("div",{staticClass:"title-content font-14 color-606266"},[e._v(e._s(e.materialData.titleName))])])])]):e._e()])]),e._v(" "),a("div",{staticClass:"qr-dialog__hd"},[a("i",{staticClass:"el-icon-plus",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}})])]):e._e()},staticRenderFns:[]};var s=a("VU/8")(l,o,!1,function(e){a("xELH")},"data-v-91610bd2",null);t.a=s.exports},xELH:function(e,t){}});
\ No newline at end of file
webpackJsonp([14],{FFFL:function(e,t){e.exports="data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAADcCAYAAAAbWs+BAAAbLklEQVR4nO3d2XLjSJYm4B/7SnCRqCUyMrpresy6uq9q+v0foy/KrKcqayo2SVxAYl8c7nMBKlISIWVIIkGAPJ9ZmtIy0yJckfzlDsfx41KcFgKEkFbIhx4AIaeEAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhw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C8FOVj14OvmOqiq4r8HUJKgKDIMXYGuKdBV5STP6f2R49x7JTujyDIUXcZpbGnsH/0IIqRFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RF/x8qjTga7LYI7gAAAABJRU5ErkJggg=="},NajC:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("mvHQ"),r=a.n(i),l=a("Gu7T"),o=a.n(l),s=a("Ke24"),n=a("Ie7z"),c=a("c4uw"),d=a("vRJf"),u=a("P9l9"),m=a("Ch4/"),g=a("PI0u"),h={name:"use-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:{toInput:Object(g.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleClose:function(e){e(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideDetailDialog")},getTableList:function(e){var t=this,a={materialId:t.conditionObj.materialId,imgTextTitle:t.conditionObj.searchInput||"",relatedType:4,pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(u.a)("/haoban-app-material-web/material-log",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.total,!1;m.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{detailShow:function(e,t){this.customDialog=e},materialId:function(e,t){e&&(this.conditionObj.materialId=e,this.currentPage=1,this.getTableList())}},mounted:function(){this.customDialog=this.detailShow,this.materialId&&(this.conditionObj.materialId=this.materialId,this.currentPage=1,this.getTableList())}},f={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"记录",visible:e.customDialog,width:"739px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"edit-dialog-body"},[a("div",{staticClass:"m-b-20 flex"},[a("el-input",{staticClass:"w-203",attrs:{placeholder:"请输入标题","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}})],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,height:"332"}},[a("el-table-column",{attrs:{label:"发布人",width:"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.userName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"标题","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.phoneNumber||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"发布时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])],1)},staticRenderFns:[]};var p=a("VU/8")(h,f,!1,function(e){a("TjhY")},"data-v-28498945",null).exports,v=a("l46T"),I=a("Kkt8"),S=a("3E4D"),b={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:s.a,vueSelectStore:n.a,vueSelectEmployee:c.a,materialPreview:d.a,useRecord:p,limitInput:v.a,limitTextarea:I.a},data:function(){return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"2",topMenuData:[{id:"1",name:"图文素材",path:"/imageText?appIcon="+this.$route.query.appIcon},{id:"2",name:"选择图文"}],tableData:[],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},defaultImg:a("FFFL"),currentPage:1,pageSize:6,total:0,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId,userId:JSON.parse(localStorage.getItem("userInfo")).userId,formData:{materialId:"",imageTextWechatId:"",imageTextGicId:"",titleName:"",imageUrl:"",imageTextUrl:"",rangeList:[],materialTitle:"",materialContent:"",topFlag:!1},rules:{imageTextWechatId:[{required:!0,message:"请选择图文",trigger:"change"}],materialTitle:[{required:!0,message:"请请输入素材标题",trigger:"blur"}],materialContent:[{required:!0,message:"请请输入发送内容",trigger:"blur"}],rangeList:[{validator:function(e,t,a){if(""==t||!t.length)return a(new Error("请选择选择行政架构或门店架构"));a()},trigger:"change"}]},previewVisible:!1,materialPreviewData:{},detailShow:!1,imageTextWechatId:""}},methods:{showRecord:function(e){if(!e.useCount)return!1;this.detailShow=!0,this.imageTextWechatId=e.imageTextWechatId},hideDetailDialog:function(){this.detailShow=!1,this.imageTextWechatId=""},showPreviewDetail:function(e){window.open(e.mediaUrl)},submitForm:function(e,t){var a=this;a.formData.rangeList=[].concat(o()(a.defaultStoreList),o()(a.defaultSelection)),a.$refs[e].validate(function(e){e&&a.postSaveCard(t)})},postSaveCard:function(e){var t=this,a=[];t.formData.rangeList.forEach(function(e){a.push({groupId:2==e.type?e.groupId:"",storeId:3==e.type?e.storeId:"",storeFlag:e.isStoreGroup})});var i={enterpriseId:t.enterpriseId,imageTextWechatId:t.formData.imageTextWechatId,imageTextGicId:t.formData.imageTextGicId,materialContent:t.formData.materialContent,imageTextUrl:t.formData.imageTextUrl,materialTitle:t.formData.materialTitle,rangeListStr:r()(a),topFlag:t.formData.topFlag?1:0,relatedType:1,brandId:t.brandId,userId:t.userId};Object(u.e)("/haoban-app-material-web/material-add",i).then(function(a){var i=a.data;1==i.errorCode&&(S.a.showmsg("新建成功","success"),e?(t.formData={materialId:"",imageTextWechatId:"",imageTextGicId:"",titleName:"",imageUrl:"",imageTextUrl:"",rangeList:[],materialTitle:"",materialContent:"",topFlag:!1},t.defaultStoreList=[],t.defaultSelection=[]):t.$router.push("/imageText?appIcon="+t.$route.query.appIcon)),m.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},previewData:function(e){var t=this;t.formData.rangeList=[].concat(o()(t.defaultStoreList),o()(t.defaultSelection)),t.$refs[e].validate(function(e){e&&(t.tableData.forEach(function(e){e.imageTextWechatId==t.formData.imageTextWechatId&&(t.formData.imageUrl=e.imageUrl,t.formData.titleName=e.titleName,t.formData.mediaUrl=e.mediaUrl)}),t.materialPreviewData=t.formData,t.previewVisible=!0)})},toReturn:function(){var e=this;e.$confirm("是否确认返回,返回后当前页面内容将丢失","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$router.push("/imageText?appIcon="+e.$route.query.appIcon)}).catch(function(){})},changeId:function(e,t){this.formData.imageTextWechatId=e,this.formData.imageTextGicId=t.imageTextId},toInput:Object(g.a)(function(e,t){this.currentPage=1,this.getTableList()},200),clearInput:function(){this.currentPage=1,this.getTableList()},showDialogLayer:function(e,t){return!this.$route.query.materialId&&(this.selectType=e,this.changed=e,"store"===e?(this.defaultStoreList=t,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1,openNextBool:!0})):(this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1,openNextBool:!0},void(this.defaultSelection=t)))},handleSelectedList:function(e){"store"===this.selectType?this.defaultStoreList=e:this.defaultSelection=e,this.formData.rangeList=[].concat(o()(this.defaultStoreList),o()(this.defaultSelection))},delDepart:function(e,t,a){if(this.$route.query.materialId)return!1;t.splice(e,1),this.formData.rangeList=[].concat(o()(this.defaultStoreList),o()(this.defaultSelection))},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getImageData:function(){var e=this,t={materialId:e.$route.query.materialId,brandId:e.brandId};Object(u.a)("/haoban-app-material-web/material-detail",t).then(function(t){var a=t.data;if(1==a.errorCode){var i=[],r=[];return a.result.rangeVOList&&a.result.rangeVOList.forEach(function(e){e.groupId=2==e.type?e.id:"",e.storeId=3==e.type?e.id:"",e.isStoreGroup=e.storeFlag,1==e.storeFlag?i.push(e):r.push(e)}),e.formData={materialId:a.result.materialId,imageTextWechatId:a.result.imageTextWechatId,imageTextUrl:a.result.imageTextUrl,titleName:"",imageUrl:"",materialTitle:a.result.materialTitle,materialContent:a.result.materialContent,topFlag:1==a.result.topFlag,rangeList:a.result.rangeVOList,createTime:a.result.createTime},e.defaultStoreList=i||[],e.defaultSelection=r||[],!1}m.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getTableList:function(e){var t=this,a={title:t.searchInput||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(u.a)("/haoban-app-material-web/wechat-material-detail",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.total,t.$route.query.materialId&&t.getImageData(),!1;m.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.$emit("showTab","1"),this.brandId&&this.getTableList()}},w={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"chat-log boder-box"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"new-card-body"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"选择图文:",prop:"imageTextWechatId"}},[a("div",{staticClass:"search-div"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入图文标题",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchInput);var a}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("div",{staticClass:"chat-log-content boder-box m-t-20"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{label:"",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-radio",{attrs:{disabled:!!e.$route.query.materialId,label:t.row.imageTextWechatId},on:{change:function(a){e.changeId(a,t.row)}},model:{value:e.formData.imageTextWechatId,callback:function(t){e.$set(e.formData,"imageTextWechatId",t)},expression:"formData.imageTextWechatId"}},[e._v(e._s(""))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"imageUrl",label:"图片","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"cell"},[a("img",{staticClass:"img-40",attrs:{src:t.row.imageUrl?t.row.imageUrl:e.defaultImg,alt:""}})])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"titleName",label:"图文标题","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"cell color-1890ff cursor-pointer",on:{click:function(a){e.showPreviewDetail(t.row)}}},[e._v(e._s(t.row.titleName||"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"作者","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.authorName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"storeMode",label:"使用记录","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"cell color-1890ff cursor-pointer",on:{click:function(a){e.showRecord(t.row)}}},[e._v(e._s(t.row.useCount||"--"))])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-size":e.pageSize,layout:" prev, pager, next",total:e.total},on:{"current-change":e.handleCurrentChange}})],1):e._e()],1)]),e._v(" "),a("el-form-item",{staticClass:"input-item is-required",attrs:{label:"发送范围:",prop:"rangeList"}},[a("div",{staticClass:"form-item-tip fonr-14 color-909399"},[e._v("下面两项可二选一,非全选。可选择行政架构或门店架构")]),e._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(t){e.showDialogLayer("depart",e.defaultSelection)}}},[e.defaultSelection.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc p-l-10"},[e._v("请选择行政架构")]),e._v(" "),a("div",{staticClass:"el-select__tags"},[a("span",[e._l(e.defaultSelection,function(t,i){return[a("span",{key:i,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(i,e.defaultSelection,"depart")}}})])]})],2)])])])])]),e._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(t){e.showDialogLayer("store",e.defaultStoreList)}}},[e.defaultStoreList.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc p-l-10"},[e._v("请选择门店架构")]),e._v(" "),a("div",{staticClass:"el-select__tags"},[a("span",[e._l(e.defaultStoreList,function(t,i){return[a("span",{key:i,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(i,e.defaultStoreList,"store")}}})])]})],2)])])])])])]),e._v(" "),a("el-form-item",{attrs:{label:"发送内容标题:",prop:"materialTitle"}},[a("limitInput",{attrs:{disflag:!!e.$route.query.materialId,inputWidth:320,inputValue:e.formData.materialTitle,holder:"请输入素材标题",getByType:"word",maxLength:15},on:{"update:inputValue":function(t){e.$set(e.formData,"materialTitle",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"发送内容:",prop:"materialContent"}},[a("limitTextarea",{attrs:{disInput:!!e.$route.query.materialId,inputWidth:320,inputValue:e.formData.materialContent,holder:"请输入素材内容",maxLength:1500},on:{"update:inputValue":function(t){e.$set(e.formData,"materialContent",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"更多设置:",prop:""}},[a("div",[a("el-checkbox",{attrs:{disabled:!!e.$route.query.materialId},model:{value:e.formData.topFlag,callback:function(t){e.$set(e.formData,"topFlag",t)},expression:"formData.topFlag"}},[e._v("置顶")])],1)]),e._v(" "),a("el-form-item",[a("el-button",{on:{click:e.toReturn}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.previewData("ruleForm")}}},[e._v("预览")]),e._v(" "),a("el-button",{attrs:{disabled:!!e.$route.query.materialId,type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("发布")]),e._v(" "),a("el-button",{attrs:{disabled:!!e.$route.query.materialId,type:"primary"},on:{click:function(t){e.submitForm("ruleForm","flag")}}},[e._v("发布并添加下一个")])],1)],1)],1)],1),e._v(" "),a("vue-select-employee",{attrs:{appScene:e.appScene,defaultSelection:e.defaultSelection,onlyPerson:e.onlyPerson,treeSet:e.treeSet,changed:e.changed},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"group-store",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),a("material-preview",{ref:"materialPreview",attrs:{materialPreviewData:e.materialPreviewData},model:{value:e.previewVisible,callback:function(t){e.previewVisible=t},expression:"previewVisible"}}),e._v(" "),a("use-record",{attrs:{materialId:e.imageTextWechatId,detailShow:e.detailShow},on:{hideDetailDialog:e.hideDetailDialog}})],1)},staticRenderFns:[]};var x=a("VU/8")(b,w,!1,function(e){a("fd9k")},"data-v-31b78f81",null);t.default=x.exports},TjhY:function(e,t){},fd9k:function(e,t){},vRJf:function(e,t,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(e,t){e.innerHTML=t.value},update:function(e,t){e.innerHTML=t.value}}},data:function(){return{materialData:{materialId:"",imageTextWechatId:"",imageTextGicId:"",rangeList:[],imgUrlList:[],mediaUrl:"",materialTitle:"",materialContent:"",topFlag:!1}}},methods:{toUrl:function(e){window.open(e)},closeDialog:function(){this.$emit("input",!1),this.$emit("closePre")}},watch:{value:function(e,t){this.materialData=JSON.parse(r()(this.materialPreviewData))},materialPreviewData:function(e,t){this.materialData=JSON.parse(r()(e))}},mounted:function(){this.materialData=JSON.parse(r()(this.materialPreviewData))}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.value?a("div",{staticClass:"qr-dialog-content",staticStyle:{opacity:"1"}},[a("div",{staticClass:"qr-mask",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}}),e._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"},[e._v(e._s(e.materialData.materialTitle))]),e._v(" "),a("div",{staticClass:"notice-date m-t-10 flex flex-space-between"},[a("div",{staticClass:"notice-date-left font-10 color-88949C"},[e._v(e._s(e._f("timeStampToYmd")(e.materialData.materialId?e.materialData.createTime:(new Date).getTime())))]),e._v(" "),a("div",{staticClass:"notice-date-right font-10 color-4d7fd0"})]),e._v(" "),a("div",{directives:[{name:"htmlContent",rawName:"v-htmlContent",value:e.materialData.materialContent,expression:"materialData.materialContent"}],staticClass:"notice-body border-box font-14 color-222"}),e._v(" "),e.materialData.imgUrlList&&e.materialData.imgUrlList.length?a("div",{staticClass:"img-list-wrap"},[a("ul",{staticClass:"flex flex-wrap"},e._l(e.materialData.imgUrlList,function(e,t){return a("li",{key:t+"img",staticClass:"border-box flex flex-align-center flex-pack-center"},[a("img",{attrs:{src:e.imgUrl,alt:""}})])}))]):e._e(),e._v(" "),e.materialData.imageTextWechatId?a("div",{staticClass:"image-text-link"},[a("div",{staticClass:"flex cursor-pointer",on:{click:function(t){e.toUrl(e.materialData.mediaUrl)}}},[a("div",{staticClass:"flex-left-img flex flex-align-center flex-pack-center"},[a("img",{attrs:{src:e.materialData.imageUrl,alt:""}})]),e._v(" "),a("div",{staticClass:"flex-right-title border-box"},[a("div",{staticClass:"title-content font-14 color-606266"},[e._v(e._s(e.materialData.titleName))])])])]):e._e()])]),e._v(" "),a("div",{staticClass:"qr-dialog__hd"},[a("i",{staticClass:"el-icon-plus",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}})])]):e._e()},staticRenderFns:[]};var s=a("VU/8")(l,o,!1,function(e){a("xELH")},"data-v-91610bd2",null);t.a=s.exports},xELH:function(e,t){}});
\ No newline at end of file
webpackJsonp([39],{"/n/x":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("mvHQ"),r=a.n(s),n=a("Ke24"),c=a("P9l9"),i=a("Ch4/"),l=a("3E4D"),o=a("PI0u"),u={name:"people-day-class",props:{classData:{type:[Array,Object],default:function(){return[]}},cycleData:{type:[Array,Object],default:function(){return[]}},itemSchedule:{type:[Array,Object],default:function(){return[]}},dates:{type:[Array,Object],default:function(){return[]}},weekDay:{type:[Number,String],default:function(){return""}}},data:function(){return{activeTab:"1",translate:{width:"56px",transform:"translateX(30px)"},defaultData:[{classesId:"-1",classesName:"休息",classColor:"day-tag-grey"},{classesId:"-2",classesName:"清空",classColor:""}],itemData:{},itemCycleData:[]}},methods:{chooseTab:function(t,e){this.activeTab=e,this.translate={width:t.target.offsetWidth+"px",transform:"translateX("+t.target.offsetLeft+"px)"}},hideSet:function(){var t=document.createElement("button");document.body.appendChild(t),t.click(),document.body.removeChild(t)},daySet:function(t){var e=this,a=(new Date).getFullYear(),s=(new Date).getMonth()+1<10?(new Date).getMonth()+1:"0"+((new Date).getMonth()+1),n=(new Date).getDate()<10?(new Date).getDate():"0"+(new Date).getDate();if(new Date(e.weekDay).getTime()<new Date(String(a)+"-"+String(s)+"-"+String(n)).getTime())return l.a.showmsg("不能设置今天以前的排班","warning"),!1;e.hideSet(),e.itemData.setClassesList.map(function(t){return t.weekDay}).includes(e.weekDay)&&(e.itemData.setClassesList.forEach(function(a){a.weekDay==e.weekDay&&(a.classesName=t.classesName,a.classesId=t.classesId,a.classColor=t.classColor,a.isRest=!0)}),e.$emit("refreshData",JSON.parse(r()(e.itemData))),e.$forceUpdate())},toCycleSet:function(){this.$router.push("/workGroupSet?appIcon="+this.$route.query.appIcon+"&attenceGroupId="+this.$route.query.attenceGroupId)},dayWeekSet:function(){var t=this,e=(new Date).getFullYear(),a=(new Date).getMonth()+1>10?(new Date).getMonth()+1:"0"+((new Date).getMonth()+1),s=(new Date).getDate()>10?(new Date).getDate():"0"+(new Date).getDate();if(new Date(t.weekDay).getTime()<new Date(String(e)+"-"+String(a)+"-"+String(s)).getTime())return l.a.showmsg("不能设置今天以前的排班","warning"),!1;var n=0;t.itemData.setClassesList.forEach(function(e,a){t.weekDay==e.weekDay&&(n=a)}),t.hideSet();for(var c=t.cycleData[0].classesList.length,i=n,o=0;o<t.itemData.setClassesList.length-n;o++)t.itemData.setClassesList[i].classesName=t.cycleData[0].classesList[o%c].classesName,t.itemData.setClassesList[i].classesId=t.cycleData[0].classesList[o%c].classesId,t.itemData.setClassesList[i].classColor=t.cycleData[0].classesList[o%c].classColor,t.itemData.setClassesList[i].isRest=!0,i++;t.$emit("refreshData",JSON.parse(r()(t.itemData))),t.$forceUpdate()}},watch:{itemSchedule:function(t){this.itemData=JSON.parse(r()(t))},cycleData:function(t){this.itemCycleData=JSON.parse(r()(t))}},mounted:function(){this.itemData=JSON.parse(r()(this.itemSchedule)),this.itemCycleData=JSON.parse(r()(this.cycleData))}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"day-tabs"},[a("div",{staticClass:"tablist"},[a("div",{staticClass:"right-content-top border-box"},[a("div",{staticClass:"right-top-wrap_left flex flex-pack-center"},[a("ul",{staticClass:"flex flex-row flex-pack-center "},[a("div",{staticClass:"el-tabs__active-bar is-top",style:t.translate}),t._v(" "),a("li",{class:["flex flex-align-center flex-pack-center p-lr-24",1==t.activeTab?"active-li":""],on:{click:function(e){t.chooseTab(e,"1")}}},[a("span",{staticClass:"flex flex-align-center flex-pack-center right-top-title"},[t._v("按天排班")])]),t._v(" "),a("li",{class:["flex flex-align-center flex-pack-center p-lr-24",2==t.activeTab?"active-li":""],on:{click:function(e){t.chooseTab(e,"2")}}},[a("span",{staticClass:"flex flex-align-center flex-pack-center right-top-title"},[t._v("按周期排班")])])])])])]),t._v(" "),1==t.activeTab?a("ul",[a("li",[a("div",{staticClass:"day-item-title",attrs:{title:"修改该员工当天班次"}},[t._v("修改该员工当天班次")]),t._v(" "),a("ul",[t._l(t.classData,function(e,s){return[a("li",{key:s+"class",staticClass:"day-class-item p-lr-20",on:{click:function(a){a.stopPropagation(),t.daySet(e)}}},[a("p",{class:["class-item",e.classColor]},[t._v(t._s(e.classesName))])])]}),t._v(" "),t._l(t.defaultData,function(e,s){return[a("li",{key:s+"defaultClass",staticClass:"day-class-item p-lr-20",on:{click:function(a){a.stopPropagation(),t.daySet(e)}}},[a("p",{class:["class-item","-1"==e.classesId?"class-rest":"class-clear"]},[t._v(t._s(e.classesName))])])]})],2)])]):t._e(),t._v(" "),2==t.activeTab?a("ul",[a("li",[t.cycleData.length?a("div",{staticClass:"day-item-title",attrs:{title:"从该天开始周期排班至月底"}},[t._v("从该天开始周期排班至月底")]):a("div",{staticClass:"day-item-title",attrs:{title:"还没有排班周期"}},[t._v("还没有排班周期"),a("br"),t._v("请去后台考勤组规则里设置")]),t._v(" "),a("ul",[t.cycleData.length?a("li",{staticClass:"day-class-item p-lr-20",on:{click:function(e){return e.stopPropagation(),t.dayWeekSet(e)}}},[a("p",{staticClass:"class-item day-tag-blue"},[t._v(t._s(t.cycleData[0].rangeName)+" "+t._s(t.cycleData[0].classesList.map(function(t){return t.classesName}).join("-")))])]):a("li",{staticClass:"day-class-item p-lr-20",on:{click:function(e){return e.stopPropagation(),t.toCycleSet(e)}}},[a("p",{staticClass:"class-item day-tag-blue"},[t._v("请设置排班周期")])])])])]):t._e()])},staticRenderFns:[]};var p=a("VU/8")(u,d,!1,function(t){a("JSVo")},"data-v-10310f02",null).exports,f={name:"workTimeManage",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{peopleDayClass:p,commonDetailTop:n.a},filters:{filterDay:function(t){return new Date(t).getDate()}},data:function(){return{activeBrand:this.brandId,activeGroup:this.activeGroupId,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId,activeId:"2",topMenuData:[{id:"1",name:"考勤组管理",path:"/workSet?appIcon="+this.$route.query.appIcon},{id:"2",name:"编辑排班表"}],yearMonth:(new Date).getFullYear()+"-"+((new Date).getMonth()+1),currentPage:1,pageSize:20,total:0,cycleData:[],classes:[],weekData:["日","一","二","三","四","五","六"],dates:[],tableData:[]}},methods:{toSave:Object(o.a)(function(){var t=this,e=[];JSON.parse(r()(t.tableData)).forEach(function(a){a.setClassesList.forEach(function(s){e.push({attenceGroupId:t.$route.query.attenceGroupId,classesId:s.classesId,userId:a.userId,weekDay:s.weekDay})})}),t.postSave(e)},300),postSave:function(t){var e=this,a={enterpriseId:e.enterpriseId,attenceGroupId:e.$route.query.attenceGroupId,setClassesJson:r()(t)};Object(c.e)("/haoban-app-attence-web/set-classes",a).then(function(t){var e=t.data;if(1==e.errorCode)return l.a.showmsg("保存成功","success"),!1;i.a.errorMsg(e)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toReset:function(){this.dates=[],this.tableData=[],this.currentPage=1,this.getTableList(this.brandId)},changeMonth:function(){this.dates=[],this.tableData=[],this.currentPage=1,this.getTableList(this.brandId)},handleSizeChange:function(t){this.pageSize=t,this.getTableList(this.brandId)},handleCurrentChange:function(t){this.currentPage=t,this.getTableList(this.brandId)},toWorkGroup:function(){this.$router.push("/workGroupSet?appIcon="+this.$route.query.appIcon+"&attenceGroupId="+this.$route.query.attenceGroupId)},refreshData:function(t){if(!t)return!1;var e=JSON.parse(r()(this.tableData));e.forEach(function(e){e.userId==t.userId&&(e.setClassesList=t.setClassesList)}),this.tableData=JSON.parse(r()(e)),this.$forceUpdate()},getClassifyData:function(){var t=this,e={enterpriseId:t.enterpriseId,attenceGroupId:t.$route.query.attenceGroupId};Object(c.a)("/haoban-app-attence-web/attence-classes-list",e).then(function(e){var a=e.data;if(1==a.errorCode)return a.result&&a.result.length&&a.result.forEach(function(t,e){e%7==0&&(t.classColor="day-tag-blue"),e%7==1&&(t.classColor="day-tag-red"),e%7==2&&(t.classColor="day-tag-purple"),e%7==3&&(t.classColor="day-tag-orange"),e%7==4&&(t.classColor="day-tag-green"),e%7==5&&(t.classColor="day-tag-pink"),e%7==6&&(t.classColor="day-tag-cyan"),t.classessTimesJson&&(t.classessTimesJson=JSON.parse(t.classessTimesJson))}),t.classes=a.result||[],t.getCycleData(),t.getTableList(),!1;i.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getCycleData:function(){var t=this,e={enterpriseId:t.enterpriseId,attenceGroupId:t.$route.query.attenceGroupId};Object(c.a)("/haoban-app-attence-web/attence-range-list",e).then(function(e){var a=e.data;if(1==a.errorCode)return a.result&&a.result.length&&a.result.forEach(function(e){e.classesList&&e.classesList.length&&e.classesList.forEach(function(e){t.classes.forEach(function(t){e.classesId==t.classesId&&(e.classColor=t.classColor)})})}),t.cycleData=a.result||[],!1;i.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getTableList:function(t){var e=this,a={month:e.yearMonth,enterpriseId:e.enterpriseId,attenceGroupId:e.$route.query.attenceGroupId,pageNum:e.currentPage,pageSize:e.pageSize};Object(c.e)("/haoban-app-attence-web/set-classes-detail",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.total=a.result.totalCount,e.dates=JSON.parse(r()(a.result.params.dateList)),a.result.params.userList.forEach(function(t){t.setClassesList.forEach(function(t){t.classColor=t.classColor?t.classColor:"",e.classes.forEach(function(e){t.classesId==e.classesId&&(t.classColor=e.classColor)})})}),e.tableData=JSON.parse(r()(a.result.params.userList))||[],!1;i.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(){var t=this;t.$emit("showTab","2"),setTimeout(function(){t.getClassifyData()},1e3)}},h={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"work-time border-box"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"work-time-content border-box"},[a("div",{staticClass:"classes-wrap m-b-20"},[a("span",{staticClass:"fl font-13 color-303133"},[t._v("班次说明:")]),t._v(" "),a("div",{staticClass:"class-row-tags"},[t._l(t.classes,function(e,s){return a("div",{key:s,class:["class-tag",s%7==0?"day-tag-blue":"",s%7==1?"day-tag-red":"",s%7==2?"day-tag-purple":"",s%7==3?"day-tag-orange":"",s%7==4?"day-tag-green":"",s%7==5?"day-tag-pink":"",s%7==6?"day-tag-cyan":""]},[a("span",{staticClass:"class-tag-text"},[t._v(t._s(e.classesName)+":")]),t._v(" "),t._l(e.classessTimesJson,function(e,s){return a("span",{key:s+"time"},[t._v(t._s(e.startTime)+"-"+t._s(e.endTime))])})],2)}),t._v(" "),t._m(0),t._v(" "),t._m(1)],2)]),t._v(" "),a("div",{staticClass:"range-wrap m-b-20"},[a("span",{staticClass:"fl font-13 color-303133"},[t._v("排班周期:")]),t._v(" "),a("div",{staticClass:"class-row-tags"},[t._l(t.cycleData,function(e,s){return a("div",{key:s+"cycle",staticClass:"class-tag"},[a("span",{staticClass:"ant-tag-text"},[t._v(t._s(e.rangeName)+":")]),t._v(" "),a("span",[t._v(t._s(e.classesList.map(function(t){return t.classesName}).join("-")))])])}),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:t.toWorkGroup}},[t._v("设置")])],2)]),t._v(" "),a("div",{staticClass:"work-time-opt m-b-20 flex flex-space-between",staticStyle:{width:"calc(100% - 20px)"}},[a("div",{staticClass:"work-time-opt_left"},[a("el-date-picker",{attrs:{type:"month",format:"yyyy-MM","value-format":"yyyy-MM",placeholder:"选择月"},on:{change:t.changeMonth},model:{value:t.yearMonth,callback:function(e){t.yearMonth=e},expression:"yearMonth"}}),t._v(" "),a("span",{staticClass:"p-l-10 font-12 color-606266"},[t._v("未排班时,员工可选择班次打卡")])],1),t._v(" "),a("div",{staticClass:"work-time-opt_right"},[a("el-button",{attrs:{type:"primary"},on:{click:t.toSave}},[t._v("保存")]),t._v(" "),a("el-button",{on:{click:t.toReset}},[t._v("恢复")])],1)]),t._v(" "),a("div",{staticClass:"work-time-table"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 20px)"},attrs:{border:"",data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"","show-overflow-tooltip":"",fixed:"",resizable:!1,"min-width":"55"},scopedSlots:t._u([{key:"header",fn:function(e){return[t._v("\n 姓名\n ")]}},{key:"default",fn:function(e){return[a("div",{staticClass:"row-username"},[t._v("\n "+t._s(e.row.userName)+"\n ")])]}}])}),t._v(" "),t._l(t.dates,function(e,s){return[a("el-table-column",{key:s+"thead",attrs:{prop:"","show-overflow-tooltip":"",resizable:!1,"min-width":"51"},scopedSlots:t._u([{key:"header",fn:function(s){return[a("div",{class:["text-center","六"==e.dayOfWeek||"日"==e.dayOfWeek?"color-red":""]},[t._v("\n "+t._s(e.weekDay?parseInt(e.weekDay.split("-")[2]):"")+" "),a("br"),t._v("\n "+t._s(e.dayOfWeek)+"\n ")])]}},{key:"default",fn:function(r){return[a("div",{staticClass:"day-work"},[a("el-popover",{attrs:{placement:"bottom",width:"231",trigger:"click"}},[a("people-day-class",{attrs:{dates:t.dates,itemSchedule:r.row,weekDay:e.weekDay,classData:t.classes,cycleData:t.cycleData},on:{refreshData:t.refreshData}}),t._v(" "),a("div",{staticClass:"tool-tip-body",attrs:{slot:"reference"},slot:"reference"},[a("div",{class:["day-work-cell schedule_del_class",r.row.setClassesList[s].classColor]},[a("div",{staticClass:"day-work-cell_text"},[t._v(t._s(r.row.setClassesList[s].classesName||"清空"))])])])],1)],1)]}}])})]})],2)],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)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"schedule-content_tag"},[e("div",{staticClass:"class-tag"},[e("span",{staticClass:"class-tag-text"},[this._v("休息: 休息")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"schedule-content_tag"},[e("div",{staticClass:"class-tag"},[e("span",{staticClass:"class-tag-text"},[this._v("清空: 休息")])])])}]};var g=a("VU/8")(f,h,!1,function(t){a("HbIH")},"data-v-107f794f",null);e.default=g.exports},HbIH:function(t,e){},JSVo:function(t,e){}}); webpackJsonp([39],{"/n/x":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("mvHQ"),r=a.n(s),n=a("Ke24"),c=a("P9l9"),i=a("Ch4/"),l=a("3E4D"),o=a("PI0u"),u={name:"people-day-class",props:{classData:{type:[Array,Object],default:function(){return[]}},cycleData:{type:[Array,Object],default:function(){return[]}},itemSchedule:{type:[Array,Object],default:function(){return[]}},dates:{type:[Array,Object],default:function(){return[]}},weekDay:{type:[Number,String],default:function(){return""}}},data:function(){return{activeTab:"1",translate:{width:"56px",transform:"translateX(30px)"},defaultData:[{classesId:"-1",classesName:"休息",classColor:"day-tag-grey"},{classesId:"-2",classesName:"清空",classColor:""}],itemData:{},itemCycleData:[]}},methods:{chooseTab:function(t,e){this.activeTab=e,this.translate={width:t.target.offsetWidth+"px",transform:"translateX("+t.target.offsetLeft+"px)"}},hideSet:function(){var t=document.createElement("button");document.body.appendChild(t),t.click(),document.body.removeChild(t)},daySet:function(t){var e=this,a=(new Date).getFullYear(),s=(new Date).getMonth()+1<10?(new Date).getMonth()+1:"0"+((new Date).getMonth()+1),n=(new Date).getDate()<10?(new Date).getDate():"0"+(new Date).getDate();if(new Date(e.weekDay).getTime()<new Date(String(a)+"-"+String(s)+"-"+String(n)).getTime())return l.a.showmsg("不能设置今天以前的排班","warning"),!1;e.hideSet(),e.itemData.setClassesList.map(function(t){return t.weekDay}).includes(e.weekDay)&&(e.itemData.setClassesList.forEach(function(a){a.weekDay==e.weekDay&&(a.classesName=t.classesName,a.classesId=t.classesId,a.classColor=t.classColor,a.isRest=!0)}),e.$emit("refreshData",JSON.parse(r()(e.itemData))),e.$forceUpdate())},toCycleSet:function(){this.$router.push("/workGroupSet?appIcon="+this.$route.query.appIcon+"&attenceGroupId="+this.$route.query.attenceGroupId)},dayWeekSet:function(){var t=this,e=(new Date).getFullYear(),a=(new Date).getMonth()+1>10?(new Date).getMonth()+1:"0"+((new Date).getMonth()+1),s=(new Date).getDate()>10?(new Date).getDate():"0"+(new Date).getDate();if(new Date(t.weekDay).getTime()<new Date(String(e)+"-"+String(a)+"-"+String(s)).getTime())return l.a.showmsg("不能设置今天以前的排班","warning"),!1;var n=0;t.itemData.setClassesList.forEach(function(e,a){t.weekDay==e.weekDay&&(n=a)}),t.hideSet();for(var c=t.cycleData[0].classesList.length,i=n,o=0;o<t.itemData.setClassesList.length-n;o++)t.itemData.setClassesList[i].classesName=t.cycleData[0].classesList[o%c].classesName,t.itemData.setClassesList[i].classesId=t.cycleData[0].classesList[o%c].classesId,t.itemData.setClassesList[i].classColor=t.cycleData[0].classesList[o%c].classColor,t.itemData.setClassesList[i].isRest=!0,i++;t.$emit("refreshData",JSON.parse(r()(t.itemData))),t.$forceUpdate()}},watch:{itemSchedule:function(t){this.itemData=JSON.parse(r()(t))},cycleData:function(t){this.itemCycleData=JSON.parse(r()(t))}},mounted:function(){this.itemData=JSON.parse(r()(this.itemSchedule)),this.itemCycleData=JSON.parse(r()(this.cycleData))}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"day-tabs"},[a("div",{staticClass:"tablist"},[a("div",{staticClass:"right-content-top border-box"},[a("div",{staticClass:"right-top-wrap_left flex flex-pack-center"},[a("ul",{staticClass:"flex flex-row flex-pack-center "},[a("div",{staticClass:"el-tabs__active-bar is-top",style:t.translate}),t._v(" "),a("li",{class:["flex flex-align-center flex-pack-center p-lr-24",1==t.activeTab?"active-li":""],on:{click:function(e){t.chooseTab(e,"1")}}},[a("span",{staticClass:"flex flex-align-center flex-pack-center right-top-title"},[t._v("按天排班")])]),t._v(" "),a("li",{class:["flex flex-align-center flex-pack-center p-lr-24",2==t.activeTab?"active-li":""],on:{click:function(e){t.chooseTab(e,"2")}}},[a("span",{staticClass:"flex flex-align-center flex-pack-center right-top-title"},[t._v("按周期排班")])])])])])]),t._v(" "),1==t.activeTab?a("ul",[a("li",[a("div",{staticClass:"day-item-title",attrs:{title:"修改该员工当天班次"}},[t._v("修改该员工当天班次")]),t._v(" "),a("ul",[t._l(t.classData,function(e,s){return[a("li",{key:s+"class",staticClass:"day-class-item p-lr-20",on:{click:function(a){a.stopPropagation(),t.daySet(e)}}},[a("p",{class:["class-item",e.classColor]},[t._v(t._s(e.classesName))])])]}),t._v(" "),t._l(t.defaultData,function(e,s){return[a("li",{key:s+"defaultClass",staticClass:"day-class-item p-lr-20",on:{click:function(a){a.stopPropagation(),t.daySet(e)}}},[a("p",{class:["class-item","-1"==e.classesId?"class-rest":"class-clear"]},[t._v(t._s(e.classesName))])])]})],2)])]):t._e(),t._v(" "),2==t.activeTab?a("ul",[a("li",[t.cycleData.length?a("div",{staticClass:"day-item-title",attrs:{title:"从该天开始周期排班至月底"}},[t._v("从该天开始周期排班至月底")]):a("div",{staticClass:"day-item-title",attrs:{title:"还没有排班周期"}},[t._v("还没有排班周期"),a("br"),t._v("请去后台考勤组规则里设置")]),t._v(" "),a("ul",[t.cycleData.length?a("li",{staticClass:"day-class-item p-lr-20",on:{click:function(e){return e.stopPropagation(),t.dayWeekSet(e)}}},[a("p",{staticClass:"class-item day-tag-blue"},[t._v(t._s(t.cycleData[0].rangeName)+" "+t._s(t.cycleData[0].classesList.map(function(t){return t.classesName}).join("-")))])]):a("li",{staticClass:"day-class-item p-lr-20",on:{click:function(e){return e.stopPropagation(),t.toCycleSet(e)}}},[a("p",{staticClass:"class-item day-tag-blue"},[t._v("请设置排班周期")])])])])]):t._e()])},staticRenderFns:[]};var p=a("VU/8")(u,d,!1,function(t){a("JSVo")},"data-v-10310f02",null).exports,f={name:"workTimeManage",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{peopleDayClass:p,commonDetailTop:n.a},filters:{filterDay:function(t){return new Date(t).getDate()}},data:function(){return{activeBrand:this.brandId,activeGroup:this.activeGroupId,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId,activeId:"2",topMenuData:[{id:"1",name:"考勤组管理",path:"/workSet?appIcon="+this.$route.query.appIcon},{id:"2",name:"编辑排班表"}],yearMonth:(new Date).getFullYear()+"-"+((new Date).getMonth()+1),currentPage:1,pageSize:20,total:0,cycleData:[],classes:[],weekData:["日","一","二","三","四","五","六"],dates:[],tableData:[]}},methods:{toSave:Object(o.a)(function(){var t=this,e=[];JSON.parse(r()(t.tableData)).forEach(function(a){a.setClassesList.forEach(function(s){e.push({attenceGroupId:t.$route.query.attenceGroupId,classesId:s.classesId,userId:a.userId,weekDay:s.weekDay})})}),t.postSave(e)},300),postSave:function(t){var e=this,a={enterpriseId:e.enterpriseId,attenceGroupId:e.$route.query.attenceGroupId,setClassesJson:r()(t)};Object(c.e)("/haoban-app-attence-web/set-classes",a).then(function(t){var e=t.data;if(1==e.errorCode)return l.a.showmsg("保存成功","success"),!1;i.a.errorMsg(e)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toReset:function(){this.dates=[],this.tableData=[],this.currentPage=1,this.getTableList(this.brandId)},changeMonth:function(){this.dates=[],this.tableData=[],this.currentPage=1,this.getTableList(this.brandId)},handleSizeChange:function(t){this.pageSize=t,this.getTableList(this.brandId)},handleCurrentChange:function(t){this.currentPage=t,this.getTableList(this.brandId)},toWorkGroup:function(){this.$router.push("/workGroupSet?appIcon="+this.$route.query.appIcon+"&attenceGroupId="+this.$route.query.attenceGroupId)},refreshData:function(t){if(!t)return!1;var e=JSON.parse(r()(this.tableData));e.forEach(function(e){e.userId==t.userId&&(e.setClassesList=t.setClassesList)}),this.tableData=JSON.parse(r()(e)),this.$forceUpdate()},getClassifyData:function(){var t=this,e={enterpriseId:t.enterpriseId,attenceGroupId:t.$route.query.attenceGroupId};Object(c.a)("/haoban-app-attence-web/attence-classes-list",e).then(function(e){var a=e.data;if(1==a.errorCode)return a.result&&a.result.length&&a.result.forEach(function(t,e){e%7==0&&(t.classColor="day-tag-blue"),e%7==1&&(t.classColor="day-tag-red"),e%7==2&&(t.classColor="day-tag-purple"),e%7==3&&(t.classColor="day-tag-orange"),e%7==4&&(t.classColor="day-tag-green"),e%7==5&&(t.classColor="day-tag-pink"),e%7==6&&(t.classColor="day-tag-cyan"),t.classessTimesJson&&(t.classessTimesJson=JSON.parse(t.classessTimesJson))}),t.classes=a.result||[],t.getCycleData(),t.getTableList(),!1;i.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getCycleData:function(){var t=this,e={enterpriseId:t.enterpriseId,attenceGroupId:t.$route.query.attenceGroupId};Object(c.a)("/haoban-app-attence-web/attence-range-list",e).then(function(e){var a=e.data;if(1==a.errorCode)return a.result&&a.result.length&&a.result.forEach(function(e){e.classesList&&e.classesList.length&&e.classesList.forEach(function(e){t.classes.forEach(function(t){e.classesId==t.classesId&&(e.classColor=t.classColor)})})}),t.cycleData=a.result||[],!1;i.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getTableList:function(t){var e=this,a={month:e.yearMonth,enterpriseId:e.enterpriseId,attenceGroupId:e.$route.query.attenceGroupId,pageNum:e.currentPage,pageSize:e.pageSize};Object(c.e)("/haoban-app-attence-web/set-classes-detail",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.total=a.result.totalCount,e.dates=JSON.parse(r()(a.result.params.dateList)),a.result.params.userList.forEach(function(t){t.setClassesList.forEach(function(t){t.classColor=t.classColor?t.classColor:"",e.classes.forEach(function(e){t.classesId==e.classesId&&(t.classColor=e.classColor)})})}),e.tableData=JSON.parse(r()(a.result.params.userList))||[],!1;i.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(){var t=this;t.$emit("showTab","2"),setTimeout(function(){t.getClassifyData()},1e3)}},h={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"work-time border-box"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"work-time-content border-box"},[a("div",{staticClass:"classes-wrap m-b-20"},[a("span",{staticClass:"fl font-13 color-303133"},[t._v("班次说明:")]),t._v(" "),a("div",{staticClass:"class-row-tags"},[t._l(t.classes,function(e,s){return a("div",{key:s,class:["class-tag",s%7==0?"day-tag-blue":"",s%7==1?"day-tag-red":"",s%7==2?"day-tag-purple":"",s%7==3?"day-tag-orange":"",s%7==4?"day-tag-green":"",s%7==5?"day-tag-pink":"",s%7==6?"day-tag-cyan":""]},[a("span",{staticClass:"class-tag-text"},[t._v(t._s(e.classesName)+":")]),t._v(" "),t._l(e.classessTimesJson,function(e,s){return a("span",{key:s+"time"},[t._v(t._s(e.startTime)+"-"+t._s(e.endTime))])})],2)}),t._v(" "),t._m(0),t._v(" "),t._m(1)],2)]),t._v(" "),a("div",{staticClass:"range-wrap m-b-20"},[a("span",{staticClass:"fl font-13 color-303133"},[t._v("排班周期:")]),t._v(" "),a("div",{staticClass:"class-row-tags"},[t._l(t.cycleData,function(e,s){return a("div",{key:s+"cycle",staticClass:"class-tag"},[a("span",{staticClass:"ant-tag-text"},[t._v(t._s(e.rangeName)+":")]),t._v(" "),a("span",[t._v(t._s(e.classesList.map(function(t){return t.classesName}).join("-")))])])}),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:t.toWorkGroup}},[t._v("设置")])],2)]),t._v(" "),a("div",{staticClass:"work-time-opt m-b-20 flex flex-space-between",staticStyle:{width:"calc(100% - 20px)"}},[a("div",{staticClass:"work-time-opt_left"},[a("el-date-picker",{attrs:{type:"month",format:"yyyy-MM","value-format":"yyyy-MM",placeholder:"选择月"},on:{change:t.changeMonth},model:{value:t.yearMonth,callback:function(e){t.yearMonth=e},expression:"yearMonth"}}),t._v(" "),a("span",{staticClass:"p-l-10 font-12 color-606266"},[t._v("未排班时,员工可选择班次打卡")])],1),t._v(" "),a("div",{staticClass:"work-time-opt_right"},[a("el-button",{attrs:{type:"primary"},on:{click:t.toSave}},[t._v("保存")]),t._v(" "),a("el-button",{on:{click:t.toReset}},[t._v("恢复")])],1)]),t._v(" "),a("div",{staticClass:"work-time-table"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 20px)"},attrs:{border:"",data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"","show-overflow-tooltip":"",fixed:"",resizable:!1,"min-width":"55"},scopedSlots:t._u([{key:"header",fn:function(e){return[t._v("\n 姓名\n ")]}},{key:"default",fn:function(e){return[a("div",{staticClass:"row-username"},[t._v("\n "+t._s(e.row.userName)+"\n ")])]}}])}),t._v(" "),t._l(t.dates,function(e,s){return[a("el-table-column",{key:s+"thead",attrs:{prop:"","show-overflow-tooltip":"",resizable:!1,"min-width":"51"},scopedSlots:t._u([{key:"header",fn:function(s){return[a("div",{class:["text-center","六"==e.dayOfWeek||"日"==e.dayOfWeek?"color-red":""]},[t._v("\n "+t._s(e.weekDay?parseInt(e.weekDay.split("-")[2]):"")+" "),a("br"),t._v("\n "+t._s(e.dayOfWeek)+"\n ")])]}},{key:"default",fn:function(r){return[a("div",{staticClass:"day-work"},[a("el-popover",{attrs:{placement:"bottom",width:"231",trigger:"click"}},[a("people-day-class",{attrs:{dates:t.dates,itemSchedule:r.row,weekDay:e.weekDay,classData:t.classes,cycleData:t.cycleData},on:{refreshData:t.refreshData}}),t._v(" "),a("div",{staticClass:"tool-tip-body",attrs:{slot:"reference"},slot:"reference"},[a("div",{class:["day-work-cell schedule_del_class",r.row.setClassesList[s].classColor]},[a("div",{staticClass:"day-work-cell_text"},[t._v(t._s(r.row.setClassesList[s].classesName||"清空"))]),t._v(" "),r.row.setClassesList[s].isRest?a("div",{staticClass:"day-work-cell_icon"}):t._e()])])],1)],1)]}}])})]})],2)],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)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"schedule-content_tag"},[e("div",{staticClass:"class-tag"},[e("span",{staticClass:"class-tag-text"},[this._v("休息: 休息")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"schedule-content_tag"},[e("div",{staticClass:"class-tag"},[e("span",{staticClass:"class-tag-text"},[this._v("清空: 休息")])])])}]};var g=a("VU/8")(f,h,!1,function(t){a("AYRb")},"data-v-a9bc030e",null);e.default=g.exports},AYRb:function(t,e){},JSVo:function(t,e){}});
\ 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],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:"7882005cd5d4e4e4494b",16:"f483f95dbac654c7de5a",17:"ff6edf624b982c354977",18:"f7633d51986d0c6798f1",19:"ce35e2d57d36a4283e7e",20:"455fd80bd8af15457c57",21:"c1b5e15e28768af52654",22:"2a873e819c6c369d5cd1",23:"d2380bf3c276e741313b",24:"56085041ae784faf3c32",25:"e23f42a6b2180b63c129",26:"606394f2e20eb1a455fa",27:"4a1c52078d154a141023",28:"70cb3f87bd69723dbd41",29:"c5bb15e8e1bd17cdc0f7",30:"5148c4801b84f0e73041",31:"20f69d688df3827843c5",32:"0c7863fa05e5c75053c3",33:"f4e32fc6846aa744ee48",34:"0fb2eb67d47b9ecbd519",35:"e64c33855b455bcdd9a2",36:"8615782328f743c5f783",37:"8d599976023acb79bef4",38:"6620399d71206af0621b",39:"7f05111114a4c4b073e5",40:"2437eb589d6ed60c9252",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:"2c7e1d628bd2f4ac709c"}[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:"412442ab272abfd930d9",15:"7882005cd5d4e4e4494b",16:"f483f95dbac654c7de5a",17:"ff6edf624b982c354977",18:"f7633d51986d0c6798f1",19:"ce35e2d57d36a4283e7e",20:"455fd80bd8af15457c57",21:"c1b5e15e28768af52654",22:"2a873e819c6c369d5cd1",23:"d2380bf3c276e741313b",24:"56085041ae784faf3c32",25:"e23f42a6b2180b63c129",26:"606394f2e20eb1a455fa",27:"4a1c52078d154a141023",28:"70cb3f87bd69723dbd41",29:"c5bb15e8e1bd17cdc0f7",30:"5148c4801b84f0e73041",31:"20f69d688df3827843c5",32:"0c7863fa05e5c75053c3",33:"f4e32fc6846aa744ee48",34:"0fb2eb67d47b9ecbd519",35:"e64c33855b455bcdd9a2",36:"8615782328f743c5f783",37:"8d599976023acb79bef4",38:"6620399d71206af0621b",39:"a685bccd495de5fbfd2a",40:"2437eb589d6ed60c9252",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:"2c7e1d628bd2f4ac709c"}[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
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* @version: 1.0.0 * @version: 1.0.0
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-10-21 14:27:29 * @Date: 2019-10-21 14:27:29
* @LastEditors: 无尘 * @LastEditors : 无尘
* @LastEditTime: 2019-12-10 18:19:17 * @LastEditTime : 2019-12-27 14:21:30
--> -->
<!-- <!--
...@@ -31,7 +31,7 @@ import useRecord from '@/components/app/material/use-record.vue' ...@@ -31,7 +31,7 @@ import useRecord from '@/components/app/material/use-record.vue'
</el-table-column> </el-table-column>
<el-table-column label="标题" show-overflow-tooltip> <el-table-column label="标题" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.phoneNumber || '--' }} {{ scope.row.imgTextTitle || '--' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="发布时间" show-overflow-tooltip> <el-table-column label="发布时间" show-overflow-tooltip>
...@@ -139,7 +139,7 @@ export default { ...@@ -139,7 +139,7 @@ export default {
getTableList(val) { getTableList(val) {
const that = this; const that = this;
let para = { let para = {
materialId: that.conditionObj.materialId, imgTextMaterialId: that.conditionObj.materialId,
imgTextTitle: that.conditionObj.searchInput || '', // 搜索字段 imgTextTitle: that.conditionObj.searchInput || '', // 搜索字段
relatedType: 4, relatedType: 4,
pageNum: that.currentPage, // 当前页 pageNum: that.currentPage, // 当前页
......
...@@ -85,6 +85,7 @@ ...@@ -85,6 +85,7 @@
<div class="tool-tip-body" slot="reference"> <div class="tool-tip-body" slot="reference">
<div :class="['day-work-cell schedule_del_class', scope.row.setClassesList[index].classColor]"> <div :class="['day-work-cell schedule_del_class', scope.row.setClassesList[index].classColor]">
<div class="day-work-cell_text">{{ scope.row.setClassesList[index].classesName || '清空' }}</div> <div class="day-work-cell_text">{{ scope.row.setClassesList[index].classesName || '清空' }}</div>
<div v-if="scope.row.setClassesList[index].isRest" class="day-work-cell_icon"></div>
</div> </div>
</div> </div>
</el-popover> </el-popover>
......
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