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

20250305

上级 1cbb902a
流水线 #33807 已通过 ,包含阶段
in 1 minute 和 35 second
.selectTitleIcon[data-v-eeae8b34]:hover{cursor:pointer}
\ No newline at end of file
.selectTitleIcon[data-v-444bf3f9]:hover{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.35e59e0d.css rel=stylesheet></head><body><script charset=utf-8 src="https://map.qq.com/api/gljs?v=1.exp&key=IZXBZ-OTAWV-XU7PV-5FAAL-F6VXH-7XBQP"></script><script src=/a/manager/identify/identify.js></script><noscript><strong>请开启 JavaScript 功能来使用 党建管理系统。</strong></noscript><div id=app></div><script src=js/chunk-vendors.231bdbe1.js></script><script src=js/app.e9789aec.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.35e59e0d.css rel=stylesheet></head><body><script charset=utf-8 src="https://map.qq.com/api/gljs?v=1.exp&key=IZXBZ-OTAWV-XU7PV-5FAAL-F6VXH-7XBQP"></script><script src=/a/manager/identify/identify.js></script><noscript><strong>请开启 JavaScript 功能来使用 党建管理系统。</strong></noscript><div id=app></div><script src=js/chunk-vendors.231bdbe1.js></script><script src=js/app.5ed199ca.js></script></body></html>
\ No newline at end of file
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6ed29bfa"],{"58c5":function(t,e,a){},"5df3":function(t,e,a){"use strict";var i=a("02f4")(!0);a("01f9")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,a=this._i;return a>=e.length?{value:void 0,done:!0}:(t=i(e,a),this._i+=t.length,{value:t,done:!1})}))},"6d00":function(t,e,a){"use strict";a("58c5")},"9ca0":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Card",{staticStyle:{width:"100%"},scopedSlots:t._u([{key:"title",fn:function(){return[a("div",{staticStyle:{display:"flex","align-items":"center"}},[a("h3",{staticStyle:{height:"30px",display:"flex","align-items":"center"}},[t._v("值班安排    ")]),t.selectFlag?t._e():a("div",{staticClass:"selectTitleIcon",staticStyle:{display:"flex","align-items":"center"},on:{click:function(e){t.selectFlag=!0}}},[a("span",[t._v("展开")]),a("Icon",{staticClass:"selectTitleIcon",attrs:{size:25,type:"ios-arrow-dropright",color:"#2d8cf0"}})],1),t.selectFlag?a("div",{staticClass:"selectTitleIcon",staticStyle:{display:"flex","align-items":"center"},on:{click:function(e){t.selectFlag=!t.selectFlag}}},[a("span",[t._v("收起")]),a("Icon",{staticClass:"selectTitleIcon",attrs:{size:25,type:"ios-arrow-dropdown",color:"#2d8cf0"}})],1):t._e()]),a("transition",{attrs:{name:"move-up"}},[t.selectFlag?a("div",[a("Row",{staticStyle:{"margin-top":"10px"},attrs:{justify:"space-between",wrap:""}},t._l(t.cityListAll,(function(e,i){return a("Col",{key:i,attrs:{span:4.5}},[a("div",{staticStyle:{display:"flex","flex-wrap":"nowrap","align-items":"center"}},[a("span",{staticStyle:{"margin-right":"5px"}},[t._v(t._s(e[1]))]),a("Select",{key:i,staticStyle:{width:"10.5vw"},attrs:{clearable:""},model:{value:t.cityListAllObject[e[2]],callback:function(a){t.$set(t.cityListAllObject,e[2],a)},expression:"cityListAllObject[item[2]]"}},t._l(e[0],(function(e,i){return a("Option",{key:i,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1)])})),1),a("Row",{staticStyle:{"margin-top":"10px"},attrs:{justify:"space-between",wrap:""}},[a("Col",{attrs:{span:4.5}},[a("div",{staticStyle:{display:"flex","justify-content":"center","align-items":"center"}},[a("span",[t._v("值班日期: ")]),a("DatePicker",{staticStyle:{width:"10.5vw"},attrs:{clearable:"",type:"daterange",placeholder:"请选择值班日期"},on:{"on-change":t.dutyDateSelect},model:{value:t.dutyDateX,callback:function(e){t.dutyDateX=e},expression:"dutyDateX"}})],1)]),a("Col",{attrs:{span:4.5}},[a("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center"}},[a("span",[t._v("值班领导:    ")]),a("Select",{staticStyle:{width:"10.5vw"},attrs:{clearable:"",placeholder:"是否为值班领导"},model:{value:t.cityListAllObject.is_lead,callback:function(e){t.$set(t.cityListAllObject,"is_lead",e)},expression:"cityListAllObject.is_lead"}},t._l(t.dutyRole,(function(e,i){return a("Option",{key:i,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1)],1)]),a("Col",{attrs:{span:4.5}},[a("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center"}},[a("span",[t._v("姓名/卡号:")]),a("Input",{staticStyle:{width:"10.5vw","margin-right":"8.5vw"},attrs:{clearable:"",placeholder:"请输入姓名或卡号"},model:{value:t.cityListAllObject.key_name,callback:function(e){t.$set(t.cityListAllObject,"key_name",e)},expression:"cityListAllObject.key_name"}})],1)]),a("Col",{attrs:{span:4.5}},[a("Button",{attrs:{type:"primary",icon:"ios-search"},on:{click:t.search}},[t._v("查询数据")])],1)],1)],1):t._e()])]},proxy:!0},{key:"extra",fn:function(){return[a("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center"}},[a("Button",{staticStyle:{"margin-right":"8px"},attrs:{type:"warning"},on:{click:t.batchPush}},[t._v("批量推送")]),a("ButtonGroup",[a("Button",{attrs:{icon:"ios-add-circle-outline"},on:{click:function(e){return t.handleButtonClick("addDuty")}}},[t._v("增添值班")]),a("Button",{attrs:{label:"dutyDataOutput",icon:"ios-log-out"},on:{click:t.dutyDataImport}},[t._v("数据导出\n ")]),a("Button",{staticStyle:{display:"flex","align-items":"center"},attrs:{icon:"ios-cloud-upload-outline",label:"dutyModelInput"},on:{click:function(e){return t.handleButtonClick("dutyModelInput")}}},[t._v("\n 模板导入\n ")]),a("Button",{attrs:{label:"dutyModelOutput",icon:"ios-log-out"},on:{click:function(e){t.exportModalShow=!0}}},[t._v("模板导出\n ")])],1)],1)]},proxy:!0}])},[a("Table",{attrs:{border:"",loading:t.tableLoading,columns:t.columns,data:t.data,height:t.tableHeightCal},on:{"on-select":t.onSelect,"on-select-cancel":t.onSelectCancel,"on-select-all":t.onSelectAll,"on-select-all-cancel":t.onSelectAllCancel},scopedSlots:t._u([{key:"watch_remark",fn:function(e){var a=e.row;return[t._v("\n "+t._s(a.watch_remark)+"\n")]}},{key:"is_lead",fn:function(e){var a=e.row;return[t._v("\n "+t._s(["值班教师","值班领导"][a.is_lead])+"\n ")]}},{key:"action",fn:function(e){var i=e.row;return[a("div",{staticStyle:{display:"flex","justify-content":"space-evenly"}},[a("Button",{attrs:{type:"warning",size:"small"},on:{click:function(e){return t.pushDuty(i)}}},[t._v("推送")]),a("Button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.updateDuty(i)}}},[t._v("修改")]),a("Button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.deleteDuty(i)}}},[t._v("删除")])],1)]}}])}),a("div",{staticStyle:{width:"100%",height:"70px",display:"flex","align-items":"center"}},[a("Page",{key:t.pageKey,attrs:{"show-total":"","show-sizer":"","show-elevator":"",total:t.total,"page-size":t.page_size,"page-size-opts":[100,200,500,1e3],"model-value":"page_index"},on:{"on-change":t.currentPage,"on-page-size-change":t.currentPageCount}})],1)],1),a("Modal",{attrs:{title:t.publicModalTitle,closable:"","mask-closable":!1,width:"40%"},scopedSlots:t._u([{key:"footer",fn:function(){return[a("Button",{attrs:{type:"text"},on:{click:t.asyncCancel}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.asyncOK}},[t._v("确定")])]},proxy:!0}]),model:{value:t.addDuty,callback:function(e){t.addDuty=e},expression:"addDuty"}},[a("Form",{ref:"formValidate",attrs:{model:t.formValidate,rules:t.ruleValidate,"label-width":80}},[a("FormItem",{attrs:{label:"姓名",prop:"username1"}},[a("Select",{attrs:{filterable:"",placeholder:"请选择用户"},on:{"on-change":t.usernameChange},model:{value:t.formValidate.username1,callback:function(e){t.$set(t.formValidate,"username1",e)},expression:"formValidate.username1"}},t._l(t.userArray,(function(e,i){return a("Option",{key:i,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1),a("FormItem",{attrs:{label:"工号",prop:"card_name"}},[a("Input",{attrs:{placeholder:"请输入工号"},model:{value:t.formValidate.card_name,callback:function(e){t.$set(t.formValidate,"card_name",e)},expression:"formValidate.card_name"}})],1),a("FormItem",{attrs:{label:"联系方式",prop:"mobile"}},[a("Input",{attrs:{type:"number",placeholder:"请输入联系方式"},model:{value:t.formValidate.mobile,callback:function(e){t.$set(t.formValidate,"mobile",e)},expression:"formValidate.mobile"}})],1),t._l(t.addDutySlectList,(function(e,i){return a("FormItem",{key:i,attrs:{label:e[1],prop:e[2],"label-width":80}},[a("Select",{attrs:{placeholder:e[1],filterable:!0},model:{value:t.formValidate[e[2]],callback:function(a){t.$set(t.formValidate,e[2],a)},expression:"formValidate[item[2]]"}},t._l(e[0],(function(e,i){return a("Option",{key:i,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1)})),a("FormItem",{attrs:{label:"是否为值班领导",prop:"is_lead"}},[a("Select",{attrs:{placeholder:"是否为值班领导"},model:{value:t.formValidate.is_lead,callback:function(e){t.$set(t.formValidate,"is_lead",e)},expression:"formValidate.is_lead"}},t._l(t.dutyRole,(function(e,i){return a("Option",{key:i,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1)],1),a("FormItem",{attrs:{label:"值班日期",prop:"watch_date"}},[a("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"date",options:t.options1,placeholder:"请选择值班日期"},on:{"on-change":t.dutyDate},model:{value:t.formValidate.watch_date,callback:function(e){t.$set(t.formValidate,"watch_date",e)},expression:"formValidate.watch_date"}})],1),a("FormItem",{attrs:{label:"值班班级",prop:"watch_remark"}},[a("Input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:5},placeholder:"值班班级"},model:{value:t.formValidate.watch_remark,callback:function(e){t.$set(t.formValidate,"watch_remark",e)},expression:"formValidate.watch_remark"}})],1)],2)],1),a("Modal",{attrs:{title:"修改值班安排",width:"40%"},scopedSlots:t._u([{key:"footer",fn:function(){return[a("Button",{attrs:{type:"text"},on:{click:t.updateCancel}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.updateOK}},[t._v("确定")])]},proxy:!0}]),model:{value:t.updateDutyModal,callback:function(e){t.updateDutyModal=e},expression:"updateDutyModal"}},[a("Form",{ref:"updateDutyFrom",attrs:{model:t.updateDutyFrom,rules:t.updeteRuleValidate,"label-width":80}},[a("FormItem",{attrs:{label:"姓名",prop:"username1"}},[a("Select",{attrs:{filterable:"",placeholder:"请选择用户"},on:{"on-change":t.usernameChange1},model:{value:t.updateDutyFrom.username1,callback:function(e){t.$set(t.updateDutyFrom,"username1",e)},expression:"updateDutyFrom.username1"}},t._l(t.userArray,(function(e,i){return a("Option",{key:i,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1),a("FormItem",{attrs:{label:"工号",prop:"card_name"}},[a("Input",{attrs:{placeholder:"请输入工号"},model:{value:t.updateDutyFrom.card_name,callback:function(e){t.$set(t.updateDutyFrom,"card_name",e)},expression:"updateDutyFrom.card_name"}})],1),a("FormItem",{attrs:{label:"联系方式",prop:"mobile"}},[a("Input",{attrs:{type:"number",placeholder:"请输入联系方式"},model:{value:t.updateDutyFrom.mobile,callback:function(e){t.$set(t.updateDutyFrom,"mobile",e)},expression:"updateDutyFrom.mobile"}})],1),t._l(t.addDutySlectList,(function(e,i){return a("FormItem",{key:i,attrs:{label:e[1],prop:e[2],"label-width":80}},[a("Select",{attrs:{placeholder:e[1]},model:{value:t.updateDutyFrom[e[2]],callback:function(a){t.$set(t.updateDutyFrom,e[2],a)},expression:"updateDutyFrom[item[2]]"}},t._l(e[0],(function(e,i){return a("Option",{key:i,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1)})),a("FormItem",{attrs:{label:"是否为值班领导",prop:"is_lead"}},[a("Select",{attrs:{placeholder:"是否为值班领导"},model:{value:t.updateDutyFrom.is_lead,callback:function(e){t.$set(t.updateDutyFrom,"is_lead",e)},expression:"updateDutyFrom.is_lead"}},t._l(t.dutyRole,(function(e,i){return a("Option",{key:i,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1)],1),a("FormItem",{attrs:{label:"值班日期",prop:"watch_date"}},[a("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"date",value:t.updateDutyFrom.watch_date,options:t.options1},on:{"on-change":t.updateDutyDate}})],1),a("FormItem",{attrs:{label:"值班班级",prop:"watch_remark"}},[a("Input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:5},placeholder:"值班班级"},model:{value:t.updateDutyFrom.watch_remark,callback:function(e){t.$set(t.updateDutyFrom,"watch_remark",e)},expression:"updateDutyFrom.watch_remark"}})],1)],2)],1),a("Modal",{attrs:{title:t.publicModalTitle,width:"40%"},scopedSlots:t._u([{key:"footer",fn:function(){return[a("Button",{attrs:{type:"text"},on:{click:t.dutyDataInputCancel}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.dutyDataInputOK}},[t._v("确定")])]},proxy:!0}]),model:{value:t.dutyDataInputModal,callback:function(e){t.dutyDataInputModal=e},expression:"dutyDataInputModal"}},[a("Form",{ref:"dutyDataInput",attrs:{model:t.dutyDataInputObject,rules:t.rulesDutyDataInput,"label-width":80}},[a("FormItem",{attrs:{label:"姓名或卡号",prop:"key_name"}},[a("Input",{attrs:{placeholder:"请输入姓名或卡号"},model:{value:t.dutyDataInputObject.key_name,callback:function(e){t.$set(t.dutyDataInputObject,"key_name",e)},expression:"dutyDataInputObject.key_name"}})],1),a("FormItem",{attrs:{label:"值班日期",prop:"watch_date"}},[a("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"daterange"},on:{"on-change":t.dutyDataInputDateSelect}})],1),a("FormItem",{attrs:{label:"是否为值班领导",prop:"is_lead"}},[a("Select",{attrs:{placeholder:"是否为值班领导"},model:{value:t.dutyDataInputObject.is_lead,callback:function(e){t.$set(t.dutyDataInputObject,"is_lead",e)},expression:"dutyDataInputObject.is_lead"}},t._l(t.dutyRole,(function(e,i){return a("Option",{key:i,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1)],1),t._l(t.addDutySlectList,(function(e,i){return a("FormItem",{key:i,attrs:{label:e[1],prop:e[2],"label-width":80}},[a("Select",{attrs:{placeholder:e[1]},model:{value:t.dutyDataInputObject[e[2]],callback:function(a){t.$set(t.dutyDataInputObject,e[2],a)},expression:"dutyDataInputObject[item[2]]"}},t._l(e[0],(function(e,i){return a("Option",{key:i,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1)}))],2)],1),a("Modal",{attrs:{title:t.publicModalTitle,width:"40%"},scopedSlots:t._u([{key:"footer",fn:function(){return[a("Button",{attrs:{type:"text"},on:{click:t.dutyModelImportCancel}},[t._v("取消")])]},proxy:!0}]),model:{value:t.dutyModelImportModal,callback:function(e){t.dutyModelImportModal=e},expression:"dutyModelImportModal"}},[a("Upload",{attrs:{"before-upload":t.dutyModelUpload,"on-error":t.dutyModelError,"on-success":t.dutyModelSuccess,"on-format-error":t.dutyModelFormatError,format:["xlsx"],multiple:!1,type:"drag",action:""}},[a("div",{staticStyle:{padding:"120px 0"}},[a("Icon",{staticStyle:{color:"#3399ff"},attrs:{type:"ios-cloud-upload",size:"52"}}),a("p",[t._v("值班模板文件上传")])],1)])],1),a("Modal",{attrs:{"mask-closable":!1,title:"模板导出"},on:{"on-ok":t.exportTemplate},model:{value:t.exportModalShow,callback:function(e){t.exportModalShow=e},expression:"exportModalShow"}},[a("span",[t._v("模板年月:")]),a("DatePicker",{attrs:{type:"month",format:"yyyy-MM",placeholder:""},model:{value:t.tempYearMonth,callback:function(e){t.tempYearMonth=e},expression:"tempYearMonth"}})],1)],1)},n=[],r=(a("8e6e"),a("456d"),a("ac6a"),a("5df3"),a("28a5"),a("20d6"),a("96cf"),a("3b8d")),l=a("bd86"),c=(a("a481"),a("967e")),s=a.n(c),o=a("5e9b"),u=a("2ef0"),d=a.n(u),p=a("c276"),m=(a("a78e"),a("5a0c")),y=a.n(m),h=a("806c");function f(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function g(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?f(Object(a),!0).forEach((function(e){Object(l["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):f(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var b={components:{},data:function(){return{userArray:[],tableLoading:!1,fileUploadFlag:!1,loadingStatus:!1,file:null,dutyModelImportModal:!1,dutyDataInputObject:{startTime:"",endTime:"",is_lead:"",watch_date:"",campusid:"",watch_hour_id:"",watchtypeid:"",dept_id:""},publicModalTitle:"",dutyDataInputModal:!1,DatePickerKey:1,updateDutyFrom:{},updateDutyModal:!1,addDutySlectList:[],dutyRole:[{label:"否",value:0},{label:"是",value:1}],options1:{disabledDate:function(t){return t&&t.valueOf()<Date.now()-864e5}},formValidate:{username:"",watch_date:"",mobile:"",is_lead:"",card_name:"",watch_remark:"",campusid:"",watch_hour_id:"",watchtypeid:"",dept_id:""},rulesDutyDataInput:{key_name:[{type:"string",required:!0,message:"姓名或工号不能为空!",trigger:"blur"}],watch_date:[{type:"string",required:!0,message:"值班日期不能为空!",trigger:"change"}],is_lead:[{type:"number",required:!0,message:"值班权限不能为空!",trigger:"change"}],campusid:[{type:"string",required:!0,message:"值班类型不能为空!",trigger:"change"}],watchtypeid:[{type:"string",required:!0,message:"值班校区不能为空!",trigger:"change"}],dept_id:[{type:"string",required:!0,message:"值班部门不能为空!",trigger:"change"}]},updeteRuleValidate:{username1:[{type:"string",required:!0,message:"姓名不能为空!",trigger:"change"}],card_name:[{type:"string",required:!0,message:"工号不能为空!!",trigger:"blur"}],mobile:[{type:"string",required:!0,message:"联系方式不能为空!",trigger:"blur"}],watch_date:[{type:"string",required:!0,message:"值班日期不能为空!",trigger:"blur"}],is_lead:[{type:"number",required:!0,message:"值班权限不能为空!",trigger:"change"}],campusid:[{type:"string",required:!0,message:"值班类型不能为空!",trigger:"change"}],watchtypeid:[{type:"string",required:!0,message:"值班校区不能为空!",trigger:"change"}],dept_id:[{type:"string",required:!0,message:"值班部门不能为空!",trigger:"change"}]},ruleValidate:{username1:[{type:"string",required:!0,message:"姓名不能为空!",trigger:"change"}],card_name:[{type:"string",required:!0,message:"工号不能为空!!",trigger:"change"}],mobile:[{type:"string",required:!0,message:"联系方式不能为空!",trigger:"blur"}],watch_date:[{type:"string",required:!0,message:"值班日期不能为空!",trigger:"change"}],is_lead:[{type:"number",required:!0,message:"值班权限不能为空!",trigger:"change"}],campusid:[{type:"string",required:!0,message:"值班类型不能为空!",trigger:"change"}],watchtypeid:[{type:"string",required:!0,message:"值班校区不能为空!",trigger:"change"}],dept_id:[{type:"string",required:!0,message:"值班部门不能为空!",trigger:"change"}]},addDutyLoading:!0,addDuty:!1,selectFlag:!1,cityListAllObject:{dutyType:"",dutyHourTime:"",dutyCampus:"",dutyDepSelect:"",key_name:"",is_lead:3,dutyDate:"",startTime:(new Date).toLocaleDateString("cn",{hour12:!1}).replace(/\//g,"-"),endTime:(new Date).toLocaleDateString("cn",{hour12:!1}).replace(/\//g,"-"),startTimeSearch:"",endTimeSearch:"",startTimeFlag:"",endTimeFlag:""},cityListAlltSearchFlagObject:{dutyType:"",dutyHourTime:"",dutyCampus:"",dutyDepSelect:"",key_name:"",is_lead:3,dutyDate:"",startTimeSearch:"",endTimeSearch:""},buttonSize:"",searchSlecte:["值班类型","值班部门","值班校区"],cityListAll:[],model1:"",model2:"",model3:"",model4:"",pageKey:1,total:0,page_index:1,page_size:100,is_lead:3,columns:[{type:"selection",width:60,align:"center",fixed:"left"},{title:"姓名",key:"username",minWidth:150},{title:"工号",key:"card_name",minWidth:150},{title:"联系方式",key:"mobile",minWidth:150},{title:"值班部门",key:"dept_name",minWidth:150},{title:"值班类型",key:"watchtypename",minWidth:150},{title:"值班校区",key:"campusname",minWidth:150},{title:"值班权限",slot:"is_lead",minWidth:150},{title:"值班班级",resizable:!0,slot:"watch_remark",width:300},{title:"值班时间",key:"watch_hour_time",minWidth:150},{title:"值班日期",key:"watch_date",minWidth:150,sortable:!0},{title:"操作",slot:"action",minWidth:180,align:"center",fixed:"right"}],data:[],pushListSlc:[],exportModalShow:!1,tempYearMonth:"",dutyDateX:[]}},computed:{tableHeightCal:function(){return document.documentElement.clientHeight-360},util:function(){return p["a"]}},watch:{"cityListAllObject.dutyType":function(t,e){console.log("🚀🚀🚀,",t)},"cityListAllObject.dutyHourTime":function(t,e){console.log("🚀🚀🚀,",t)},"cityListAllObject.dutyCampus":function(t,e){console.log("🚀🚀🚀,",t)},"cityListAllObject.dutyDepSelect":function(t,e){console.log("🚀🚀🚀,",t)},dutyDataInputObject:{deep:!0,handler:function(t,e){console.log("🚀🚀🚀,",t)}},cityListAllObject:{deep:!0,handler:function(t,e){console.log("🚀🚀🚀,",t)}},formValidate:{deep:!0,handler:function(t,e){console.log("🚀🚀🚀,",t)}}},methods:{usernameChange1:function(t){var e=this;o["N"]({card:t}).then((function(t){e.updateDutyFrom=g(g({},e.updateDutyFrom),t.response)}))},usernameChange:function(t){var e=this;o["N"]({card:t}).then((function(t){e.formValidate=g(g({},e.formValidate),t.response)}))},dutyModelImportCancel:function(){this.dutyModelImportModal=!1},dutyModelImportOK:function(){this.file=null,this.loadingStatus=!1},dutyModelUpload:function(){var t=Object(r["a"])(s.a.mark((function t(e){var a,i;return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=new FormData,a.append("file",e),t.next=4,o["T"](a);case 4:if(i=t.sent,1===i.code){t.next=9;break}this.$Message.error(i.msg_detail),t.next=12;break;case 9:return t.next=11,this.getWatchList();case 11:this.dutyModelImportModal=!1;case 12:return t.abrupt("return",!1);case 13:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),dutyModelFormatError:function(t,e){this.$Message.error("文件格式错误!")},dutyModelSuccess:function(t,e,a){this.$Message.info(t.msg)},dutyModelError:function(t,e,a){},dutyDataInputCancel:function(){this.dutyDataInputModal=!1},dutyDataImport:function(){var t=Object(r["a"])(s.a.mark((function t(){var e,a;return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e={start_time:""!==this.cityListAlltSearchFlagObject.startTimeSearch?this.cityListAlltSearchFlagObject.startTimeSearch:this.cityListAllObject.startTime,end_time:""!==this.cityListAlltSearchFlagObject.endTimeSearch?this.cityListAlltSearchFlagObject.endTimeSearch:this.cityListAllObject.endTime,is_lead:this.cityListAlltSearchFlagObject.is_lead,dep_id:this.cityListAlltSearchFlagObject.dutyDepSelect,key_name:this.cityListAlltSearchFlagObject.key_name,type_id:this.cityListAlltSearchFlagObject.dutyType,watchhour_time:this.cityListAlltSearchFlagObject.dutyHourTime,campus_id:this.cityListAlltSearchFlagObject.dutyCampus},t.next=3,o["P"](e);case 3:a=t.sent,window.location.href=this.$ascURL+a.response;case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),dutyDataInputOK:function(){var t=this;this.$refs["dutyDataInput"].validate(function(){var e=Object(r["a"])(s.a.mark((function e(a){var i,n;return s.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=6;break}return i={dep_id:t.dutyDataInputObject.dep_id,key_name:t.dutyDataInputObject.key_name,start_time:t.dutyDataInputObject.startTime,end_time:t.dutyDataInputObject.endTime,type_id:t.dutyDataInputObject.watchtypeid,watchhour_time:t.dutyDataInputObject.watch_hour_id,is_lead:t.dutyDataInputObject.is_lead},e.next=4,o["P"](i);case 4:n=e.sent,window.location.href=t.$ascURL+n.response;case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},dutyDataInputDateSelect:function(t){this.dutyDataInputObject.watch_date=t[0]+"-"+t[1],this.dutyDataInputObject.startTime=t[0],this.dutyDataInputObject.endTime=t[1]},updateDutyDate:function(t){this.updateDutyFrom.watch_date=t},updateCancel:function(){this.updateDutyModal=!1},updateOK:function(){var t=this;this.$refs["updateDutyFrom"].validate((function(e){e&&h["myEncapsulationFunction"](Object(r["a"])(s.a.mark((function e(){var a,i;return s.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t.updateDutyFrom,e.next=3,o["V"](a);case 3:return i=e.sent,t.getWatchList(),t.updateDutyModal=!1,e.abrupt("return",i);case 7:case"end":return e.stop()}}),e)}))))}))},validateTime:function(t){var e=new Date(t),a=e.getFullYear(),i=e.getMonth(),n=e.getDate();return"".concat(a,"-").concat(i,"-").concat(n)},onSelect:function(t,e){this.pushListSlc.push(e.watchid)},onSelectCancel:function(t,e){var a=this.pushListSlc.findIndex((function(t){return t==e.watchid}));this.pushListSlc.splice(a,1)},onSelectAll:function(t){this.pushListSlc=t.map((function(t){return t.watchid}))},onSelectAllCancel:function(t){this.pushListSlc=[]},batchPush:function(){var t=this;0!=this.pushListSlc.length?this.$Modal.confirm({title:"提示",content:"是否确认推送?",loading:!0,onOk:function(){t.pushM(t.pushListSlc).then((function(){t.$Modal.remove(),t.getWatchList()}))}}):this.$Message.warning({content:"请选择要推送的人员",background:!0})},pushDuty:function(t){var e=this;this.$Modal.confirm({title:"提示",content:"是否确认推送?",loading:!0,onOk:function(){e.pushM([t.watchid]).then((function(){e.$Modal.remove()}))}})},pushM:function(t){var e=this;return new Promise((function(a){o["W"](t).then((function(t){1==t.code?e.$Message.success({content:t.msg,background:!0}):e.$Message.error({content:t.msg_detail,background:!0})})).finally((function(){a()}))}))},updateDuty:function(t){this.updateDutyFrom=d.a.cloneDeep(g(g({},t),{},{username1:t.card_name})),this.updateDutyModal=!0},deleteDuty:function(t){var e=this;this.publicConfirm((function(){h["myEncapsulationFunction"](Object(r["a"])(s.a.mark((function a(){var i,n;return s.a.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return i={id:t.watchid},a.next=3,o["Q"](i);case 3:return n=a.sent,e.getWatchList(),a.abrupt("return",n);case 6:case"end":return a.stop()}}),a)}))))}))},search:function(){var t=Object(r["a"])(s.a.mark((function t(){return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.cityListAllObject.startTimeSearch=""!==this.cityListAllObject.startTimeFlag?this.cityListAllObject.startTimeFlag:this.cityListAllObject.startTime,this.cityListAllObject.endTimeSearch=""!==this.cityListAllObject.endtTimeFlag?this.cityListAllObject.endtTimeFlag:this.cityListAllObject.endTime,void 0===this.cityListAllObject.is_lead?this.cityListAllObject.is_lead=3:this.cityListAllObject.is_lead,this.cityListAlltSearchFlagObject=d.a.cloneDeep(this.cityListAllObject),this.pageKey++,this.page_index=1,t.next=8,this.getWatchList();case 8:t.sent;case 9:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),dutyDateSelect:function(t){this.cityListAllObject.startTimeFlag=t[0],this.cityListAllObject.endtTimeFlag=t[1]},dutyDate:function(t){this.formValidate.watch_date=t},asyncOK:function(){var t=this,e=d.a.cloneDeep(this.formValidate);this.$refs["formValidate"].validate((function(a){a&&h["myEncapsulationFunction"](Object(r["a"])(s.a.mark((function a(){var i;return s.a.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,o["O"](e);case 2:return i=a.sent,a.next=5,t.getWatchList();case 5:return t.addDuty=!1,a.abrupt("return",i);case 7:case"end":return a.stop()}}),a)}))))}))},asyncCancel:function(){this.addDuty=!1},exportTemplate:function(){var t=y()(this.tempYearMonth).format("YYYY-MM").split("-");o["U"](t[0],t[1]).then((function(t){window.open(t.response)}))},handleButtonClick:function(){var t=Object(r["a"])(s.a.mark((function t(e){var a;return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:t.t0=e,t.next="addDuty"===t.t0?3:"dutyModelOutput"===t.t0?8:"dutyDataOutput"===t.t0?13:"dutyModelInput"===t.t0?16:18;break;case 3:return this.publicModalTitle="增添值班数据",this.formValidate.watch_date="",this.$refs["formValidate"].resetFields(),this.addDuty=!0,t.abrupt("break",18);case 8:return t.next=10,o["U"]();case 10:return a=t.sent,window.location.href=this.$ascURL+a.response,t.abrupt("break",18);case 13:return this.publicModalTitle="值班数据导出",this.dutyDataInputModal=!0,t.abrupt("break",18);case 16:this.publicModalTitle="值班模板导入",this.dutyModelImportModal=!0;case 18:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),addDutySearchSelectList:function(){var t=this;Promise.all([this.getSearchSelectListPromiseAllAction("dept_name","值班部门","dept_id",o["u"]),this.getSearchSelectListPromiseAllAction("dutyType","值班类型","watchtypeid",o["A"]),this.getSearchSelectListPromiseAllAction("campusname","值班校区","campusid",o["t"])]).then((function(e){t.addDutySlectList=e,console.log("🚀🚀🚀,",e),t.DatePickerKey++}))},getSearchSelectListPromiseAllAction:function(t,e,a,i){return new Promise(function(){var t=Object(r["a"])(s.a.mark((function t(n,r){var l,c;return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,i();case 2:l=t.sent,c=[l.response,e,a],n(c);case 5:case"end":return t.stop()}}),t)})));return function(e,a){return t.apply(this,arguments)}}())},getSearchSelectList:function(){var t=this;Promise.all([this.getSearchSelectListPromiseAllAction("dutyType","值班类型:","dutyType",o["A"]),this.getSearchSelectListPromiseAllAction("dutyHourTime","值班时段:","dutyHourTime",o["w"]),this.getSearchSelectListPromiseAllAction("dutyCampus","值班校区:","dutyCampus",o["t"]),this.getSearchSelectListPromiseAllAction("dutyDepSelect","值班部门:","dutyDepSelect",o["u"])]).then((function(e){t.cityListAll=e}))},getWatchList:function(){var t=Object(r["a"])(s.a.mark((function t(){var e=this;return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:h["getInitListRequest"](Object(r["a"])(s.a.mark((function t(){var a,i;return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.tableLoading=!0,e.pushListSlc=[],a={page_index:e.page_index,page_size:e.page_size,start_time:""!==e.cityListAlltSearchFlagObject.startTimeSearch?e.cityListAlltSearchFlagObject.startTimeSearch:e.cityListAllObject.startTime,end_time:""!==e.cityListAlltSearchFlagObject.endTimeSearch?e.cityListAlltSearchFlagObject.endTimeSearch:e.cityListAllObject.endTime,is_lead:e.cityListAlltSearchFlagObject.is_lead,dep_id:e.cityListAlltSearchFlagObject.dutyDepSelect,key_name:e.cityListAlltSearchFlagObject.key_name,type_id:e.cityListAlltSearchFlagObject.dutyType,watchhour_time:e.cityListAlltSearchFlagObject.dutyHourTime,campus_id:e.cityListAlltSearchFlagObject.dutyCampus},t.next=5,o["x"](a);case 5:i=t.sent,e.data=i.response.data,e.total=i.response.data_count,e.tableLoading=!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}(),currentPage:function(t){this.page_index=t,this.getWatchList()},currentPageCount:function(t){this.page_size=t,this.getWatchList()},publicConfirm:function(t){this.$Modal.confirm({title:"警告",content:"<p>是否继续此操作?</p>",cancelText:"取消",okText:"确定",onOk:function(){var e=Object(r["a"])(s.a.mark((function e(){return s.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 a(){return e.apply(this,arguments)}return a}()})},publicMessage:function(t){1!==t.code?this.$Message["warning"]({background:!0,content:"操作异常"}):(this.$Spin.hide(),this.$Message["success"]({background:!0,content:"操作成功"}))},GetUserSelect:function(){var t=this;o["s"]({condition:""}).then((function(e){t.userArray=e.response}))}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){var t=new Date,e=y()(t).format("YYYY-MM-")+y()(t).startOf("month").format("DD"),a=y()(t).format("YYYY-MM-")+y()(t).endOf("month").format("DD");this.cityListAllObject.startTimeFlag=e,this.cityListAllObject.endtTimeFlag=a,this.cityListAlltSearchFlagObject.startTimeSearch=e,this.cityListAlltSearchFlagObject.endTimeSearch=a,this.dutyDateX=[new Date(e),new Date(a)],this.addDutySearchSelectList(),this.getWatchList(),this.getSearchSelectList(),this.GetUserSelect()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},_=b,w=(a("6d00"),a("2877")),v=Object(w["a"])(_,i,n,!1,null,"eeae8b34",null);e["default"]=v.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d8989a66"],{3846:function(t,e,a){a("9e1e")&&"g"!=/./g.flags&&a("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:a("0bfb")})},"5df3":function(t,e,a){"use strict";var n=a("02f4")(!0);a("01f9")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,a=this._i;return a>=e.length?{value:void 0,done:!0}:(t=n(e,a),this._i+=t.length,{value:t,done:!1})}))},"6b54":function(t,e,a){"use strict";a("3846");var n=a("cb7c"),r=a("0bfb"),i=a("9e1e"),l="toString",s=/./[l],c=function(t){a("2aba")(RegExp.prototype,l,t,!0)};a("79e5")((function(){return"/a/b"!=s.call({source:"a",flags:"b"})}))?c((function(){var t=n(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?r.call(t):void 0)})):s.name!=l&&c((function(){return s.call(this)}))},"9ca0":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Card",{staticStyle:{width:"100%"},scopedSlots:t._u([{key:"title",fn:function(){return[a("div",{staticStyle:{display:"flex","align-items":"center"}},[a("h3",{staticStyle:{height:"30px",display:"flex","align-items":"center"}},[t._v("值班安排    ")]),t.selectFlag?t._e():a("div",{staticClass:"selectTitleIcon",staticStyle:{display:"flex","align-items":"center"},on:{click:function(e){t.selectFlag=!0}}},[a("span",[t._v("展开")]),a("Icon",{staticClass:"selectTitleIcon",attrs:{size:25,type:"ios-arrow-dropright",color:"#2d8cf0"}})],1),t.selectFlag?a("div",{staticClass:"selectTitleIcon",staticStyle:{display:"flex","align-items":"center"},on:{click:function(e){t.selectFlag=!t.selectFlag}}},[a("span",[t._v("收起")]),a("Icon",{staticClass:"selectTitleIcon",attrs:{size:25,type:"ios-arrow-dropdown",color:"#2d8cf0"}})],1):t._e()]),a("transition",{attrs:{name:"move-up"}},[t.selectFlag?a("div",[a("Row",{staticStyle:{"margin-top":"10px"},attrs:{justify:"space-between",wrap:""}},t._l(t.cityListAll,(function(e,n){return a("Col",{key:n,attrs:{span:4.5}},[a("div",{staticStyle:{display:"flex","flex-wrap":"nowrap","align-items":"center"}},[a("span",{staticStyle:{"margin-right":"5px"}},[t._v(t._s(e[1]))]),a("Select",{key:n,staticStyle:{width:"10.5vw"},attrs:{clearable:""},model:{value:t.cityListAllObject[e[2]],callback:function(a){t.$set(t.cityListAllObject,e[2],a)},expression:"cityListAllObject[item[2]]"}},t._l(e[0],(function(e,n){return a("Option",{key:n,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1)])})),1),a("Row",{staticStyle:{"margin-top":"10px"},attrs:{justify:"space-between",wrap:""}},[a("Col",{attrs:{span:4.5}},[a("div",{staticStyle:{display:"flex","justify-content":"center","align-items":"center"}},[a("span",[t._v("值班日期: ")]),a("DatePicker",{staticStyle:{width:"10.5vw"},attrs:{clearable:"",type:"daterange",placeholder:"请选择值班日期"},on:{"on-change":t.dutyDateSelect},model:{value:t.dutyDateX,callback:function(e){t.dutyDateX=e},expression:"dutyDateX"}})],1)]),a("Col",{attrs:{span:4.5}},[a("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center"}},[a("span",[t._v("值班领导:    ")]),a("Select",{staticStyle:{width:"10.5vw"},attrs:{clearable:"",placeholder:"是否为值班领导"},model:{value:t.cityListAllObject.is_lead,callback:function(e){t.$set(t.cityListAllObject,"is_lead",e)},expression:"cityListAllObject.is_lead"}},t._l(t.dutyRole,(function(e,n){return a("Option",{key:n,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1)],1)]),a("Col",{attrs:{span:4.5}},[a("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center"}},[a("span",[t._v("姓名/卡号:")]),a("Input",{staticStyle:{width:"10.5vw","margin-right":"8.5vw"},attrs:{clearable:"",placeholder:"请输入姓名或卡号"},model:{value:t.cityListAllObject.key_name,callback:function(e){t.$set(t.cityListAllObject,"key_name",e)},expression:"cityListAllObject.key_name"}})],1)]),a("Col",{attrs:{span:4.5}},[a("Button",{attrs:{type:"primary",icon:"ios-search"},on:{click:t.search}},[t._v("查询数据")])],1)],1)],1):t._e()])]},proxy:!0},{key:"extra",fn:function(){return[a("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center"}},[a("Button",{staticStyle:{"margin-right":"8px"},attrs:{type:"warning"},on:{click:t.batchPush}},[t._v("批量推送")]),a("Button",{staticStyle:{"margin-right":"8px"},attrs:{type:"warning"},on:{click:t.intershiftHandle}},[t._v("相互换班")]),a("ButtonGroup",[a("Button",{attrs:{icon:"ios-add-circle-outline"},on:{click:function(e){return t.handleButtonClick("addDuty")}}},[t._v("增添值班")]),a("Button",{attrs:{label:"dutyDataOutput",icon:"ios-log-out"},on:{click:t.dutyDataImport}},[t._v("数据导出\n ")]),a("Button",{staticStyle:{display:"flex","align-items":"center"},attrs:{icon:"ios-cloud-upload-outline",label:"dutyModelInput"},on:{click:function(e){return t.handleButtonClick("dutyModelInput")}}},[t._v("\n 模板导入\n ")]),a("Button",{attrs:{label:"dutyModelOutput",icon:"ios-log-out"},on:{click:function(e){t.exportModalShow=!0}}},[t._v("模板导出\n ")])],1)],1)]},proxy:!0}])},[a("Table",{attrs:{border:"",loading:t.tableLoading,columns:t.columns,data:t.data,height:t.tableHeightCal},on:{"on-select":t.onSelect,"on-select-cancel":t.onSelectCancel,"on-select-all":t.onSelectAll,"on-select-all-cancel":t.onSelectAllCancel},scopedSlots:t._u([{key:"watch_remark",fn:function(e){var a=e.row;return[t._v("\n "+t._s(a.watch_remark)+"\n")]}},{key:"is_lead",fn:function(e){var a=e.row;return[t._v("\n "+t._s(["值班教师","值班领导"][a.is_lead])+"\n ")]}},{key:"action",fn:function(e){var n=e.row;return[a("div",{staticStyle:{display:"flex","justify-content":"space-evenly"}},[a("Button",{attrs:{type:"warning",size:"small"},on:{click:function(e){return t.pushDuty(n)}}},[t._v("推送")]),a("Button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.intershiftHandle(n)}}},[t._v("相互换班")]),a("Button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.updateDuty(n)}}},[t._v("修改")]),a("Button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.deleteDuty(n)}}},[t._v("删除")])],1)]}}])}),a("div",{staticStyle:{width:"100%",height:"70px",display:"flex","align-items":"center"}},[a("Page",{key:t.pageKey,attrs:{"show-total":"","show-sizer":"","show-elevator":"",total:t.total,"page-size":t.page_size,"page-size-opts":[100,200,500,1e3],"model-value":"page_index"},on:{"on-change":t.currentPage,"on-page-size-change":t.currentPageCount}})],1)],1),a("Modal",{attrs:{title:t.publicModalTitle,closable:"","mask-closable":!1,width:"40%"},scopedSlots:t._u([{key:"footer",fn:function(){return[a("Button",{attrs:{type:"text"},on:{click:t.asyncCancel}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.asyncOK}},[t._v("确定")])]},proxy:!0}]),model:{value:t.addDuty,callback:function(e){t.addDuty=e},expression:"addDuty"}},[a("Form",{ref:"formValidate",attrs:{model:t.formValidate,rules:t.ruleValidate,"label-width":80}},[a("FormItem",{attrs:{label:"姓名",prop:"username1"}},[a("Select",{attrs:{filterable:"",placeholder:"请选择用户"},on:{"on-change":t.usernameChange},model:{value:t.formValidate.username1,callback:function(e){t.$set(t.formValidate,"username1",e)},expression:"formValidate.username1"}},t._l(t.userArray,(function(e,n){return a("Option",{key:n,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1),a("FormItem",{attrs:{label:"工号",prop:"card_name"}},[a("Input",{attrs:{placeholder:"请输入工号"},model:{value:t.formValidate.card_name,callback:function(e){t.$set(t.formValidate,"card_name",e)},expression:"formValidate.card_name"}})],1),a("FormItem",{attrs:{label:"联系方式",prop:"mobile"}},[a("Input",{attrs:{type:"number",placeholder:"请输入联系方式"},model:{value:t.formValidate.mobile,callback:function(e){t.$set(t.formValidate,"mobile",e)},expression:"formValidate.mobile"}})],1),t._l(t.addDutySlectList,(function(e,n){return a("FormItem",{key:n,attrs:{label:e[1],prop:e[2],"label-width":80}},[a("Select",{attrs:{placeholder:e[1],filterable:!0},model:{value:t.formValidate[e[2]],callback:function(a){t.$set(t.formValidate,e[2],a)},expression:"formValidate[item[2]]"}},t._l(e[0],(function(e,n){return a("Option",{key:n,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1)})),a("FormItem",{attrs:{label:"是否为值班领导",prop:"is_lead"}},[a("Select",{attrs:{placeholder:"是否为值班领导"},model:{value:t.formValidate.is_lead,callback:function(e){t.$set(t.formValidate,"is_lead",e)},expression:"formValidate.is_lead"}},t._l(t.dutyRole,(function(e,n){return a("Option",{key:n,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1)],1),a("FormItem",{attrs:{label:"值班日期",prop:"watch_date"}},[a("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"date",options:t.options1,placeholder:"请选择值班日期"},on:{"on-change":t.dutyDate},model:{value:t.formValidate.watch_date,callback:function(e){t.$set(t.formValidate,"watch_date",e)},expression:"formValidate.watch_date"}})],1),a("FormItem",{attrs:{label:"值班班级",prop:"watch_remark"}},[a("Input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:5},placeholder:"值班班级"},model:{value:t.formValidate.watch_remark,callback:function(e){t.$set(t.formValidate,"watch_remark",e)},expression:"formValidate.watch_remark"}})],1)],2)],1),a("Modal",{attrs:{title:"修改值班安排",width:"40%"},scopedSlots:t._u([{key:"footer",fn:function(){return[a("Button",{attrs:{type:"text"},on:{click:t.updateCancel}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.updateOK}},[t._v("确定")])]},proxy:!0}]),model:{value:t.updateDutyModal,callback:function(e){t.updateDutyModal=e},expression:"updateDutyModal"}},[a("Form",{ref:"updateDutyFrom",attrs:{model:t.updateDutyFrom,rules:t.updeteRuleValidate,"label-width":80}},[a("FormItem",{attrs:{label:"姓名",prop:"username1"}},[a("Select",{attrs:{filterable:"",placeholder:"请选择用户"},on:{"on-change":t.usernameChange1},model:{value:t.updateDutyFrom.username1,callback:function(e){t.$set(t.updateDutyFrom,"username1",e)},expression:"updateDutyFrom.username1"}},t._l(t.userArray,(function(e,n){return a("Option",{key:n,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1),a("FormItem",{attrs:{label:"工号",prop:"card_name"}},[a("Input",{attrs:{placeholder:"请输入工号"},model:{value:t.updateDutyFrom.card_name,callback:function(e){t.$set(t.updateDutyFrom,"card_name",e)},expression:"updateDutyFrom.card_name"}})],1),a("FormItem",{attrs:{label:"联系方式",prop:"mobile"}},[a("Input",{attrs:{type:"number",placeholder:"请输入联系方式"},model:{value:t.updateDutyFrom.mobile,callback:function(e){t.$set(t.updateDutyFrom,"mobile",e)},expression:"updateDutyFrom.mobile"}})],1),t._l(t.addDutySlectList,(function(e,n){return a("FormItem",{key:n,attrs:{label:e[1],prop:e[2],"label-width":80}},[a("Select",{attrs:{placeholder:e[1]},model:{value:t.updateDutyFrom[e[2]],callback:function(a){t.$set(t.updateDutyFrom,e[2],a)},expression:"updateDutyFrom[item[2]]"}},t._l(e[0],(function(e,n){return a("Option",{key:n,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1)})),a("FormItem",{attrs:{label:"是否为值班领导",prop:"is_lead"}},[a("Select",{attrs:{placeholder:"是否为值班领导"},model:{value:t.updateDutyFrom.is_lead,callback:function(e){t.$set(t.updateDutyFrom,"is_lead",e)},expression:"updateDutyFrom.is_lead"}},t._l(t.dutyRole,(function(e,n){return a("Option",{key:n,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1)],1),a("FormItem",{attrs:{label:"值班日期",prop:"watch_date"}},[a("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"date",value:t.updateDutyFrom.watch_date,options:t.options1},on:{"on-change":t.updateDutyDate}})],1),a("FormItem",{attrs:{label:"值班班级",prop:"watch_remark"}},[a("Input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:5},placeholder:"值班班级"},model:{value:t.updateDutyFrom.watch_remark,callback:function(e){t.$set(t.updateDutyFrom,"watch_remark",e)},expression:"updateDutyFrom.watch_remark"}})],1)],2)],1),a("Modal",{attrs:{title:t.publicModalTitle,width:"40%"},scopedSlots:t._u([{key:"footer",fn:function(){return[a("Button",{attrs:{type:"text"},on:{click:t.dutyDataInputCancel}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.dutyDataInputOK}},[t._v("确定")])]},proxy:!0}]),model:{value:t.dutyDataInputModal,callback:function(e){t.dutyDataInputModal=e},expression:"dutyDataInputModal"}},[a("Form",{ref:"dutyDataInput",attrs:{model:t.dutyDataInputObject,rules:t.rulesDutyDataInput,"label-width":80}},[a("FormItem",{attrs:{label:"姓名或卡号",prop:"key_name"}},[a("Input",{attrs:{placeholder:"请输入姓名或卡号"},model:{value:t.dutyDataInputObject.key_name,callback:function(e){t.$set(t.dutyDataInputObject,"key_name",e)},expression:"dutyDataInputObject.key_name"}})],1),a("FormItem",{attrs:{label:"值班日期",prop:"watch_date"}},[a("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"daterange"},on:{"on-change":t.dutyDataInputDateSelect}})],1),a("FormItem",{attrs:{label:"是否为值班领导",prop:"is_lead"}},[a("Select",{attrs:{placeholder:"是否为值班领导"},model:{value:t.dutyDataInputObject.is_lead,callback:function(e){t.$set(t.dutyDataInputObject,"is_lead",e)},expression:"dutyDataInputObject.is_lead"}},t._l(t.dutyRole,(function(e,n){return a("Option",{key:n,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1)],1),t._l(t.addDutySlectList,(function(e,n){return a("FormItem",{key:n,attrs:{label:e[1],prop:e[2],"label-width":80}},[a("Select",{attrs:{placeholder:e[1]},model:{value:t.dutyDataInputObject[e[2]],callback:function(a){t.$set(t.dutyDataInputObject,e[2],a)},expression:"dutyDataInputObject[item[2]]"}},t._l(e[0],(function(e,n){return a("Option",{key:n,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1)}))],2)],1),a("Modal",{attrs:{title:t.publicModalTitle,width:"40%"},scopedSlots:t._u([{key:"footer",fn:function(){return[a("Button",{attrs:{type:"text"},on:{click:t.dutyModelImportCancel}},[t._v("取消")])]},proxy:!0}]),model:{value:t.dutyModelImportModal,callback:function(e){t.dutyModelImportModal=e},expression:"dutyModelImportModal"}},[a("Upload",{attrs:{"before-upload":t.dutyModelUpload,"on-error":t.dutyModelError,"on-success":t.dutyModelSuccess,"on-format-error":t.dutyModelFormatError,format:["xlsx"],multiple:!1,type:"drag",action:""}},[a("div",{staticStyle:{padding:"120px 0"}},[a("Icon",{staticStyle:{color:"#3399ff"},attrs:{type:"ios-cloud-upload",size:"52"}}),a("p",[t._v("值班模板文件上传")])],1)])],1),a("Modal",{attrs:{"mask-closable":!1,title:"模板导出"},on:{"on-ok":t.exportTemplate},model:{value:t.exportModalShow,callback:function(e){t.exportModalShow=e},expression:"exportModalShow"}},[a("span",[t._v("模板年月:")]),a("DatePicker",{attrs:{type:"month",format:"yyyy-MM",placeholder:""},model:{value:t.tempYearMonth,callback:function(e){t.tempYearMonth=e},expression:"tempYearMonth"}})],1),a("Modal",{attrs:{title:"相互换班",loading:t.intershift.loading,width:"600"},on:{"on-ok":t.confirmIntershift},model:{value:t.intershift.show,callback:function(e){t.$set(t.intershift,"show",e)},expression:" intershift.show"}},[a("Form",{ref:"Form5",attrs:{model:t.intershift.formData,rules:t.intershift.rule,"label-width":100}},[a("Card",[a("FormItem",{attrs:{label:"姓名",prop:"first_lodger_id"}},[a("Button",{attrs:{type:"primary",ghost:"",long:""},on:{click:function(e){return t.selectorHandle("relief")}}},[t._v(t._s(t.intershift.formData.name?""+t.intershift.formData.name:"请选择"))])],1),a("FormItem",{attrs:{label:"换班日期"}},[a("Select",{attrs:{filterable:"",clearable:""},model:{value:t.intershift.formData.date,callback:function(e){t.$set(t.intershift.formData,"date",e)},expression:"intershift.formData.date"}},t._l(t.intershift.dutyDateList,(function(e,n){return a("Option",{key:n,attrs:{value:e}},[t._v(t._s(e))])})),1)],1)],1),a("div",{staticClass:"ivu-text-center ivu-mt ivu-mb"},[a("Icon",{attrs:{type:"md-repeat",size:"48"}})],1),a("Card",[a("FormItem",{attrs:{label:"姓名",prop:""}},[a("Button",{attrs:{type:"primary",ghost:"",long:""},on:{click:function(e){return t.selectorHandle("theChangeover")}}},[t._v(t._s(t.intershift.formData.name?""+t.intershift.formData.name:"请选择"))])],1),a("FormItem",{attrs:{label:"换班日期"}},[a("Select",{attrs:{filterable:"",clearable:""},model:{value:t.intershift.formData.date,callback:function(e){t.$set(t.intershift.formData,"date",e)},expression:"intershift.formData.date"}},t._l(t.intershift.dutyDateList,(function(e,n){return a("Option",{key:n,attrs:{value:e}},[t._v(t._s(e))])})),1)],1)],1)],1)],1),a("Modal",{attrs:{styles:{top:"20px"},title:"选择人员",width:"1000","footer-hide":""},model:{value:t.personnelSelector.show,callback:function(e){t.$set(t.personnelSelector,"show",e)},expression:"personnelSelector.show"}},[a("Form",{ref:"formInline",attrs:{inline:"","label-position":"right","label-width":80}},[t._e(),t._e(),t._e(),a("FormItem",{attrs:{label:"姓名/卡号"}},[a("Input",{staticStyle:{width:"200px"},attrs:{clearable:"",placeholder:"请输入关键字"},model:{value:t.personnelSelector.params.coondition,callback:function(e){t.$set(t.personnelSelector.params,"coondition",e)},expression:"personnelSelector.params.coondition"}})],1),t._e(),a("FormItem",[a("Button",{attrs:{type:"primary"},on:{click:t.handleSearch}},[t._v("搜索")]),a("Button",{staticStyle:{"margin-left":"10px"},on:{click:t.handleReset}},[t._v("重置")])],1)],1),a("div",[a("Table",{ref:"table",attrs:{size:"small",height:"500",stripe:"",border:"","highlight-row":"",columns:t.personnelSelector.tableColumns,data:t.personnelSelector.tableData,loading:t.personnelSelector.loading},on:{"on-selection-change":t.selectionChange},scopedSlots:t._u([{key:"action",fn:function(e){var n=e.row;return[a("a",{on:{click:function(e){return t.pick(n)}}},[t._v("选择")])]}}])}),a("div",{staticClass:"ivu-mt ivu-text-center"},[a("Page",{attrs:{"show-total":"","show-sizer":"",total:t.personnelSelector.total,current:t.personnelSelector.params.page,"page-size":t.personnelSelector.params.page_size,"page-size-opts":[10,20,50,100,1e3,5e3,1e4]},on:{"update:current":function(e){return t.$set(t.personnelSelector.params,"page",e)},"on-change":t.handleChangeCurrent,"on-page-size-change":t.handleChangepage_size}})],1)],1)],1)],1)},r=[],i=(a("8e6e"),a("456d"),a("ac6a"),a("5df3"),a("28a5"),a("20d6"),a("96cf"),a("3b8d")),l=(a("6b54"),a("6762"),a("2fdb"),a("7f7f"),a("bd86")),s=(a("a481"),a("967e")),c=a.n(s),o=a("5e9b"),u=a("2ef0"),d=a.n(u),p=a("c276"),m=(a("a78e"),a("5a0c")),h=a.n(m),y=a("806c"),f=a("b6bd");function g(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function b(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?g(Object(a),!0).forEach((function(e){Object(l["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):g(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function _(t,e){var a={condition:t.condition};return f["a"].get("/api/UserInfo/api/UserInfo/GetUserSelect",b({params:a},e))}function v(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function S(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?v(Object(a),!0).forEach((function(e){Object(l["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):v(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var w={components:{},data:function(){return{personnelSelector:{show:!1,params:{grade:"",classVal:"",deptyId:"",lodgerKeyWord:"",gender:"",page:1,page_size:10},loading:!1,tableData:[{name:"张三",card_number:"001",id:1},{name:"李四",card_number:"002",id:2},{name:"王五",card_number:"003",id:3},{name:"赵六",card_number:"004",id:4},{name:"孙七",card_number:"005",id:5}],tableColumns:[{title:"姓名",key:"name",minWidth:100},{title:"工号",key:"card_number",minWidth:100},{title:"操作",slot:"action",width:100,align:"center"}],total:0,current:1,size:10},intershift:{show:!1,formData:{name:"",card_number:"",date:"",user_id:""},dutyDateList:[],rules:{name:[{required:!0,message:"请选择人员",trigger:"change"}],date:[{required:!0,message:"请选择换班日期",trigger:"change"}]}},userArray:[],tableLoading:!1,fileUploadFlag:!1,loadingStatus:!1,file:null,dutyModelImportModal:!1,dutyDataInputObject:{startTime:"",endTime:"",is_lead:"",watch_date:"",campusid:"",watch_hour_id:"",watchtypeid:"",dept_id:""},publicModalTitle:"",dutyDataInputModal:!1,DatePickerKey:1,updateDutyFrom:{},updateDutyModal:!1,addDutySlectList:[],dutyRole:[{label:"否",value:0},{label:"是",value:1}],options1:{disabledDate:function(t){return t&&t.valueOf()<Date.now()-864e5}},formValidate:{username:"",watch_date:"",mobile:"",is_lead:"",card_name:"",watch_remark:"",campusid:"",watch_hour_id:"",watchtypeid:"",dept_id:""},rulesDutyDataInput:{key_name:[{type:"string",required:!0,message:"姓名或工号不能为空!",trigger:"blur"}],watch_date:[{type:"string",required:!0,message:"值班日期不能为空!",trigger:"change"}],is_lead:[{type:"number",required:!0,message:"值班权限不能为空!",trigger:"change"}],campusid:[{type:"string",required:!0,message:"值班类型不能为空!",trigger:"change"}],watchtypeid:[{type:"string",required:!0,message:"值班校区不能为空!",trigger:"change"}],dept_id:[{type:"string",required:!0,message:"值班部门不能为空!",trigger:"change"}]},updeteRuleValidate:{username1:[{type:"string",required:!0,message:"姓名不能为空!",trigger:"change"}],card_name:[{type:"string",required:!0,message:"工号不能为空!!",trigger:"blur"}],mobile:[{type:"string",required:!0,message:"联系方式不能为空!",trigger:"blur"}],watch_date:[{type:"string",required:!0,message:"值班日期不能为空!",trigger:"blur"}],is_lead:[{type:"number",required:!0,message:"值班权限不能为空!",trigger:"change"}],campusid:[{type:"string",required:!0,message:"值班类型不能为空!",trigger:"change"}],watchtypeid:[{type:"string",required:!0,message:"值班校区不能为空!",trigger:"change"}],dept_id:[{type:"string",required:!0,message:"值班部门不能为空!",trigger:"change"}]},ruleValidate:{username1:[{type:"string",required:!0,message:"姓名不能为空!",trigger:"change"}],card_name:[{type:"string",required:!0,message:"工号不能为空!!",trigger:"change"}],mobile:[{type:"string",required:!0,message:"联系方式不能为空!",trigger:"blur"}],watch_date:[{type:"string",required:!0,message:"值班日期不能为空!",trigger:"change"}],is_lead:[{type:"number",required:!0,message:"值班权限不能为空!",trigger:"change"}],campusid:[{type:"string",required:!0,message:"值班类型不能为空!",trigger:"change"}],watchtypeid:[{type:"string",required:!0,message:"值班校区不能为空!",trigger:"change"}],dept_id:[{type:"string",required:!0,message:"值班部门不能为空!",trigger:"change"}]},addDutyLoading:!0,addDuty:!1,selectFlag:!1,cityListAllObject:{dutyType:"",dutyHourTime:"",dutyCampus:"",dutyDepSelect:"",key_name:"",is_lead:3,dutyDate:"",startTime:(new Date).toLocaleDateString("cn",{hour12:!1}).replace(/\//g,"-"),endTime:(new Date).toLocaleDateString("cn",{hour12:!1}).replace(/\//g,"-"),startTimeSearch:"",endTimeSearch:"",startTimeFlag:"",endTimeFlag:""},cityListAlltSearchFlagObject:{dutyType:"",dutyHourTime:"",dutyCampus:"",dutyDepSelect:"",key_name:"",is_lead:3,dutyDate:"",startTimeSearch:"",endTimeSearch:""},buttonSize:"",searchSlecte:["值班类型","值班部门","值班校区"],cityListAll:[],model1:"",model2:"",model3:"",model4:"",pageKey:1,total:0,page_index:1,page_size:100,is_lead:3,columns:[{type:"selection",width:60,align:"center",fixed:"left"},{title:"姓名",key:"username",minWidth:150},{title:"工号",key:"card_name",minWidth:150},{title:"联系方式",key:"mobile",minWidth:150},{title:"值班部门",key:"dept_name",minWidth:150},{title:"值班类型",key:"watchtypename",minWidth:150},{title:"值班校区",key:"campusname",minWidth:150},{title:"值班权限",slot:"is_lead",minWidth:150},{title:"值班班级",resizable:!0,slot:"watch_remark",width:300},{title:"值班时间",key:"watch_hour_time",minWidth:150},{title:"值班日期",key:"watch_date",minWidth:150,sortable:!0},{title:"操作",slot:"action",minWidth:280,align:"center",fixed:"right"}],data:[],pushListSlc:[],exportModalShow:!1,tempYearMonth:"",dutyDateX:[]}},computed:{tableHeightCal:function(){return document.documentElement.clientHeight-360},util:function(){return p["a"]}},watch:{"cityListAllObject.dutyType":function(t,e){console.log("🚀🚀🚀,",t)},"cityListAllObject.dutyHourTime":function(t,e){console.log("🚀🚀🚀,",t)},"cityListAllObject.dutyCampus":function(t,e){console.log("🚀🚀🚀,",t)},"cityListAllObject.dutyDepSelect":function(t,e){console.log("🚀🚀🚀,",t)},dutyDataInputObject:{deep:!0,handler:function(t,e){console.log("🚀🚀🚀,",t)}},cityListAllObject:{deep:!0,handler:function(t,e){console.log("🚀🚀🚀,",t)}},formValidate:{deep:!0,handler:function(t,e){console.log("🚀🚀🚀,",t)}}},methods:{selectorHandle:function(){this.getPersonnelList(),this.personnelSelector.show=!0},cascaderChange:function(t){this.personnelSelector.params.classVal=t,this.getPersonnelList()},handleSearch:function(){this.personnelSelector.params.page=1,this.getPersonnelList()},handleReset:function(){this.personnelSelector.params={grade:"",classVal:"",deptyId:"",lodgerKeyWord:"",gender:"",page:1,page_size:10},this.getPersonnelList()},pick:function(t){this.intershift.formData=S(S({},this.intershift.formData),{},{name:t.name,card_number:t.card_number,user_id:t.id}),this.personnelSelector.show=!1},handleChangeCurrent:function(t){this.personnelSelector.params.page=t,this.getPersonnelList()},handleChangepage_size:function(t){this.personnelSelector.params.page_size=t,this.getPersonnelList()},selectionChange:function(t){this.personnelSelector.selection=t},getPersonnelList:function(){var t=this;this.personnelSelector.loading=!0;var e=S({},this.personnelSelector.params);_(e).then((function(e){if(1===e.code){var a=e.response.filter((function(e){var a=t.personnelSelector.params.coondition?t.personnelSelector.params.coondition.toLowerCase():"";return!a||e.name&&e.name.toString().toLowerCase().includes(a)}));t.personnelSelector.tableData=a.slice((t.personnelSelector.params.page-1)*t.personnelSelector.params.page_size,t.personnelSelector.params.page*t.personnelSelector.params.page_size),t.personnelSelector.total=a.length}})).catch((function(){t.$Message.error("获取人员列表失败")})).finally((function(){t.personnelSelector.loading=!1}))},intershiftHandle:function(t){this.intershift.show=!0,this.intershift.formData=S(S({},this.intershift.formData),{},{name:t.name,card_number:t.card_number,user_id:t.id})},confirmIntershift:function(){console.log("🚀🚀🚀,",this.intershift.formData)},usernameChange1:function(t){var e=this;o["N"]({card:t}).then((function(t){e.updateDutyFrom=S(S({},e.updateDutyFrom),t.response)}))},usernameChange:function(t){var e=this;o["N"]({card:t}).then((function(t){e.formValidate=S(S({},e.formValidate),t.response)}))},dutyModelImportCancel:function(){this.dutyModelImportModal=!1},dutyModelImportOK:function(){this.file=null,this.loadingStatus=!1},dutyModelUpload:function(){var t=Object(i["a"])(c.a.mark((function t(e){var a,n;return c.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=new FormData,a.append("file",e),t.next=4,o["T"](a);case 4:if(n=t.sent,1===n.code){t.next=9;break}this.$Message.error(n.msg_detail),t.next=12;break;case 9:return t.next=11,this.getWatchList();case 11:this.dutyModelImportModal=!1;case 12:return t.abrupt("return",!1);case 13:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),dutyModelFormatError:function(t,e){this.$Message.error("文件格式错误!")},dutyModelSuccess:function(t,e,a){this.$Message.info(t.msg)},dutyModelError:function(t,e,a){},dutyDataInputCancel:function(){this.dutyDataInputModal=!1},dutyDataImport:function(){var t=Object(i["a"])(c.a.mark((function t(){var e,a;return c.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e={start_time:""!==this.cityListAlltSearchFlagObject.startTimeSearch?this.cityListAlltSearchFlagObject.startTimeSearch:this.cityListAllObject.startTime,end_time:""!==this.cityListAlltSearchFlagObject.endTimeSearch?this.cityListAlltSearchFlagObject.endTimeSearch:this.cityListAllObject.endTime,is_lead:this.cityListAlltSearchFlagObject.is_lead,dep_id:this.cityListAlltSearchFlagObject.dutyDepSelect,key_name:this.cityListAlltSearchFlagObject.key_name,type_id:this.cityListAlltSearchFlagObject.dutyType,watchhour_time:this.cityListAlltSearchFlagObject.dutyHourTime,campus_id:this.cityListAlltSearchFlagObject.dutyCampus},t.next=3,o["P"](e);case 3:a=t.sent,window.location.href=this.$ascURL+a.response;case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),dutyDataInputOK:function(){var t=this;this.$refs["dutyDataInput"].validate(function(){var e=Object(i["a"])(c.a.mark((function e(a){var n,r;return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=6;break}return n={dep_id:t.dutyDataInputObject.dep_id,key_name:t.dutyDataInputObject.key_name,start_time:t.dutyDataInputObject.startTime,end_time:t.dutyDataInputObject.endTime,type_id:t.dutyDataInputObject.watchtypeid,watchhour_time:t.dutyDataInputObject.watch_hour_id,is_lead:t.dutyDataInputObject.is_lead},e.next=4,o["P"](n);case 4:r=e.sent,window.location.href=t.$ascURL+r.response;case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},dutyDataInputDateSelect:function(t){this.dutyDataInputObject.watch_date=t[0]+"-"+t[1],this.dutyDataInputObject.startTime=t[0],this.dutyDataInputObject.endTime=t[1]},updateDutyDate:function(t){this.updateDutyFrom.watch_date=t},updateCancel:function(){this.updateDutyModal=!1},updateOK:function(){var t=this;this.$refs["updateDutyFrom"].validate((function(e){e&&y["myEncapsulationFunction"](Object(i["a"])(c.a.mark((function e(){var a,n;return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t.updateDutyFrom,e.next=3,o["V"](a);case 3:return n=e.sent,t.getWatchList(),t.updateDutyModal=!1,e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)}))))}))},validateTime:function(t){var e=new Date(t),a=e.getFullYear(),n=e.getMonth(),r=e.getDate();return"".concat(a,"-").concat(n,"-").concat(r)},onSelect:function(t,e){this.pushListSlc.push(e.watchid)},onSelectCancel:function(t,e){var a=this.pushListSlc.findIndex((function(t){return t==e.watchid}));this.pushListSlc.splice(a,1)},onSelectAll:function(t){this.pushListSlc=t.map((function(t){return t.watchid}))},onSelectAllCancel:function(t){this.pushListSlc=[]},batchPush:function(){var t=this;0!=this.pushListSlc.length?this.$Modal.confirm({title:"提示",content:"是否确认推送?",loading:!0,onOk:function(){t.pushM(t.pushListSlc).then((function(){t.$Modal.remove(),t.getWatchList()}))}}):this.$Message.warning({content:"请选择要推送的人员",background:!0})},pushDuty:function(t){var e=this;this.$Modal.confirm({title:"提示",content:"是否确认推送?",loading:!0,onOk:function(){e.pushM([t.watchid]).then((function(){e.$Modal.remove()}))}})},pushM:function(t){var e=this;return new Promise((function(a){o["W"](t).then((function(t){1==t.code?e.$Message.success({content:t.msg,background:!0}):e.$Message.error({content:t.msg_detail,background:!0})})).finally((function(){a()}))}))},updateDuty:function(t){this.updateDutyFrom=d.a.cloneDeep(S(S({},t),{},{username1:t.card_name})),this.updateDutyModal=!0},deleteDuty:function(t){var e=this;this.publicConfirm((function(){y["myEncapsulationFunction"](Object(i["a"])(c.a.mark((function a(){var n,r;return c.a.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return n={id:t.watchid},a.next=3,o["Q"](n);case 3:return r=a.sent,e.getWatchList(),a.abrupt("return",r);case 6:case"end":return a.stop()}}),a)}))))}))},search:function(){var t=Object(i["a"])(c.a.mark((function t(){return c.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.cityListAllObject.startTimeSearch=""!==this.cityListAllObject.startTimeFlag?this.cityListAllObject.startTimeFlag:this.cityListAllObject.startTime,this.cityListAllObject.endTimeSearch=""!==this.cityListAllObject.endtTimeFlag?this.cityListAllObject.endtTimeFlag:this.cityListAllObject.endTime,void 0===this.cityListAllObject.is_lead?this.cityListAllObject.is_lead=3:this.cityListAllObject.is_lead,this.cityListAlltSearchFlagObject=d.a.cloneDeep(this.cityListAllObject),this.pageKey++,this.page_index=1,t.next=8,this.getWatchList();case 8:t.sent;case 9:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),dutyDateSelect:function(t){this.cityListAllObject.startTimeFlag=t[0],this.cityListAllObject.endtTimeFlag=t[1]},dutyDate:function(t){this.formValidate.watch_date=t},asyncOK:function(){var t=this,e=d.a.cloneDeep(this.formValidate);this.$refs["formValidate"].validate((function(a){a&&y["myEncapsulationFunction"](Object(i["a"])(c.a.mark((function a(){var n;return c.a.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,o["O"](e);case 2:return n=a.sent,a.next=5,t.getWatchList();case 5:return t.addDuty=!1,a.abrupt("return",n);case 7:case"end":return a.stop()}}),a)}))))}))},asyncCancel:function(){this.addDuty=!1},exportTemplate:function(){var t=h()(this.tempYearMonth).format("YYYY-MM").split("-");o["U"](t[0],t[1]).then((function(t){window.open(t.response)}))},handleButtonClick:function(){var t=Object(i["a"])(c.a.mark((function t(e){var a;return c.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:t.t0=e,t.next="addDuty"===t.t0?3:"dutyModelOutput"===t.t0?8:"dutyDataOutput"===t.t0?13:"dutyModelInput"===t.t0?16:18;break;case 3:return this.publicModalTitle="增添值班数据",this.formValidate.watch_date="",this.$refs["formValidate"].resetFields(),this.addDuty=!0,t.abrupt("break",18);case 8:return t.next=10,o["U"]();case 10:return a=t.sent,window.location.href=this.$ascURL+a.response,t.abrupt("break",18);case 13:return this.publicModalTitle="值班数据导出",this.dutyDataInputModal=!0,t.abrupt("break",18);case 16:this.publicModalTitle="值班模板导入",this.dutyModelImportModal=!0;case 18:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),addDutySearchSelectList:function(){var t=this;Promise.all([this.getSearchSelectListPromiseAllAction("dept_name","值班部门","dept_id",o["u"]),this.getSearchSelectListPromiseAllAction("dutyType","值班类型","watchtypeid",o["A"]),this.getSearchSelectListPromiseAllAction("campusname","值班校区","campusid",o["t"])]).then((function(e){t.addDutySlectList=e,console.log("🚀🚀🚀,",e),t.DatePickerKey++}))},getSearchSelectListPromiseAllAction:function(t,e,a,n){return new Promise(function(){var t=Object(i["a"])(c.a.mark((function t(r,i){var l,s;return c.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:l=t.sent,s=[l.response,e,a],r(s);case 5:case"end":return t.stop()}}),t)})));return function(e,a){return t.apply(this,arguments)}}())},getSearchSelectList:function(){var t=this;Promise.all([this.getSearchSelectListPromiseAllAction("dutyType","值班类型:","dutyType",o["A"]),this.getSearchSelectListPromiseAllAction("dutyHourTime","值班时段:","dutyHourTime",o["w"]),this.getSearchSelectListPromiseAllAction("dutyCampus","值班校区:","dutyCampus",o["t"]),this.getSearchSelectListPromiseAllAction("dutyDepSelect","值班部门:","dutyDepSelect",o["u"])]).then((function(e){t.cityListAll=e}))},getWatchList:function(){var t=Object(i["a"])(c.a.mark((function t(){var e=this;return c.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:y["getInitListRequest"](Object(i["a"])(c.a.mark((function t(){var a,n;return c.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.tableLoading=!0,e.pushListSlc=[],a={page_index:e.page_index,page_size:e.page_size,start_time:""!==e.cityListAlltSearchFlagObject.startTimeSearch?e.cityListAlltSearchFlagObject.startTimeSearch:e.cityListAllObject.startTime,end_time:""!==e.cityListAlltSearchFlagObject.endTimeSearch?e.cityListAlltSearchFlagObject.endTimeSearch:e.cityListAllObject.endTime,is_lead:e.cityListAlltSearchFlagObject.is_lead,dep_id:e.cityListAlltSearchFlagObject.dutyDepSelect,key_name:e.cityListAlltSearchFlagObject.key_name,type_id:e.cityListAlltSearchFlagObject.dutyType,watchhour_time:e.cityListAlltSearchFlagObject.dutyHourTime,campus_id:e.cityListAlltSearchFlagObject.dutyCampus},t.next=5,o["x"](a);case 5:n=t.sent,e.data=n.response.data,e.total=n.response.data_count,e.tableLoading=!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}(),currentPage:function(t){this.page_index=t,this.getWatchList()},currentPageCount:function(t){this.page_size=t,this.getWatchList()},publicConfirm:function(t){this.$Modal.confirm({title:"警告",content:"<p>是否继续此操作?</p>",cancelText:"取消",okText:"确定",onOk:function(){var e=Object(i["a"])(c.a.mark((function e(){return c.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 a(){return e.apply(this,arguments)}return a}()})},publicMessage:function(t){1!==t.code?this.$Message["warning"]({background:!0,content:"操作异常"}):(this.$Spin.hide(),this.$Message["success"]({background:!0,content:"操作成功"}))},GetUserSelect:function(){var t=this;o["s"]({condition:""}).then((function(e){t.userArray=e.response}))}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){var t=new Date,e=h()(t).format("YYYY-MM-")+h()(t).startOf("month").format("DD"),a=h()(t).format("YYYY-MM-")+h()(t).endOf("month").format("DD");this.cityListAllObject.startTimeFlag=e,this.cityListAllObject.endtTimeFlag=a,this.cityListAlltSearchFlagObject.startTimeSearch=e,this.cityListAlltSearchFlagObject.endTimeSearch=a,this.dutyDateX=[new Date(e),new Date(a)],this.addDutySearchSelectList(),this.getWatchList(),this.getSearchSelectList(),this.GetUserSelect()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},D=w,k=(a("c746"),a("2877")),O=Object(k["a"])(D,n,r,!1,null,"444bf3f9",null);e["default"]=O.exports},c746:function(t,e,a){"use strict";a("f462")},f462:function(t,e,a){}}]);
\ No newline at end of file
import { type AxiosRequestConfig } from "axios";
/**
* 删除考勤
* /api/Attendance/AttendanceDel
*/
export declare function getApiAttendanceAttendanceDel(params: GetApiAttendanceAttendanceDelParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
export interface GetApiAttendanceAttendanceDelParams {
id?: string;
}
import request from "@/plugins/request";
/**
* 删除考勤
* /api/Attendance/AttendanceDel
*/
export function getApiAttendanceAttendanceDel(params, config) {
const paramsInput = {
id: params.id,
};
return request.get(`/api/Attendance/AttendanceDel`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取考勤列表
* /api/Attendance/GetAttendanceList
*/
export declare function getApiAttendanceGetAttendanceList(config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
attendanceid: string;
title: string;
address: string;
latitude: string;
longitude: string;
offset: number;
accuracy: number;
createtime: string;
}[];
}>;
import request from "@/plugins/request";
/**
* 获取考勤列表
* /api/Attendance/GetAttendanceList
*/
export function getApiAttendanceGetAttendanceList(config) {
return request.get(`/api/Attendance/GetAttendanceList`, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取考勤时间
* /api/Attendance/GetSignTime
*/
export declare function getApiAttendanceGetSignTime(config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
signtimeid: string;
advance_minute: number;
};
}>;
import request from "@/plugins/request";
/**
* 获取考勤时间
* /api/Attendance/GetSignTime
*/
export function getApiAttendanceGetSignTime(config) {
return request.get(`/api/Attendance/GetSignTime`, config);
}
export * from "./getApiAttendanceGetAttendanceList";
export * from "./postApiAttendanceAttendanceSave";
export * from "./getApiAttendanceAttendanceDel";
export * from "./getApiAttendanceGetSignTime";
export * from "./postApiAttendanceGetSignTimeSave";
export * from "./postApiAttendanceImageUpLoad";
export * from "./postApiAttendanceAttendanceSubmit";
export * from "./getApiAttendanceGetAttendanceList";
export * from "./postApiAttendanceAttendanceSave";
export * from "./getApiAttendanceAttendanceDel";
export * from "./getApiAttendanceGetSignTime";
export * from "./postApiAttendanceGetSignTimeSave";
export * from "./postApiAttendanceImageUpLoad";
export * from "./postApiAttendanceAttendanceSubmit";
import { type AxiosRequestConfig } from "axios";
import { type Attendance } from "../../interface";
/**
* 保存考勤
* /api/Attendance/AttendanceSave
*/
export declare function postApiAttendanceAttendanceSave(input?: Attendance, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
import request from "@/plugins/request";
/**
* 保存考勤
* /api/Attendance/AttendanceSave
*/
export function postApiAttendanceAttendanceSave(input, config) {
return request.post(`/api/Attendance/AttendanceSave`, input, config);
}
import { type AxiosRequestConfig } from "axios";
import { type AttendanceRequests } from "../../interface";
/**
* 考勤打卡
* /api/Attendance/AttendanceSubmit
*/
export declare function postApiAttendanceAttendanceSubmit(input?: AttendanceRequests, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
import request from "@/plugins/request";
/**
* 考勤打卡
* /api/Attendance/AttendanceSubmit
*/
export function postApiAttendanceAttendanceSubmit(input, config) {
return request.post(`/api/Attendance/AttendanceSubmit`, input, config);
}
import { type AxiosRequestConfig } from "axios";
import { type SignTime } from "../../interface";
/**
* 保存考勤时间
* /api/Attendance/GetSignTimeSave
*/
export declare function postApiAttendanceGetSignTimeSave(input?: SignTime, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
import request from "@/plugins/request";
/**
* 保存考勤时间
* /api/Attendance/GetSignTimeSave
*/
export function postApiAttendanceGetSignTimeSave(input, config) {
return request.post(`/api/Attendance/GetSignTimeSave`, input, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 照片上传
* /api/Attendance/ImageUpLoad
*/
export declare function postApiAttendanceImageUpLoad(input?: PostApiAttendanceImageUpLoadInput, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
fileName: string;
fileNewName: string;
fileExtension: string;
filePath: string;
fileSize: number;
};
}>;
export interface PostApiAttendanceImageUpLoadInput {
/** 时间 */
time?: string;
/** 日期 */
date?: string;
/** 地点 */
address?: string;
/** 照片 */
file: File;
}
import request from "@/plugins/request";
/**
* 照片上传
* /api/Attendance/ImageUpLoad
*/
export function postApiAttendanceImageUpLoad(input, config) {
return request.post(`/api/Attendance/ImageUpLoad`, input, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 删除校区
* /api/Campus/api/Campus/CampusDel
*/
export declare function getApiCampusApiCampusCampusDel(params: GetApiCampusApiCampusCampusDelParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
export interface GetApiCampusApiCampusCampusDelParams {
id?: string;
}
import request from "@/plugins/request";
/**
* 删除校区
* /api/Campus/api/Campus/CampusDel
*/
export function getApiCampusApiCampusCampusDel(params, config) {
const paramsInput = {
id: params.id,
};
return request.get(`/api/Campus/api/Campus/CampusDel`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取校区详细
* /api/Campus/api/Campus/GetCampusInfo
*/
export declare function getApiCampusApiCampusGetCampusInfo(params: GetApiCampusApiCampusGetCampusInfoParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
campusid: string;
campusname: string;
createtime: string;
};
}>;
export interface GetApiCampusApiCampusGetCampusInfoParams {
id?: string;
}
import request from "@/plugins/request";
/**
* 获取校区详细
* /api/Campus/api/Campus/GetCampusInfo
*/
export function getApiCampusApiCampusGetCampusInfo(params, config) {
const paramsInput = {
id: params.id,
};
return request.get(`/api/Campus/api/Campus/GetCampusInfo`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取校区列表
* /api/Campus/api/Campus/GetCampusList
*/
export declare function getApiCampusApiCampusGetCampusList(params: GetApiCampusApiCampusGetCampusListParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
pageIndex: number;
pageSize: number;
pageCount: number;
dataCount: number;
title: {
field_id: string;
show_name: string;
show_type: number;
width: number;
order_by_flag: number;
default_hide_flag: number;
fixed_flag: number;
code: string;
option: {
label: string;
value: string;
}[];
children: any[];
}[];
data: {
campusid: string;
campusname: string;
createtime: string;
}[];
query: {
[x: string]: any;
};
};
}>;
export interface GetApiCampusApiCampusGetCampusListParams {
name?: string;
page_index?: number;
page_size?: number;
}
import request from "@/plugins/request";
/**
* 获取校区列表
* /api/Campus/api/Campus/GetCampusList
*/
export function getApiCampusApiCampusGetCampusList(params, config) {
const paramsInput = {
name: params.name,
page_index: params.page_index,
page_size: params.page_size,
};
return request.get(`/api/Campus/api/Campus/GetCampusList`, {
params: paramsInput,
...config,
});
}
export * from "./getApiCampusApiCampusGetCampusList";
export * from "./getApiCampusApiCampusGetCampusInfo";
export * from "./postApiCampusApiCampusCampusSave";
export * from "./getApiCampusApiCampusCampusDel";
export * from "./getApiCampusApiCampusGetCampusList";
export * from "./getApiCampusApiCampusGetCampusInfo";
export * from "./postApiCampusApiCampusCampusSave";
export * from "./getApiCampusApiCampusCampusDel";
import { type AxiosRequestConfig } from "axios";
import { type Campus } from "../../interface";
/**
* 保存校区
* /api/Campus/api/Campus/CampusSave
*/
export declare function postApiCampusApiCampusCampusSave(input?: Campus, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
import request from "@/plugins/request";
/**
* 保存校区
* /api/Campus/api/Campus/CampusSave
*/
export function postApiCampusApiCampusCampusSave(input, config) {
return request.post(`/api/Campus/api/Campus/CampusSave`, input, config);
}
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";
/**
* 获取 IRepository 层文件
* /api/DbFirst/GetIRepositoryFiles
*/
export declare function getApiDbFirstGetIRepositoryFiles(config?: AxiosRequestConfig): import("axios").AxiosPromise<DeepRequired<boolean>>;
import request from "@/plugins/request";
/**
* 获取 IRepository 层文件
* /api/DbFirst/GetIRepositoryFiles
*/
export function getApiDbFirstGetIRepositoryFiles(config) {
return request.get(`/api/DbFirst/GetIRepositoryFiles`, config);
}
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";
/**
* 获取 IService 层文件
* /api/DbFirst/GetIServiceFiles
*/
export declare function getApiDbFirstGetIServiceFiles(config?: AxiosRequestConfig): import("axios").AxiosPromise<DeepRequired<boolean>>;
import request from "@/plugins/request";
/**
* 获取 IService 层文件
* /api/DbFirst/GetIServiceFiles
*/
export function getApiDbFirstGetIServiceFiles(config) {
return request.get(`/api/DbFirst/GetIServiceFiles`, config);
}
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";
/**
* 获取 Model 层文件
* /api/DbFirst/GetModelFiles
*/
export declare function getApiDbFirstGetModelFiles(config?: AxiosRequestConfig): import("axios").AxiosPromise<DeepRequired<boolean>>;
import request from "@/plugins/request";
/**
* 获取 Model 层文件
* /api/DbFirst/GetModelFiles
*/
export function getApiDbFirstGetModelFiles(config) {
return request.get(`/api/DbFirst/GetModelFiles`, config);
}
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";
/**
* 获取 Repository 层文件
* /api/DbFirst/GetRepositoryFiles
*/
export declare function getApiDbFirstGetRepositoryFiles(config?: AxiosRequestConfig): import("axios").AxiosPromise<DeepRequired<boolean>>;
import request from "@/plugins/request";
/**
* 获取 Repository 层文件
* /api/DbFirst/GetRepositoryFiles
*/
export function getApiDbFirstGetRepositoryFiles(config) {
return request.get(`/api/DbFirst/GetRepositoryFiles`, config);
}
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";
/**
* 获取 Services 层文件
* /api/DbFirst/GetServicesFiles
*/
export declare function getApiDbFirstGetServicesFiles(config?: AxiosRequestConfig): import("axios").AxiosPromise<DeepRequired<boolean>>;
import request from "@/plugins/request";
/**
* 获取 Services 层文件
* /api/DbFirst/GetServicesFiles
*/
export function getApiDbFirstGetServicesFiles(config) {
return request.get(`/api/DbFirst/GetServicesFiles`, config);
}
export * from "./postApiDbFirstGetFrameFiles";
export * from "./getApiDbFirstGetModelFiles";
export * from "./getApiDbFirstGetIRepositoryFiles";
export * from "./getApiDbFirstGetIServiceFiles";
export * from "./getApiDbFirstGetRepositoryFiles";
export * from "./getApiDbFirstGetServicesFiles";
export * from "./postApiDbFirstGetFrameFiles";
export * from "./getApiDbFirstGetModelFiles";
export * from "./getApiDbFirstGetIRepositoryFiles";
export * from "./getApiDbFirstGetIServiceFiles";
export * from "./getApiDbFirstGetRepositoryFiles";
export * from "./getApiDbFirstGetServicesFiles";
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";
/**
* 获取 整体框架 文件
* /api/DbFirst/GetFrameFiles
*/
export declare function postApiDbFirstGetFrameFiles(input?: string[], config?: AxiosRequestConfig): import("axios").AxiosPromise<DeepRequired<boolean>>;
import request from "@/plugins/request";
/**
* 获取 整体框架 文件
* /api/DbFirst/GetFrameFiles
*/
export function postApiDbFirstGetFrameFiles(input, config) {
return request.post(`/api/DbFirst/GetFrameFiles`, input, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 修改换班配置
* /api/DutyConfig/ChangeModeConfigSave
*/
export declare function getApiDutyConfigChangeModeConfigSave(params: GetApiDutyConfigChangeModeConfigSaveParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
export interface GetApiDutyConfigChangeModeConfigSaveParams {
value: string;
}
import request from "@/plugins/request";
/**
* 修改换班配置
* /api/DutyConfig/ChangeModeConfigSave
*/
export function getApiDutyConfigChangeModeConfigSave(params, config) {
const paramsInput = {
value: params.value,
};
return request.get(`/api/DutyConfig/ChangeModeConfigSave`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取换班方式配置
* /api/DutyConfig/GetChangeModeConfig
*/
export declare function getApiDutyConfigGetChangeModeConfig(config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
import request from "@/plugins/request";
/**
* 获取换班方式配置
* /api/DutyConfig/GetChangeModeConfig
*/
export function getApiDutyConfigGetChangeModeConfig(config) {
return request.get(`/api/DutyConfig/GetChangeModeConfig`, config);
}
export * from "./getApiDutyConfigGetChangeModeConfig";
export * from "./getApiDutyConfigChangeModeConfigSave";
export * from "./getApiDutyConfigGetChangeModeConfig";
export * from "./getApiDutyConfigChangeModeConfigSave";
import { type AxiosRequestConfig } from "axios";
/**
* 获取所有接口日志记录
* /api/Log/api/Log/GetLogAll
*/
export declare function getApiLogApiLogGetLogAll(params: GetApiLogApiLogGetLogAllParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
pageIndex: number;
pageSize: number;
pageCount: number;
dataCount: number;
title: {
field_id: string;
show_name: string;
show_type: number;
width: number;
order_by_flag: number;
default_hide_flag: number;
fixed_flag: number;
code: string;
option: {
label: string;
value: string;
}[];
children: any[];
}[];
data: {
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
id: string;
module: string;
type: string;
ip: string;
api: string;
method: string;
request: string;
response: string;
user_id: string;
user_name: string;
code: number;
error_msg: string;
createtime: string;
spend_time: number;
};
}[];
query: {
[x: string]: any;
};
}>;
export interface GetApiLogApiLogGetLogAllParams {
key_name?: string;
begin_time?: string;
end_time?: string;
page_index?: number;
page_size?: number;
}
import request from "@/plugins/request";
/**
* 获取所有接口日志记录
* /api/Log/api/Log/GetLogAll
*/
export function getApiLogApiLogGetLogAll(params, config) {
const paramsInput = {
key_name: params.key_name,
begin_time: params.begin_time,
end_time: params.end_time,
page_index: params.page_index,
page_size: params.page_size,
};
return request.get(`/api/Log/api/Log/GetLogAll`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取值班日志
* /api/Log/api/Log/GetWatchLogList
*/
export declare function getApiLogApiLogGetWatchLogList(params: GetApiLogApiLogGetWatchLogListParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
pageIndex: number;
pageSize: number;
pageCount: number;
dataCount: number;
title: {
field_id: string;
show_name: string;
show_type: number;
width: number;
order_by_flag: number;
default_hide_flag: number;
fixed_flag: number;
code: string;
option: {
label: string;
value: string;
}[];
children: any[];
}[];
data: {
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
watchlogid: string;
card_name: string;
name: string;
remark: string;
createtime: string;
file_link: string;
address: string;
sign: number;
sign_id: string;
address_locatioin: string;
};
}[];
query: {
[x: string]: any;
};
}>;
export interface GetApiLogApiLogGetWatchLogListParams {
name?: string;
page_index?: number;
page_size?: number;
}
import request from "@/plugins/request";
/**
* 获取值班日志
* /api/Log/api/Log/GetWatchLogList
*/
export function getApiLogApiLogGetWatchLogList(params, config) {
const paramsInput = {
name: params.name,
page_index: params.page_index,
page_size: params.page_size,
};
return request.get(`/api/Log/api/Log/GetWatchLogList`, {
params: paramsInput,
...config,
});
}
export * from "./getApiLogApiLogGetLogAll";
export * from "./getApiLogApiLogGetWatchLogList";
export * from "./getApiLogApiLogGetLogAll";
export * from "./getApiLogApiLogGetWatchLogList";
import { type AxiosRequestConfig } from "axios";
/**
* 生成token --测试
* /api/Login/api/Login/CheckLoginTest
*/
export declare function getApiLoginApiLoginCheckLoginTest(params: GetApiLoginApiLoginCheckLoginTestParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
accessToken: {
tokenContent: string;
expires: string;
};
refreshToken: {
tokenContent: string;
expires: string;
};
};
}>;
export interface GetApiLoginApiLoginCheckLoginTestParams {
name?: string;
}
import request from "@/plugins/request";
/**
* 生成token --测试
* /api/Login/api/Login/CheckLoginTest
*/
export function getApiLoginApiLoginCheckLoginTest(params, config) {
const paramsInput = {
name: params.name,
};
return request.get(`/api/Login/api/Login/CheckLoginTest`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 解析token
* /api/Login/api/Login/GetTokenInfo
*/
export declare function getApiLoginApiLoginGetTokenInfo(config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
cardNumber: string;
name: string;
role: string[];
admin_dept: string;
admin_dept_id: string;
};
}>;
import request from "@/plugins/request";
/**
* 解析token
* /api/Login/api/Login/GetTokenInfo
*/
export function getApiLoginApiLoginGetTokenInfo(config) {
return request.get(`/api/Login/api/Login/GetTokenInfo`, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* token刷新
* /api/Login/api/Login/RefreshToken
*/
export declare function getApiLoginApiLoginRefreshToken(config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
tokenContent: string;
expires: string;
};
}>;
import request from "@/plugins/request";
/**
* token刷新
* /api/Login/api/Login/RefreshToken
*/
export function getApiLoginApiLoginRefreshToken(config) {
return request.get(`/api/Login/api/Login/RefreshToken`, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 新版移动端单点
* /api/Login/api/Login/SSONewWX
*/
export declare function getApiLoginApiLoginSsoNewWx(params: GetApiLoginApiLoginSsoNewWxParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
accessToken: {
tokenContent: string;
expires: string;
};
refreshToken: {
tokenContent: string;
expires: string;
};
};
}>;
export interface GetApiLoginApiLoginSsoNewWxParams {
token: string;
}
import request from "@/plugins/request";
/**
* 新版移动端单点
* /api/Login/api/Login/SSONewWX
*/
export function getApiLoginApiLoginSsoNewWx(params, config) {
const paramsInput = {
token: params.token,
};
return request.get(`/api/Login/api/Login/SSONewWX`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* PC单点
* /api/Login/api/Login/SSOPC
*/
export declare function getApiLoginApiLoginSsopc(params: GetApiLoginApiLoginSsopcParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
accessToken: {
tokenContent: string;
expires: string;
};
refreshToken: {
tokenContent: string;
expires: string;
};
};
}>;
export interface GetApiLoginApiLoginSsopcParams {
token: string;
}
import request from "@/plugins/request";
/**
* PC单点
* /api/Login/api/Login/SSOPC
*/
export function getApiLoginApiLoginSsopc(params, config) {
const paramsInput = {
token: params.token,
};
return request.get(`/api/Login/api/Login/SSOPC`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 微信单点
* /api/Login/api/Login/SSOPCWX
*/
export declare function getApiLoginApiLoginSsopcwx(params: GetApiLoginApiLoginSsopcwxParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
accessToken: {
tokenContent: string;
expires: string;
};
refreshToken: {
tokenContent: string;
expires: string;
};
};
}>;
export interface GetApiLoginApiLoginSsopcwxParams {
code: string;
sign: string;
timestamp: string;
}
import request from "@/plugins/request";
/**
* 微信单点
* /api/Login/api/Login/SSOPCWX
*/
export function getApiLoginApiLoginSsopcwx(params, config) {
const paramsInput = {
code: params.code,
sign: params.sign,
timestamp: params.timestamp,
};
return request.get(`/api/Login/api/Login/SSOPCWX`, {
params: paramsInput,
...config,
});
}
export * from "./getApiLoginApiLoginCheckLoginTest";
export * from "./getApiLoginApiLoginSsopc";
export * from "./getApiLoginApiLoginSsoNewWx";
export * from "./getApiLoginApiLoginSsopcwx";
export * from "./getApiLoginApiLoginRefreshToken";
export * from "./getApiLoginApiLoginGetTokenInfo";
export * from "./getApiLoginApiLoginCheckLoginTest";
export * from "./getApiLoginApiLoginSsopc";
export * from "./getApiLoginApiLoginSsoNewWx";
export * from "./getApiLoginApiLoginSsopcwx";
export * from "./getApiLoginApiLoginRefreshToken";
export * from "./getApiLoginApiLoginGetTokenInfo";
import { type AxiosRequestConfig } from "axios";
/**
* 获取消息日志列表
* /api/Message/api/Message/GetMessageList
*/
export declare function getApiMessageApiMessageGetMessageList(params: GetApiMessageApiMessageGetMessageListParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
pageIndex: number;
pageSize: number;
pageCount: number;
dataCount: number;
title: {
field_id: string;
show_name: string;
show_type: number;
width: number;
order_by_flag: number;
default_hide_flag: number;
fixed_flag: number;
code: string;
option: {
label: string;
value: string;
}[];
children: any[];
}[];
data: {
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
msgid: string;
messageinfo: string;
send_time: string;
createtime: string;
reception_user_id: string;
reception_man: string;
reception_num: string;
send_state: number;
is_succeed: number;
meg_link: string;
remark: string;
watchid: string;
};
}[];
query: {
[x: string]: any;
};
}>;
export interface GetApiMessageApiMessageGetMessageListParams {
reception_man?: string;
begin_time?: string;
end_time?: string;
/** 发送状态 0-未发送,1-已发送 */
send_state?: string;
/** 是否成功 1-失败,2-成功 */
is_succeed?: string;
page_index?: number;
page_size?: number;
}
import request from "@/plugins/request";
/**
* 获取消息日志列表
* /api/Message/api/Message/GetMessageList
*/
export function getApiMessageApiMessageGetMessageList(params, config) {
const paramsInput = {
reception_man: params.reception_man,
begin_time: params.begin_time,
end_time: params.end_time,
send_state: params.send_state,
is_succeed: params.is_succeed,
page_index: params.page_index,
page_size: params.page_size,
};
return request.get(`/api/Message/api/Message/GetMessageList`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 重发
* /api/Message/api/Message/Messageretry
*/
export declare function getApiMessageApiMessageMessageretry(params: GetApiMessageApiMessageMessageretryParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
export interface GetApiMessageApiMessageMessageretryParams {
megid?: string;
}
import request from "@/plugins/request";
/**
* 重发
* /api/Message/api/Message/Messageretry
*/
export function getApiMessageApiMessageMessageretry(params, config) {
const paramsInput = {
megid: params.megid,
};
return request.get(`/api/Message/api/Message/Messageretry`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* /api/Message/api/Message/SendTest
*/
export declare function getApiMessageApiMessageSendTest(config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
import request from "@/plugins/request";
/**
* /api/Message/api/Message/SendTest
*/
export function getApiMessageApiMessageSendTest(config) {
return request.get(`/api/Message/api/Message/SendTest`, config);
}
export * from "./getApiMessageApiMessageGetMessageList";
export * from "./getApiMessageApiMessageMessageretry";
export * from "./getApiMessageApiMessageSendTest";
export * from "./getApiMessageApiMessageGetMessageList";
export * from "./getApiMessageApiMessageMessageretry";
export * from "./getApiMessageApiMessageSendTest";
import { type AxiosRequestConfig } from "axios";
/**
* 获取当前消息提醒配置
* /api/MessageConfig/api/MessageConfig/GetMessageConfigInfo
*/
export declare function getApiMessageConfigApiMessageConfigGetMessageConfigInfo(config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
megconfigid: string;
advance_day: number;
remind_time: string;
createtime: string;
time_task_id: string;
};
}>;
import request from "@/plugins/request";
/**
* 获取当前消息提醒配置
* /api/MessageConfig/api/MessageConfig/GetMessageConfigInfo
*/
export function getApiMessageConfigApiMessageConfigGetMessageConfigInfo(config) {
return request.get(`/api/MessageConfig/api/MessageConfig/GetMessageConfigInfo`, config);
}
export * from "./getApiMessageConfigApiMessageConfigGetMessageConfigInfo";
export * from "./postApiMessageConfigApiMessageConfigGetMessageConfigSave";
export * from "./getApiMessageConfigApiMessageConfigGetMessageConfigInfo";
export * from "./postApiMessageConfigApiMessageConfigGetMessageConfigSave";
import { type AxiosRequestConfig } from "axios";
import { type MessageConfig } from "../../interface";
/**
* 保存消息提醒配置
* /api/MessageConfig/api/MessageConfig/GetMessageConfigSave
*/
export declare function postApiMessageConfigApiMessageConfigGetMessageConfigSave(input?: MessageConfig, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
import request from "@/plugins/request";
/**
* 保存消息提醒配置
* /api/MessageConfig/api/MessageConfig/GetMessageConfigSave
*/
export function postApiMessageConfigApiMessageConfigGetMessageConfigSave(input, config) {
return request.post(`/api/MessageConfig/api/MessageConfig/GetMessageConfigSave`, input, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 领导日志初始化
* /api/SignRecord/api/SignRecord/LeadLogInit
*/
export declare function getApiSignRecordApiSignRecordLeadLogInit(params: GetApiSignRecordApiSignRecordLeadLogInitParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
export interface GetApiSignRecordApiSignRecordLeadLogInitParams {
signid?: string;
}
import request from "@/plugins/request";
/**
* 领导日志初始化
* /api/SignRecord/api/SignRecord/LeadLogInit
*/
export function getApiSignRecordApiSignRecordLeadLogInit(params, config) {
const paramsInput = {
signid: params.signid,
};
return request.get(`/api/SignRecord/api/SignRecord/LeadLogInit`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 设置是否需要签到签退
* /api/SignRecord/api/SignRecord/SignSetSave
*/
export declare function getApiSignRecordApiSignRecordSignSetSave(params: GetApiSignRecordApiSignRecordSignSetSaveParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
export interface GetApiSignRecordApiSignRecordSignSetSaveParams {
signid?: string;
sign_set?: number;
}
import request from "@/plugins/request";
/**
* 设置是否需要签到签退
* /api/SignRecord/api/SignRecord/SignSetSave
*/
export function getApiSignRecordApiSignRecordSignSetSave(params, config) {
const paramsInput = {
signid: params.signid,
sign_set: params.sign_set,
};
return request.get(`/api/SignRecord/api/SignRecord/SignSetSave`, {
params: paramsInput,
...config,
});
}
export * from "./postApiSignRecordApiSignRecordGetSignRecordList";
export * from "./postApiSignRecordApiSignRecordSignDataExport";
export * from "./postApiSignRecordApiSignRecordSignInOrOut";
export * from "./getApiSignRecordApiSignRecordSignSetSave";
export * from "./postApiSignRecordApiSignRecordSignLogSave";
export * from "./getApiSignRecordApiSignRecordLeadLogInit";
export * from "./postApiSignRecordApiSignRecordGetSignRecordList";
export * from "./postApiSignRecordApiSignRecordSignDataExport";
export * from "./postApiSignRecordApiSignRecordSignInOrOut";
export * from "./getApiSignRecordApiSignRecordSignSetSave";
export * from "./postApiSignRecordApiSignRecordSignLogSave";
export * from "./getApiSignRecordApiSignRecordLeadLogInit";
import { type AxiosRequestConfig } from "axios";
import { type SignRecordRequests } from "../../interface";
/**
* 获取签到列表
* /api/SignRecord/api/SignRecord/GetSignRecordList
*/
export declare function postApiSignRecordApiSignRecordGetSignRecordList(input?: SignRecordRequests, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
pageIndex: number;
pageSize: number;
pageCount: number;
dataCount: number;
title: {
field_id: string;
show_name: string;
show_type: number;
width: number;
order_by_flag: number;
default_hide_flag: number;
fixed_flag: number;
code: string;
option: {
label: string;
value: string;
}[];
children: any[];
}[];
data: {
signid: string;
card_name: string;
username: string;
content: string;
watch_date: string;
watch_hour_time: string;
watch_hour_id: string;
sign: number;
sign_set: number;
mobile: string;
createtime: string;
watchtypeid: string;
watchtypename: string;
campusid: string;
campusname: string;
sign_in_time: string;
sign_out_time: string;
sign_type: number;
is_lead: number;
watch_id: string;
is_del: number;
dept: string;
watch_remark: string;
}[];
query: {
[x: string]: any;
};
};
}>;
import request from "@/plugins/request";
/**
* 获取签到列表
* /api/SignRecord/api/SignRecord/GetSignRecordList
*/
export function postApiSignRecordApiSignRecordGetSignRecordList(input, config) {
return request.post(`/api/SignRecord/api/SignRecord/GetSignRecordList`, input, config);
}
import { type AxiosRequestConfig } from "axios";
import { type SignRecordRequests } from "../../interface";
/**
* 导出签到信息
* /api/SignRecord/api/SignRecord/SignDataExport
*/
export declare function postApiSignRecordApiSignRecordSignDataExport(input?: SignRecordRequests, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
import request from "@/plugins/request";
/**
* 导出签到信息
* /api/SignRecord/api/SignRecord/SignDataExport
*/
export function postApiSignRecordApiSignRecordSignDataExport(input, config) {
return request.post(`/api/SignRecord/api/SignRecord/SignDataExport`, input, config);
}
import { type AxiosRequestConfig } from "axios";
import { type SignInOrOutRequests } from "../../interface";
/**
* 批量签到签退
* /api/SignRecord/api/SignRecord/SignInOrOut
*/
export declare function postApiSignRecordApiSignRecordSignInOrOut(input?: SignInOrOutRequests[], config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
import request from "@/plugins/request";
/**
* 批量签到签退
* /api/SignRecord/api/SignRecord/SignInOrOut
*/
export function postApiSignRecordApiSignRecordSignInOrOut(input, config) {
return request.post(`/api/SignRecord/api/SignRecord/SignInOrOut`, input, config);
}
import { type AxiosRequestConfig } from "axios";
import { type SignLogSaveRequest } from "../../interface";
/**
* 填写日志
* /api/SignRecord/api/SignRecord/SignLogSave
*/
export declare function postApiSignRecordApiSignRecordSignLogSave(input?: SignLogSaveRequest, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
import request from "@/plugins/request";
/**
* 填写日志
* /api/SignRecord/api/SignRecord/SignLogSave
*/
export function postApiSignRecordApiSignRecordSignLogSave(input, config) {
return request.post(`/api/SignRecord/api/SignRecord/SignLogSave`, input, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 发送定时任务
* /api/TimeTask/TimeTaskSend
*/
export declare function getApiTimeTaskTimeTaskSend(config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
import request from "@/plugins/request";
/**
* 发送定时任务
* /api/TimeTask/TimeTaskSend
*/
export function getApiTimeTaskTimeTaskSend(config) {
return request.get(`/api/TimeTask/TimeTaskSend`, config);
}
export * from "./getApiTimeTaskTimeTaskSend";
export * from "./getApiTimeTaskTimeTaskSend";
import { type AxiosRequestConfig } from "axios";
/**
* 获取教师
* /api/UserInfo/api/UserInfo/GetTeacher
*/
export declare function getApiUserInfoApiUserInfoGetTeacher(params: GetApiUserInfoApiUserInfoGetTeacherParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
pageIndex: number;
pageSize: number;
pageCount: number;
dataCount: number;
title: {
field_id: string;
show_name: string;
show_type: number;
width: number;
order_by_flag: number;
default_hide_flag: number;
fixed_flag: number;
code: string;
option: {
label: string;
value: string;
}[];
children: any[];
}[];
data: {
tid: string;
number: string;
name: string;
school_area_id: string;
school_area_name: string;
did: string;
dept_name: string;
pid: string;
position_name: string;
concurrent_post_id: string;
concurrent_post_name: string;
gender_id: string;
gender_name: string;
title_id: string;
title_name: string;
title_level_id: string;
title_level_name: string;
phone: string;
openid: string;
}[];
query: {
[x: string]: any;
};
};
}>;
export interface GetApiUserInfoApiUserInfoGetTeacherParams {
condition?: string;
page_index?: number;
page_size?: number;
}
import request from "@/plugins/request";
/**
* 获取教师
* /api/UserInfo/api/UserInfo/GetTeacher
*/
export function getApiUserInfoApiUserInfoGetTeacher(params, config) {
const paramsInput = {
condition: params.condition,
page_index: params.page_index,
page_size: params.page_size,
};
return request.get(`/api/UserInfo/api/UserInfo/GetTeacher`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取用户详细
* /api/UserInfo/api/UserInfo/GetUserInfo
*/
export declare function getApiUserInfoApiUserInfoGetUserInfo(params: GetApiUserInfoApiUserInfoGetUserInfoParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
userid: string;
roleid: string;
name: string;
mobile: string;
openid: string;
card_name: string;
dept: string;
dept_id: string;
createtime: string;
admin_dept_id: string;
admin_dept: string;
};
}>;
export interface GetApiUserInfoApiUserInfoGetUserInfoParams {
id?: string;
}
import request from "@/plugins/request";
/**
* 获取用户详细
* /api/UserInfo/api/UserInfo/GetUserInfo
*/
export function getApiUserInfoApiUserInfoGetUserInfo(params, config) {
const paramsInput = {
id: params.id,
};
return request.get(`/api/UserInfo/api/UserInfo/GetUserInfo`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取用户信息(选项框)
* /api/UserInfo/api/UserInfo/GetUserSelect
*/
export declare function getApiUserInfoApiUserInfoGetUserSelect(params: GetApiUserInfoApiUserInfoGetUserSelectParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
name: string;
id: string;
}[];
}>;
export interface GetApiUserInfoApiUserInfoGetUserSelectParams {
condition?: string;
}
import request from "@/plugins/request";
/**
* 获取用户信息(选项框)
* /api/UserInfo/api/UserInfo/GetUserSelect
*/
export function getApiUserInfoApiUserInfoGetUserSelect(params, config) {
const paramsInput = {
condition: params.condition,
};
return request.get(`/api/UserInfo/api/UserInfo/GetUserSelect`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取用户信息-根据权限(选项框)
* /api/UserInfo/api/UserInfo/GetUserSelectByRole
*/
export declare function getApiUserInfoApiUserInfoGetUserSelectByRole(params: GetApiUserInfoApiUserInfoGetUserSelectByRoleParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
name: string;
id: string;
}[];
}>;
export interface GetApiUserInfoApiUserInfoGetUserSelectByRoleParams {
condition?: string;
}
import request from "@/plugins/request";
/**
* 获取用户信息-根据权限(选项框)
* /api/UserInfo/api/UserInfo/GetUserSelectByRole
*/
export function getApiUserInfoApiUserInfoGetUserSelectByRole(params, config) {
const paramsInput = {
condition: params.condition,
};
return request.get(`/api/UserInfo/api/UserInfo/GetUserSelectByRole`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 删除用户
* /api/UserInfo/api/UserInfo/UserInfoDel
*/
export declare function getApiUserInfoApiUserInfoUserInfoDel(params: GetApiUserInfoApiUserInfoUserInfoDelParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
export interface GetApiUserInfoApiUserInfoUserInfoDelParams {
id?: string;
}
import request from "@/plugins/request";
/**
* 删除用户
* /api/UserInfo/api/UserInfo/UserInfoDel
*/
export function getApiUserInfoApiUserInfoUserInfoDel(params, config) {
const paramsInput = {
id: params.id,
};
return request.get(`/api/UserInfo/api/UserInfo/UserInfoDel`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 自动带出用户信息
* /api/UserInfo/api/UserInfo/UserWalk
*/
export declare function getApiUserInfoApiUserInfoUserWalk(params: GetApiUserInfoApiUserInfoUserWalkParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
card_name: string;
username: string;
mobile: string;
dept_id: string;
dept_name: string;
};
}>;
export interface GetApiUserInfoApiUserInfoUserWalkParams {
card?: string;
}
import request from "@/plugins/request";
/**
* 自动带出用户信息
* /api/UserInfo/api/UserInfo/UserWalk
*/
export function getApiUserInfoApiUserInfoUserWalk(params, config) {
const paramsInput = {
card: params.card,
};
return request.get(`/api/UserInfo/api/UserInfo/UserWalk`, {
params: paramsInput,
...config,
});
}
export * from "./postApiUserInfoApiUserInfoGetUserList";
export * from "./getApiUserInfoApiUserInfoGetUserInfo";
export * from "./getApiUserInfoApiUserInfoUserInfoDel";
export * from "./getApiUserInfoApiUserInfoGetTeacher";
export * from "./getApiUserInfoApiUserInfoGetUserSelect";
export * from "./getApiUserInfoApiUserInfoGetUserSelectByRole";
export * from "./getApiUserInfoApiUserInfoUserWalk";
export * from "./postApiUserInfoApiUserInfoUserInfoSave";
export * from "./postApiUserInfoApiUserInfoUserUpdateSave";
export * from "./postApiUserInfoApiUserInfoGetUserList";
export * from "./getApiUserInfoApiUserInfoGetUserInfo";
export * from "./getApiUserInfoApiUserInfoUserInfoDel";
export * from "./getApiUserInfoApiUserInfoGetTeacher";
export * from "./getApiUserInfoApiUserInfoGetUserSelect";
export * from "./getApiUserInfoApiUserInfoGetUserSelectByRole";
export * from "./getApiUserInfoApiUserInfoUserWalk";
export * from "./postApiUserInfoApiUserInfoUserInfoSave";
export * from "./postApiUserInfoApiUserInfoUserUpdateSave";
import { type AxiosRequestConfig } from "axios";
import { type UserInfoRequests } from "../../interface";
/**
* 获取用户列表
* /api/UserInfo/api/UserInfo/GetUserList
*/
export declare function postApiUserInfoApiUserInfoGetUserList(input?: UserInfoRequests, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
pageIndex: number;
pageSize: number;
pageCount: number;
dataCount: number;
title: {
field_id: string;
show_name: string;
show_type: number;
width: number;
order_by_flag: number;
default_hide_flag: number;
fixed_flag: number;
code: string;
option: {
label: string;
value: string;
}[];
children: any[];
}[];
data: {
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
userid: string;
roleid: string;
roleName: string[];
name: string;
mobile: string;
openid: string;
card_name: string;
dept: string;
dept_id: string;
createtime: string;
};
}[];
query: {
[x: string]: any;
};
}>;
import request from "@/plugins/request";
/**
* 获取用户列表
* /api/UserInfo/api/UserInfo/GetUserList
*/
export function postApiUserInfoApiUserInfoGetUserList(input, config) {
return request.post(`/api/UserInfo/api/UserInfo/GetUserList`, input, config);
}
import { type AxiosRequestConfig } from "axios";
import { type UserSaveRequests } from "../../interface";
/**
* 保存用户
* /api/UserInfo/api/UserInfo/UserInfoSave
*/
export declare function postApiUserInfoApiUserInfoUserInfoSave(input?: UserSaveRequests, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
import request from "@/plugins/request";
/**
* 保存用户
* /api/UserInfo/api/UserInfo/UserInfoSave
*/
export function postApiUserInfoApiUserInfoUserInfoSave(input, config) {
return request.post(`/api/UserInfo/api/UserInfo/UserInfoSave`, input, config);
}
import { type AxiosRequestConfig } from "axios";
import { type UserUpdateRequests } from "../../interface";
/**
* 修改用户
* /api/UserInfo/api/UserInfo/UserUpdateSave
*/
export declare function postApiUserInfoApiUserInfoUserUpdateSave(input?: UserUpdateRequests, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
import request from "@/plugins/request";
/**
* 修改用户
* /api/UserInfo/api/UserInfo/UserUpdateSave
*/
export function postApiUserInfoApiUserInfoUserUpdateSave(input, config) {
return request.post(`/api/UserInfo/api/UserInfo/UserUpdateSave`, input, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取权限详细
* /api/UserRole/api/UserRole/GetUserRoleInfo
*/
export declare function getApiUserRoleApiUserRoleGetUserRoleInfo(params: GetApiUserRoleApiUserRoleGetUserRoleInfoParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
roleid: string;
role_name: string;
role_remark: string;
createtime: string;
dept_id: string[];
};
}>;
export interface GetApiUserRoleApiUserRoleGetUserRoleInfoParams {
id?: string;
}
import request from "@/plugins/request";
/**
* 获取权限详细
* /api/UserRole/api/UserRole/GetUserRoleInfo
*/
export function getApiUserRoleApiUserRoleGetUserRoleInfo(params, config) {
const paramsInput = {
id: params.id,
};
return request.get(`/api/UserRole/api/UserRole/GetUserRoleInfo`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取权限列表
* /api/UserRole/api/UserRole/GetUserRoleList
*/
export declare function getApiUserRoleApiUserRoleGetUserRoleList(params: GetApiUserRoleApiUserRoleGetUserRoleListParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
pageIndex: number;
pageSize: number;
pageCount: number;
dataCount: number;
title: {
field_id: string;
show_name: string;
show_type: number;
width: number;
order_by_flag: number;
default_hide_flag: number;
fixed_flag: number;
code: string;
option: {
label: string;
value: string;
}[];
children: any[];
}[];
data: {
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
roleid: string;
role_name: string;
role_remark: string;
createtime: string;
dept_id: string;
dept: string;
};
}[];
query: {
[x: string]: any;
};
}>;
export interface GetApiUserRoleApiUserRoleGetUserRoleListParams {
name?: string;
page_index?: number;
page_size?: number;
}
import request from "@/plugins/request";
/**
* 获取权限列表
* /api/UserRole/api/UserRole/GetUserRoleList
*/
export function getApiUserRoleApiUserRoleGetUserRoleList(params, config) {
const paramsInput = {
name: params.name,
page_index: params.page_index,
page_size: params.page_size,
};
return request.get(`/api/UserRole/api/UserRole/GetUserRoleList`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 删除权限
* /api/UserRole/api/UserRole/UserRoleDel
*/
export declare function getApiUserRoleApiUserRoleUserRoleDel(params: GetApiUserRoleApiUserRoleUserRoleDelParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
export interface GetApiUserRoleApiUserRoleUserRoleDelParams {
id?: string;
}
import request from "@/plugins/request";
/**
* 删除权限
* /api/UserRole/api/UserRole/UserRoleDel
*/
export function getApiUserRoleApiUserRoleUserRoleDel(params, config) {
const paramsInput = {
id: params.id,
};
return request.get(`/api/UserRole/api/UserRole/UserRoleDel`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取多选框(权限和id)
* /api/UserRole/api/UserRole/UserRoleSelect
*/
export declare function getApiUserRoleApiUserRoleUserRoleSelect(config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
name: string;
id: string;
}[];
}>;
import request from "@/plugins/request";
/**
* 获取多选框(权限和id)
* /api/UserRole/api/UserRole/UserRoleSelect
*/
export function getApiUserRoleApiUserRoleUserRoleSelect(config) {
return request.get(`/api/UserRole/api/UserRole/UserRoleSelect`, config);
}
export * from "./getApiUserRoleApiUserRoleGetUserRoleList";
export * from "./getApiUserRoleApiUserRoleGetUserRoleInfo";
export * from "./postApiUserRoleApiUserRoleUserRoleSave";
export * from "./getApiUserRoleApiUserRoleUserRoleDel";
export * from "./getApiUserRoleApiUserRoleUserRoleSelect";
export * from "./getApiUserRoleApiUserRoleGetUserRoleList";
export * from "./getApiUserRoleApiUserRoleGetUserRoleInfo";
export * from "./postApiUserRoleApiUserRoleUserRoleSave";
export * from "./getApiUserRoleApiUserRoleUserRoleDel";
export * from "./getApiUserRoleApiUserRoleUserRoleSelect";
import { type AxiosRequestConfig } from "axios";
import { type UserRoleViewModel } from "../../interface";
/**
* 保存权限
* /api/UserRole/api/UserRole/UserRoleSave
*/
export declare function postApiUserRoleApiUserRoleUserRoleSave(input?: UserRoleViewModel, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
import request from "@/plugins/request";
/**
* 保存权限
* /api/UserRole/api/UserRole/UserRoleSave
*/
export function postApiUserRoleApiUserRoleUserRoleSave(input, config) {
return request.post(`/api/UserRole/api/UserRole/UserRoleSave`, input, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取校区(选择框)
* /api/Watch/api/Watch/GetWatchCampusSelect
*/
export declare function getApiWatchApiWatchGetWatchCampusSelect(config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
name: string;
id: string;
}[];
}>;
import request from "@/plugins/request";
/**
* 获取校区(选择框)
* /api/Watch/api/Watch/GetWatchCampusSelect
*/
export function getApiWatchApiWatchGetWatchCampusSelect(config) {
return request.get(`/api/Watch/api/Watch/GetWatchCampusSelect`, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 按月份获取值班日期
* /api/Watch/api/Watch/GetWatchCount
*/
export declare function getApiWatchApiWatchGetWatchCount(params: GetApiWatchApiWatchGetWatchCountParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string[];
}>;
export interface GetApiWatchApiWatchGetWatchCountParams {
date: string;
}
import request from "@/plugins/request";
/**
* 按月份获取值班日期
* /api/Watch/api/Watch/GetWatchCount
*/
export function getApiWatchApiWatchGetWatchCount(params, config) {
const paramsInput = {
date: params.date,
};
return request.get(`/api/Watch/api/Watch/GetWatchCount`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取值班部门(选择框)
* /api/Watch/api/Watch/GetWatchDepSelect
*/
export declare function getApiWatchApiWatchGetWatchDepSelect(config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
name: string;
id: string;
}[];
}>;
import request from "@/plugins/request";
/**
* 获取值班部门(选择框)
* /api/Watch/api/Watch/GetWatchDepSelect
*/
export function getApiWatchApiWatchGetWatchDepSelect(config) {
return request.get(`/api/Watch/api/Watch/GetWatchDepSelect`, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取值班时段(选择框)
* /api/Watch/api/Watch/GetWatchHourTime
*/
export declare function getApiWatchApiWatchGetWatchHourTime(config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
name: string;
id: string;
}[];
}>;
import request from "@/plugins/request";
/**
* 获取值班时段(选择框)
* /api/Watch/api/Watch/GetWatchHourTime
*/
export function getApiWatchApiWatchGetWatchHourTime(config) {
return request.get(`/api/Watch/api/Watch/GetWatchHourTime`, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取值班详情
* /api/Watch/api/Watch/GetWatchInfo
*/
export declare function getApiWatchApiWatchGetWatchInfo(params: GetApiWatchApiWatchGetWatchInfoParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
watchid: string;
watch_date: string;
watch_hour_id: string;
is_lead: number;
dept_id: string;
card_name: string;
username: string;
userid: string;
watchtypeid: string;
mobile: string;
watch_remark: string;
campusid: string;
createtime: string;
watch_hour_time: string;
dept_name: string;
watchtypename: string;
campusname: string;
is_del: number;
};
}>;
export interface GetApiWatchApiWatchGetWatchInfoParams {
id?: string;
}
import request from "@/plugins/request";
/**
* 获取值班详情
* /api/Watch/api/Watch/GetWatchInfo
*/
export function getApiWatchApiWatchGetWatchInfo(params, config) {
const paramsInput = {
id: params.id,
};
return request.get(`/api/Watch/api/Watch/GetWatchInfo`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取值班类型(选择框)
* /api/Watch/api/Watch/GetWatchTypeSelect
*/
export declare function getApiWatchApiWatchGetWatchTypeSelect(config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
name: string;
id: string;
}[];
}>;
import request from "@/plugins/request";
/**
* 获取值班类型(选择框)
* /api/Watch/api/Watch/GetWatchTypeSelect
*/
export function getApiWatchApiWatchGetWatchTypeSelect(config) {
return request.get(`/api/Watch/api/Watch/GetWatchTypeSelect`, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 删除值班
* /api/Watch/api/Watch/WatchDel
*/
export declare function getApiWatchApiWatchWatchDel(params: GetApiWatchApiWatchWatchDelParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
export interface GetApiWatchApiWatchWatchDelParams {
id?: string;
}
import request from "@/plugins/request";
/**
* 删除值班
* /api/Watch/api/Watch/WatchDel
*/
export function getApiWatchApiWatchWatchDel(params, config) {
const paramsInput = {
id: params.id,
};
return request.get(`/api/Watch/api/Watch/WatchDel`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 值班导出模板
* /api/Watch/api/Watch/WatchImportTemplate
*/
export declare function getApiWatchApiWatchWatchImportTemplate(params: GetApiWatchApiWatchWatchImportTemplateParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
export interface GetApiWatchApiWatchWatchImportTemplateParams {
year?: number;
month?: number;
}
import request from "@/plugins/request";
/**
* 值班导出模板
* /api/Watch/api/Watch/WatchImportTemplate
*/
export function getApiWatchApiWatchWatchImportTemplate(params, config) {
const paramsInput = {
year: params.year,
month: params.month,
};
return request.get(`/api/Watch/api/Watch/WatchImportTemplate`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 给自己换班
* /api/Watch/api/Watch/WatchInfoSaveOneSelf
*/
export declare function getApiWatchApiWatchWatchInfoSaveOneSelf(params: GetApiWatchApiWatchWatchInfoSaveOneSelfParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
export interface GetApiWatchApiWatchWatchInfoSaveOneSelfParams {
id?: string;
card_name?: string;
}
import request from "@/plugins/request";
/**
* 给自己换班
* /api/Watch/api/Watch/WatchInfoSaveOneSelf
*/
export function getApiWatchApiWatchWatchInfoSaveOneSelf(params, config) {
const paramsInput = {
id: params.id,
card_name: params.card_name,
};
return request.get(`/api/Watch/api/Watch/WatchInfoSaveOneSelf`, {
params: paramsInput,
...config,
});
}
export * from "./postApiWatchApiWatchGetWatchList";
export * from "./getApiWatchApiWatchGetWatchInfo";
export * from "./postApiWatchApiWatchWatchSave";
export * from "./postApiWatchApiWatchWatchCreate";
export * from "./getApiWatchApiWatchWatchDel";
export * from "./postApiWatchApiWatchWatchDataExport";
export * from "./getApiWatchApiWatchWatchImportTemplate";
export * from "./postApiWatchApiWatchWatchImport";
export * from "./getApiWatchApiWatchWatchInfoSaveOneSelf";
export * from "./postApiWatchApiWatchWatchSendMeg";
export * from "./getApiWatchApiWatchGetWatchCount";
export * from "./getApiWatchApiWatchGetWatchHourTime";
export * from "./getApiWatchApiWatchGetWatchTypeSelect";
export * from "./getApiWatchApiWatchGetWatchDepSelect";
export * from "./getApiWatchApiWatchGetWatchCampusSelect";
export * from "./postApiWatchApiWatchGetWatchList";
export * from "./getApiWatchApiWatchGetWatchInfo";
export * from "./postApiWatchApiWatchWatchSave";
export * from "./postApiWatchApiWatchWatchCreate";
export * from "./getApiWatchApiWatchWatchDel";
export * from "./postApiWatchApiWatchWatchDataExport";
export * from "./getApiWatchApiWatchWatchImportTemplate";
export * from "./postApiWatchApiWatchWatchImport";
export * from "./getApiWatchApiWatchWatchInfoSaveOneSelf";
export * from "./postApiWatchApiWatchWatchSendMeg";
export * from "./getApiWatchApiWatchGetWatchCount";
export * from "./getApiWatchApiWatchGetWatchHourTime";
export * from "./getApiWatchApiWatchGetWatchTypeSelect";
export * from "./getApiWatchApiWatchGetWatchDepSelect";
export * from "./getApiWatchApiWatchGetWatchCampusSelect";
import { type AxiosRequestConfig } from "axios";
import { type WatchRequests } from "../../interface";
/**
* 获取值班列表
* /api/Watch/api/Watch/GetWatchList
*/
export declare function postApiWatchApiWatchGetWatchList(input?: WatchRequests, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
pageIndex: number;
pageSize: number;
pageCount: number;
dataCount: number;
title: {
field_id: string;
show_name: string;
show_type: number;
width: number;
order_by_flag: number;
default_hide_flag: number;
fixed_flag: number;
code: string;
option: {
label: string;
value: string;
}[];
children: any[];
}[];
data: {
watchid: string;
watch_date: string;
watch_hour_id: string;
is_lead: number;
dept_id: string;
card_name: string;
username: string;
userid: string;
watchtypeid: string;
mobile: string;
watch_remark: string;
campusid: string;
createtime: string;
watch_hour_time: string;
dept_name: string;
watchtypename: string;
campusname: string;
is_del: number;
}[];
query: {
[x: string]: any;
};
};
}>;
import request from "@/plugins/request";
/**
* 获取值班列表
* /api/Watch/api/Watch/GetWatchList
*/
export function postApiWatchApiWatchGetWatchList(input, config) {
return request.post(`/api/Watch/api/Watch/GetWatchList`, input, config);
}
import { type AxiosRequestConfig } from "axios";
import { type Watch } from "../../interface";
/**
* 创建值班信息并新建签到表
* /api/Watch/api/Watch/WatchCreate
*/
export declare function postApiWatchApiWatchWatchCreate(input?: Watch, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
import request from "@/plugins/request";
/**
* 创建值班信息并新建签到表
* /api/Watch/api/Watch/WatchCreate
*/
export function postApiWatchApiWatchWatchCreate(input, config) {
return request.post(`/api/Watch/api/Watch/WatchCreate`, input, config);
}
import { type AxiosRequestConfig } from "axios";
import { type WatchRequests } from "../../interface";
/**
* 值班数据导出
* /api/Watch/api/Watch/WatchDataExport
*/
export declare function postApiWatchApiWatchWatchDataExport(input?: WatchRequests, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
import request from "@/plugins/request";
/**
* 值班数据导出
* /api/Watch/api/Watch/WatchDataExport
*/
export function postApiWatchApiWatchWatchDataExport(input, config) {
return request.post(`/api/Watch/api/Watch/WatchDataExport`, input, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 值班导入模板
* /api/Watch/api/Watch/WatchImport
*/
export declare function postApiWatchApiWatchWatchImport(input?: PostApiWatchApiWatchWatchImportInput, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
export interface PostApiWatchApiWatchWatchImportInput {
file: File;
}
import request from "@/plugins/request";
/**
* 值班导入模板
* /api/Watch/api/Watch/WatchImport
*/
export function postApiWatchApiWatchWatchImport(input, config) {
return request.post(`/api/Watch/api/Watch/WatchImport`, input, config);
}
import { type AxiosRequestConfig } from "axios";
import { type Watch } from "../../interface";
/**
* 保存值班
* /api/Watch/api/Watch/WatchSave
*/
export declare function postApiWatchApiWatchWatchSave(input?: Watch, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
import request from "@/plugins/request";
/**
* 保存值班
* /api/Watch/api/Watch/WatchSave
*/
export function postApiWatchApiWatchWatchSave(input, config) {
return request.post(`/api/Watch/api/Watch/WatchSave`, input, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 批量发送消息提醒
* /api/Watch/api/Watch/WatchSendMeg
*/
export declare function postApiWatchApiWatchWatchSendMeg(input?: string[], config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: number;
}>;
import request from "@/plugins/request";
/**
* 批量发送消息提醒
* /api/Watch/api/Watch/WatchSendMeg
*/
export function postApiWatchApiWatchWatchSendMeg(input, config) {
return request.post(`/api/Watch/api/Watch/WatchSendMeg`, input, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取详细
* /api/WatchHour/api/WatchHour/GetWatchHourInfo
*/
export declare function getApiWatchHourApiWatchHourGetWatchHourInfo(params: GetApiWatchHourApiWatchHourGetWatchHourInfoParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
watchhourid: string;
watchhourname: string;
watchhour_start_time: string;
createtime: string;
watchhour_end_time: string;
};
}>;
export interface GetApiWatchHourApiWatchHourGetWatchHourInfoParams {
id?: string;
}
import request from "@/plugins/request";
/**
* 获取详细
* /api/WatchHour/api/WatchHour/GetWatchHourInfo
*/
export function getApiWatchHourApiWatchHourGetWatchHourInfo(params, config) {
const paramsInput = {
id: params.id,
};
return request.get(`/api/WatchHour/api/WatchHour/GetWatchHourInfo`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取值班时段列表
* /api/WatchHour/api/WatchHour/GetWatchHourList
*/
export declare function getApiWatchHourApiWatchHourGetWatchHourList(params: GetApiWatchHourApiWatchHourGetWatchHourListParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
pageIndex: number;
pageSize: number;
pageCount: number;
dataCount: number;
title: {
field_id: string;
show_name: string;
show_type: number;
width: number;
order_by_flag: number;
default_hide_flag: number;
fixed_flag: number;
code: string;
option: {
label: string;
value: string;
}[];
children: any[];
}[];
data: {
watchhourid: string;
watchhourname: string;
watchhour_start_time: string;
createtime: string;
watchhour_end_time: string;
}[];
query: {
[x: string]: any;
};
};
}>;
export interface GetApiWatchHourApiWatchHourGetWatchHourListParams {
condition?: string;
page_index?: number;
page_size?: number;
}
import request from "@/plugins/request";
/**
* 获取值班时段列表
* /api/WatchHour/api/WatchHour/GetWatchHourList
*/
export function getApiWatchHourApiWatchHourGetWatchHourList(params, config) {
const paramsInput = {
condition: params.condition,
page_index: params.page_index,
page_size: params.page_size,
};
return request.get(`/api/WatchHour/api/WatchHour/GetWatchHourList`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 删除值班时间段
* /api/WatchHour/api/WatchHour/WatchHourDel
*/
export declare function getApiWatchHourApiWatchHourWatchHourDel(params: GetApiWatchHourApiWatchHourWatchHourDelParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
export interface GetApiWatchHourApiWatchHourWatchHourDelParams {
id?: string;
}
import request from "@/plugins/request";
/**
* 删除值班时间段
* /api/WatchHour/api/WatchHour/WatchHourDel
*/
export function getApiWatchHourApiWatchHourWatchHourDel(params, config) {
const paramsInput = {
id: params.id,
};
return request.get(`/api/WatchHour/api/WatchHour/WatchHourDel`, {
params: paramsInput,
...config,
});
}
export * from "./getApiWatchHourApiWatchHourGetWatchHourList";
export * from "./getApiWatchHourApiWatchHourGetWatchHourInfo";
export * from "./postApiWatchHourApiWatchHourWatchHourSave";
export * from "./getApiWatchHourApiWatchHourWatchHourDel";
export * from "./getApiWatchHourApiWatchHourGetWatchHourList";
export * from "./getApiWatchHourApiWatchHourGetWatchHourInfo";
export * from "./postApiWatchHourApiWatchHourWatchHourSave";
export * from "./getApiWatchHourApiWatchHourWatchHourDel";
import { type AxiosRequestConfig } from "axios";
import { type WatchHour } from "../../interface";
/**
* 保存值班时间段
* /api/WatchHour/api/WatchHour/WatchHourSave
*/
export declare function postApiWatchHourApiWatchHourWatchHourSave(input?: WatchHour, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
import request from "@/plugins/request";
/**
* 保存值班时间段
* /api/WatchHour/api/WatchHour/WatchHourSave
*/
export function postApiWatchHourApiWatchHourWatchHourSave(input, config) {
return request.post(`/api/WatchHour/api/WatchHour/WatchHourSave`, input, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取值班类型详细
* /api/WatchType/api/WatchType/GetWatchTypeInfo
*/
export declare function getApiWatchTypeApiWatchTypeGetWatchTypeInfo(params: GetApiWatchTypeApiWatchTypeGetWatchTypeInfoParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
watchtypeid: string;
watchtypename: string;
watchtype_remark: string;
createtime: string;
sign_type: number;
watchhour_id: string;
watchhourname: string;
};
}>;
export interface GetApiWatchTypeApiWatchTypeGetWatchTypeInfoParams {
id?: string;
}
import request from "@/plugins/request";
/**
* 获取值班类型详细
* /api/WatchType/api/WatchType/GetWatchTypeInfo
*/
export function getApiWatchTypeApiWatchTypeGetWatchTypeInfo(params, config) {
const paramsInput = {
id: params.id,
};
return request.get(`/api/WatchType/api/WatchType/GetWatchTypeInfo`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 获取值班类型列表
* /api/WatchType/api/WatchType/GetWatchTypeList
*/
export declare function getApiWatchTypeApiWatchTypeGetWatchTypeList(params: GetApiWatchTypeApiWatchTypeGetWatchTypeListParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
pageIndex: number;
pageSize: number;
pageCount: number;
dataCount: number;
title: {
field_id: string;
show_name: string;
show_type: number;
width: number;
order_by_flag: number;
default_hide_flag: number;
fixed_flag: number;
code: string;
option: {
label: string;
value: string;
}[];
children: any[];
}[];
data: {
watchtypeid: string;
watchtypename: string;
watchtype_remark: string;
createtime: string;
sign_type: number;
watchhour_id: string;
watchhourname: string;
}[];
query: {
[x: string]: any;
};
};
}>;
export interface GetApiWatchTypeApiWatchTypeGetWatchTypeListParams {
name?: string;
page_index?: number;
page_size?: number;
}
import request from "@/plugins/request";
/**
* 获取值班类型列表
* /api/WatchType/api/WatchType/GetWatchTypeList
*/
export function getApiWatchTypeApiWatchTypeGetWatchTypeList(params, config) {
const paramsInput = {
name: params.name,
page_index: params.page_index,
page_size: params.page_size,
};
return request.get(`/api/WatchType/api/WatchType/GetWatchTypeList`, {
params: paramsInput,
...config,
});
}
import { type AxiosRequestConfig } from "axios";
/**
* 删除值班类型
* /api/WatchType/api/WatchType/WatchTypeDel
*/
export declare function getApiWatchTypeApiWatchTypeWatchTypeDel(params: GetApiWatchTypeApiWatchTypeWatchTypeDelParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
export interface GetApiWatchTypeApiWatchTypeWatchTypeDelParams {
id?: string;
}
import request from "@/plugins/request";
/**
* 删除值班类型
* /api/WatchType/api/WatchType/WatchTypeDel
*/
export function getApiWatchTypeApiWatchTypeWatchTypeDel(params, config) {
const paramsInput = {
id: params.id,
};
return request.get(`/api/WatchType/api/WatchType/WatchTypeDel`, {
params: paramsInput,
...config,
});
}
export * from "./getApiWatchTypeApiWatchTypeGetWatchTypeList";
export * from "./getApiWatchTypeApiWatchTypeGetWatchTypeInfo";
export * from "./postApiWatchTypeApiWatchTypeWatchTypeSave";
export * from "./getApiWatchTypeApiWatchTypeWatchTypeDel";
export * from "./getApiWatchTypeApiWatchTypeGetWatchTypeList";
export * from "./getApiWatchTypeApiWatchTypeGetWatchTypeInfo";
export * from "./postApiWatchTypeApiWatchTypeWatchTypeSave";
export * from "./getApiWatchTypeApiWatchTypeWatchTypeDel";
import { type AxiosRequestConfig } from "axios";
import { type WatchType } from "../../interface";
/**
* 保存值班类型
* /api/WatchType/api/WatchType/WatchTypeSave
*/
export declare function postApiWatchTypeApiWatchTypeWatchTypeSave(input?: WatchType, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
import request from "@/plugins/request";
/**
* 保存值班类型
* /api/WatchType/api/WatchType/WatchTypeSave
*/
export function postApiWatchTypeApiWatchTypeWatchTypeSave(input, config) {
return request.post(`/api/WatchType/api/WatchType/WatchTypeSave`, input, config);
}
export * from "./Attendance";
export * from "./Campus";
export * from "./DbFirst";
export * from "./DutyConfig";
export * from "./Log";
export * from "./Login";
export * from "./Message";
export * from "./MessageConfig";
export * from "./SignRecord";
export * from "./TimeTask";
export * from "./UserInfo";
export * from "./UserRole";
export * from "./Watch";
export * from "./WatchHour";
export * from "./WatchType";
export * from "./Attendance";
export * from "./Campus";
export * from "./DbFirst";
export * from "./DutyConfig";
export * from "./Log";
export * from "./Login";
export * from "./Message";
export * from "./MessageConfig";
export * from "./SignRecord";
export * from "./TimeTask";
export * from "./UserInfo";
export * from "./UserRole";
export * from "./Watch";
export * from "./WatchHour";
export * from "./WatchType";
export interface Attendance {
attendanceid?: string;
title?: string;
address?: string;
latitude?: string;
longitude?: string;
offset?: number;
accuracy?: number;
createtime?: string;
}
import { type Attendance } from "../../interface";
export interface AttendanceListMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: Attendance[];
}
import { type Attendance } from "../../interface";
export interface AttendanceRequests {
/** 签到id */
id?: string;
/** 附件路径 */
link?: string;
/** 签到 1-签到,2-签退 */
sign?: number;
attendance?: Attendance;
}
export interface Campus {
campusid?: string;
campusname?: string;
createtime?: string;
}
import { type Campus } from "../../interface";
export interface CampusMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: Campus;
}
import { type TableTitle, type Campus } from "../../interface";
export interface CampusPageModel {
pageIndex?: number;
pageSize?: number;
pageCount?: number;
dataCount?: number;
title?: TableTitle[];
data?: Campus[];
query?: CampusPageModelQuery;
}
export interface CampusPageModelQuery {
[key: string]: any;
}
import { type CampusPageModel } from "../../interface";
export interface CampusPageModelMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: CampusPageModel;
}
import { type TokenViewModel } from "../../interface";
export interface ComplexTokenViewModel {
accessToken?: TokenViewModel;
refreshToken?: TokenViewModel;
}
import { type ComplexTokenViewModel } from "../../interface";
export interface ComplexTokenViewModelMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: ComplexTokenViewModel;
}
export interface DutymanagementLog {
id?: string;
module?: string;
type?: string;
ip?: string;
api?: string;
method?: string;
request?: string;
response?: string;
user_id?: string;
user_name?: string;
code?: number;
error_msg?: string;
createtime?: string;
spend_time?: number;
}
import { type DutymanagementLog } from "../../interface";
export interface DutymanagementLogMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: DutymanagementLog;
}
import { type TableTitle, type DutymanagementLogMessageModel } from "../../interface";
export interface DutymanagementLogMessageModelPageModel {
pageIndex?: number;
pageSize?: number;
pageCount?: number;
dataCount?: number;
title?: TableTitle[];
data?: DutymanagementLogMessageModel[];
query?: DutymanagementLogMessageModelPageModelQuery;
}
export interface DutymanagementLogMessageModelPageModelQuery {
[key: string]: any;
}
export interface ImgResponse {
/** 文件名 */
fileName?: string;
/** 新文件名 */
fileNewName?: string;
/** 文件格式 */
fileExtension?: string;
/** 下载地址 */
filePath?: string;
/** 文件大小 */
fileSize?: number;
}
import { type ImgResponse } from "../../interface";
export interface ImgResponseMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: ImgResponse;
}
export interface Int32MessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: number;
}
export interface Message {
msgid?: string;
messageinfo?: string;
send_time?: string;
createtime?: string;
reception_user_id?: string;
reception_man?: string;
reception_num?: string;
send_state?: number;
is_succeed?: number;
meg_link?: string;
remark?: string;
watchid?: string;
}
export interface MessageConfig {
megconfigid?: string;
advance_day?: number;
remind_time?: string;
createtime?: string;
time_task_id?: string;
}
import { type MessageConfig } from "../../interface";
export interface MessageConfigMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: MessageConfig;
}
import { type Message } from "../../interface";
export interface MessageMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: Message;
}
import { type TableTitle, type MessageMessageModel } from "../../interface";
export interface MessageMessageModelPageModel {
pageIndex?: number;
pageSize?: number;
pageCount?: number;
dataCount?: number;
title?: TableTitle[];
data?: MessageMessageModel[];
query?: MessageMessageModelPageModelQuery;
}
export interface MessageMessageModelPageModelQuery {
[key: string]: any;
}
export interface Option {
label?: string;
value?: string;
}
export interface SelectResponses {
/** 显示值 */
name?: string;
/** 隐藏值 */
id?: string;
}
import { type SelectResponses } from "../../interface";
export interface SelectResponsesListMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: SelectResponses[];
}
export interface SignInOrOutRequests {
/** 签到表id */
signid?: string;
/** 签到状态 */
sign?: number;
}
export interface SignLogSaveRequest {
sign_id?: string;
content?: string;
}
export interface SignRecordRequests {
/** 部门 */
dep_id?: string;
/** 姓名或卡号 */
key_name?: string;
/** 值班日期开始时间 */
start_time?: string;
/** 值班日期结束时间 */
end_time?: string;
/** 值班类型 */
type_id?: string;
/** 值班时段 */
watchhour_time?: string;
/** 校区 */
campus_id?: string;
/** 领导和老师分块 0-老师,1-领导 2-pc端使用 */
is_lead?: number;
/** 签到状态 0-待签到,1-已签到,2-已签退,9-全部状态 */
sign?: number;
page_index?: number;
page_size?: number;
}
export interface SignRecordViewModel {
signid?: string;
card_name?: string;
username?: string;
content?: string;
watch_date?: string;
watch_hour_time?: string;
watch_hour_id?: string;
sign?: number;
sign_set?: number;
mobile?: string;
createtime?: string;
watchtypeid?: string;
watchtypename?: string;
campusid?: string;
campusname?: string;
sign_in_time?: string;
sign_out_time?: string;
sign_type?: number;
is_lead?: number;
watch_id?: string;
is_del?: number;
dept?: string;
watch_remark?: string;
}
import { type TableTitle, type SignRecordViewModel } from "../../interface";
export interface SignRecordViewModelPageModel {
pageIndex?: number;
pageSize?: number;
pageCount?: number;
dataCount?: number;
title?: TableTitle[];
data?: SignRecordViewModel[];
query?: SignRecordViewModelPageModelQuery;
}
export interface SignRecordViewModelPageModelQuery {
[key: string]: any;
}
import { type SignRecordViewModelPageModel } from "../../interface";
export interface SignRecordViewModelPageModelMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: SignRecordViewModelPageModel;
}
export interface SignTime {
signtimeid?: string;
advance_minute?: number;
}
import { type SignTime } from "../../interface";
export interface SignTimeMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: SignTime;
}
export interface StringListMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: string[];
}
export interface StringMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: string;
}
import { type Option } from "../../interface";
export interface TableTitle {
field_id?: string;
show_name?: string;
show_type?: number;
width?: number;
order_by_flag?: number;
default_hide_flag?: number;
fixed_flag?: number;
code?: string;
option?: Option[];
children?: TableTitle[];
}
export interface TokenViewModel {
tokenContent?: string;
expires?: string;
}
import { type TokenViewModel } from "../../interface";
export interface TokenViewModelMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: TokenViewModel;
}
export interface UserInfo {
userid?: string;
roleid?: string;
name?: string;
mobile?: string;
openid?: string;
card_name?: string;
dept?: string;
dept_id?: string;
createtime?: string;
admin_dept_id?: string;
admin_dept?: string;
}
import { type UserInfo } from "../../interface";
export interface UserInfoMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: UserInfo;
}
export interface UserInfoRequests {
/** 姓名/卡号 */
name?: string;
/** 用户权限 */
roleid?: string;
/** 手机号 */
mobile?: string;
/** 部门 */
dept_id?: string;
page_index?: number;
page_size?: number;
}
export interface UserInfoResponses {
userid?: string;
/**
* Desc:用户权限id
* Default:
* Nullable:True
*/
roleid?: string;
roleName?: string[];
/**
* Desc:用户姓名
* Default:
* Nullable:True
*/
name?: string;
/**
* Desc:手机号
* Default:
* Nullable:True
*/
mobile?: string;
/**
* Desc:
* Default:
* Nullable:True
*/
openid?: string;
/**
* Desc:工号
* Default:
* Nullable:True
*/
card_name?: string;
/**
* Desc:部门
* Default:
* Nullable:True
*/
dept?: string;
/**
* Desc:部门id
* Default:
* Nullable:True
*/
dept_id?: string;
/**
* Desc:
* Default:
* Nullable:True
*/
createtime?: string;
}
import { type UserInfoResponses } from "../../interface";
export interface UserInfoResponsesMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: UserInfoResponses;
}
import { type TableTitle, type UserInfoResponsesMessageModel } from "../../interface";
export interface UserInfoResponsesMessageModelPageModel {
pageIndex?: number;
pageSize?: number;
pageCount?: number;
dataCount?: number;
title?: TableTitle[];
data?: UserInfoResponsesMessageModel[];
query?: UserInfoResponsesMessageModelPageModelQuery;
}
export interface UserInfoResponsesMessageModelPageModelQuery {
[key: string]: any;
}
export interface UserInfoWalkResponses {
card_name?: string;
username?: string;
mobile?: string;
dept_id?: string;
dept_name?: string;
}
import { type UserInfoWalkResponses } from "../../interface";
export interface UserInfoWalkResponsesMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: UserInfoWalkResponses;
}
export interface UserJwtViewModel {
cardNumber?: string;
name?: string;
role?: string[];
admin_dept?: string;
admin_dept_id?: string;
}
import { type UserJwtViewModel } from "../../interface";
export interface UserJwtViewModelMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: UserJwtViewModel;
}
export interface UserRole {
roleid?: string;
role_name?: string;
role_remark?: string;
createtime?: string;
dept_id?: string;
dept?: string;
}
import { type UserRole } from "../../interface";
export interface UserRoleMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: UserRole;
}
import { type TableTitle, type UserRoleMessageModel } from "../../interface";
export interface UserRoleMessageModelPageModel {
pageIndex?: number;
pageSize?: number;
pageCount?: number;
dataCount?: number;
title?: TableTitle[];
data?: UserRoleMessageModel[];
query?: UserRoleMessageModelPageModelQuery;
}
export interface UserRoleMessageModelPageModelQuery {
[key: string]: any;
}
export interface UserRoleViewModel {
roleid?: string;
role_name?: string;
role_remark?: string;
createtime?: string;
dept_id?: string[];
}
import { type UserRoleViewModel } from "../../interface";
export interface UserRoleViewModelMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: UserRoleViewModel;
}
export interface UserSaveRequests {
/** 教师id */
tid?: string[];
/** 权限集合 */
role?: string[];
/** 所管院系id */
dept_id?: string[];
}
export interface UserUpdateRequests {
userid?: string;
/** 权限集合 */
role?: string[];
/** 所管院系id */
dept_id?: string[];
}
export interface VDutyTeacher {
tid?: string;
number?: string;
name?: string;
school_area_id?: string;
school_area_name?: string;
did?: string;
dept_name?: string;
pid?: string;
position_name?: string;
concurrent_post_id?: string;
concurrent_post_name?: string;
gender_id?: string;
gender_name?: string;
title_id?: string;
title_name?: string;
title_level_id?: string;
title_level_name?: string;
phone?: string;
openid?: string;
}
import { type TableTitle, type VDutyTeacher } from "../../interface";
export interface VDutyTeacherPageModel {
pageIndex?: number;
pageSize?: number;
pageCount?: number;
dataCount?: number;
title?: TableTitle[];
data?: VDutyTeacher[];
query?: VDutyTeacherPageModelQuery;
}
export interface VDutyTeacherPageModelQuery {
[key: string]: any;
}
import { type VDutyTeacherPageModel } from "../../interface";
export interface VDutyTeacherPageModelMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: VDutyTeacherPageModel;
}
export interface Watch {
watchid?: string;
watch_date?: string;
watch_hour_id?: string;
is_lead?: number;
dept_id?: string;
card_name?: string;
username?: string;
userid?: string;
watchtypeid?: string;
mobile?: string;
watch_remark?: string;
campusid?: string;
createtime?: string;
watch_hour_time?: string;
dept_name?: string;
watchtypename?: string;
campusname?: string;
is_del?: number;
}
export interface WatchHour {
watchhourid?: string;
watchhourname?: string;
watchhour_start_time?: string;
createtime?: string;
watchhour_end_time?: string;
}
import { type WatchHour } from "../../interface";
export interface WatchHourMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: WatchHour;
}
import { type TableTitle, type WatchHour } from "../../interface";
export interface WatchHourPageModel {
pageIndex?: number;
pageSize?: number;
pageCount?: number;
dataCount?: number;
title?: TableTitle[];
data?: WatchHour[];
query?: WatchHourPageModelQuery;
}
export interface WatchHourPageModelQuery {
[key: string]: any;
}
import { type WatchHourPageModel } from "../../interface";
export interface WatchHourPageModelMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: WatchHourPageModel;
}
export interface WatchLog {
watchlogid?: string;
card_name?: string;
name?: string;
remark?: string;
createtime?: string;
file_link?: string;
address?: string;
sign?: number;
sign_id?: string;
address_locatioin?: string;
}
import { type WatchLog } from "../../interface";
export interface WatchLogMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: WatchLog;
}
import { type TableTitle, type WatchLogMessageModel } from "../../interface";
export interface WatchLogMessageModelPageModel {
pageIndex?: number;
pageSize?: number;
pageCount?: number;
dataCount?: number;
title?: TableTitle[];
data?: WatchLogMessageModel[];
query?: WatchLogMessageModelPageModelQuery;
}
export interface WatchLogMessageModelPageModelQuery {
[key: string]: any;
}
import { type Watch } from "../../interface";
export interface WatchMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: Watch;
}
import { type TableTitle, type Watch } from "../../interface";
export interface WatchPageModel {
pageIndex?: number;
pageSize?: number;
pageCount?: number;
dataCount?: number;
title?: TableTitle[];
data?: Watch[];
query?: WatchPageModelQuery;
}
export interface WatchPageModelQuery {
[key: string]: any;
}
import { type WatchPageModel } from "../../interface";
export interface WatchPageModelMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: WatchPageModel;
}
export interface WatchRequests {
/** 部门 */
dep_id?: string;
/** 姓名或卡号 */
key_name?: string;
/** 值班日期开始时间 */
start_time?: string;
/** 值班日期结束时间 */
end_time?: string;
/** 值班类型 */
type_id?: string;
/** 值班时段 */
watchhour_time?: string;
/** 是否为值班领导 0-不是,1-是 */
is_lead?: number;
/** 校区 */
campus_id?: string;
page_index?: number;
page_size?: number;
}
export interface WatchType {
watchtypeid?: string;
watchtypename?: string;
watchtype_remark?: string;
createtime?: string;
sign_type?: number;
watchhour_id?: string;
watchhourname?: string;
}
import { type WatchType } from "../../interface";
export interface WatchTypeMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: WatchType;
}
import { type TableTitle, type WatchType } from "../../interface";
export interface WatchTypePageModel {
pageIndex?: number;
pageSize?: number;
pageCount?: number;
dataCount?: number;
title?: TableTitle[];
data?: WatchType[];
query?: WatchTypePageModelQuery;
}
export interface WatchTypePageModelQuery {
[key: string]: any;
}
import { type WatchTypePageModel } from "../../interface";
export interface WatchTypePageModelMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: WatchTypePageModel;
}
export * from "./apiTypes/Attendance";
export * from "./apiTypes/AttendanceListMessageModel";
export * from "./apiTypes/StringMessageModel";
export * from "./apiTypes/SignTime";
export * from "./apiTypes/SignTimeMessageModel";
export * from "./apiTypes/ImgResponse";
export * from "./apiTypes/ImgResponseMessageModel";
export * from "./apiTypes/AttendanceRequests";
export * from "./apiTypes/Option";
export * from "./apiTypes/TableTitle";
export * from "./apiTypes/Campus";
export * from "./apiTypes/CampusPageModel";
export * from "./apiTypes/CampusPageModelMessageModel";
export * from "./apiTypes/CampusMessageModel";
export * from "./apiTypes/DutymanagementLog";
export * from "./apiTypes/DutymanagementLogMessageModel";
export * from "./apiTypes/DutymanagementLogMessageModelPageModel";
export * from "./apiTypes/WatchLog";
export * from "./apiTypes/WatchLogMessageModel";
export * from "./apiTypes/WatchLogMessageModelPageModel";
export * from "./apiTypes/TokenViewModel";
export * from "./apiTypes/ComplexTokenViewModel";
export * from "./apiTypes/ComplexTokenViewModelMessageModel";
export * from "./apiTypes/TokenViewModelMessageModel";
export * from "./apiTypes/UserJwtViewModel";
export * from "./apiTypes/UserJwtViewModelMessageModel";
export * from "./apiTypes/Message";
export * from "./apiTypes/MessageMessageModel";
export * from "./apiTypes/MessageMessageModelPageModel";
export * from "./apiTypes/MessageConfig";
export * from "./apiTypes/MessageConfigMessageModel";
export * from "./apiTypes/SignRecordRequests";
export * from "./apiTypes/SignRecordViewModel";
export * from "./apiTypes/SignRecordViewModelPageModel";
export * from "./apiTypes/SignRecordViewModelPageModelMessageModel";
export * from "./apiTypes/SignInOrOutRequests";
export * from "./apiTypes/SignLogSaveRequest";
export * from "./apiTypes/UserInfoRequests";
export * from "./apiTypes/UserInfoResponses";
export * from "./apiTypes/UserInfoResponsesMessageModel";
export * from "./apiTypes/UserInfoResponsesMessageModelPageModel";
export * from "./apiTypes/UserInfo";
export * from "./apiTypes/UserInfoMessageModel";
export * from "./apiTypes/VDutyTeacher";
export * from "./apiTypes/VDutyTeacherPageModel";
export * from "./apiTypes/VDutyTeacherPageModelMessageModel";
export * from "./apiTypes/SelectResponses";
export * from "./apiTypes/SelectResponsesListMessageModel";
export * from "./apiTypes/UserInfoWalkResponses";
export * from "./apiTypes/UserInfoWalkResponsesMessageModel";
export * from "./apiTypes/UserSaveRequests";
export * from "./apiTypes/UserUpdateRequests";
export * from "./apiTypes/UserRole";
export * from "./apiTypes/UserRoleMessageModel";
export * from "./apiTypes/UserRoleMessageModelPageModel";
export * from "./apiTypes/UserRoleViewModel";
export * from "./apiTypes/UserRoleViewModelMessageModel";
export * from "./apiTypes/WatchRequests";
export * from "./apiTypes/Watch";
export * from "./apiTypes/WatchPageModel";
export * from "./apiTypes/WatchPageModelMessageModel";
export * from "./apiTypes/WatchMessageModel";
export * from "./apiTypes/Int32MessageModel";
export * from "./apiTypes/StringListMessageModel";
export * from "./apiTypes/WatchHour";
export * from "./apiTypes/WatchHourPageModel";
export * from "./apiTypes/WatchHourPageModelMessageModel";
export * from "./apiTypes/WatchHourMessageModel";
export * from "./apiTypes/WatchType";
export * from "./apiTypes/WatchTypePageModel";
export * from "./apiTypes/WatchTypePageModelMessageModel";
export * from "./apiTypes/WatchTypeMessageModel";
export type Primitive = undefined | null | boolean | string | number | symbol;
export type DeepRequired<T> = T extends Primitive ? T : keyof T extends never ? T : {
[K in keyof T]-?: DeepRequired<T[K]>;
};
export * from "./apiTypes/Attendance";
export * from "./apiTypes/AttendanceListMessageModel";
export * from "./apiTypes/StringMessageModel";
export * from "./apiTypes/SignTime";
export * from "./apiTypes/SignTimeMessageModel";
export * from "./apiTypes/ImgResponse";
export * from "./apiTypes/ImgResponseMessageModel";
export * from "./apiTypes/AttendanceRequests";
export * from "./apiTypes/Option";
export * from "./apiTypes/TableTitle";
export * from "./apiTypes/Campus";
export * from "./apiTypes/CampusPageModel";
export * from "./apiTypes/CampusPageModelMessageModel";
export * from "./apiTypes/CampusMessageModel";
export * from "./apiTypes/DutymanagementLog";
export * from "./apiTypes/DutymanagementLogMessageModel";
export * from "./apiTypes/DutymanagementLogMessageModelPageModel";
export * from "./apiTypes/WatchLog";
export * from "./apiTypes/WatchLogMessageModel";
export * from "./apiTypes/WatchLogMessageModelPageModel";
export * from "./apiTypes/TokenViewModel";
export * from "./apiTypes/ComplexTokenViewModel";
export * from "./apiTypes/ComplexTokenViewModelMessageModel";
export * from "./apiTypes/TokenViewModelMessageModel";
export * from "./apiTypes/UserJwtViewModel";
export * from "./apiTypes/UserJwtViewModelMessageModel";
export * from "./apiTypes/Message";
export * from "./apiTypes/MessageMessageModel";
export * from "./apiTypes/MessageMessageModelPageModel";
export * from "./apiTypes/MessageConfig";
export * from "./apiTypes/MessageConfigMessageModel";
export * from "./apiTypes/SignRecordRequests";
export * from "./apiTypes/SignRecordViewModel";
export * from "./apiTypes/SignRecordViewModelPageModel";
export * from "./apiTypes/SignRecordViewModelPageModelMessageModel";
export * from "./apiTypes/SignInOrOutRequests";
export * from "./apiTypes/SignLogSaveRequest";
export * from "./apiTypes/UserInfoRequests";
export * from "./apiTypes/UserInfoResponses";
export * from "./apiTypes/UserInfoResponsesMessageModel";
export * from "./apiTypes/UserInfoResponsesMessageModelPageModel";
export * from "./apiTypes/UserInfo";
export * from "./apiTypes/UserInfoMessageModel";
export * from "./apiTypes/VDutyTeacher";
export * from "./apiTypes/VDutyTeacherPageModel";
export * from "./apiTypes/VDutyTeacherPageModelMessageModel";
export * from "./apiTypes/SelectResponses";
export * from "./apiTypes/SelectResponsesListMessageModel";
export * from "./apiTypes/UserInfoWalkResponses";
export * from "./apiTypes/UserInfoWalkResponsesMessageModel";
export * from "./apiTypes/UserSaveRequests";
export * from "./apiTypes/UserUpdateRequests";
export * from "./apiTypes/UserRole";
export * from "./apiTypes/UserRoleMessageModel";
export * from "./apiTypes/UserRoleMessageModelPageModel";
export * from "./apiTypes/UserRoleViewModel";
export * from "./apiTypes/UserRoleViewModelMessageModel";
export * from "./apiTypes/WatchRequests";
export * from "./apiTypes/Watch";
export * from "./apiTypes/WatchPageModel";
export * from "./apiTypes/WatchPageModelMessageModel";
export * from "./apiTypes/WatchMessageModel";
export * from "./apiTypes/Int32MessageModel";
export * from "./apiTypes/StringListMessageModel";
export * from "./apiTypes/WatchHour";
export * from "./apiTypes/WatchHourPageModel";
export * from "./apiTypes/WatchHourPageModelMessageModel";
export * from "./apiTypes/WatchHourMessageModel";
export * from "./apiTypes/WatchType";
export * from "./apiTypes/WatchTypePageModel";
export * from "./apiTypes/WatchTypePageModelMessageModel";
export * from "./apiTypes/WatchTypeMessageModel";
{
"docsUrl": "https://asc.hnasct.cn/DutyManagement/swagger/dutymanagement/swagger.json",
"axiosInstanceUrl": "@/plugins/request"
}
......@@ -76,6 +76,7 @@
<template #extra>
<div style="display: flex;align-items: center;justify-content: center;">
<Button style="margin-right: 8px;" type="warning" @click="batchPush">批量推送</Button>
<Button style="margin-right: 8px;" type="warning" @click="intershiftHandle">相互换班</Button>
<ButtonGroup>
<Button @click="handleButtonClick('addDuty')" icon="ios-add-circle-outline">增添值班</Button>
<Button @click="dutyDataImport" label="dutyDataOutput" icon="ios-log-out">数据导出
......@@ -111,6 +112,7 @@
<template #action="{row}">
<div style="display: flex;justify-content: space-evenly">
<Button @click="pushDuty(row)" type="warning" size="small">推送</Button>
<Button @click="intershiftHandle(row)" type="primary" size="small">相互换班</Button>
<Button @click="updateDuty(row)" type="primary" size="small">修改</Button>
<Button @click="deleteDuty(row)" type="primary" size="small">删除</Button>
</div>
......@@ -253,6 +255,8 @@
<Button type="primary" @click="dutyDataInputOK">确定</Button>
</template>
</Modal>
<Modal
v-model="dutyModelImportModal"
:title="publicModalTitle"
......@@ -287,6 +291,112 @@
<span>模板年月:</span>
<DatePicker v-model="tempYearMonth" type="month" format="yyyy-MM" placeholder=""/>
</Modal>
<!-- 相互换班 -->
<Modal v-model=" intershift.show" title="相互换班" :loading="intershift.loading" width="600" @on-ok="confirmIntershift">
<Form ref="Form5" :model="intershift.formData" :rules="intershift.rule" :label-width="100">
<Card>
<FormItem label="姓名" prop="first_lodger_id">
<Button type="primary" ghost long @click="selectorHandle('relief')">{{
intershift.formData.name
? `${intershift.formData.name}`
: "请选择"
}}</Button>
</FormItem>
<FormItem label="换班日期">
<Select v-model="intershift.formData.date" filterable clearable>
<Option v-for="(item,i) in intershift.dutyDateList" :value="item" :key="i">{{item}}</Option>
</Select>
</FormItem>
</Card>
<div class="ivu-text-center ivu-mt ivu-mb">
<Icon type="md-repeat" size="48" />
</div>
<Card>
<FormItem label="姓名" prop="">
<Button type="primary" ghost long @click="selectorHandle('theChangeover')">{{
intershift.formData.name
? `${intershift.formData.name}`
: "请选择"
}}</Button>
</FormItem>
<FormItem label="换班日期">
<Select v-model="intershift.formData.date" filterable clearable>
<Option v-for="(item,i) in intershift.dutyDateList" :value="item" :key="i">{{item}}</Option>
</Select>
</FormItem>
</Card>
</Form>
</Modal>
<!-- 相互换班 人员选择器-->
<Modal v-model="personnelSelector.show" :styles="{top: '20px'}" title="选择人员" width="1000" footer-hide>
<Form ref="formInline" inline label-position="right" :label-width="80">
<FormItem label="年级" v-if="false">
<Select v-model="personnelSelector.params.grade" filterable style="width: 200px" clearable>
<Option v-for="(item,i) in personnelSelector.gradeList" :value="item" :key="i">{{item}}</Option>
</Select>
</FormItem>
<FormItem label="班级" v-if="false">
<Cascader style="width: 200px" v-model="personnelSelector.params.classVal" :data="personnelSelector.classTree" change-on-select @on-change="cascaderChange">
</Cascader>
</FormItem>
<FormItem v-if="false" label="部门">
<Select v-model="personnelSelector.params.deptyId" filterable style="width: 200px" clearable>
<Option v-for="(item, i) in personnelSelector.deptList" :value="item.department_id" :key="i">{{
item.department_name
}}</Option>
</Select>
</FormItem>
<FormItem label="姓名/卡号">
<Input style="width: 200px" v-model="personnelSelector.params.coondition" clearable placeholder="请输入关键字"> </Input>
</FormItem>
<FormItem v-if="false" label="性别">
<Select v-model="personnelSelector.params.gender" style="width: 200px" filterable clearable>
<Option value="男">男</Option>
<Option value="女">女</Option>
</Select>
</FormItem>
<FormItem>
<Button type="primary" @click="handleSearch">搜索</Button>
<Button style="margin-left: 10px" @click="handleReset">重置</Button>
</FormItem>
</Form>
<div>
<Table
ref="table"
size="small"
height="500"
stripe
border
highlight-row
:columns="personnelSelector.tableColumns"
:data="personnelSelector.tableData"
:loading="personnelSelector.loading"
@on-selection-change="selectionChange"
>
<template slot-scope="{ row }" slot="action">
<a @click="pick(row)">选择</a>
</template>
</Table>
<div class="ivu-mt ivu-text-center">
<Page
show-total
show-sizer
:total="personnelSelector.total"
:current.sync="personnelSelector.params.page"
:page-size="personnelSelector.params.page_size"
:page-size-opts="[10, 20, 50, 100,1000,5000,10000]"
@on-change="handleChangeCurrent"
@on-page-size-change="handleChangepage_size" />
</div>
</div>
</Modal>
</div>
</template>
......@@ -299,13 +409,95 @@
import Cookies from "js-cookie";
import dayjs from 'dayjs'
import * as hooks from "../../hooks/index"
import * as request from '@/api/request/controller'
export default {
//import引入的组件需要注入到对象中才能使用",
components: {},
data() {
//这里存放数据",
return {
//人员选择器
personnelSelector:{
show:false,
params:{
grade: '',
classVal: '',
deptyId: '',
lodgerKeyWord: '',
gender: '',
page: 1,
page_size: 10
},
loading: false,
tableData: [
{
name: '张三',
card_number: '001',
id: 1
},
{
name: '李四',
card_number: '002',
id: 2
},
{
name: '王五',
card_number: '003',
id: 3
},
{
name: '赵六',
card_number: '004',
id: 4
},
{
name: '孙七',
card_number: '005',
id: 5
}
],
tableColumns: [
{
title: '姓名',
key: 'name',
minWidth: 100
},
{
title: '工号',
key: 'card_number',
minWidth: 100
},
{
title: '操作',
slot: 'action',
width: 100,
align: 'center'
}
],
total: 0,
current: 1,
size: 10
},
//相互换班
intershift:{
show:false,
formData:{
name: '',
card_number: '',
date: '',
user_id: ''
},
dutyDateList: [],
rules:{
name: [
{ required: true, message: '请选择人员', trigger: 'change' }
],
date: [
{ required: true, message: '请选择换班日期', trigger: 'change' }
]
}
},
userArray: [],
tableLoading: false,
fileUploadFlag: false,
......@@ -517,7 +709,7 @@
{
title: "操作",
slot: 'action',
minWidth: 180,
minWidth: 280,
align: 'center',
fixed: 'right'
}
......@@ -584,6 +776,120 @@
//方法集合",
methods: {
/** 人员选择器 */
//触发人员选择器
selectorHandle() {
this.getPersonnelList();
this.personnelSelector.show = true;
},
// 级联选择器变化
cascaderChange(e) {
// 更新班级选择值
this.personnelSelector.params.classVal = e;
// 获取人员列表
this.getPersonnelList();
},
// 搜索
handleSearch() {
this.personnelSelector.params.page = 1;
this.getPersonnelList();
},
// 重置
handleReset() {
this.personnelSelector.params = {
grade: '',
classVal: '',
deptyId: '',
lodgerKeyWord: '',
gender: '',
page: 1,
page_size: 10
};
this.getPersonnelList();
},
// 选择人员
pick(row) {
this.intershift.formData = {
...this.intershift.formData,
name: row.name,
card_number: row.card_number,
user_id: row.id
};
this.personnelSelector.show = false;
},
// 分页改变
handleChangeCurrent(page) {
this.personnelSelector.params.page = page;
this.getPersonnelList();
},
// 每页条数改变
handleChangepage_size(size) {
this.personnelSelector.params.page_size = size;
this.getPersonnelList();
},
// 表格选择改变
selectionChange(selection) {
this.personnelSelector.selection = selection;
},
// 获取人员列表
getPersonnelList() {
this.personnelSelector.loading = true;
const params = {
...this.personnelSelector.params
};
request.getApiUserInfoApiUserInfoGetUserSelect(params)
.then(res => {
if(res.code === 1) {
//前端分页
// 先根据搜索条件过滤数据
const filteredData = res.response.filter(item => {
const condition = this.personnelSelector.params.coondition ? this.personnelSelector.params.coondition.toLowerCase() : '';
if (!condition) return true;
return (item.name && item.name.toString().toLowerCase().includes(condition))
});
// 再进行分页
this.personnelSelector.tableData = filteredData.slice(
(this.personnelSelector.params.page - 1) * this.personnelSelector.params.page_size,
this.personnelSelector.params.page * this.personnelSelector.params.page_size
);
this.personnelSelector.total = filteredData.length;
}
})
.catch(() => {
this.$Message.error('获取人员列表失败');
})
.finally(() => {
this.personnelSelector.loading = false;
});
},
/** 人员选择器 */
//触发相互换班
intershiftHandle(row) {
this.intershift.show = true;
this.intershift.formData = {
...this.intershift.formData,
name: row.name,
card_number: row.card_number,
user_id: row.id
};
},
//提交相互换班
confirmIntershift() {
console.log("🚀🚀🚀,", this.intershift.formData)
},
usernameChange1(e) {
api.UserWalk({card: e}).then(res => {
this.updateDutyFrom = {...this.updateDutyFrom, ...res.response}
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或