Commit 7bc012d0 by 无尘

fix: 修改行政架构添加分组

parent 4f6f945e
/*
* @Descripttion: 当前组件信息
* @version: 1.0.0
* @Author: 无尘
* @Date: 2018-10-10 14:44:45
* @LastEditors: 无尘
* @LastEditTime: 2018-10-10 14:44:45
*/
module.exports = { module.exports = {
proxyList: { proxyList: {
'/haoban-manage-web/': { '/haoban-manage-web/': {
...@@ -14,11 +22,11 @@ module.exports = { ...@@ -14,11 +22,11 @@ module.exports = {
'^/haoban-app-member-web': '' '^/haoban-app-member-web': ''
} }
}, },
'/api-plug/': { '/haoban-app-announcement-web/': {
target: 'http://gicdev.demogic.com/api-plug/', target: 'https://www.gicdev.com/haoban-app-announcement-web/',
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
'^/api-plug': '' '^/haoban-app-announcement-web': ''
} }
}, },
'/api-mall/': { '/api-mall/': {
......
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.5958cfb74b6085e500440c39622a04de.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.d26fa0a3a9fb6e375766.js></script><script type=text/javascript src=./static/js/vendor.edfe69b49db0b6363a08.js></script><script type=text/javascript src=./static/js/app.127602c296ca2f7b8473.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.f252735c27c389ef43d02c3a8e5c3e67.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.c6154b896065df841e83.js></script><script type=text/javascript src=./static/js/vendor.edfe69b49db0b6363a08.js></script><script type=text/javascript src=./static/js/app.4f98369f556c0b8d8cb6.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([12],{"0tMm":function(e,t,a){"use strict";var i=a("Mk6G"),s={name:"limitinput",props:{inputValue:{type:[String,Number],default:function(){return""}},maxLength:{type:Number,default:10},inputWidth:{type:Number,default:500},getByType:{type:String,default:"word"},holder:{type:String,default:"请输入"},disflag:{type:Boolean,default:!1},limitClass:{type:String,default:""}},data:function(){return{inputNum:0,limitLength:10,itemValue:""}},methods:{inputFocus:function(e){},toInput:function(e){var t="";"word"==this.getByType?(t=i.a.getByteVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=i.a.getZhLen(this.itemValue)):(t=i.a.getCharVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=i.a.getByteLen(this.itemValue)),this.$emit("update:inputValue",this.itemValue)}},watch:{maxLength:function(e,t){this.limitLength=e},inputValue:function(e,t){this.itemValue=e||"","word"==this.getByType?this.inputNum=i.a.getZhLen(this.itemValue):this.inputNum=i.a.getByteLen(this.itemValue)}},mounted:function(){this.limitLength=this.maxLength,this.itemValue=this.inputValue||"","word"==this.getByType?this.inputNum=i.a.getZhLen(this.inputValue):this.inputNum=i.a.getByteLen(this.inputValue)}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:["input-line-cell",e.limitClass],style:{width:e.inputWidth+"px"}},[a("el-input",{style:{width:e.inputWidth+"px"},attrs:{disabled:e.disflag,placeholder:e.holder},on:{focus:function(t){e.inputFocus()},blur:function(t){return e.toInput(t)}},model:{value:e.itemValue,callback:function(t){e.itemValue=t},expression:"itemValue"}}),e._v(" "),a("span",{staticClass:"tip"},[a("span",{staticClass:"len_span"},[e._v(e._s(e.inputNum))]),e._v("/"+e._s(e.limitLength))])],1)},staticRenderFns:[]};var o=a("VU/8")(s,n,!1,function(e){a("rFB1")},"data-v-534946b3",null).exports,l={name:"create-classify",props:{showDialog:{type:Boolean,default:!1},classifyName:{type:String,default:""},classifyId:{type:String,default:""},appName:{type:String,default:""}},components:{limitInputBlur:o},data:function(){return{repProjectName:"haoban-manage-web",customDialog:!1,formData:{classifyName:"",classifyId:this.classifyId},rules:{classifyName:[{required:!0,message:"请输入分类名称",trigger:"blur"}]}}},methods:{handleClose:function(e){e(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.formData.classifyName="",this.$emit("hideDialog","","")},customConfirm:function(e){var t=this;t.formData.classifyName=t.formData.classifyName.replace(/\s+/g,""),t.$refs[e].validate(function(e){if(!e)return!1;t.setData()})},setData:function(e){this.$emit("hideDialog",this.formData.classifyName.replace(/\s+/g,""),this.formData.classifyId)}},watch:{showDialog:function(e,t){this.customDialog=e},classifyName:function(e,t){this.formData.classifyName=e},classifyId:function(e,t){this.formData.classifyId=e}},mounted:function(){this.customDialog=this.showDialog,this.formData.classifyName=this.classifyName,this.formData.classifyId=this.classifyId}},r={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:"app-dialog",attrs:{title:""==e.classifyName?"新增分类":"编辑分类",visible:e.customDialog,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"app-dialog-body"},[a("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info"}),e._v(" "),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title"},[e._v("新建分类默认排序最后,可在分类列表中调整显示排序")])])]),e._v(" "),a("el-form",{ref:"classifyForm",attrs:{model:e.formData,"label-width":"94px",rules:e.rules}},[a("el-form-item",{attrs:{label:"分类名称:",prop:"classifyName"}},[a("limitInputBlur",{attrs:{inputWidth:440,inputValue:e.formData.classifyName,holder:"请输入分类名称",getByType:"word",maxLength:8},on:{"update:inputValue":function(t){e.$set(e.formData,"classifyName",t)}}})],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{"padding-bottom":"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.customCancel}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.customConfirm("classifyForm")}}},[e._v(e._s(""==e.classifyName?"新 建":"保 存"))])],1)])],1)},staticRenderFns:[]};var c=a("VU/8")(l,r,!1,function(e){a("HlpQ")},"data-v-312f3f75",null);t.a=c.exports},DrLJ:function(e,t){},HlpQ:function(e,t){},OVYO:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("//Fk"),s=a.n(i),n=a("Ke24"),o=a("fPyK"),l=a("0tMm"),r=a("DAYN"),c=a.n(r),u=a("P9l9"),d=a("3E4D"),h=a("Ch4/"),f={name:"noticeList",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{bgHeight:window.screen.availHeight-380+"px",topMenuData:[{id:"1",name:"企业公告列表"}],classifyList:[],enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId,activeId:" ",activeBrand:this.brandId,activeGroup:this.activeGroupId,searchTitle:"",dateValue:"",startTime:"",endTime:"",tableData:[],pageSize:20,currentPage:1,totalCount:0,noReadCount:0,readCount:0,readList:[],noReadList:[],loading:!1,dialogNoticeVisible:!1,dialogVisible:!1,defaultImg:a("mt/x"),imgUrl:"",imgShowFlag:!1,readId:"",readPageSize:20,readPageNum:1,unreadPageSize:20,unreadPageNum:1,activeClassify:"",classifyIndex:"",classifyName:"",classifyId:"",showDialog:!1}},filters:{formatTimeYMD:function(e){var t=new Date(e),a=t.getMonth()+1,i=t.getDate()<10?"0"+t.getDate():t.getDate(),s=a<10?"0"+a:a;return t.getFullYear()+"-"+s+"-"+i},formatTimeHMS:function(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getNoticeList(),this.getClassifyData())},activeGroupId:function(e,t){e&&(this.activeGroup=e,this.activeClassify="",this.classifyName="")}},mounted:function(){this.activeBrand=this.brandId,this.brandId&&(this.getNoticeList(),this.getClassifyData())},methods:{selectClass:function(e){this.activeClassify=e?e.labelId:"",this.getNoticeList()},itemMoveEnd:function(e){var t=this,a={labelIds:this.classifyList.map(function(e){return e.labelId}).join(",")};Object(u.e)("/haoban-app-announcement-web/sort-label",a).then(function(e){var t=e.data;1!=t.errorCode?h.a.errorMsg(t):d.a.showmsg("排序成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toRename:function(e,t){this.showDialog=!0,this.classifyId=e?e.labelId:"",this.classifyName=e?e.labelName:"",this.classifyIndex=e?t:""},toDel:function(e,t){var a=this;if(e.noticeCount)return a.$message({message:"分类下还有公告,不可删除",type:"warning"}),!1;a.$confirm("是否要删除选中的分类?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDelClass(e,t)}).catch(function(){})},postDelClass:function(e,t){var a=this,i={labelId:e.labelId};Object(u.e)("/haoban-app-announcement-web/delete-label",i).then(function(e){var i=e.data;if(1==i.errorCode)return d.a.showmsg("删除成功","success"),void a.classifyList.splice(t,1);h.a.errorMsg(i)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},hideDialog:function(e,t){if(console.log(t),""==e)return this.showDialog=!1,this.classifyName="",this.classifyId="",this.classifyIndex="",!1;t?this.editLabel(e,t):this.addLabel(e)},addLabel:function(e){var t=this,a={enterpriseId:t.enterpriseId,brandId:t.activeBrand,labelName:e};Object(u.a)("/haoban-app-announcement-web/create-label",a).then(function(a){var i=a.data;if(1==i.errorCode)return d.a.showmsg("新建成功","success"),t.classifyList.push({labelId:i.result,labelName:e,noticeCount:0}),t.showDialog=!1,t.classifyName="",t.classifyId="",t.classifyIndex="",t.$refs.classify.formData.classifyName="",!1;h.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},editLabel:function(e,t){var a=this,i={labelId:t,labelName:e};Object(u.a)("/haoban-app-announcement-web/update-label",i).then(function(t){var i=t.data;if(1==i.errorCode)return d.a.showmsg("重命名成功","success"),a.showDialog=!1,a.classifyName="",a.classifyId="",void(a.classifyList[a.classifyIndex].labelName=e);h.a.errorMsg(i)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},getClassifyData:function(){var e=this,t={brandId:e.activeBrand};Object(u.a)("/haoban-app-announcement-web/list-label",t).then(function(t){var a=t.data;1==a.errorCode&&(e.classifyList=a.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},exportReadExcel:function(){var e=this,t={announcementId:e.readId};Object(u.b)("/haoban-app-announcement-web/announcement-readstatus-export",t).then(function(t){if(!t.data)return h.a.errorMsg("暂无数据"),!1;var a=new Blob([t.data],{type:"application/vnd.ms-excel"}),i=e.readTitle+"已读未读名单.xlsx",s=document.createElement("a");s.download=i,s.style.display="none",s.href=URL.createObjectURL(a),document.body.appendChild(s),s.click(),URL.revokeObjectURL(s.href),document.body.removeChild(s)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},readDialogClose:function(){this.readTitle=""},showImage:function(e){if(!e||""==e)return!1;this.imgShowFlag=!0,this.imgUrl=e},hideImage:function(e){this.imgShowFlag=e},getNoticeList:function(){var e=this;e.loading=!0;var t={labelId:e.activeClassify||"",startTime:e.startTime,brandId:e.activeBrand,title:e.searchTitle,endTime:e.endTime,pageNum:e.currentPage,pageSize:e.pageSize};Object(u.a)("/haoban-app-announcement-web/announcement-list",t).then(function(t){var a=t.data;e.loading=!1,1==a.errorCode&&(e.tableData=a.result.list,e.totalCount=a.result.total)})},changeDate:function(e){e||(e=[]),this.startTime=e[0],this.endTime=e[1],this.currentPage=1,this.getNoticeList()},searchNotice:function(){this.currentPage=1,this.getNoticeList()},clearInput:function(){this.currentPage=1,this.getNoticeList()},delNotice:function(e,t){var a=this;this.$confirm("是否要删除选中的公告?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var i={announcementId:e};Object(u.a)("/haoban-app-announcement-web/announcement-delete",i).then(function(e){var i=e.data;1==i.errorCode?(a.totalCount--,a.tableData.splice(t,1),0==a.tableData.length&&(a.currentPage>1?(a.currentPage--,a.getNoticeList()):a.totalCount>0&&a.getNoticeList()),a.$message.success("删除成功")):a.$message.error(i.message)})}).catch(function(){})},loadMore:function(e){if(1==e){if(this.readList.length>=this.readCount)return!1;this.readPageNum++,this.getDetailApi(this.readId,{pageSize:this.readPageSize,pageNum:this.readPageNum,readStatus:1})}else{if(this.noReadList.length>=this.noReadCount)return!1;this.unreadPageNum++,this.getDetailApi(this.readId,{pageSize:this.unreadPageSize,pageNum:this.unreadPageNum,readStatus:0})}},readDetail:function(e,t){var a=this;a.readTitle=t,a.readList=[],a.noReadList=[],a.readPageNum=1,a.unreadPageNum=1,a.readId=e,a.dialogNoticeVisible=!0,s.a.all([a.getDetailApi(e,{pageSize:a.readPageSize,pageNum:a.readPageNum,readStatus:1})]).then(function(){a.getDetailApi(e,{pageSize:a.unreadPageSize,pageNum:a.unreadPageNum,readStatus:0})})},getDetailApi:function(e,t){var a=this,i={announcementId:e,pageSize:t.pageSize,pageNum:t.pageNum,readStatus:t.readStatus};Object(u.a)("/haoban-app-announcement-web/announcement-detail",i).then(function(e){var t=e.data;1==t.errorCode?1==i.readStatus?(t.result.list&&t.result.list.length&&t.result.list.forEach(function(e){a.readList.push(e)}),a.readCount=t.result.total):(t.result.list&&t.result.list.length&&t.result.list.forEach(function(e){a.noReadList.push(e)}),a.noReadCount=t.result.total):a.$message.error(t.message)})},handleSizeChange:function(e){this.pageSize=e,this.getNoticeList()},handleCurrentChange:function(e){this.currentPage=e,this.getNoticeList()},toSetTop:function(e,t){var a=this;a.$confirm(0==t?"置顶后,该公告将出现在手机好办企业公告顶部,确认置顶该公告吗?":"确定「取消置顶」该条公告吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postTop(e,t)})},postTop:function(e,t){var a=this,i={announcementId:e,pageTop:0==t?1:0};Object(u.a)("/haoban-app-announcement-web/announcement-top",i).then(function(e){1==e.data.errorCode&&(0==t?d.a.showmsg("置顶成功","success"):d.a.showmsg("取消置顶成功","success"),a.currentPage=1,a.getNoticeList())}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handlePreview:function(e){this.$refs.qrcodePreview.qrcode(e,"announcement"),this.dialogVisible=!0},handleShow:function(e){},addNotice:function(){this.$router.push("/addNotice?appIcon="+this.$route.query.appIcon)}},components:{commonDetailTop:n.a,qrcodeDialog:o.a,draggable:c.a,createClassify:l.a},beforeDestroy:function(){this.readList=[],this.noReadList=[],this.readPageNum=1,this.unreadPageNum=1}},g={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"notice-list-wrap"},[a("div",{staticClass:"notice-list"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"notice-list-body flex",style:{"min-height":e.bgHeight}},[a("div",{staticClass:"notice-list-body_left border-box",style:{"min-height":e.bgHeight}},[a("div",{staticClass:"add-classify",on:{click:function(t){e.toRename("")}}},[a("span",[e._v("新建分类")])]),e._v(" "),a("div",{staticClass:"classify-list"},[a("div",{class:["classify-all",""==e.activeClassify?"active-class":""],on:{click:function(t){e.selectClass("")}}},[a("span",[e._v("所有分类")])]),e._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list",options:{group:{name:"people",pull:!1,put:!1},sort:!0}},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd},model:{value:e.classifyList,callback:function(t){e.classifyList=t},expression:"classifyList"}},[e._l(e.classifyList,function(t,i){return[a("li",{key:i+"item.classifyName"},[a("div",{class:["li-wrap border-box",e.activeClassify==t.labelId?"active-class":""],on:{click:function(a){if(a.target!==a.currentTarget)return null;e.selectClass(t)}}},[a("i",{staticClass:"iconfont icon-paixu",on:{click:function(a){if(a.target!==a.currentTarget)return null;e.selectClass(t)}}}),a("span",{staticClass:"label-text",on:{click:function(a){if(a.target!==a.currentTarget)return null;e.selectClass(t)}}},[e._v(e._s(t.labelName))]),e._v(" "),a("el-popover",{attrs:{placement:"bottom",width:"99",trigger:"click","popper-class":"classify-list-pop border-box"}},[a("div",[a("div",{staticClass:"classify-oprate-cell class-rename text-center",on:{click:function(a){a.stopPropagation(),e.toRename(t,i)}}},[e._v("重命名")]),e._v(" "),a("div",{staticClass:"classify-oprate-cell class-del text-center",on:{click:function(a){a.stopPropagation(),e.toDel(t,i)}}},[e._v("删除")])]),e._v(" "),a("i",{staticClass:"el-icon-more font-8 classify-list-oprate",attrs:{slot:"reference"},slot:"reference"})])],1)])]})],2)],1)])]),e._v(" "),a("div",{staticClass:"notice-list-body_right"},[a("div",{staticClass:"notice-list-table"},[a("div",{staticClass:"search-wrap"},[a("el-input",{staticClass:"search-input",attrs:{clearable:"",placeholder:"请输入公告标题","prefix-icon":"el-icon-search"},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.searchNotice(t):null}},model:{value:e.searchTitle,callback:function(t){e.searchTitle=t},expression:"searchTitle"}}),e._v(" "),a("el-date-picker",{staticClass:"search-date",attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.dateValue,callback:function(t){e.dateValue=t},expression:"dateValue"}}),e._v(" "),a("el-button",{staticClass:"fr",attrs:{type:"primary"},on:{click:e.addNotice}},[e._v("新建公告")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"title",label:"公告标题","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"公告封面"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.imgUrl?a("div",{staticClass:"notice-img"},[a("el-popover",{attrs:{"popper-class":"notice-img-popover",placement:"right",width:"400",trigger:"hover"}},[a("div",{staticClass:"img-preview flex"},[a("img",{staticStyle:{"max-width":"400px"},attrs:{src:t.row.imgUrl,alt:""}})]),e._v(" "),a("img",{attrs:{slot:"reference",src:t.row.imgUrl,alt:""},slot:"reference"})])],1):a("div",{staticClass:"notice-img"},[a("img",{attrs:{src:e.defaultImg,alt:""}})])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"address",label:"读取情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.readDetail(t.row.announcementId,t.row.title)}}},[e._v(e._s(t.row.readCount)+"/"+e._s(t.row.noReadCount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"address",label:"发布时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.sendTime?a("div",{staticClass:"time-wrap"},[a("p",[e._v(e._s(e._f("formatTimeYMD")(t.row.sendTime)))]),e._v(" "),a("p",[e._v(e._s(e._f("formatTimeHMS")(t.row.sendTime)))])]):a("div",[e._v("--")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"opr",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.toSetTop(t.row.announcementId,t.row.pageTop)}}},[e._v(e._s(1==t.row.pageTop?"取消置顶":"置顶"))]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleShow(t.row.announcementId)}}},[e._v("查看")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.delNotice(t.row.announcementId,t.$index)}}},[e._v("删除")])]}}])})],1),e._v(" "),e.totalCount>0?a("div",{staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageSize,"current-page":e.currentPage,layout:"total, sizes, prev, pager, next",total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])])],1),e._v(" "),a("el-dialog",{attrs:{title:"读取情况",visible:e.dialogNoticeVisible,width:"618px"},on:{"update:visible":function(t){e.dialogNoticeVisible=t},close:e.readDialogClose}},[a("div",{staticClass:"read-list-wrap"},[a("div",{staticClass:"read-list-lt"},[a("div",{staticClass:"read-list-title"},[e._v("已读("+e._s(e.readCount)+")")]),e._v(" "),e.readList.length?a("ul",{staticClass:"read-list"},e._l(e.readList,function(t,i){return a("li",{key:i},[e._v(e._s(t))])})):a("div",{staticClass:"no-read-list-data"},[e._v("暂无数据")]),e._v(" "),a("div",{staticClass:"load-data load-read-data",on:{click:function(t){e.loadMore(1)}}},[e._v(e._s(e.readCount==e.readList.length?"已加载全部已读人员":"点击加载更多"))])]),e._v(" "),a("div",{staticClass:"read-list-rt"},[a("div",{staticClass:"read-list-title"},[e._v("未读("+e._s(e.noReadCount)+")")]),e._v(" "),e.noReadList.length?a("ul",{staticClass:"read-list"},e._l(e.noReadList,function(t,i){return a("li",{key:i},[e._v(e._s(t))])})):a("div",{staticClass:"no-read-list-data"},[e._v("暂无数据")]),e._v(" "),a("div",{staticClass:"load-data load-unread-data",on:{click:function(t){e.loadMore(0)}}},[e._v(e._s(e.noReadCount==e.noReadList.length?"已加载全部未读人员":"点击加载更多"))])])]),e._v(" "),a("div",{staticClass:"read-dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogNoticeVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.exportReadExcel}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),e._v("下 载")])],1)]),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}}),e._v(" "),a("create-classify",{ref:"classify",attrs:{classifyName:e.classifyName,classifyId:e.classifyId,showDialog:e.showDialog},on:{hideDialog:e.hideDialog}}),e._v(" "),a("vue-gic-img-preview",{attrs:{imgUrl:e.imgUrl,imgShowFlag:e.imgShowFlag},on:{hideImage:e.hideImage}})],1)},staticRenderFns:[]};var m=a("VU/8")(f,g,!1,function(e){a("DrLJ")},"data-v-75a52bd0",null);t.default=m.exports},"mt/x":function(e,t){e.exports="data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAADcCAYAAAAbWs+BAAAbLklEQVR4nO3d2XLjSJYm4B/7SnCRqCUyMrpresy6uq9q+v0foy/KrKcqayo2SVxAYl8c7nMBKlISIWVIIkGAPJ9ZmtIy0yJckfzlDsfx41KcFgKEkFbIhx4AIaeEAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIiyhwhLSIAkdIi9RDD+DUlKxCljPkBUNWMGQ5Q8kqcC5QcQHOOSRZgiLLUGQJmqrA0FWYhgpz81VTlUN/G+SNpDgtxKEHcezygsEPUiRZiSDKoaoKFFWBqihQVRmKLEOSJMiyBEmSIIQAFwKCC3AuwKoKjP3+l+casE0NY8+CodPPzD6hwO0JqzjWYYbFOkGaMZimDk1ToWsqFOXtK/mq4ihKhrJkyLIClqnibGhjODChvuPXJe2gwO0Yqzjmfozv8wimocGyDGiqClmWdv57cS5QMoY0zZHlBa7PBzgfOxS8DqPA7QjnAjM/xrdZANsy4djmu2ay16qqCnGSI0kzfJh6mE4cyNLuQ07ehwK3A4tVgn988+E6FhzbgKIcblODVRWSJEMUZ/jXD2OcjeyDjYVso8C9Q1FWuJmHCJICA9eGrnVnA6MsGYIwgefouDofQNdoZ7MLKHBvtAoz/O3zAt7AhutYhx7Os6I4hSQ4phMHQ9c89HBOHgXuDe6WEb7dhRgNXRiGdujh/KEsL7Bax/h4UT/bkcOhwL3St7sAs1WCyWgAtUcvoBmrsFyFmI5tfJh6hx7OyerOQ0cPfL0L4AcZzifDvWzz75OqKjifDLFYhQBAoTsQemHzk24XEearBOPRoHdhuyfLEiYjFzM/wc08PPRwThIF7icsVgm+z0Ocjb3ehu2eLMs4G3u4WURYrtNDD+fkUOD+QJQU+Mc3H+PRoNUX2fukKDLGQxe/fV0izctDD+ekHMcnaE+EAGZ+jPHQ7dQ7tl3QdQ1Dz8FsGR96KCeFAveCr3dr5CWHZRmHHspeOLaJOGP4ehcceigngwL3jCDOsVil8AbHXRrlbWa5OC0OPZSTQIF7xsyP4Q1sSEdeACxLEgYDm5aWLaHANXh4hu0U2JaBMC2xCmnXct8ocA1myxiDI19KPjVwLZrlWkCBe2K5TlBxHN2u5B8xdA1ZyRFE2aGHctQocE/M/LjT1f/75DomZj7NcvtEgXsgTgsUJYd+oo15TENHmJTIC3booRwtCtwDqzA7mY2S59iWjmVAmyf7QoHb4ELgdhHBNE47cKap4xu9CN8bCtxGmpVQVaVXZ9z2QVUUaJqKJKMay32gwG0kWXlyO5NNJEmCrqlUebInFLiNMM6h691vl9AGjQK3NxQ4AAKAH6TU2WpDVRUsVwmEoO4bu0aBQ93vQ5ZlyDL9cQD1eTlZlsEqfuihHB36hAHIcgZNVY6+UPlnKZsfPoxR4HaNAoe6oeuxnObeFVmWaIbbA/qUoX4HR7PbYxS4/aDAAbQ50ICe4faDAoe6dwlNcI9JkoSKArdzFDjUp55pkttGy+zdo8Chfl6hZeVjXAgoPe/B2UUUOFDgmgguet/0tosocABURQbnFLiHOOfQTryQex8ocABMQwVjFc1yD1ScQ1Xp47Fr9CeKunaw4pxmuY2qqmiG2xMKHAAJwNA1wVh16KF0AmMcA9uAStU3O0d/ohuOraMo6dAlABQlg23SUaV9oMBtuJaOgprnAADKksGxTrvVxL5Q4DYsQ0PJ6meXU8Y5R1GWcGwK3D5Q4DZUVcZoYCI/8fvS8qLEaGDR89ue0J/qA2PPQpqddmuBJMlxPjqtNu9tosA9MHQN5EUJVp3mbiVjFfKihOsc5314XUCBe0CSJPxy4SFJTrO/fhSn+PVqBCro2h8K3BPTsYM4yVGd2OYJYxXSrKDl5J5R4J6QZQnX5wNE0Wm1+47iFB8vPSpY3jMKXIOrcxdJmp1M5UlRMkgQuJi4hx7K0aPANZAkCR8vhwjC5NBDaUUQxJhOnEMP4yRQ4J5xMXFhmyrSLD/0UPYqilMMXQNnQ3p2awMF7gXTsYN1EB9tb4+iKBGECS7PaCnZFgrcC1xbx/XUw8IPju6sXFVx+OsIf/plAuNEL6A8BArcH7g6c3E2tOCvo0MPZaf8dYSrMxeT4Wler3woFLif8PFyCM/W4K+OI3TLVYiRa+DqfHDooZwcCtxP+vVqBNdSsQ76fen8KogxsDT8ejU89FBOEgXuFT5dj2AbCparsHfPdEII+KsQjqHg0/Xo0MM5WRS4V/p0PcLQ0bFYBr0pcmaswmIZwHN0CtuB0fbUG3y8HEJTFXyfBxh6Dkyju4c1s7zAah3jl4sBVZJ0gBSnRb/WRh0SRBlmfgzGJQxcq1OtwbkQCKMEmly/T/Rcc2e/thACQtQ3x0pS3YSpS997l1Hg3qmqOG7mIearFAPXgmUd9iyZEAJpmiOMM0zHNj5MB28OQ15WKAqGvKyQ5SXyosIqTOvjOw9/TSEgUB/g1TUFhq5CVWQYukrNiJ6gwO1InBaYLWNEaQnHNmGa7S8z06xAHKfwXAPTsfPqD3teMIRJgTgtkBcMSVZCVRQoigxVVaAqCiRZ+jGjSZK0me3qGY8LgaqqUFUcnHOwikNXZVimBs8x4DnGyV98SYHbsSDOMVvGSPISlmHAsoy9HnmpOEea5kizAq6lYTp2MHjFie00LxElBZbrBFleQddV6JoKRVWgqcq77j0XAigZAysZ8qL80S9l4lmwTA26dnqNZilwexIlBfwgxXwVQ9c0WJYBTVWgvrObsRAAqyqwkiHNChRlienYwcSzYL+itZ0fpFgGKeKkgK5rsEwdmqbu9VmMc448L5FmBUrGcDa0cTayT2rZSYHbM1bxHzOIH6QwdA2aptYX1ysyFFnaLNN+/3pPkgDORR0wVi/VirKEIkuwDQ3joQXH0n+6w5YAsFwlmPkxuAAs0zjI0heow5dmBZI0r2fmiYOBffy9VChwLQvjHHFaoGQcJavgB+nmeahpp69+RuKcYzp2YOgqHEuH+4aekX6Q4u9flrAsA45tQte68UZICIEsLxEnKYaOgenEgWUc74xHgTuw+82G+82HR/eJCAFZlqE9uMXmvsLlZ5d+aV5itoyxjnIMBjYMvbsf5jjJEMUpLicurs7do3zVQIF7B84FSlaBVRxFWSHNSzDGwYUA56IO0g5v5BEAojgHJOD//PnDH34g56sE//y+gjew4di7ew+3T5xzhHEKQ5UwHbtvms27jAL3SklaIE5LpHmJ+SqBLNfPYfXWuQpZln5smTcvE99HArBax/jzn85fPMf25XaNZZBh5DnQOrJ8fI00y7EOYvxy4R1VhQwF7g9UXCDNSizWCeK0AKsEdE2Fqio/ts/lFpc+YZRgYGu4fuZoTV4w3C4ixBnD0HN6vSxjrMIqiDByzaM53UCBe0acFgiiHN/nITRNhW3q0HS1fvl7oA9xnGTQFeDDhde4MxnGOWZ+jEpIcJ3jOFgqBLAKIrimio9Xw1Z/uO0DBe6JIMoxW8WI0xKmUb8/U5XDv6DN8xJlWeDXyyFMY3uJuFgn+H/fVhgP3YNt9e9TEMawdAXXU+/RJlLfUOA2/CDFzI9RMA7HOkxp1nOqimO2WOFPv0wwGmxvfvhBin988zEZe53Z7t+HMEphanULw742rD35wK03Ff95weE4Zie3zZd+iLOh2dgSIYhy/M8/5zibeJ0c+64FYQJLl3t7ru9kA3f/vJNkDI5jdvZMW7TZIm/6gOUFw5fbNWRF69SMvG/+un6m62Po+rsYfofbRYS/fV4CsoqzidfZsDFWIYzSZ/tG3i4icMgnFTYAGA9drOMCt4v+NXU63gV/g7yscDsPESYlzs+GnT8qEkQJPl56je/bvtyuEaYlJqPT7Lw1Hjr4erd+c6nboXT7E7dDqzDDf//PDXImMBkPOh+2LC9ganLjS9/lOsFinWI8PJ4Xwq+lKApGnoOZ368uat3+1O3I3TLCb1+XOBt7vXk/FYQJpuPtCzaEEJj5MUbecdYavoZlGUhzhu/z8NBD+WlHH7ivdwFu5hHOJ0MYPalCj5MM44HZ2Ifk2yyEkGTo1J4cAOB5Dr7PQqRZeeih/JSjDtyX2zVWYY6zs+G7D362RQiBOMkar4+K0wIzP8bApZtu7imyDG9g92ZpebSB+3oXwA8yjEdur8qB0qzA0DUaz4Tdh61P308bHNvEOi6wCrp/a+1RBu7rXYBlkGEy9nr1nCNE/d6t6dktyxnWUQ77DV3BhBBgrALf4VGhfRDAm+9WH7hWL2a5o3sQuF1EWKwSnE36V/5TlCUsoz7V/dTMj950po2xCv46AmMVJEmCbRnwBt1bkqZZjjBMwQWHpqkYDwev+v9n6BqCMEGY5J1u1XBUgVuFGb7NApyf9S9sAJCkOS4n22EoGcd8leJy+rrKCiEElqsQ1+cuzkYOOOe4mUdYBzGGXneuGM7yAqJi+LdfJzANFXfLCItViLPx63pquo6F2TLudOCOZklZlBVmfozxcNCJ6v7X4lwgz0t4zvYsNl/FcGzj1cvjPC/hWjouJi4UWYKmKvW5MsFRlGxXQ38XIQSCoH4F4tp1Q6QPUw+mJr96jJapI0wKZEU3vrcmRxO4m3kISHJvtv6fyvICY89sPHry7S54U/kZF6Lx3Nx07CAMkzeNc9eSNMfY234FoqoK+BuuerYtA4tVN763JkcRuJkfYx0XvXmp3STPy8b3bnFaQNfUN7VJ0HUV81WMpzdrnY1sWIaCLC/eOtydEEIgjNKtVyBFWbdU199w+sE09brGtKMbRL0PXMkqfL5ZdeqZ5LU4FyjKevn31DrMYLyxuFpVFNi2idvFdiVGPcsddhs9ilNcNLTFm/kxXMd6U/mdqij1Bkqc72qYO9X7wN3MI7iODa0nL7absKqCqatbrb+FAL7PQ5jv6Ew8cCx8m4WonizPPNfE0NWRpIf5YHLOEcXZ1kmIJCsx8+N3dRkzDQ3rKHvvEPei14ELkxzLIIXr9ncpCQBFUTZWvBclg6oo0NS3byYrigzHNnHTcJRlOnYQRelBbnMNoxTX54OtZ8yZH2PgvO/qL93QsFglnVxW9jpws2VdedG/FwCPFQVrvIAjTIqd1Ezeb5en+eN6Q9vSMRmarc9yjFVIkgxX549nt3WUYRVmsN/ZQ1NV6jscnn6/XdDbwK3DDHFawjqCw5clYzAbdlfDONvJrqssS3CfqcSYjl2EUdrqbBBGCT5eDbdmsZkf7+ylvKFr+Otvs538WrvU28AdSxFvfZeagNawQZDmbGdF17ZlwA8yRMnjnUnTUHE5cRDF7WygFAWDImPrnN9ynSDNq52dvte0uikve8OrhX3qZeCStECSs96+c3uIVRWEEFuVMaziyAsGWdrN/yJJkjb1htvPcpfnA8RJtrWxsg9h1HzO77evPrwd/gBVFRmSJLfyPb1GLwM3XyVvKuLtIsaqxg9gXtQbJrssUbNMA2FSYhU+3sFTZAkfpoO9z3J5XsLQZUyGj4N1t4xgmfpOz/jJsgxFkVGyame/5i70LnCcC8xXSWcb/7xWVfHGm0DzsoKyhy7Pnmu/OMuxPX5A69nt8VKSC4EvN+udPx5IsgRVkZEVFLh3WYUpTFPvfE+Sn9W0nASAivG9FGAbhoaiFFsbKBKAT1cjBNF+yqLSNIdr61uNbG8XERzH3PkBYQn1LEdLyncKovyoGp6KzR1wT3Eh9naWbzCw8M/vq61/Pp04UOV6Y2PXwoZzfqziuJmHcOx+v0d9jV4FruICy821vcdCCAGlaYbjfG+B01QVtmU09nWcjh2EO57l7nu0PH25fzsP4djmXlYr99eF8QO81H9JrwKX5SU0VTma5SRQl281BYtzgX0eVh+4Nr7eBVsnrCdDG6a+u8JmzgWihgLlNC8xWyV7LjiXDlJF85LefHIFgL/+NntTBXmnScBWOT92f5HjUz9KvubPzXK72bG8b4i0VaC8rAuU9/V9CmyW6x1rsdGbwDHGIcvH1x5OkqTGZY8s7/+n833JV/7kmW04MOE57y9srir+40TAQ0Gcww8z2NYer0He3JmuNDwfH1K3RvMCVlWQZamXp7lfIksSqoayKkVuDuJOf29ZguM8V/L1/sLmKE7xYTrYOskxW8bwXHuvS2YhNjOcQjPcm+SbMqc+9ip5iSRJjXWMsiQ1rTR3zrENLFYp4vTxM5tj6ZgMrTfPcoxVSNK8oYQrRZKXLVxAIsCf2ZA6pN4ELs0ZNFVp3ELvM0mSGlvDadrbWgy85fd33Xpp+dT9s9xbCpvDOMXHS2/rB+TMj3ZawvUcLsSmqKBbjyC9+fQWrOrcenwXFEVG0VANYWgqWNVOL0nbMhAk241UTUPFxcRBnLxuA6UsGWSIrdlt5sdgHK1sfNVF4bxz1xN3azQvEFxgr4v+A1FVBYt1srV81HUFVcUhRDuVEs+1C788cxHFrytsDhoKlLkQ+HyzbmV2A/Cj8W3Xfkh3azQv2GflxSHdFyjzJ8tKWZJgm1rjhso+GLqGvORbHa/qtnU/X9icFyV0VcbZ6EmB8qIuUG7rjgfGqk7eBd6bwAmx3xfBhyLLEmRZRsm2ZxDb1FC22D/SG9j4xzd/659fnrlI0vynCpvDhmu2WMXxbRa2en6xLBkcq3vvbHsUOEDqfTOFZpqqIsm2Kzs8x0BetNcmQNNUWA0lX5Ik4eOl94cvw9Msh2trGHuPq0fuFhFcZz8lXE2qiqNkVeMp+kPrT+AOPYA9MnQVYbIdOMfWUZas1e/dc61Nydfj3/Vi4kKWxLPdkAXqxkBPj9+keYnbZdxqgXJelJgMrc69EgB6FLhjpuna1nswANDUeuOkaHGWUxQFjm3irqmwefJ8x+Y4zjDxrK0C5brRk9Xqs1TdBa2bB5R7E7g2Ki8ORVXqZ7imLlOfrkbIGpab++Q6dVu9p6elz4Y2DE3eWuZyLhAn2yVcUVKXcL2nx+RrcS6QFyW8hi5oXdCbwGmqvLWTdywkSYKha1sNfoC6rjHLi1ar3mW5Lmx+9vjOk1kuSTNMxw6MJ3Wu97Nbm4qixMDWG0/Rd0FvAudYOoqCde64xa4YhoZ1uN0tWNcUDGwdecs9Fl3HxHyVbC11R56FoWsgTuqxlqzaPLs9nt38IEWUlrDMdmeaNCswHna3m1tvAjd0TeRF0equXZsMXUeclluV+wBwPnZab9Zad/myny35CsIEy1WIpR/g16vh1owy82MMWr74sao4srzAqOFSlK7oTeAURca/fZwgCJOjnOUkqb75xW+Y5YauCUVG63e6WZuSr6d9+i1Tw1/+fI0P5y7+839dbM1ucz9GyUTrJ/PjJMP19HU3p7atN4ED6gsozoYW1kH373J+C8sysHzmbrPpxEHcUrPWexKevztbliSMPavhAhKxadLb7rObEAJpluOsw8tJoGeBA4CPl0M4porVEYZOUxVwgcarlsaehSwv99rGrolp6MhLji+365/67z/friHJypvus3uPNCswHpid3Sy517vAAcCn6xEcQ8F8se5co8/3cmyz8blJliR8vBwiOMDNpeOhCz/M8O0uePG/+3yzRhiXrd/Vx7moe14+OZ3QRVKcFr19IJr5MT7frGFbxqZzb/dKed5itljjX66HGDY8/P/9yxKSrLZwgPMxzgX8dQjH1DAamDAN9cdp9TQrsQpTFExgOHRbL8BbhzEGloZfLryWf+fX63XggPoUwcJPsAxSFKyCpqrQdRWGrvX2sGqWF6jKEv/709nWvwvjHH/7ssT0fHSQBjlpmiPLC5SsghB18bWmKjBN/SDdsIuSYb5Y47/+40MvTpP0PnAPRUmBNCsRpTlWYQ5VkaHrGjRV2bRnkCHJUuc6OTVZrSNcjO2tYy4A8PUuQBAXGA0Pt4QSQmxa/O2/w9hLZos1fpkOGv+cuuioAvdQyTiKkiFKCiRZiSwvkeYMiiJDkWXIsgxZljYNQ6UfjUN/fMXv/wz3/76lsUtS/ULZX0X4y79fN25z//3LEpDVo7gf763WQQzbUPDpenToofy0bjV82CFNlaGpOpwHF9VXvK52Z6w+vsE2d7NxIR585RD3fy+AIMp+/ARv9we59OjLU9Oxg//7eQFdGx1VY9yflaQ5TF3uVdiAI57hdolvlk+ttNHC701MFUV+cfl7Mw8xW6U4Gw968fyyK2XJMF8G+Pd/PX/0A7UPjnaG2yW5XmPi2enmQK7OB2AVh7+KMBkPDj2cVjBWYemH+HQ17F3YgJ6+hyO/+3g5xMDWjrb65iHOBZarEB8uBjhvuMSyDyhwR+DT9Qi2oRx16KqKY+EHmI7srfZ7fUKBOxL3ofNX0dEVd9fPbGtMxzY+9ODl9ksocEfk0/UInqNh6YeN3Zz7KMsLLPwQv14OcX3e/+dU2qU8Qt/nIW4XEUaeC6ODnat+VhilkMExnTiNZW59RIE7Uqsww98+LzBw7daPyrxXxTnWQV0feT31Oteu/D0ocEesZBVu5hHWUQ7XtXpxVXOcZIjiFJdn7lEsIZ+iwJ0AP0gx82NUvD5QqnTwjr08LxFGCYaugYuJC9M4zlfEFLgTcruI8PUugG0ZsC2j9UOiTwkhkOcl4iSDqSuYjh0MB8fxrPYcCtyJuT/OtFgn4AIwjPpYTZt9QCrOkaY50qyAY6qYjl14bjf7SO4aBe6E+UGKIMrhhyk0TYVt1rPePoqhK87rW1GTDHnBcDFxMBqYvSzPeg8KHEFRVojTAn6QYhVmPw7wqqqyuU5LftUMKABUrAJjFVhVoSgZiqK+zWY6duDa+ta936eCAkce4UIginOEcY40Zwjj/Efgmr7WB1HrvzgX9a2tFUfFOTzHgGlocCwNjnW6IXuIAkdeVC8FOVj14OvmOqiq4r8HUJKgKDIMXYGuKdBV5STP6f2R49x7JTujyDIUXcZpbGnsH/0IIqRFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RFFDhCWkSBI6RF/x8qjTga7LYI7gAAAABJRU5ErkJggg=="},rFB1:function(e,t){}});
\ No newline at end of file
webpackJsonp([12],{"0tMm":function(e,t,a){"use strict";var i=a("Mk6G"),s={name:"limitinput",props:{inputValue:{type:[String,Number],default:function(){return""}},maxLength:{type:Number,default:10},inputWidth:{type:Number,default:500},getByType:{type:String,default:"word"},holder:{type:String,default:"请输入"},disflag:{type:Boolean,default:!1},limitClass:{type:String,default:""}},data:function(){return{inputNum:0,limitLength:10,itemValue:""}},methods:{inputFocus:function(e){},toInput:function(e){var t="";"word"==this.getByType?(t=i.a.getByteVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=i.a.getZhLen(this.itemValue)):(t=i.a.getCharVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=i.a.getByteLen(this.itemValue)),this.$emit("update:inputValue",this.itemValue)}},watch:{maxLength:function(e,t){this.limitLength=e},inputValue:function(e,t){this.itemValue=e||"","word"==this.getByType?this.inputNum=i.a.getZhLen(this.itemValue):this.inputNum=i.a.getByteLen(this.itemValue)}},mounted:function(){this.limitLength=this.maxLength,this.itemValue=this.inputValue||"","word"==this.getByType?this.inputNum=i.a.getZhLen(this.inputValue):this.inputNum=i.a.getByteLen(this.inputValue)}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:["input-line-cell",e.limitClass],style:{width:e.inputWidth+"px"}},[a("el-input",{style:{width:e.inputWidth+"px"},attrs:{disabled:e.disflag,placeholder:e.holder},on:{focus:function(t){e.inputFocus()},blur:function(t){return e.toInput(t)}},model:{value:e.itemValue,callback:function(t){e.itemValue=t},expression:"itemValue"}}),e._v(" "),a("span",{staticClass:"tip"},[a("span",{staticClass:"len_span"},[e._v(e._s(e.inputNum))]),e._v("/"+e._s(e.limitLength))])],1)},staticRenderFns:[]};var o=a("VU/8")(s,n,!1,function(e){a("rFB1")},"data-v-534946b3",null).exports,l={name:"create-classify",props:{showDialog:{type:Boolean,default:!1},classifyName:{type:String,default:""},classifyId:{type:String,default:""},appName:{type:String,default:""}},components:{limitInputBlur:o},data:function(){return{repProjectName:"haoban-manage-web",customDialog:!1,formData:{classifyName:"",classifyId:this.classifyId},rules:{classifyName:[{required:!0,message:"请输入分类名称",trigger:"blur"}]}}},methods:{handleClose:function(e){e(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.formData.classifyName="",this.$emit("hideDialog","","")},customConfirm:function(e){var t=this;t.formData.classifyName=t.formData.classifyName.replace(/\s+/g,""),t.$refs[e].validate(function(e){if(!e)return!1;t.setData()})},setData:function(e){this.$emit("hideDialog",this.formData.classifyName.replace(/\s+/g,""),this.formData.classifyId)}},watch:{showDialog:function(e,t){this.customDialog=e},classifyName:function(e,t){this.formData.classifyName=e},classifyId:function(e,t){this.formData.classifyId=e}},mounted:function(){this.customDialog=this.showDialog,this.formData.classifyName=this.classifyName,this.formData.classifyId=this.classifyId}},r={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:"app-dialog",attrs:{title:""==e.classifyName?"新增分类":"编辑分类",visible:e.customDialog,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"app-dialog-body"},[a("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info"}),e._v(" "),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title"},[e._v("新建分类默认排序最后,可在分类列表中调整显示排序")])])]),e._v(" "),a("el-form",{ref:"classifyForm",attrs:{model:e.formData,"label-width":"94px",rules:e.rules}},[a("el-form-item",{attrs:{label:"分类名称:",prop:"classifyName"}},[a("limitInputBlur",{attrs:{inputWidth:440,inputValue:e.formData.classifyName,holder:"请输入分类名称",getByType:"word",maxLength:8},on:{"update:inputValue":function(t){e.$set(e.formData,"classifyName",t)}}})],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{"padding-bottom":"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.customCancel}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.customConfirm("classifyForm")}}},[e._v(e._s(""==e.classifyName?"新 建":"保 存"))])],1)])],1)},staticRenderFns:[]};var c=a("VU/8")(l,r,!1,function(e){a("HlpQ")},"data-v-312f3f75",null);t.a=c.exports},HlpQ:function(e,t){},OVYO:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("//Fk"),s=a.n(i),n=a("Ke24"),o=a("fPyK"),l=a("0tMm"),r=a("DAYN"),c=a.n(r),u=a("P9l9"),d=a("3E4D"),h=a("Ch4/"),f={name:"noticeList",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{bgHeight:window.screen.availHeight-380+"px",topMenuData:[{id:"1",name:"企业公告列表"}],classifyList:[],enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId,activeId:" ",activeBrand:this.brandId,activeGroup:this.activeGroupId,searchTitle:"",dateValue:"",startTime:"",endTime:"",tableData:[],pageSize:20,currentPage:1,totalCount:0,noReadCount:0,readCount:0,readList:[],noReadList:[],loading:!1,dialogNoticeVisible:!1,dialogVisible:!1,defaultImg:a("mt/x"),imgUrl:"",imgShowFlag:!1,readId:"",readPageSize:20,readPageNum:1,unreadPageSize:20,unreadPageNum:1,activeClassify:"",classifyIndex:"",classifyName:"",classifyId:"",showDialog:!1}},filters:{formatTimeYMD:function(e){var t=new Date(e),a=t.getMonth()+1,i=t.getDate()<10?"0"+t.getDate():t.getDate(),s=a<10?"0"+a:a;return t.getFullYear()+"-"+s+"-"+i},formatTimeHMS:function(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getNoticeList(),this.getClassifyData())},activeGroupId:function(e,t){e&&(this.activeGroup=e,this.activeClassify="",this.classifyName="")}},mounted:function(){this.activeBrand=this.brandId,this.brandId&&(this.getNoticeList(),this.getClassifyData())},methods:{selectClass:function(e){this.activeClassify=e?e.labelId:"",this.getNoticeList()},itemMoveEnd:function(e){var t=this,a={labelIds:this.classifyList.map(function(e){return e.labelId}).join(",")};Object(u.e)("/haoban-app-announcement-web/sort-label",a).then(function(e){var t=e.data;1!=t.errorCode?h.a.errorMsg(t):d.a.showmsg("排序成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toRename:function(e,t){this.showDialog=!0,this.classifyId=e?e.labelId:"",this.classifyName=e?e.labelName:"",this.classifyIndex=e?t:""},toDel:function(e,t){var a=this;if(e.noticeCount)return a.$message({message:"分类下还有公告,不可删除",type:"warning"}),!1;a.$confirm("是否要删除选中的分类?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDelClass(e,t)}).catch(function(){})},postDelClass:function(e,t){var a=this,i={labelId:e.labelId};Object(u.e)("/haoban-app-announcement-web/delete-label",i).then(function(e){var i=e.data;if(1==i.errorCode)return d.a.showmsg("删除成功","success"),void a.classifyList.splice(t,1);h.a.errorMsg(i)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},hideDialog:function(e,t){if(console.log(t),""==e)return this.showDialog=!1,this.classifyName="",this.classifyId="",this.classifyIndex="",!1;t?this.editLabel(e,t):this.addLabel(e)},addLabel:function(e){var t=this,a={enterpriseId:t.enterpriseId,brandId:t.activeBrand,labelName:e};Object(u.a)("/haoban-app-announcement-web/create-label",a).then(function(a){var i=a.data;if(1==i.errorCode)return d.a.showmsg("新建成功","success"),t.classifyList.push({labelId:i.result,labelName:e,noticeCount:0}),t.showDialog=!1,t.classifyName="",t.classifyId="",t.classifyIndex="",t.$refs.classify.formData.classifyName="",!1;h.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},editLabel:function(e,t){var a=this,i={labelId:t,labelName:e};Object(u.a)("/haoban-app-announcement-web/update-label",i).then(function(t){var i=t.data;if(1==i.errorCode)return d.a.showmsg("重命名成功","success"),a.showDialog=!1,a.classifyName="",a.classifyId="",void(a.classifyList[a.classifyIndex].labelName=e);h.a.errorMsg(i)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},getClassifyData:function(){var e=this,t={brandId:e.activeBrand};Object(u.a)("/haoban-app-announcement-web/list-label",t).then(function(t){var a=t.data;1==a.errorCode&&(e.classifyList=a.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},exportReadExcel:function(){var e=this,t={announcementId:e.readId};Object(u.b)("/haoban-app-announcement-web/announcement-readstatus-export",t).then(function(t){if(!t.data)return h.a.errorMsg("暂无数据"),!1;var a=new Blob([t.data],{type:"application/vnd.ms-excel"}),i=e.readTitle+"已读未读名单.xlsx",s=document.createElement("a");s.download=i,s.style.display="none",s.href=URL.createObjectURL(a),document.body.appendChild(s),s.click(),URL.revokeObjectURL(s.href),document.body.removeChild(s)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},readDialogClose:function(){this.readTitle=""},showImage:function(e){if(!e||""==e)return!1;this.imgShowFlag=!0,this.imgUrl=e},hideImage:function(e){this.imgShowFlag=e},getNoticeList:function(){var e=this;e.loading=!0;var t={labelId:e.activeClassify||"",startTime:e.startTime,brandId:e.activeBrand,title:e.searchTitle,endTime:e.endTime,pageNum:e.currentPage,pageSize:e.pageSize};Object(u.a)("/haoban-app-announcement-web/announcement-list",t).then(function(t){var a=t.data;e.loading=!1,1==a.errorCode&&(e.tableData=a.result.list,e.totalCount=a.result.total)})},changeDate:function(e){e||(e=[]),this.startTime=e[0],this.endTime=e[1],this.currentPage=1,this.getNoticeList()},searchNotice:function(){this.currentPage=1,this.getNoticeList()},clearInput:function(){this.currentPage=1,this.getNoticeList()},delNotice:function(e,t){var a=this;this.$confirm("是否要删除选中的公告?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var i={announcementId:e};Object(u.a)("/haoban-app-announcement-web/announcement-delete",i).then(function(e){var i=e.data;1==i.errorCode?(a.totalCount--,a.tableData.splice(t,1),0==a.tableData.length&&(a.currentPage>1?(a.currentPage--,a.getNoticeList()):a.totalCount>0&&a.getNoticeList()),a.$message.success("删除成功")):a.$message.error(i.message)})}).catch(function(){})},loadMore:function(e){if(1==e){if(this.readList.length>=this.readCount)return!1;this.readPageNum++,this.getDetailApi(this.readId,{pageSize:this.readPageSize,pageNum:this.readPageNum,readStatus:1})}else{if(this.noReadList.length>=this.noReadCount)return!1;this.unreadPageNum++,this.getDetailApi(this.readId,{pageSize:this.unreadPageSize,pageNum:this.unreadPageNum,readStatus:0})}},readDetail:function(e,t){var a=this;a.readTitle=t,a.readList=[],a.noReadList=[],a.readPageNum=1,a.unreadPageNum=1,a.readId=e,a.dialogNoticeVisible=!0,s.a.all([a.getDetailApi(e,{pageSize:a.readPageSize,pageNum:a.readPageNum,readStatus:1})]).then(function(){a.getDetailApi(e,{pageSize:a.unreadPageSize,pageNum:a.unreadPageNum,readStatus:0})})},getDetailApi:function(e,t){var a=this,i={announcementId:e,pageSize:t.pageSize,pageNum:t.pageNum,readStatus:t.readStatus};Object(u.a)("/haoban-app-announcement-web/announcement-detail",i).then(function(e){var t=e.data;1==t.errorCode?1==i.readStatus?(t.result.list&&t.result.list.length&&t.result.list.forEach(function(e){a.readList.push(e)}),a.readCount=t.result.total):(t.result.list&&t.result.list.length&&t.result.list.forEach(function(e){a.noReadList.push(e)}),a.noReadCount=t.result.total):a.$message.error(t.message)})},handleSizeChange:function(e){this.pageSize=e,this.getNoticeList()},handleCurrentChange:function(e){this.currentPage=e,this.getNoticeList()},toSetTop:function(e,t){var a=this;a.$confirm(0==t?"置顶后,该公告将出现在手机好办企业公告顶部,确认置顶该公告吗?":"确定「取消置顶」该条公告吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postTop(e,t)})},postTop:function(e,t){var a=this,i={announcementId:e,pageTop:0==t?1:0};Object(u.a)("/haoban-app-announcement-web/announcement-top",i).then(function(e){1==e.data.errorCode&&(0==t?d.a.showmsg("置顶成功","success"):d.a.showmsg("取消置顶成功","success"),a.currentPage=1,a.getNoticeList())}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handlePreview:function(e){this.$refs.qrcodePreview.qrcode(e,"announcement"),this.dialogVisible=!0},addNotice:function(){this.$router.push("/addNotice?appIcon="+this.$route.query.appIcon)}},components:{commonDetailTop:n.a,qrcodeDialog:o.a,draggable:c.a,createClassify:l.a},beforeDestroy:function(){this.readList=[],this.noReadList=[],this.readPageNum=1,this.unreadPageNum=1}},g={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"notice-list-wrap"},[a("div",{staticClass:"notice-list"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"notice-list-body flex",style:{"min-height":e.bgHeight}},[a("div",{staticClass:"notice-list-body_left border-box",style:{"min-height":e.bgHeight}},[a("div",{staticClass:"add-classify",on:{click:function(t){e.toRename("")}}},[a("span",[e._v("新建分类")])]),e._v(" "),a("div",{staticClass:"classify-list"},[a("div",{class:["classify-all",""==e.activeClassify?"active-class":""],on:{click:function(t){e.selectClass("")}}},[a("span",[e._v("所有分类")])]),e._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list",options:{group:{name:"people",pull:!1,put:!1},sort:!0}},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd},model:{value:e.classifyList,callback:function(t){e.classifyList=t},expression:"classifyList"}},[e._l(e.classifyList,function(t,i){return[a("li",{key:i+"item.classifyName"},[a("div",{class:["li-wrap border-box",e.activeClassify==t.labelId?"active-class":""],on:{click:function(a){if(a.target!==a.currentTarget)return null;e.selectClass(t)}}},[a("i",{staticClass:"iconfont icon-paixu",on:{click:function(a){if(a.target!==a.currentTarget)return null;e.selectClass(t)}}}),a("span",{staticClass:"label-text",on:{click:function(a){if(a.target!==a.currentTarget)return null;e.selectClass(t)}}},[e._v(e._s(t.labelName))]),e._v(" "),a("el-popover",{attrs:{placement:"bottom",width:"99",trigger:"click","popper-class":"classify-list-pop border-box"}},[a("div",[a("div",{staticClass:"classify-oprate-cell class-rename text-center",on:{click:function(a){a.stopPropagation(),e.toRename(t,i)}}},[e._v("重命名")]),e._v(" "),a("div",{staticClass:"classify-oprate-cell class-del text-center",on:{click:function(a){a.stopPropagation(),e.toDel(t,i)}}},[e._v("删除")])]),e._v(" "),a("i",{staticClass:"el-icon-more font-8 classify-list-oprate",attrs:{slot:"reference"},slot:"reference"})])],1)])]})],2)],1)])]),e._v(" "),a("div",{staticClass:"notice-list-body_right"},[a("div",{staticClass:"notice-list-table"},[a("div",{staticClass:"search-wrap"},[a("el-input",{staticClass:"search-input",attrs:{clearable:"",placeholder:"请输入公告标题","prefix-icon":"el-icon-search"},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.searchNotice(t):null}},model:{value:e.searchTitle,callback:function(t){e.searchTitle=t},expression:"searchTitle"}}),e._v(" "),a("el-date-picker",{staticClass:"search-date",attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.dateValue,callback:function(t){e.dateValue=t},expression:"dateValue"}}),e._v(" "),a("el-button",{staticClass:"fr",attrs:{type:"primary"},on:{click:e.addNotice}},[e._v("新建公告")])],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"title",label:"公告标题","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"公告封面"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.imgUrl?a("div",{staticClass:"notice-img"},[a("el-popover",{attrs:{"popper-class":"notice-img-popover",placement:"right",width:"400",trigger:"hover"}},[a("div",{staticClass:"img-preview flex"},[a("img",{staticStyle:{"max-width":"400px"},attrs:{src:t.row.imgUrl,alt:""}})]),e._v(" "),a("img",{attrs:{slot:"reference",src:t.row.imgUrl,alt:""},slot:"reference"})])],1):a("div",{staticClass:"notice-img"},[a("img",{attrs:{src:e.defaultImg,alt:""}})])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"address",label:"读取情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.readDetail(t.row.announcementId,t.row.title)}}},[e._v(e._s(t.row.readCount)+"/"+e._s(t.row.noReadCount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"address",label:"发布时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.sendTime?a("div",{staticClass:"time-wrap"},[a("p",[e._v(e._s(e._f("formatTimeYMD")(t.row.sendTime)))]),e._v(" "),a("p",[e._v(e._s(e._f("formatTimeHMS")(t.row.sendTime)))])]):a("div",[e._v("--")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"opr",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.toSetTop(t.row.announcementId,t.row.pageTop)}}},[e._v(e._s(1==t.row.pageTop?"取消置顶":"置顶"))]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handlePreview(t.row.announcementId)}}},[e._v("预览")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.delNotice(t.row.announcementId,t.$index)}}},[e._v("删除")])]}}])})],1),e._v(" "),e.totalCount>0?a("div",{staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageSize,"current-page":e.currentPage,layout:"total, sizes, prev, pager, next",total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])])],1),e._v(" "),a("el-dialog",{attrs:{title:"读取情况",visible:e.dialogNoticeVisible,width:"618px"},on:{"update:visible":function(t){e.dialogNoticeVisible=t},close:e.readDialogClose}},[a("div",{staticClass:"read-list-wrap"},[a("div",{staticClass:"read-list-lt"},[a("div",{staticClass:"read-list-title"},[e._v("已读("+e._s(e.readCount)+")")]),e._v(" "),e.readList.length?a("ul",{staticClass:"read-list"},e._l(e.readList,function(t,i){return a("li",{key:i},[e._v(e._s(t))])})):a("div",{staticClass:"no-read-list-data"},[e._v("暂无数据")]),e._v(" "),a("div",{staticClass:"load-data load-read-data",on:{click:function(t){e.loadMore(1)}}},[e._v(e._s(e.readCount==e.readList.length?"已加载全部已读人员":"点击加载更多"))])]),e._v(" "),a("div",{staticClass:"read-list-rt"},[a("div",{staticClass:"read-list-title"},[e._v("未读("+e._s(e.noReadCount)+")")]),e._v(" "),e.noReadList.length?a("ul",{staticClass:"read-list"},e._l(e.noReadList,function(t,i){return a("li",{key:i},[e._v(e._s(t))])})):a("div",{staticClass:"no-read-list-data"},[e._v("暂无数据")]),e._v(" "),a("div",{staticClass:"load-data load-unread-data",on:{click:function(t){e.loadMore(0)}}},[e._v(e._s(e.noReadCount==e.noReadList.length?"已加载全部未读人员":"点击加载更多"))])])]),e._v(" "),a("div",{staticClass:"read-dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogNoticeVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.exportReadExcel}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),e._v("下 载")])],1)]),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}}),e._v(" "),a("create-classify",{ref:"classify",attrs:{classifyName:e.classifyName,classifyId:e.classifyId,showDialog:e.showDialog},on:{hideDialog:e.hideDialog}}),e._v(" "),a("vue-gic-img-preview",{attrs:{imgUrl:e.imgUrl,imgShowFlag:e.imgShowFlag},on:{hideImage:e.hideImage}})],1)},staticRenderFns:[]};var m=a("VU/8")(f,g,!1,function(e){a("sJD/")},"data-v-db7cd280",null);t.default=m.exports},"mt/x":function(e,t){e.exports="data:image/jpeg;base64,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"},rFB1:function(e,t){},"sJD/":function(e,t){}});
\ No newline at end of file
webpackJsonp([15],{LArp:function(e,t){},WgFr:function(e,t){},Zx22:function(e,t,a){"use strict";var i={name:"custom-dialog",props:{value:{type:Boolean,default:!1},storeChangeData:{type:[Object,Array]}},data:function(){return{repProjectName:"gic-web",customDialog:this.value,leftData:[],rightData:[]}},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("input",this.customDialog)},formatDate:function(e,t){function a(e){return e>9?""+e:"0"+e}var i=new Date(e),s=i.getFullYear(),o=i.getMonth()+1,n=i.getDate();return s+t+a(o)+t+a(n)+t},handleData:function(){}},watch:{value:function(e,t){this.customDialog=e},storeChangeData:function(e,t){this.leftData=e.beforeContent,this.rightData=e.afterContent}},mounted:function(){this.leftData=this.storeChangeData.beforeContent,this.rightData=this.storeChangeData.afterContent}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"门店图片变更",visible:e.customDialog,width:"600px","before-close":e.handleCardClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"dialog-content"},[a("el-row",[a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[e._v("\n 变更前\n ")]),e._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[e._l(e.leftData,function(e,t){return[a("img",{key:"img"+t,attrs:{src:e,alt:""}})]})],2)])]),e._v(" "),a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[e._v("\n 变更后\n ")]),e._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[e._l(e.rightData,function(e,t){return[a("img",{key:"img0"+t,attrs:{src:e,alt:""}})]})],2)])])],1)],1)])],1)},staticRenderFns:[]};var o=a("VU/8")(i,s,!1,function(e){a("LArp")},"data-v-e0628fc0",null);t.a=o.exports},tHKh:function(e,t){},xCEU:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("3Xzz"),s=a("Zx22"),o=a("P9l9"),n=a("Ch4/"),r={name:"record-list",props:{detailShow:{type:Boolean,default:!1}},data:function(){return{customDialog:!1,tableData:[],pageSize:5,currentPage:1,totalCount:0}},methods:{handleClose:function(e){e(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideDetailDialog")},handleSizeChange:function(e){this.pageSize=e,this.getData()},handleCurrentChange:function(e){this.currentPage=e,this.getData()},handleShow:function(e,t){this.$router.push("/apiListManageShow?editFlag=0&interfaceId="+t.interfaceId+"&interfaceName="+t.interfaceName+"&interfaceVersionId="+t.interfaceVersionId+"&publishRecordId="+t.publishRecordId+"&projectId="+t.projectId+"&projectName="+this.$route.query.projectName+"&interfaceGroupId="+t.interfaceGroupId+"&interfaceGroupName="+this.$route.query.interfaceGroupName)},getData:function(){var e=this,t={pageNum:e.currentPage,pageSize:e.pageSize,version:e.formData.version,sceneCode:e.formData.sceneCode,interfaceId:e.formData.interfaceId};Object(o.a)("/gateway-manage/page-api-publish-record",t).then(function(t){var a=t.data;if("0000"==a.code)return e.tableData=a.result.result||[],void(e.totalCount=a.result.totalCount);n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{detailShow:function(e,t){this.customDialog=e}},mounted:function(){this.customDialog=this.publishShow}},l={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:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"edit-dialog-body"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"publishRecordId",label:"审核事项","show-overflow-tooltip":""}}),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.remark)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[t.row.headPic?a("img",{attrs:{src:t.row.headPic,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",[e._v(e._s(t.row.applyName))]),e._v(" "),a("span",{staticClass:"font-13"},[e._v(e._s(t.row.storeName))])])])]}}])}),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.publishTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.publishTime)))])]}}])}),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.remark)+"\n ")]}}])})],1),e._v(" "),e.totalCount?a("div",{staticClass:"pagination text-right m-t-14"},[a("el-pagination",{attrs:{small:"","page-size":e.pageSize,"current-page":e.currentPage,layout:"prev, pager, next",total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])],1)},staticRenderFns:[]};var c=a("VU/8")(r,l,!1,function(e){a("WgFr")},"data-v-e687ba42",null).exports,u=a("3E4D"),d=a("PI0u"),f={name:"unreview",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"审核中心",path:"/unreview"},{name:"待审核",path:""}],filterValue:"",filterBrand:"",brandOptions:[],filterOptions:[{label:"全部事项",value:""},{label:"门店信息变更",value:"0"},{label:"新增成员",value:"1"},{label:"成员离职",value:"2"},{label:"转移成员",value:"3"}],tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,selectId:"",ruleForm:{refuseReason:""},rules:{refuseReason:[{required:!0,message:"拒绝理由不能为空",trigger:"change"},{min:1,max:50,message:"长度在 1 到 50 个字",trigger:"change"}]},showStoreDialog:!1,storeChangeData:{beforeContent:[],afterContent:[]},approveVisible:!1,refuseVisible:!1,detailShow:!1}},filters:{formatTimeYMD:function(e){return"--"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return"--"!=e?e.split(" ")[1]:"--"},formatNum:function(e){return(e+"").replace(/\d{1,3}(?=(\d{3})+$)/g,"$&,")}},computed:{},methods:{hideDetailDialog:function(){this.detailShow=!0},handleSelectionChange:function(e){this.multipleSelection=e},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleClick:function(e,t,a){this.selectId=t.enterpriseAuditingId,a?this.refuseVisible=!0:this.approveVisible=!0},sendApprove:Object(d.a)(function(){this.postApprove(this.selectId)},500),approveAll:Object(d.a)(function(){var e=this.multipleSelection.length?this.multipleSelection.map(function(e){return e.enterpriseAuditingId}):"";if(!e)return this.$message({message:"请至少选择一条审核事项",type:"warning"}),!1;this.postAllApprove(e)},500),postApprove:function(e){var t=this,a={enterpriseAuditingId:e};Object(o.e)("/haoban-manage-web/audit/approve.json",a).then(function(e){var a=e.data;if(1==a.errorCode)return u.a.showmsg("操作成功","success"),t.approveVisible=!1,void t.getTableList();n.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},postAllApprove:function(e){var t=this,a={enterpriseAuditingIds:e};Object(o.e)("/haoban-manage-web/audit/batch-approve.json",a).then(function(e){var a=e.data;if(1==a.errorCode)return u.a.showmsg("操作成功","success"),void t.getTableList();n.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},cancelRefuse:function(e){this.refuseVisible=!1,this.$refs.ruleForm.resetFields()},sendRefuse:Object(d.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.postRefuse()})},500),postRefuse:function(){var e=this,t={enterpriseAuditingId:e.selectId,refuseReason:e.ruleForm.refuseReason};Object(o.a)("/haoban-manage-web/audit/refuse.json",t).then(function(t){var a=t.data;if(1==a.errorCode)return u.a.showmsg("操作成功","success"),e.refuseVisible=!1,e.$refs.ruleForm.resetFields(),void e.getTableList();n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},showSingleInfo:function(e){},showStoreChange:function(e){this.storeChangeData={beforeContent:[],afterContent:[]},this.showStoreDialog=!0,this.storeChangeData={beforeContent:""!=e.beforeContent?JSON.parse(e.beforeContent):[],afterContent:""!=e.afterContent?JSON.parse(e.afterContent):[]}},getBrandData:function(){var e=this;Object(o.e)("/haoban-manage-web/application-brand-list",{}).then(function(t){var a=t.data;1!=a.errorCode?n.a.errorMsg(a):a.result&&a.result.length&&(e.brandOptions=a.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getTableList:function(e){var t=this;e&&(t.currentPage=1);var a={auditingType:t.filterValue,auditingStatus:"0",search:"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.filterBrand};Object(o.a)("/haoban-manage-web/audit/auditing-list.json",a).then(function(e){var a=e.data;if(1==a.errorCode)return a.result&&a.result.list&&a.result.list.forEach(function(e,t){e.createTime&&(e.createTime=Object(d.c)(e.createTime))}),t.tableData=a.result.list,void(t.total=a.result.total);n.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.getTableList(),this.getBrandData()},components:{navCrumb:i.a,storeChange:s.a,reviewResultDetail:c}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"unreview-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":e.$store.state.bgHeight}},[a("div",{staticClass:"reviewed-body-head flex flex-space-between"},[a("div",[a("el-select",{staticClass:"w-130",attrs:{placeholder:"全部事项"},on:{change:e.getTableList},model:{value:e.filterValue,callback:function(t){e.filterValue=t},expression:"filterValue"}},e._l(e.filterOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部品牌"},on:{change:e.getTableList},model:{value:e.filterBrand,callback:function(t){e.filterBrand=t},expression:"filterBrand"}},[a("el-option",{attrs:{label:"全部品牌",value:""}}),e._v(" "),e._l(e.brandOptions,function(e){return a("el-option",{key:e.brandId,attrs:{label:e.name,value:e.brandId}})})],2)],1),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.approveAll}},[e._v("批量同意")])],1),e._v(" "),a("div",{staticClass:"reviewed-body-content"},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"审核事项"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0==t.row.auditingType?"门店信息变更":1==t.row.auditingType?"新增成员":2==t.row.auditingType?"成员离职":"转移成员")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"品牌"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.brandName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex"},[a("el-popover",{attrs:{placement:"top-start",width:"400",trigger:"hover"},on:{show:function(a){e.showSingleInfo(t.row.applyId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[t.row.headPic?a("img",{attrs:{src:t.row.headPic,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[e._v("\n "+e._s(t.row.applyName)+"\n "),a("i",{class:[2==t.row.sex?"icon-xingbienv color-FF585C":"icon-xingbienan color-508CEE","iconfont"]})]),e._v(" "),a("div",{staticClass:"apply-info-code"},[a("span",{staticClass:"w-80"},[e._v("员工代码:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.code))])]),e._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[e._v("手机号:")]),a("span",{staticClass:"w-130"},[e._v(e._s("86"==t.row.nationcode?t.row.phoneNumber:"+"+t.row.nationcode+"-"+t.row.phoneNumber))])]),e._v(" "),a("div",{staticClass:"apply-info-job"},[a("span",{staticClass:"w-80"},[e._v("职位:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.positionName))])]),e._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[e._v("所属门店:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.storeName))])])])])]),e._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[t.row.headPic?a("img",{attrs:{src:t.row.headPic,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])])]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",[e._v(e._s(t.row.applyName))]),e._v(" "),a("span",{staticClass:"font-13"},[e._v(e._s(t.row.storeName))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"详情","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0!=t.row.auditingType||0==t.row.auditingType&&1!=t.row.auditingUpdateType?a("span",[e._v(e._s(t.row.detail))]):e._e(),e._v(" "),1==t.row.auditingUpdateType?a("div",{staticClass:"line-hidden-2"},[a("span",[e._v(e._s(t.row.detail))]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.showStoreChange(t.row)}}},[e._v("查看详情")])],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-h-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"line-h-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleClick(t.$index,t.row)}}},[e._v("同意")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleClick(t.$index,t.row,"refuse")}}},[e._v("拒绝")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[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)])]),e._v(" "),a("vue-gic-footer"),e._v(" "),a("storeChange",{attrs:{storeChangeData:e.storeChangeData},model:{value:e.showStoreDialog,callback:function(t){e.showStoreDialog=t},expression:"showStoreDialog"}}),e._v(" "),a("el-dialog",{staticClass:"approve-dialog",attrs:{title:"",visible:e.approveVisible,width:"422px"},on:{"update:visible":function(t){e.approveVisible=t}}},[a("div",{staticClass:"approve-body text-center"},[a("div",[a("i",{staticClass:"el-icon-success"}),a("span",{staticClass:"approve-icon-tip"},[e._v("同意")])]),e._v(" "),a("div",{staticClass:"approve-tip"},[e._v("是否确认同意")])]),e._v(" "),a("div",{staticClass:"approve-footer dialog-footer",staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.approveVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.sendApprove}},[e._v("确 定")])],1)]),e._v(" "),a("el-dialog",{staticClass:"refuse-dialog",attrs:{title:"提示",visible:e.refuseVisible,"before-close":e.cancelRefuse,width:"422px"},on:{"update:visible":function(t){e.refuseVisible=t}}},[a("div",[a("div",{staticClass:"refuse-tip"},[e._v("请输入拒绝理由")]),e._v(" "),a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules}},[a("el-form-item",{attrs:{label:"",prop:"refuseReason"}},[a("el-input",{staticClass:"font-14",attrs:{type:"textarea",placeholder:"最多 50 个字",rows:3},model:{value:e.ruleForm.refuseReason,callback:function(t){e.$set(e.ruleForm,"refuseReason",t)},expression:"ruleForm.refuseReason"}})],1)],1)],1),e._v(" "),a("div",{staticClass:"approve-footer dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.cancelRefuse("ruleForm")}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.sendRefuse("ruleForm")}}},[e._v("确 定")])],1)]),e._v(" "),a("review-result-detail",{attrs:{detailShow:e.detailShow},on:{hideDetailDialog:e.hideDetailDialog}})],1)},staticRenderFns:[]};var v=a("VU/8")(f,p,!1,function(e){a("tHKh")},"data-v-3e78c274",null);t.default=v.exports}});
\ No newline at end of file
webpackJsonp([15],{NNAT:function(e,t,a){"use strict";var o=a("fZjL"),i=a.n(o),s=a("mvHQ"),r=a.n(s),n=a("P9l9"),l=a("Xxa5"),c=a.n(l),d=a("exGp"),p=a.n(d),u=a("0xDb"),h=a("unF8"),m=a("Ch4/"),f={name:"list-item",props:{item:{type:String,required:!0}},filters:{formatDate:u.b},data:function(){return{typeList:["全部","全职","兼职","外包","实习","无类型"],statusList:["全部","正式","试用","离职"],reasons:["","家庭原因","个人原因","发展原因","合同到期不续签","协议解除","无法胜任工作","经济性裁员","严重违法违纪","其他"],propList:{headPic:{label:"",slot:!0,width:50},clerkName:{label:"姓名",width:90},clerkPhone:{label:"手机号"},groupName:{label:"部门"},clerkCode:{label:"code"},positionName:{label:"职位"},clerkType:{label:"员工类型",slot:!0},clerkStatus:{label:"员工状态",slot:!0},hireDate:{label:"入职日期",needSort:"custom",slot:!0},correctionDate:{label:"转正日期",needSort:"custom",slot:!0},fireDate:{label:"离职日期",needSort:"custom",slot:!0},fireReason:{label:"离职原因",slot:!0},handleEmployee:{label:"操作",slot:!0},handleUnEmployee:{label:"操作",slot:!0}}}},methods:{changeRouter:function(e){this.$router.push(e)},callHandle:function(e){if("编辑员工资料"!=e.typeTitle)this.$emit("callHandle",e.obj,e.type,e.typeTitle);else{var t="/recordInfo?recordId="+e.obj.recordId;this.changeRouter(t)}},getGicData:function(e){var t=this;return p()(c.a.mark(function a(){var o,i,s,r;return c.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return o=t,i={type:3,businessId:e.obj.recordId},a.next=4,Object(h.a)(i);case 4:if(s=a.sent,1!=(r=s.data).errorCode){a.next=12;break}if(!r.result){a.next=10;break}return o.$message.error({duration:1e3,message:"已经与 GIC 门店同步,暂无操作权限"}),a.abrupt("return",!1);case 10:a.next=13;break;case 12:m.a.errorMsg(r);case 13:case"end":return a.stop()}},a,t)}))()}},mounted:function(){}},y={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.propList[e.item].slot?a("el-table-column",{attrs:{label:e.propList[e.item].label,width:e.propList[e.item].width,sortable:e.propList[e.item].needSort,prop:e.item},scopedSlots:e._u([{key:"default",fn:function(t){return["clerkType"==e.item?a("div",[e._v("\n "+e._s(e.typeList[t.row[e.item]||5])+"\n ")]):e._e(),e._v(" "),"clerkStatus"==e.item?a("div",[e._v("\n "+e._s(e.statusList[t.row[e.item]]||"无状态")+"\n ")]):"hireDate"==e.item||"correctionDate"==e.item||"fireDate"==e.item?a("div",[e._v("\n "+e._s(e._f("formatDate")(t.row[e.item],"YY-MM-DD")||"--")+"\n ")]):"headPic"==e.item?a("div",[t.row[e.item]?a("img",{staticClass:"header-pic",attrs:{src:t.row[e.item]}}):a("div",{staticClass:"replace-head-img"},[a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])]):"fireReason"==e.item?a("div",[e._v("\n "+e._s(e.reasons[t.row[e.item]]||"--")+"\n ")]):"handleEmployee"==e.item?a("div",[a("div",{staticClass:"table-handle"},[a("el-dropdown",{staticClass:"more",on:{command:e.callHandle}},[a("span",{staticClass:"el-dropdown-link"},[e._v(" 更多"),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[2==t.row.clerkStatus?[a("el-dropdown-item",{attrs:{command:{obj:t.row,type:"turnPositive",typeTitle:"办理转正"}}},[e._v("办理转正")]),e._v(" "),a("el-dropdown-item",{attrs:{command:{obj:t.row,type:"eidtCorrectionTime",typeTitle:"修改转正时间"}}},[e._v("修改转正时间")])]:e._e(),e._v(" "),a("el-dropdown-item",{attrs:{command:{obj:t.row,type:"editEmployee",typeTitle:"编辑员工资料"}}},[e._v("编辑员工资料")]),e._v(" "),a("el-dropdown-item",{attrs:{command:{obj:t.row,type:"resignation",typeTitle:"办理离职"}}},[e._v("办理离职")])],2)],1)],1)]):"handleUnEmployee"==e.item?a("div",[a("div",{staticClass:"table-handle"},[a("a",{staticClass:"a-href",on:{click:function(a){e.changeRouter("/recordInfo?recordId="+t.row.recordId+"&type=unemployee")}}},[e._v("编辑")])])]):e._e()]}}])}):"clerkPhone"!=e.item?a("el-table-column",{attrs:{"class-name":"clerkName"==e.item?"control-width":"",label:e.propList[e.item].label,width:e.propList[e.item].width,prop:e.item,"show-overflow-tooltip":""}}):"clerkPhone"==e.item?a("el-table-column",{attrs:{"class-name":"clerkName"==e.item?"control-width":"",label:e.propList[e.item].label,width:e.propList[e.item].width,prop:e.item,"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s("86"==t.row.nationcode||null==t.row.nationcode?t.row.clerkPhone:"+"+t.row.nationcode+"-"+t.row.clerkPhone)+"\n ")]}}])}):e._e()},staticRenderFns:[]};var g=a("VU/8")(f,y,!1,function(e){a("YtO6")},null,null).exports,v=a("IVno"),S=a("Ie7z"),k=a("c4uw"),b={name:"employeeRecordList",props:{isUnEmployee:{type:Boolean,default:!1}},components:{listItem:g,handleDialog:v.a,vueSelectStore:S.a,vueSelectEmployee:k.a},data:function(){return{tableH:window.screen.availHeight-440-160,pickerOptions2:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-7776e6),e.$emit("pick",[a,t])}}]},employeeList:[],pageNum:1,pageSize:20,sortType:"desc",sortColumn:"hireDate",statusList:[{label:"全部状态",id:"0"},{label:"正式",id:"1"},{label:"试用",id:"2"},{label:"无状态",id:"-1"}],typeLsit:["全部类型","全职","兼职","外包","实习","无类型"],clerkType:0,clerkStatus:"0",total:0,handleType:"turnPositive",typeTitle:"",dialogVisible:!1,employeeObj:{},fireDate:[],startDate:"",endDate:"",showSelector:!0,searchParam:"",departMentSet:{},storeSet:{},treeData:{},selectionList:[],disabled:!0,chooseClerkIdList:[],chooseGroupIdList:[],chooseStoreIdList:[],adDefaultSelection:[],changed:0,defaultStoreList:[],treeSetDepart:{isSelectPerson:!0,dialogVisible:!1,isSingle:!1,openNextBool:!0},treeSetStore:{isSelectPerson:!0,dialogVisible:!1,isSingle:!1,openNextBool:!0}}},methods:{searchFn:function(){this.getEmloyeeList()},getGroupData:function(){var e=this;Object(n.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(t){var a=[],o=[];1==t.data.errorCode&&(a=t.data.result.departmentList||[],o=t.data.result.searchList||[]),e.treeData={treeData:a,personData:o},e.disabled=!1}).catch(function(e){})},callSelector:function(){this.treeSetDepart.dialogVisible=!0},callStoreSelector:function(){this.treeSetStore.dialogVisible=!0},showExportSet:function(){if(this.isUnEmployee){var e=window.location.origin;-1!=e.indexOf("localhost")&&(e="http://www.gicdev.com");var t=0==this.clerkType?"":this.clerkType;location.href=e+"/haoban-manage-web/record/export-fire-employee-record?clerkType="+t+"&sortType="+this.sortType+"&sortColumn="+this.sortColumn+"&startDate="+this.startDate+"&endDate="+this.endDate+"&searchParam="+this.searchParam+"&chooseClerkIdList="+this.chooseClerkIdList.join(",")+"&chooseGroupIdList="+this.chooseGroupIdList.join(",")+"&chooseStoreIdList="+this.chooseStoreIdList.join(",")}else this.$emit("showExportSetFn")},handleSelectedList:function(e){this.adDefaultSelection=e||[],this.concatList()},handleStoreSelectedList:function(e){this.defaultStoreList=e||[],this.concatList()},concatList:function(){this.selectionList=this.adDefaultSelection.concat(this.defaultStoreList),this.formatSelectionList(this.selectionList)},formatSelectionList:function(e){var t=this,a=t.unique(e);t.selectionList=a,t.chooseClerkIdList=[],t.chooseStoreIdList=[],t.chooseGroupIdList=[],a.length&&a.forEach(function(e){1==e.type?t.chooseClerkIdList.push(e.employeeClerkId):3==e.type?t.chooseStoreIdList.push(e.storeId):2==e.type&&t.chooseGroupIdList.push(e.groupId)}),t.pageNum=1,t.getEmloyeeList()},unique:function(e){var t={};return e.forEach(function(e){t[r()(e)]=e}),e=i()(t).map(function(e){return JSON.parse(e)})},delSld:function(e,t){var a=this,o=a.selectionList.indexOf(e);a.selectionList.splice(o,1),(3==e.type||e.hasOwnProperty("isStoreGroup")&&1==e.isStoreGroup||e.hasOwnProperty("isClerk")&&1==e.isClerk)&&a.defaultStoreList.forEach(function(t,o){t.id==e.id&&a.defaultStoreList.splice(o,1)}),(e.hasOwnProperty("isStoreGroup")&&0==e.isStoreGroup||e.hasOwnProperty("isClerk")&&0==e.isClerk)&&a.adDefaultSelection.forEach(function(t,o){t.id==e.id&&a.adDefaultSelection.splice(o,1)}),a.formatSelectionList(a.selectionList),a.changed+=1},handleSuccess:function(){this.dialogVisible=!1,this.getEmloyeeList()},callHandle:function(e,t,a){this.handleType=t,this.employeeObj=e,this.typeTitle=a,this.dialogVisible=!0},handleSizeChange:function(e){this.pageSize=e,this.getEmloyeeList()},handleCurrentChange:function(e){this.pageNum=e,this.getEmloyeeList()},sortList:function(e){this.sortColumn=e.prop,this.sortType="descending"==e.order?"desc":"asc",this.getEmloyeeList()},reGetList:function(){this.getEmloyeeList()},getEmloyeeList:function(){var e=this,t=e.isUnEmployee,a=t?"/haoban-manage-web/record/find-fire-employee-record-page":"/haoban-manage-web/record/find-on-work-employee-record-page",o={pageNum:e.pageNum,chooseClerkIdList:e.chooseClerkIdList.join(","),chooseGroupIdList:e.chooseGroupIdList.join(","),chooseStoreIdList:e.chooseStoreIdList.join(","),pageSize:e.pageSize,sortType:e.sortType,clerkStatus:0==e.clerkStatus?"":e.clerkStatus,sortColumn:e.sortColumn,clerkType:0==e.clerkType?"":e.clerkType,startDate:e.startDate,endDate:e.endDate,searchParam:e.searchParam};Object(n.a)(a,o).then(function(a){1==a.data.errorCode?(e.employeeList=a.data.result.list,e.total=t?a.data.result.total:a.data.result.pageInfo.total):e.$message.error({message:a.data.message})}).catch(function(t){e.$message({message:t.message})})},selectDate:function(e){e?(this.startDate=e[0],this.endDate=e[1]):(this.startDate="",this.endDate=""),this.getEmloyeeList()}},beforeMount:function(){this.getEmloyeeList(),this.getGroupData()},computed:{propList:function(){return this.isUnEmployee?["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","clerkStatus","hireDate","fireDate","fireReason","handleUnEmployee"]:["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","clerkStatus","hireDate","correctionDate","handleEmployee"]}}},L={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"e-r-l-container"},[a("div",{staticClass:"handle-area"},[a("div",{staticClass:"flex1"},[a("el-button",{staticStyle:{"margin-right":"10px",height:"32px"},attrs:{disabled:e.disabled},on:{click:e.callSelector}},[e._v("行政架构选人")]),e._v(" "),a("el-button",{staticStyle:{"margin-right":"10px",height:"32px"},on:{click:e.callStoreSelector}},[e._v("门店架构选人")]),e._v(" "),e.isUnEmployee?a("div",{staticClass:"block"},[a("span",{staticClass:"demonstration"},[e._v("离职日期")]),e._v(" "),a("el-date-picker",{attrs:{type:"daterange",align:"right","value-format":"yyyy-MM-dd","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions2},on:{change:e.selectDate},model:{value:e.fireDate,callback:function(t){e.fireDate=t},expression:"fireDate"}})],1):[a("el-select",{staticClass:"m-r-10 w-130",attrs:{placeholder:"选择类型"},on:{change:e.reGetList},model:{value:e.clerkType,callback:function(t){e.clerkType=t},expression:"clerkType"}},e._l(e.typeLsit,function(e,t){return a("el-option",{key:t,attrs:{label:e,value:t}})})),e._v(" "),a("el-select",{staticClass:"w-130",attrs:{placeholder:"选择状态"},on:{change:e.reGetList},model:{value:e.clerkStatus,callback:function(t){e.clerkStatus=t},expression:"clerkStatus"}},e._l(e.statusList,function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.id}})})),e._v(" "),a("span",{staticClass:"demonstration p-l-10",staticStyle:{"line-height":"34px","white-space":"nowrap"}},[e._v("入职时间")]),e._v(" "),a("el-date-picker",{attrs:{type:"daterange",align:"right","value-format":"yyyy-MM-dd","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions2},on:{change:e.selectDate},model:{value:e.fireDate,callback:function(t){e.fireDate=t},expression:"fireDate"}})],e._v(" "),a("el-input",{staticStyle:{width:"240px","margin-left":"10px"},attrs:{placeholder:"请输入姓名/手机号/员工code",clearable:""},on:{clear:e.searchFn},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.searchFn(t):null}},model:{value:e.searchParam,callback:function(t){e.searchParam=t},expression:"searchParam"}})],2),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.showExportSet}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),e._v("导出")])],1),e._v(" "),e.selectionList.length?a("ul",{staticClass:"selector-selected-list"},[e._l(e.selectionList,function(t,o){return[a("li",{key:o+t.id+t.label,staticClass:"sld"},[e._v(e._s(t.label)+" "),a("i",{staticClass:"el-icon-close",on:{click:function(a){e.delSld(t,t.isStoreGroup)}}})])]}),e._v(" "),a("li",{staticClass:"sld tip"},[e._v("共筛选出"+e._s(e.total)+"人")])],2):e._e(),e._v(" "),a("el-table",{staticClass:"list-table",attrs:{data:e.employeeList,"default-sort":{prop:"hireDate",order:"descending"}},on:{"sort-change":e.sortList}},[e._l(e.propList,function(t){return[a("list-item",{key:t,attrs:{item:t},on:{callHandle:e.callHandle}})]})],2),e._v(" "),e.employeeList.length?a("el-pagination",{staticClass:"pagination",attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageSize,"current-page":e.pageNum,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e(),e._v(" "),a("el-dialog",{attrs:{title:e.typeTitle,visible:e.dialogVisible,width:"480px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("handle-dialog",{attrs:{employee:e.employeeObj,handleType:e.handleType,typeTitle:e.typeTitle},on:{handleSuccess:e.handleSuccess}})],1),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{defaultList:e.defaultStoreList,treeSet:e.treeSetStore},on:{handleSelectedList:e.handleStoreSelectedList}}),e._v(" "),a("vue-select-employee",{ref:"departmentSelector",attrs:{treeSet:e.treeSetDepart,changed:e.changed,treeData:e.treeData,defaultSelection:e.adDefaultSelection},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var w=a("VU/8")(b,L,!1,function(e){a("eeUe")},null,null);t.a=w.exports},TGrv:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("3Xzz"),i=a("NNAT"),s={name:"employeeRecord",components:{navCrumb:o.a,employeeList:i.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"离职员工",path:""}],typeObj:{onWorkCout:"在职员工",allWorkCount:"全职",partTimeWorkCount:"兼职",outWorkCount:"外包",practiceWorkCount:"实习",noTypeWorkCount:"无类型",regularCount:"正式",onTrialCount:"试用",noStatusCount:"无状态"},countObj:{}}},beforeMount:function(){}},r={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"common-set-wrap unemployee-wrap"},[t("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"e-record-container"},[t("employee-list",{attrs:{isUnEmployee:!0}})],1)])]),this._v(" "),t("vue-gic-footer")],1)},staticRenderFns:[]};var n=a("VU/8")(s,r,!1,function(e){a("rMHI")},null,null);t.default=n.exports},YtO6:function(e,t){},eeUe:function(e,t){},rMHI:function(e,t){}}); webpackJsonp([16],{NNAT:function(e,t,a){"use strict";var o=a("fZjL"),i=a.n(o),s=a("mvHQ"),r=a.n(s),n=a("P9l9"),l=a("Xxa5"),c=a.n(l),d=a("exGp"),p=a.n(d),u=a("0xDb"),h=a("unF8"),m=a("Ch4/"),f={name:"list-item",props:{item:{type:String,required:!0}},filters:{formatDate:u.b},data:function(){return{typeList:["全部","全职","兼职","外包","实习","无类型"],statusList:["全部","正式","试用","离职"],reasons:["","家庭原因","个人原因","发展原因","合同到期不续签","协议解除","无法胜任工作","经济性裁员","严重违法违纪","其他"],propList:{headPic:{label:"",slot:!0,width:50},clerkName:{label:"姓名",width:90},clerkPhone:{label:"手机号"},groupName:{label:"部门"},clerkCode:{label:"code"},positionName:{label:"职位"},clerkType:{label:"员工类型",slot:!0},clerkStatus:{label:"员工状态",slot:!0},hireDate:{label:"入职日期",needSort:"custom",slot:!0},correctionDate:{label:"转正日期",needSort:"custom",slot:!0},fireDate:{label:"离职日期",needSort:"custom",slot:!0},fireReason:{label:"离职原因",slot:!0},handleEmployee:{label:"操作",slot:!0},handleUnEmployee:{label:"操作",slot:!0}}}},methods:{changeRouter:function(e){this.$router.push(e)},callHandle:function(e){if("编辑员工资料"!=e.typeTitle)this.$emit("callHandle",e.obj,e.type,e.typeTitle);else{var t="/recordInfo?recordId="+e.obj.recordId;this.changeRouter(t)}},getGicData:function(e){var t=this;return p()(c.a.mark(function a(){var o,i,s,r;return c.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return o=t,i={type:3,businessId:e.obj.recordId},a.next=4,Object(h.a)(i);case 4:if(s=a.sent,1!=(r=s.data).errorCode){a.next=12;break}if(!r.result){a.next=10;break}return o.$message.error({duration:1e3,message:"已经与 GIC 门店同步,暂无操作权限"}),a.abrupt("return",!1);case 10:a.next=13;break;case 12:m.a.errorMsg(r);case 13:case"end":return a.stop()}},a,t)}))()}},mounted:function(){}},y={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.propList[e.item].slot?a("el-table-column",{attrs:{label:e.propList[e.item].label,width:e.propList[e.item].width,sortable:e.propList[e.item].needSort,prop:e.item},scopedSlots:e._u([{key:"default",fn:function(t){return["clerkType"==e.item?a("div",[e._v("\n "+e._s(e.typeList[t.row[e.item]||5])+"\n ")]):e._e(),e._v(" "),"clerkStatus"==e.item?a("div",[e._v("\n "+e._s(e.statusList[t.row[e.item]]||"无状态")+"\n ")]):"hireDate"==e.item||"correctionDate"==e.item||"fireDate"==e.item?a("div",[e._v("\n "+e._s(e._f("formatDate")(t.row[e.item],"YY-MM-DD")||"--")+"\n ")]):"headPic"==e.item?a("div",[t.row[e.item]?a("img",{staticClass:"header-pic",attrs:{src:t.row[e.item]}}):a("div",{staticClass:"replace-head-img"},[a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])]):"fireReason"==e.item?a("div",[e._v("\n "+e._s(e.reasons[t.row[e.item]]||"--")+"\n ")]):"handleEmployee"==e.item?a("div",[a("div",{staticClass:"table-handle"},[a("el-dropdown",{staticClass:"more",on:{command:e.callHandle}},[a("span",{staticClass:"el-dropdown-link"},[e._v(" 更多"),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[2==t.row.clerkStatus?[a("el-dropdown-item",{attrs:{command:{obj:t.row,type:"turnPositive",typeTitle:"办理转正"}}},[e._v("办理转正")]),e._v(" "),a("el-dropdown-item",{attrs:{command:{obj:t.row,type:"eidtCorrectionTime",typeTitle:"修改转正时间"}}},[e._v("修改转正时间")])]:e._e(),e._v(" "),a("el-dropdown-item",{attrs:{command:{obj:t.row,type:"editEmployee",typeTitle:"编辑员工资料"}}},[e._v("编辑员工资料")]),e._v(" "),a("el-dropdown-item",{attrs:{command:{obj:t.row,type:"resignation",typeTitle:"办理离职"}}},[e._v("办理离职")])],2)],1)],1)]):"handleUnEmployee"==e.item?a("div",[a("div",{staticClass:"table-handle"},[a("a",{staticClass:"a-href",on:{click:function(a){e.changeRouter("/recordInfo?recordId="+t.row.recordId+"&type=unemployee")}}},[e._v("编辑")])])]):e._e()]}}])}):"clerkPhone"!=e.item?a("el-table-column",{attrs:{"class-name":"clerkName"==e.item?"control-width":"",label:e.propList[e.item].label,width:e.propList[e.item].width,prop:e.item,"show-overflow-tooltip":""}}):"clerkPhone"==e.item?a("el-table-column",{attrs:{"class-name":"clerkName"==e.item?"control-width":"",label:e.propList[e.item].label,width:e.propList[e.item].width,prop:e.item,"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s("86"==t.row.nationcode||null==t.row.nationcode?t.row.clerkPhone:"+"+t.row.nationcode+"-"+t.row.clerkPhone)+"\n ")]}}])}):e._e()},staticRenderFns:[]};var g=a("VU/8")(f,y,!1,function(e){a("YtO6")},null,null).exports,v=a("IVno"),S=a("Ie7z"),k=a("c4uw"),b={name:"employeeRecordList",props:{isUnEmployee:{type:Boolean,default:!1}},components:{listItem:g,handleDialog:v.a,vueSelectStore:S.a,vueSelectEmployee:k.a},data:function(){return{tableH:window.screen.availHeight-440-160,pickerOptions2:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-7776e6),e.$emit("pick",[a,t])}}]},employeeList:[],pageNum:1,pageSize:20,sortType:"desc",sortColumn:"hireDate",statusList:[{label:"全部状态",id:"0"},{label:"正式",id:"1"},{label:"试用",id:"2"},{label:"无状态",id:"-1"}],typeLsit:["全部类型","全职","兼职","外包","实习","无类型"],clerkType:0,clerkStatus:"0",total:0,handleType:"turnPositive",typeTitle:"",dialogVisible:!1,employeeObj:{},fireDate:[],startDate:"",endDate:"",showSelector:!0,searchParam:"",departMentSet:{},storeSet:{},treeData:{},selectionList:[],disabled:!0,chooseClerkIdList:[],chooseGroupIdList:[],chooseStoreIdList:[],adDefaultSelection:[],changed:0,defaultStoreList:[],treeSetDepart:{isSelectPerson:!0,dialogVisible:!1,isSingle:!1,openNextBool:!0},treeSetStore:{isSelectPerson:!0,dialogVisible:!1,isSingle:!1,openNextBool:!0}}},methods:{searchFn:function(){this.getEmloyeeList()},getGroupData:function(){var e=this;Object(n.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(t){var a=[],o=[];1==t.data.errorCode&&(a=t.data.result.departmentList||[],o=t.data.result.searchList||[]),e.treeData={treeData:a,personData:o},e.disabled=!1}).catch(function(e){})},callSelector:function(){this.treeSetDepart.dialogVisible=!0},callStoreSelector:function(){this.treeSetStore.dialogVisible=!0},showExportSet:function(){if(this.isUnEmployee){var e=window.location.origin;-1!=e.indexOf("localhost")&&(e="http://www.gicdev.com");var t=0==this.clerkType?"":this.clerkType;location.href=e+"/haoban-manage-web/record/export-fire-employee-record?clerkType="+t+"&sortType="+this.sortType+"&sortColumn="+this.sortColumn+"&startDate="+this.startDate+"&endDate="+this.endDate+"&searchParam="+this.searchParam+"&chooseClerkIdList="+this.chooseClerkIdList.join(",")+"&chooseGroupIdList="+this.chooseGroupIdList.join(",")+"&chooseStoreIdList="+this.chooseStoreIdList.join(",")}else this.$emit("showExportSetFn")},handleSelectedList:function(e){this.adDefaultSelection=e||[],this.concatList()},handleStoreSelectedList:function(e){this.defaultStoreList=e||[],this.concatList()},concatList:function(){this.selectionList=this.adDefaultSelection.concat(this.defaultStoreList),this.formatSelectionList(this.selectionList)},formatSelectionList:function(e){var t=this,a=t.unique(e);t.selectionList=a,t.chooseClerkIdList=[],t.chooseStoreIdList=[],t.chooseGroupIdList=[],a.length&&a.forEach(function(e){1==e.type?t.chooseClerkIdList.push(e.employeeClerkId):3==e.type?t.chooseStoreIdList.push(e.storeId):2==e.type&&t.chooseGroupIdList.push(e.groupId)}),t.pageNum=1,t.getEmloyeeList()},unique:function(e){var t={};return e.forEach(function(e){t[r()(e)]=e}),e=i()(t).map(function(e){return JSON.parse(e)})},delSld:function(e,t){var a=this,o=a.selectionList.indexOf(e);a.selectionList.splice(o,1),(3==e.type||e.hasOwnProperty("isStoreGroup")&&1==e.isStoreGroup||e.hasOwnProperty("isClerk")&&1==e.isClerk)&&a.defaultStoreList.forEach(function(t,o){t.id==e.id&&a.defaultStoreList.splice(o,1)}),(e.hasOwnProperty("isStoreGroup")&&0==e.isStoreGroup||e.hasOwnProperty("isClerk")&&0==e.isClerk)&&a.adDefaultSelection.forEach(function(t,o){t.id==e.id&&a.adDefaultSelection.splice(o,1)}),a.formatSelectionList(a.selectionList),a.changed+=1},handleSuccess:function(){this.dialogVisible=!1,this.getEmloyeeList()},callHandle:function(e,t,a){this.handleType=t,this.employeeObj=e,this.typeTitle=a,this.dialogVisible=!0},handleSizeChange:function(e){this.pageSize=e,this.getEmloyeeList()},handleCurrentChange:function(e){this.pageNum=e,this.getEmloyeeList()},sortList:function(e){this.sortColumn=e.prop,this.sortType="descending"==e.order?"desc":"asc",this.getEmloyeeList()},reGetList:function(){this.getEmloyeeList()},getEmloyeeList:function(){var e=this,t=e.isUnEmployee,a=t?"/haoban-manage-web/record/find-fire-employee-record-page":"/haoban-manage-web/record/find-on-work-employee-record-page",o={pageNum:e.pageNum,chooseClerkIdList:e.chooseClerkIdList.join(","),chooseGroupIdList:e.chooseGroupIdList.join(","),chooseStoreIdList:e.chooseStoreIdList.join(","),pageSize:e.pageSize,sortType:e.sortType,clerkStatus:0==e.clerkStatus?"":e.clerkStatus,sortColumn:e.sortColumn,clerkType:0==e.clerkType?"":e.clerkType,startDate:e.startDate,endDate:e.endDate,searchParam:e.searchParam};Object(n.a)(a,o).then(function(a){1==a.data.errorCode?(e.employeeList=a.data.result.list,e.total=t?a.data.result.total:a.data.result.pageInfo.total):e.$message.error({message:a.data.message})}).catch(function(t){e.$message({message:t.message})})},selectDate:function(e){e?(this.startDate=e[0],this.endDate=e[1]):(this.startDate="",this.endDate=""),this.getEmloyeeList()}},beforeMount:function(){this.getEmloyeeList(),this.getGroupData()},computed:{propList:function(){return this.isUnEmployee?["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","clerkStatus","hireDate","fireDate","fireReason","handleUnEmployee"]:["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","clerkStatus","hireDate","correctionDate","handleEmployee"]}}},L={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"e-r-l-container"},[a("div",{staticClass:"handle-area"},[a("div",{staticClass:"flex1"},[a("el-button",{staticStyle:{"margin-right":"10px",height:"32px"},attrs:{disabled:e.disabled},on:{click:e.callSelector}},[e._v("行政架构选人")]),e._v(" "),a("el-button",{staticStyle:{"margin-right":"10px",height:"32px"},on:{click:e.callStoreSelector}},[e._v("门店架构选人")]),e._v(" "),e.isUnEmployee?a("div",{staticClass:"block"},[a("span",{staticClass:"demonstration"},[e._v("离职日期")]),e._v(" "),a("el-date-picker",{attrs:{type:"daterange",align:"right","value-format":"yyyy-MM-dd","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions2},on:{change:e.selectDate},model:{value:e.fireDate,callback:function(t){e.fireDate=t},expression:"fireDate"}})],1):[a("el-select",{staticClass:"m-r-10 w-130",attrs:{placeholder:"选择类型"},on:{change:e.reGetList},model:{value:e.clerkType,callback:function(t){e.clerkType=t},expression:"clerkType"}},e._l(e.typeLsit,function(e,t){return a("el-option",{key:t,attrs:{label:e,value:t}})})),e._v(" "),a("el-select",{staticClass:"w-130",attrs:{placeholder:"选择状态"},on:{change:e.reGetList},model:{value:e.clerkStatus,callback:function(t){e.clerkStatus=t},expression:"clerkStatus"}},e._l(e.statusList,function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.id}})})),e._v(" "),a("span",{staticClass:"demonstration p-l-10",staticStyle:{"line-height":"34px","white-space":"nowrap"}},[e._v("入职时间")]),e._v(" "),a("el-date-picker",{attrs:{type:"daterange",align:"right","value-format":"yyyy-MM-dd","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions2},on:{change:e.selectDate},model:{value:e.fireDate,callback:function(t){e.fireDate=t},expression:"fireDate"}})],e._v(" "),a("el-input",{staticStyle:{width:"240px","margin-left":"10px"},attrs:{placeholder:"请输入姓名/手机号/员工code",clearable:""},on:{clear:e.searchFn},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.searchFn(t):null}},model:{value:e.searchParam,callback:function(t){e.searchParam=t},expression:"searchParam"}})],2),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.showExportSet}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),e._v("导出")])],1),e._v(" "),e.selectionList.length?a("ul",{staticClass:"selector-selected-list"},[e._l(e.selectionList,function(t,o){return[a("li",{key:o+t.id+t.label,staticClass:"sld"},[e._v(e._s(t.label)+" "),a("i",{staticClass:"el-icon-close",on:{click:function(a){e.delSld(t,t.isStoreGroup)}}})])]}),e._v(" "),a("li",{staticClass:"sld tip"},[e._v("共筛选出"+e._s(e.total)+"人")])],2):e._e(),e._v(" "),a("el-table",{staticClass:"list-table",attrs:{data:e.employeeList,"default-sort":{prop:"hireDate",order:"descending"}},on:{"sort-change":e.sortList}},[e._l(e.propList,function(t){return[a("list-item",{key:t,attrs:{item:t},on:{callHandle:e.callHandle}})]})],2),e._v(" "),e.employeeList.length?a("el-pagination",{staticClass:"pagination",attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageSize,"current-page":e.pageNum,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e(),e._v(" "),a("el-dialog",{attrs:{title:e.typeTitle,visible:e.dialogVisible,width:"480px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("handle-dialog",{attrs:{employee:e.employeeObj,handleType:e.handleType,typeTitle:e.typeTitle},on:{handleSuccess:e.handleSuccess}})],1),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{defaultList:e.defaultStoreList,treeSet:e.treeSetStore},on:{handleSelectedList:e.handleStoreSelectedList}}),e._v(" "),a("vue-select-employee",{ref:"departmentSelector",attrs:{treeSet:e.treeSetDepart,changed:e.changed,treeData:e.treeData,defaultSelection:e.adDefaultSelection},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var w=a("VU/8")(b,L,!1,function(e){a("eeUe")},null,null);t.a=w.exports},TGrv:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("3Xzz"),i=a("NNAT"),s={name:"employeeRecord",components:{navCrumb:o.a,employeeList:i.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"离职员工",path:""}],typeObj:{onWorkCout:"在职员工",allWorkCount:"全职",partTimeWorkCount:"兼职",outWorkCount:"外包",practiceWorkCount:"实习",noTypeWorkCount:"无类型",regularCount:"正式",onTrialCount:"试用",noStatusCount:"无状态"},countObj:{}}},beforeMount:function(){}},r={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"common-set-wrap unemployee-wrap"},[t("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"e-record-container"},[t("employee-list",{attrs:{isUnEmployee:!0}})],1)])]),this._v(" "),t("vue-gic-footer")],1)},staticRenderFns:[]};var n=a("VU/8")(s,r,!1,function(e){a("rMHI")},null,null);t.default=n.exports},YtO6:function(e,t){},eeUe:function(e,t){},rMHI:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([17],{"747R":function(e,t){},"8v91":function(e,t){},HHRu:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("l46T"),s=i("3Xzz"),n=i("n7j5"),r=i("c4uw"),l=i("P9l9"),o={name:"addDepartment",components:{navCrumb:s.a,permissionSetting:n.a,vueSelectEmployee:r.a,limitInput:a.a},data:function(){return{windowH:window.screen.availHeight-180+"px",navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"行政架构",path:"/administrativeFrame"},{name:"添加子分组",path:""}],navpathEdit:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"行政架构",path:"/administrativeFrame"}],departInfo:{parentName:"",chainName:"",managerClerkList:[]},testList:[],treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0},rules:{name:[{required:!0,message:"请输入部门名称",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],chainName:[{required:!0,message:"请选择父级部门",trigger:"blur"}]},treeData:{},disabled:!0,defaultSelection:[],defaultParent:[],selectorType:"parent",changed:"parent",onlyPerson:!1,onlyGroup:[],butList:[],specialList:[],selfButList:[],selfSpecialList:[]}},methods:{delGroup:function(){var e=this;e.$confirm(" 是否确认删除分组 ?","提示",{type:"warning"}).then(function(){Object(l.a)("/haoban-manage-web/dept/del",{groupId:e.$route.query.departmentId}).then(function(t){1==t.data.errorCode?(e.$message.success({message:t.data.message}),window.history.go(-1)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}).catch(function(e){})},delCurrentManager:function(e){var t=this.departInfo.managerClerkList;t.splice(t.indexOf(e),1)},getDepartInfo:function(){var e=this,t=this,i={groupId:t.$route.query.departmentId};Object(l.a)("/haoban-manage-web/dept/findDeptById",i).then(function(i){1==i.data.errorCode?e.formatGroupInfo(i.data.result):t.$message.error({duration:1e3,message:i.data.message})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},formatGroupInfo:function(e){this.departInfo.parentName=e.chainName,this.defaultParent=[{label:this.departInfo.parentName,id:e.parentId,groupId:e.parentId}],e.managerClerkList=e.managerClerkList?e.managerClerkList:[],e.managerClerkList.forEach(function(e){e.label=e.name,e.id=e.employeeClerkId}),e.noPreClerkList=e.noPreClerkList||[],e.allowClerkList=e.allowClerkList||[],e.allowDeptList=e.allowDeptList||[],e.noPreClerkList.forEach(function(e){e.label=e.name,e.id=e.employeeClerkId}),e.allowClerkList.forEach(function(e){e.label=e.name,e.id=e.employeeClerkId}),e.allowDeptList.forEach(function(e){e.label=e.name,e.id=e.groupId}),1==e.type?(this.butList=e.noPreClerkList,this.specialList=e.allowDeptList.concat(e.allowClerkList),this.selfButList=[],this.selfSpecialList=[]):2==e.type&&(this.butList=[],this.specialList=[],this.selfButList=e.noPreClerkList,this.selfSpecialList=e.allowDeptList.concat(e.allowClerkList)),this.departInfo=e},callGroupSelector:function(){this.selectorType="parent",this.defaultSelection=this.defaultParent,this.onlyPerson=!1,this.onlyGroup=[],this.changed="parent",this.treeSet={dialogVisible:!0,isSingle:!0,isSelectPerson:!1}},callPerSelector:function(e,t){"but"==e||"selectManager"==e?(this.selectorType=e,this.defaultSelection=t,this.onlyPerson=!0,this.onlyGroup=[this.$route.query.departmentId],this.changed=e,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0}):(this.selectorType=e,this.defaultSelection=t,this.onlyPerson=!1,this.onlyGroup=[],this.changed=e,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0})},handleSelectedList:function(e){"parent"==this.changed?(this.departInfo.parentId=e?e.id:"",this.departInfo.parentName=e?e.label:"",this.departInfo.chainName=e?e.chainName:"",this.departInfo.chainName&&this.$refs.departForm.clearValidate("chainName")):"but"==this.changed?2==this.departInfo.type?this.selfButList=e:this.butList=e:"special"==this.changed?2==this.departInfo.type?this.selfSpecialList=e:this.specialList=e:"selectManager"==this.changed&&(this.departInfo.managerClerkList=e)},saveEdit:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this;this.$refs.departForm.validate(function(i){if(!i)return!1;var a=t.departInfo.type,s=[];""!=a&&t[1==a?"butList":"selfButList"].forEach(function(e){s.push(e.id)});var n=[],r=[];t.specialList.forEach(function(e){e.employeeClerkId?n.push(e.id):r.push(e.id)}),t.selfSpecialList.forEach(function(e){e.employeeClerkId?n.push(e.id):r.push(e.id)});var o=s.join(","),c=[];t.departInfo.managerClerkList.forEach(function(e){c.push(e.id)});var d={type:a,managerClerkIds:c=c.join(","),noPreCherkIds:o,allowCherkIds:n.join(","),allowDepartIds:r.join(","),parentId:t.departInfo.parentId,name:t.departInfo.name};t.isAddNew||(d.groupId=t.$route.query.departmentId,d.isStoreGroup=0);var u=t.isAddNew?"/haoban-manage-web/dept/insert":"/haoban-manage-web/dept/update";Object(l.a)(u,d).then(function(i){1==i.data.errorCode?(t.$message.success({duration:1e3,message:"操作成功!"}),"continue"==e?(t.departInfo={name:"",parentName:"",parentId:""},t.disabled=!0,t.getGroupData()):window.history.go(-1)):t.$message.error({duration:1e3,message:i.data.message})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})})},getGroupData:function(){var e=this;Object(l.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(t){var i=[],a=[];1==t.data.errorCode&&(i=t.data.result.departmentList||[],a=t.data.result.searchList||[]),e.treeData={treeData:i,personData:a},e.disabled=!1}).catch(function(e){})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){})}},beforeMount:function(){this.getGroupData(),this.isAddNew||(this.getDepartInfo(),this.navpathEdit.push({name:"编辑"+("company"==this.$route.query.type?"企业信息":"部门信息"),path:""}),this.navpath=this.navpathEdit),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"},computed:{isAddNew:function(){return!(1!=this.$route.query.addnew)}}},c={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"common-set-wrap",style:{height:e.windowH}},[i("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box"},[i("div",{staticClass:"add-department-container"},["group"==e.$route.query.type?i("div",{staticClass:"setting-cell depart-info"},[i("p",{staticClass:"title"},[e._v("部门信息")]),e._v(" "),i("el-form",{ref:"departForm",staticClass:"department-info-form",attrs:{"label-position":"right",rules:e.rules,model:e.departInfo,"label-width":"120px"}},[i("el-form-item",{attrs:{label:"部门名称",prop:"name"}},[i("limitInput",{attrs:{inputWidth:380,inputValue:e.departInfo.name,holder:"请输入部门名称",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.departInfo,"name",t)}}})],1),e._v(" "),e.isAddNew?e._e():i("el-form-item",{attrs:{label:"部门负责人"}},[i("ul",{staticClass:"particular-list",staticStyle:{"margin-bottom":"0",width:"380px"}},[e._l(e.departInfo.managerClerkList,function(t,a){return[i("li",{key:a+"_"+t.id,staticClass:"item person-item",staticStyle:{"margin-top":"0"}},[t.headPic?i("img",{attrs:{src:t.headPic}}):i("div",{staticClass:"replace-head-img"},[i("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),i("p",{staticClass:"name"},[e._v(e._s(t.label))]),e._v(" "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(i){e.delCurrentManager(t)}}})])]}),e._v(" "),i("li",{staticClass:"item J_add-btn",staticStyle:{"margin-top":"0"},on:{click:function(t){e.callPerSelector("selectManager",e.departInfo.managerClerkList)}}},[i("i",{staticClass:"el-icon-plus"})])],2)]),e._v(" "),i("el-form-item",{attrs:{label:"部门排序调整",prop:"chainName"}},[i("el-input",{attrs:{disabled:e.disabled,"suffix-icon":"el-icon-arrow-down"},on:{focus:e.callGroupSelector},model:{value:e.departInfo.chainName,callback:function(t){e.$set(e.departInfo,"chainName",t)},expression:"departInfo.chainName"}})],1)],1)],1):i("div",{staticClass:"setting-cell depart-info"},[i("p",{staticClass:"title"},[e._v("企业信息")]),e._v(" "),i("el-form",{ref:"departForm",staticClass:"department-info-form",attrs:{"label-position":"right",rules:e.rules,model:e.departInfo,"label-width":"120px"}},[i("el-form-item",{attrs:{label:"企业名称",prop:"name"}},[i("limitInput",{attrs:{inputWidth:380,disflag:!0,inputValue:e.departInfo.name,holder:"请输入企业名称",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.departInfo,"name",t)}}})],1)],1)],1),e._v(" "),e.isAddNew?e._e():i("div",{staticClass:"setting-cell m-b-48"},[i("p",{staticClass:"title"},[e._v("权限设置")]),e._v(" "),e.disabled?e._e():i("permission-setting",{attrs:{departInfo:e.departInfo,selfButList:e.selfButList,selfSpecialList:e.selfSpecialList,butList:e.butList,specialList:e.specialList,visibleSpecialLsit:e.testList,onlySelfApartList:e.testList,treeData:e.treeData},on:{callPerSelector:e.callPerSelector}})],1),e._v(" "),i("div",{staticClass:"setting-cell fixed-footer"},[i("div",{staticClass:"btn-area"},[i("el-button",{attrs:{type:"primary"},on:{click:e.saveEdit}},[e._v("保 存")]),e._v(" "),e.isAddNew?i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveEdit("continue")}}},[e._v("保存并继续添加")]):"group"==e.$route.query.type?i("el-button",{attrs:{type:"danger"},on:{click:e.delGroup}},[e._v("删 除")]):e._e(),e._v(" "),i("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)]),e._v(" "),i("vue-select-employee",{attrs:{changed:e.changed,onlyPerson:e.onlyPerson,onlyGroup:e.onlyGroup,defaultSelection:e.defaultSelection,treeSet:e.treeSet,treeData:e.treeData},on:{handleSelectedList:e.handleSelectedList}})],1)])])],1)},staticRenderFns:[]};var d=i("VU/8")(o,c,!1,function(e){i("8v91")},null,null);t.default=d.exports},d4aV:function(e,t){},n7j5:function(e,t,i){"use strict";var a=i("mvHQ"),s=i.n(a),n={name:"select-area",components:{vueSelectEmployee:i("c4uw").a},props:{treeData:{type:Object,default:function(){return{}}},butList:{type:Array,default:function(){return[]}},specialList:{type:Array,default:function(){return[]}}},data:function(){return{copyTreeData:JSON.parse(s()(this.treeData))}},methods:{delCurrent:function(e,t){var i=this[t];i.splice(i.indexOf(e),1)},handleSelectedList:function(e){this.butList=e},callSelector:function(e,t){this.$emit("callPerSelector",e,t)}}},r={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"select-area"},[i("div",{staticClass:"setting-name"},[e._v("\n 个别员工不设置该权限\n ")]),e._v(" "),i("ul",{staticClass:"particular-list"},[e._l(e.butList,function(t,a){return[t.employeeClerkId?i("li",{key:a+"_"+t.employeeClerkId,staticClass:"item person-item"},[t.headPic?i("img",{attrs:{src:t.headPic}}):i("div",{staticClass:"replace-head-img"},[i("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),i("p",{staticClass:"name"},[e._v(e._s(t.label))]),e._v(" "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(i){e.delCurrent(t,"butList")}}})]):i("li",{key:a+"_"+t.groupId,staticClass:"item group-item"},[e._v("\n "+e._s(t.label)+"\n "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(i){e.delCurrent(t,"butList")}}})])]}),e._v(" "),i("li",{staticClass:"item J_add-btn",on:{click:function(t){e.callSelector("but",e.butList)}}},[i("i",{staticClass:"el-icon-plus"})])],2),e._v(" "),i("div",{staticClass:"setting-name"},[e._v("\n 允许指定部门/人员可见\n ")]),e._v(" "),i("ul",{staticClass:"particular-list"},[e._l(e.specialList,function(t,a){return[t.employeeClerkId?i("li",{key:a+"_"+t.employeeClerkId,staticClass:"item person-item"},[t.headPic?i("img",{attrs:{src:t.headPic}}):i("div",{staticClass:"replace-head-img"},[i("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),i("p",{staticClass:"name"},[e._v(e._s(t.label))]),e._v(" "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(i){e.delCurrent(t,"specialList")}}})]):i("li",{key:a+"_"+t.groupId,staticClass:"item group-item"},[e._v("\n "+e._s(t.label)+"\n "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(i){e.delCurrent(t,"specialList")}}})])]}),e._v(" "),i("li",{staticClass:"item J_add-btn",on:{click:function(t){e.callSelector("special",e.specialList)}}},[i("i",{staticClass:"el-icon-plus"})])],2)])},staticRenderFns:[]};var l={name:"permissionSetting",components:{selectArea:i("VU/8")(n,r,!1,function(e){i("d4aV")},null,null).exports},props:{butList:{type:Array,default:function(){return[]}},specialList:{type:Array,default:function(){return[]}},selfButList:{type:Array,default:function(){return[]}},selfSpecialList:{type:Array,default:function(){return[]}},visibleSpecialLsit:{type:Array,default:function(){return[]}},onlySelfApartList:{type:Array,default:function(){return[]}},treeData:{type:Object,default:function(){return{}}},departInfo:{type:Object,default:function(){return{}}}},data:function(){return{visibleThere:!1,visibleSelf:!1}},methods:{switchPermission:function(e,t,i){e&&(this[i]=!e),this.visibleSelf?this.departInfo.type=2:this.visibleThere?this.departInfo.type=1:this.departInfo.type=""},callPerSelector:function(e,t){this.$emit("callPerSelector",e,t)}},mounted:function(){var e=this.departInfo.type;this.visibleThere=!(1!=e),this.visibleSelf=!(2!=e)},watch:{departInfo:{handler:function(e,t){var i=e.type;this.visibleThere=!(1!=i),this.visibleSelf=!(2!=i)},deep:!0}}},o={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"jurisdiction-setting"},[i("div",{staticClass:"only-visivble-there permission-div"},[i("div",{staticClass:"permission-div-title"},[i("span",[e._v("本部门员工仅可见本部门员工")]),e._v(" "),i("el-switch",{attrs:{"active-color":"#409EFF","inactive-color":"#DCDFE6"},on:{change:function(t){e.switchPermission(e.visibleThere,"visibleThere","visibleSelf")}},model:{value:e.visibleThere,callback:function(t){e.visibleThere=t},expression:"visibleThere"}})],1),e._v(" "),e.visibleThere?i("div",{staticClass:"particular-setting"},[i("select-area",{attrs:{treeData:e.treeData,butList:e.butList,specialList:e.specialList},on:{callPerSelector:e.callPerSelector}})],1):e._e()]),e._v(" "),i("div",{staticClass:"only-visivble-self permission-div"},[i("div",{staticClass:"permission-div-title"},[i("span",[e._v("本部门员工仅可见自己")]),e._v(" "),i("el-switch",{attrs:{"active-color":"#409EFF","inactive-color":"#DCDFE6"},on:{change:function(t){e.switchPermission(e.visibleSelf,"visibleSelf","visibleThere")}},model:{value:e.visibleSelf,callback:function(t){e.visibleSelf=t},expression:"visibleSelf"}})],1),e._v(" "),e.visibleSelf?i("div",{staticClass:"particular-setting"},[i("select-area",{attrs:{treeData:e.treeData,butList:e.selfButList,specialList:e.selfSpecialList},on:{callPerSelector:e.callPerSelector}})],1):e._e()])])},staticRenderFns:[]};var c=i("VU/8")(l,o,!1,function(e){i("747R")},null,null);t.a=c.exports}});
\ No newline at end of file
webpackJsonp([16],{"747R":function(e,t){},d4aV:function(e,t){},n7j5:function(e,t,a){"use strict";var i=a("mvHQ"),s=a.n(i),n={name:"select-area",components:{vueSelectEmployee:a("c4uw").a},props:{treeData:{type:Object,default:function(){return{}}},butList:{type:Array,default:function(){return[]}},specialList:{type:Array,default:function(){return[]}}},data:function(){return{copyTreeData:JSON.parse(s()(this.treeData))}},methods:{delCurrent:function(e,t){var a=this[t];a.splice(a.indexOf(e),1)},handleSelectedList:function(e){this.butList=e},callSelector:function(e,t){this.$emit("callPerSelector",e,t)}}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"select-area"},[a("div",{staticClass:"setting-name"},[e._v("\n 个别员工不设置该权限\n ")]),e._v(" "),a("ul",{staticClass:"particular-list"},[e._l(e.butList,function(t,i){return[t.employeeClerkId?a("li",{key:i+"_"+t.employeeClerkId,staticClass:"item person-item"},[t.headPic?a("img",{attrs:{src:t.headPic}}):a("div",{staticClass:"replace-head-img"},[a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("p",{staticClass:"name"},[e._v(e._s(t.label))]),e._v(" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){e.delCurrent(t,"butList")}}})]):a("li",{key:i+"_"+t.groupId,staticClass:"item group-item"},[e._v("\n "+e._s(t.label)+"\n "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){e.delCurrent(t,"butList")}}})])]}),e._v(" "),a("li",{staticClass:"item J_add-btn",on:{click:function(t){e.callSelector("but",e.butList)}}},[a("i",{staticClass:"el-icon-plus"})])],2),e._v(" "),a("div",{staticClass:"setting-name"},[e._v("\n 允许指定部门/人员可见\n ")]),e._v(" "),a("ul",{staticClass:"particular-list"},[e._l(e.specialList,function(t,i){return[t.employeeClerkId?a("li",{key:i+"_"+t.employeeClerkId,staticClass:"item person-item"},[t.headPic?a("img",{attrs:{src:t.headPic}}):a("div",{staticClass:"replace-head-img"},[a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("p",{staticClass:"name"},[e._v(e._s(t.label))]),e._v(" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){e.delCurrent(t,"specialList")}}})]):a("li",{key:i+"_"+t.groupId,staticClass:"item group-item"},[e._v("\n "+e._s(t.label)+"\n "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){e.delCurrent(t,"specialList")}}})])]}),e._v(" "),a("li",{staticClass:"item J_add-btn",on:{click:function(t){e.callSelector("special",e.specialList)}}},[a("i",{staticClass:"el-icon-plus"})])],2)])},staticRenderFns:[]};var l={name:"permissionSetting",components:{selectArea:a("VU/8")(n,r,!1,function(e){a("d4aV")},null,null).exports},props:{butList:{type:Array,default:function(){return[]}},specialList:{type:Array,default:function(){return[]}},selfButList:{type:Array,default:function(){return[]}},selfSpecialList:{type:Array,default:function(){return[]}},visibleSpecialLsit:{type:Array,default:function(){return[]}},onlySelfApartList:{type:Array,default:function(){return[]}},treeData:{type:Object,default:function(){return{}}},departInfo:{type:Object,default:function(){return{}}}},data:function(){return{visibleThere:!1,visibleSelf:!1}},methods:{switchPermission:function(e,t,a){e&&(this[a]=!e),this.visibleSelf?this.departInfo.type=2:this.visibleThere?this.departInfo.type=1:this.departInfo.type=""},callPerSelector:function(e,t){this.$emit("callPerSelector",e,t)}},mounted:function(){var e=this.departInfo.type;this.visibleThere=!(1!=e),this.visibleSelf=!(2!=e)},watch:{departInfo:{handler:function(e,t){var a=e.type;this.visibleThere=!(1!=a),this.visibleSelf=!(2!=a)},deep:!0}}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"jurisdiction-setting"},[a("div",{staticClass:"only-visivble-there permission-div"},[a("div",{staticClass:"permission-div-title"},[a("span",[e._v("本部门员工仅可见本部门员工")]),e._v(" "),a("el-switch",{attrs:{"active-color":"#409EFF","inactive-color":"#DCDFE6"},on:{change:function(t){e.switchPermission(e.visibleThere,"visibleThere","visibleSelf")}},model:{value:e.visibleThere,callback:function(t){e.visibleThere=t},expression:"visibleThere"}})],1),e._v(" "),e.visibleThere?a("div",{staticClass:"particular-setting"},[a("select-area",{attrs:{treeData:e.treeData,butList:e.butList,specialList:e.specialList},on:{callPerSelector:e.callPerSelector}})],1):e._e()]),e._v(" "),a("div",{staticClass:"only-visivble-self permission-div"},[a("div",{staticClass:"permission-div-title"},[a("span",[e._v("本部门员工仅可见自己")]),e._v(" "),a("el-switch",{attrs:{"active-color":"#409EFF","inactive-color":"#DCDFE6"},on:{change:function(t){e.switchPermission(e.visibleSelf,"visibleSelf","visibleThere")}},model:{value:e.visibleSelf,callback:function(t){e.visibleSelf=t},expression:"visibleSelf"}})],1),e._v(" "),e.visibleSelf?a("div",{staticClass:"particular-setting"},[a("select-area",{attrs:{treeData:e.treeData,butList:e.selfButList,specialList:e.selfSpecialList},on:{callPerSelector:e.callPerSelector}})],1):e._e()])])},staticRenderFns:[]};var c=a("VU/8")(l,o,!1,function(e){a("747R")},null,null);t.a=c.exports},q5Ri:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("n7j5"),s=a("c4uw"),n=a("P9l9"),r={name:"addDepartment",components:{permissionSetting:i.a,vueSelectEmployee:s.a},data:function(){return{departInfo:{name:"",parentName:"",parentId:""},testList:[],treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0},rules:{name:[{required:!0,message:"请输入部门名称",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],parentId:[{required:!0,message:"请选择父级部门",trigger:"change"}]},treeData:{},disabled:!0,defaultSelection:[],defaultParent:[],selectorType:"parent",changed:"parent",onlyPerson:!1,onlyGroup:[]}},methods:{getDepartInfo:function(){var e=this,t={groupId:e.$route.query.departmentId};Object(n.a)("/haoban-manage-web/dept/findDeptById",t).then(function(t){if(1==t.data.errorCode){e.departInfo.name=t.data.result.name,e.departInfo.parentId=t.data.result.parentId;var a=t.data.result.chainName.split("/"),i=a.length;e.departInfo.parentName=1==i?"":a[i-2],e.defaultParent=[{label:e.departInfo.parentName,id:t.data.result.parentId,groupId:t.data.result.parentId}]}else e.$message.error({duration:1e3,message:t.data.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},callGroupSelector:function(){this.selectorType="parent",this.defaultSelection=this.defaultParent,this.onlyPerson=!1,this.onlyGroup=[],this.changed="parent",this.treeSet={dialogVisible:!0,isSingle:!0,isSelectPerson:!1}},callPerSelector:function(e,t){this.selectorType=e,this.defaultSelection=t,this.onlyPerson=!0,this.onlyGroup=[this.$route.query.departmentId],this.changed=e,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0}},handleSelectedList:function(e){this.departInfo.parentId=e?e.id:"",this.departInfo.parentName=e?e.label:""},saveEdit:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.$refs.departForm.validate(function(a){if(!a)return!1;var i=e,s={parentId:i.departInfo.parentId,name:i.departInfo.name};Object(n.a)("/haoban-manage-web/dept/insert",s).then(function(e){1==e.data.errorCode?(i.$message.success({duration:1e3,message:"操作成功!"}),"continue"==t?(i.departInfo={name:"",parentName:"",parentId:""},i.disabled=!0,i.getGroupData()):window.history.go(-1)):i.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){i.$message.error({duration:1e3,message:e.message})})})},getGroupData:function(){var e=this;Object(n.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(t){var a=[],i=[];1==t.data.errorCode&&(a=t.data.result.departmentList||[],i=t.data.result.searchList||[]),e.treeData={treeData:a,personData:i},e.disabled=!1}).catch(function(e){})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){})}},beforeMount:function(){this.getGroupData(),this.isAddNew||this.getDepartInfo()},computed:{isAddNew:function(){return!(1!=this.$route.query.addnew)}}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"add-department-container"},[a("div",{staticClass:"setting-cell depart-info"},[a("p",{staticClass:"title"},[e._v("部门信息")]),e._v(" "),a("el-form",{ref:"departForm",staticClass:"department-info-form",attrs:{"label-position":"right",rules:e.rules,model:e.departInfo,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"部门名称",prop:"name"}},[a("el-input",{model:{value:e.departInfo.name,callback:function(t){e.$set(e.departInfo,"name",t)},expression:"departInfo.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"部门排序调整",prop:"parentId"}},[a("el-input",{attrs:{disabled:e.disabled,"suffix-icon":"el-icon-arrow-down"},on:{focus:e.callGroupSelector},model:{value:e.departInfo.parentName,callback:function(t){e.$set(e.departInfo,"parentName",t)},expression:"departInfo.parentName"}})],1)],1)],1),e._v(" "),a("vue-select-employee",{attrs:{defaultSelection:e.defaultSelection,treeSet:e.treeSet,treeData:e.treeData},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var o=a("VU/8")(r,l,!1,function(e){a("v4vX")},null,null);t.default=o.exports},v4vX:function(e,t){}}); webpackJsonp([17],{"747R":function(e,t){},d4aV:function(e,t){},n7j5:function(e,t,a){"use strict";var i=a("mvHQ"),s=a.n(i),n={name:"select-area",components:{vueSelectEmployee:a("c4uw").a},props:{treeData:{type:Object,default:function(){return{}}},butList:{type:Array,default:function(){return[]}},specialList:{type:Array,default:function(){return[]}}},data:function(){return{copyTreeData:JSON.parse(s()(this.treeData))}},methods:{delCurrent:function(e,t){var a=this[t];a.splice(a.indexOf(e),1)},handleSelectedList:function(e){this.butList=e},callSelector:function(e,t){this.$emit("callPerSelector",e,t)}}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"select-area"},[a("div",{staticClass:"setting-name"},[e._v("\n 个别员工不设置该权限\n ")]),e._v(" "),a("ul",{staticClass:"particular-list"},[e._l(e.butList,function(t,i){return[t.employeeClerkId?a("li",{key:i+"_"+t.employeeClerkId,staticClass:"item person-item"},[t.headPic?a("img",{attrs:{src:t.headPic}}):a("div",{staticClass:"replace-head-img"},[a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("p",{staticClass:"name"},[e._v(e._s(t.label))]),e._v(" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){e.delCurrent(t,"butList")}}})]):a("li",{key:i+"_"+t.groupId,staticClass:"item group-item"},[e._v("\n "+e._s(t.label)+"\n "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){e.delCurrent(t,"butList")}}})])]}),e._v(" "),a("li",{staticClass:"item J_add-btn",on:{click:function(t){e.callSelector("but",e.butList)}}},[a("i",{staticClass:"el-icon-plus"})])],2),e._v(" "),a("div",{staticClass:"setting-name"},[e._v("\n 允许指定部门/人员可见\n ")]),e._v(" "),a("ul",{staticClass:"particular-list"},[e._l(e.specialList,function(t,i){return[t.employeeClerkId?a("li",{key:i+"_"+t.employeeClerkId,staticClass:"item person-item"},[t.headPic?a("img",{attrs:{src:t.headPic}}):a("div",{staticClass:"replace-head-img"},[a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("p",{staticClass:"name"},[e._v(e._s(t.label))]),e._v(" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){e.delCurrent(t,"specialList")}}})]):a("li",{key:i+"_"+t.groupId,staticClass:"item group-item"},[e._v("\n "+e._s(t.label)+"\n "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){e.delCurrent(t,"specialList")}}})])]}),e._v(" "),a("li",{staticClass:"item J_add-btn",on:{click:function(t){e.callSelector("special",e.specialList)}}},[a("i",{staticClass:"el-icon-plus"})])],2)])},staticRenderFns:[]};var l={name:"permissionSetting",components:{selectArea:a("VU/8")(n,r,!1,function(e){a("d4aV")},null,null).exports},props:{butList:{type:Array,default:function(){return[]}},specialList:{type:Array,default:function(){return[]}},selfButList:{type:Array,default:function(){return[]}},selfSpecialList:{type:Array,default:function(){return[]}},visibleSpecialLsit:{type:Array,default:function(){return[]}},onlySelfApartList:{type:Array,default:function(){return[]}},treeData:{type:Object,default:function(){return{}}},departInfo:{type:Object,default:function(){return{}}}},data:function(){return{visibleThere:!1,visibleSelf:!1}},methods:{switchPermission:function(e,t,a){e&&(this[a]=!e),this.visibleSelf?this.departInfo.type=2:this.visibleThere?this.departInfo.type=1:this.departInfo.type=""},callPerSelector:function(e,t){this.$emit("callPerSelector",e,t)}},mounted:function(){var e=this.departInfo.type;this.visibleThere=!(1!=e),this.visibleSelf=!(2!=e)},watch:{departInfo:{handler:function(e,t){var a=e.type;this.visibleThere=!(1!=a),this.visibleSelf=!(2!=a)},deep:!0}}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"jurisdiction-setting"},[a("div",{staticClass:"only-visivble-there permission-div"},[a("div",{staticClass:"permission-div-title"},[a("span",[e._v("本部门员工仅可见本部门员工")]),e._v(" "),a("el-switch",{attrs:{"active-color":"#409EFF","inactive-color":"#DCDFE6"},on:{change:function(t){e.switchPermission(e.visibleThere,"visibleThere","visibleSelf")}},model:{value:e.visibleThere,callback:function(t){e.visibleThere=t},expression:"visibleThere"}})],1),e._v(" "),e.visibleThere?a("div",{staticClass:"particular-setting"},[a("select-area",{attrs:{treeData:e.treeData,butList:e.butList,specialList:e.specialList},on:{callPerSelector:e.callPerSelector}})],1):e._e()]),e._v(" "),a("div",{staticClass:"only-visivble-self permission-div"},[a("div",{staticClass:"permission-div-title"},[a("span",[e._v("本部门员工仅可见自己")]),e._v(" "),a("el-switch",{attrs:{"active-color":"#409EFF","inactive-color":"#DCDFE6"},on:{change:function(t){e.switchPermission(e.visibleSelf,"visibleSelf","visibleThere")}},model:{value:e.visibleSelf,callback:function(t){e.visibleSelf=t},expression:"visibleSelf"}})],1),e._v(" "),e.visibleSelf?a("div",{staticClass:"particular-setting"},[a("select-area",{attrs:{treeData:e.treeData,butList:e.selfButList,specialList:e.selfSpecialList},on:{callPerSelector:e.callPerSelector}})],1):e._e()])])},staticRenderFns:[]};var c=a("VU/8")(l,o,!1,function(e){a("747R")},null,null);t.a=c.exports},q5Ri:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("n7j5"),s=a("c4uw"),n=a("P9l9"),r={name:"addDepartment",components:{permissionSetting:i.a,vueSelectEmployee:s.a},data:function(){return{departInfo:{name:"",parentName:"",parentId:""},testList:[],treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0},rules:{name:[{required:!0,message:"请输入部门名称",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],parentId:[{required:!0,message:"请选择父级部门",trigger:"change"}]},treeData:{},disabled:!0,defaultSelection:[],defaultParent:[],selectorType:"parent",changed:"parent",onlyPerson:!1,onlyGroup:[]}},methods:{getDepartInfo:function(){var e=this,t={groupId:e.$route.query.departmentId};Object(n.a)("/haoban-manage-web/dept/findDeptById",t).then(function(t){if(1==t.data.errorCode){e.departInfo.name=t.data.result.name,e.departInfo.parentId=t.data.result.parentId;var a=t.data.result.chainName.split("/"),i=a.length;e.departInfo.parentName=1==i?"":a[i-2],e.defaultParent=[{label:e.departInfo.parentName,id:t.data.result.parentId,groupId:t.data.result.parentId}]}else e.$message.error({duration:1e3,message:t.data.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},callGroupSelector:function(){this.selectorType="parent",this.defaultSelection=this.defaultParent,this.onlyPerson=!1,this.onlyGroup=[],this.changed="parent",this.treeSet={dialogVisible:!0,isSingle:!0,isSelectPerson:!1}},callPerSelector:function(e,t){this.selectorType=e,this.defaultSelection=t,this.onlyPerson=!0,this.onlyGroup=[this.$route.query.departmentId],this.changed=e,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0}},handleSelectedList:function(e){this.departInfo.parentId=e?e.id:"",this.departInfo.parentName=e?e.label:""},saveEdit:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.$refs.departForm.validate(function(a){if(!a)return!1;var i=e,s={parentId:i.departInfo.parentId,name:i.departInfo.name};Object(n.a)("/haoban-manage-web/dept/insert",s).then(function(e){1==e.data.errorCode?(i.$message.success({duration:1e3,message:"操作成功!"}),"continue"==t?(i.departInfo={name:"",parentName:"",parentId:""},i.disabled=!0,i.getGroupData()):window.history.go(-1)):i.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){i.$message.error({duration:1e3,message:e.message})})})},getGroupData:function(){var e=this;Object(n.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(t){var a=[],i=[];1==t.data.errorCode&&(a=t.data.result.departmentList||[],i=t.data.result.searchList||[]),e.treeData={treeData:a,personData:i},e.disabled=!1}).catch(function(e){})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){})}},beforeMount:function(){this.getGroupData(),this.isAddNew||this.getDepartInfo()},computed:{isAddNew:function(){return!(1!=this.$route.query.addnew)}}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"add-department-container"},[a("div",{staticClass:"setting-cell depart-info"},[a("p",{staticClass:"title"},[e._v("部门信息")]),e._v(" "),a("el-form",{ref:"departForm",staticClass:"department-info-form",attrs:{"label-position":"right",rules:e.rules,model:e.departInfo,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"部门名称",prop:"name"}},[a("el-input",{model:{value:e.departInfo.name,callback:function(t){e.$set(e.departInfo,"name",t)},expression:"departInfo.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"部门排序调整",prop:"parentId"}},[a("el-input",{attrs:{disabled:e.disabled,"suffix-icon":"el-icon-arrow-down"},on:{focus:e.callGroupSelector},model:{value:e.departInfo.parentName,callback:function(t){e.$set(e.departInfo,"parentName",t)},expression:"departInfo.parentName"}})],1)],1)],1),e._v(" "),a("vue-select-employee",{attrs:{defaultSelection:e.defaultSelection,treeSet:e.treeSet,treeData:e.treeData},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var o=a("VU/8")(r,l,!1,function(e){a("v4vX")},null,null);t.default=o.exports},v4vX:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([18],{"747R":function(e,t){},HHRu:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("l46T"),s=i("3Xzz"),n=i("n7j5"),r=i("c4uw"),l=i("P9l9"),o={name:"addDepartment",components:{navCrumb:s.a,permissionSetting:n.a,vueSelectEmployee:r.a,limitInput:a.a},data:function(){return{windowH:window.screen.availHeight-180+"px",navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"行政架构",path:"/administrativeFrame"},{name:"添加子分组",path:""}],navpathEdit:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"行政架构",path:"/administrativeFrame"}],departInfo:{parentName:"",chainName:"",managerClerkList:[]},testList:[],treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0},rules:{name:[{required:!0,message:"请输入部门名称",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],chainName:[{required:!0,message:"请选择父级部门",trigger:"blur"}]},treeData:{},disabled:!0,defaultSelection:[],defaultParent:[],selectorType:"parent",changed:"parent",onlyPerson:!1,onlyGroup:[],butList:[],specialList:[],selfButList:[],selfSpecialList:[]}},methods:{delGroup:function(){var e=this;e.$confirm(" 是否确认删除分组 ?","提示",{type:"warning"}).then(function(){Object(l.a)("/haoban-manage-web/dept/del",{groupId:e.$route.query.departmentId}).then(function(t){1==t.data.errorCode?(e.$message.success({message:t.data.message}),window.history.go(-1)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}).catch(function(e){})},delCurrentManager:function(e){var t=this.departInfo.managerClerkList;t.splice(t.indexOf(e),1)},getDepartInfo:function(){var e=this,t=this,i={groupId:t.$route.query.departmentId};Object(l.a)("/haoban-manage-web/dept/findDeptById",i).then(function(i){1==i.data.errorCode?e.formatGroupInfo(i.data.result):t.$message.error({duration:1e3,message:i.data.message})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},formatGroupInfo:function(e){this.departInfo.parentName=e.chainName,this.defaultParent=[{label:this.departInfo.parentName,id:e.parentId,groupId:e.parentId}],e.managerClerkList=e.managerClerkList?e.managerClerkList:[],e.managerClerkList.forEach(function(e){e.label=e.name,e.id=e.employeeClerkId}),e.noPreClerkList=e.noPreClerkList||[],e.allowClerkList=e.allowClerkList||[],e.allowDeptList=e.allowDeptList||[],e.noPreClerkList.forEach(function(e){e.label=e.name,e.id=e.employeeClerkId}),e.allowClerkList.forEach(function(e){e.label=e.name,e.id=e.employeeClerkId}),e.allowDeptList.forEach(function(e){e.label=e.name,e.id=e.groupId}),1==e.type?(this.butList=e.noPreClerkList,this.specialList=e.allowDeptList.concat(e.allowClerkList),this.selfButList=[],this.selfSpecialList=[]):2==e.type&&(this.butList=[],this.specialList=[],this.selfButList=e.noPreClerkList,this.selfSpecialList=e.allowDeptList.concat(e.allowClerkList)),this.departInfo=e},callGroupSelector:function(){this.selectorType="parent",this.defaultSelection=this.defaultParent,this.onlyPerson=!1,this.onlyGroup=[],this.changed="parent",this.treeSet={dialogVisible:!0,isSingle:!0,isSelectPerson:!1}},callPerSelector:function(e,t){"but"==e||"selectManager"==e?(this.selectorType=e,this.defaultSelection=t,this.onlyPerson=!0,this.onlyGroup=[this.$route.query.departmentId],this.changed=e,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0}):(this.selectorType=e,this.defaultSelection=t,this.onlyPerson=!1,this.onlyGroup=[],this.changed=e,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0})},handleSelectedList:function(e){"parent"==this.changed?(this.departInfo.parentId=e?e.id:"",this.departInfo.parentName=e?e.label:"",this.departInfo.chainName=e?e.chainName:"",this.departInfo.chainName&&this.$refs.departForm.clearValidate("chainName")):"but"==this.changed?2==this.departInfo.type?this.selfButList=e:this.butList=e:"special"==this.changed?2==this.departInfo.type?this.selfSpecialList=e:this.specialList=e:"selectManager"==this.changed&&(this.departInfo.managerClerkList=e)},saveEdit:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this;this.$refs.departForm.validate(function(i){if(!i)return!1;var a=t.departInfo.type,s=[];""!=a&&t[1==a?"butList":"selfButList"].forEach(function(e){s.push(e.id)});var n=[],r=[];t.specialList.forEach(function(e){e.employeeClerkId?n.push(e.id):r.push(e.id)}),t.selfSpecialList.forEach(function(e){e.employeeClerkId?n.push(e.id):r.push(e.id)});var o=s.join(","),c=[];t.departInfo.managerClerkList.forEach(function(e){c.push(e.id)});var d={type:a,managerClerkIds:c=c.join(","),noPreCherkIds:o,allowCherkIds:n.join(","),allowDepartIds:r.join(","),parentId:t.departInfo.parentId,name:t.departInfo.name};t.isAddNew||(d.groupId=t.$route.query.departmentId,d.isStoreGroup=0);var u=t.isAddNew?"/haoban-manage-web/dept/insert":"/haoban-manage-web/dept/update";Object(l.a)(u,d).then(function(i){1==i.data.errorCode?(t.$message.success({duration:1e3,message:"操作成功!"}),"continue"==e?(t.departInfo={name:"",parentName:"",chainName:"",parentId:"",managerClerkList:[]},t.disabled=!0,t.getGroupData()):window.history.go(-1)):t.$message.error({duration:1e3,message:i.data.message})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})})},getGroupData:function(){var e=this;Object(l.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(t){var i=[],a=[];1==t.data.errorCode&&(i=t.data.result.departmentList||[],a=t.data.result.searchList||[]),e.treeData={treeData:i,personData:a},e.disabled=!1}).catch(function(e){})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){})}},beforeMount:function(){this.getGroupData(),this.isAddNew||(this.getDepartInfo(),this.navpathEdit.push({name:"编辑"+("company"==this.$route.query.type?"企业信息":"部门信息"),path:""}),this.navpath=this.navpathEdit),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"},computed:{isAddNew:function(){return!(1!=this.$route.query.addnew)}}},c={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"common-set-wrap",style:{height:e.windowH}},[i("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box"},[i("div",{staticClass:"add-department-container"},["group"==e.$route.query.type?i("div",{staticClass:"setting-cell depart-info"},[i("p",{staticClass:"title"},[e._v("部门信息")]),e._v(" "),i("el-form",{ref:"departForm",staticClass:"department-info-form",attrs:{"label-position":"right",rules:e.rules,model:e.departInfo,"label-width":"120px"}},[i("el-form-item",{attrs:{label:"部门名称",prop:"name"}},[i("limitInput",{attrs:{inputWidth:380,inputValue:e.departInfo.name,holder:"请输入部门名称",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.departInfo,"name",t)}}})],1),e._v(" "),e.isAddNew?e._e():i("el-form-item",{attrs:{label:"部门负责人"}},[i("ul",{staticClass:"particular-list",staticStyle:{"margin-bottom":"0",width:"380px"}},[e._l(e.departInfo.managerClerkList,function(t,a){return[i("li",{key:a+"_"+t.id,staticClass:"item person-item",staticStyle:{"margin-top":"0"}},[t.headPic?i("img",{attrs:{src:t.headPic}}):i("div",{staticClass:"replace-head-img"},[i("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),i("p",{staticClass:"name"},[e._v(e._s(t.label))]),e._v(" "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(i){e.delCurrentManager(t)}}})])]}),e._v(" "),i("li",{staticClass:"item J_add-btn",staticStyle:{"margin-top":"0"},on:{click:function(t){e.callPerSelector("selectManager",e.departInfo.managerClerkList)}}},[i("i",{staticClass:"el-icon-plus"})])],2)]),e._v(" "),i("el-form-item",{attrs:{label:"部门排序调整",prop:"chainName"}},[i("el-input",{attrs:{disabled:e.disabled,readonly:"","suffix-icon":"el-icon-arrow-down"},on:{focus:e.callGroupSelector},model:{value:e.departInfo.chainName,callback:function(t){e.$set(e.departInfo,"chainName",t)},expression:"departInfo.chainName"}})],1)],1)],1):i("div",{staticClass:"setting-cell depart-info"},[i("p",{staticClass:"title"},[e._v("企业信息")]),e._v(" "),i("el-form",{ref:"departForm",staticClass:"department-info-form",attrs:{"label-position":"right",rules:e.rules,model:e.departInfo,"label-width":"120px"}},[i("el-form-item",{attrs:{label:"企业名称",prop:"name"}},[i("limitInput",{attrs:{inputWidth:380,disflag:!0,inputValue:e.departInfo.name,holder:"请输入企业名称",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.departInfo,"name",t)}}})],1)],1)],1),e._v(" "),e.isAddNew?e._e():i("div",{staticClass:"setting-cell m-b-48"},[i("p",{staticClass:"title"},[e._v("权限设置")]),e._v(" "),e.disabled?e._e():i("permission-setting",{attrs:{departInfo:e.departInfo,selfButList:e.selfButList,selfSpecialList:e.selfSpecialList,butList:e.butList,specialList:e.specialList,visibleSpecialLsit:e.testList,onlySelfApartList:e.testList,treeData:e.treeData},on:{callPerSelector:e.callPerSelector}})],1),e._v(" "),i("div",{staticClass:"setting-cell fixed-footer"},[i("div",{staticClass:"btn-area"},[i("el-button",{attrs:{type:"primary"},on:{click:e.saveEdit}},[e._v("保 存")]),e._v(" "),e.isAddNew?i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveEdit("continue")}}},[e._v("保存并继续添加")]):"group"==e.$route.query.type?i("el-button",{attrs:{type:"danger"},on:{click:e.delGroup}},[e._v("删 除")]):e._e(),e._v(" "),i("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)]),e._v(" "),i("vue-select-employee",{attrs:{changed:e.changed,onlyPerson:e.onlyPerson,onlyGroup:e.onlyGroup,defaultSelection:e.defaultSelection,treeSet:e.treeSet,treeData:e.treeData},on:{handleSelectedList:e.handleSelectedList}})],1)])])],1)},staticRenderFns:[]};var d=i("VU/8")(o,c,!1,function(e){i("HUbF")},null,null);t.default=d.exports},HUbF:function(e,t){},d4aV:function(e,t){},n7j5:function(e,t,i){"use strict";var a=i("mvHQ"),s=i.n(a),n={name:"select-area",components:{vueSelectEmployee:i("c4uw").a},props:{treeData:{type:Object,default:function(){return{}}},butList:{type:Array,default:function(){return[]}},specialList:{type:Array,default:function(){return[]}}},data:function(){return{copyTreeData:JSON.parse(s()(this.treeData))}},methods:{delCurrent:function(e,t){var i=this[t];i.splice(i.indexOf(e),1)},handleSelectedList:function(e){this.butList=e},callSelector:function(e,t){this.$emit("callPerSelector",e,t)}}},r={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"select-area"},[i("div",{staticClass:"setting-name"},[e._v("\n 个别员工不设置该权限\n ")]),e._v(" "),i("ul",{staticClass:"particular-list"},[e._l(e.butList,function(t,a){return[t.employeeClerkId?i("li",{key:a+"_"+t.employeeClerkId,staticClass:"item person-item"},[t.headPic?i("img",{attrs:{src:t.headPic}}):i("div",{staticClass:"replace-head-img"},[i("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),i("p",{staticClass:"name"},[e._v(e._s(t.label))]),e._v(" "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(i){e.delCurrent(t,"butList")}}})]):i("li",{key:a+"_"+t.groupId,staticClass:"item group-item"},[e._v("\n "+e._s(t.label)+"\n "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(i){e.delCurrent(t,"butList")}}})])]}),e._v(" "),i("li",{staticClass:"item J_add-btn",on:{click:function(t){e.callSelector("but",e.butList)}}},[i("i",{staticClass:"el-icon-plus"})])],2),e._v(" "),i("div",{staticClass:"setting-name"},[e._v("\n 允许指定部门/人员可见\n ")]),e._v(" "),i("ul",{staticClass:"particular-list"},[e._l(e.specialList,function(t,a){return[t.employeeClerkId?i("li",{key:a+"_"+t.employeeClerkId,staticClass:"item person-item"},[t.headPic?i("img",{attrs:{src:t.headPic}}):i("div",{staticClass:"replace-head-img"},[i("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),i("p",{staticClass:"name"},[e._v(e._s(t.label))]),e._v(" "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(i){e.delCurrent(t,"specialList")}}})]):i("li",{key:a+"_"+t.groupId,staticClass:"item group-item"},[e._v("\n "+e._s(t.label)+"\n "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(i){e.delCurrent(t,"specialList")}}})])]}),e._v(" "),i("li",{staticClass:"item J_add-btn",on:{click:function(t){e.callSelector("special",e.specialList)}}},[i("i",{staticClass:"el-icon-plus"})])],2)])},staticRenderFns:[]};var l={name:"permissionSetting",components:{selectArea:i("VU/8")(n,r,!1,function(e){i("d4aV")},null,null).exports},props:{butList:{type:Array,default:function(){return[]}},specialList:{type:Array,default:function(){return[]}},selfButList:{type:Array,default:function(){return[]}},selfSpecialList:{type:Array,default:function(){return[]}},visibleSpecialLsit:{type:Array,default:function(){return[]}},onlySelfApartList:{type:Array,default:function(){return[]}},treeData:{type:Object,default:function(){return{}}},departInfo:{type:Object,default:function(){return{}}}},data:function(){return{visibleThere:!1,visibleSelf:!1}},methods:{switchPermission:function(e,t,i){e&&(this[i]=!e),this.visibleSelf?this.departInfo.type=2:this.visibleThere?this.departInfo.type=1:this.departInfo.type=""},callPerSelector:function(e,t){this.$emit("callPerSelector",e,t)}},mounted:function(){var e=this.departInfo.type;this.visibleThere=!(1!=e),this.visibleSelf=!(2!=e)},watch:{departInfo:{handler:function(e,t){var i=e.type;this.visibleThere=!(1!=i),this.visibleSelf=!(2!=i)},deep:!0}}},o={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"jurisdiction-setting"},[i("div",{staticClass:"only-visivble-there permission-div"},[i("div",{staticClass:"permission-div-title"},[i("span",[e._v("本部门员工仅可见本部门员工")]),e._v(" "),i("el-switch",{attrs:{"active-color":"#409EFF","inactive-color":"#DCDFE6"},on:{change:function(t){e.switchPermission(e.visibleThere,"visibleThere","visibleSelf")}},model:{value:e.visibleThere,callback:function(t){e.visibleThere=t},expression:"visibleThere"}})],1),e._v(" "),e.visibleThere?i("div",{staticClass:"particular-setting"},[i("select-area",{attrs:{treeData:e.treeData,butList:e.butList,specialList:e.specialList},on:{callPerSelector:e.callPerSelector}})],1):e._e()]),e._v(" "),i("div",{staticClass:"only-visivble-self permission-div"},[i("div",{staticClass:"permission-div-title"},[i("span",[e._v("本部门员工仅可见自己")]),e._v(" "),i("el-switch",{attrs:{"active-color":"#409EFF","inactive-color":"#DCDFE6"},on:{change:function(t){e.switchPermission(e.visibleSelf,"visibleSelf","visibleThere")}},model:{value:e.visibleSelf,callback:function(t){e.visibleSelf=t},expression:"visibleSelf"}})],1),e._v(" "),e.visibleSelf?i("div",{staticClass:"particular-setting"},[i("select-area",{attrs:{treeData:e.treeData,butList:e.selfButList,specialList:e.selfSpecialList},on:{callPerSelector:e.callPerSelector}})],1):e._e()])])},staticRenderFns:[]};var c=i("VU/8")(l,o,!1,function(e){i("747R")},null,null);t.a=c.exports}});
\ No newline at end of file
webpackJsonp([19],{"6sQJ":function(e,t){},LArp:function(e,t){},Zx22:function(e,t,a){"use strict";var s={name:"custom-dialog",props:{value:{type:Boolean,default:!1},storeChangeData:{type:[Object,Array]}},data:function(){return{repProjectName:"gic-web",customDialog:this.value,leftData:[],rightData:[]}},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("input",this.customDialog)},formatDate:function(e,t){function a(e){return e>9?""+e:"0"+e}var s=new Date(e),n=s.getFullYear(),i=s.getMonth()+1,o=s.getDate();return n+t+a(i)+t+a(o)+t},handleData:function(){}},watch:{value:function(e,t){this.customDialog=e},storeChangeData:function(e,t){this.leftData=e.beforeContent,this.rightData=e.afterContent}},mounted:function(){this.leftData=this.storeChangeData.beforeContent,this.rightData=this.storeChangeData.afterContent}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"门店图片变更",visible:e.customDialog,width:"600px","before-close":e.handleCardClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"dialog-content"},[a("el-row",[a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[e._v("\n 变更前\n ")]),e._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[e._l(e.leftData,function(e,t){return[a("img",{key:"img"+t,attrs:{src:e,alt:""}})]})],2)])]),e._v(" "),a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[e._v("\n 变更后\n ")]),e._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[e._l(e.rightData,function(e,t){return[a("img",{key:"img0"+t,attrs:{src:e,alt:""}})]})],2)])])],1)],1)])],1)},staticRenderFns:[]};var i=a("VU/8")(s,n,!1,function(e){a("LArp")},"data-v-e0628fc0",null);t.a=i.exports},xCEU:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("3Xzz"),n=a("Zx22"),i=a("3E4D"),o=a("Ch4/"),r=a("PI0u"),l=a("P9l9"),c={name:"unreview",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"审核中心",path:"/unreview"},{name:"待审核",path:""}],filterValue:"",filterBrand:"",brandOptions:[],filterOptions:[{label:"全部事项",value:""},{label:"门店信息变更",value:"0"},{label:"新增成员",value:"1"},{label:"成员离职",value:"2"},{label:"转移成员",value:"3"}],tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,selectId:"",ruleForm:{refuseReason:""},rules:{refuseReason:[{required:!0,message:"拒绝理由不能为空",trigger:"change"},{min:1,max:50,message:"长度在 1 到 50 个字",trigger:"change"}]},showStoreDialog:!1,storeChangeData:{beforeContent:[],afterContent:[]},approveVisible:!1,refuseVisible:!1}},filters:{formatTimeYMD:function(e){return"--"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return"--"!=e?e.split(" ")[1]:"--"},formatNum:function(e){return(e+"").replace(/\d{1,3}(?=(\d{3})+$)/g,"$&,")}},computed:{},methods:{handleSelectionChange:function(e){this.multipleSelection=e},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleClick:function(e,t,a){this.selectId=t.enterpriseAuditingId,a?this.refuseVisible=!0:this.approveVisible=!0},sendApprove:Object(r.a)(function(){this.postApprove(this.selectId)},500),approveAll:Object(r.a)(function(){var e=this.multipleSelection.length?this.multipleSelection.map(function(e){return e.enterpriseAuditingId}):"";if(!e)return this.$message({message:"请至少选择一条审核事项",type:"warning"}),!1;this.postAllApprove(e)},500),postApprove:function(e){var t=this,a={enterpriseAuditingId:e};Object(l.e)("/haoban-manage-web/audit/approve.json",a).then(function(e){var a=e.data;if(1==a.errorCode)return i.a.showmsg("操作成功","success"),t.approveVisible=!1,void t.getTableList();o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},postAllApprove:function(e){var t=this,a={enterpriseAuditingIds:e};Object(l.e)("/haoban-manage-web/audit/batch-approve.json",a).then(function(e){var a=e.data;if(1==a.errorCode)return i.a.showmsg("操作成功","success"),void t.getTableList();o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},cancelRefuse:function(e){this.refuseVisible=!1,this.$refs.ruleForm.resetFields()},sendRefuse:Object(r.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.postRefuse()})},500),postRefuse:function(){var e=this,t={enterpriseAuditingId:e.selectId,refuseReason:e.ruleForm.refuseReason};Object(l.a)("/haoban-manage-web/audit/refuse.json",t).then(function(t){var a=t.data;if(1==a.errorCode)return i.a.showmsg("操作成功","success"),e.refuseVisible=!1,e.$refs.ruleForm.resetFields(),void e.getTableList();o.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},showSingleInfo:function(e){},showStoreChange:function(e){this.storeChangeData={beforeContent:[],afterContent:[]},this.showStoreDialog=!0,this.storeChangeData={beforeContent:""!=e.beforeContent?JSON.parse(e.beforeContent):[],afterContent:""!=e.afterContent?JSON.parse(e.afterContent):[]}},getBrandData:function(){var e=this;Object(l.e)("/haoban-manage-web/application-brand-list",{}).then(function(t){var a=t.data;1!=a.errorCode?o.a.errorMsg(a):a.result&&a.result.length&&(e.brandOptions=a.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getTableList:function(e){var t=this;e&&(t.currentPage=1);var a={auditingType:t.filterValue,auditingStatus:"0",search:"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.filterBrand};Object(l.a)("/haoban-manage-web/audit/auditing-list.json",a).then(function(e){var a=e.data;if(1==a.errorCode)return a.result&&a.result.list&&a.result.list.forEach(function(e,t){e.createTime&&(e.createTime=Object(r.c)(e.createTime))}),t.tableData=a.result.list,void(t.total=a.result.total);o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.getTableList(),this.getBrandData()},components:{navCrumb:s.a,storeChange:n.a}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"unreview-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":e.$store.state.bgHeight}},[a("div",{staticClass:"reviewed-body-head flex flex-space-between"},[a("div",[a("el-select",{staticClass:"w-130",attrs:{placeholder:"全部事项"},on:{change:e.getTableList},model:{value:e.filterValue,callback:function(t){e.filterValue=t},expression:"filterValue"}},e._l(e.filterOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部品牌"},on:{change:e.getTableList},model:{value:e.filterBrand,callback:function(t){e.filterBrand=t},expression:"filterBrand"}},[a("el-option",{attrs:{label:"全部品牌",value:""}}),e._v(" "),e._l(e.brandOptions,function(e){return a("el-option",{key:e.brandId,attrs:{label:e.name,value:e.brandId}})})],2)],1),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.approveAll}},[e._v("批量同意")])],1),e._v(" "),a("div",{staticClass:"reviewed-body-content"},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"审核事项"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0==t.row.auditingType?"门店信息变更":1==t.row.auditingType?"新增成员":2==t.row.auditingType?"成员离职":"转移成员")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"品牌"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.brandName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex"},[a("el-popover",{attrs:{placement:"top-start",width:"400",trigger:"hover"},on:{show:function(a){e.showSingleInfo(t.row.applyId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[t.row.headPic?a("img",{attrs:{src:t.row.headPic,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[e._v("\n "+e._s(t.row.applyName)+"\n "),a("i",{class:[2==t.row.sex?"icon-xingbienv color-FF585C":"icon-xingbienan color-508CEE","iconfont"]})]),e._v(" "),a("div",{staticClass:"apply-info-code"},[a("span",{staticClass:"w-80"},[e._v("员工代码:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.code))])]),e._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[e._v("手机号:")]),a("span",{staticClass:"w-130"},[e._v(e._s("86"==t.row.nationcode?t.row.phoneNumber:"+"+t.row.nationcode+"-"+t.row.phoneNumber))])]),e._v(" "),a("div",{staticClass:"apply-info-job"},[a("span",{staticClass:"w-80"},[e._v("职位:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.positionName))])]),e._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[e._v("所属门店:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.storeName))])])])])]),e._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[t.row.headPic?a("img",{attrs:{src:t.row.headPic,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])])]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",[e._v(e._s(t.row.applyName))]),e._v(" "),a("span",{staticClass:"font-13"},[e._v(e._s(t.row.storeName))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"详情","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0!=t.row.auditingType||0==t.row.auditingType&&1!=t.row.auditingUpdateType?a("span",[e._v(e._s(t.row.detail))]):e._e(),e._v(" "),1==t.row.auditingUpdateType?a("div",{staticClass:"line-hidden-2"},[a("span",[e._v(e._s(t.row.detail))]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.showStoreChange(t.row)}}},[e._v("查看详情")])],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-h-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"line-h-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleClick(t.$index,t.row)}}},[e._v("同意")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleClick(t.$index,t.row,"refuse")}}},[e._v("拒绝")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[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)])]),e._v(" "),a("vue-gic-footer"),e._v(" "),a("storeChange",{attrs:{storeChangeData:e.storeChangeData},model:{value:e.showStoreDialog,callback:function(t){e.showStoreDialog=t},expression:"showStoreDialog"}}),e._v(" "),a("el-dialog",{staticClass:"approve-dialog",attrs:{title:"",visible:e.approveVisible,width:"422px"},on:{"update:visible":function(t){e.approveVisible=t}}},[a("div",{staticClass:"approve-body text-center"},[a("div",[a("i",{staticClass:"el-icon-success"}),a("span",{staticClass:"approve-icon-tip"},[e._v("同意")])]),e._v(" "),a("div",{staticClass:"approve-tip"},[e._v("是否确认同意")])]),e._v(" "),a("div",{staticClass:"approve-footer dialog-footer",staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.approveVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.sendApprove}},[e._v("确 定")])],1)]),e._v(" "),a("el-dialog",{staticClass:"refuse-dialog",attrs:{title:"提示",visible:e.refuseVisible,"before-close":e.cancelRefuse,width:"422px"},on:{"update:visible":function(t){e.refuseVisible=t}}},[a("div",[a("div",{staticClass:"refuse-tip"},[e._v("请输入拒绝理由")]),e._v(" "),a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules}},[a("el-form-item",{attrs:{label:"",prop:"refuseReason"}},[a("el-input",{staticClass:"font-14",attrs:{type:"textarea",placeholder:"最多 50 个字",rows:3},model:{value:e.ruleForm.refuseReason,callback:function(t){e.$set(e.ruleForm,"refuseReason",t)},expression:"ruleForm.refuseReason"}})],1)],1)],1),e._v(" "),a("div",{staticClass:"approve-footer dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.cancelRefuse("ruleForm")}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.sendRefuse("ruleForm")}}},[e._v("确 定")])],1)])],1)},staticRenderFns:[]};var d=a("VU/8")(c,u,!1,function(e){a("6sQJ")},"data-v-94fa0f4c",null);t.default=d.exports}});
\ No newline at end of file
webpackJsonp([20],{"27o1":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("3Xzz"),o={name:"add-clerk-page",components:{clerkInfo:r("oncj").a,navCrumb:n.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"新增店员",path:""}],isAddnew:!1,firstLevelId:"",storeType:"",gicFlag:!(!this.$route.query.gicFlag||"false"==this.$route.query.gicFlag)}},beforeMount:function(){this.firstLevelId=this.$route.query.firstLevelId,this.storeType=this.$route.query.type,this.$route.query.clerkId?(this.isAddnew=!1,this.navpath[3].name="编辑店员"):this.isAddnew=!0}},a={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"common-set-wrap add-clerk-wrap"},[t("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"add-clerk-page"},[t("clerk-info",{attrs:{storeType:this.storeType,firstLevelId:this.firstLevelId,isAddnew:this.isAddnew,gicFlag:this.gicFlag}})],1)])]),this._v(" "),t("vue-gic-footer")],1)},staticRenderFns:[]};var i=r("VU/8")(o,a,!1,function(e){r("Xx3p")},null,null);t.default=i.exports},Xx3p:function(e,t){},moV9:function(e,t){},oncj:function(e,t,r){"use strict";var n=r("l46T"),o=r("Ie7z"),a=r("P9l9"),i=r("XDyb"),s=r("T+u5"),l=r.n(s),c={name:"clerk-info-form",props:{isAddnew:{type:Boolean,default:!1},perId:{type:[String,Number],default:""},firstLevelId:{type:[String,Number],default:""},storeType:{type:[String,Number],default:""},gicFlag:{type:Boolean,default:!1}},components:{vueSelectStore:o.a,countryMobile:i.a,limitInput:n.a},data:function(){var e=this;return{rules:{name:[{required:!0,message:"请输入店员姓名",trigger:"blur"}],phoneNumber:[{required:!0,validator:function(t,r,n){if(!r)return n(new Error("请输入手机号"));var o=new l.a("+"+e.clerkInfo.nationcode+r);o.isValid()&&o.isMobile()?n():n(new Error("手机号格式不正确"))},trigger:"blur"}],storeName:[{required:!0,message:"请选择门店",trigger:"change"}],code:[{required:!0,validator:function(t,r,n){if(""==r)return n(new Error("请输入工号或员工代码"));/^[A-Za-z0-9_\u4e00-\u9fa5]+$/.test(r)?n():e.clerkInfo.code=r.replace(/[^A-Za-z0-9_\u4e00-\u9fa5]+/g,"")},trigger:"blur"}]},clerkInfo:{storeName:this.$route.query.storeName||"",storeId:this.$route.query.storeId||"",managerMode:!1,positionName:"职员",nationcode:"86"},treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0,groupId:"",storeType:"",openNextBool:!0},defaultList:[{id:this.$route.query.storeId,label:this.$route.query.storeName}]}},methods:{toInputCode:function(e){var t=this.clerkInfo.code;""!==t&&(this.clerkInfo.code=t.replace(/[^A-Za-z0-9]+/g,""))},saveFn:function(e){var t=!0;this.$refs.clerk_info.validate(function(e){e||(t=!1)}),t&&this.addEmployee(this.clerkInfo,e)},callSelector:function(){this.treeSet.dialogVisible=!0},handleSelectedList:function(e){this.clerkInfo.storeName=e&&e.length?e[0].label:"",this.clerkInfo.storeId=e&&e.length?e[0].id:"",this.$forceUpdate()},addEmployee:function(e,t){var r=this,n={name:e.name,isClerk:1,phoneNumber:e.phoneNumber,positionName:e.positionName,storeId:e.storeId,managerMode:1*e.managerMode,code:e.code,employeeClerkId:e.employeeClerkId||"",nationcode:e.nationcode},o=r.isAddnew?"/haoban-manage-web/emp/add":"/haoban-manage-web/emp/update";Object(a.a)(o,n).then(function(e){1==e.data.errorCode?(r.$message.success({message:"操作成功"}),1==t?(r.clerkInfo={name:"",isClerk:1,phoneNumber:"",positionName:"职员",storeId:"",managerMode:!1,code:"",nationcode:"86"},r.defaultList=[],r.$refs.clerk_info.resetFields()):r.$router.push("/storeFrame")):r.$message.error({message:e.data.message})}).catch(function(e){r.$message.error({message:e.message})})},cancel:function(){var e=this;this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){e.$router.go(-1)}).catch(function(e){})},getClerkInfo:function(){var e=this,t={id:e.$route.query.clerkId?e.$route.query.clerkId:e.perId};Object(a.a)("/haoban-manage-web/emp/findOne",t).then(function(t){1==t.data.errorCode?(e.clerkInfo=t.data.result,e.defaultList=[{id:t.data.result.storeId,label:t.data.result.storeName}]):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t})})}},beforeMount:function(){this.treeSet.storeType=this.storeType,this.treeSet.groupId=this.firstLevelId,this.isAddnew||this.getClerkInfo()},watch:{perId:function(e,t){this.getClerkInfo(e)}}},d={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"form-container bdr-box"},[r("el-form",{ref:"clerk_info",staticClass:"add-clerk-form",attrs:{model:e.clerkInfo,rules:e.rules,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"姓名",prop:"name"}},[r("limitInput",{attrs:{inputWidth:380,inputValue:e.clerkInfo.name,holder:"请输入姓名",maxLength:10},on:{"update:inputValue":function(t){e.$set(e.clerkInfo,"name",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号",prop:"phoneNumber"}},[r("countryMobile",{attrs:{inputWidth:380,nationCode:e.clerkInfo.nationcode,holder:"请输入手机号",disflag:!e.isAddnew},on:{"update:nationCode":function(t){e.$set(e.clerkInfo,"nationcode",t)}},model:{value:e.clerkInfo.phoneNumber,callback:function(t){e.$set(e.clerkInfo,"phoneNumber",t)},expression:"clerkInfo.phoneNumber"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"门店",prop:"storeName"}},[r("el-input",{staticClass:"clerk-info-input",attrs:{disabled:!e.isAddnew},on:{focus:e.callSelector},model:{value:e.clerkInfo.storeName,callback:function(t){e.$set(e.clerkInfo,"storeName",t)},expression:"clerkInfo.storeName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"code",prop:"code"}},[r("limitInput",{attrs:{inputWidth:380,disflag:e.gicFlag&&!e.isAddnew,inputValue:e.clerkInfo.code,holder:"请输入工号或员工代码",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.clerkInfo,"code",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"职位",prop:"positionName"}},[r("limitInput",{attrs:{inputWidth:380,inputValue:e.clerkInfo.positionName,holder:"请输入职位",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.clerkInfo,"positionName",t)}}})],1)],1),e._v(" "),r("div",{staticClass:"btn-box"},[r("el-button",{attrs:{type:"primary"},on:{click:e.saveFn}},[e._v("保 存")]),e._v(" "),!e.gicFlag&&e.isAddnew?r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveFn(1)}}},[e._v("保存并继续添加")]):e._e(),e._v(" "),e.gicFlag?e._e():r("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1),e._v(" "),r("vue-select-store",{ref:"storeSelector",attrs:{selectType:"store",defaultList:e.defaultList,treeSet:e.treeSet},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var u=r("VU/8")(c,d,!1,function(e){r("moV9")},null,null);t.a=u.exports}}); webpackJsonp([19],{"27o1":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("3Xzz"),o={name:"add-clerk-page",components:{clerkInfo:r("oncj").a,navCrumb:n.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"新增店员",path:""}],isAddnew:!1,firstLevelId:"",storeType:"",gicFlag:!(!this.$route.query.gicFlag||"false"==this.$route.query.gicFlag)}},beforeMount:function(){this.firstLevelId=this.$route.query.firstLevelId,this.storeType=this.$route.query.type,this.$route.query.clerkId?(this.isAddnew=!1,this.navpath[3].name="编辑店员"):this.isAddnew=!0}},a={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"common-set-wrap add-clerk-wrap"},[t("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"add-clerk-page"},[t("clerk-info",{attrs:{storeType:this.storeType,firstLevelId:this.firstLevelId,isAddnew:this.isAddnew,gicFlag:this.gicFlag}})],1)])]),this._v(" "),t("vue-gic-footer")],1)},staticRenderFns:[]};var i=r("VU/8")(o,a,!1,function(e){r("Xx3p")},null,null);t.default=i.exports},Xx3p:function(e,t){},moV9:function(e,t){},oncj:function(e,t,r){"use strict";var n=r("l46T"),o=r("Ie7z"),a=r("P9l9"),i=r("XDyb"),s=r("T+u5"),l=r.n(s),c={name:"clerk-info-form",props:{isAddnew:{type:Boolean,default:!1},perId:{type:[String,Number],default:""},firstLevelId:{type:[String,Number],default:""},storeType:{type:[String,Number],default:""},gicFlag:{type:Boolean,default:!1}},components:{vueSelectStore:o.a,countryMobile:i.a,limitInput:n.a},data:function(){var e=this;return{rules:{name:[{required:!0,message:"请输入店员姓名",trigger:"blur"}],phoneNumber:[{required:!0,validator:function(t,r,n){if(!r)return n(new Error("请输入手机号"));var o=new l.a("+"+e.clerkInfo.nationcode+r);o.isValid()&&o.isMobile()?n():n(new Error("手机号格式不正确"))},trigger:"blur"}],storeName:[{required:!0,message:"请选择门店",trigger:"change"}],code:[{required:!0,validator:function(t,r,n){if(""==r)return n(new Error("请输入工号或员工代码"));/^[A-Za-z0-9_\u4e00-\u9fa5]+$/.test(r)?n():e.clerkInfo.code=r.replace(/[^A-Za-z0-9_\u4e00-\u9fa5]+/g,"")},trigger:"blur"}]},clerkInfo:{storeName:this.$route.query.storeName||"",storeId:this.$route.query.storeId||"",managerMode:!1,positionName:"职员",nationcode:"86"},treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0,groupId:"",storeType:"",openNextBool:!0},defaultList:[{id:this.$route.query.storeId,label:this.$route.query.storeName}]}},methods:{toInputCode:function(e){var t=this.clerkInfo.code;""!==t&&(this.clerkInfo.code=t.replace(/[^A-Za-z0-9]+/g,""))},saveFn:function(e){var t=!0;this.$refs.clerk_info.validate(function(e){e||(t=!1)}),t&&this.addEmployee(this.clerkInfo,e)},callSelector:function(){this.treeSet.dialogVisible=!0},handleSelectedList:function(e){this.clerkInfo.storeName=e&&e.length?e[0].label:"",this.clerkInfo.storeId=e&&e.length?e[0].id:"",this.$forceUpdate()},addEmployee:function(e,t){var r=this,n={name:e.name,isClerk:1,phoneNumber:e.phoneNumber,positionName:e.positionName,storeId:e.storeId,managerMode:1*e.managerMode,code:e.code,employeeClerkId:e.employeeClerkId||"",nationcode:e.nationcode},o=r.isAddnew?"/haoban-manage-web/emp/add":"/haoban-manage-web/emp/update";Object(a.a)(o,n).then(function(e){1==e.data.errorCode?(r.$message.success({message:"操作成功"}),1==t?(r.clerkInfo={name:"",isClerk:1,phoneNumber:"",positionName:"职员",storeId:"",managerMode:!1,code:"",nationcode:"86"},r.defaultList=[],r.$refs.clerk_info.resetFields()):r.$router.push("/storeFrame")):r.$message.error({message:e.data.message})}).catch(function(e){r.$message.error({message:e.message})})},cancel:function(){var e=this;this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){e.$router.go(-1)}).catch(function(e){})},getClerkInfo:function(){var e=this,t={id:e.$route.query.clerkId?e.$route.query.clerkId:e.perId};Object(a.a)("/haoban-manage-web/emp/findOne",t).then(function(t){1==t.data.errorCode?(e.clerkInfo=t.data.result,e.defaultList=[{id:t.data.result.storeId,label:t.data.result.storeName}]):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t})})}},beforeMount:function(){this.treeSet.storeType=this.storeType,this.treeSet.groupId=this.firstLevelId,this.isAddnew||this.getClerkInfo()},watch:{perId:function(e,t){this.getClerkInfo(e)}}},d={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"form-container bdr-box"},[r("el-form",{ref:"clerk_info",staticClass:"add-clerk-form",attrs:{model:e.clerkInfo,rules:e.rules,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"姓名",prop:"name"}},[r("limitInput",{attrs:{inputWidth:380,inputValue:e.clerkInfo.name,holder:"请输入姓名",maxLength:10},on:{"update:inputValue":function(t){e.$set(e.clerkInfo,"name",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号",prop:"phoneNumber"}},[r("countryMobile",{attrs:{inputWidth:380,nationCode:e.clerkInfo.nationcode,holder:"请输入手机号",disflag:!e.isAddnew},on:{"update:nationCode":function(t){e.$set(e.clerkInfo,"nationcode",t)}},model:{value:e.clerkInfo.phoneNumber,callback:function(t){e.$set(e.clerkInfo,"phoneNumber",t)},expression:"clerkInfo.phoneNumber"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"门店",prop:"storeName"}},[r("el-input",{staticClass:"clerk-info-input",attrs:{disabled:!e.isAddnew},on:{focus:e.callSelector},model:{value:e.clerkInfo.storeName,callback:function(t){e.$set(e.clerkInfo,"storeName",t)},expression:"clerkInfo.storeName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"code",prop:"code"}},[r("limitInput",{attrs:{inputWidth:380,disflag:e.gicFlag&&!e.isAddnew,inputValue:e.clerkInfo.code,holder:"请输入工号或员工代码",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.clerkInfo,"code",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"职位",prop:"positionName"}},[r("limitInput",{attrs:{inputWidth:380,inputValue:e.clerkInfo.positionName,holder:"请输入职位",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.clerkInfo,"positionName",t)}}})],1)],1),e._v(" "),r("div",{staticClass:"btn-box"},[r("el-button",{attrs:{type:"primary"},on:{click:e.saveFn}},[e._v("保 存")]),e._v(" "),!e.gicFlag&&e.isAddnew?r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveFn(1)}}},[e._v("保存并继续添加")]):e._e(),e._v(" "),e.gicFlag?e._e():r("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1),e._v(" "),r("vue-select-store",{ref:"storeSelector",attrs:{selectType:"store",defaultList:e.defaultList,treeSet:e.treeSet},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var u=r("VU/8")(c,d,!1,function(e){r("moV9")},null,null);t.a=u.exports}});
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([21],{"738z":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("3Xzz"),s=i("elmV"),n=i("P9l9"),l=i("O3H5"),o={name:"employee-io",components:{navCrumb:a.a,uploadExcelComponent:s.a,exportSet:l.a},data:function(){var t=window.location.origin;return-1!=t.indexOf("localhost")&&(t="http://www.gicdev.com"),{navpath:[{name:"首页",path:"/index"},{name:"通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"在职员工",path:"/employeeRecord"},{name:"导入员工档案",path:""}],windowH:window.screen.availHeight-180+"px",host:window.location.origin,type:"import",fileList:[],url:t+"/haoban-manage-web/record/record-template-file-upload",logList:[],loading:!0,pageSize:20,currentPage:1,total:0,tempList:[],dialogVisible:!1}},methods:{handleSizeChange:function(t){this.pageSize=t,this.getErrorNote()},handleCurrentChange:function(t){this.currentPage=t,this.getErrorNote()},resetList:function(t){this.fileList=[],"note"==t&&this.getErrorNote()},getErrorNote:function(){var t=this,e={departmentId:t.$route.query.departmentId,importCode:t.$route.query.importCode,pageNum:t.currentPage,pageSize:t.pageSize};Object(n.a)("/haoban-manage-web/record/find-error-log",e).then(function(e){1==e.data.errorCode?(t.total=e.data.result.totalCount,t.logList=e.data.result.result,t.formatData(e.data.result.template,e.data.result.page.result)):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},formatData:function(t,e){var i=[];t.forEach(function(t){i.push({fieldCode:t.fieldCode,fieldName:t.fieldName})}),this.tempList=i,this.logList=e,this.loading=!1},beforeAvatarUpload:function(t){var e=t.name.lastIndexOf(".");if(e<0)return this.$message.error("文件格式不正确!"),!1;var i=t.name.substring(e+1,t.name.length),a=i.includes("xls")||i.includes("xlsx");return a||this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),a},uploadSuccess:function(t,e){var i=this;1==t.errorCode?(i.fileList=[],i.$forceUpdate(),i.$message({message:t.message,type:"success"}),i.$nextTick(function(){i.fileList=[]})):i.$message.error(t.message)},submitUpload:function(t){this.$refs[t].submit()},handleRemove:function(t,e){this.fileList=[]},getChange:function(t,e){var i=e.length-1<0?0:e.length-1,a=t.name.lastIndexOf("."),s=t.name.substring(a+1,t.name.length);if(!(s.includes("xls")||s.includes("xlsx")))return this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),this.fileList.splice(i,1),!1;this.fileList=[e[i]]},callExport:function(){this.dialogVisible=!0},cancelCho:function(){this.dialogVisible=!1}},beforeMount:function(){"note"==this.type&&this.getErrorNote(),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"}},r={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"common-set-wrap record-io-wrap",style:{height:t.windowH}},[i("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box"},[i("div",{staticClass:"io-container"},[t.dialogVisible?[i("export-set",{on:{cancelCho:t.cancelCho}})]:[t._m(0),t._v(" "),i("el-radio-group",{staticClass:"m-t-20",on:{change:t.resetList},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[i("el-radio-button",{attrs:{label:"import"}},[t._v("导入员工档案")]),t._v(" "),i("el-radio-button",{attrs:{label:"note"}},[t._v("错误记录")])],1),t._v(" "),"import"==t.type?i("div",{staticClass:"handle-area import"},[i("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[i("span",{staticClass:"ft-large"},[t._v("①")]),t._v("下载模板\n "),i("a",{staticClass:"d-u-btn",attrs:{href:t.host+"/haoban-manage-web/record/export-record-template.json"}},[i("el-button",{attrs:{type:"primary"}},[t._v("下载"),i("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),i("div",{staticClass:"step-div"},[i("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传员工档案\n "),i("div",{staticClass:"d-u-btn"},[i("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:t.url,multiple:!1,"file-list":t.fileList,"auto-upload":!1,"before-upload":t.beforeAvatarUpload,"on-success":t.uploadSuccess,"on-change":t.getChange,"on-remove":t.handleRemove}},[i("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),i("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),i("div",{staticClass:"up-btn-div"},[i("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("upload")}}},[t._v("上传")])],1)]):"export"==t.type?i("div",{staticClass:"handle-area import"},[i("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[i("span",{staticClass:"ft-large"},[t._v("①")]),t._v("导出员工档案\n "),i("a",{staticClass:"d-u-btn"},[i("el-button",{attrs:{type:"primary"},on:{click:t.callExport}},[t._v("下载"),i("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),i("div",{staticClass:"step-div"},[i("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传更新后的员工档案\n "),i("div",{staticClass:"d-u-btn"},[i("el-upload",{ref:"uploadEdit",staticClass:"upload-demo",attrs:{action:t.url,multiple:!1,"file-list":t.fileList,"auto-upload":!1,"on-success":t.uploadSuccess,"on-change":t.getChange}},[i("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),i("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),i("div",{staticClass:"up-btn-div"},[i("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("uploadEdit")}}},[t._v("上传")])],1)]):i("div",{staticClass:"error-log import"},[i("div",{staticClass:"title-area"},[t._m(1),t._v(" "),i("a",{attrs:{href:t.host+"/haoban-manage-web/record/error-log-export?importCode="+t.$route.query.importCode}},[i("el-button",{attrs:{type:"primary"}},[t._v("导出错误记录")])],1)]),t._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"m-t-20",staticStyle:{width:"100%"},attrs:{data:t.logList,height:"400"}},[i("el-table-column",{attrs:{type:"index",width:"50",label:"序号"}}),t._v(" "),i("el-table-column",{attrs:{width:"200",prop:"fieldValue",label:"字段值"}}),t._v(" "),i("el-table-column",{attrs:{width:"200",prop:"fieldName",label:"字段名"}}),t._v(" "),i("el-table-column",{attrs:{width:"200",prop:"failReason",label:"错误原因"}}),t._v(" "),t._l(t.tempList,function(t){return[i("el-table-column",{key:t.fieldCode,attrs:{width:"200",label:t.fieldName,prop:t.fieldCode}})]})],2),t._v(" "),t.logList.length?i("el-pagination",{staticClass:"pagination",attrs:{background:"","page-sizes":[20,40,60,80],"page-size":t.pageSize,"current-page":t.currentPage,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}}):t._e()],1)]],2)])]),t._v(" "),i("vue-gic-footer")],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("ul",{staticClass:"tip-area"},[i("li",{staticClass:"tip"},[t._v("\n 姓名必须和好办企业通讯录中的员工姓名保持一致,手机号必须为员工注册好办的手机号\n ")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("\n 员工档案导入时,直接以手机号去做匹配,通讯录中不存在的将无法导入(模板中配置的部门、职位、code,这些字段信息请保持与企业通讯录中一致,这几个字段的信息将不会修改通讯录的信息,直接取该成员对应的通讯录的字段信息)\n ")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("如果想要新增字段,可在后台档案设置中增加,再导入模板")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("字段类型为图片上传、多选的字段无法导入、导出")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("确保导入的表头字段和后台配置表头字段的名称一致(模板下载时间不可修改)")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("\n 由于数据量可能较大,每次最多导入2000条员工档案,若超过只取前2000条,可以分多次导入\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"tip"},[this._v("导入总条数:0条,成功导入0条,"),e("span",{staticClass:"red"},[this._v("错误导入0条")])])}]};var c=i("VU/8")(o,r,!1,function(t){i("zcLw")},null,null);e.default=c.exports},O3H5:function(t,e,i){"use strict";var a=i("mvHQ"),s=i.n(a),n=i("P9l9"),l=i("DAYN"),o={name:"export-set",components:{draggable:i.n(l).a},data:function(){return{tempList:[],checkList:[],origin:[],checkAll:!1,isIndeterminate:!1,checkedList:[]}},methods:{deleteField:function(t){this.checkedList.splice(t,1);var e=this.checkedList.map(function(t){return t.fieldCode});this.origin.forEach(function(t,i){e.includes(t.fieldCode)?t.checked=!0:t.checked=!1}),this.checkHalf()},checkHalf:function(){if(0===this.checkedList.length)return this.isIndeterminate=!1,!1;this.checkedList.length===this.origin.length?this.isIndeterminate=!1:this.isIndeterminate=!0},checkThis:function(t){var e=this;t.checked?e.checkedList.push(t):e.checkedList.forEach(function(i,a){i.fieldCode===t.fieldCode&&e.checkedList.splice(a,1)}),e.checkHalf()},handleCheckAllChange:function(t){this.checkedList=[],this.origin.forEach(function(e,i){e.checked=t,t&&(e.order=i+1)}),t&&(this.checkedList=this.origin.slice(0)),this.checkHalf()},getTemplate:function(){var t=this;Object(n.a)("/haoban-manage-web/record/employee-find-template",{}).then(function(e){1==e.data.errorCode?t.formatTemplateList(e.data.result):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},formatTemplateList:function(t){var e=[],i=[],a=t;t.forEach(function(t){t.title=t.fieldName,t.name=t.fieldName,t.checked=!1;var i=[];a.forEach(function(e){e.parentCode==t.fieldCode&&i.push(e)}),i.sort(function(t,e){return 1*t.sort-1*e.sort}),i.length>0&&(t.childrens=i),0==t.parentCode&&e.push(t)}),e.sort(function(t,e){return 1*t.sort-1*e.sort}),e.forEach(function(t){i=i.concat(t.childrens)}),this.origin=i,this.tempList=e},cancelCho:function(){this.origin.forEach(function(t){t.checked=!1}),this.$emit("cancelCho")},exportCho:function(){var t=[];this.checkedList.forEach(function(e){e.checked&&t.push({fieldCode:e.fieldCode,fieldName:e.fieldName})});s()(t);var e=window.location.origin;-1!=e.indexOf("localhost")&&(e="http://www.gicdev.com"),location.href=e+"/haoban-manage-web/record/define-export?exportTitleContent="+s()(t),this.$emit("cancelCho")}},beforeMount:function(){this.getTemplate()}},r={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"export-set-container"},[t._m(0),t._v(" "),i("div",{staticClass:"cho-list"},[i("draggable",{model:{value:t.checkedList,callback:function(e){t.checkedList=e},expression:"checkedList"}},[t._l(t.checkedList,function(e,a){return[e.checked?i("div",{key:e.fieldCode+a,staticClass:"cho"},[t._v(t._s(e.fieldName)+" "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(e){t.deleteField(a)}}})]):t._e()]})],2)],1),t._v(" "),i("div",{staticClass:"cho-area"},[i("div",{staticClass:"title"},[t._v("选择需要导出的字段")]),t._v(" "),i("div",{staticClass:"cho-area-group"},[i("div",{staticClass:"group-div"},[i("div",{staticClass:"group-title"}),t._v(" "),i("ul",{staticClass:"group-son-list"},[i("el-checkbox",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.handleCheckAllChange},model:{value:t.checkAll,callback:function(e){t.checkAll=e},expression:"checkAll"}},[t._v("全选")])],1)]),t._v(" "),t._l(t.tempList,function(e,a){return i("div",{key:e.fieldCode+a,staticClass:"group-div"},[i("div",{staticClass:"group-title"},[t._v(t._s(e.title))]),t._v(" "),i("ul",{staticClass:"group-son-list"},[t._l(t.origin,function(a){return[a.parentCode==e.fieldCode?i("li",{key:a.fieldCode},[i("el-checkbox",{key:a.fieldCode,attrs:{label:a.fieldName},on:{change:function(e){t.checkThis(a)}},model:{value:a.checked,callback:function(e){t.$set(a,"checked",e)},expression:"items.checked"}},[t._v(t._s(a.fieldName))])],1):t._e()]})],2)])})],2)]),t._v(" "),i("div",{staticClass:"handle-cho-btn"},[i("el-button",{staticClass:"export-btn",attrs:{type:"primary",disabled:t.checkedList.length<1},on:{click:t.exportCho}},[i("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),t._v("导出")]),t._v(" "),i("el-button",{on:{click:t.cancelCho}},[t._v("取消")])],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"title"},[this._v("已选择字段"),e("span",[this._v("导出的列表中将按顺序显示这些字段(可拖拽排序)")])])}]};var c=i("VU/8")(o,r,!1,function(t){i("fI5Z")},null,null);e.a=c.exports},fI5Z:function(t,e){},zcLw:function(t,e){}}); webpackJsonp([20],{"738z":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("3Xzz"),s=i("elmV"),n=i("P9l9"),l=i("O3H5"),o={name:"employee-io",components:{navCrumb:a.a,uploadExcelComponent:s.a,exportSet:l.a},data:function(){var t=window.location.origin;return-1!=t.indexOf("localhost")&&(t="http://www.gicdev.com"),{navpath:[{name:"首页",path:"/index"},{name:"通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"在职员工",path:"/employeeRecord"},{name:"导入员工档案",path:""}],windowH:window.screen.availHeight-180+"px",host:window.location.origin,type:"import",fileList:[],url:t+"/haoban-manage-web/record/record-template-file-upload",logList:[],loading:!0,pageSize:20,currentPage:1,total:0,tempList:[],dialogVisible:!1}},methods:{handleSizeChange:function(t){this.pageSize=t,this.getErrorNote()},handleCurrentChange:function(t){this.currentPage=t,this.getErrorNote()},resetList:function(t){this.fileList=[],"note"==t&&this.getErrorNote()},getErrorNote:function(){var t=this,e={departmentId:t.$route.query.departmentId,importCode:t.$route.query.importCode,pageNum:t.currentPage,pageSize:t.pageSize};Object(n.a)("/haoban-manage-web/record/find-error-log",e).then(function(e){1==e.data.errorCode?(t.total=e.data.result.totalCount,t.logList=e.data.result.result,t.formatData(e.data.result.template,e.data.result.page.result)):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},formatData:function(t,e){var i=[];t.forEach(function(t){i.push({fieldCode:t.fieldCode,fieldName:t.fieldName})}),this.tempList=i,this.logList=e,this.loading=!1},beforeAvatarUpload:function(t){var e=t.name.lastIndexOf(".");if(e<0)return this.$message.error("文件格式不正确!"),!1;var i=t.name.substring(e+1,t.name.length),a=i.includes("xls")||i.includes("xlsx");return a||this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),a},uploadSuccess:function(t,e){var i=this;1==t.errorCode?(i.fileList=[],i.$forceUpdate(),i.$message({message:t.message,type:"success"}),i.$nextTick(function(){i.fileList=[]})):i.$message.error(t.message)},submitUpload:function(t){this.$refs[t].submit()},handleRemove:function(t,e){this.fileList=[]},getChange:function(t,e){var i=e.length-1<0?0:e.length-1,a=t.name.lastIndexOf("."),s=t.name.substring(a+1,t.name.length);if(!(s.includes("xls")||s.includes("xlsx")))return this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),this.fileList.splice(i,1),!1;this.fileList=[e[i]]},callExport:function(){this.dialogVisible=!0},cancelCho:function(){this.dialogVisible=!1}},beforeMount:function(){"note"==this.type&&this.getErrorNote(),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"}},r={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"common-set-wrap record-io-wrap",style:{height:t.windowH}},[i("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box"},[i("div",{staticClass:"io-container"},[t.dialogVisible?[i("export-set",{on:{cancelCho:t.cancelCho}})]:[t._m(0),t._v(" "),i("el-radio-group",{staticClass:"m-t-20",on:{change:t.resetList},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[i("el-radio-button",{attrs:{label:"import"}},[t._v("导入员工档案")]),t._v(" "),i("el-radio-button",{attrs:{label:"note"}},[t._v("错误记录")])],1),t._v(" "),"import"==t.type?i("div",{staticClass:"handle-area import"},[i("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[i("span",{staticClass:"ft-large"},[t._v("①")]),t._v("下载模板\n "),i("a",{staticClass:"d-u-btn",attrs:{href:t.host+"/haoban-manage-web/record/export-record-template.json"}},[i("el-button",{attrs:{type:"primary"}},[t._v("下载"),i("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),i("div",{staticClass:"step-div"},[i("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传员工档案\n "),i("div",{staticClass:"d-u-btn"},[i("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:t.url,multiple:!1,"file-list":t.fileList,"auto-upload":!1,"before-upload":t.beforeAvatarUpload,"on-success":t.uploadSuccess,"on-change":t.getChange,"on-remove":t.handleRemove}},[i("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),i("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),i("div",{staticClass:"up-btn-div"},[i("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("upload")}}},[t._v("上传")])],1)]):"export"==t.type?i("div",{staticClass:"handle-area import"},[i("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[i("span",{staticClass:"ft-large"},[t._v("①")]),t._v("导出员工档案\n "),i("a",{staticClass:"d-u-btn"},[i("el-button",{attrs:{type:"primary"},on:{click:t.callExport}},[t._v("下载"),i("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),i("div",{staticClass:"step-div"},[i("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传更新后的员工档案\n "),i("div",{staticClass:"d-u-btn"},[i("el-upload",{ref:"uploadEdit",staticClass:"upload-demo",attrs:{action:t.url,multiple:!1,"file-list":t.fileList,"auto-upload":!1,"on-success":t.uploadSuccess,"on-change":t.getChange}},[i("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),i("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),i("div",{staticClass:"up-btn-div"},[i("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("uploadEdit")}}},[t._v("上传")])],1)]):i("div",{staticClass:"error-log import"},[i("div",{staticClass:"title-area"},[t._m(1),t._v(" "),i("a",{attrs:{href:t.host+"/haoban-manage-web/record/error-log-export?importCode="+t.$route.query.importCode}},[i("el-button",{attrs:{type:"primary"}},[t._v("导出错误记录")])],1)]),t._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"m-t-20",staticStyle:{width:"100%"},attrs:{data:t.logList,height:"400"}},[i("el-table-column",{attrs:{type:"index",width:"50",label:"序号"}}),t._v(" "),i("el-table-column",{attrs:{width:"200",prop:"fieldValue",label:"字段值"}}),t._v(" "),i("el-table-column",{attrs:{width:"200",prop:"fieldName",label:"字段名"}}),t._v(" "),i("el-table-column",{attrs:{width:"200",prop:"failReason",label:"错误原因"}}),t._v(" "),t._l(t.tempList,function(t){return[i("el-table-column",{key:t.fieldCode,attrs:{width:"200",label:t.fieldName,prop:t.fieldCode}})]})],2),t._v(" "),t.logList.length?i("el-pagination",{staticClass:"pagination",attrs:{background:"","page-sizes":[20,40,60,80],"page-size":t.pageSize,"current-page":t.currentPage,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}}):t._e()],1)]],2)])]),t._v(" "),i("vue-gic-footer")],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("ul",{staticClass:"tip-area"},[i("li",{staticClass:"tip"},[t._v("\n 姓名必须和好办企业通讯录中的员工姓名保持一致,手机号必须为员工注册好办的手机号\n ")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("\n 员工档案导入时,直接以手机号去做匹配,通讯录中不存在的将无法导入(模板中配置的部门、职位、code,这些字段信息请保持与企业通讯录中一致,这几个字段的信息将不会修改通讯录的信息,直接取该成员对应的通讯录的字段信息)\n ")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("如果想要新增字段,可在后台档案设置中增加,再导入模板")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("字段类型为图片上传、多选的字段无法导入、导出")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("确保导入的表头字段和后台配置表头字段的名称一致(模板下载时间不可修改)")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("\n 由于数据量可能较大,每次最多导入2000条员工档案,若超过只取前2000条,可以分多次导入\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"tip"},[this._v("导入总条数:0条,成功导入0条,"),e("span",{staticClass:"red"},[this._v("错误导入0条")])])}]};var c=i("VU/8")(o,r,!1,function(t){i("zcLw")},null,null);e.default=c.exports},O3H5:function(t,e,i){"use strict";var a=i("mvHQ"),s=i.n(a),n=i("P9l9"),l=i("DAYN"),o={name:"export-set",components:{draggable:i.n(l).a},data:function(){return{tempList:[],checkList:[],origin:[],checkAll:!1,isIndeterminate:!1,checkedList:[]}},methods:{deleteField:function(t){this.checkedList.splice(t,1);var e=this.checkedList.map(function(t){return t.fieldCode});this.origin.forEach(function(t,i){e.includes(t.fieldCode)?t.checked=!0:t.checked=!1}),this.checkHalf()},checkHalf:function(){if(0===this.checkedList.length)return this.isIndeterminate=!1,!1;this.checkedList.length===this.origin.length?this.isIndeterminate=!1:this.isIndeterminate=!0},checkThis:function(t){var e=this;t.checked?e.checkedList.push(t):e.checkedList.forEach(function(i,a){i.fieldCode===t.fieldCode&&e.checkedList.splice(a,1)}),e.checkHalf()},handleCheckAllChange:function(t){this.checkedList=[],this.origin.forEach(function(e,i){e.checked=t,t&&(e.order=i+1)}),t&&(this.checkedList=this.origin.slice(0)),this.checkHalf()},getTemplate:function(){var t=this;Object(n.a)("/haoban-manage-web/record/employee-find-template",{}).then(function(e){1==e.data.errorCode?t.formatTemplateList(e.data.result):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},formatTemplateList:function(t){var e=[],i=[],a=t;t.forEach(function(t){t.title=t.fieldName,t.name=t.fieldName,t.checked=!1;var i=[];a.forEach(function(e){e.parentCode==t.fieldCode&&i.push(e)}),i.sort(function(t,e){return 1*t.sort-1*e.sort}),i.length>0&&(t.childrens=i),0==t.parentCode&&e.push(t)}),e.sort(function(t,e){return 1*t.sort-1*e.sort}),e.forEach(function(t){i=i.concat(t.childrens)}),this.origin=i,this.tempList=e},cancelCho:function(){this.origin.forEach(function(t){t.checked=!1}),this.$emit("cancelCho")},exportCho:function(){var t=[];this.checkedList.forEach(function(e){e.checked&&t.push({fieldCode:e.fieldCode,fieldName:e.fieldName})});s()(t);var e=window.location.origin;-1!=e.indexOf("localhost")&&(e="http://www.gicdev.com"),location.href=e+"/haoban-manage-web/record/define-export?exportTitleContent="+s()(t),this.$emit("cancelCho")}},beforeMount:function(){this.getTemplate()}},r={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"export-set-container"},[t._m(0),t._v(" "),i("div",{staticClass:"cho-list"},[i("draggable",{model:{value:t.checkedList,callback:function(e){t.checkedList=e},expression:"checkedList"}},[t._l(t.checkedList,function(e,a){return[e.checked?i("div",{key:e.fieldCode+a,staticClass:"cho"},[t._v(t._s(e.fieldName)+" "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(e){t.deleteField(a)}}})]):t._e()]})],2)],1),t._v(" "),i("div",{staticClass:"cho-area"},[i("div",{staticClass:"title"},[t._v("选择需要导出的字段")]),t._v(" "),i("div",{staticClass:"cho-area-group"},[i("div",{staticClass:"group-div"},[i("div",{staticClass:"group-title"}),t._v(" "),i("ul",{staticClass:"group-son-list"},[i("el-checkbox",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.handleCheckAllChange},model:{value:t.checkAll,callback:function(e){t.checkAll=e},expression:"checkAll"}},[t._v("全选")])],1)]),t._v(" "),t._l(t.tempList,function(e,a){return i("div",{key:e.fieldCode+a,staticClass:"group-div"},[i("div",{staticClass:"group-title"},[t._v(t._s(e.title))]),t._v(" "),i("ul",{staticClass:"group-son-list"},[t._l(t.origin,function(a){return[a.parentCode==e.fieldCode?i("li",{key:a.fieldCode},[i("el-checkbox",{key:a.fieldCode,attrs:{label:a.fieldName},on:{change:function(e){t.checkThis(a)}},model:{value:a.checked,callback:function(e){t.$set(a,"checked",e)},expression:"items.checked"}},[t._v(t._s(a.fieldName))])],1):t._e()]})],2)])})],2)]),t._v(" "),i("div",{staticClass:"handle-cho-btn"},[i("el-button",{staticClass:"export-btn",attrs:{type:"primary",disabled:t.checkedList.length<1},on:{click:t.exportCho}},[i("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),t._v("导出")]),t._v(" "),i("el-button",{on:{click:t.cancelCho}},[t._v("取消")])],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"title"},[this._v("已选择字段"),e("span",[this._v("导出的列表中将按顺序显示这些字段(可拖拽排序)")])])}]};var c=i("VU/8")(o,r,!1,function(t){i("fI5Z")},null,null);e.a=c.exports},fI5Z:function(t,e){},zcLw:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([18],{CLYF:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("3Xzz"),i=a("Zx22"),s=a("Ch4/"),o=a("PI0u"),r=a("P9l9"),l={name:"reviewed",data:function(){return{tableH:window.screen.availHeight-464-126+"px",navpath:[{name:"首页",path:"/index"},{name:"审核中心",path:"/unreview"},{name:"已审核",path:""}],filterValue:"99",filterBrand:"",brandOptions:[],filterOptions:[{label:"已同意",value:"1"},{label:"已拒绝",value:"2"},{label:"已审核",value:"99"}],searchValue:"",tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,applyInfo:{},showStoreDialog:!1,storeChangeData:{}}},filters:{formatTimeYMD:function(t){return"--"!=t?t.split(" ")[0]:"--"},formatTimeHMS:function(t){return"--"!=t?t.split(" ")[1]:"--"},formatNum:function(t){return(t+"").replace(/\d{1,3}(?=(\d{3})+$)/g,"$&,")}},computed:{},methods:{clearSearch:function(){this.currentPage=1,this.getTableList()},searchEnterFun:function(t){if(!String(t.target.value).trim())return!1;this.currentPage=1,this.getTableList()},toggleReason:function(t){t.visible=!0,this.tableData.forEach(function(e,a){e.enterpriseAuditingId!=t.enterpriseAuditingId&&(e.visible=!1)})},handleSelectionChange:function(t){this.multipleSelection=t},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showSingleInfo:function(t){},showStoreChange:function(t){this.storeChangeData={beforeContent:[],afterContent:[]},this.showStoreDialog=!0,this.storeChangeData={beforeContent:""!=t.beforeContent?JSON.parse(t.beforeContent):[],afterContent:""!=t.afterContent?JSON.parse(t.afterContent):[]}},getBrandData:function(){var t=this;Object(r.e)("/haoban-manage-web/application-brand-list",{}).then(function(e){var a=e.data;1!=a.errorCode?s.a.errorMsg(a):a.result&&a.result.length&&(t.brandOptions=a.result)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getTableList:function(t){var e=this;t&&(e.currentPage=1);var a={auditingType:"",auditingStatus:e.filterValue,search:e.searchValue||"",pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.filterBrand};Object(r.a)("/haoban-manage-web/audit/auditing-list.json",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result&&a.result.list&&a.result.list.forEach(function(t,e){t.createTime&&(t.createTime=Object(o.c)(t.createTime))}),e.tableData=a.result.list,void(e.total=a.result.total);s.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getTableList(),this.getBrandData()},components:{navCrumb:n.a,storeChange:i.a}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"reviewed-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":t.$store.state.bgHeight}},[a("div",{staticClass:"reviewed-body-head"},[a("el-select",{staticClass:"w-130",attrs:{placeholder:"全部状态"},on:{change:t.getTableList},model:{value:t.filterValue,callback:function(e){t.filterValue=e},expression:"filterValue"}},t._l(t.filterOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部品牌"},on:{change:t.getTableList},model:{value:t.filterBrand,callback:function(e){t.filterBrand=e},expression:"filterBrand"}},[a("el-option",{attrs:{label:"全部品牌",value:""}}),t._v(" "),t._l(t.brandOptions,function(t){return a("el-option",{key:t.brandId,attrs:{label:t.name,value:t.brandId}})})],2),a("el-input",{staticClass:"w-250 m-l-10",attrs:{placeholder:"请输入提交人姓名或门店名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearSearch},nativeOn:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.searchEnterFun(e):null}},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}})],1),t._v(" "),a("div",{staticClass:"reviewed-body-content"},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"审核事项"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(0==e.row.auditingType?"门店信息变更":1==e.row.auditingType?"新增成员":2==e.row.auditingType?"成员离职":"转移成员")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"品牌"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.brandName||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("el-popover",{attrs:{placement:"top-start",width:"400",trigger:"hover"},on:{show:function(a){t.showSingleInfo(e.row.applyId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[e.row.headPic?a("img",{attrs:{src:e.row.headPic,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[t._v("\n "+t._s(e.row.applyName)+"\n "),a("i",{class:[2==e.row.sex?"icon-xingbienv color-FF585C":"icon-xingbienan color-508CEE","iconfont"]})]),t._v(" "),a("div",{staticClass:"apply-info-code"},[a("span",{staticClass:"w-80"},[t._v("员工代码:")]),a("span",{staticClass:"w-130"},[t._v(t._s(e.row.code))])]),t._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[t._v("手机号:")]),a("span",{staticClass:"w-130"},[t._v(t._s("86"==e.row.nationcode?e.row.phoneNumber:"+"+e.row.nationcode+"-"+e.row.phoneNumber))])]),t._v(" "),a("div",{staticClass:"apply-info-job"},[a("span",{staticClass:"w-80"},[t._v("职位:")]),a("span",{staticClass:"w-130"},[t._v(t._s(e.row.positionName))])]),t._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[t._v("所属门店:")]),a("span",{staticClass:"w-130"},[t._v(t._s(e.row.storeName))])])])])]),t._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headPic?a("img",{attrs:{src:e.row.headPic,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])])]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",[t._v(t._s(e.row.applyName))]),t._v(" "),a("span",{staticClass:"font-13"},[t._v(t._s(e.row.storeName))])])],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"详情","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[0!=e.row.auditingType||0==e.row.auditingType&&1!=e.row.auditingUpdateType?a("span",[t._v(t._s(e.row.detail))]):t._e(),t._v(" "),1==e.row.auditingUpdateType?a("div",{staticClass:"line-hidden-2"},[a("span",[t._v(t._s(e.row.detail))]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){t.showStoreChange(e.row)}}},[t._v("查看详情")])],1):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("formatTimeYMD")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("formatTimeHMS")(e.row.createTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:[2==e.row.auditingStatus?"color-FF585C":""]},[t._v(t._s(1==e.row.auditingStatus?"超级管理员已同意":"超级管理员已拒绝"))]),t._v(" "),a("el-popover",{staticClass:"inline-block",attrs:{placement:"top",width:"150",trigger:"hover"}},[a("div",{staticClass:"tooltip-text"},[t._v(t._s(e.row.refuseReason))]),t._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[2==e.row.auditingStatus?a("i",{staticClass:"el-icon-question",on:{click:function(a){t.toggleReason(e.row)}}}):t._e()])])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[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)])]),t._v(" "),a("vue-gic-footer"),t._v(" "),a("storeChange",{attrs:{storeChangeData:t.storeChangeData},model:{value:t.showStoreDialog,callback:function(e){t.showStoreDialog=e},expression:"showStoreDialog"}})],1)},staticRenderFns:[]};var u=a("VU/8")(l,c,!1,function(t){a("HTrm")},"data-v-9993980c",null);e.default=u.exports},HTrm:function(t,e){},LArp:function(t,e){},Zx22:function(t,e,a){"use strict";var n={name:"custom-dialog",props:{value:{type:Boolean,default:!1},storeChangeData:{type:[Object,Array]}},data:function(){return{repProjectName:"gic-web",customDialog:this.value,leftData:[],rightData:[]}},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("input",this.customDialog)},formatDate:function(t,e){function a(t){return t>9?""+t:"0"+t}var n=new Date(t),i=n.getFullYear(),s=n.getMonth()+1,o=n.getDate();return i+e+a(s)+e+a(o)+e},handleData:function(){}},watch:{value:function(t,e){this.customDialog=t},storeChangeData:function(t,e){this.leftData=t.beforeContent,this.rightData=t.afterContent}},mounted:function(){this.leftData=this.storeChangeData.beforeContent,this.rightData=this.storeChangeData.afterContent}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"门店图片变更",visible:t.customDialog,width:"600px","before-close":t.handleCardClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"dialog-content"},[a("el-row",[a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更前\n ")]),t._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.leftData,function(t,e){return[a("img",{key:"img"+e,attrs:{src:t,alt:""}})]})],2)])]),t._v(" "),a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更后\n ")]),t._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.rightData,function(t,e){return[a("img",{key:"img0"+e,attrs:{src:t,alt:""}})]})],2)])])],1)],1)])],1)},staticRenderFns:[]};var s=a("VU/8")(n,i,!1,function(t){a("LArp")},"data-v-e0628fc0",null);e.a=s.exports}}); webpackJsonp([21],{CLYF:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("3Xzz"),i=a("Zx22"),s=a("Ch4/"),o=a("PI0u"),l=a("P9l9"),r={name:"reviewed",data:function(){return{tableH:window.screen.availHeight-464-126+"px",navpath:[{name:"首页",path:"/index"},{name:"审核中心",path:"/unreview"},{name:"已审核",path:""}],filterValue:"99",filterBrand:"",brandOptions:[],filterOptions:[{label:"已同意",value:"1"},{label:"已拒绝",value:"2"},{label:"已审核",value:"99"}],searchValue:"",tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,applyInfo:{},showStoreDialog:!1,storeChangeData:{}}},filters:{formatTimeYMD:function(t){return"--"!=t?t.split(" ")[0]:"--"},formatTimeHMS:function(t){return"--"!=t?t.split(" ")[1]:"--"},formatNum:function(t){return(t+"").replace(/\d{1,3}(?=(\d{3})+$)/g,"$&,")}},computed:{},methods:{clearSearch:function(){this.currentPage=1,this.getTableList()},searchEnterFun:function(t){if(!String(t.target.value).trim())return!1;this.currentPage=1,this.getTableList()},toggleReason:function(t){t.visible=!0,this.tableData.forEach(function(e,a){e.enterpriseAuditingId!=t.enterpriseAuditingId&&(e.visible=!1)})},handleSelectionChange:function(t){this.multipleSelection=t},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showSingleInfo:function(t){},showStoreChange:function(t){this.storeChangeData={beforeContent:[],afterContent:[]},this.showStoreDialog=!0,this.storeChangeData={beforeContent:""!=t.beforeContent?JSON.parse(t.beforeContent):[],afterContent:""!=t.afterContent?JSON.parse(t.afterContent):[]}},getBrandData:function(){var t=this;Object(l.e)("/haoban-manage-web/application-brand-list",{}).then(function(e){var a=e.data;1!=a.errorCode?s.a.errorMsg(a):a.result&&a.result.length&&(t.brandOptions=a.result)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getTableList:function(t){var e=this;t&&(e.currentPage=1);var a={auditingType:"",auditingStatus:e.filterValue,search:e.searchValue||"",pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.filterBrand};Object(l.a)("/haoban-manage-web/audit/auditing-list.json",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result&&a.result.list&&a.result.list.forEach(function(t,e){t.createTime&&(t.createTime=Object(o.c)(t.createTime))}),e.tableData=a.result.list,void(e.total=a.result.total);s.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getTableList(),this.getBrandData()},components:{navCrumb:n.a,storeChange:i.a}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"reviewed-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":t.$store.state.bgHeight}},[a("div",{staticClass:"reviewed-body-head"},[a("el-select",{staticClass:"w-130",attrs:{placeholder:"全部状态"},on:{change:t.getTableList},model:{value:t.filterValue,callback:function(e){t.filterValue=e},expression:"filterValue"}},t._l(t.filterOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部品牌"},on:{change:t.getTableList},model:{value:t.filterBrand,callback:function(e){t.filterBrand=e},expression:"filterBrand"}},[a("el-option",{attrs:{label:"全部品牌",value:""}}),t._v(" "),t._l(t.brandOptions,function(t){return a("el-option",{key:t.brandId,attrs:{label:t.name,value:t.brandId}})})],2),a("el-input",{staticClass:"w-250 m-l-10",attrs:{placeholder:"请输入提交人姓名或门店名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearSearch},nativeOn:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.searchEnterFun(e):null}},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}})],1),t._v(" "),a("div",{staticClass:"reviewed-body-content"},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"审核事项"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(0==e.row.auditingType?"门店信息变更":1==e.row.auditingType?"新增成员":2==e.row.auditingType?"成员离职":"转移成员")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"品牌"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.brandName||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("el-popover",{attrs:{placement:"top-start",width:"400",trigger:"hover"},on:{show:function(a){t.showSingleInfo(e.row.applyId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[e.row.headPic?a("img",{attrs:{src:e.row.headPic,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[t._v("\n "+t._s(e.row.applyName)+"\n "),a("i",{class:[2==e.row.sex?"icon-xingbienv color-FF585C":"icon-xingbienan color-508CEE","iconfont"]})]),t._v(" "),a("div",{staticClass:"apply-info-code"},[a("span",{staticClass:"w-80"},[t._v("员工代码:")]),a("span",{staticClass:"w-130"},[t._v(t._s(e.row.code))])]),t._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[t._v("手机号:")]),a("span",{staticClass:"w-130"},[t._v(t._s("86"==e.row.nationcode?e.row.phoneNumber:"+"+e.row.nationcode+"-"+e.row.phoneNumber))])]),t._v(" "),a("div",{staticClass:"apply-info-job"},[a("span",{staticClass:"w-80"},[t._v("职位:")]),a("span",{staticClass:"w-130"},[t._v(t._s(e.row.positionName))])]),t._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[t._v("所属门店:")]),a("span",{staticClass:"w-130"},[t._v(t._s(e.row.storeName))])])])])]),t._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headPic?a("img",{attrs:{src:e.row.headPic,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])])]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",[t._v(t._s(e.row.applyName))]),t._v(" "),a("span",{staticClass:"font-13"},[t._v(t._s(e.row.storeName))])])],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"详情","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[0!=e.row.auditingType||0==e.row.auditingType&&1!=e.row.auditingUpdateType?a("span",[t._v(t._s(e.row.detail))]):t._e(),t._v(" "),1==e.row.auditingUpdateType?a("div",{staticClass:"line-hidden-2"},[a("span",[t._v(t._s(e.row.detail))]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){t.showStoreChange(e.row)}}},[t._v("查看详情")])],1):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("formatTimeYMD")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("formatTimeHMS")(e.row.createTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"审核时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("formatTimeYMD")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("formatTimeHMS")(e.row.createTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:[2==e.row.auditingStatus?"color-FF585C":""]},[t._v(t._s(1==e.row.auditingStatus?"超级管理员已同意":"超级管理员已拒绝"))]),t._v(" "),a("el-popover",{staticClass:"inline-block",attrs:{placement:"top",width:"150",trigger:"hover"}},[a("div",{staticClass:"tooltip-text"},[t._v(t._s(e.row.refuseReason))]),t._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[2==e.row.auditingStatus?a("i",{staticClass:"el-icon-question",on:{click:function(a){t.toggleReason(e.row)}}}):t._e()])])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[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)])]),t._v(" "),a("vue-gic-footer"),t._v(" "),a("storeChange",{attrs:{storeChangeData:t.storeChangeData},model:{value:t.showStoreDialog,callback:function(e){t.showStoreDialog=e},expression:"showStoreDialog"}})],1)},staticRenderFns:[]};var u=a("VU/8")(r,c,!1,function(t){a("Yy22")},"data-v-33253d17",null);e.default=u.exports},LArp:function(t,e){},Yy22:function(t,e){},Zx22:function(t,e,a){"use strict";var n={name:"custom-dialog",props:{value:{type:Boolean,default:!1},storeChangeData:{type:[Object,Array]}},data:function(){return{repProjectName:"gic-web",customDialog:this.value,leftData:[],rightData:[]}},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("input",this.customDialog)},formatDate:function(t,e){function a(t){return t>9?""+t:"0"+t}var n=new Date(t),i=n.getFullYear(),s=n.getMonth()+1,o=n.getDate();return i+e+a(s)+e+a(o)+e},handleData:function(){}},watch:{value:function(t,e){this.customDialog=t},storeChangeData:function(t,e){this.leftData=t.beforeContent,this.rightData=t.afterContent}},mounted:function(){this.leftData=this.storeChangeData.beforeContent,this.rightData=this.storeChangeData.afterContent}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"门店图片变更",visible:t.customDialog,width:"600px","before-close":t.handleCardClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"dialog-content"},[a("el-row",[a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更前\n ")]),t._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.leftData,function(t,e){return[a("img",{key:"img"+e,attrs:{src:t,alt:""}})]})],2)])]),t._v(" "),a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更后\n ")]),t._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.rightData,function(t,e){return[a("img",{key:"img0"+e,attrs:{src:t,alt:""}})]})],2)])])],1)],1)])],1)},staticRenderFns:[]};var s=a("VU/8")(n,i,!1,function(t){a("LArp")},"data-v-e0628fc0",null);e.a=s.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([29],{"2BMJ":function(t,e){},kkGw:function(t,e){},yuVF:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3Xzz"),o=a("gBtx"),i=a.n(o),l=a("mvHQ"),r=a.n(l),n=a("c4uw"),p=a("Ie7z"),c=a("P9l9"),d=a("3E4D"),u=a("Ch4/"),f={name:"visiable-dialog",props:{showDialog:{type:Boolean,default:!1},appId:{type:String,default:""},appName:{type:String,default:""}},components:{vueSelectEmployee:n.a,vueSelectStore:p.a},data:function(){return{repProjectName:"haoban-manage-web",customDialog:!1,formData:{appId:this.appId,displayType:"0",data:[],departList:[],storeList:[]},appScene:2,treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1,openNextBool:!0},treeData:{},defaultSelection:[],changed:"",onlyPerson:!1,selectType:"",defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1,openNextBool:!0}}},beforeMount:function(){},methods:{handleClose:function(t){t(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideDialog")},showDialogLayer:function(t,e){if(this.selectType=t,this.changed=t,"store"===t)return this.defaultStoreList=e,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0,openNextBool:!0});this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0,openNextBool:!0},"people"===t&&(this.onlyPerson=!1,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0}),this.defaultSelection=e,this.treeData.hasOwnProperty("treeData")},handleSelectedList:function(t){console.log(t),"store"===this.selectType?this.formData.storeList=t:this.formData.departList=t},delDepart:function(t,e){e.splice(t,1)},customConfirm:function(){if(0!=this.formData.displayType)if(this.formData.departList.length||this.formData.storeList.length){var t=[];this.formData.departList.length&&this.formData.departList.forEach(function(e){t.push({id:e.id,type:e.hasOwnProperty("employeeClerkId")?1:e.hasOwnProperty("groupId")?2:3})}),this.formData.storeList.length&&this.formData.storeList.forEach(function(e){t.push({id:e.id,type:e.hasOwnProperty("employeeClerkId")?1:e.hasOwnProperty("groupId")?2:3})}),this.setData(t)}else this.$message.error({duration:1e3,message:"请选择可见人员"});else this.setData([])},setData:function(t){var e=this,a={appId:this.appId,displayType:parseInt(e.formData.displayType),data:r()(t)};Object(c.e)("/haoban-manage-web/application-right-save",a).then(function(t){var a=t.data;if(1==a.errorCode)return d.a.showmsg("设置成功","success"),void e.hideDialog();u.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getSetData:function(){var t=this,e={appId:t.formData.appId};Object(c.e)("/haoban-manage-web/application-right-detail",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.formData.displayType=String(a.result.displayType),t.formData.departList=[],t.formData.storeList=[],a.result.displayRelation&&a.result.displayRelation.length&&a.result.displayRelation.forEach(function(e){2===i()(e.type)&&(e.groupId=e.id),e.label=e.name,e.isStore?t.formData.storeList.push(e):t.formData.departList.push(e)}),t.defaultSelection=t.formData.departList,void(t.defaultStoreList=t.formData.storeList);u.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{showDialog:function(t,e){this.customDialog=t},appId:function(t,e){this.formData.appId=t,t&&this.getSetData()}},mounted:function(){this.customDialog=this.showDialog,this.appId&&this.getSetData()}},m={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:"app-dialog",attrs:{title:t.appName+"可见范围设置",visible:t.customDialog,width:"476px","before-close":t.handleClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"app-dialog-body"},[a("el-form",{ref:"form",attrs:{model:t.formData,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"可见范围"}},[a("div",[a("el-radio",{attrs:{label:"0"},model:{value:t.formData.displayType,callback:function(e){t.$set(t.formData,"displayType",e)},expression:"formData.displayType"}},[t._v("全部员工")])],1),t._v(" "),a("div",[a("el-radio",{attrs:{label:"1"},model:{value:t.formData.displayType,callback:function(e){t.$set(t.formData,"displayType",e)},expression:"formData.displayType"}},[t._v("部分员工")])],1)]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.formData.displayType,expression:"formData.displayType == 1"}]},[a("el-form-item",{staticClass:"m-b-0 m-t-10",attrs:{label:"行政架构",prop:"name"}},[a("div",{staticClass:"flex w-380 flex-column item-cell-select"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",on:{click:function(e){t.showDialogLayer("depart",t.formData.departList)}}},[a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[t._l(t.formData.departList,function(e,s){return[a("span",{key:s,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.name))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){e.stopPropagation(),t.delDepart(s,t.formData.departList)}}})])]})],2)])])])])]),t._v(" "),a("el-form-item",{staticClass:"m-t-22",attrs:{label:"门店架构",prop:"name"}},[a("div",{staticClass:"flex w-380 flex-column item-cell-select"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(e){t.showDialogLayer("store",t.formData.storeList)}}},[a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[t._l(t.formData.storeList,function(e,s){return[a("span",{key:s,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(s,t.formData.storeList)}}})])]})],2)])])])])])],1)],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.customCancel}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.customConfirm}},[t._v("确 定")])],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:{appScene:t.appScene,treeSet:t.storeTreeSet,selectType:"all",defaultList:t.defaultStoreList},on:{handleSelectedList:t.handleSelectedList}})],1)},staticRenderFns:[]};var h=a("VU/8")(f,m,!1,function(t){a("2BMJ")},"data-v-15f990ae",null).exports,g={name:"apps",data:function(){return{tableH:window.screen.availHeight-464-126+"px",navpath:[{name:"首页",path:"/index"},{name:"企业应用",path:""}],appList:[],roleCode:"",appName:"",appId:"",showDialog:!1}},computed:{},methods:{showPeople:function(t){if("master_admin"!=this.roleCode&&"admin"!=this.roleCode)return this.$message.error({duration:1e3,message:"暂无操作权限"}),!1;this.appName=t.appName,this.appId=t.appId,this.showDialog=!0},hideDialog:function(){this.appName="",this.showDialog=!1},changeSwitch:function(t){var e=this;if("master_admin"!=e.roleCode)return e.$message.error({duration:1e3,message:"暂无操作权限"}),!1;var a=1==t.status?"关闭":"开启";e.$confirm("确认"+a+"【"+t.appName+"】应用吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.postSwitch(t)}).catch(function(){})},postSwitch:function(t){var e=this,a={appId:t.appId,status:2==t.status?1:2};Object(c.a)("/haoban-manage-web/application-on-off",a).then(function(e){var a=e.data;if(1==a.errorCode)return d.a.showmsg("操作成功","success"),void(t.status=2==t.status?1:2);u.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toAppDetail:function(t){if(!t.appUrl)return d.a.showmsg("无更多设置项,不可进入!","warning"),!1;0==t.appType?this.$router.push(t.appUrl+"?appId="+t.appId+"&appIcon="+t.appIcon):window.open(t.appUrl)},getAppList:function(t){var e=this;Object(c.a)("/haoban-manage-web/application-rigth-list",{}).then(function(t){var a=t.data;1!=a.errorCode?u.a.errorMsg(a):a.result&&a.result.appList&&(e.appList=a.result.appList,e.roleCode=a.result.roleCode)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getAppList()},components:{navCrumb:s.a,visiableDialog:h}},v={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"apps-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"apps-content"},[a("div",{staticClass:"apps-content-title"},[t._v("基础应用")]),t._v(" "),a("div",{staticClass:"apps-content-body m-t-24"},[a("ul",{staticClass:"flex flex-row flex-wrap"},t._l(t.appList,function(e,s){return a("li",{key:e.appId+s,staticClass:"flex flex-align-center border-box flex",on:{click:function(a){if(a.target!==a.currentTarget)return null;t.toAppDetail(e)}}},[a("span",{staticClass:"square-item flex flex-align-center flex-pack-center",style:{background:e.appBackgroudColor},on:{click:function(a){a.stopPropagation(),t.toAppDetail(e)}}},[a("img",{class:[1==e.status?"":"filter-grayscale"],attrs:{src:e.appIcon,alt:""}})]),t._v(" "),a("span",{staticClass:"color-303133 font-16 p-l-8",on:{click:function(a){if(a.target!==a.currentTarget)return null;t.toAppDetail(e)}}},[t._v(t._s(e.appName))]),t._v(" "),a("div",{staticClass:"cell-arrow-down"},[a("el-dropdown",{staticClass:"app-cell-dropdown",attrs:{trigger:"hover"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-more el-icon--right color-909399",staticStyle:{cursor:"pointer"}})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{staticClass:"p-0"},[a("span",{on:{click:function(a){a.stopPropagation(),t.showPeople(e)}}},[t._v("可见人群")])]),t._v(" "),a("el-dropdown-item",{staticClass:"p-0"},[a("span",{on:{click:function(a){a.stopPropagation(),t.changeSwitch(e)}}},[t._v(t._s(1==e.status?"停用":"启用"))])])],1)],1)],1)])}))])])])]),t._v(" "),a("vue-gic-footer"),t._v(" "),a("visiableDialog",{attrs:{appId:t.appId,appName:t.appName,showDialog:t.showDialog},on:{hideDialog:t.hideDialog}})],1)},staticRenderFns:[]};var D=a("VU/8")(g,v,!1,function(t){a("kkGw")},"data-v-566875e9",null);e.default=D.exports}}); webpackJsonp([29],{"2BMJ":function(t,e){},as0Y:function(t,e){},yuVF:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3Xzz"),o=a("gBtx"),i=a.n(o),l=a("mvHQ"),r=a.n(l),n=a("c4uw"),p=a("Ie7z"),c=a("P9l9"),d=a("3E4D"),u=a("Ch4/"),f={name:"visiable-dialog",props:{showDialog:{type:Boolean,default:!1},appId:{type:String,default:""},appName:{type:String,default:""}},components:{vueSelectEmployee:n.a,vueSelectStore:p.a},data:function(){return{repProjectName:"haoban-manage-web",customDialog:!1,formData:{appId:this.appId,displayType:"0",data:[],departList:[],storeList:[]},appScene:2,treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1,openNextBool:!0},treeData:{},defaultSelection:[],changed:"",onlyPerson:!1,selectType:"",defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1,openNextBool:!0}}},beforeMount:function(){},methods:{handleClose:function(t){t(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideDialog")},showDialogLayer:function(t,e){if(this.selectType=t,this.changed=t,"store"===t)return this.defaultStoreList=e,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0,openNextBool:!0});this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0,openNextBool:!0},"people"===t&&(this.onlyPerson=!1,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0}),this.defaultSelection=e,this.treeData.hasOwnProperty("treeData")},handleSelectedList:function(t){console.log(t),"store"===this.selectType?this.formData.storeList=t:this.formData.departList=t},delDepart:function(t,e){e.splice(t,1)},customConfirm:function(){if(0!=this.formData.displayType)if(this.formData.departList.length||this.formData.storeList.length){var t=[];this.formData.departList.length&&this.formData.departList.forEach(function(e){t.push({id:e.id,type:e.hasOwnProperty("employeeClerkId")?1:e.hasOwnProperty("groupId")?2:3})}),this.formData.storeList.length&&this.formData.storeList.forEach(function(e){t.push({id:e.id,type:e.hasOwnProperty("employeeClerkId")?1:e.hasOwnProperty("groupId")?2:3})}),this.setData(t)}else this.$message.error({duration:1e3,message:"请选择可见人员"});else this.setData([])},setData:function(t){var e=this,a={appId:this.appId,displayType:parseInt(e.formData.displayType),data:r()(t)};Object(c.e)("/haoban-manage-web/application-right-save",a).then(function(t){var a=t.data;if(1==a.errorCode)return d.a.showmsg("设置成功","success"),void e.hideDialog();u.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getSetData:function(){var t=this,e={appId:t.formData.appId};Object(c.e)("/haoban-manage-web/application-right-detail",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.formData.displayType=String(a.result.displayType),t.formData.departList=[],t.formData.storeList=[],a.result.displayRelation&&a.result.displayRelation.length&&a.result.displayRelation.forEach(function(e){2===i()(e.type)&&(e.groupId=e.id),e.label=e.name,e.isStore?t.formData.storeList.push(e):t.formData.departList.push(e)}),t.defaultSelection=t.formData.departList,void(t.defaultStoreList=t.formData.storeList);u.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{showDialog:function(t,e){this.customDialog=t},appId:function(t,e){this.formData.appId=t,t&&this.getSetData()}},mounted:function(){this.customDialog=this.showDialog,this.appId&&this.getSetData()}},m={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:"app-dialog",attrs:{title:t.appName+"可见范围设置",visible:t.customDialog,width:"476px","before-close":t.handleClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"app-dialog-body"},[a("el-form",{ref:"form",attrs:{model:t.formData,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"可见范围"}},[a("div",[a("el-radio",{attrs:{label:"0"},model:{value:t.formData.displayType,callback:function(e){t.$set(t.formData,"displayType",e)},expression:"formData.displayType"}},[t._v("全部员工")])],1),t._v(" "),a("div",[a("el-radio",{attrs:{label:"1"},model:{value:t.formData.displayType,callback:function(e){t.$set(t.formData,"displayType",e)},expression:"formData.displayType"}},[t._v("部分员工")])],1)]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.formData.displayType,expression:"formData.displayType == 1"}]},[a("el-form-item",{staticClass:"m-b-0 m-t-10",attrs:{label:"行政架构",prop:"name"}},[a("div",{staticClass:"flex w-380 flex-column item-cell-select"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",on:{click:function(e){t.showDialogLayer("depart",t.formData.departList)}}},[a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[t._l(t.formData.departList,function(e,s){return[a("span",{key:s,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.name))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){e.stopPropagation(),t.delDepart(s,t.formData.departList)}}})])]})],2)])])])])]),t._v(" "),a("el-form-item",{staticClass:"m-t-22",attrs:{label:"门店架构",prop:"name"}},[a("div",{staticClass:"flex w-380 flex-column item-cell-select"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(e){t.showDialogLayer("store",t.formData.storeList)}}},[a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[t._l(t.formData.storeList,function(e,s){return[a("span",{key:s,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(s,t.formData.storeList)}}})])]})],2)])])])])])],1)],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.customCancel}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.customConfirm}},[t._v("确 定")])],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:{appScene:t.appScene,treeSet:t.storeTreeSet,selectType:"all",defaultList:t.defaultStoreList},on:{handleSelectedList:t.handleSelectedList}})],1)},staticRenderFns:[]};var h=a("VU/8")(f,m,!1,function(t){a("2BMJ")},"data-v-15f990ae",null).exports,g={name:"apps",data:function(){return{tableH:window.screen.availHeight-464-126+"px",navpath:[{name:"首页",path:"/index"},{name:"企业应用",path:""}],appList:[],roleCode:"",appName:"",appId:"",showDialog:!1}},computed:{},methods:{showPeople:function(t){if("master_admin"!=this.roleCode&&"admin"!=this.roleCode)return this.$message.error({duration:1e3,message:"暂无操作权限"}),!1;this.appName=t.appName,this.appId=t.appId,this.showDialog=!0},hideDialog:function(){this.appName="",this.showDialog=!1},changeSwitch:function(t){var e=this;if("master_admin"!=e.roleCode)return e.$message.error({duration:1e3,message:"暂无操作权限"}),!1;var a=1==t.status?"关闭":"开启";e.$confirm("确认"+a+"【"+t.appName+"】应用吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.postSwitch(t)}).catch(function(){})},postSwitch:function(t){var e=this,a={appId:t.appId,status:2==t.status?1:2};Object(c.a)("/haoban-manage-web/application-on-off",a).then(function(e){var a=e.data;if(1==a.errorCode)return d.a.showmsg("操作成功","success"),void(t.status=2==t.status?1:2);u.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toAppDetail:function(t){if(!t.appUrl)return d.a.showmsg("无更多设置项,不可进入!","warning"),!1;0==t.appType?this.$router.push(t.appUrl+"?appId="+t.appId+"&appIcon="+t.appIcon):window.open(t.appUrl)},getAppList:function(t){var e=this;Object(c.a)("/haoban-manage-web/application-rigth-list",{}).then(function(t){var a=t.data;1!=a.errorCode?u.a.errorMsg(a):a.result&&a.result.appList&&(e.appList=a.result.appList,e.roleCode=a.result.roleCode)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getAppList()},components:{navCrumb:s.a,visiableDialog:h}},v={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"apps-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"apps-content"},[a("div",{staticClass:"apps-content-title"},[t._v("基础应用")]),t._v(" "),a("div",{staticClass:"apps-content-body m-t-24"},[a("ul",{staticClass:"flex flex-row flex-wrap"},t._l(t.appList,function(e,s){return a("li",{key:e.appId+s,staticClass:"flex flex-align-center border-box flex",on:{click:function(a){if(a.target!==a.currentTarget)return null;t.toAppDetail(e)}}},[a("span",{staticClass:"square-item flex flex-align-center flex-pack-center",style:{background:e.appBackgroudColor},on:{click:function(a){a.stopPropagation(),t.toAppDetail(e)}}},[a("img",{class:[1==e.status?"":"filter-grayscale"],attrs:{src:e.appIcon,alt:""}})]),t._v(" "),a("span",{staticClass:"color-303133 font-16 p-l-8",on:{click:function(a){if(a.target!==a.currentTarget)return null;t.toAppDetail(e)}}},[t._v(t._s(e.appName))]),t._v(" "),a("div",{staticClass:"cell-arrow-down"},[a("el-dropdown",{staticClass:"app-cell-dropdown",attrs:{trigger:"hover"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-more el-icon--right color-909399",staticStyle:{cursor:"pointer"}})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{staticClass:"p-0"},[a("span",{on:{click:function(a){a.stopPropagation(),t.showPeople(e)}}},[t._v("可见人群")])]),t._v(" "),a("el-dropdown-item",{staticClass:"p-0"},[a("span",{on:{click:function(a){a.stopPropagation(),t.changeSwitch(e)}}},[t._v(t._s(1==e.status?"停用":"启用"))])])],1)],1)],1),t._v(" "),e.appUrl?a("div",{staticClass:"app-detail-txt font-12 color-1890ff"},[a("span",[t._v("详情")]),a("i",{staticClass:"el-icon-arrow-right"})]):t._e()])}))])])])]),t._v(" "),a("vue-gic-footer"),t._v(" "),a("visiableDialog",{attrs:{appId:t.appId,appName:t.appName,showDialog:t.showDialog},on:{hideDialog:t.hideDialog}})],1)},staticRenderFns:[]};var D=a("VU/8")(g,v,!1,function(t){a("as0Y")},"data-v-e004f93e",null);e.default=D.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([80],{"/NA0":function(e,t){},0:function(e,t,n){n("j1ja"),e.exports=n("NHnr")},"4qCZ":function(e,t){},"5tgt":function(e,t,n){e.exports=function(e,t){return function(a){n("Opzk")("./"+e+"/"+t+".vue").then(function(e){a(e)})}}},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("mvHQ"),o=n.n(a),r=n("fZjL"),p=n.n(r),i=(n("j1ja"),n("hKoQ")),s=n.n(i),c={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var u=n("VU/8")({name:"App",data:function(){return{}}},c,!1,function(e){n("/NA0")},null,null).exports,m=n("lRwf"),d=n.n(m),l=n("pRNm"),h=n.n(l),v=n("5tgt"),g=n.n(v);d.a.use(h.a);var f=function(e){n.e(1).then(n.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var A,y=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:g()("login","index")},{path:"/download",name:"下载",component:g()("download","index")},{path:"/index",name:"index",component:g()("index","index")},{path:"/sign",name:"index",component:g()("sign","index")},{path:"/contacts",name:"通讯录",redirect:"administrativeFrame",component:g()("contacts","index"),children:[{path:"/administrativeFrame",name:"行政架构",component:g()("contacts","administrativeFrame")},{path:"/employeeIo",name:"批量导入/导出",component:g()("contacts","employeeIo")},{path:"/addDepartment",name:"添加部门",component:g()("contacts","addDepartment")},{path:"/addClerk",name:"添加店员",component:g()("contacts","addClerk")},{path:"/storeFrame",name:"门店架构",component:g()("contacts","storeFrame")},{path:"/addGroup",name:"添加子分组",component:g()("contacts","addGroup")},{path:"/storeIo",name:"门店导入/导出",component:g()("contacts","storeIo")},{path:"/storeInfo",name:"编辑门店",component:g()("contacts","storeInfo")},{path:"/recycle",name:"门店回收站",component:g()("contacts","recycle")},{path:"/employee",name:"编辑员工",component:g()("contacts","employee")},{path:"/unemployee",name:"离职员工",component:g()("contacts","unemployee")},{path:"/fileSet",name:"档案设置",component:g()("contacts","fileSet")},{path:"/recordInfo",name:"编辑员工信息",component:g()("contacts","recordInfo")},{path:"/recordIo",name:"导入导出员工档案",component:g()("contacts","recordIo")},{path:"/shareContact",name:"共享通讯录",component:g()("contacts","shareContact")},{path:"/shareCode",name:"共享通讯录二维码",component:g()("contacts","shareCode")},{path:"/employeeRecord",name:"在职员工",component:g()("contacts","employeeRecord")}]},{path:"/enterpriseApp",name:"企业应用",redirect:"appcenter",component:g()("enterpriseApp","index"),children:[{path:"/appcenter",name:"企业应用中心",component:g()("enterpriseApp","appcenter")},{path:"/mycustomer",name:"我的顾客",component:g()("enterpriseApp","mycustomer")},{path:"/cloudDaily",name:"云日报",redirect:"/dailyRecord",component:g()("enterpriseApp/cloudDaily","index"),children:[{path:"/dailyRecord",name:"云日报记录",component:g()("enterpriseApp/cloudDaily","dailyRecord")},{path:"/dailyDetail",name:"日报详情",component:g()("enterpriseApp/cloudDaily","dailyDetail")},{path:"/taskAssign",name:"任务下发设置",component:g()("enterpriseApp/cloudDaily","taskAssign")},{path:"/systemReport",name:"系统报表",component:g()("enterpriseApp/cloudDaily","systemReport")},{path:"/customReport",name:"自定义报表",component:g()("enterpriseApp/cloudDaily","customReport")}]},{path:"/trafficTask",name:"话务任务",redirect:"/taskRecord",component:g()("enterpriseApp/trafficTask","index"),children:[{path:"/taskRecord",name:"话务任务记录",component:g()("enterpriseApp/trafficTask","taskRecord")},{path:"/taskDetail",name:"话务任务详情",component:g()("enterpriseApp/trafficTask","taskDetail")},{path:"/trafficTaskSet",name:"话务任务设置",component:g()("enterpriseApp/trafficTask","trafficTaskSet")},{path:"/badEvaluateSet",name:"不良评价设置",component:g()("enterpriseApp/badEvaluate","badEvaluateSet")}]},{path:"/noticeList",name:"企业公告",redirect:"/noticeList",component:g()("enterpriseApp/notice","index"),children:[{path:"/noticeList",name:"企业公告列表",component:g()("enterpriseApp/notice","noticeList")},{path:"/addNotice",name:"新建公告",component:g()("enterpriseApp/notice","addNotice")}]},{path:"/badEvaluate",name:"不良评价",redirect:"/badEvaluateRecord",component:g()("enterpriseApp/badEvaluate","index"),children:[{path:"/badEvaluateRecord",name:"不良评价记录",component:g()("enterpriseApp/badEvaluate","badEvaluateRecord")},{path:"/badEvaluateDetail",name:"不良评价详情",component:g()("enterpriseApp/badEvaluate","badEvaluateDetail")}]},{path:"/quota",name:"指标管理",redirect:"/monthList",component:g()("enterpriseApp/quota","index"),children:[{path:"/monthList",name:"月指标列表",component:g()("enterpriseApp/quota","monthList")},{path:"/storeMonthTask",name:"门店月指标",component:g()("enterpriseApp/quota","storeMonthTask")},{path:"/salerMonthDetail",name:"导购月指标详情",component:g()("enterpriseApp/quota","salerMonthDetail")},{path:"/companyDaySet",name:"商户日权重",component:g()("enterpriseApp/quota","companyDaySet")},{path:"/monthTask",name:"月指标任务",component:g()("enterpriseApp/quota","monthTask"),meta:{keepAlive:!0}},{path:"/monthTaskDetail",name:"月指标任务详情",component:g()("enterpriseApp/quota","monthTaskDetail"),meta:{keepAlive:!0}}]},{path:"/signList",name:"企业公告",redirect:"/signList",component:g()("enterpriseApp/signApp","index"),children:[{path:"/signList",name:"企业公告列表",component:g()("enterpriseApp/signApp","signList")}]}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:g()("reviewCenter","index"),children:[{path:"/reviewed",name:"已审核",component:g()("reviewCenter","reviewed")},{path:"/unreview",name:"未审核",component:g()("reviewCenter","unreview")}]},{path:"/setCenter",name:"设置",redirect:"companyAddress",component:g()("setting","index"),children:[{path:"/companyAddress",name:"企业地址",component:g()("setting","companyAddress")},{path:"/companyCertify",name:"企业认证",component:g()("setting","companyCertify")},{path:"/staffDetails",name:"员工详情字段",component:g()("setting","staffDetails")},{path:"/storePermission",name:"门店权限设置",component:g()("setting","storePermission")},{path:"/contactPermission",name:"通讯录控制",component:g()("setting","contactPermission")},{path:"/replaceAdmin",name:"更换超级管理员",component:g()("setting","replaceAdmin")},{path:"/setChildAdmin",name:"设置子管理员",component:g()("setting","setChildAdmin")},{path:"/addAdmin",name:"添加管理员",component:g()("setting","addAdmin")},{path:"/addAdminRole",name:"添加管理员角色",component:g()("setting","addAdminRole")}]},{path:"/staffRecordsTemplate",name:"员工档案设置",component:g()("contacts","staffRecordsTemplate")},{path:"/systemReportSet",name:"系统报表设置",component:g()("enterpriseApp/cloudDaily","systemReportSet")},{path:"/template",name:"模板设置",component:g()("enterpriseApp/cloudDaily","template")},{path:"/403",name:"无权访问",component:f},{path:"/404",name:"error404",component:f},{path:"/500",name:"error500",component:f},{path:"*",redirect:"/404",hidden:!0}],D=new h.a({routes:y,scrollBehavior:function(){return{y:0}}}),k=n("zL8q"),x=n.n(k),w=n("Rf8U"),R=n.n(w),S=n("mtWM"),E=n.n(S),T=n("bOdI"),b=n.n(T),C=n("SJI6"),I=n.n(C);d.a.use(I.a);var M=new I.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px"},mutations:(A={},b()(A,"login",function(e,t){sessionStorage.token=t,e.token=t}),b()(A,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),b()(A,"title",function(e,t){e.title=t}),b()(A,"show",function(e,t){e.show=t}),A)}),q=(n("4qCZ"),n("uKUT"),n("Xcu2"),{dateFormat:function(e,t){if(e){e=10===e.toString().length?1e3*e:e;var n=new Date(e),a={"M+":n.getMonth()+1,"D+":n.getDate(),W:"日一二三四五六".charAt(n.getDay()),"h+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds(),"q+":Math.floor((n.getMonth()+3)/3),S:n.getMilliseconds()};for(var o in/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length))),a)new RegExp("("+o+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?a[o]:("00"+a[o]).substr((""+a[o]).length)));return t}},formatTimeStamp:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),o=n<10?"0"+n:n,r=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"-"+o+"-"+a+" "+r+":"+p+":"+i}},timeStampToYmd:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),o=n<10?"0"+n:n;return t.getFullYear()+"-"+o+"-"+a}},timeStampToHms:function(e){if(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":"+(t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds())}},formatTimeYmdHms:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),o=n<10?"0"+n:n,r=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"."+o+"."+a+" "+r+":"+p+":"+i}}}),H=n("TUaa"),V=n.n(H),L=n("tyqE"),F=n.n(L),P=n("pRVe"),j=n.n(P),G=n("SE7k"),N=n.n(G),O=n("XsK6"),Y=n.n(O),z=n("QRL9"),K=n.n(z),J=n("2Pnh"),U=n.n(J),X=n("l9mu"),Z=n.n(X),B={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;U()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var n=t.width,a=t.height,o=n/592.28*841.89,r=a,p=0,i=592.28/n*a,s=t.toDataURL("image/jpeg",1),c=new Z.a("","pt","a4");if(r<o)c.addImage(s,"JPEG",0,0,595.28,i);else for(;r>0;)c.addImage(s,"JPEG",0,p,595.28,i),p-=841.89,(r-=o)>0&&c.addPage();c.save(e+".pdf")})}}};s.a.polyfill(),Vue.use(B),Vue.use(Y.a),Vue.use(K.a),Vue.use(N.a),Vue.use(j.a),Vue.use(F.a),Vue.use(V.a),Vue.config.productionTip=!1,Vue.use(x.a,{size:"large"}),Vue.use(R.a,E.a),Vue.axios.defaults.withCredentials=!0,p()(q).forEach(function(e){Vue.filter(e,q[e])}),D.beforeEach(function(e,t,n){var a=void 0,r=window.location.origin;a=-1!=r.indexOf("localhost")?"http://www.gicdev.com":r,localStorage.getItem("userInfo")||E.a.get(a+"/haoban-manage-web/emp/get-user-info",{}).then(function(e){var t=e.data;1!=t.errorCode||localStorage.setItem("userInfo",o()(t.result))}).catch(function(e){k.Message.error({duration:1e3,message:e.message})}),"/"==e.path?n({path:"/login"}):n()}),new Vue({el:"#app",router:D,store:M,components:{App:u},template:"<App/>"})},Opzk:function(e,t,n){var a={"./contacts/addClerk.vue":["27o1",0,20],"./contacts/addDepartment.vue":["HHRu",0,17],"./contacts/addEmployee.vue":["00Sv",46],"./contacts/addGroup.vue":["mPjx",0,40],"./contacts/administrativeFrame.vue":["kLcy",0,4],"./contacts/employee.vue":["AdJp",0,45],"./contacts/employeeIo.vue":["Rwbg",0,65],"./contacts/employeeRecord.vue":["zGJY",0,9],"./contacts/fileSet.vue":["CSjr",0,11],"./contacts/index.vue":["41Rh",0,52],"./contacts/recordInfo.vue":["67iC",0,14],"./contacts/recordIo.vue":["738z",0,21],"./contacts/recycle.vue":["HkK0",0,27],"./contacts/shareAddDepartment.vue":["q5Ri",0,16],"./contacts/shareCode.vue":["JsWW",0,32],"./contacts/shareContact.vue":["Gfms",0,3],"./contacts/staffRecordsTemplate.vue":["lFAe",0,72],"./contacts/storeFrame.vue":["7SJI",0,6],"./contacts/storeInfo.vue":["h/6A",0,43],"./contacts/storeIo.vue":["RHxA",0,70],"./contacts/unemployee.vue":["TGrv",0,15],"./download/index.vue":["ASGJ",0,8],"./enterpriseApp/appcenter.vue":["yuVF",0,29],"./enterpriseApp/badEvaluate/badEvaluateDetail.vue":["4m/B",0,44],"./enterpriseApp/badEvaluate/badEvaluateRecord.vue":["r//C",0,39],"./enterpriseApp/badEvaluate/badEvaluateSet.vue":["XzAK",0,64],"./enterpriseApp/badEvaluate/index.vue":["W0k8",0,37],"./enterpriseApp/cloudDaily/customReport.vue":["DxdI",0,68],"./enterpriseApp/cloudDaily/dailyDetail.vue":["5nNU",0,50],"./enterpriseApp/cloudDaily/dailyRecord.vue":["Ujni",0,30],"./enterpriseApp/cloudDaily/index.vue":["Knd1",0,78],"./enterpriseApp/cloudDaily/systemReport.vue":["Y8F9",0,31],"./enterpriseApp/cloudDaily/systemReportSet.vue":["VE2c",0,7],"./enterpriseApp/cloudDaily/taskAssign.vue":["5x7s",0,66],"./enterpriseApp/cloudDaily/template.vue":["IA9l",0,5],"./enterpriseApp/cloudDaily/template/block.vue":["PAYw",41],"./enterpriseApp/cloudDaily/template/date-range.vue":["79Bk",77],"./enterpriseApp/cloudDaily/template/image.vue":["H8Kg",47],"./enterpriseApp/cloudDaily/template/input.vue":["s4D+",56],"./enterpriseApp/cloudDaily/template/select.vue":["t0b0",63],"./enterpriseApp/index.vue":["da9f",38],"./enterpriseApp/mycustomer.vue":["cuIN",0,36],"./enterpriseApp/notice/addNotice.vue":["G5PL",0,2],"./enterpriseApp/notice/index.vue":["av/3",0,51],"./enterpriseApp/notice/noticeList.vue":["OVYO",0,12],"./enterpriseApp/quota/companyDaySet.vue":["xk7v",0,35],"./enterpriseApp/quota/index.vue":["FB5x",0,69],"./enterpriseApp/quota/monthList.vue":["ZxDn",0,61],"./enterpriseApp/quota/monthTask.vue":["cK0D",0,67],"./enterpriseApp/quota/monthTaskDetail.vue":["jMbb",0,60],"./enterpriseApp/quota/salerMonthDetail.vue":["IKv2",0,48],"./enterpriseApp/quota/storeMonthTask.vue":["kF1j",0,34],"./enterpriseApp/signApp/index.vue":["Gk4o",0,54],"./enterpriseApp/signApp/signList.vue":["kCy7",0,49],"./enterpriseApp/trafficTask/index.vue":["e88N",0,53],"./enterpriseApp/trafficTask/taskDetail.vue":["A33E",0,55],"./enterpriseApp/trafficTask/taskRecord.vue":["iG3v",0,57],"./enterpriseApp/trafficTask/trafficTaskSet.vue":["4H54",0,76],"./errorPage/403.vue":["6XGN",25],"./errorPage/404.vue":["AejC",28],"./errorPage/500.vue":["FskK",23],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,26],"./login/index.vue":["T+/8",0,10],"./reviewCenter/index.vue":["+lem",73],"./reviewCenter/reviewed.vue":["CLYF",0,18],"./reviewCenter/unreview.vue":["xCEU",0,19],"./setting/addAdmin.vue":["rs/A",0,42],"./setting/addAdminRole.vue":["fZsz",0,62],"./setting/companyAddress.vue":["SKyE",0,59],"./setting/companyCertify.vue":["3zYh",0,13],"./setting/contactPermission.vue":["6zFj",0,58],"./setting/index.vue":["VlR1",33],"./setting/replaceAdmin.vue":["ys9I",0,71],"./setting/setChildAdmin.vue":["VqB7",0,74],"./setting/staffDetails.vue":["Zyzf",0,24],"./setting/storePermission.vue":["Xwfy",0,22],"./sign/index.vue":["RQuk",0,75]};function o(e){var t=a[e];return t?Promise.all(t.slice(1).map(n.e)).then(function(){return n(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}o.keys=function(){return Object.keys(a)},o.id="Opzk",e.exports=o},SJI6:function(e,t){e.exports=Vuex},Xcu2:function(e,t){},lRwf:function(e,t){e.exports=Vue},pRNm:function(e,t){e.exports=VueRouter},uKUT:function(e,t){}},[0]); webpackJsonp([80],{"/NA0":function(e,t){},0:function(e,t,n){n("j1ja"),e.exports=n("NHnr")},"4qCZ":function(e,t){},"5tgt":function(e,t,n){e.exports=function(e,t){return function(a){n("Opzk")("./"+e+"/"+t+".vue").then(function(e){a(e)})}}},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("mvHQ"),o=n.n(a),r=n("fZjL"),p=n.n(r),i=(n("j1ja"),n("hKoQ")),s=n.n(i),c={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var u=n("VU/8")({name:"App",data:function(){return{}}},c,!1,function(e){n("/NA0")},null,null).exports,m=n("lRwf"),d=n.n(m),l=n("pRNm"),h=n.n(l),v=n("5tgt"),g=n.n(v);d.a.use(h.a);var f=function(e){n.e(1).then(n.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var A,y=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:g()("login","index")},{path:"/download",name:"下载",component:g()("download","index")},{path:"/index",name:"index",component:g()("index","index")},{path:"/sign",name:"index",component:g()("sign","index")},{path:"/contacts",name:"通讯录",redirect:"administrativeFrame",component:g()("contacts","index"),children:[{path:"/administrativeFrame",name:"行政架构",component:g()("contacts","administrativeFrame")},{path:"/employeeIo",name:"批量导入/导出",component:g()("contacts","employeeIo")},{path:"/addDepartment",name:"添加部门",component:g()("contacts","addDepartment")},{path:"/addClerk",name:"添加店员",component:g()("contacts","addClerk")},{path:"/storeFrame",name:"门店架构",component:g()("contacts","storeFrame")},{path:"/addGroup",name:"添加子分组",component:g()("contacts","addGroup")},{path:"/storeIo",name:"门店导入/导出",component:g()("contacts","storeIo")},{path:"/storeInfo",name:"编辑门店",component:g()("contacts","storeInfo")},{path:"/recycle",name:"门店回收站",component:g()("contacts","recycle")},{path:"/employee",name:"编辑员工",component:g()("contacts","employee")},{path:"/unemployee",name:"离职员工",component:g()("contacts","unemployee")},{path:"/fileSet",name:"档案设置",component:g()("contacts","fileSet")},{path:"/recordInfo",name:"编辑员工信息",component:g()("contacts","recordInfo")},{path:"/recordIo",name:"导入导出员工档案",component:g()("contacts","recordIo")},{path:"/shareContact",name:"共享通讯录",component:g()("contacts","shareContact")},{path:"/shareCode",name:"共享通讯录二维码",component:g()("contacts","shareCode")},{path:"/employeeRecord",name:"在职员工",component:g()("contacts","employeeRecord")}]},{path:"/enterpriseApp",name:"企业应用",redirect:"appcenter",component:g()("enterpriseApp","index"),children:[{path:"/appcenter",name:"企业应用中心",component:g()("enterpriseApp","appcenter")},{path:"/mycustomer",name:"我的顾客",component:g()("enterpriseApp","mycustomer")},{path:"/cloudDaily",name:"云日报",redirect:"/dailyRecord",component:g()("enterpriseApp/cloudDaily","index"),children:[{path:"/dailyRecord",name:"云日报记录",component:g()("enterpriseApp/cloudDaily","dailyRecord")},{path:"/dailyDetail",name:"日报详情",component:g()("enterpriseApp/cloudDaily","dailyDetail")},{path:"/taskAssign",name:"任务下发设置",component:g()("enterpriseApp/cloudDaily","taskAssign")},{path:"/systemReport",name:"系统报表",component:g()("enterpriseApp/cloudDaily","systemReport")},{path:"/customReport",name:"自定义报表",component:g()("enterpriseApp/cloudDaily","customReport")}]},{path:"/trafficTask",name:"话务任务",redirect:"/taskRecord",component:g()("enterpriseApp/trafficTask","index"),children:[{path:"/taskRecord",name:"话务任务记录",component:g()("enterpriseApp/trafficTask","taskRecord")},{path:"/taskDetail",name:"话务任务详情",component:g()("enterpriseApp/trafficTask","taskDetail")},{path:"/trafficTaskSet",name:"话务任务设置",component:g()("enterpriseApp/trafficTask","trafficTaskSet")},{path:"/badEvaluateSet",name:"不良评价设置",component:g()("enterpriseApp/badEvaluate","badEvaluateSet")}]},{path:"/noticeList",name:"企业公告",redirect:"/noticeList",component:g()("enterpriseApp/notice","index"),children:[{path:"/noticeList",name:"企业公告列表",component:g()("enterpriseApp/notice","noticeList")},{path:"/addNotice",name:"新建公告",component:g()("enterpriseApp/notice","addNotice")}]},{path:"/badEvaluate",name:"不良评价",redirect:"/badEvaluateRecord",component:g()("enterpriseApp/badEvaluate","index"),children:[{path:"/badEvaluateRecord",name:"不良评价记录",component:g()("enterpriseApp/badEvaluate","badEvaluateRecord")},{path:"/badEvaluateDetail",name:"不良评价详情",component:g()("enterpriseApp/badEvaluate","badEvaluateDetail")}]},{path:"/quota",name:"指标管理",redirect:"/monthList",component:g()("enterpriseApp/quota","index"),children:[{path:"/monthList",name:"月指标列表",component:g()("enterpriseApp/quota","monthList")},{path:"/storeMonthTask",name:"门店月指标",component:g()("enterpriseApp/quota","storeMonthTask")},{path:"/salerMonthDetail",name:"导购月指标详情",component:g()("enterpriseApp/quota","salerMonthDetail")},{path:"/companyDaySet",name:"商户日权重",component:g()("enterpriseApp/quota","companyDaySet")},{path:"/monthTask",name:"月指标任务",component:g()("enterpriseApp/quota","monthTask"),meta:{keepAlive:!0}},{path:"/monthTaskDetail",name:"月指标任务详情",component:g()("enterpriseApp/quota","monthTaskDetail"),meta:{keepAlive:!0}}]},{path:"/signList",name:"企业公告",redirect:"/signList",component:g()("enterpriseApp/signApp","index"),children:[{path:"/signList",name:"企业公告列表",component:g()("enterpriseApp/signApp","signList")}]}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:g()("reviewCenter","index"),children:[{path:"/reviewed",name:"已审核",component:g()("reviewCenter","reviewed")},{path:"/unreview",name:"未审核",component:g()("reviewCenter","unreview")}]},{path:"/setCenter",name:"设置",redirect:"companyAddress",component:g()("setting","index"),children:[{path:"/companyAddress",name:"企业地址",component:g()("setting","companyAddress")},{path:"/companyCertify",name:"企业认证",component:g()("setting","companyCertify")},{path:"/staffDetails",name:"员工详情字段",component:g()("setting","staffDetails")},{path:"/storePermission",name:"门店权限设置",component:g()("setting","storePermission")},{path:"/contactPermission",name:"通讯录控制",component:g()("setting","contactPermission")},{path:"/replaceAdmin",name:"更换超级管理员",component:g()("setting","replaceAdmin")},{path:"/setChildAdmin",name:"设置子管理员",component:g()("setting","setChildAdmin")},{path:"/addAdmin",name:"添加管理员",component:g()("setting","addAdmin")},{path:"/addAdminRole",name:"添加管理员角色",component:g()("setting","addAdminRole")}]},{path:"/staffRecordsTemplate",name:"员工档案设置",component:g()("contacts","staffRecordsTemplate")},{path:"/systemReportSet",name:"系统报表设置",component:g()("enterpriseApp/cloudDaily","systemReportSet")},{path:"/template",name:"模板设置",component:g()("enterpriseApp/cloudDaily","template")},{path:"/403",name:"无权访问",component:f},{path:"/404",name:"error404",component:f},{path:"/500",name:"error500",component:f},{path:"*",redirect:"/404",hidden:!0}],D=new h.a({routes:y,scrollBehavior:function(){return{y:0}}}),k=n("zL8q"),x=n.n(k),w=n("Rf8U"),R=n.n(w),S=n("mtWM"),E=n.n(S),T=n("bOdI"),b=n.n(T),C=n("SJI6"),I=n.n(C);d.a.use(I.a);var M=new I.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px"},mutations:(A={},b()(A,"login",function(e,t){sessionStorage.token=t,e.token=t}),b()(A,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),b()(A,"title",function(e,t){e.title=t}),b()(A,"show",function(e,t){e.show=t}),A)}),q=(n("4qCZ"),n("uKUT"),n("Xcu2"),{dateFormat:function(e,t){if(e){e=10===e.toString().length?1e3*e:e;var n=new Date(e),a={"M+":n.getMonth()+1,"D+":n.getDate(),W:"日一二三四五六".charAt(n.getDay()),"h+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds(),"q+":Math.floor((n.getMonth()+3)/3),S:n.getMilliseconds()};for(var o in/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length))),a)new RegExp("("+o+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?a[o]:("00"+a[o]).substr((""+a[o]).length)));return t}},formatTimeStamp:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),o=n<10?"0"+n:n,r=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"-"+o+"-"+a+" "+r+":"+p+":"+i}},timeStampToYmd:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),o=n<10?"0"+n:n;return t.getFullYear()+"-"+o+"-"+a}},timeStampToHms:function(e){if(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":"+(t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds())}},formatTimeYmdHms:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),o=n<10?"0"+n:n,r=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"."+o+"."+a+" "+r+":"+p+":"+i}}}),H=n("TUaa"),V=n.n(H),L=n("tyqE"),F=n.n(L),P=n("pRVe"),j=n.n(P),G=n("SE7k"),N=n.n(G),O=n("XsK6"),Y=n.n(O),z=n("QRL9"),K=n.n(z),J=n("2Pnh"),U=n.n(J),X=n("l9mu"),Z=n.n(X),B={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;U()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var n=t.width,a=t.height,o=n/592.28*841.89,r=a,p=0,i=592.28/n*a,s=t.toDataURL("image/jpeg",1),c=new Z.a("","pt","a4");if(r<o)c.addImage(s,"JPEG",0,0,595.28,i);else for(;r>0;)c.addImage(s,"JPEG",0,p,595.28,i),p-=841.89,(r-=o)>0&&c.addPage();c.save(e+".pdf")})}}};s.a.polyfill(),Vue.use(B),Vue.use(Y.a),Vue.use(K.a),Vue.use(N.a),Vue.use(j.a),Vue.use(F.a),Vue.use(V.a),Vue.config.productionTip=!1,Vue.use(x.a,{size:"large"}),Vue.use(R.a,E.a),Vue.axios.defaults.withCredentials=!0,p()(q).forEach(function(e){Vue.filter(e,q[e])}),D.beforeEach(function(e,t,n){var a=void 0,r=window.location.origin;a=-1!=r.indexOf("localhost")?"http://www.gicdev.com":r,localStorage.getItem("userInfo")||E.a.get(a+"/haoban-manage-web/emp/get-user-info",{}).then(function(e){var t=e.data;1!=t.errorCode||localStorage.setItem("userInfo",o()(t.result))}).catch(function(e){k.Message.error({duration:1e3,message:e.message})}),"/"==e.path?n({path:"/login"}):n()}),new Vue({el:"#app",router:D,store:M,components:{App:u},template:"<App/>"})},Opzk:function(e,t,n){var a={"./contacts/addClerk.vue":["27o1",0,19],"./contacts/addDepartment.vue":["HHRu",0,18],"./contacts/addEmployee.vue":["00Sv",46],"./contacts/addGroup.vue":["mPjx",0,40],"./contacts/administrativeFrame.vue":["kLcy",0,4],"./contacts/employee.vue":["AdJp",0,45],"./contacts/employeeIo.vue":["Rwbg",0,65],"./contacts/employeeRecord.vue":["zGJY",0,9],"./contacts/fileSet.vue":["CSjr",0,11],"./contacts/index.vue":["41Rh",0,52],"./contacts/recordInfo.vue":["67iC",0,14],"./contacts/recordIo.vue":["738z",0,20],"./contacts/recycle.vue":["HkK0",0,27],"./contacts/shareAddDepartment.vue":["q5Ri",0,17],"./contacts/shareCode.vue":["JsWW",0,32],"./contacts/shareContact.vue":["Gfms",0,3],"./contacts/staffRecordsTemplate.vue":["lFAe",0,72],"./contacts/storeFrame.vue":["7SJI",0,6],"./contacts/storeInfo.vue":["h/6A",0,43],"./contacts/storeIo.vue":["RHxA",0,70],"./contacts/unemployee.vue":["TGrv",0,16],"./download/index.vue":["ASGJ",0,8],"./enterpriseApp/appcenter.vue":["yuVF",0,29],"./enterpriseApp/badEvaluate/badEvaluateDetail.vue":["4m/B",0,44],"./enterpriseApp/badEvaluate/badEvaluateRecord.vue":["r//C",0,39],"./enterpriseApp/badEvaluate/badEvaluateSet.vue":["XzAK",0,64],"./enterpriseApp/badEvaluate/index.vue":["W0k8",0,37],"./enterpriseApp/cloudDaily/customReport.vue":["DxdI",0,68],"./enterpriseApp/cloudDaily/dailyDetail.vue":["5nNU",0,50],"./enterpriseApp/cloudDaily/dailyRecord.vue":["Ujni",0,30],"./enterpriseApp/cloudDaily/index.vue":["Knd1",0,78],"./enterpriseApp/cloudDaily/systemReport.vue":["Y8F9",0,31],"./enterpriseApp/cloudDaily/systemReportSet.vue":["VE2c",0,7],"./enterpriseApp/cloudDaily/taskAssign.vue":["5x7s",0,66],"./enterpriseApp/cloudDaily/template.vue":["IA9l",0,5],"./enterpriseApp/cloudDaily/template/block.vue":["PAYw",41],"./enterpriseApp/cloudDaily/template/date-range.vue":["79Bk",77],"./enterpriseApp/cloudDaily/template/image.vue":["H8Kg",47],"./enterpriseApp/cloudDaily/template/input.vue":["s4D+",56],"./enterpriseApp/cloudDaily/template/select.vue":["t0b0",63],"./enterpriseApp/index.vue":["da9f",38],"./enterpriseApp/mycustomer.vue":["cuIN",0,36],"./enterpriseApp/notice/addNotice.vue":["G5PL",0,2],"./enterpriseApp/notice/index.vue":["av/3",0,51],"./enterpriseApp/notice/noticeList.vue":["OVYO",0,12],"./enterpriseApp/quota/companyDaySet.vue":["xk7v",0,35],"./enterpriseApp/quota/index.vue":["FB5x",0,69],"./enterpriseApp/quota/monthList.vue":["ZxDn",0,61],"./enterpriseApp/quota/monthTask.vue":["cK0D",0,67],"./enterpriseApp/quota/monthTaskDetail.vue":["jMbb",0,60],"./enterpriseApp/quota/salerMonthDetail.vue":["IKv2",0,48],"./enterpriseApp/quota/storeMonthTask.vue":["kF1j",0,34],"./enterpriseApp/signApp/index.vue":["Gk4o",0,54],"./enterpriseApp/signApp/signList.vue":["kCy7",0,49],"./enterpriseApp/trafficTask/index.vue":["e88N",0,53],"./enterpriseApp/trafficTask/taskDetail.vue":["A33E",0,55],"./enterpriseApp/trafficTask/taskRecord.vue":["iG3v",0,57],"./enterpriseApp/trafficTask/trafficTaskSet.vue":["4H54",0,76],"./errorPage/403.vue":["6XGN",25],"./errorPage/404.vue":["AejC",28],"./errorPage/500.vue":["FskK",23],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,26],"./login/index.vue":["T+/8",0,10],"./reviewCenter/index.vue":["+lem",73],"./reviewCenter/reviewed.vue":["CLYF",0,21],"./reviewCenter/unreview.vue":["xCEU",0,15],"./setting/addAdmin.vue":["rs/A",0,42],"./setting/addAdminRole.vue":["fZsz",0,62],"./setting/companyAddress.vue":["SKyE",0,59],"./setting/companyCertify.vue":["3zYh",0,13],"./setting/contactPermission.vue":["6zFj",0,58],"./setting/index.vue":["VlR1",33],"./setting/replaceAdmin.vue":["ys9I",0,71],"./setting/setChildAdmin.vue":["VqB7",0,74],"./setting/staffDetails.vue":["Zyzf",0,24],"./setting/storePermission.vue":["Xwfy",0,22],"./sign/index.vue":["RQuk",0,75]};function o(e){var t=a[e];return t?Promise.all(t.slice(1).map(n.e)).then(function(){return n(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}o.keys=function(){return Object.keys(a)},o.id="Opzk",e.exports=o},SJI6:function(e,t){e.exports=Vuex},Xcu2:function(e,t){},lRwf:function(e,t){e.exports=Vue},pRNm:function(e,t){e.exports=VueRouter},uKUT:function(e,t){}},[0]);
\ No newline at end of file \ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(f,b,n){for(var r,t,o,i=0,u=[];i<f.length;i++)t=f[i],a[t]&&u.push(a[t][0]),a[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(f,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var f={},a={82:0};function d(c){if(f[c])return f[c].exports;var a=f[c]={i:c,l:!1,exports:{}};return e[c].call(a.exports,a,a.exports,d),a.l=!0,a.exports}d.e=function(e){var c=a[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var f=new Promise(function(f,d){c=a[e]=[f,d]});c[2]=f;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:"83ade80277f3bfb0294e",1:"fe9dec1f31b04053fd7e",2:"7bd6c9bef4c2979d0399",3:"b7e6d57d97174b75b050",4:"11254d7e3a102121b8ec",5:"8cb2253bec2fe1b1350c",6:"124ad8222f7b043b44ae",7:"ebad93a8c5bffffd9e98",8:"f1c9fb5c9212483138d8",9:"b5aae16b3951516573ad",10:"ebbed2d956a1376f014a",11:"59c7813cc972f62b1d18",12:"a986df17f75afd60381e",13:"c2a8c3f846f25822ca33",14:"354e10af70665365afca",15:"cf460d3bbf68d0ec7cb3",16:"a60a9b59e9c08bb8f9fa",17:"5df1837bc44567b0b747",18:"5514800e35b0e73e70c0",19:"c00bf60c8a9d892ddc2b",20:"3b3584307ac3ff46beef",21:"c50987389f9771604c9c",22:"f08c872fb1b9438d09ff",23:"9efbbc6dd315a676ce09",24:"6cacb2ce8b746af3e668",25:"4f9db49437ea94436d03",26:"e84283c3a6efdbdd121d",27:"f9eb8425e9bc9c62cc23",28:"140ad99228544036c969",29:"637858f60fa225939020",30:"6e2da48a6aaee90e7b58",31:"d81ddf1fefcc1d3a47a7",32:"703e6cead57d8645a1e8",33:"a005885d35e6836f2cff",34:"c2b31f09ecae60447e9c",35:"6eb8644b657d22563a2c",36:"cd9960391bdc89961cf8",37:"8016d3ac07df8acaf73d",38:"b47a47139aff7916772e",39:"3f8eedf5c702b56e0cdf",40:"746b55942406ca95839c",41:"d78ec401ec32765990b9",42:"369be84226d0cc93dbe5",43:"0aee10370c42e21e3e22",44:"7551d839084cf2a421ea",45:"ac1ff54b32307e685b9c",46:"e6f423ebf4226dde651c",47:"dbc0fd458f7c7b8e1aec",48:"1445c7854ea4a5c457d9",49:"cd83d27020ca5d8278b5",50:"32fb6cb43801e6a80082",51:"785653c63d27cffad313",52:"9eae6e8918eb55593535",53:"691b37ea66a7d1045f01",54:"6fcfa7c3e0c269d06e47",55:"d9617fb11eb15186b28e",56:"b89876f59d4e4966e655",57:"281970fcbb06c8d23158",58:"3f72f09028b158b7f7ac",59:"97c0928ecf7d700fac50",60:"4f9030e3af3934cbac98",61:"ce5cc85910d90395ac98",62:"bc0ef8af781d2f3dccf4",63:"381d21d79f828f5fddaf",64:"8b5fc1c8c05aa1919bc1",65:"a571e51a93be459cb498",66:"300208375cdaa5f37ae1",67:"d15b34d21a04863a7254",68:"bad812977f20be800fbd",69:"043a9ff888724ef485e5",70:"9ffcb72c8aefa5c915ca",71:"a38c486f70c59aa0a9a9",72:"1431b2e1d9e1729c7db1",73:"34ecad0968f6bfde9506",74:"b59dd56e7fc8a428c6ff",75:"dfa5e44e866b0ede9d07",76:"bb2c379aaf0457df7d9d",77:"a7085591a8256fc5abef",78:"e0c61a4d30aa1232772c",81:"b70a353b3c794793e525"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=a[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),f},d.m=e,d.c=f,d.d=function(e,c,f){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:f})},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={82: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:"1fea5797850d693a9c21",1:"fe9dec1f31b04053fd7e",2:"b31856e6a091b3fba584",3:"b7e6d57d97174b75b050",4:"11254d7e3a102121b8ec",5:"8cb2253bec2fe1b1350c",6:"124ad8222f7b043b44ae",7:"ebad93a8c5bffffd9e98",8:"f1c9fb5c9212483138d8",9:"b5aae16b3951516573ad",10:"ebbed2d956a1376f014a",11:"59c7813cc972f62b1d18",12:"6ef9d18a1d3b8e72f4a6",13:"c2a8c3f846f25822ca33",14:"354e10af70665365afca",15:"0b0d85c57e5b2968a45e",16:"2ee1cd09e02cae2867cf",17:"78c6d10043e3245cbd2a",18:"ac84911777adc84db747",19:"d857e84723b588b3f07f",20:"641f715dd76416608684",21:"1aa6bc5390d968d5982f",22:"f08c872fb1b9438d09ff",23:"9efbbc6dd315a676ce09",24:"6cacb2ce8b746af3e668",25:"4f9db49437ea94436d03",26:"e84283c3a6efdbdd121d",27:"f9eb8425e9bc9c62cc23",28:"140ad99228544036c969",29:"8dbb56ba55a9a1a39b4a",30:"6e2da48a6aaee90e7b58",31:"d81ddf1fefcc1d3a47a7",32:"703e6cead57d8645a1e8",33:"a005885d35e6836f2cff",34:"c2b31f09ecae60447e9c",35:"6eb8644b657d22563a2c",36:"cd9960391bdc89961cf8",37:"8016d3ac07df8acaf73d",38:"b47a47139aff7916772e",39:"3f8eedf5c702b56e0cdf",40:"746b55942406ca95839c",41:"d78ec401ec32765990b9",42:"369be84226d0cc93dbe5",43:"0aee10370c42e21e3e22",44:"7551d839084cf2a421ea",45:"ac1ff54b32307e685b9c",46:"e6f423ebf4226dde651c",47:"dbc0fd458f7c7b8e1aec",48:"1445c7854ea4a5c457d9",49:"cd83d27020ca5d8278b5",50:"32fb6cb43801e6a80082",51:"785653c63d27cffad313",52:"9eae6e8918eb55593535",53:"691b37ea66a7d1045f01",54:"6fcfa7c3e0c269d06e47",55:"d9617fb11eb15186b28e",56:"b89876f59d4e4966e655",57:"281970fcbb06c8d23158",58:"3f72f09028b158b7f7ac",59:"97c0928ecf7d700fac50",60:"4f9030e3af3934cbac98",61:"ce5cc85910d90395ac98",62:"bc0ef8af781d2f3dccf4",63:"381d21d79f828f5fddaf",64:"8b5fc1c8c05aa1919bc1",65:"a571e51a93be459cb498",66:"300208375cdaa5f37ae1",67:"d15b34d21a04863a7254",68:"bad812977f20be800fbd",69:"043a9ff888724ef485e5",70:"9ffcb72c8aefa5c915ca",71:"a38c486f70c59aa0a9a9",72:"1431b2e1d9e1729c7db1",73:"34ecad0968f6bfde9506",74:"b59dd56e7fc8a428c6ff",75:"dfa5e44e866b0ede9d07",76:"bb2c379aaf0457df7d9d",77:"a7085591a8256fc5abef",78:"e0c61a4d30aa1232772c",81:"be325ddaae712f760e1a"}[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: 2019-03-20 14:36:37 * @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2019-10-17 17:37:55 * @LastEditTime: 2019-10-21 14:04:16
--> -->
<!-- <!--
...@@ -51,6 +51,10 @@ ...@@ -51,6 +51,10 @@
<el-checkbox v-model="myCustomData.allowGuideMessage" @change="changeContact">短信</el-checkbox> <el-checkbox v-model="myCustomData.allowGuideMessage" @change="changeContact">短信</el-checkbox>
<el-checkbox v-model="myCustomData.allowGuideOnlineChat" @change="changeContact">消息</el-checkbox> <el-checkbox v-model="myCustomData.allowGuideOnlineChat" @change="changeContact">消息</el-checkbox>
</div> </div>
<div class="m-b-20">
<el-checkbox class="w-195" v-model="myCustomData.openCardStoreFlag">展示已认证会员</el-checkbox>
<span class="font-14 color-909399">注:保存勾选项后,门店导购和店长可查看本门店已认证会员</span>
</div>
<div class="m-t-46"> <div class="m-t-46">
<el-button type="primary" @click="submit('showFlag')">保 存</el-button> <el-button type="primary" @click="submit('showFlag')">保 存</el-button>
</div> </div>
......
<!--
* @Descripttion: 当前组件信息
* @version: 1.0.0
* @Author: 无尘
* @Date: 2019-10-21 14:27:29
* @LastEditors: 无尘
* @LastEditTime: 2019-10-21 15:25:02
-->
<!--
<review-result-detail
:detailShow="detailShow"
@hideRecordDialog="hideRecordDialog">
</review-result-detail>
import reviewResultDetail from '@/components/review/review-result-detail.vue'
-->
<template>
<div v-show="customDialog">
<el-dialog class="edit-dialog" title="审核详情" :visible.sync="customDialog" width="600px" :before-close="handleClose">
<div class="edit-dialog-body">
<el-table :data="tableData" style="width: 100%">
<el-table-column prop="publishRecordId" label="审核事项" show-overflow-tooltip> </el-table-column>
<el-table-column label="品牌" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.remark }}
</template>
</el-table-column>
<el-table-column label="提交人" show-overflow-tooltip>
<template slot-scope="scope">
<div class="flex">
<div class="flex flex-align-center flex-pack-center bg-82C5FF table-head-pic">
<i v-if="!scope.row.headPic" class="iconfont icon-yewuduanmorentouxian"></i>
<img v-else :src="scope.row.headPic" alt="img" />
</div>
<div class="flex flex-column apply-info">
<span>{{ scope.row.applyName }}</span>
<span class="font-13">{{ scope.row.storeName }}</span>
</div>
</div>
</template>
</el-table-column>
<el-table-column label="提交时间" show-overflow-tooltip>
<template slot-scope="scope">
<div class="color-606266 line-18">{{ scope.row.publishTime | timeStampToYmd }}</div>
<div class="color-606266 line-18">{{ scope.row.publishTime | timeStampToHms }}</div>
</template>
</el-table-column>
<el-table-column label="审核结果" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.remark }}
</template>
</el-table-column>
</el-table>
<div class="pagination text-right m-t-14" v-if="!!totalCount">
<el-pagination small :page-size="pageSize" :current-page="currentPage" layout="prev, pager, next" :total="totalCount" @size-change="handleSizeChange" @current-change="handleCurrentChange"> </el-pagination>
</div>
</div>
</el-dialog>
</div>
</template>
<script>
import { getRequest } from '@/api/api';
import errMsg from '@/common/js/error';
export default {
name: 'record-list',
props: {
detailShow: {
type: Boolean,
default: false
}
},
data() {
return {
customDialog: false, // 弹框显示
tableData: [
/* {
interfaceVersionId: '1',
version: '测试',
remark: '描述内容',
createTime: 1564455643252
} */
],
pageSize: 5,
currentPage: 1,
totalCount: 0
};
},
methods: {
/**
* 关闭
*/
handleClose(done) {
const that = this;
done();
that.hideDialog();
},
/**
* 取消
*/
customCancel() {
const that = this;
that.hideDialog();
},
hideDialog() {
const that = this;
that.customDialog = false;
that.$emit('hideDetailDialog');
},
/**
* 分页
*/
handleSizeChange(val) {
this.pageSize = val;
this.getData();
},
handleCurrentChange(val) {
this.currentPage = val;
this.getData();
},
/**
* 查看定义详情页
*/
handleShow(index, row) {
const that = this;
that.$router.push(`/apiListManageShow?editFlag=0&interfaceId=${row.interfaceId}&interfaceName=${row.interfaceName}&interfaceVersionId=${row.interfaceVersionId}&publishRecordId=${row.publishRecordId}&projectId=${row.projectId}&projectName=${that.$route.query.projectName}&interfaceGroupId=${row.interfaceGroupId}&interfaceGroupName=${that.$route.query.interfaceGroupName}`);
},
/**
* 获取数据
*/
getData() {
const that = this;
let para = {
pageNum: that.currentPage,
pageSize: that.pageSize,
version: that.formData.version,
sceneCode: that.formData.sceneCode,
interfaceId: that.formData.interfaceId
};
getRequest('/gateway-manage/page-api-publish-record', para)
.then(res => {
let resData = res.data;
if (resData.code == '0000') {
that.tableData = resData.result.result || [];
that.totalCount = resData.result.totalCount;
return;
}
errMsg.errorMsg(resData);
})
.catch(function(error) {
that.$message.error({
duration: 1000,
message: error.message
});
});
}
},
watch: {
detailShow: function(newData, oldData) {
const that = this;
that.customDialog = newData;
}
},
/* 接收数据 */
mounted() {
const that = this;
that.customDialog = that.publishShow;
}
};
</script>
<style lang="less" scoped>
.bg-82C5FF {
background: #82c5ff;
}
.edit-dialog {
/deep/ .el-dialog__body {
padding: 25px 20px 17px 20px;
min-height: 352px;
}
/deep/ .el-dialog__footer {
border: none;
padding-top: 3px;
}
&__title {
width: 100%;
height: 38px;
padding: 12px 15px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
background: rgba(235, 238, 245, 1);
}
.el-alert--info {
width: 400px;
font-size: 14px;
color: #606266;
background: #e6f7ff;
border: 1px solid rgba(145, 213, 255, 1);
}
.el-icon-info {
width: 12px;
font-size: 12px;
color: #1890ff;
}
.el-form {
margin-top: 40px;
}
}
</style>
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-06-11 17:29:53 * @Date: 2019-06-11 17:29:53
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2019-10-17 17:28:06 * @LastEditTime: 2019-10-18 10:36:44
--> -->
<!-- <!--
备注:由于使用拖拽上传图片,超过限制的图片不上传不显示,暂时修改了源码的的方法,增加了一个判断, 备注:由于使用拖拽上传图片,超过限制的图片不上传不显示,暂时修改了源码的的方法,增加了一个判断,
...@@ -114,8 +114,8 @@ export default { ...@@ -114,8 +114,8 @@ export default {
this.handleImgUpload(blobInfo, success, failure); this.handleImgUpload(blobInfo, success, failure);
}, },
// 添加插件 // 添加插件
plugins: 'preview link image colorpicker textcolor paste ', // paste media plugins: 'preview link image colorpicker textcolor paste media ', // paste media
toolbar: 'bold italic underline strikethrough | fontsizeselect | forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist | outdent indent blockquote | undo redo | link unlink image code | removeformat | preview', toolbar: 'bold italic underline strikethrough | fontsizeselect | forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist | outdent indent blockquote | undo redo | link unlink image code media | removeformat | preview',
branding: false, branding: false,
paste_data_images: true, paste_data_images: true,
paste_image_maxsize: 5, paste_image_maxsize: 5,
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2018-12-13 19:18:26 * @Date: 2018-12-13 19:18:26
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2018-12-13 19:18:26 * @LastEditTime: 2019-10-21 15:41:04
--> -->
<template> <template>
<div class="common-set-wrap" :style="{ height: windowH }"> <div class="common-set-wrap" :style="{ height: windowH }">
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
</ul> </ul>
</el-form-item> </el-form-item>
<el-form-item label="部门排序调整" prop="chainName"> <el-form-item label="部门排序调整" prop="chainName">
<el-input :disabled="disabled" v-model="departInfo.chainName" @focus="callGroupSelector" suffix-icon="el-icon-arrow-down"></el-input> <el-input :disabled="disabled" readonly v-model="departInfo.chainName" @focus="callGroupSelector" suffix-icon="el-icon-arrow-down"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
...@@ -388,7 +388,9 @@ export default { ...@@ -388,7 +388,9 @@ export default {
that.departInfo = { that.departInfo = {
name: '', name: '',
parentName: '', parentName: '',
parentId: '' chainName: '',
parentId: '',
managerClerkList: []
}; };
that.disabled = true; that.disabled = true;
that.getGroupData(); that.getGroupData();
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-02-25 17:24:09 * @Date: 2019-02-25 17:24:09
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2019-09-25 17:03:56 * @LastEditTime: 2019-10-21 14:12:05
--> -->
<template> <template>
<div class="apps-wrap common-set-wrap"> <div class="apps-wrap common-set-wrap">
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</div> </div>
<div v-if="item.appUrl" class="app-detail-txt font-12 color-1890ff"><span>详情</span><i class="el-icon-arrow-right"></i></div>
</li> </li>
</ul> </ul>
</div> </div>
...@@ -285,6 +286,11 @@ export default { ...@@ -285,6 +286,11 @@ export default {
top: 10px; top: 10px;
right: 10px; right: 10px;
} }
.app-detail-txt {
position: absolute;
bottom: 10px;
right: 10px;
}
.app-cell-dropdown { .app-cell-dropdown {
.el-dropdown-menu__item { .el-dropdown-menu__item {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-04-12 17:56:45 * @Date: 2019-04-12 17:56:45
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2019-09-25 17:05:36 * @LastEditTime: 2019-10-21 15:16:56
--> -->
<template> <template>
<div class="notice-list-wrap"> <div class="notice-list-wrap">
...@@ -76,7 +76,8 @@ ...@@ -76,7 +76,8 @@
<el-table-column prop="opr" label="操作"> <el-table-column prop="opr" label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button @click="toSetTop(scope.row.announcementId, scope.row.pageTop)" type="text">{{ scope.row.pageTop == 1 ? '取消置顶' : '置顶' }}</el-button> <el-button @click="toSetTop(scope.row.announcementId, scope.row.pageTop)" type="text">{{ scope.row.pageTop == 1 ? '取消置顶' : '置顶' }}</el-button>
<el-button @click="handlePreview(scope.row.announcementId)" type="text">预览</el-button> <el-button @click="handleShow(scope.row.announcementId)" type="text">查看</el-button>
<!-- <el-button @click="handlePreview(scope.row.announcementId)" type="text">预览</el-button> -->
<el-button @click="delNotice(scope.row.announcementId, scope.$index)" type="text">删除</el-button> <el-button @click="delNotice(scope.row.announcementId, scope.$index)" type="text">删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
...@@ -695,6 +696,10 @@ export default { ...@@ -695,6 +696,10 @@ export default {
this.$refs.qrcodePreview.qrcode(id, 'announcement'); this.$refs.qrcodePreview.qrcode(id, 'announcement');
this.dialogVisible = true; this.dialogVisible = true;
}, },
// 查看
handleShow(id) {
const that = this;
},
// 新建公告 // 新建公告
addNotice() { addNotice() {
this.$router.push(`/addNotice?appIcon=${this.$route.query.appIcon}`); this.$router.push(`/addNotice?appIcon=${this.$route.query.appIcon}`);
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2018-10-10 14:44:45 * @Date: 2018-10-10 14:44:45
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2019-10-08 11:43:31 * @LastEditTime: 2019-10-21 14:22:44
--> -->
<template> <template>
<div class="reviewed-wrap common-set-wrap"> <div class="reviewed-wrap common-set-wrap">
...@@ -90,6 +90,12 @@ ...@@ -90,6 +90,12 @@
<div class="line-h-18">{{ scope.row.createTime | formatTimeHMS }}</div> <div class="line-h-18">{{ scope.row.createTime | formatTimeHMS }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="审核时间" show-overflow-tooltip>
<template slot-scope="scope">
<div class="line-h-18">{{ scope.row.createTime | formatTimeYMD }}</div>
<div class="line-h-18">{{ scope.row.createTime | formatTimeHMS }}</div>
</template>
</el-table-column>
<el-table-column label="状态"> <el-table-column label="状态">
<template slot-scope="scope"> <template slot-scope="scope">
<span :class="[scope.row.auditingStatus == 2 ? 'color-FF585C' : '']">{{ scope.row.auditingStatus == 1 ? '超级管理员已同意' : '超级管理员已拒绝' }}</span> <span :class="[scope.row.auditingStatus == 2 ? 'color-FF585C' : '']">{{ scope.row.auditingStatus == 1 ? '超级管理员已同意' : '超级管理员已拒绝' }}</span>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2018-10-10 14:44:45 * @Date: 2018-10-10 14:44:45
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2019-10-08 11:44:00 * @LastEditTime: 2019-10-21 15:15:32
--> -->
<template> <template>
<div class="unreview-wrap common-set-wrap"> <div class="unreview-wrap common-set-wrap">
...@@ -136,11 +136,13 @@ ...@@ -136,11 +136,13 @@
<el-button type="primary" @click="sendRefuse('ruleForm')">确 定</el-button> <el-button type="primary" @click="sendRefuse('ruleForm')">确 定</el-button>
</div> </div>
</el-dialog> </el-dialog>
<review-result-detail :detailShow="detailShow" @hideDetailDialog="hideDetailDialog"> </review-result-detail>
</div> </div>
</template> </template>
<script> <script>
import navCrumb from '@/components/nav/nav.vue'; import navCrumb from '@/components/nav/nav.vue';
import storeChange from '@/components/review/store-change.vue'; import storeChange from '@/components/review/store-change.vue';
import reviewResultDetail from '@/components/review/review-result-detail.vue';
import showMsg from '@/common/js/showmsg'; import showMsg from '@/common/js/showmsg';
import errMsg from '@/common/js/error'; import errMsg from '@/common/js/error';
import { formatDate, _debounce } from '@/common/js/public'; import { formatDate, _debounce } from '@/common/js/public';
...@@ -231,7 +233,9 @@ export default { ...@@ -231,7 +233,9 @@ export default {
}, },
approveVisible: false, approveVisible: false,
refuseVisible: false refuseVisible: false,
detailShow: false
}; };
}, },
filters: { filters: {
...@@ -249,6 +253,14 @@ export default { ...@@ -249,6 +253,14 @@ export default {
computed: {}, computed: {},
methods: { methods: {
/** /**
* 关闭详情
*
*/
hideDetailDialog() {
const that = this;
that.detailShow = true;
},
/**
* 表格---多选 * 表格---多选
*/ */
handleSelectionChange(val) { handleSelectionChange(val) {
...@@ -494,7 +506,8 @@ export default { ...@@ -494,7 +506,8 @@ export default {
}, },
components: { components: {
navCrumb, navCrumb,
storeChange storeChange,
reviewResultDetail
} }
}; };
</script> </script>
......
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