Commit bde3d889 by 无尘

fix: 修改排班

parent f5fc1af5
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.147434c827e0853f622163e4c742467a.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.5321fc310cc83b5b37d0.js></script><script type=text/javascript src=./static/js/vendor.0000e68e65e4a9dc3840.js></script><script type=text/javascript src=./static/js/app.19521561d68849b946a7.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.3a8fc819dc579d268a0ef05f44d706a5.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.f6e549aeae6e504047d5.js></script><script type=text/javascript src=./static/js/vendor.0000e68e65e4a9dc3840.js></script><script type=text/javascript src=./static/js/app.f67ca049ebc128688c20.js></script></body></html>
\ No newline at end of file \ No newline at end of file
webpackJsonp([39],{"8knc":function(e,t){},gncU:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("Ke24"),n=a("mvHQ"),o=a.n(n),r=a("P9l9"),s=a("3E4D"),c=a("Ch4/"),l={name:"custom-dialog",props:{showDayDialog:{type:Boolean,default:!1},customType:{type:String,default:""},customTitle:{type:String,default:"自定义列表字段"}},data:function(){return{repProjectName:"haoban-manage-web",enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId,userId:JSON.parse(localStorage.getItem("userInfo")).userId,customDialog:!1,customData:[{categoryCode:1,categoryName:"基本信息",fieldList:[{relateId:"",fieldId:"1",fieldName:"姓名",selectFlag:!1,editFlag:!1}]}]}},beforeMount:function(){},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("customHandleConfirm")},customConfirm:function(){if(!this.checkList.length)return this.$message.error({duration:1e3,message:"请选择操作"}),!1;this.setData(this.checkList)},customChange:function(e){},setFieldList:function(){var e=this,t=[];resData.result.forEach(function(e){e.fieldList.forEach(function(e){t.push({relatedId:e.relatedId,statusFlag:e.statusFlag?1:0})})});var a={fieldJson:o()(t),enterpriseId:e.enterpriseId,showType:1,userId:e.userId};Object(r.e)("/haoban-app-attence-web/attence-show-field-list",a).then(function(e){var t=e.data;1!=t.errorCode?c.a.errorMsg(t):s.a.showmsg("报表有新的设置项,点击按钮更新报表内容","success")}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getFieldList:function(){var e=this,t={enterpriseId:e.enterpriseId,userId:e.userId,showType:1};Object(r.e)("/haoban-app-attence-web/attence-show-field-list",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.forEach(function(e){e.fieldList&&e.fieldList.forEach(function(e){e.selectFlag,e.editFlag})}),void(e.customData=a.result);c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{showDayDialog:function(e,t){this.customDialog=e,this.getFieldList()},customType:function(e,t){e&&this.getCardList()}},mounted:function(){this.customDialog=this.showDayDialog}},d={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:e.customTitle,visible:e.customDialog,width:"761px","before-close":e.handleCardClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"custom-dialog__checkbox"},[a("el-form",{ref:"form",attrs:{"label-width":"110px"}},e._l(e.customData.fieldList,function(t,i){return a("el-form-item",{key:i+"cate",attrs:{label:t.categoryName}},[t.fieldList&&t.fieldList.length?e._l(t.fieldList,function(t){return a("el-checkbox",{key:t.fieldId,attrs:{name:"type"},model:{value:t.selectFlag,callback:function(a){e.$set(t,"selectFlag",a)},expression:"item.selectFlag"}},[e._v(e._s(t.fieldName))])}):e._e()],2)}))],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.customCancel}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.customConfirm}},[e._v("确 定")])],1)])],1)},staticRenderFns:[]};var u=a("VU/8")(l,d,!1,function(e){a("8knc")},"data-v-18005eae",null).exports,h=a("PI0u"),p={name:"app-detail",components:{commonDetailTop:i.a,dayFieldSelect:u},props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){var e=this;return{projectName:"",activeBrand:this.brandId,activeGroup:this.activeGroupId,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId,userId:JSON.parse(localStorage.getItem("userInfo")).userId,activeId:"1",topMenuData:[{id:"1",name:"每日统计"}],conditionObj:{attenceGroupName:"",choiceDate:""},tableHeader:[],tableData:[],currentPage:1,pageSize:20,total:0,showDayDialog:!1,choiceDateCopy:[],pickerOptions:{onPick:function(t){var a=t.maxDate,i=t.minDate;e.choiceDateCopy=[i.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-2592e6,i=e.choiceDateCopy[0]+2592e6;return t.getTime()<a||t.getTime()>i||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}}}},methods:{changeDate:function(e){e||(this.choiceDateCopy=[],this.conditionObj.choiceDate=[]),this.currentPage=1,this.getTableList()},toTableSet:function(){this.showDayDialog=!0},hideDayDialog:function(){this.showDayDialog=!1,this.currentPage=1,this.getTableList(this.brandId)},toInput:Object(h.a)(function(e,t){this.currentPage=1,this.getTableList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getTableList(this.brandId)},changeCondition:function(){this.currentPage=1,this.getTableList(this.brandId)},getDayFields:function(e){var t=this,a={brandId:e||t.activeBrand,enterpriseId:t.enterpriseId,userId:t.userId,showType:1};Object(r.e)("/haoban-app-attence-web/attence-show-field-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableHeader=a.result||[],void t.getTableList();c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList(this.brandId)},handleCurrentChange:function(e){this.currentPage=e,this.getTableList(this.brandId)},toUpdateSet:function(){this.currentPage=1,this.getTableList(this.brandId)},getTableList:function(e){var t=this;t.conditionObj.choiceDate||(t.conditionObj.choiceDate=[]);var a={brandId:e||t.activeBrand,enterpriseId:t.enterpriseId,userName:t.conditionObj.attenceGroupName,startDate:t.conditionObj.choiceDate[0],endDate:t.conditionObj.choiceDate[1],pageNum:t.currentPage,pageSize:t.pageSize};Object(r.e)("/haoban-app-attence-web/attence-total-day",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tabletData=a.result||[],void(t.total=a.result.total);c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e)},activeGroupId:function(e,t){e&&(this.activeGroup=e)},tabType:function(e,t){}},mounted:function(){this.$emit("showTab","11"),this.brandId&&1!=this.brandId&&(this.activeBrand=this.brandId),this.getDayFields(this.brandId)}},g={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"app-detail-pane border-box p-20"},[a("div",{staticClass:"m-b-20"},[a("div",{staticClass:"switch-wrap"},[a("div",{staticClass:"flex flex-space-between"},[a("div",{staticClass:"flex"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入考勤组/人员名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.attenceGroupName);var a}},model:{value:e.conditionObj.attenceGroupName,callback:function(t){e.$set(e.conditionObj,"attenceGroupName",t)},expression:"conditionObj.attenceGroupName"}}),e._v(" "),a("el-date-picker",{staticClass:"search-date m-l-10",attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",editable:!1,"picker-options":e.pickerOptions,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.conditionObj.choiceDate,callback:function(t){e.$set(e.conditionObj,"choiceDate",t)},expression:"conditionObj.choiceDate"}})],1),e._v(" "),a("div",[a("el-button",{attrs:{type:"primary"},on:{click:e.toTableSet}},[e._v("设置报表")]),a("el-button",{staticClass:"p-l-10",attrs:{type:"primary"},on:{click:e.toUpdateSet}},[e._v("更新报表")])],1)])])]),e._v(" "),a("div",[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"}},e._l(e.tableHeader,function(t,i){return a("el-table-column",{key:i+"cate",attrs:{fixed:"基本信息"==t.categoryName,label:t.categoryName}},e._l(t.fieldList,function(e,t){return a("el-table-column",{key:t+"field",attrs:{label:e.fieldName,prop:e.relateId}})}))})),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])],1),e._v(" "),a("day-field-select",{attrs:{showDayDialog:e.showDayDialog},on:{hideDayDialog:e.hideDayDialog}})],1)},staticRenderFns:[]};var f=a("VU/8")(p,g,!1,function(e){a("t8jc")},"data-v-266e4819",null);t.default=f.exports},t8jc:function(e,t){}});
\ No newline at end of file
webpackJsonp([40],{ATGA:function(e,t){},gncU:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("Ke24"),n=a("mvHQ"),o=a.n(n),r=a("P9l9"),s=a("3E4D"),c=a("Ch4/"),l={name:"custom-dialog",props:{showDayDialog:{type:Boolean,default:!1},customType:{type:String,default:""},customTitle:{type:String,default:"自定义列表字段"}},data:function(){return{repProjectName:"haoban-manage-web",enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId,userId:JSON.parse(localStorage.getItem("userInfo")).userId,customDialog:!1,customData:[]}},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("hideDayDialog")},customConfirm:function(){this.setFieldList()},setFieldList:function(){var e=this,t=[];e.customData.forEach(function(e){e.fieldList.forEach(function(e){t.push({relatedId:e.relatedId,statusFlag:e.statusFlag?1:0})})});var a={fieldJson:o()(t),enterpriseId:e.enterpriseId,showType:1,userId:e.userId};Object(r.e)("/haoban-app-attence-web/attence-field-save",a).then(function(t){var a=t.data;if(1==a.errorCode)return s.a.showmsg("报表有新的设置项,点击按钮更新报表内容","success"),void e.$emit("hideDayDialog");c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getFieldList:function(){var e=this,t={enterpriseId:e.enterpriseId,userId:e.userId,showType:1};Object(r.e)("/haoban-app-attence-web/attence-show-field-list",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.forEach(function(e){e.fieldList&&e.fieldList.forEach(function(e){e.selectFlag,e.editFlag})}),void(e.customData=a.result);c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{showDayDialog:function(e,t){this.customDialog=e,this.getFieldList()},customType:function(e,t){e&&this.getCardList()}},mounted:function(){this.customDialog=this.showDayDialog,this.getFieldList()}},d={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:e.customTitle,visible:e.customDialog,width:"761px","before-close":e.handleCardClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"custom-dialog__checkbox"},[a("el-form",{ref:"form",attrs:{"label-width":"110px"}},e._l(e.customData,function(t,i){return a("el-form-item",{key:i+"cate",attrs:{label:t.categoryName+":"}},[t.fieldList&&t.fieldList.length?e._l(t.fieldList,function(t){return a("el-checkbox",{key:t.fieldId,attrs:{name:"type"},model:{value:t.selectFlag,callback:function(a){e.$set(t,"selectFlag",a)},expression:"item.selectFlag"}},[e._v(e._s(t.fieldName))])}):e._e()],2)}))],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.customCancel}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.customConfirm}},[e._v("确 定")])],1)])],1)},staticRenderFns:[]};var u=a("VU/8")(l,d,!1,function(e){a("ATGA")},"data-v-c0282aae",null).exports,h=a("PI0u"),p={name:"app-detail",components:{commonDetailTop:i.a,dayFieldSelect:u},props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){var e=this;return{projectName:"",activeBrand:this.brandId,activeGroup:this.activeGroupId,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId,userId:JSON.parse(localStorage.getItem("userInfo")).userId,activeId:"1",topMenuData:[{id:"1",name:"每日统计"}],conditionObj:{attenceGroupName:"",choiceDate:""},tableHeader:[],tableData:[],currentPage:1,pageSize:20,total:0,showDayDialog:!1,choiceDateCopy:[],pickerOptions:{onPick:function(t){var a=t.maxDate,i=t.minDate;e.choiceDateCopy=[i.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-2592e6,i=e.choiceDateCopy[0]+2592e6;return t.getTime()<a||t.getTime()>i||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}}}},methods:{changeDate:function(e){e||(this.choiceDateCopy=[],this.conditionObj.choiceDate=[]),this.currentPage=1,this.getTableList()},toTableSet:function(){this.showDayDialog=!0},hideDayDialog:function(){this.showDayDialog=!1},toInput:Object(h.a)(function(e,t){this.currentPage=1,this.getTableList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getTableList(this.brandId)},changeCondition:function(){this.currentPage=1,this.getTableList(this.brandId)},getDayFields:function(e){var t=this,a={brandId:e||t.activeBrand,enterpriseId:t.enterpriseId,userId:t.userId,showType:1};Object(r.e)("/haoban-app-attence-web/attence-show-field-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableHeader=a.result||[],void t.getTableList();c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList(this.brandId)},handleCurrentChange:function(e){this.currentPage=e,this.getTableList(this.brandId)},toUpdateSet:function(){this.currentPage=1,this.getTableList(this.brandId)},getTableList:function(e){var t=this;t.conditionObj.choiceDate||(t.conditionObj.choiceDate=[]);var a={brandId:e||t.activeBrand,enterpriseId:t.enterpriseId,userName:t.conditionObj.attenceGroupName,startDate:t.conditionObj.choiceDate[0],endDate:t.conditionObj.choiceDate[1],pageNum:t.currentPage,pageSize:t.pageSize};Object(r.e)("/haoban-app-attence-web/attence-total-day",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result||[],void(t.total=a.result.total);c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e)},activeGroupId:function(e,t){e&&(this.activeGroup=e)},tabType:function(e,t){}},mounted:function(){this.$emit("showTab","11"),this.brandId&&1!=this.brandId&&(this.activeBrand=this.brandId),this.getDayFields(this.brandId)}},g={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"app-detail-pane border-box p-20"},[a("div",{staticClass:"m-b-20"},[a("div",{staticClass:"switch-wrap"},[a("div",{staticClass:"flex flex-space-between"},[a("div",{staticClass:"flex"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入考勤组/人员名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.attenceGroupName);var a}},model:{value:e.conditionObj.attenceGroupName,callback:function(t){e.$set(e.conditionObj,"attenceGroupName",t)},expression:"conditionObj.attenceGroupName"}}),e._v(" "),a("el-date-picker",{staticClass:"search-date m-l-10",attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",editable:!1,"picker-options":e.pickerOptions,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.conditionObj.choiceDate,callback:function(t){e.$set(e.conditionObj,"choiceDate",t)},expression:"conditionObj.choiceDate"}})],1),e._v(" "),a("div",[a("el-button",{attrs:{type:"primary"},on:{click:e.toTableSet}},[e._v("设置报表")]),a("el-button",{staticClass:"p-l-10",attrs:{type:"primary"},on:{click:e.toUpdateSet}},[e._v("更新报表")])],1)])])]),e._v(" "),a("div",[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"}},e._l(e.tableHeader,function(t,i){return a("el-table-column",{key:i+"cate",attrs:{fixed:"基本信息"==t.categoryName,label:t.categoryName}},e._l(t.fieldList,function(e,t){return a("el-table-column",{key:t+"field",attrs:{label:e.fieldName,prop:e.relateId}})}))})),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])],1),e._v(" "),a("day-field-select",{attrs:{showDayDialog:e.showDayDialog},on:{hideDayDialog:e.hideDayDialog}})],1)},staticRenderFns:[]};var f=a("VU/8")(p,g,!1,function(e){a("khGC")},"data-v-04e21d8c",null);t.default=f.exports},khGC:function(e,t){}});
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,b,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(a,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var a={},f={103:0};function d(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,d){c=f[e]=[a,d]});c[2]=a;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"ab616832b6f6019a8690",1:"fe9dec1f31b04053fd7e",2:"54aabab28c7735d34c10",3:"b7e6d57d97174b75b050",4:"11254d7e3a102121b8ec",5:"b5e24a58d047a2ec70f5",6:"124ad8222f7b043b44ae",7:"ebad93a8c5bffffd9e98",8:"f1c9fb5c9212483138d8",9:"b5aae16b3951516573ad",10:"ebbed2d956a1376f014a",11:"59c7813cc972f62b1d18",12:"879536ae7ce46f0c54ec",13:"57e51fc1b6342003f25d",14:"dce1b92c12422c24e840",15:"0d4e89433a96db4935ef",16:"f483f95dbac654c7de5a",17:"ff6edf624b982c354977",18:"84c9fa629e0261d109eb",19:"d7d09ae4564d64842009",20:"455fd80bd8af15457c57",21:"c1b5e15e28768af52654",22:"2a873e819c6c369d5cd1",23:"d2380bf3c276e741313b",24:"56085041ae784faf3c32",25:"e23f42a6b2180b63c129",26:"606394f2e20eb1a455fa",27:"c3f7fb68797f235ad906",28:"5c93d8a260522a61d27e",29:"c5bb15e8e1bd17cdc0f7",30:"683f91df7ee55e3c6cb9",31:"5702fffe66c8d26a56ca",32:"fc2213c2b57da6c25ea2",33:"f4c48aa4b6adbdec738a",34:"e5ba3c1688f3038d3d09",35:"d8abf87eeb477b4bc1f3",36:"2cadbd4ded3457625f52",37:"8dc3e1f0f3e416135406",38:"9f4a46d2ce3c9477a06b",39:"56169d17ab7d67e4b129",40:"a79be724c9e18f8dd17d",41:"17121c9227dddf24b37d",42:"54f2f4850c109391114a",43:"fb46c0bad10552e7ef89",44:"3d32c7e1954754671303",45:"c0accd45711184d0044d",46:"785c8076b8d217da747e",47:"b477848570e876912bdb",48:"32a6d29de6b93cd9201c",49:"1a7182d9cdf2e08ff7f0",50:"4235ecfe09e1fc4e1ca4",51:"2f363aaad04264e9f159",52:"d56e883ddcbef7c6b221",53:"ec91f2b143d0b1e708b5",54:"31eed9c38748896262d1",55:"4f96191ae2c44c6f18f7",56:"99063bd3b07926595af4",57:"ba6530916d934b70d218",58:"2241679269f18e7f14c3",59:"5c336f6f4d119300c1d8",60:"d43c13d5c29feb45e864",61:"0806aac37bd2b86e8bc2",62:"8ef5c75f77376ecd8873",63:"bbe4da77ef31a0aa9150",64:"f26939887c305ec6f7fc",65:"069ccaf5f8e5b5f3c59d",66:"5f0382c9cb76b57ba778",67:"745b9621e5297c575b33",68:"aaaa125fb978b59c2cbf",69:"bb6a8bab41cac9f11bd4",70:"a226d330de7ebb2a4c5f",71:"9551ae81326c57064dec",72:"cb1b3985b92be4556fc1",73:"b6b1fb51b601c0fafcda",74:"6206c00744e77bc84fec",75:"93eb5a61daaa3a1df425",76:"78e5a422e9fecbbd255a",77:"b3f7cf4d2b54d306c522",78:"1fc3472c5f95a0a66979",79:"69811ba75d1fceae9737",80:"12442b543aff65f2c05d",81:"00a94b58ac2affb758dc",82:"1fa56152d6bdcfd4ec14",83:"976088a6ee120b8caa17",84:"45dae077c86a1a0050ff",85:"0c7635a15cceae31d981",86:"d0d0607a424156f2d88d",87:"aee44c25b8d252c44b6e",88:"6583c4b0dc7a8f908fa2",89:"8d513b9c9d7970a612c0",90:"57319965505945b3ae7e",91:"446342439ce97b19c84f",92:"09a5823b00d6180576b9",93:"e801fdd8bbd27a68d8ee",94:"c50da77d4e1d5a44b971",95:"04507f6fadd31b01a746",96:"d4a4beef007fa347bd93",97:"8b0f08b3974b32d7bc2a",98:"69c8efc82743796dc255",99:"58cc1884c4f80303999a",102:"2c7e1d628bd2f4ac709c"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),a},d.m=e,d.c=a,d.d=function(e,c,a){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]); !function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,b,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(a,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var a={},f={103:0};function d(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,d){c=f[e]=[a,d]});c[2]=a;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"ab616832b6f6019a8690",1:"fe9dec1f31b04053fd7e",2:"54aabab28c7735d34c10",3:"b7e6d57d97174b75b050",4:"11254d7e3a102121b8ec",5:"b5e24a58d047a2ec70f5",6:"124ad8222f7b043b44ae",7:"ebad93a8c5bffffd9e98",8:"f1c9fb5c9212483138d8",9:"b5aae16b3951516573ad",10:"ebbed2d956a1376f014a",11:"59c7813cc972f62b1d18",12:"879536ae7ce46f0c54ec",13:"57e51fc1b6342003f25d",14:"dce1b92c12422c24e840",15:"0d4e89433a96db4935ef",16:"f483f95dbac654c7de5a",17:"ff6edf624b982c354977",18:"84c9fa629e0261d109eb",19:"d7d09ae4564d64842009",20:"455fd80bd8af15457c57",21:"c1b5e15e28768af52654",22:"2a873e819c6c369d5cd1",23:"d2380bf3c276e741313b",24:"56085041ae784faf3c32",25:"e23f42a6b2180b63c129",26:"606394f2e20eb1a455fa",27:"c3f7fb68797f235ad906",28:"5c93d8a260522a61d27e",29:"c5bb15e8e1bd17cdc0f7",30:"683f91df7ee55e3c6cb9",31:"5d5e618d2ceadec7e8cb",32:"fc2213c2b57da6c25ea2",33:"f4c48aa4b6adbdec738a",34:"e5ba3c1688f3038d3d09",35:"d8abf87eeb477b4bc1f3",36:"2cadbd4ded3457625f52",37:"8dc3e1f0f3e416135406",38:"9f4a46d2ce3c9477a06b",39:"b33ea830129fb895dd77",40:"6a72d08fe0ffa0a16cf6",41:"17121c9227dddf24b37d",42:"54f2f4850c109391114a",43:"fb46c0bad10552e7ef89",44:"3d32c7e1954754671303",45:"c0accd45711184d0044d",46:"785c8076b8d217da747e",47:"b477848570e876912bdb",48:"32a6d29de6b93cd9201c",49:"1a7182d9cdf2e08ff7f0",50:"4235ecfe09e1fc4e1ca4",51:"2f363aaad04264e9f159",52:"d56e883ddcbef7c6b221",53:"ec91f2b143d0b1e708b5",54:"31eed9c38748896262d1",55:"4f96191ae2c44c6f18f7",56:"99063bd3b07926595af4",57:"ba6530916d934b70d218",58:"2241679269f18e7f14c3",59:"5c336f6f4d119300c1d8",60:"d43c13d5c29feb45e864",61:"0806aac37bd2b86e8bc2",62:"8ef5c75f77376ecd8873",63:"bbe4da77ef31a0aa9150",64:"f26939887c305ec6f7fc",65:"069ccaf5f8e5b5f3c59d",66:"5f0382c9cb76b57ba778",67:"745b9621e5297c575b33",68:"aaaa125fb978b59c2cbf",69:"bb6a8bab41cac9f11bd4",70:"a226d330de7ebb2a4c5f",71:"9551ae81326c57064dec",72:"cb1b3985b92be4556fc1",73:"b6b1fb51b601c0fafcda",74:"6206c00744e77bc84fec",75:"93eb5a61daaa3a1df425",76:"78e5a422e9fecbbd255a",77:"b3f7cf4d2b54d306c522",78:"1fc3472c5f95a0a66979",79:"69811ba75d1fceae9737",80:"12442b543aff65f2c05d",81:"00a94b58ac2affb758dc",82:"1fa56152d6bdcfd4ec14",83:"976088a6ee120b8caa17",84:"45dae077c86a1a0050ff",85:"0c7635a15cceae31d981",86:"d0d0607a424156f2d88d",87:"aee44c25b8d252c44b6e",88:"6583c4b0dc7a8f908fa2",89:"8d513b9c9d7970a612c0",90:"57319965505945b3ae7e",91:"446342439ce97b19c84f",92:"09a5823b00d6180576b9",93:"e801fdd8bbd27a68d8ee",94:"c50da77d4e1d5a44b971",95:"04507f6fadd31b01a746",96:"d4a4beef007fa347bd93",97:"8b0f08b3974b32d7bc2a",98:"69c8efc82743796dc255",99:"58cc1884c4f80303999a",102:"2c7e1d628bd2f4ac709c"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),a},d.m=e,d.c=a,d.d=function(e,c,a){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file \ No newline at end of file
...@@ -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-12-23 10:43:52 * @LastEditTime : 2019-12-23 17:28:43
--> -->
<!-- <!--
...@@ -23,7 +23,7 @@ import dayFieldSelect from '@/components/app/dailyAttendance/day-field-select.vu ...@@ -23,7 +23,7 @@ import dayFieldSelect from '@/components/app/dailyAttendance/day-field-select.vu
<el-dialog :title="customTitle" :visible.sync="customDialog" width="761px" :before-close="handleCardClose"> <el-dialog :title="customTitle" :visible.sync="customDialog" width="761px" :before-close="handleCardClose">
<div class="custom-dialog__checkbox"> <div class="custom-dialog__checkbox">
<el-form ref="form" label-width="110px"> <el-form ref="form" label-width="110px">
<el-form-item v-for="(pItem, pIndex) in customData.fieldList" :label="pItem.categoryName" :key="pIndex + 'cate'"> <el-form-item v-for="(pItem, pIndex) in customData" :label="pItem.categoryName + ':'" :key="pIndex + 'cate'">
<template v-if="!!pItem.fieldList && !!pItem.fieldList.length"> <template v-if="!!pItem.fieldList && !!pItem.fieldList.length">
<el-checkbox v-for="item in pItem.fieldList" v-model="item.selectFlag" :key="item.fieldId" name="type">{{ item.fieldName }}</el-checkbox> <el-checkbox v-for="item in pItem.fieldList" v-model="item.selectFlag" :key="item.fieldId" name="type">{{ item.fieldName }}</el-checkbox>
</template> </template>
...@@ -65,7 +65,7 @@ export default { ...@@ -65,7 +65,7 @@ export default {
customDialog: false, // 弹框显示 customDialog: false, // 弹框显示
// 复选框数据 // 复选框数据
customData: [ customData: [
{ /* {
categoryCode: 1, categoryCode: 1,
categoryName: '基本信息', categoryName: '基本信息',
fieldList: [ fieldList: [
...@@ -77,12 +77,11 @@ export default { ...@@ -77,12 +77,11 @@ export default {
editFlag: false editFlag: false
} }
] ]
} } */
] ]
}; };
}, },
/* eslint-disable */ /* eslint-disable */
beforeMount() {},
methods: { methods: {
/** /**
* 关闭 * 关闭
...@@ -98,7 +97,7 @@ export default { ...@@ -98,7 +97,7 @@ export default {
customCancel() { customCancel() {
const that = this; const that = this;
that.customDialog = false; that.customDialog = false;
that.$emit('customHandleConfirm'); that.$emit('hideDayDialog');
}, },
/** /**
...@@ -106,31 +105,16 @@ export default { ...@@ -106,31 +105,16 @@ export default {
*/ */
customConfirm() { customConfirm() {
const that = this; const that = this;
if (!that.checkList.length) { that.setFieldList();
that.$message.error({
duration: 1000,
message: '请选择操作'
});
return false;
}
that.setData(that.checkList);
}, },
/** /**
* 复选框选择事件
*/
/* eslint-disable */
customChange(value) {
},
/**
* 设置字段 * 设置字段
*/ */
setFieldList() { setFieldList() {
const that = this; const that = this;
let fieldJson = [] let fieldJson = [];
resData.result.forEach(ele => { that.customData.forEach(ele => {
ele.fieldList.forEach(child => { ele.fieldList.forEach(child => {
fieldJson.push({ fieldJson.push({
relatedId: child.relatedId, relatedId: child.relatedId,
...@@ -144,11 +128,12 @@ export default { ...@@ -144,11 +128,12 @@ export default {
showType: 1, showType: 1,
userId: that.userId userId: that.userId
}; };
postRequest('/haoban-app-attence-web/attence-show-field-list', para) postRequest('/haoban-app-attence-web/attence-field-save', para)
.then(res => { .then(res => {
let resData = res.data; let resData = res.data;
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
showMsg.showmsg('报表有新的设置项,点击按钮更新报表内容', 'success'); showMsg.showmsg('报表有新的设置项,点击按钮更新报表内容', 'success');
that.$emit('hideDayDialog');
return; return;
} }
errMsg.errorMsg(resData); errMsg.errorMsg(resData);
...@@ -215,6 +200,7 @@ export default { ...@@ -215,6 +200,7 @@ export default {
mounted() { mounted() {
const that = this; const that = this;
that.customDialog = that.showDayDialog; that.customDialog = that.showDayDialog;
that.getFieldList();
} }
}; };
</script> </script>
...@@ -257,7 +243,7 @@ export default { ...@@ -257,7 +243,7 @@ export default {
.el-checkbox { .el-checkbox {
width: 22%; width: 22%;
margin-left: 16px; margin-left: 16px;
line-height: 62px; // line-height: 62px;
&.is-checked { &.is-checked {
/deep/ .el-checkbox__label { /deep/ .el-checkbox__label {
color: #1890ff; color: #1890ff;
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
<ul v-if="activeTab == 2"> <ul v-if="activeTab == 2">
<li> <li>
<div v-if="cycleData.length" class="day-item-title" title="从该天开始周期排班至月底">从该天开始周期排班至月底</div> <div v-if="cycleData.length" class="day-item-title" title="从该天开始周期排班至月底">从该天开始周期排班至月底</div>
<div v-else class="day-item-title" title="还没有排班周期">还没有排班周期</div> <div v-else class="day-item-title" title="还没有排班周期">还没有排班周期<br />请去后台考勤组规则里设置</div>
<ul> <ul>
<li v-if="cycleData.length" class="day-class-item p-lr-20" @click.stop="dayWeekSet"> <li v-if="cycleData.length" class="day-class-item p-lr-20" @click.stop="dayWeekSet">
<p class="class-item day-tag-blue">{{ cycleData[0].rangeName }} {{ cycleData[0].classesList.map(item => item.classesName).join('-') }}</p> <p class="class-item day-tag-blue">{{ cycleData[0].rangeName }} {{ cycleData[0].classesList.map(item => item.classesName).join('-') }}</p>
......
...@@ -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-12-23 11:06:45 * @LastEditTime : 2019-12-23 17:25:49
--> -->
<!-- <!--
...@@ -146,8 +146,6 @@ export default { ...@@ -146,8 +146,6 @@ export default {
hideDayDialog() { hideDayDialog() {
const that = this; const that = this;
that.showDayDialog = false; that.showDayDialog = false;
that.currentPage = 1;
that.getTableList(that.brandId);
}, },
/** /**
* 输入 * 输入
...@@ -246,7 +244,7 @@ export default { ...@@ -246,7 +244,7 @@ export default {
.then(res => { .then(res => {
let resData = res.data; let resData = res.data;
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
that.tabletData = resData.result || []; that.tableData = resData.result || [];
that.total = resData.result.total; that.total = resData.result.total;
return; return;
} }
......
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