提交 5b47cdc4 编写于 作者: 刘英杰's avatar 刘英杰

增加 添加值班姓名带出相关信息

上级 bc3a7291
流水线 #22917 已通过 ,包含阶段
in 54 second
.iconScale[data-v-c706f3d8]:hover{color:#1e93ff}.iconScale[data-v-c706f3d8]:hover,.selectTitleIcon[data-v-c706f3d8]:hover{transform:scale(1.3);cursor:pointer}
\ No newline at end of file
.iconScale[data-v-90cb5854]:hover{color:#1e93ff}.iconScale[data-v-90cb5854]:hover,.selectTitleIcon[data-v-90cb5854]:hover{transform:scale(1.3);cursor:pointer}
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link rel="shortcut icon" href=favicon.ico><title>值班管理</title><link href=css/app.f8f860e0.css rel=stylesheet></head><body><script charset=utf-8 src="https://map.qq.com/api/gljs?v=1.exp&key=ZNMBZ-NYOEO-WNMWL-SJF4C-MWKQT-KJB7W"></script><script src=/a/manager/identify/identify.js></script><noscript><strong>请开启 JavaScript 功能来使用 党建管理系统。</strong></noscript><div id=app></div><script src=js/chunk-vendors.c0d93cbb.js></script><script src=js/app.6e67e46c.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link rel="shortcut icon" href=favicon.ico><title>值班管理</title><link href=css/app.f8f860e0.css rel=stylesheet></head><body><script charset=utf-8 src="https://map.qq.com/api/gljs?v=1.exp&key=ZNMBZ-NYOEO-WNMWL-SJF4C-MWKQT-KJB7W"></script><script src=/a/manager/identify/identify.js></script><noscript><strong>请开启 JavaScript 功能来使用 党建管理系统。</strong></noscript><div id=app></div><script src=js/chunk-vendors.c0d93cbb.js></script><script src=js/app.5d219dda.js></script></body></html>
\ No newline at end of file
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-00da7000"],{"5df3":function(t,e,n){"use strict";var i=n("02f4")(!0);n("01f9")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})}))},ae25:function(t,e,n){},c074:function(t,e,n){"use strict";n("ae25")},ebe1:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Card",{scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticStyle:{display:"flex","align-items":"center"}},[n("h3",[t._v("签到列表   ")]),t.selectFlag?t._e():n("div",{staticClass:"selectTitleIcon",staticStyle:{display:"flex","align-items":"center"},on:{click:function(e){t.selectFlag=!0}}},[n("span",[t._v("展开")]),n("Icon",{attrs:{size:25,type:"ios-arrow-dropright",color:"#2d8cf0"}})],1),t.selectFlag?n("div",{staticClass:"selectTitleIcon",staticStyle:{display:"flex","align-items":"center"},on:{click:function(e){t.selectFlag=!t.selectFlag}}},[n("span",[t._v("收起")]),n("Icon",{staticClass:"selectTitleIcon",attrs:{size:25,type:"ios-arrow-dropdown",color:"#2d8cf0"}})],1):t._e()]),n("transition",{attrs:{name:"move-up"}},[t.selectFlag?n("div",[n("Row",{staticStyle:{"margin-top":"15px"},attrs:{justify:"space-between",wrap:""}},t._l(t.selectList,(function(e,i){return n("Col",{key:i,attrs:{span:4.5}},[n("div",{staticStyle:{display:"flex","flex-wrap":"nowrap","align-items":"center"}},[n("span",{staticStyle:{"margin-right":"5px"}},[t._v(t._s(e[1]))]),n("Select",{key:i,staticStyle:{width:"10vw"},attrs:{clearable:""},model:{value:t.selectObject[e[2]],callback:function(n){t.$set(t.selectObject,e[2],n)},expression:"selectObject[item[2]]"}},t._l(e[0],(function(e,i){return n("Option",{key:i,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1)])})),1),n("Row",{staticStyle:{"margin-top":"10px"},attrs:{justify:"space-between",wrap:""}},[n("Col",{attrs:{span:4.5}},[n("div",{staticStyle:{display:"flex","justify-content":"center","align-items":"center"}},[n("span",[t._v("值班日期: ")]),n("DatePicker",{staticStyle:{width:"10vw"},attrs:{type:"daterange",placeholder:"请选择值班日期"},on:{"on-change":t.signDateSelect},model:{value:t.dutyDateX,callback:function(e){t.dutyDateX=e},expression:"dutyDateX"}})],1)]),n("Col",{attrs:{span:4.5,push:6}}),n("Col",{attrs:{span:4.5}})],1)],1):t._e()])]},proxy:!0},{key:"extra",fn:function(){return[n("ButtonGroup",[0!==t.signArray.length?n("Button",{attrs:{label:"dutyModelOutput",icon:"ios-list-box-outline"},on:{click:function(e){return t.batchSignInOrSignOut(1)}}},[t._v("批量签到\n ")]):t._e(),0!==t.signArray.length?n("Button",{attrs:{label:"dutyModelOutput",icon:"ios-list-box-outline"},on:{click:function(e){return t.batchSignInOrSignOut(2)}}},[t._v("批量签退\n ")]):t._e(),n("Button",{staticStyle:{"margin-right":"20px"},attrs:{label:"dutyModelOutput",icon:"ios-log-out"},on:{click:t.importSignData}},[t._v("\n 导出签到消息\n ")]),n("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center","margin-left":"20px"}},[n("Input",{staticStyle:{width:"15vw","margin-right":"20px"},attrs:{placeholder:"请输入名字或卡号"},model:{value:t.selectObject.key_name,callback:function(e){t.$set(t.selectObject,"key_name",e)},expression:"selectObject.key_name"}}),n("Button",{attrs:{type:"primary",icon:"ios-search"},on:{click:t.search}},[t._v("查询数据")])],1)],1)]},proxy:!0}])},[n("Table",{attrs:{columns:t.column,data:t.data,height:t.tableHeightCal,loading:t.loading},on:{"on-select":t.radioSelection,"on-select-cancel":t.cancelSelection,"on-select-all":t.allSelection,"on-select-all-cancel":t.cancelSelectionAll},scopedSlots:t._u([{key:"content",fn:function(e){var i=e.row;return[n("div",{staticStyle:{display:"flex","align-items":"center"}},[n("Ellipsis",{attrs:{text:i.content,length:10,tooltip:""}}),n("span",{on:{click:function(e){return t.logModalFun(i)}}},[n("Icon",{staticClass:"iconScale",attrs:{type:"ios-create",size:25}})],1)],1)]}},{key:"action",fn:function(e){var i=e.row;return[n("div",{staticStyle:{display:"flex","justify-content":"center"}},[2!==i.sign?n("Button",{staticStyle:{"margin-right":"10px"},attrs:{type:"success",disabled:Boolean(i.sign_set||0!==i.sign),size:"small",icon:"md-log-in"},on:{click:function(e){return t.signInOrSignOut(i,1)}}},[t._v("签\n ")]):t._e(),2!==i.sign?n("Button",{staticClass:"xiu",staticStyle:{display:"flex","justify-content":"space-between"},attrs:{disabled:Boolean(i.sign_set||1!==i.sign),type:"warning",size:"small"},on:{click:function(e){return t.signInOrSignOut(i,2)}}},[n("span",[t._v("退")]),n("Icon",{staticStyle:{"margin-left":"5px"},attrs:{type:"md-log-out"}})],1):t._e(),2===i.sign?n("Button",{attrs:{type:"success",disabled:Boolean(i.sign_set||0!==i.sign)},on:{click:function(e){return t.signInOrSignOut(i,1)}}},[t._v("\n 完成考勤\n "),n("Icon",{staticStyle:{"margin-left":"5px",color:"#23da6f"},attrs:{type:"md-checkmark-circle-outline"}})],1):t._e()],1)]}}])}),n("div",{staticStyle:{width:"100%",height:"70px",display:"flex","align-items":"center"}},[n("Page",{key:t.pageKey,attrs:{"show-total":"","show-sizer":"","show-elevator":"","page-size-opts":[100,200,500,1e3],total:t.total,"page-size":t.page_size,"model-value":"page_index"},on:{"on-change":t.currentPage,"on-page-size-change":t.currentPageCount}})],1)],1),n("Modal",{attrs:{title:"日志填写"},scopedSlots:t._u([{key:"footer",fn:function(){return[n("Button",{attrs:{type:"text"},on:{click:t.logCancel}},[t._v("取消")]),n("Button",{attrs:{type:"primary",loading:t.buttonLoding},on:{click:t.logOk}},[t._v("确定")])]},proxy:!0}]),model:{value:t.logModal,callback:function(e){t.logModal=e},expression:"logModal"}},[n("Form",{ref:"formValidate",attrs:{model:t.formValidate,rules:t.ruleValidate}},[n("FormItem",{attrs:{prop:"content"}},[n("Input",{attrs:{type:"textarea",autosize:{minRows:6,maxRows:6},placeholder:"请填写日志..."},model:{value:t.formValidate.content,callback:function(e){t.$set(t.formValidate,"content",e)},expression:"formValidate.content"}})],1)],1)],1),n("Modal",{attrs:{title:"导出签到信息",width:"40%"},scopedSlots:t._u([{key:"footer",fn:function(){return[n("Button",{attrs:{type:"text"},on:{click:t.signCancel}},[t._v("取消")]),n("Button",{attrs:{type:"primary",loading:t.buttonLoding},on:{click:t.signOk}},[t._v("确定")])]},proxy:!0}]),model:{value:t.importSignModel,callback:function(e){t.importSignModel=e},expression:"importSignModel"}},[n("Form",{ref:"signDataInput",attrs:{model:t.signyDataInputObject,rules:t.rulesSignDataInput,"label-width":80}},[n("FormItem",{attrs:{label:"名字或卡号",prop:"key_name"}},[n("Input",{attrs:{placeholder:"请输入名字或卡号"},model:{value:t.signyDataInputObject.key_name,callback:function(e){t.$set(t.signyDataInputObject,"key_name",e)},expression:"signyDataInputObject.key_name"}})],1),n("FormItem",{attrs:{label:"值班日期",prop:"watch_date"}},[n("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"daterange"},on:{"on-change":t.signDataInputDateSelect}})],1),t._l(t.addDutySlectList,(function(e,i){return n("FormItem",{key:i,attrs:{label:e[1],prop:e[2],"label-width":80}},[n("Select",{attrs:{placeholder:e[1]},model:{value:t.signyDataInputObject[e[2]],callback:function(n){t.$set(t.signyDataInputObject,e[2],n)},expression:"signyDataInputObject[item[2]]"}},t._l(e[0],(function(e,i){return n("Option",{key:i,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1)}))],2)],1)],1)},a=[],c=(n("5df3"),n("ac6a"),n("96cf"),n("1da1")),s=(n("a481"),n("967e")),r=n.n(s),o=n("5e9b"),l=(n("92c8"),n("806c")),u=n("5a0c"),d=n.n(u),h={components:{},data:function(){return{loading:!1,signArray:[],buttonLoding:!1,selectList:[],selectFlag:!1,signyDataInputObject:{watch_date:"",card_name:"",campusid:"",watch_hour_id:"",watchtypeid:"",dept_id:"",startTime:"",endTime:""},rulesSignDataInput:{key_name:[{type:"string",required:!0,message:"姓名或工号不能为空!",trigger:"blur"}],watch_date:[{type:"string",required:!0,message:"值班日期不能为空!",trigger:"change"}],campusid:[{type:"string",required:!0,message:"值班类型不能为空!",trigger:"change"}],watch_hour_id:[{type:"string",required:!0,message:"值班时段不能为空!",trigger:"change"}],watchtypeid:[{type:"string",required:!0,message:"值班校区不能为空!",trigger:"change"}],dept_id:[{type:"string",required:!0,message:"值班部门不能为空!",trigger:"change"}]},addDutySlectList:[],importSignModel:!1,ruleValidate:{content:[{type:"string",required:!0,message:"日志不能为空!",trigger:"blur"}]},formValidate:{content:""},logModal:!1,signFlag:!1,pageKey:1,selectObject:{dept_id:"",key_name:"",type_id:"",watchhour_time:"",campusid:"",watch_date:"",startTime:(new Date).toLocaleDateString("cn",{hour12:!1}).replace(/\//g,"-"),endTime:(new Date).toLocaleDateString("cn",{hour12:!1}).replace(/\//g,"-"),startTimeFlag:"",endTimeFlag:"",startTimeSearch:"",endTimeSearch:"",dep_idSearch:"",key_nameSearch:"",watchtypeidSearch:"",watch_hour_idSearch:"",campusidSearch:""},page_index:1,page_size:100,total:0,column:[{type:"selection",minWidth:60},{title:"值班日期",key:"watch_date",minWidth:120},{title:"姓名",key:"username",minWidth:120},{title:"工号",key:"card_name",minWidth:120},{title:"联系方式",key:"mobile",minWidth:120},{title:"值班类型",key:"watchtypename",minWidth:120},{title:"值班日志",slot:"content",minWidth:150},{title:"操作",slot:"action",align:"center",minWidth:120}],data:[],dutyDateX:[]}},computed:{tableHeightCal:function(){return document.documentElement.clientHeight-360}},watch:{selectObject:{deep:!0,handler:function(t,e){console.log("selectObject🚀🚀🚀,",t)}}},methods:{importSignData:function(){var t=Object(c["a"])(r.a.mark((function t(){var e,n;return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e={dep_id:this.selectObject.dept_idSearch,key_name:this.selectObject.key_nameSearch,start_time:""===this.selectObject.startTimeSearch?this.selectObject.startTime:this.selectObject.startTimeSearch,end_time:""===this.selectObject.endTimeSearch?this.selectObject.endTime:this.selectObject.endTimeSearch,type_id:this.selectObject.watchtypeidSearch,watchhour_time:this.selectObject.watch_hour_idSearch,campus_id:this.selectObject.campusidSearch},t.next=3,o["A"](e);case 3:n=t.sent,window.location.href=this.$ascURL+n.response;case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),batchSignInOrSignOut:function(t){var e=this;this.publicConfirm((function(){e.hooks.myEncapsulationFunction(Object(c["a"])(r.a.mark((function n(){var i,a;return r.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=[],"",e.signArray.forEach((function(e,n){i.push({signid:e.signid,sign:t})})),n.next=5,o["B"](i);case 5:return a=n.sent,e.GetSignRecordList(),n.abrupt("return",a);case 8:case"end":return n.stop()}}),n)}))))}))},cancelSelectionAll:function(t){this.signArray=t,console.log("🚀🚀🚀,",this.signArray,t)},cancelSelection:function(t){this.signArray=t,console.log("🚀🚀🚀,",this.signArray,t)},allSelection:function(t){this.signArray=t,console.log("🚀🚀🚀,",this.signArray,t)},radioSelection:function(t){this.signArray=t,console.log("🚀🚀🚀,",this.signArray,t)},signInOrSignOut:function(t,e){var n=this;console.log("🚀🚀🚀,",t),this.publicConfirm((function(){l["myEncapsulationFunction"](Object(c["a"])(r.a.mark((function i(){var a,c;return r.a.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return a=[{signid:t.signid,sign:e}],i.next=3,o["B"](a);case 3:return c=i.sent,i.next=6,n.GetSignRecordList();case 6:return i.abrupt("return",c);case 7:case"end":return i.stop()}}),i)}))))}))},search:function(){var t=Object(c["a"])(r.a.mark((function t(){return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return console.log("🚀🚀🚀,",this.selectObject),this.selectObject.startTimeSearch=this.selectObject.startTimeFlag,this.selectObject.endTimeSearch=this.selectObject.endTimeFlag,this.selectObject.dept_idSearch=this.selectObject.dept_id,this.selectObject.key_nameSearch=this.selectObject.key_name,this.selectObject.watchtypeidSearch=this.selectObject.watchtypeid,this.selectObject.watch_hour_idSearch=this.selectObject.watch_hour_id,this.selectObject.campusidSearch=this.selectObject.campusid,this.pageKey++,this.page_index=1,t.next=12,this.GetSignRecordList();case 12:t.sent;case 13:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),signDateSelect:function(t){this.selectObject.watch_date=t[0]+"-"+t[1],this.selectObject.startTimeFlag=t[0],this.selectObject.endTimeFlag=t[1]},signDataInputDateSelect:function(t){this.signyDataInputObject.watch_date=t[0]+"-"+t[1],this.signyDataInputObject.startTime=t[0],this.signyDataInputObject.endTime=t[1],console.log("🚀🚀🚀,")},signCancel:function(){this.importSignModel=!1},signOk:function(){var t=this;this.$refs["signDataInput"].validate(function(){var e=Object(c["a"])(r.a.mark((function e(n){var i,a;return r.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!n){e.next=9;break}return t.buttonLoding=!0,i=t.signyDataInputObject,e.next=5,o["A"](i);case 5:a=e.sent,window.location.href=t.$ascURL+a.response,t.importSignModel=!1,t.buttonLoding=!1;case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},logOk:function(){var t=this;this.$refs["formValidate"].validate((function(e){e&&l["myEncapsulationFunction"](Object(c["a"])(r.a.mark((function e(){var n,i;return r.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.buttonLoding=!0,n={signId:t.formValidate.signid,content:t.formValidate.content},e.next=4,o["C"](n);case 4:return i=e.sent,t.logModal=!1,e.next=8,t.GetSignRecordList();case 8:return t.buttonLoding=!1,e.abrupt("return",i);case 10:case"end":return e.stop()}}),e)}))))}))},logCancel:function(){this.logModal=!1},logModalFun:function(t){this.formValidate=_.cloneDeep(t),this.logModal=!0,console.log("🚀🚀🚀,",t)},signIdFunction:function(t){console.log("🚀🚀🚀,",t)},switchButton:function(t){var e,n=this,i=function(){var t=Object(c["a"])(r.a.mark((function t(e,i){var a;return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a={signid:e.signid,sign_set:i},t.next=3,o["D"](a);case 3:return t.sent,t.next=6,n.GetSignRecordList();case 6:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}();switch(t.sign_set){case 0:e=1,i(t,e);break;case 1:e=0,i(t,e);break}console.log("🚀🚀🚀,",t,e)},GetSignRecordList:function(){var t=Object(c["a"])(r.a.mark((function t(){var e=this;return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:l["getInitListRequest"](Object(c["a"])(r.a.mark((function t(){var n,i;return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,n={dep_id:e.selectObject.dept_idSearch,key_name:e.selectObject.key_nameSearch,start_time:""===e.selectObject.startTimeSearch?e.selectObject.startTime:e.selectObject.startTimeSearch,end_time:""===e.selectObject.endTimeSearch?e.selectObject.endTime:e.selectObject.endTimeSearch,type_id:e.selectObject.watchtypeidSearch,watchhour_time:e.selectObject.watch_hour_idSearch,page_index:e.page_index,page_size:e.page_size,campus_id:e.selectObject.campusidSearch,is_lead:2,sign:9},t.next=4,o["k"](n);case 4:i=t.sent,i.response.data.forEach((function(t,e){t._disabled=2===t.sign||1===t.sign_set})),e.data=i.response.data,e.total=i.response.data_count,e.loading=!1;case 9:case"end":return t.stop()}}),t)}))));case 1:case"end":return t.stop()}}),t)})));function e(){return t.apply(this,arguments)}return e}(),addDutySearchSelectList:function(){var t=this;Promise.all([this.getSearchSelectListPromiseAllAction("dutyType","值班类型","watchtypeid",o["x"]),this.getSearchSelectListPromiseAllAction("dutyHourTime","值班时段","watch_hour_id",o["u"]),this.getSearchSelectListPromiseAllAction("campusname","值班校区","campusid",o["r"]),this.getSearchSelectListPromiseAllAction("dept_name","值班部门","dept_id",o["s"])]).then((function(e){t.addDutySlectList=e}))},addDutySearchSelectList1:function(){var t=this;Promise.all([this.getSearchSelectListPromiseAllAction("dutyType","值班类型:","watchtypeid",o["x"]),this.getSearchSelectListPromiseAllAction("dutyHourTime","值班时段:","watch_hour_id",o["u"]),this.getSearchSelectListPromiseAllAction("campusname","值班校区:","campusid",o["r"]),this.getSearchSelectListPromiseAllAction("dept_name","值班部门:","dept_id",o["s"])]).then((function(e){t.selectList=e}))},getSearchSelectListPromiseAllAction:function(t,e,n,i){return new Promise(function(){var t=Object(c["a"])(r.a.mark((function t(a,c){var s,o;return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,i();case 2:s=t.sent,o=[s.response,e,n],a(o);case 5:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}())},currentPage:function(t){console.log(t),this.page_index=t,this.GetSignRecordList()},currentPageCount:function(t){this.page_size=t,this.GetSignRecordList()},publicConfirm:function(t){this.$Modal.confirm({title:"警告",content:"<p>是否继续此操作?</p>",cancelText:"取消",okText:"确定",onOk:function(){var e=Object(c["a"])(r.a.mark((function e(){return r.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t();case 2:case"end":return e.stop()}}),e)})));function n(){return e.apply(this,arguments)}return n}()})},publicMessage:function(t){1!==t.code?this.$Message["warning"]({background:!0,content:"操作异常"}):(this.$Spin.hide(),this.$Message["success"]({background:!0,content:"操作成功"}))}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){var t=new Date,e=d()(t).format("YYYY-MM-")+d()(t).startOf("month").format("DD"),n=d()(t).format("YYYY-MM-")+d()(t).endOf("month").format("DD");this.signyDataInputObject.startTime=e,this.signyDataInputObject.endTime=n,this.selectObject.startTimeSearch=e,this.selectObject.endTimeSearch=n,this.selectObject.startTime=e,this.selectObject.endTime=n,this.dutyDateX=[new Date(e),new Date(n)],this.GetSignRecordList(),this.addDutySearchSelectList(),this.addDutySearchSelectList1()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},p=h,g=(n("c074"),n("2877")),m=Object(g["a"])(p,i,a,!1,null,"c706f3d8",null);e["default"]=m.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-26cd7a24"],{"5df3":function(t,e,n){"use strict";var i=n("02f4")(!0);n("01f9")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})}))},"7dfb":function(t,e,n){"use strict";n("d338")},d338:function(t,e,n){},ebe1:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Card",{scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticStyle:{display:"flex","align-items":"center"}},[n("h3",[t._v("签到列表   ")]),t.selectFlag?t._e():n("div",{staticClass:"selectTitleIcon",staticStyle:{display:"flex","align-items":"center"},on:{click:function(e){t.selectFlag=!0}}},[n("span",[t._v("展开")]),n("Icon",{attrs:{size:25,type:"ios-arrow-dropright",color:"#2d8cf0"}})],1),t.selectFlag?n("div",{staticClass:"selectTitleIcon",staticStyle:{display:"flex","align-items":"center"},on:{click:function(e){t.selectFlag=!t.selectFlag}}},[n("span",[t._v("收起")]),n("Icon",{staticClass:"selectTitleIcon",attrs:{size:25,type:"ios-arrow-dropdown",color:"#2d8cf0"}})],1):t._e()]),n("transition",{attrs:{name:"move-up"}},[t.selectFlag?n("div",[n("Row",{staticStyle:{"margin-top":"15px"},attrs:{justify:"space-between",wrap:""}},t._l(t.selectList,(function(e,i){return n("Col",{key:i,attrs:{span:4.5}},[n("div",{staticStyle:{display:"flex","flex-wrap":"nowrap","align-items":"center"}},[n("span",{staticStyle:{"margin-right":"5px"}},[t._v(t._s(e[1]))]),n("Select",{key:i,staticStyle:{width:"10vw"},attrs:{clearable:""},model:{value:t.selectObject[e[2]],callback:function(n){t.$set(t.selectObject,e[2],n)},expression:"selectObject[item[2]]"}},t._l(e[0],(function(e,i){return n("Option",{key:i,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1)])})),1),n("Row",{staticStyle:{"margin-top":"10px"},attrs:{justify:"space-between",wrap:""}},[n("Col",{attrs:{span:4.5}},[n("div",{staticStyle:{display:"flex","justify-content":"center","align-items":"center"}},[n("span",[t._v("值班日期: ")]),n("DatePicker",{staticStyle:{width:"10vw"},attrs:{type:"daterange",placeholder:"请选择值班日期"},on:{"on-change":t.signDateSelect},model:{value:t.dutyDateX,callback:function(e){t.dutyDateX=e},expression:"dutyDateX"}})],1)]),n("Col",{attrs:{span:4.5,push:6}}),n("Col",{attrs:{span:4.5}})],1)],1):t._e()])]},proxy:!0},{key:"extra",fn:function(){return[n("ButtonGroup",[0!==t.signArray.length?n("Button",{attrs:{label:"dutyModelOutput",icon:"ios-list-box-outline"},on:{click:function(e){return t.batchSignInOrSignOut(1)}}},[t._v("批量签到\n ")]):t._e(),0!==t.signArray.length?n("Button",{attrs:{label:"dutyModelOutput",icon:"ios-list-box-outline"},on:{click:function(e){return t.batchSignInOrSignOut(2)}}},[t._v("批量签退\n ")]):t._e(),n("Button",{staticStyle:{"margin-right":"20px"},attrs:{label:"dutyModelOutput",icon:"ios-log-out"},on:{click:t.importSignData}},[t._v("\n 导出签到消息\n ")]),n("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center","margin-left":"20px"}},[n("Input",{staticStyle:{width:"15vw","margin-right":"20px"},attrs:{placeholder:"请输入名字或卡号"},model:{value:t.selectObject.key_name,callback:function(e){t.$set(t.selectObject,"key_name",e)},expression:"selectObject.key_name"}}),n("Button",{attrs:{type:"primary",icon:"ios-search"},on:{click:t.search}},[t._v("查询数据")])],1)],1)]},proxy:!0}])},[n("Table",{attrs:{columns:t.column,data:t.data,height:t.tableHeightCal,loading:t.loading},on:{"on-select":t.radioSelection,"on-select-cancel":t.cancelSelection,"on-select-all":t.allSelection,"on-select-all-cancel":t.cancelSelectionAll},scopedSlots:t._u([{key:"content",fn:function(e){var i=e.row;return[n("div",{staticStyle:{display:"flex","align-items":"center"}},[n("Ellipsis",{attrs:{text:i.content,length:10,tooltip:""}}),n("span",{on:{click:function(e){return t.logModalFun(i)}}},[n("Icon",{staticClass:"iconScale",attrs:{type:"ios-create",size:25}})],1)],1)]}},{key:"action",fn:function(e){var i=e.row;return[n("div",{staticStyle:{display:"flex","justify-content":"center"}},[2!==i.sign?n("Button",{staticStyle:{"margin-right":"10px"},attrs:{type:"success",disabled:Boolean(i.sign_set||0!==i.sign),size:"small",icon:"md-log-in"},on:{click:function(e){return t.signInOrSignOut(i,1)}}},[t._v("签\n ")]):t._e(),2!==i.sign?n("Button",{staticClass:"xiu",staticStyle:{display:"flex","justify-content":"space-between"},attrs:{disabled:Boolean(i.sign_set||1!==i.sign),type:"warning",size:"small"},on:{click:function(e){return t.signInOrSignOut(i,2)}}},[n("span",[t._v("退")]),n("Icon",{staticStyle:{"margin-left":"5px"},attrs:{type:"md-log-out"}})],1):t._e(),2===i.sign?n("Button",{attrs:{type:"success",disabled:Boolean(i.sign_set||0!==i.sign)},on:{click:function(e){return t.signInOrSignOut(i,1)}}},[t._v("\n 完成考勤\n "),n("Icon",{staticStyle:{"margin-left":"5px",color:"#23da6f"},attrs:{type:"md-checkmark-circle-outline"}})],1):t._e()],1)]}}])}),n("div",{staticStyle:{width:"100%",height:"70px",display:"flex","align-items":"center"}},[n("Page",{key:t.pageKey,attrs:{"show-total":"","show-sizer":"","show-elevator":"","page-size-opts":[100,200,500,1e3],total:t.total,"page-size":t.page_size,"model-value":"page_index"},on:{"on-change":t.currentPage,"on-page-size-change":t.currentPageCount}})],1)],1),n("Modal",{attrs:{title:"日志填写"},scopedSlots:t._u([{key:"footer",fn:function(){return[n("Button",{attrs:{type:"text"},on:{click:t.logCancel}},[t._v("取消")]),n("Button",{attrs:{type:"primary",loading:t.buttonLoding},on:{click:t.logOk}},[t._v("确定")])]},proxy:!0}]),model:{value:t.logModal,callback:function(e){t.logModal=e},expression:"logModal"}},[n("Form",{ref:"formValidate",attrs:{model:t.formValidate,rules:t.ruleValidate}},[n("FormItem",{attrs:{prop:"content"}},[n("Input",{attrs:{type:"textarea",autosize:{minRows:6,maxRows:6},placeholder:"请填写日志..."},model:{value:t.formValidate.content,callback:function(e){t.$set(t.formValidate,"content",e)},expression:"formValidate.content"}})],1)],1)],1),n("Modal",{attrs:{title:"导出签到信息",width:"40%"},scopedSlots:t._u([{key:"footer",fn:function(){return[n("Button",{attrs:{type:"text"},on:{click:t.signCancel}},[t._v("取消")]),n("Button",{attrs:{type:"primary",loading:t.buttonLoding},on:{click:t.signOk}},[t._v("确定")])]},proxy:!0}]),model:{value:t.importSignModel,callback:function(e){t.importSignModel=e},expression:"importSignModel"}},[n("Form",{ref:"signDataInput",attrs:{model:t.signyDataInputObject,rules:t.rulesSignDataInput,"label-width":80}},[n("FormItem",{attrs:{label:"名字或卡号",prop:"key_name"}},[n("Input",{attrs:{placeholder:"请输入名字或卡号"},model:{value:t.signyDataInputObject.key_name,callback:function(e){t.$set(t.signyDataInputObject,"key_name",e)},expression:"signyDataInputObject.key_name"}})],1),n("FormItem",{attrs:{label:"值班日期",prop:"watch_date"}},[n("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"daterange"},on:{"on-change":t.signDataInputDateSelect}})],1),t._l(t.addDutySlectList,(function(e,i){return n("FormItem",{key:i,attrs:{label:e[1],prop:e[2],"label-width":80}},[n("Select",{attrs:{placeholder:e[1]},model:{value:t.signyDataInputObject[e[2]],callback:function(n){t.$set(t.signyDataInputObject,e[2],n)},expression:"signyDataInputObject[item[2]]"}},t._l(e[0],(function(e,i){return n("Option",{key:i,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1)}))],2)],1)],1)},a=[],c=(n("5df3"),n("ac6a"),n("96cf"),n("1da1")),s=(n("a481"),n("967e")),r=n.n(s),o=n("5e9b"),l=(n("92c8"),n("806c")),u=n("5a0c"),d=n.n(u),h={components:{},data:function(){return{loading:!1,signArray:[],buttonLoding:!1,selectList:[],selectFlag:!1,signyDataInputObject:{watch_date:"",card_name:"",campusid:"",watch_hour_id:"",watchtypeid:"",dept_id:"",startTime:"",endTime:""},rulesSignDataInput:{key_name:[{type:"string",required:!0,message:"姓名或工号不能为空!",trigger:"blur"}],watch_date:[{type:"string",required:!0,message:"值班日期不能为空!",trigger:"change"}],campusid:[{type:"string",required:!0,message:"值班类型不能为空!",trigger:"change"}],watch_hour_id:[{type:"string",required:!0,message:"值班时段不能为空!",trigger:"change"}],watchtypeid:[{type:"string",required:!0,message:"值班校区不能为空!",trigger:"change"}],dept_id:[{type:"string",required:!0,message:"值班部门不能为空!",trigger:"change"}]},addDutySlectList:[],importSignModel:!1,ruleValidate:{content:[{type:"string",required:!0,message:"日志不能为空!",trigger:"blur"}]},formValidate:{content:""},logModal:!1,signFlag:!1,pageKey:1,selectObject:{dept_id:"",key_name:"",type_id:"",watchhour_time:"",campusid:"",watch_date:"",startTime:(new Date).toLocaleDateString("cn",{hour12:!1}).replace(/\//g,"-"),endTime:(new Date).toLocaleDateString("cn",{hour12:!1}).replace(/\//g,"-"),startTimeFlag:"",endTimeFlag:"",startTimeSearch:"",endTimeSearch:"",dep_idSearch:"",key_nameSearch:"",watchtypeidSearch:"",watch_hour_idSearch:"",campusidSearch:""},page_index:1,page_size:100,total:0,column:[{type:"selection",minWidth:60},{title:"值班日期",key:"watch_date",minWidth:120},{title:"姓名",key:"username",minWidth:120},{title:"工号",key:"card_name",minWidth:120},{title:"联系方式",key:"mobile",minWidth:120},{title:"值班类型",key:"watchtypename",minWidth:120},{title:"值班日志",slot:"content",minWidth:150},{title:"操作",slot:"action",align:"center",minWidth:120}],data:[],dutyDateX:[]}},computed:{tableHeightCal:function(){return document.documentElement.clientHeight-360}},watch:{selectObject:{deep:!0,handler:function(t,e){console.log("selectObject🚀🚀🚀,",t)}}},methods:{importSignData:function(){var t=Object(c["a"])(r.a.mark((function t(){var e,n;return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e={dep_id:this.selectObject.dept_idSearch,key_name:this.selectObject.key_nameSearch,start_time:""===this.selectObject.startTimeSearch?this.selectObject.startTime:this.selectObject.startTimeSearch,end_time:""===this.selectObject.endTimeSearch?this.selectObject.endTime:this.selectObject.endTimeSearch,type_id:this.selectObject.watchtypeidSearch,watchhour_time:this.selectObject.watch_hour_idSearch,campus_id:this.selectObject.campusidSearch},t.next=3,o["A"](e);case 3:n=t.sent,window.location.href=this.$ascURL+n.response;case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),batchSignInOrSignOut:function(t){var e=this;this.publicConfirm((function(){e.hooks.myEncapsulationFunction(Object(c["a"])(r.a.mark((function n(){var i,a;return r.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=[],"",e.signArray.forEach((function(e,n){i.push({signid:e.signid,sign:t})})),n.next=5,o["B"](i);case 5:return a=n.sent,e.GetSignRecordList(),n.abrupt("return",a);case 8:case"end":return n.stop()}}),n)}))))}))},cancelSelectionAll:function(t){this.signArray=t,console.log("🚀🚀🚀,",this.signArray,t)},cancelSelection:function(t){this.signArray=t,console.log("🚀🚀🚀,",this.signArray,t)},allSelection:function(t){this.signArray=t,console.log("🚀🚀🚀,",this.signArray,t)},radioSelection:function(t){this.signArray=t,console.log("🚀🚀🚀,",this.signArray,t)},signInOrSignOut:function(t,e){var n=this;console.log("🚀🚀🚀,",t),this.publicConfirm((function(){l["myEncapsulationFunction"](Object(c["a"])(r.a.mark((function i(){var a,c;return r.a.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return a=[{signid:t.signid,sign:e}],i.next=3,o["B"](a);case 3:return c=i.sent,i.next=6,n.GetSignRecordList();case 6:return i.abrupt("return",c);case 7:case"end":return i.stop()}}),i)}))))}))},search:function(){var t=Object(c["a"])(r.a.mark((function t(){return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return console.log("🚀🚀🚀,",this.selectObject),this.selectObject.startTimeSearch=this.selectObject.startTimeFlag,this.selectObject.endTimeSearch=this.selectObject.endTimeFlag,this.selectObject.dept_idSearch=this.selectObject.dept_id,this.selectObject.key_nameSearch=this.selectObject.key_name,this.selectObject.watchtypeidSearch=this.selectObject.watchtypeid,this.selectObject.watch_hour_idSearch=this.selectObject.watch_hour_id,this.selectObject.campusidSearch=this.selectObject.campusid,this.pageKey++,this.page_index=1,t.next=12,this.GetSignRecordList();case 12:t.sent;case 13:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),signDateSelect:function(t){this.selectObject.watch_date=t[0]+"-"+t[1],this.selectObject.startTimeFlag=t[0],this.selectObject.endTimeFlag=t[1]},signDataInputDateSelect:function(t){this.signyDataInputObject.watch_date=t[0]+"-"+t[1],this.signyDataInputObject.startTime=t[0],this.signyDataInputObject.endTime=t[1],console.log("🚀🚀🚀,")},signCancel:function(){this.importSignModel=!1},signOk:function(){var t=this;this.$refs["signDataInput"].validate(function(){var e=Object(c["a"])(r.a.mark((function e(n){var i,a;return r.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!n){e.next=9;break}return t.buttonLoding=!0,i=t.signyDataInputObject,e.next=5,o["A"](i);case 5:a=e.sent,window.location.href=t.$ascURL+a.response,t.importSignModel=!1,t.buttonLoding=!1;case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},logOk:function(){var t=this;this.$refs["formValidate"].validate((function(e){e&&l["myEncapsulationFunction"](Object(c["a"])(r.a.mark((function e(){var n,i;return r.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.buttonLoding=!0,n={signId:t.formValidate.signid,content:t.formValidate.content},e.next=4,o["C"](n);case 4:return i=e.sent,t.logModal=!1,e.next=8,t.GetSignRecordList();case 8:return t.buttonLoding=!1,e.abrupt("return",i);case 10:case"end":return e.stop()}}),e)}))))}))},logCancel:function(){this.logModal=!1},logModalFun:function(t){this.formValidate=_.cloneDeep(t),this.logModal=!0,console.log("🚀🚀🚀,",t)},signIdFunction:function(t){console.log("🚀🚀🚀,",t)},switchButton:function(t){var e,n=this,i=function(){var t=Object(c["a"])(r.a.mark((function t(e,i){var a;return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a={signid:e.signid,sign_set:i},t.next=3,o["D"](a);case 3:return t.sent,t.next=6,n.GetSignRecordList();case 6:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}();switch(t.sign_set){case 0:e=1,i(t,e);break;case 1:e=0,i(t,e);break}console.log("🚀🚀🚀,",t,e)},GetSignRecordList:function(){var t=Object(c["a"])(r.a.mark((function t(){var e=this;return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:l["getInitListRequest"](Object(c["a"])(r.a.mark((function t(){var n,i;return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,n={dep_id:e.selectObject.dept_idSearch,key_name:e.selectObject.key_nameSearch,start_time:""===e.selectObject.startTimeSearch?e.selectObject.startTime:e.selectObject.startTimeSearch,end_time:""===e.selectObject.endTimeSearch?e.selectObject.endTime:e.selectObject.endTimeSearch,type_id:e.selectObject.watchtypeidSearch,watchhour_time:e.selectObject.watch_hour_idSearch,page_index:e.page_index,page_size:e.page_size,campus_id:e.selectObject.campusidSearch,is_lead:0,sign:9},t.next=4,o["k"](n);case 4:i=t.sent,i.response.data.forEach((function(t,e){t._disabled=2===t.sign||1===t.sign_set})),e.data=i.response.data,e.total=i.response.data_count,e.loading=!1;case 9:case"end":return t.stop()}}),t)}))));case 1:case"end":return t.stop()}}),t)})));function e(){return t.apply(this,arguments)}return e}(),addDutySearchSelectList:function(){var t=this;Promise.all([this.getSearchSelectListPromiseAllAction("dutyType","值班类型","watchtypeid",o["x"]),this.getSearchSelectListPromiseAllAction("dutyHourTime","值班时段","watch_hour_id",o["u"]),this.getSearchSelectListPromiseAllAction("campusname","值班校区","campusid",o["r"]),this.getSearchSelectListPromiseAllAction("dept_name","值班部门","dept_id",o["s"])]).then((function(e){t.addDutySlectList=e}))},addDutySearchSelectList1:function(){var t=this;Promise.all([this.getSearchSelectListPromiseAllAction("dutyType","值班类型:","watchtypeid",o["x"]),this.getSearchSelectListPromiseAllAction("dutyHourTime","值班时段:","watch_hour_id",o["u"]),this.getSearchSelectListPromiseAllAction("campusname","值班校区:","campusid",o["r"]),this.getSearchSelectListPromiseAllAction("dept_name","值班部门:","dept_id",o["s"])]).then((function(e){t.selectList=e}))},getSearchSelectListPromiseAllAction:function(t,e,n,i){return new Promise(function(){var t=Object(c["a"])(r.a.mark((function t(a,c){var s,o;return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,i();case 2:s=t.sent,o=[s.response,e,n],a(o);case 5:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}())},currentPage:function(t){console.log(t),this.page_index=t,this.GetSignRecordList()},currentPageCount:function(t){this.page_size=t,this.GetSignRecordList()},publicConfirm:function(t){this.$Modal.confirm({title:"警告",content:"<p>是否继续此操作?</p>",cancelText:"取消",okText:"确定",onOk:function(){var e=Object(c["a"])(r.a.mark((function e(){return r.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t();case 2:case"end":return e.stop()}}),e)})));function n(){return e.apply(this,arguments)}return n}()})},publicMessage:function(t){1!==t.code?this.$Message["warning"]({background:!0,content:"操作异常"}):(this.$Spin.hide(),this.$Message["success"]({background:!0,content:"操作成功"}))}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){var t=new Date,e=d()(t).format("YYYY-MM-")+d()(t).startOf("month").format("DD"),n=d()(t).format("YYYY-MM-")+d()(t).endOf("month").format("DD");this.signyDataInputObject.startTime=e,this.signyDataInputObject.endTime=n,this.selectObject.startTimeSearch=e,this.selectObject.endTimeSearch=n,this.selectObject.startTime=e,this.selectObject.endTime=n,this.dutyDateX=[new Date(e),new Date(n)],this.GetSignRecordList(),this.addDutySearchSelectList(),this.addDutySearchSelectList1()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},p=h,g=(n("7dfb"),n("2877")),m=Object(g["a"])(p,i,a,!1,null,"90cb5854",null);e["default"]=m.exports}}]);
\ No newline at end of file
......@@ -533,7 +533,7 @@
"page_index": this.page_index,
"page_size": this.page_size,
"campus_id": this.selectObject.campusidSearch,
is_lead: 0,
is_lead: 2,
sign: 9,
}
const res = await api.GetSignRecordList(data)
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或