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

v20250211 初版保存

上级 6cb8a0a8
流水线 #32924 已通过 ,包含阶段
in 2 minute 和 18 second
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
[data-v-bec70c00] .ivu-form-item-label{font-weight:600}.form-title[data-v-bec70c00]{line-height:22px;text-align:center;font-size:20px;font-weight:700;padding:30px 0}.file-title[data-v-bec70c00]{font-weight:700;color:#333}.file-title[data-v-bec70c00]:hover{color:#2d8cf0}.zd-detail-form-preview[data-v-bec70c00] .ivu-drawer-mask,.zd-detail-form-preview[data-v-bec70c00] .ivu-drawer-wrap{z-index:1998}.filelist[data-v-d7439a08]{cursor:pointer}.filelist[data-v-d7439a08]:hover{color:#1e93ff;background-color:#f7f7f7}.fileddelete[data-v-d7439a08]{cursor:pointer;margin-left:auto}.fileddelete[data-v-d7439a08]:hover{color:red;transform:scale(1.5)}.index[data-v-d7439a08]{width:100%;box-sizing:border-box;padding:10px;background-color:#fff}table[data-v-d7439a08]{width:100%;background-color:#fff;border-color:#e3e8ee;text-align:center;border-radius:4px;border-top:1px solid #e3e8ee;border-left:1px solid #e3e8ee}tr[data-v-d7439a08]{border:none;text-align:center}td[data-v-d7439a08]{border-bottom:1px solid #e3e8ee;border-right:1px solid #e3e8ee;text-align:center;box-sizing:border-box;padding:6px;cursor:pointer;max-width:150px}td[data-v-d7439a08]:hover{background:#e7f7f4}td:hover .dis[data-v-d7439a08]{display:block;text-align:center;margin:0 auto;cursor:pointer}tr[data-v-d7439a08]:first-child{height:30px;background-color:#f3f3f3;border:none;color:#525252;font-weight:700;width:50px}.sepacialy[data-v-d7439a08]{border-top:1px solid #e3e8ee;border-left:1px solid #e3e8ee}.table-heard[data-v-d7439a08]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;box-sizing:border-box;padding:10px 10px}.table-heard .center[data-v-d7439a08]{display:flex;justify-content:center;align-items:center}.table-heard .center p[data-v-d7439a08]{font-size:20px;margin:0 30px}.course-item[data-v-d7439a08]{display:flex;justify-content:center;flex-direction:column;gap:6px;align-items:center;min-height:80px;border-radius:4px;box-sizing:border-box;padding:10px 0}.course-item p[data-v-d7439a08]{color:#3a3a3a}.time[data-v-d7439a08]{background:#f7f7f7;color:#707070;font-weight:700}.zd-split[data-v-d7439a08]{height:-10vh}.zd-split .ivu-split-trigger-con[data-v-d7439a08]{z-index:1}.zd-split[data-v-d7439a08] .ivu-tree-title-selected{background-color:#2d8cf0!important;color:#fff}.zd-split .zd-button-action[data-v-d7439a08]{display:flex;justify-content:space-between}.page-sys-menu-drawer-footer[data-v-d7439a08]{width:100%;position:fixed;bottom:0;left:0;border-top:1px solid #e8e8e8;padding:10px 16px;text-align:right;background:#fff;text-align:center;z-index:1998}.page-sys-menu-icon-select .i-icon-select-transfer[data-v-d7439a08]{width:280px!important}.page-sys-menu-icon-select .i-icon-select-drop-main[data-v-d7439a08]{width:280px!important;height:200px;overflow:auto}.zd-form[data-v-d7439a08] .ivu-drawer-body{background-color:#f5f7f9}.zd-form-card[data-v-d7439a08]{max-width:800px;margin:0 auto;margin-top:30px;padding:30px;background:#fff}.save-btn[data-v-d7439a08]{text-align:right;padding:15px;font-size:18px;background:#fff}.persommel-card[data-v-d7439a08] .ivu-card-body{height:100%}.list-personnel-list-item[data-v-d7439a08]{text-align:center;position:relative;box-shadow:5px 5px 10px rgba(0,0,0,.2);border-color:#eee;padding-bottom:32px;height:280px;width:210px}.list-personnel-list-item .ivu-avatar[data-v-d7439a08],.list-personnel-list-item img[data-v-d7439a08]{height:144px;width:108px;border-radius:0}.list-personnel-list-item .ivu-avatar[data-v-d7439a08] .ivu-icon,.list-personnel-list-item img[data-v-d7439a08] .ivu-icon{font-size:100px;margin-top:20px}.list-personnel-list-item-dept[data-v-d7439a08]{font-size:14px;font-weight:700;margin:2px 0}.list-personnel-list-item-desc[data-v-d7439a08]{font-size:14px;color:#808695}.list-personnel-list-item-name[data-v-d7439a08]{position:absolute;left:0;right:0;bottom:0;font-size:18px;font-weight:700;color:#fff;padding:4px 0;border-radius:0 0 4px 4px}.list-personnel-list-item-name.male[data-v-d7439a08]{background-color:#1890ff}.list-personnel-list-item-name.female[data-v-d7439a08]{background-color:#f45151}.list-personnel-list-item-name.other[data-v-d7439a08]{background-color:#808695}.setting-user-avatar[data-v-d7439a08]{width:128px;height:auto;border-radius:0!important}.setting-user-avatar[data-v-d7439a08] .ivu-icon{font-size:128px}.setting-user-avatar[data-v-d7439a08] .ivu-avatar>img{height:auto}.zd-anchor>div[data-v-d7439a08]{background:#fff;padding-left:16px}[data-v-d7439a08] .ivu-anchor-wrapper{max-height:88vh!important}.zd-detail-form-preview[data-v-d7439a08] .ivu-drawer-mask,.zd-detail-form-preview[data-v-d7439a08] .ivu-drawer-wrap{z-index:1998}.menuFlex[data-v-d7439a08]{display:flex;justify-content:space-between;align-items:center}.menuFlex .aaaxx[data-v-d7439a08]{float:right;width:50px;height:30px;color:#1890ff;background:#e6f7ff;display:flex;justify-content:center;align-items:center;border-radius:20px;border:1px solid #91d5ff}
\ No newline at end of file
[data-v-1bbb457c] .ivu-form-item-label{font-weight:600}.form-title[data-v-1bbb457c]{line-height:22px;text-align:center;font-size:20px;font-weight:700;padding:30px 0}.file-title[data-v-1bbb457c]{font-weight:700;color:#333}.file-title[data-v-1bbb457c]:hover{color:#2d8cf0}.zd-detail-form-preview[data-v-1bbb457c] .ivu-drawer-mask,.zd-detail-form-preview[data-v-1bbb457c] .ivu-drawer-wrap{z-index:1998}.filelist[data-v-f59624ac]{cursor:pointer}.filelist[data-v-f59624ac]:hover{color:#1e93ff;background-color:#f7f7f7}.fileddelete[data-v-f59624ac]{cursor:pointer;margin-left:auto}.fileddelete[data-v-f59624ac]:hover{color:red;transform:scale(1.5)}.index[data-v-f59624ac]{width:100%;box-sizing:border-box;padding:10px;background-color:#fff}table[data-v-f59624ac]{width:100%;background-color:#fff;border-color:#e3e8ee;text-align:center;border-radius:4px;border-top:1px solid #e3e8ee;border-left:1px solid #e3e8ee}tr[data-v-f59624ac]{border:none;text-align:center}td[data-v-f59624ac]{border-bottom:1px solid #e3e8ee;border-right:1px solid #e3e8ee;text-align:center;box-sizing:border-box;padding:6px;cursor:pointer;max-width:150px}td[data-v-f59624ac]:hover{background:#e7f7f4}td:hover .dis[data-v-f59624ac]{display:block;text-align:center;margin:0 auto;cursor:pointer}tr[data-v-f59624ac]:first-child{height:30px;background-color:#f3f3f3;border:none;color:#525252;font-weight:700;width:50px}.sepacialy[data-v-f59624ac]{border-top:1px solid #e3e8ee;border-left:1px solid #e3e8ee}.table-heard[data-v-f59624ac]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;box-sizing:border-box;padding:10px 10px}.table-heard .center[data-v-f59624ac]{display:flex;justify-content:center;align-items:center}.table-heard .center p[data-v-f59624ac]{font-size:20px;margin:0 30px}.course-item[data-v-f59624ac]{display:flex;justify-content:center;flex-direction:column;gap:6px;align-items:center;min-height:80px;border-radius:4px;box-sizing:border-box;padding:10px 0}.course-item p[data-v-f59624ac]{color:#3a3a3a}.time[data-v-f59624ac]{background:#f7f7f7;color:#707070;font-weight:700}.zd-split[data-v-f59624ac]{height:-10vh}.zd-split .ivu-split-trigger-con[data-v-f59624ac]{z-index:1}.zd-split[data-v-f59624ac] .ivu-tree-title-selected{background-color:#2d8cf0!important;color:#fff}.zd-split .zd-button-action[data-v-f59624ac]{display:flex;justify-content:space-between}.page-sys-menu-drawer-footer[data-v-f59624ac]{width:100%;position:fixed;bottom:0;left:0;border-top:1px solid #e8e8e8;padding:10px 16px;text-align:right;background:#fff;text-align:center;z-index:1998}.page-sys-menu-icon-select .i-icon-select-transfer[data-v-f59624ac]{width:280px!important}.page-sys-menu-icon-select .i-icon-select-drop-main[data-v-f59624ac]{width:280px!important;height:200px;overflow:auto}.zd-form[data-v-f59624ac] .ivu-drawer-body{background-color:#f5f7f9}.zd-form-card[data-v-f59624ac]{max-width:800px;margin:0 auto;margin-top:30px;padding:30px;background:#fff}.save-btn[data-v-f59624ac]{text-align:right;padding:15px;font-size:18px;background:#fff}.persommel-card[data-v-f59624ac] .ivu-card-body{height:100%}.list-personnel-list-item[data-v-f59624ac]{text-align:center;position:relative;box-shadow:5px 5px 10px rgba(0,0,0,.2);border-color:#eee;padding-bottom:32px;height:280px;width:210px}.list-personnel-list-item .ivu-avatar[data-v-f59624ac],.list-personnel-list-item img[data-v-f59624ac]{height:144px;width:108px;border-radius:0}.list-personnel-list-item .ivu-avatar[data-v-f59624ac] .ivu-icon,.list-personnel-list-item img[data-v-f59624ac] .ivu-icon{font-size:100px;margin-top:20px}.list-personnel-list-item-dept[data-v-f59624ac]{font-size:14px;font-weight:700;margin:2px 0}.list-personnel-list-item-desc[data-v-f59624ac]{font-size:14px;color:#808695}.list-personnel-list-item-name[data-v-f59624ac]{position:absolute;left:0;right:0;bottom:0;font-size:18px;font-weight:700;color:#fff;padding:4px 0;border-radius:0 0 4px 4px}.list-personnel-list-item-name.male[data-v-f59624ac]{background-color:#1890ff}.list-personnel-list-item-name.female[data-v-f59624ac]{background-color:#f45151}.list-personnel-list-item-name.other[data-v-f59624ac]{background-color:#808695}.setting-user-avatar[data-v-f59624ac]{width:128px;height:auto;border-radius:0!important}.setting-user-avatar[data-v-f59624ac] .ivu-icon{font-size:128px}.setting-user-avatar[data-v-f59624ac] .ivu-avatar>img{height:auto}.zd-anchor>div[data-v-f59624ac]{background:#fff;padding-left:16px}[data-v-f59624ac] .ivu-anchor-wrapper{max-height:88vh!important}.zd-detail-form-preview[data-v-f59624ac] .ivu-drawer-mask,.zd-detail-form-preview[data-v-f59624ac] .ivu-drawer-wrap{z-index:1998}.menuFlex[data-v-f59624ac]{display:flex;justify-content:space-between;align-items:center}.menuFlex .aaaxx[data-v-f59624ac]{float:right;width:50px;height:30px;color:#1890ff;background:#e6f7ff;display:flex;justify-content:center;align-items:center;border-radius:20px;border:1px solid #91d5ff}
\ No newline at end of file
.top-condition[data-v-149d11d0]{display:flex}[data-v-149d11d0] .ivu-checkbox-group-item{margin-bottom:10px}
\ No newline at end of file
.top-condition[data-v-060d5388]{display:flex}[data-v-060d5388] .ivu-checkbox-group-item{margin-bottom:10px}
\ 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"><title>日程管理</title><link href=css/chunk-vendors.cc1990b1.css rel=stylesheet><link href=css/app.e335ea91.css rel=stylesheet></head><body><script src=/a/manager/identify/identify.js></script><noscript><strong>请开启 JavaScript 功能来使用 日程管理。</strong></noscript><div id=app></div><script src=js/chunk-vendors.f2dddb15.js></script><script src=js/app.a20dbc51.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"><title>日程管理</title><link href=css/chunk-vendors.cc1990b1.css rel=stylesheet><link href=css/app.072a408f.css rel=stylesheet></head><body><script src=/a/manager/identify/identify.js></script><noscript><strong>请开启 JavaScript 功能来使用 日程管理。</strong></noscript><div id=app></div><script src=js/chunk-vendors.f2dddb15.js></script><script src=js/app.9baec48e.js></script></body></html>
\ No newline at end of file
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-015073c6"],{"0cbf":function(module,__webpack_exports__,__webpack_require__){"use strict";var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("8e6e"),core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__),regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("96cf"),regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_1__),_Users_ajiedebijiben_Documents_vue_hy_schedule_pc_node_modules_babel_runtime_corejs2_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("3b8d"),core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("28a5"),core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("456d"),core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("ac6a"),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5__),_Users_ajiedebijiben_Documents_vue_hy_schedule_pc_node_modules_babel_runtime_corejs2_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("bd86"),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("7f7f"),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_7__),core_js_modules_es6_array_find_index__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("20d6"),core_js_modules_es6_array_find_index__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(core_js_modules_es6_array_find_index__WEBPACK_IMPORTED_MODULE_8__),_babel_runtime_corejs2_regenerator__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("967e"),_babel_runtime_corejs2_regenerator__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(_babel_runtime_corejs2_regenerator__WEBPACK_IMPORTED_MODULE_9__),_components_common_CTable_vue__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("d670"),_components_common_CEditModal_vue__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("12cb"),_components_common_SearchCondForm_vue__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("5057"),lodash__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("2ef0"),lodash__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_13__),_api_controller_index__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("d02c"),_hook_index__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("61be"),dayjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("5a0c"),dayjs__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(dayjs__WEBPACK_IMPORTED_MODULE_16__);function ownKeys(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(a),!0).forEach((function(t){Object(_Users_ajiedebijiben_Documents_vue_hy_schedule_pc_node_modules_babel_runtime_corejs2_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ownKeys(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}__webpack_exports__["a"]={name:"list",components:{CTable:_components_common_CTable_vue__WEBPACK_IMPORTED_MODULE_10__["a"],CEditModal:_components_common_CEditModal_vue__WEBPACK_IMPORTED_MODULE_11__["a"],SearchCondForm:_components_common_SearchCondForm_vue__WEBPACK_IMPORTED_MODULE_12__["a"]},data:function(){return{daylightHours:{show:!1,morrow:0,value:[]},eveningTime:{show:!1,morrow:0,value:[]},isEdit:!1,editModalShowArea:!1,addrTitle:"",addrName:void 0,addrRange:100,address:void 0,addrRangeList:[{label:"50米",value:50},{label:"100米",value:100},{label:"200米",value:200},{label:"300米",value:300},{label:"400米",value:400},{label:"500米",value:500},{label:"600米",value:600},{label:"700米",value:700},{label:"800米",value:800},{label:"900米",value:900},{label:"1000米",value:1e3},{label:"2000米",value:2e3},{label:"3000米",value:3e3}],locSetModalShow:!1,btSaveLoading:!1,ruleValidate:{name:[{required:!0,message:"The name cannot be empty",trigger:"blur"}],mail:[{required:!0,message:"Mailbox cannot be empty",trigger:"blur"},{type:"email",message:"Incorrect email format",trigger:"blur"}],city:[{required:!0,message:"Please select the city",trigger:"change"}],gender:[{required:!0,message:"Please select gender",trigger:"change"}],interest:[{required:!0,type:"array",min:1,message:"Choose at least one hobby",trigger:"change"},{type:"array",max:2,message:"Choose two hobbies at best",trigger:"change"}],date:[{required:!0,type:"date",message:"Please select the date",trigger:"change"}],time:[{required:!0,type:"string",message:"Please select time",trigger:"change"}],desc:[{required:!0,message:"Please enter a personal introduction",trigger:"blur"},{type:"string",min:20,message:"Introduce no less than 20 words",trigger:"blur"}]},grid:{xl:12,lg:12,md:24,sm:24,xs:24},formValidate:{name:"",sign_daytime:{},start_daytime:"",end_daytime:"",duty_night_time_start:"",duty_night_time_end:"",sign_night_time:[],attandence_area:[],log_content:"",day_time_start:"",day_time_end:"",effect_begin:"",effect_end:""},searchCondList:[{id:"name",name:"配置名称",type:"input",show:!0,optList:[]}],params:{id:"",name:"",page_index:1,page_size:10},tableColumns:[{type:"index",title:"序号",align:"center",width:80,show:!0,fixed:"left"},{key:"name",title:"值班配置值班",align:"center",minWidth:150,show:!0},{key:"day_time",title:"一天值班时间段",align:"center",minWidth:150,show:!1},{key:"effect_begin",title:"配置生效开始时间",align:"center",minWidth:150,show:!0},{key:"effect_end",title:"配置生效结束时间",align:"center",minWidth:150,show:!0},{slot:"log_content",title:"值班日志",align:"center",minWidth:150,show:!0},{slot:"generalSwitch",title:"启用",align:"center",minWidth:150,show:!0},{slot:"actionAndDetails",title:"操作",align:"center",minWidth:160,show:!0,fixed:"right"}],tableLoading:!1,tableData:[],tableSize:"default",tableFullscreen:!1,dataCount:0,collapse:!1,regionDot:0,editModalshow:!1,editModalLoading:!1,flag:"",formItem:[{id:"name",name:"配置名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"effect_beginAndEffect_end",name:"配置生效时间",type:"datetimerange",disabled:!1,require:!1,optList:[]},{id:"day_time",name:"一天值班时间段",type:"timerange",disabled:!1,require:!1,optList:[]},{id:"sign_daytime",name:"值班时间区间",type:"timeTable",disabled:!1,require:!1,columns:[{title:"周数",width:100,key:"day"},{title:"值班时间",slot:"time",minWidth:410},{title:" ",slot:"action",width:140}],data:[{day:"周一",time:""},{day:"周二",time:""},{day:"周三",time:""},{day:"周四",time:""},{day:"周五",time:""},{day:"周六",time:""},{day:"周日",time:""}],optList:[]},{id:"log_content",name:"配置日志",type:"textarea",disabled:!1,require:!1,optList:[]},{id:"attandence_area",name:"值班打卡坐标",type:"area",disabled:!1,require:!1,optList:[]},{id:"is_sign",name:"是否签到",type:"switch",disabled:!1,require:!1,optList:[]}],formRule:{name:[{required:!0,message:"该项不能为空",trigger:"blur"}],effect_beginAndEffect_end:[{type:"array",required:!0,message:"该项不能为空",trigger:"change"}],day_time:[{type:"array",required:!0,message:"该项不能为空",trigger:"change"}],duty_daytime:[{type:"array",required:!0,message:"该项不能为空",trigger:"change"}],duty_night_time:[{type:"array",required:!0,message:"该项不能为空",trigger:"change"}],sign_night_time:[{type:"array",required:!0,message:"该项不能为空",trigger:"change"},{type:"array",required:!0,message:"该项不能为空",trigger:"blur"}],attandence_area:[{type:"array",required:!0,message:"该项不能为空",trigger:"change"},{type:"array",required:!0,message:"该项不能为空",trigger:"blur"}]},defaultFormData:{name:"",start_daytime:"",end_daytime:"",sign_daytime:{},duty_night_time_start:"",duty_night_time_end:"",sign_night_time:[],attandence_area:[],log_content:"",day_time_start:"",day_time_end:"",effect_begin:"",effect_end:"",is_sign:0},roleList:[]}},computed:{tableDataCal:function(){var e=(this.params.page_index-1)*this.params.page_size,t=e+this.params.page_size;return this.tableData.slice(e,t)}},created:function(){},mounted:function(){this.getData();var e=this;window.addEventListener("message",(function(t){var a=t.data;a&&"locationPicker"==a.module&&(e.address=a)}),!1)},methods:{showOpenTime:function showOpenTime(row){var info={one:"周一",two:"周二",three:"周三",four:"周四",five:"周五",six:"周六",seven:"周日"},data=eval("("+row.service_interval_time+")");this.openTime.data=[{day:info["one"],time:data["one"]},{day:info["two"],time:data["two"]},{day:info["three"],time:data["three"]},{day:info["four"],time:data["four"]},{day:info["five"],time:data["five"]},{day:info["six"],time:data["six"]},{day:info["seven"],time:data["seven"]}],this.$forceUpdate(),this.openTime.show=!0},defaultOpeningHours:function defaultOpeningHours(noFormatData){console.log("🚀🚀noFo11rmatData🚀,",noFormatData);var info={one:"周一",two:"周二",three:"周三",four:"周四",five:"周五",six:"周六",seven:"周日"},data="string"===typeof noFormatData?eval("("+noFormatData+")"):{one:[],two:[],three:[],four:[],five:[],six:[],seven:[]};console.log("🚀🚀🚀data,",data),this.formItem[this.formItem.findIndex((function(e){return"timeTable"===e.type}))].data=[{day:info["one"],time:data["one"]},{day:info["two"],time:data["two"]},{day:info["three"],time:data["three"]},{day:info["four"],time:data["four"]},{day:info["five"],time:data["five"]},{day:info["six"],time:data["six"]},{day:info["seven"],time:data["seven"]}]},setTime2:function(){this.eveningTime.show=!0,this.eveningTime.morrow=0,this.eveningTime.value=[]},setTime1:function(){this.daylightHours.show=!0,this.daylightHours.morrow=0,this.daylightHours.value=[]},setMap:function(){this.editModalShowArea=!0},nextStep:function(){this.addrName=this.address.poiname,this.addrTitle=this.address.poiname,this.locSetModalShow=!0},saveAttendance:function(){this.addrName=this.address.poiname,this.addrTitle=this.address.poiname;var e={address:this.addrName,latitude:this.address.latlng.lat,longitude:this.address.latlng.lng,offset:this.addrRange};this.defaultFormData.attandence_area.push(e),this.$refs.ceditmodal.formData.attandence_area.push(e),this.editModalShowArea=!1,this.address=void 0},handleSubmit:function(e){var t=this;this.$refs[e].validate((function(e){e?t.$Message.success("Success!"):t.$Message.error("Fail!")}))},getPeopleList:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.asc.getApiCommonGetPersonByCondiction({user_type:1,keyword:t}).then((function(t){var a=t.response.map((function(e){return _objectSpread(_objectSpread({},e),{},{label:e.name+"-"+e.card,value:e.name+"-"+e.card})}));e.formItem[e.formItem.findIndex((function(e){return"cardName"===e.id}))].optList=a}))},search:function(e){var t=this;Object.keys(e).forEach((function(a){e[a]?t.params[a]=e[a]:t.params[a]=""})),this.onPageChange(1)},reset:function(){var e=this;this.searchCondList.forEach((function(t){e.params[t.id]=""})),this.onPageChange(1)},getData:function(){var e=this;this.tableLoading=!0,_api_controller_index__WEBPACK_IMPORTED_MODULE_14__["e"](this.params).then((function(t){console.log("🚀res🚀🚀,",t),e.tableData=t.data,e.dataCount=t.data_count,e.tableLoading=!1}))},switchChange:function(e,t,a){var i=this;_api_controller_index__WEBPACK_IMPORTED_MODULE_14__["f"]({id:t.id,is_enable:e}).then((function(e){i.$Message.success("操作成功"),i.getData()}))},rowDetails:function(e){var t=this;this.formItem[this.formItem.findIndex((function(e){return"timeTable"===e.type}))].columns=[{title:"周数",width:100,key:"day"},{title:"值班时间",slot:"time",minWidth:590}],this.$forceUpdate(),this.defaultOpeningHours(e.sign_daytime),this.regionDot=0,this.editModalshow=!0,this.editModalLoading=!0,_api_controller_index__WEBPACK_IMPORTED_MODULE_14__["d"]({id:e.id}).then((function(a){t.$forceUpdate(),t.defaultOpeningHours(a.sign_daytime),t.$refs.ceditmodal.modalDetailsInit(_objectSpread(_objectSpread({id:e.id},a),{},{attandence_area:JSON.parse(a.attendance_area),day_time:a.day_time.split("~"),effect_beginAndEffect_end:[dayjs__WEBPACK_IMPORTED_MODULE_16___default()(a.effect_begin).format("YYYY-MM-DD HH:mm"),dayjs__WEBPACK_IMPORTED_MODULE_16___default()(a.effect_end).format("YYYY-MM-DD HH:mm")]}),"name"),t.editModalLoading=!1})).finally((function(){t.editModalLoading=!1}))},add:function(){this.formItem[this.formItem.findIndex((function(e){return"timeTable"===e.type}))].columns=[{title:"周数",width:100,key:"day"},{title:"值班时间",slot:"time",minWidth:490},{title:" ",slot:"action",width:110}],console.log("🚀🚀this.defaultFormData.sign_daytime🚀,",this.defaultFormData.sign_daytime),this.defaultOpeningHours(this.defaultFormData.sign_daytime),this.flag="add",this.editModalshow=!0,this.regionDot=0,this.$refs.ceditmodal.modalInit("add",_objectSpread(_objectSpread({},this.defaultFormData),{},{effect_beginAndEffect_end:[],attandence_area:[]}),"新增值班配置")},rowEdit:function(){var e=Object(_Users_ajiedebijiben_Documents_vue_hy_schedule_pc_node_modules_babel_runtime_corejs2_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__["a"])(_babel_runtime_corejs2_regenerator__WEBPACK_IMPORTED_MODULE_9___default.a.mark((function e(t){var a=this;return _babel_runtime_corejs2_regenerator__WEBPACK_IMPORTED_MODULE_9___default.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:console.log("编辑行",t),this.formItem[this.formItem.findIndex((function(e){return"timeTable"===e.type}))].columns=[{title:"周数",width:100,key:"day"},{title:"值班时间",slot:"time",minWidth:490},{title:" ",slot:"action",width:110}],this.flag="edit",this.editModalshow=!0,this.editModalLoading=!0,_api_controller_index__WEBPACK_IMPORTED_MODULE_14__["d"]({id:t.id}).then((function(e){a.defaultOpeningHours(e.sign_daytime),a.$refs.ceditmodal.aaa++,a.$refs.ceditmodal.modalInit("edit",_objectSpread(_objectSpread({id:t.id},e),{},{attandence_area:JSON.parse(e.attendance_area),day_time:e.day_time.split("~"),effect_beginAndEffect_end:[dayjs__WEBPACK_IMPORTED_MODULE_16___default()(e.effect_begin).format("YYYY-MM-DD HH:mm"),dayjs__WEBPACK_IMPORTED_MODULE_16___default()(e.effect_end).format("YYYY-MM-DD HH:mm")]})),a.editModalLoading=!1})).finally((function(){a.editModalLoading=!1}));case 6:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),modalSubmit:function(e){var t=this;console.log("modal提交",e),e=_objectSpread(_objectSpread({},e),{},{day_time_end:e.day_time.split("-")[1],day_time_start:e.day_time.split("-")[0],effect_begin:dayjs__WEBPACK_IMPORTED_MODULE_16___default()(e.effect_beginAndEffect_end[0]).format("YYYY-MM-DD HH:mm"),effect_end:dayjs__WEBPACK_IMPORTED_MODULE_16___default()(e.effect_beginAndEffect_end[1]).format("YYYY-MM-DD HH:mm"),sign_daytime:JSON.parse(e.sign_daytime)}),console.log("222",e),delete e.effect_beginAndEffect_end,delete e.end_daytime,delete e.start_daytime,delete e.duty_night_time_end,delete e.duty_night_time_start,delete e.sign_night_time,delete e.daytime_num,delete e.duty_daytime,delete e.duty_night_num,delete e.duty_night_time;var a={add:function(){t.$Modal.confirm({title:"提示",content:"是否确定提交?",loading:!0,onOk:function(){_api_controller_index__WEBPACK_IMPORTED_MODULE_14__["g"](e).then((function(e){t.$Message.success("成功"),t.editModalshow=!1,t.getData()})).finally((function(){t.$Modal.remove()}))}})},edit:function(){t.$Modal.confirm({title:"提示",content:"是否确定提交?",loading:!0,onOk:function(){_api_controller_index__WEBPACK_IMPORTED_MODULE_14__["h"](e).then((function(e){t.$Message.success("成功"),t.editModalshow=!1,t.getData()})).finally((function(){t.$Modal.remove()}))}})}};a[this.flag]()},rowDelete:function(e){var t=this;_api_controller_index__WEBPACK_IMPORTED_MODULE_14__["c"]({id:e.id}).then((function(e){t.$Message.success("操作成功"),t.getData()}))},onPageChange:function(e){this.params.page_index=e,this.getData()},onPageSizeChange:function(e){this.params.page_size=e,1==this.params.page_index&&this.onPageChange(1)}}}},"386d":function(e,t,a){"use strict";var i=a("cb7c"),n=a("83a1"),_=a("5f1b");a("214f")("search",1,(function(e,t,a,o){return[function(a){var i=e(this),n=void 0==a?void 0:a[t];return void 0!==n?n.call(a,i):new RegExp(a)[t](String(i))},function(e){var t=o(a,e,this);if(t.done)return t.value;var r=i(e),s=String(this),d=r.lastIndex;n(d,0)||(r.lastIndex=0);var l=_(r,s);return n(r.lastIndex,d)||(r.lastIndex=d),null===l?-1:l.index}]}))},5057:function(e,t,a){"use strict";a("7f7f");var i=function(){var e=this,t=e._self._c;return t("div",[t("Form",{staticClass:"searchDiv",attrs:{model:e.searchCondObj,"label-width":e.labelWidth,"label-colon":e.labelColon}},[t("Row",[e._l(e.searchCondList.filter((function(e){return e.show})),(function(a){return t("Col",e._b({key:a.id},"Col",e.grid,!1),[t("FormItem",{attrs:{label:a.name}},["input"==a.type?t("Input",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"请输入"+a.name},model:{value:e.searchCondObj[a.id],callback:function(t){e.$set(e.searchCondObj,a.id,t)},expression:"searchCondObj[item.id]"}}):"select"==a.type?t("Select",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"请选择"+a.name},model:{value:e.searchCondObj[a.id],callback:function(t){e.$set(e.searchCondObj,a.id,t)},expression:"searchCondObj[item.id]"}},e._l(a.optList,(function(a){return t("Option",{key:a.value,attrs:{value:a.value}},[e._v(e._s(a.label))])})),1):"datetime"==a.type?t("DatePicker",{attrs:{type:"datetime",format:"yyyy-MM-dd HH:mm",placeholder:"请选择"+a.name},on:{"on-change":function(t,i){return e.datetimeChange(t,i,a.id)}},model:{value:e.searchCondObj[a["id"]],callback:function(t){e.$set(e.searchCondObj,a["id"],t)},expression:"searchCondObj[item['id']]"}}):e._e()],1)],1)})),t("Col",e._b({staticClass:"buttonCol"},"Col",e.grid,!1),[t("Button",{attrs:{type:"primary"},on:{click:e.searchBt}},[e._v("查询")]),t("Button",{on:{click:e.resetBt}},[e._v("重置")])],1)],2)],1)],1)},n=[],_=(a("c5f6"),{props:{searchCondList:{type:Array,require:!0},labelWidth:{type:Number,default:100},labelColon:{type:Boolean,default:!0}},data:function(){return{grid:{sm:12,md:12,lg:8,xl:6},searchCondObj:{}}},computed:{},created:function(){},mounted:function(){},methods:{searchBt:function(){this.$emit("onSubmit",this.searchCondObj)},resetBt:function(){this.searchCondObj={},this.$emit("onReset")},datetimeChange:function(e,t,a){this.searchCondObj[a]=e}}}),o=_,r=(a("6d17"),a("2877")),s=Object(r["a"])(o,i,n,!1,null,"45d49b8a",null);t["a"]=s.exports},"6d17":function(e,t,a){"use strict";a("6eee")},"6eee":function(e,t,a){},"731a":function(e,t,a){"use strict";a.r(t);a("386d");var i=function(){var e=this,t=e._self._c;return t("div",[t("Modal",{attrs:{title:"白天签到时间",width:"400"},scopedSlots:e._u([{key:"footer",fn:function(){return[t("Button",{on:{click:function(){return e.daylightHours.show=!1}}},[e._v("取消")]),t("Button",{attrs:{disabled:!e.daylightHours.value.length>0,type:"primary"},on:{click:function(){e.daylightHours.show=!1,e.$refs.ceditmodal.$refs.form.validate()}}},[e._v("确定\n ")])]},proxy:!0}]),model:{value:e.daylightHours.show,callback:function(t){e.$set(e.daylightHours,"show",t)},expression:"daylightHours.show"}},[t("TimePicker",{staticStyle:{width:"calc(100% - 70px)"},attrs:{format:"HH:mm",placeholder:"请选择时间",placement:"bottom-end",type:"timerange"},model:{value:e.daylightHours.value,callback:function(t){e.$set(e.daylightHours,"value",t)},expression:"daylightHours.value"}}),t("i-switch",{staticClass:"ivu-ml-8",attrs:{"false-value":0,"true-value":1,size:"large"},scopedSlots:e._u([{key:"open",fn:function(){return[t("span",[e._v("次日")])]},proxy:!0},{key:"close",fn:function(){return[t("span",[e._v("当日")])]},proxy:!0}]),model:{value:e.daylightHours.morrow,callback:function(t){e.$set(e.daylightHours,"morrow",t)},expression:"daylightHours.morrow"}})],1),t("Modal",{attrs:{title:"晚上签到时间",width:"400"},scopedSlots:e._u([{key:"footer",fn:function(){return[t("Button",{on:{click:function(){return e.eveningTime.show=!1}}},[e._v("取消")]),t("Button",{attrs:{disabled:!e.eveningTime.value.length>0,type:"primary"},on:{click:function(){e.$refs.ceditmodal.formData.sign_night_time.push({begin:e.eveningTime.value[0],end:e.eveningTime.value[1],morrow:e.eveningTime.morrow}),e.eveningTime.show=!1,e.$refs.ceditmodal.$refs.form.validate()}}},[e._v("确定\n ")])]},proxy:!0}]),model:{value:e.eveningTime.show,callback:function(t){e.$set(e.eveningTime,"show",t)},expression:"eveningTime.show"}},[t("TimePicker",{staticStyle:{width:"calc(100% - 70px)"},attrs:{format:"HH:mm",placeholder:"请选择时间",placement:"bottom-end",type:"timerange"},model:{value:e.eveningTime.value,callback:function(t){e.$set(e.eveningTime,"value",t)},expression:"eveningTime.value"}}),t("i-switch",{staticClass:"ivu-ml-8",attrs:{"false-value":0,"true-value":1,size:"large"},scopedSlots:e._u([{key:"open",fn:function(){return[t("span",[e._v("次日")])]},proxy:!0},{key:"close",fn:function(){return[t("span",[e._v("当日")])]},proxy:!0}]),model:{value:e.eveningTime.morrow,callback:function(t){e.$set(e.eveningTime,"morrow",t)},expression:"eveningTime.morrow"}})],1),t("Modal",{attrs:{title:"".concat(e.isEdit?"编辑":"添加","考勤地点"),"mask-closable":""},on:{"on-cancle":function(t){e.address=void 0}},scopedSlots:e._u([{key:"footer",fn:function(){return[t("Button",{attrs:{disabled:void 0==e.address,type:"primary"},on:{click:function(t){e.saveAttendance(),e.$refs.ceditmodal.$refs.form.validate()}}},[e._v("确定\n ")])]},proxy:!0}]),model:{value:e.editModalShowArea,callback:function(t){e.editModalShowArea=t},expression:"editModalShowArea"}},[[t("iframe",{attrs:{id:"mapPage",src:"https://apis.map.qq.com/tools/locpicker?search=1&type=1&key=IZXBZ-OTAWV-XU7PV-5FAAL-F6VXH-7XBQP&referer=myapp",frameborder:"0",height:"500px",width:"100%"}})],t("div",{staticStyle:{width:"60%",display:"flex",height:"30px","align-items":"center"}},[t("div",{staticStyle:{width:"100px"}},[e._v("打开范围:")]),t("Select",{model:{value:e.addrRange,callback:function(t){e.addrRange=t},expression:"addrRange"}},e._l(e.addrRangeList,(function(a){return t("Option",{key:a.value,attrs:{value:a.value}},[e._v(e._s(a.label))])})),1)],1)],2),t("Modal",{attrs:{"mask-closable":"",title:"地点设置"},scopedSlots:e._u([{key:"footer",fn:function(){return[t("Button",{on:{click:function(t){e.locSetModalShow=!1}}},[e._v("上一步")]),t("Button",{attrs:{loading:e.btSaveLoading,type:"primary"},on:{click:e.saveAttendance}},[e._v("确定")])]},proxy:!0}]),model:{value:e.locSetModalShow,callback:function(t){e.locSetModalShow=t},expression:"locSetModalShow"}},[[t("Form",{attrs:{"label-width":100,"label-colon":""}},[t("Row",[t("Col",{attrs:{span:"24"}},[t("FormItem",{attrs:{label:"标题"}},[t("Input",{attrs:{type:"text"},model:{value:e.addrTitle,callback:function(t){e.addrTitle=t},expression:"addrTitle"}})],1)],1),t("Col",{attrs:{span:"24"}},[t("FormItem",{attrs:{label:"地点名称"}},[t("Input",{attrs:{type:"text"},model:{value:e.addrName,callback:function(t){e.addrName=t},expression:"addrName"}})],1)],1),t("Col",{attrs:{span:"24"}},[t("FormItem",{attrs:{label:"打卡范围"}},[t("Select",{model:{value:e.addrRange,callback:function(t){e.addrRange=t},expression:"addrRange"}},e._l(e.addrRangeList,(function(a){return t("Option",{key:a.value,attrs:{value:a.value}},[e._v(e._s(a.label))])})),1)],1)],1)],1)],1)]],2),t("CEditModal",{ref:"ceditmodal",attrs:{formItem:e.formItem,formLabelWidth:100,formRule:e.formRule,loading:e.editModalLoading,regionDot:e.regionDot,width:850},on:{getPeopleList:e.getPeopleList,onClose:function(t){e.editModalshow=!1},onSubmit:e.modalSubmit,setMap:e.setMap,setTime1:e.setTime1,setTime2:e.setTime2},model:{value:e.editModalshow,callback:function(t){e.editModalshow=t},expression:"editModalshow"}}),t("Card",{ref:"card"},[t("SearchCondForm",{attrs:{labelWidth:120,searchCondList:e.searchCondList},on:{onReset:e.reset,onSubmit:e.search}}),t("Button",{staticClass:"ivu-ml-8",attrs:{ghost:"",type:"primary"},on:{click:e.add}},[t("Icon",{attrs:{type:"md-add"}}),e._v("\n 新增\n ")],1),t("CTable",{attrs:{dataCount:e.dataCount,pageIndex:e.params.page_index,pageSize:e.params.page_size,tableColumns:e.tableColumns.filter((function(e){return e.show})),tableData:e.tableData,tableLoading:e.tableLoading,tableSize:e.tableSize},on:{onPageChange:e.onPageChange,onPageSizeChange:e.onPageSizeChange,rowDelete:e.rowDelete,rowDetails:e.rowDetails,rowEdit:e.rowEdit,switchChange:e.switchChange},scopedSlots:e._u([{key:"log_content",fn:function(e){var a=e.row;return[t("Ellipsis",{attrs:{height:80,text:a.log_content,transfer:!0,tooltip:""}})]}}])})],1)],1)},n=[],_=a("0cbf"),o=_["a"],r=a("2877"),s=Object(r["a"])(o,i,n,!1,null,null,null);t["default"]=s.exports},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},d670:function(e,t,a){"use strict";var i=function(){var e=this,t=e._self._c;return t("div",[t("Table",{staticClass:"ivu-mt",attrs:{columns:e.tableColumns,data:e.tableData,loading:e.tableLoading,size:e.tableSize},scopedSlots:e._u([{key:"generalSwitch",fn:function(a){var i=a.row,n=a.index;return[t("i-switch",{attrs:{size:"large","true-value":1,"false-value":0},on:{"on-change":function(t){return e.switchChange(t,i,n)}},model:{value:i.is_enable,callback:function(t){e.$set(i,"is_enable",t)},expression:"row.is_enable"}},[t("span",{attrs:{slot:"open",type:"md-checkmark"},slot:"open"},[e._v("启用")]),t("span",{attrs:{slot:"close",type:"md-close"},slot:"close"},[e._v("停用")])])]}},{key:"action",fn:function(a){var i=a.row;return[t("Button",{attrs:{type:"info",size:"small"},on:{click:function(t){return e.edit(i)}}},[e._v("编辑")]),t("Poptip",{attrs:{confirm:"",transfer:"",title:"是否确认删除?"},on:{"on-ok":function(t){return e.del(i)}}},[t("Button",{staticStyle:{"margin-left":"8px"},attrs:{type:"error",size:"small"}},[e._v("删除")])],1)]}},{key:"actionAndDetails",fn:function(a){var i=a.row;return[t("a",{attrs:{type:"text"},on:{click:function(t){return e.details(i)}}},[e._v("详情")]),t("Divider",{attrs:{type:"vertical"}}),t("a",{attrs:{type:"text"},on:{click:function(t){return e.edit(i)}}},[e._v("编辑")]),t("Divider",{attrs:{type:"vertical"}}),t("Poptip",{attrs:{confirm:"",transfer:"",title:"是否确认删除?"},on:{"on-ok":function(t){return e.del(i)}}},[t("a",{attrs:{type:"text"}},[e._v("删除")])])]}},e._l(e.$scopedSlots,(function(t,a){return{key:a,fn:function(t){return[e._t(a,null,null,t)]}}}))],null,!0)}),t("div",{staticClass:"ivu-text-center ivu-mt"},[t("Page",{attrs:{total:e.dataCount,current:e.pageIndex,"page-size":e.pageSize,"page-size-opts":e.pageSizeOpts,"show-total":"","show-sizer":""},on:{"on-change":e.handleChangePage,"on-page-size-change":e.handleChangePageSize}})],1)],1)},n=[],_=(a("c5f6"),{props:{tableColumns:{type:Array,require:!0},tableData:{type:Array,require:!0},tableLoading:{type:Boolean,default:!1},tableSize:{type:String,default:"default"},dataCount:{type:Number,require:!0},pageIndex:{type:Number,require:!0},pageSize:{type:Number,require:!0},pageSizeOpts:{type:Array,default:function(){return[10,20,50,100]}}},data:function(){return{}},computed:{},created:function(){},mounted:function(){},methods:{switchChange:function(e,t,a){this.$emit("switchChange",e,t,a)},details:function(e){this.$emit("rowDetails",e)},edit:function(e){this.$emit("rowEdit",e)},del:function(e){this.$emit("rowDelete",e)},handleChangePage:function(e){this.$emit("onPageChange",e)},handleChangePageSize:function(e){this.$emit("onPageSizeChange",e)}}}),o=_,r=a("2877"),s=Object(r["a"])(o,i,n,!1,null,"016d50fc",null);t["a"]=s.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-18c0e2e7"],{"1c90":function(e,t){e.exports="data:image/png;base64,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"},"2d5e":function(e,t){e.exports="data:image/png;base64,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"},"5dbc":function(e,t,n){var a=n("d3f4"),o=n("8b97").set;e.exports=function(e,t,n){var i,r=t.constructor;return r!==n&&"function"==typeof r&&(i=r.prototype)!==n.prototype&&a(i)&&o&&o(e,i),e}},7287:function(e,t,n){},"86e8":function(e,t,n){"use strict";n("7287")},"8b97":function(e,t,n){var a=n("d3f4"),o=n("cb7c"),i=function(e,t){if(o(e),!a(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,a){try{a=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),a(e,[]),t=!(e instanceof Array)}catch(o){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:a(e,n),e}}({},!1):void 0),check:i}},"9ad3":function(e,t,n){},a19f:function(e,t){e.exports="data:image/png;base64,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"},a323:function(e,t,n){},a92c:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMoAAAC6CAMAAADYmSJbAAAAmVBMVEVHcEx+zzt+zztVx/d+zzvctGXktUFVx/d+zzv5X11Vx/d+zztVx/dVx/dVx/d+zzt+zzt+zztVx/dVx/d+zzt+zztVx/efvKe2wT6RvUD5X11iv+t+zzv9r0JVx/d+zzv5X13///+pu5y+vz/+w3H7h0/+19f/69D7h4b6fXv/9vX8pXv+7Ov+4uH+4dT8ubj5aWf8r679zc0R6oXTAAAAHXRSTlMAMPCQQO/vwMBAEKCwIGDgcGCggBCwMNjYTBDQ0MrCGggAAAAJcEhZcwAACxIAAAsSAdLdfvwAAAJASURBVHic7dpbbxJhFIXhPVCFcur5rGOntdjS0qr//8cZ0J4062L8VrIn5H3vWR9PYICEiZdGs/6guJMPLTopP68/G8XfTfdrR1efW3RlOXJ/+p5yYFlNodT1wRvIaGIazaHUk9d32cC1mUSpB8+Svm0yi1L3f0uOfYtplPp4TbFdKJmUyUoyNQ7mUerVR/LMOZhHmXkv+kxK3/pJnEoZQJFBMQRFB8UQFB0UQ1B0UAxB0UExBEUHxRAUHRRDUHRQDEHRQTEERQfFEBQdFENQdFAMQdFBMQRFB8UQFB0UQ1B0UAxtFuX8wjmYR7k4j+1LZzdtKDfWo7ehqKA4giKD4shD+fHQFLW86wrlqQzSNM3CYLFQFsWUZt4RSrmkaaBAgQIFCpR/Kcv7ry26X3aYMm/3c3IOBQoUKFCgQIECBQoUKFCgQIECBQqUVMri8VuLHhcdpvx/UKBAgQKlsJ/lkq7cGHJXeONR0zx05Xady++3z7X7L/LlYYbnwK1tOiiOoMigONooytkXZ9dtKNfWo89ia1MoW1BUUBxBkUFxBEUGxREUGRRHUGRQHEGRQXEERQbFERQZFEdQZFAcQZFBcQRFBsURFBkUR1BkUBxBkUFxBEUGxREUGRRHG0UJ614iJSJ2nHt5lJ2IGDsH8yjjiKicg3mUKiLiyDiYRjlaSeKw51vMovQO15SofJYkSq+KcFtyKK+SiGpoGk2hDN9IImLP8/WSQPm09w6yfmV2x8PiTj+26LT8vPHun1ckIn4B4NNDPy07CvcAAAAASUVORK5CYII="},aa77:function(e,t,n){var a=n("5ca1"),o=n("be13"),i=n("79e5"),r=n("fdef"),s="["+r+"]",d="​…",l=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),u=function(e,t,n){var o={},s=i((function(){return!!r[e]()||d[e]()!=d})),l=o[e]=s?t(h):r[e];n&&(o[n]=l),a(a.P+a.F*s,"String",o)},h=u.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(c,"")),e};e.exports=u},ab6c:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKgAAADICAMAAABLYVrcAAAAZlBMVEVHcEzi5efi5efi5efi5efi5efi5efi5ee0ubvi5efi5efi5efi5efi5efi5efDx8n////i5eeYnaDp7O34+fnx8vOqr7K9wcPk5+nd4OPn6uzP09W0uLqvs7bGysycoaTBxcimqq0MfBy6AAAAEHRSTlMAsOBgMEDwgJwQoNDAUCBxDkOBYAAAAAlwSFlzAAALEgAACxIB0t1+/AAAAk9JREFUeJzt3YlSg0AQhOFNzCExHhgTjcbr/V/SwhzmAMIOXbNN7P8JvmIpqKWACeuGk37u0fN1aFPWc1EW0Mc20oHP0VxDW0izGzdnAbVL3dZ9A7VKh47ONdQo9TygG6hJmnk6t1CL1HXld1CD9CoNNF46TgSNliaDxkrTQSOlCaFx0pTQKGlSaIw0LTRCmhjaXJoa2liaHNpUmh7aUEoAbSZlgDaSUkCbSDmgDaQk0PNSFuhZKQ30nJQHekZKBK2XMkFrpVTQOikXtEZKBq2WskErpXTQKikftEJKCC2XMkJLpZTQMikntERKCj2VskJPpLTQYykv9EhKDD2UVkHnwGZG6IG0CvoAbG6F7kt9oW+R0D2pL3QZC/2T+kLzhVnqDI1e+53UGZqvrFJv6PLbKPW9jhbSd5vU987029enRZoAmucfq0Vk92mg8Y0FBScoOkHRCYpOUHSCohMUnaDoLgD6lKjXWChyuxzTrJwjqKCCCrptlqiXWChZgqITFJ2g6ARFJyg6QdEJik5QdIKiuwBoZ3ahggoqqKCkUD0ksyUoOkHRCYpOUHSCohMUnaDoBEUnKDo9JPPbhQoqqKCCkkLJEhSdoOgERScoOkHRCYpOUHSCohMU3QVAO/NiQWd2oYIKKuh/g3bma3CyBEUnKDpB0QmKTlB0gqITFJ2g6ARF1yGo7/Bdc2PnccYtoL4Dos0NQ3CctW5v5D4h2ti4+C36lN/ZzwpoNiKg1DYarP/dPyA/TbfOELIJAaey6c4ZQrib9DmVo95tCCGE8AMHOjrY1K05GAAAAABJRU5ErkJggg=="},ad5a:function(e,t,n){"use strict";n("a323")},b2f5:function(e,t,n){},ba6e:function(e,t,n){"use strict";n.r(t);n("c5f6");var a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"ele-body"},[t("Card",{directives:[{name:"show",rawName:"v-show",value:!e.drawerShow,expression:"!drawerShow"}],ref:"card",attrs:{bordered:!1,"dis-hover":""}},[e.loading?t("Spin",{attrs:{fix:""}}):e._e(),t("div",{staticClass:"table-heard"},[t("div",[t("Tag",{attrs:{size:"large"}},[e._v(e._s(this.currentWeekRange[0]+"至"+this.currentWeekRange[1])+"\n ")])],1),t("div",{staticClass:"center"},[t("Button",{attrs:{size:"default"},on:{click:e.weekPre}},[t("Icon",{attrs:{type:"ios-arrow-back"}}),e._v("\n 上一周\n ")],1),t("p",[e._v(e._s(e.currentYear)+"年"+e._s(e.currentMonth)+"月")]),t("Button",{attrs:{size:"default"},on:{click:e.weekNext}},[e._v("下一周\n "),t("Icon",{attrs:{type:"ios-arrow-forward"}})],1)],1),t("div")]),e.isAdmin?t("div",{staticStyle:{width:"100%",display:"flex"}},[t("Button",{staticStyle:{margin:"0 5px"},attrs:{icon:"ios-download-outline"},on:{click:function(t){e.importDutySheet.show=!0}}},[e._v("下载模版\n ")]),t("Upload",{staticStyle:{margin:"0 5px"},attrs:{"before-upload":e.uploadFile,action:"#"}},[t("Button",{attrs:{icon:"ios-cloud-upload-outline"}},[e._v("导入模版")])],1)],1):e._e(),t("table",{attrs:{align:"center",cellpadding:"0",cellspacing:"0"}},[t("tr",{staticClass:"sepacialy"},[t("td"),e._l(e.weekGround,(function(n,a){return t("td",{key:a},[e._v(e._s(n))])}))],2),e._l(e.timeGround,(function(n,a){return t("tr",{key:a},[t("td",{staticClass:"time"},[e._v(e._s(n.typeName))]),e._l(e.weekGround,(function(n,o){return t("td",{key:o,attrs:{align:"center",valign:"middle"}},e._l(e.course[o].plandatas,(function(n,i){return t("div",{key:i,on:{click:function(t){return e.getScheduleDetails(n,e.course[o].date)}}},[n.leader_id===e.timeGround[a].id?t("div",{staticClass:"course-item"},[t("div",{directives:[{name:"show",rawName:"v-show",value:n.schedule.plan_list.map((function(e){return e.content})).join(";"),expression:"x.schedule.plan_list.map(cur=>cur.content).join(';')"}]},[t("div",{staticStyle:{display:"flex","align-items":"center"}},[e._v("\n 今日安排:\n "),t("Ellipsis",{attrs:{text:n.schedule.plan_list.map((function(e){return e.content})).join(";"),length:10}})],1)]),t("div",{directives:[{name:"show",rawName:"v-show",value:n.schedule.duty_list.map((function(e){return e.content})).join(";"),expression:"x.schedule.duty_list.map(cur=>cur.content).join(';')"}]},[t("div",{staticStyle:{display:"flex","align-items":"center"}},[e._v("\n 值班安排:\n "),t("Ellipsis",{attrs:{text:n.schedule.duty_list.map((function(e){return e.content})).join(";"),length:10}})],1)]),t("div",{directives:[{name:"show",rawName:"v-show",value:n.schedule.meet_list.map((function(e){return e.content})).join(";"),expression:"x.schedule.meet_list.map(cur=>cur.content).join(';')"}]},[t("div",{staticStyle:{display:"flex","align-items":"center"}},[e._v("\n 会议安排:\n "),t("Ellipsis",{attrs:{text:n.schedule.meet_list.map((function(e){return e.content})).join(";"),length:10}})],1)])]):e._e()])})),0)}))],2)}))],2)],1),t("Modal",{attrs:{width:"460"},scopedSlots:e._u([{key:"header",fn:function(){return[t("p",{staticStyle:{color:"#2D8CF0","text-align":"center"}},[t("Icon",{attrs:{type:"ios-information-circle"}}),t("span",[e._v("导出值班日志")])],1)]},proxy:!0},{key:"footer",fn:function(){return[t("Button",{attrs:{loading:e.importDuty.loading,long:"",size:"large",type:"primary"},on:{click:e.importDutyFun}},[e._v("导出值班日志\n ")])]},proxy:!0}]),model:{value:e.importDuty.show,callback:function(t){e.$set(e.importDuty,"show",t)},expression:"importDuty.show"}},[t("div",{staticStyle:{"text-align":"center"}},[t("Form",{attrs:{"label-width":80}},[t("FormItem",{attrs:{label:"值班日期",prop:"user"}},[t("DatePicker",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择值班日期",placement:"bottom-end",type:"daterange"},model:{value:e.importDuty.date,callback:function(t){e.$set(e.importDuty,"date",t)},expression:"importDuty.date"}})],1)],1)],1)]),t("Modal",{attrs:{width:"460"},scopedSlots:e._u([{key:"header",fn:function(){return[t("p",{staticStyle:{color:"#2D8CF0","text-align":"center"}},[t("Icon",{attrs:{type:"ios-information-circle"}}),t("span",[e._v("下载模版")])],1)]},proxy:!0},{key:"footer",fn:function(){return[t("Button",{attrs:{loading:e.importDutySheet.loading,long:"",size:"large",type:"primary"},on:{click:e.importDutySheetFun}},[e._v("\n 下载\n ")])]},proxy:!0}]),model:{value:e.importDutySheet.show,callback:function(t){e.$set(e.importDutySheet,"show",t)},expression:"importDutySheet.show"}},[t("div",{staticStyle:{"text-align":"center"}},[t("Form",{attrs:{"label-width":80}},[t("FormItem",{attrs:{label:"日期",prop:"user"}},[t("DatePicker",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择日期",placement:"bottom-end",type:"daterange"},model:{value:e.importDutySheet.date,callback:function(t){e.$set(e.importDutySheet,"date",t)},expression:"importDutySheet.date"}})],1)],1)],1)]),t("Drawer",{staticClass:"zd-form",attrs:{width:"100",height:"100",transfer:!1,mask:""},model:{value:e.drawerShow,callback:function(t){e.drawerShow=t},expression:"drawerShow"}},[t("div",{staticStyle:{"max-width":"1300px",margin:"0 auto"}},[t("Row",{staticClass:"resume-content",staticStyle:{"flex-flow":"row","padding-bottom":"60px"},attrs:{gutter:36}},[t("Col",{staticClass:"ivu-mb",attrs:{flex:"250px"}},[t("Menu",{attrs:{"active-name":e.schedule.menu},on:{"on-select":e.onSelectMenu}},[t("MenuItem",{staticClass:"menuFlex",attrs:{name:"1-1"}},[e._v("\n 今日安排\n "),t("div",{staticClass:"aaaxx"},[e._v(e._s(e.schedule.formData.plan_list?e.schedule.formData.plan_list.length:0))])]),t("MenuItem",{staticClass:"menuFlex",attrs:{name:"1-2"}},[e._v("\n 值班安排\n "),t("div",{staticClass:"aaaxx"},[e._v(e._s(e.schedule.formData.duty_list?e.schedule.formData.duty_list.length:0))])]),t("MenuItem",{staticClass:"menuFlex",attrs:{name:"1-3"}},[e._v("\n 会议安排\n "),t("div",{staticClass:"aaaxx"},[e._v(e._s(e.schedule.formData.meet_list?e.schedule.formData.meet_list.length:0))])])],1)],1),t("Col",{staticStyle:{"overflow-x":"auto"},attrs:{flex:"auto"}},[t("div",{attrs:{id:"teacher_basic"}}),t("Card",{staticClass:"ivu-mb"},[t("div",{staticStyle:{display:"flex","justify-content":"space-between","align-items":"center",width:"100%"}},[t("h2",[t("Icon",{attrs:{type:"ios-alarm"}}),e._v("\n "+e._s(e.dateFormat)+"\n ")],1),t("div",[t("Poptip",{attrs:{transfer:!0,confirm:"",title:"是否确认推送推送给该用户?","ok-text":"是","cancel-text":"否"},on:{"on-ok":e.manualPush}},[t("a",{attrs:{href:"#"}},[e._v(e._s("消息推送"))])]),t("Divider",{attrs:{type:"vertical"}}),t("a",{attrs:{href:"#"},on:{click:function(t){e.schedule.track.show=!e.schedule.track.show}}},[e._v(e._s(["显示轨迹","隐藏轨迹"][Number(e.schedule.track.show)]))])],1)]),t("div",{directives:[{name:"show",rawName:"v-show",value:"1-1"===e.schedule.menu,expression:"schedule.menu === '1-1'"}]},[t("Divider",{attrs:{orientation:"center"}},[e._v("今日安排")]),e._l(e.schedule.formData.plan_list,(function(a,o){return t("Card",{key:o,staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1},scopedSlots:e._u([{key:"title",fn:function(){return[t("Icon",{attrs:{type:"logo-buffer"}})]},proxy:!0},{key:"extra",fn:function(){return[a.id?t("a",{attrs:{href:"#"},on:{click:function(t){return e.submit(a,"save")}}},[e._v("保存")]):t("a",{attrs:{href:"#"},on:{click:function(t){return e.submit(a,"submit")}}},[e._v("提交")]),t("Divider",{attrs:{type:"vertical"}}),t("Poptip",{attrs:{transfer:!0,confirm:"",title:"是否继续?","ok-text":"是","cancel-text":"否"},on:{"on-ok":function(t){return e.deleteSchedule(a,o)}}},[t("a",{attrs:{href:"#"}},[e._v("删除")])])]},proxy:!0}],null,!0)},[t("Form",{ref:"formValidate112",refInFor:!0,attrs:{model:a,rules:e.schedule.ruleValidate}},[t("FormItem",{attrs:{prop:"time"}},[t("Row",[t("Col",{attrs:{span:"7"}},[t("FormItem",{attrs:{label:"日程时间",prop:"timeRange"}},[t("TimePicker",{staticStyle:{width:"90%"},attrs:{format:"HH:mm",type:"timerange",placeholder:"请选择日程时间"},model:{value:a.timeRange,callback:function(t){e.$set(a,"timeRange",t)},expression:"item.timeRange"}})],1)],1),t("Col",{attrs:{span:"12"}},[t("FormItem",{attrs:{label:"日程内容",prop:"content"}},[t("Input",{staticStyle:{width:"90%"},attrs:{type:"textarea",placeholder:"请输入日程计划",maxlength:"500",autosize:{minRows:1,maxRows:6},"show-word-limit":""},model:{value:a.content,callback:function(t){e.$set(a,"content",t)},expression:"item.content"}})],1)],1),t("Col",{attrs:{span:"5"}},[t("FormItem",{attrs:{label:"附件上传",prop:"beforeUpload"}},[t("Upload",{staticStyle:{width:"90%",display:"flex","justify-content":"flex-start"},attrs:{"before-upload":function(t){return e.beforeUpload(t,a)},action:""}},[t("Button",{attrs:{icon:"ios-cloud-upload-outline"}},[e._v("附件上传")])],1)],1)],1),t("Col",{attrs:{span:"24"}},[t("FormItem",{attrs:{label:"附件",prop:"fileData"}},e._l(a.file_list,(function(o,i){return t("div",{key:i,staticClass:"filelist",staticStyle:{display:"flex",width:"100%"}},[t("div",{staticStyle:{display:"flex",width:"100%",height:"32px","align-items":"center"}},[".file"===o.suffix?t("img",{attrs:{src:n("ab6c"),width:"15px"}}):e._e(),".word"===o.suffix?t("img",{attrs:{src:n("a19f"),width:"15px"}}):e._e(),".excel"===o.suffix?t("img",{attrs:{src:n("1c90"),width:"15px"}}):e._e(),".ppt"===o.suffix?t("img",{attrs:{src:n("f9e9"),width:"15px"}}):e._e(),".pdf"===o.suffix?t("img",{attrs:{src:n("2d5e"),width:"15px"}}):e._e(),".image"===o.suffix?t("img",{attrs:{src:n("c048"),width:"15px"}}):e._e(),".jpg"===o.suffix?t("img",{attrs:{src:n("c048"),width:"15px"}}):e._e(),".png"===o.suffix?t("img",{attrs:{src:n("c048"),width:"15px"}}):e._e(),".jpeg"===o.suffix?t("img",{attrs:{src:n("c048"),width:"15px"}}):e._e(),".doc"===o.suffix?t("img",{attrs:{src:n("a19f"),width:"15px"}}):e._e(),".docx"===o.suffix?t("img",{attrs:{src:n("a19f"),width:"15px"}}):e._e(),".xlsx"===o.suffix?t("img",{attrs:{src:n("1c90"),width:"15px"}}):e._e(),".xls"===o.suffix?t("img",{attrs:{src:n("1c90"),width:"15px"}}):e._e(),".zip"===o.suffix?t("img",{attrs:{src:n("a92c"),width:"15px"}}):e._e(),t("a",{staticClass:"ivu-ml-8 file-title",on:{click:function(t){return e.preview(o,a.file_list)}}},[e._v("\n "+e._s(o.file_name)+"\n ")]),o.file_name?t("Icon",{staticClass:"fileddelete",attrs:{size:"20",type:"ios-close"},on:{click:function(t){return e.fileDelete(a.file_list,o)}}}):e._e()],1)])})),0)],1)],1)],1)],1)],1)})),t("Row",{staticStyle:{margin:"10px 0"}},[t("Col",{attrs:{span:"24"}},[t("Button",{attrs:{type:"dashed",long:"",icon:"md-add"},on:{click:e.handleAdd}},[e._v("添加安排")])],1)],1)],2),t("div",{directives:[{name:"show",rawName:"v-show",value:"1-2"===e.schedule.menu,expression:"schedule.menu === '1-2'"}]},[t("Divider",{attrs:{orientation:"center"}},[e._v("值班安排")]),t("Card",{attrs:{bordered:!1,"dis-hover":""}},[t("div",e._l(e.schedule.formData.duty_list,(function(n,a){return t("Row",{key:a,staticStyle:{margin:"10px 0"}},[t("Col",{attrs:{span:"7"}},[t("div",[t("Icon",{attrs:{type:"ios-alarm"}}),e._v("\n 日程时间: "+e._s(n.begin)+"-"+e._s(n.end)+"\n ")],1)]),t("Col",{attrs:{span:"17"}},[t("p",[t("Icon",{attrs:{type:"logo-buffer"}}),e._v("\n "+e._s(n.content)+"\n ")],1)])],1)})),1)])],1),t("div",{directives:[{name:"show",rawName:"v-show",value:"1-3"===e.schedule.menu,expression:"schedule.menu === '1-3'"}]},[t("Divider",{attrs:{orientation:"center"}},[e._v("会议安排")]),t("Card",{attrs:{bordered:!1,"dis-hover":""}},[t("div",e._l(e.schedule.formData.meet_list,(function(n,a){return t("Row",{key:a,staticStyle:{margin:"10px 0"}},[t("Col",{attrs:{span:"7"}},[t("div",[t("Icon",{attrs:{type:"ios-alarm"}}),e._v("\n 日程时间: "+e._s(n.begin)+"-"+e._s(n.end)+"\n ")],1)]),t("Col",{attrs:{span:"17"}},[t("p",[t("Icon",{attrs:{type:"logo-buffer"}}),e._v("\n "+e._s(n.content)+"\n ")],1)])],1)})),1)])],1)])],1),t("Col",{directives:[{name:"show",rawName:"v-show",value:e.schedule.track.show,expression:"schedule.track.show"}],attrs:{flex:"300px"}},[t("Affix",{staticStyle:{height:"calc(100vh - 100px)",overflow:"auto"},attrs:{"offset-top":0}},[t("Card",{attrs:{padding:16,bordered:"","dis-hover":""}},[t("Timeline",e._l(e.schedule.track.data,(function(n,a){return t("TimelineItem",{key:a},[t("p",{staticClass:"time"},[e._v(e._s(n.createtime))]),t("p",{staticClass:"content"},[e._v(e._s(n.remark))])])})),1)],1)],1)],1)],1)],1),t("div",{staticClass:"page-sys-menu-drawer-footer"},[t("Button",{staticStyle:{width:"200px"},on:{click:function(t){e.drawerShow=!1}}},[e._v("\n 关闭\n ")])],1)]),t("Drawer",{staticClass:"zd-detail-form-preview",attrs:{title:"预览",width:60,styles:{padding:0,overflow:"hidden"}},model:{value:e.pdfShow,callback:function(t){e.pdfShow=t},expression:"pdfShow"}},[t("div",{staticStyle:{height:"100%",width:"100%"}},[t("iframe",{attrs:{src:e.pdfSrc,frameborder:"0",height:"100%",width:"100%"}})])])],1)},o=[],i=(n("8e6e"),n("456d"),n("bd86")),r=(n("20d6"),n("ac6a"),n("0808"),n("c71c")),s=n("e191"),d=n("61be"),l=n("597f"),c=n("5a0c"),u=n.n(c),h=(n("7f7f"),function(){var e=this,t=e._self._c;return t("div",[e.loading?t("Spin",{attrs:{fix:""}}):e._e(),""!=e.formTitle?t("div",{staticClass:"form-title"},[e._v(e._s(e.formTitle))]):e._e(),t("Form",{ref:"form",attrs:{model:e.data,"label-position":"right","label-width":120}},[t("Card",{attrs:{bordered:!1,"dis-hover":""}},[t("Row",{attrs:{gutter:64}},e._l(e.formConfig,(function(n,a){return t("Col",{key:a,attrs:{xl:e.colLength(n.option,n.show_type),lg:24,md:24,sm:24,xs:24}},["Divider"===n.show_type?t("Divider",{attrs:{orientation:"center"}},[e._v(e._s(n.name))]):["Code"===n.show_type||"MultiCode"===n.show_type?t("FormItem",{attrs:{label:n.name+":",required:1===n.option.required}},[e._v("\n "+e._s(e.codeLabel(n.id))+"\n ")]):t("FormItem",{attrs:{label:n.name+":",required:1===n.option.required}},[e._v("\n "+e._s(e.data[n.id])+"\n ")])]],2)})),1)],1),1===e.fileConfig.allow?t("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":"",title:e.fileConfig.show_name}},[t("Row",{attrs:{gutter:24}},[t("Col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[t("Table",{ref:"table",attrs:{border:"",stripe:"",size:"small",columns:e.columns,data:e.fileData,loading:e.fileLoading},scopedSlots:e._u([{key:"name",fn:function(a){var o=a.row;return[t("div",{staticStyle:{display:"flex","align-items":"center"}},["file"===o.type?t("img",{attrs:{src:n("ab6c"),width:"15px"}}):e._e(),"word"===o.type?t("img",{attrs:{src:n("a19f"),width:"15px"}}):e._e(),"excel"===o.type?t("img",{attrs:{src:n("1c90"),width:"15px"}}):e._e(),"ppt"===o.type?t("img",{attrs:{src:n("f9e9"),width:"15px"}}):e._e(),"pdf"===o.type?t("img",{attrs:{src:n("2d5e"),width:"15px"}}):e._e(),"image"===o.type?t("img",{attrs:{src:n("c048"),width:"15px"}}):e._e(),"zip"===o.type?t("img",{attrs:{src:n("a92c"),width:"15px"}}):e._e(),t("a",{staticClass:"ivu-ml-8 file-title",on:{click:function(t){return e.preview(o)}}},[e._v("\n "+e._s(o.name)+"\n ")])])]}},{key:"action",fn:function(n){var a=n.row;n.index;return[t("a",{on:{click:function(t){return t.stopPropagation(),e.download(a)}}},[e._v("下载")])]}}],null,!1,3670162245)})],1)],1)],1):e._e()],1),t("Drawer",{staticClass:"zd-detail-form-preview",attrs:{title:"预览",width:60,styles:{padding:0,overflow:"hidden"}},model:{value:e.pdfShow,callback:function(t){e.pdfShow=t},expression:"pdfShow"}},[t("div",{staticStyle:{height:"100%",width:"100%"}},[t("iframe",{attrs:{src:e.pdfSrc,frameborder:"0",height:"100%",width:"100%"}})])])],1)}),f=[],p=(n("7514"),{props:{formId:{type:String,default:""},id:{type:String,default:""},formTitle:{type:String,default:""}},data:function(){return{loading:!1,data:{},formConfig:[],fileConfig:{allow:1},columns:[],fileData:[],fileLoading:!1,pdfShow:!1,pdfSrc:""}},mounted:function(){this.columns=this.renderColumns(),this.fileData=[{id:"1013632160705282048",name:"附件3 导师聘期考核操作手册(导师端).docx",type:"word",path:"/hrms/upfiles/word/1013632160705282048.docx",tag:"",size:"1,078KB",createtime:"2022-08-29 10:12",createtby:"",createby_name:""},{id:"1082226633454125056",name:"微信截图_20230306161127.png",type:"image",path:"https://asc.hnasct.cn/hrms/upfiles/image/1082226633454125056.png",tag:"",size:"2KB",createtime:"2023-03-06 17:02",createtby:"",createby_name:""},{id:"1094804180058505216",name:"test.png",type:"image",path:"https://asc.hnasct.cn/hrms/upfiles/image/1094804180058505216.png",tag:"",size:"45KB",createtime:"2023-04-10 10:00",createtby:"",createby_name:""},{id:"1094804232256618496",name:"avt.jpg",type:"image",path:"https://asc.hnasct.cn/hrms/upfiles/image/1094804232256618496.jpg",tag:"",size:"301KB",createtime:"2023-04-10 10:01",createtby:"",createby_name:""},{id:"1188747649763770368",name:"微信截图_20231225151338.png",type:"image",path:"https://asc.hnasct.cn/hrms/upfiles/image/1188747649763770368.png",tag:"",size:"1KB",createtime:"2023-12-25 15:38",createtby:"",createby_name:""}]},methods:{colLength:function(e,t){return"Divider"===t||e&&2==e.show_length?24:12},init:function(e){var t=this;this.loading=!0,this.data={},this.fileConfig={},this.formConfig=[],API.UrlForminit(e).then((function(e){t.data=e.data,t.fileConfig=e.file,1===t.fileConfig.allow&&(t.columns=t.renderColumns(),t.fileData=e.file_list),t.formConfig=e.form,t.loading=!1,t.$emit("initok")}))},codeLabel:function(e){var t=this.formConfig.find((function(t){return t.id===e})).value;return this._.isEmpty(t)?"":t[0]},getFile:function(){var e=this;this.fileLoading=!0,API.fileList(this.formId,this.id).then((function(t){e.renderColumns(),e.fileData=t.data,e.fileLoading=!1}))},renderColumns:function(){return[{title:"文件名",width:!1,minWidth:120,ellipsis:!0,tooltip:!0,key:"name",resizable:!0,slot:"name"},{title:"分类",width:110,ellipsis:!0,tooltip:!0,key:"tag",resizable:!0},{title:"大小",width:90,ellipsis:!0,tooltip:!0,key:"size",resizable:!0},{title:"添加时间",width:150,ellipsis:!0,tooltip:!0,key:"createtime",resizable:!0},{title:"操作",slot:"action",width:70,align:"center",fixed:"right"}]},download:function(e){this.$getFile(e.path,e.name)},preview:function(e){var t=this;if("image"!==e.type){var n=this.$Message.loading({content:"加载预览中...",duration:0});API.FilePreview(e.path).then((function(a){t._.isEmpty(a.pdf)?(t.$Message.info("该文件不支持预览,已为您转为下载"),t.download(e)):(t.pdfSrc=a.pdf,t.pdfShow=!0),setTimeout(n,100)})).catch((function(){setTimeout(n,100)}))}else{var a=this.fileData.filter((function(e){return"image"===e.type})).map((function(e){return e.path}));Object(r["a"])({options:{toolbar:!0,initialViewIndex:a.findIndex((function(t){return t===e.path}))},images:a})}}}}),m=p,g=(n("d5de"),n("2877")),_=Object(g["a"])(m,h,f,!1,null,"bec70c00",null),v=_.exports;n("2ef0");function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var w={components:{detailForm:v},props:{},data:function(){return{userInfo:this.$store.state.admin.user.info,drawerShow2:!1,drawer2:{nodeInfo:{},rowInfo:{}},fileData:[{id:"1013632160705282048",name:"附件3 导师聘期考核操作手册(导师端).docx",type:"word",path:"/hrms/upfiles/word/1013632160705282048.docx",tag:"",size:"1,078KB",createtime:"2022-08-29 10:12",createtby:"",createby_name:""},{id:"1082226633454125056",name:"微信截图_20230306161127.png",type:"image",path:"https://asc.hnasct.cn/hrms/upfiles/image/1082226633454125056.png",tag:"",size:"2KB",createtime:"2023-03-06 17:02",createtby:"",createby_name:""},{id:"1094804180058505216",name:"test.png",type:"image",path:"https://asc.hnasct.cn/hrms/upfiles/image/1094804180058505216.png",tag:"",size:"45KB",createtime:"2023-04-10 10:00",createtby:"",createby_name:""},{id:"1094804232256618496",name:"avt.jpg",type:"image",path:"https://asc.hnasct.cn/hrms/upfiles/image/1094804232256618496.jpg",tag:"",size:"301KB",createtime:"2023-04-10 10:01",createtby:"",createby_name:""},{id:"1188747649763770368",name:"微信截图_20231225151338.png",type:"image",path:"https://asc.hnasct.cn/hrms/upfiles/image/1188747649763770368.png",tag:"",size:"1KB",createtime:"2023-12-25 15:38",createtby:"",createby_name:""}],drawerShow:!1,schedule:{menu:"1-1",track:{show:!1,data:[]},userid:"",date:"",leader_number:"",formData:{plan_list:[{userid:"",date:"",timeRange:["09:41:00","12:00:00"],begin:"",end:"",content:"",file_list:[]}],duty_list:[],meet_list:[]},ruleValidate:{name:[{required:!0,message:"The name cannot be empty",trigger:"blur"}]}},photoLoading:!1,info:{},tableList:[],menuList:[],tid:"",pdfShow:!1,pdfSrc:"",importDutySheet:{loading:!1,show:!1,date:[u()().format("YYYY-MM-DD"),u()().format("YYYY-MM-DD")],formData:{begin_time:"",end_time:""}},importDuty:{loading:!1,show:!1,date:[u()().format("YYYY-MM-DD"),u()().format("YYYY-MM-DD")],formData:{begin_time:"",end_time:""}},weekGround:["周一","周二","周三","周四","周五","周六","周日"],course:[],timeGround:[],currentYear:"",currentMonth:"",currentDay:"",currentWeek:"",days:[],currentWeekRange:[],defalultWeekGround:["周一","周二","周三","周四","周五","周六","周日"],coachColorMap:{"张三":"#2B2E4A","李四":"#521262","王五":"#903749"},loading:!1,showModal:!1,selectDate:"",selectItem:"",formData:{},formRule:{},peopleOption:[],duty_daytime_people_id:[],duty_night_people_id:[],modalLoading:!0}},created:function(){},mounted:function(){this.initData()},methods:{manualPush:function(){var e=this;d["b"]((function(){return l["h"]({date:e.schedule.date,leader_number:e.schedule.leader_number})}),!1,"消息推送中...")},onSelectMenu:function(e){this.schedule.menu=e},getTheScheduleActionTrack:function(){var e=this;l["f"]({userid:this.schedule.userid,date:this.schedule.date}).then((function(t){1===t.code&&(e.schedule.track.data=t.response)}))},fileDelete:function(e,t){e.splice(e.indexOf(t.id),1)},beforeUpload:function(e,t){var n=this,a=new FormData;return a.append("file",e),d["b"]((function(){return l["l"](a).then((function(e){return n.schedule.formData.plan_list.forEach((function(n){t.id===n.id&&n.file_list.push(e.response)})),e}))}),!1,"正在上传..."),!1},download:function(e){this.$getFile(e.path,e.file_name)},preview:function(e,t){var n=this;if(console.log("🚀🚀🚀,",e),".jpg"!==e.suffix&&".jpeg"!==e.suffix&&".png"!==e.suffix)d["b"]((function(){return l["c"]({filePath:e.path}).then((function(t){return""!==t.response.pdf?(n.pdfSrc=t.response.pdf,n.pdfShow=!0):(n.$Message.info("该文件不支持预览,已为您转为下载"),n.download(e)),t}))}),!0,"加载预览中...");else{var a=t.filter((function(e){return".jpg"===e.suffix||".jpeg"===e.suffix||".png"===e.suffix})).map((function(e){return e.path}));Object(r["a"])({options:{toolbar:!0,initialViewIndex:a.findIndex((function(t){return t===e.path}))},images:a})}},submit:function(e,t){var n=this,a={save:function(){d["b"]((function(){return l["p"](b(b({},e),{},{begin:e.timeRange[0],end:e.timeRange[1],file_id_list:e.file_list.map((function(e){return e.id}))}))}),!1,"保存中...")},submit:function(){d["b"]((function(){return l["o"](b(b({},e),{},{userid:n.schedule.userid,date:n.schedule.date,begin:e.timeRange[0],end:e.timeRange[1],file_id_list:e.file_list.map((function(e){return e.id}))})).then((function(e){return e}))}),!1,"提交中...")}};a[t]()},deleteSchedule:function(e,t){var n=this;""!==e.id?(console.log("🚀🚀🚀,",e),d["b"]((function(){return l["m"]({id:e.id}).then((function(e){return n.getScheduleDetails({leader_id:n.schedule.userid},n.schedule.date),e}))}),!1,"正在删除...")):this.schedule.formData.plan_list.splice(t,1)},handleAdd:function(){this.schedule.formData.plan_list.push({id:"",date:"",begin:"",end:"",timeRange:["",""],content:"",file_list:[]})},getScheduleDetails:function(e,t){var n=this;this.isAdmin&&(this.schedule.date=u()(t).format("YYYY-MM-DD"),this.schedule.userid=e.leader_id,this.schedule.leader_number=e.leader_number,this.drawerShow=!0,d["b"]((function(){return l["e"]({userid:n.schedule.userid,date:n.schedule.date}).then((function(e){n.schedule.formData=b(b({},e),{},{plan_list:e.response.plan_list.map((function(e){return b(b({},e),{},{timeRange:[e.begin,e.end]})}))}),n.getTheScheduleActionTrack()}))}),!0,"正在获取日程数据..."))},getDetailData:function(){var e=this,t={form:[{id:"zd_form_design_divider_1626940424170",name:"基本信息",show_type:"Divider",event_func:{onchange:"",onfocus:"",onblur:""}},{id:"gh",name:"工号",show_type:"Character",value:"asc666",option:{max_length:20,show_length:1,describe:"",required:1,disabled:1,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"xm",name:"姓名",show_type:"Character",value:"asc666",option:{max_length:50,show_length:1,describe:"",required:1,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"dqztm",name:"当前状态",show_type:"Code",value:["在职","11"],option:{show_length:1,describe:"教职工当前状态(JYT1001-JZGDQZT)",required:1,disabled:0,default_value:"",code_id:"S022",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"jzglbm",name:"教职工类别",show_type:"Code",value:["校本部教职工","1"],option:{show_length:1,describe:"教职工类别(JYT1001-JZGLB)",required:1,disabled:0,default_value:"",code_id:"S023",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"jzgly",name:"教职工来源",show_type:"Code",value:["系统内高校调入","301"],option:{show_length:1,describe:"",required:0,disabled:0,default_value:"",code_id:"S064",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"xqh",name:"校区",show_type:"Code",value:["主校区","5189fa35-f674-41dc-afee-a8765108aef7"],option:{show_length:1,describe:"校区",required:0,disabled:0,default_value:"",code_id:"@SchoolArea",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"did",name:"部门",show_type:"Code",value:["院领导","7176ebe5-06d8-41a0-a8b4-9e60bd76fd91"],option:{show_length:1,describe:"部门",required:0,disabled:0,default_value:"",code_id:"@Dept",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"pid",name:"岗位",show_type:"Code",value:["院领导-校长","1047048048204578816"],option:{show_length:1,describe:"岗位",required:0,disabled:0,default_value:"",code_id:"@Position",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"jrgw",name:"兼任岗位",show_type:"MultiCode",value:["院领导-校长,人事处(教师工作部)-科长","1047048048204578816,1229315523926294528"],option:{show_length:1,describe:"岗位",required:0,disabled:0,default_value:"",code_id:"@Position",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"bz",name:"编制",show_type:"Code",value:["正式事业编","11"],option:{show_length:1,describe:"",required:0,disabled:0,default_value:"",code_id:"S061",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"did_s",name:"三级部门",show_type:"MultiCode",value:["生物教研室,英语教研室","1002416718515011584,f3972866-8b8e-48c3-90a9-aba75978769s"],option:{show_length:1,describe:"",required:0,disabled:0,default_value:"",code_id:"@Dept_Sub",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"clxx_",name:"车辆信息",show_type:"LongText",value:"版本合并测试@推送",option:{max_length:32,show_length:1,describe:"",required:0,disabled:0,default_value:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"sfszjs_",name:"是否思政教师",show_type:"Code",value:["否","0"],option:{show_length:1,describe:"",required:0,disabled:0,default_value:"",code_id:"D003",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"zd_form_design_divider_1648626561513",name:"职称信息",show_type:"Divider",event_func:{onchange:"",onfocus:"",onblur:""}},{id:"xl",name:"职称系列",show_type:"Code",value:["本科生教学系列","0102"],option:{show_length:1,describe:"",required:0,disabled:0,default_value:"",code_id:"S062",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"zyjszwmc",name:"职称",show_type:"Code",value:["副教授","012"],option:{show_length:1,describe:"专业技术职务名称",required:0,disabled:0,default_value:"",code_id:"S024",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"zyjszwjb",name:"职称等级",show_type:"Code",value:["副高级","2"],option:{show_length:1,describe:"专业技术职务级别",required:0,disabled:0,default_value:"",code_id:"S025",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"zcpdsj_",name:"职称评定时间",show_type:"Date",value:"2023-02-15",option:{show_length:1,describe:"",required:0,disabled:0,default_value:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"zd_form_design_divider_1646733721118",name:"岗位信息",show_type:"Divider",event_func:{onchange:"",onfocus:"",onblur:""}},{id:"pygwlb",name:"聘用岗位类别",show_type:"Code",value:["教师岗位","1"],option:{show_length:1,describe:"岗位类别",required:0,disabled:0,default_value:"",code_id:"S019",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"pygwdj",name:"聘用岗位等级",show_type:"Code",value:["专业技术岗位一级","101"],option:{show_length:1,describe:"岗位等级",required:0,disabled:0,default_value:"",code_id:"S020",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"sjtgwlb",name:"双肩挑岗位类别",show_type:"Code",value:["其他专业技术岗位","2"],option:{show_length:1,describe:"岗位类别",required:0,disabled:0,default_value:"",code_id:"S019",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"sjtgwdj",name:"双肩挑岗位等级",show_type:"Code",value:["管理岗位一级","201"],option:{show_length:1,describe:"岗位等级",required:0,disabled:0,default_value:"",code_id:"S020",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"sfssxjs",name:"是否双师型教师",show_type:"Code",value:["否","0"],option:{show_length:1,describe:"是否",required:0,disabled:0,default_value:"",code_id:"D003",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"sfylxjl",name:"是否有留学经历",show_type:"Code",value:["",""],option:{show_length:1,describe:"是否",required:0,disabled:0,default_value:"",code_id:"D003",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"sfdwgzz",name:"是否党务工作者",show_type:"Code",value:["",""],option:{show_length:1,describe:"",required:0,disabled:0,default_value:"",code_id:"D003",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"sfszjs",name:"是否思政教师",show_type:"Code",value:["",""],option:{show_length:1,describe:"",required:0,disabled:0,default_value:"",code_id:"D003",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"zd_form_design_divider_1649836958267",name:"学历学位",show_type:"Divider",event_func:{onchange:"",onfocus:"",onblur:""}},{id:"zgxlm",name:"最高学历",show_type:"Code",value:["硕士研究生结业","15"],option:{show_length:1,describe:"学历(GB/T 4658-2006)",required:0,disabled:0,default_value:"",code_id:"S012",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"hdzgxldyxh",name:"获得最高学历的院校或机构",show_type:"Character",value:"",option:{max_length:64,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"zgxwcc",name:"最高学位层次",show_type:"Code",value:["硕士","3"],option:{show_length:1,describe:"",required:0,disabled:0,default_value:"",code_id:"S063",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"zgxwm",name:"最高学位",show_type:"Code",value:["历史学硕士学位","306"],option:{show_length:1,describe:"",required:0,disabled:0,default_value:"",code_id:"S028",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"hdzgxwdyxh",name:"获得最高学位的院校或机构",show_type:"Character",value:"",option:{max_length:64,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"zd_form_design_divider_1649837091716",name:"联系方式",show_type:"Divider",event_func:{onchange:"",onfocus:"",onblur:""}},{id:"lxdh",name:"联系电话",show_type:"Character",value:"1777777777777",option:{max_length:30,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"bgdh",name:"办公电话",show_type:"Character",option:{max_length:20,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"dzyx",name:"电子邮箱",show_type:"Character",option:{max_length:64,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"wxh",name:"微信号",show_type:"Character",option:{max_length:30,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"lxr",name:"联系人",show_type:"Character",value:"",option:{max_length:30,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"zd_form_design_divider_1626940437100",name:"其他",show_type:"Divider",event_func:{onchange:"",onfocus:"",onblur:""}},{id:"ywxm",name:"英文姓名",show_type:"Character",value:"asc666",option:{max_length:50,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"xmpy",name:"姓名拼音",show_type:"Character",value:"asc666",option:{max_length:50,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"cym",name:"曾用名",show_type:"Character",value:"3444444",option:{max_length:50,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"xbm",name:"性别",show_type:"Code",value:["男","1"],option:{show_length:1,describe:"性别 (GB/T 2261.1-2003)",required:0,disabled:0,default_value:"",code_id:"S002",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"csrq",name:"出生日期",show_type:"Date",value:"1992-03-08",option:{show_length:1,describe:"",required:0,disabled:0,default_value:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"csdm",name:"出生地",show_type:"Code",value:["北京市东城区","110101"],option:{show_length:1,describe:"行政区划 (GB/T 2260-2007)",required:0,disabled:0,default_value:"",code_id:"S001",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"jg",name:"籍贯",show_type:"Code",value:["黑龙江省佳木斯市","2308"],option:{show_length:1,describe:"行政区划 (GB/T 2260-2007)",required:0,disabled:0,default_value:"",code_id:"S001",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"mzm",name:"民族",show_type:"Code",value:["汉族","01"],option:{show_length:1,describe:"民族(GB/T 3304-1991)",required:0,disabled:0,default_value:"",code_id:"S006",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"gjdqm",name:"国籍/地区",show_type:"Code",value:["阿鲁巴","ABW"],option:{show_length:1,describe:"世界各国和地区名称(自GB/T 2659-2000)",required:0,disabled:0,default_value:"",code_id:"S005",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"sfzjlxm",name:"身份证件类型",show_type:"Code",value:["居民身份证","1"],option:{show_length:1,describe:"身份证件类型(JYT1001-SFZJLX)",required:0,disabled:0,default_value:"",code_id:"S007",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"sfzjh",name:"身份证件号",show_type:"Character",value:"460006199209202755",option:{max_length:30,show_length:1,describe:"",required:1,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"hyzkm",name:"婚姻状况",show_type:"Code",value:["未婚","10"],option:{show_length:1,describe:"婚姻状况(GB/T 2261.2-2003)",required:0,disabled:0,default_value:"",code_id:"S003",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"gatqwm",name:"港澳台侨外",show_type:"Code",value:["",""],option:{show_length:1,describe:"港澳台侨外(JYT1001-GATQW)",required:0,disabled:0,default_value:"",code_id:"S008",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"zzmmm",name:"政治面貌",show_type:"Code",value:["群众","13"],option:{show_length:1,describe:"政治面貌(GB/T 4762-1984)",required:0,disabled:0,default_value:"",code_id:"S009",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"jkzkm",name:"健康状况",show_type:"Code",value:["健康或良好","1"],option:{show_length:1,describe:"健康状况(GB/T 2261.3-2003)",required:0,disabled:0,default_value:"",code_id:"S004",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"xyzjm",name:"信仰宗教",show_type:"Code",value:["",""],option:{show_length:1,describe:"信仰宗教(GA 214.12-2004)",required:0,disabled:0,default_value:"",code_id:"S010",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"xxm",name:"血型",show_type:"Code",value:["未定","8"],option:{show_length:1,describe:"血型(JYT1001-XX)",required:0,disabled:0,default_value:"",code_id:"S011",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"sfzjyxq",name:"身份证件有效期",show_type:"Date",option:{show_length:1,describe:"",required:0,disabled:0,default_value:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"cjgzny",name:"参加工作年月",show_type:"YearMonth",value:"2019-10",option:{show_length:1,describe:"",required:0,disabled:0,default_value:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"lxrq",name:"来校日期",show_type:"Date",value:"2021-03-26",option:{show_length:1,describe:"",required:0,disabled:0,default_value:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"qxrq",name:"起薪日期",show_type:"Date",option:{show_length:1,describe:"",required:0,disabled:0,default_value:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"cjny",name:"从教年月",show_type:"YearMonth",value:"1900-01",option:{show_length:1,describe:"",required:0,disabled:0,default_value:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"dabhm",name:"档案编号",show_type:"Character",value:"",option:{max_length:10,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"dawb",name:"档案文本",show_type:"Character",value:"",option:{max_length:500,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"tc",name:"特长",show_type:"Character",value:"",option:{max_length:100,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"xklbm",name:"学科类别",show_type:"Code",value:["工学","08"],option:{show_length:1,describe:"学科类别码(学位授予和人才培养学科目录,前2位)",required:0,disabled:0,default_value:"",code_id:"S014",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"yjxkm",name:"一级学科",show_type:"Code",value:["哲学","0101"],option:{show_length:1,describe:"一级学科码(学位授予和人才培养学科目录,前4位)",required:0,disabled:0,default_value:"",code_id:"S015",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"ejxkm",name:"二级学科",show_type:"Code",value:["刑法学","030104"],option:{show_length:1,describe:"二级学科码(学位授予和人才培养学科目录)",required:0,disabled:0,default_value:"",code_id:"S016",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"yjfx",name:"研究方向",show_type:"Character",value:"",option:{max_length:100,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"hkszdm",name:"户口所在地",show_type:"Code",value:["北京市东城区","110101"],option:{show_length:1,describe:"行政区划 (GB/T 2260-2007)",required:0,disabled:0,default_value:"",code_id:"S001",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"hklbm",name:"户口类别",show_type:"Code",value:["",""],option:{show_length:1,describe:"户口类别码(GA 324.1-2001)",required:0,disabled:0,default_value:"",code_id:"S017",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"dqzz",name:"当前住址",show_type:"Character",value:"海南省海口市龙华区幸福大道103号",option:{max_length:180,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"dqzzyzbm",name:"当前住址邮政编码",show_type:"Character",value:"122222",option:{max_length:6,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"sort",name:"显示顺序",show_type:"Integer",value:1,option:{show_length:1,describe:"",required:0,disabled:0,default_value:"",max_value:!1,min_value:!1},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"yhkh",name:"银行卡号",show_type:"Character",value:"696563248955622446",option:{max_length:30,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}}],event_script:[],file:{allow:1,required:0,max_size:50,allow_type:[".doc",".docx",".rtf",".xls",".xlsx",".csv",".ppt",".pptx",".pdf",".png",".jpg",".jpeg",".gif",".bmp",".zip",".rar",".7z",".txt"],show_name:"其他文件材料",tag:[],only_one:0},file_list:[{id:"1013632160705282048",name:"附件3 导师聘期考核操作手册(导师端).docx",type:"word",path:"/hrms/upfiles/word/1013632160705282048.docx",tag:"",size:"1,078KB",createtime:"2022-08-29 10:12",createtby:"",createby_name:""},{id:"1082226633454125056",name:"微信截图_20230306161127.png",type:"image",path:"/hrms/upfiles/image/1082226633454125056.png",tag:"",size:"2KB",createtime:"2023-03-06 17:02",createtby:"",createby_name:""},{id:"1094804180058505216",name:"test.png",type:"image",path:"/hrms/upfiles/image/1094804180058505216.png",tag:"",size:"45KB",createtime:"2023-04-10 10:00",createtby:"",createby_name:""},{id:"1094804232256618496",name:"avt.jpg",type:"image",path:"/hrms/upfiles/image/1094804232256618496.jpg",tag:"",size:"301KB",createtime:"2023-04-10 10:01",createtby:"",createby_name:""},{id:"1188747649763770368",name:"微信截图_20231225151338.png",type:"image",path:"/hrms/upfiles/image/1188747649763770368.png",tag:"",size:"1KB",createtime:"2023-12-25 15:38",createtby:"",createby_name:""}],file_change:{delete:[],add:[]},data:{tid:"4F0DE8A4-FCDD-4BAF-8DE2-F874EDEBDBE0",dqztm:"11",jzglbm:"1",xqh:"5189fa35-f674-41dc-afee-a8765108aef7",did:"7176ebe5-06d8-41a0-a8b4-9e60bd76fd91",pid:"1047048048204578816",jrgw:["1047048048204578816","1229315523926294528"],gh:"asc666",xm:"asc666",ywxm:"asc666",xmpy:"asc666",cym:"3444444",xbm:"1",csrq:"1992-03-08",csdm:"110101",jg:"2308",mzm:"01",gjdqm:"ABW",sfzjlxm:"1",sfzjh:"460****2755",hyzkm:"10",gatqwm:"",zzmmm:"13",jkzkm:"1",xyzjm:"",xxm:"8",zp:"/hrms/upfiles/image/1324557836260212736.jpg",sfzjyxq:null,zgxlm:"15",whcdm:"",cjgzny:"2019-10",lxrq:"2021-03-26",qxrq:null,cjny:"1900-01",bzlbm:"",dabhm:"",dawb:"",tc:"",xklbm:"08",yjxkm:"0101",ejxkm:"030104",yjfx:"",hkszdm:"110101",hklbm:"",dqzz:"海南省****103号",dqzzyzbm:"122222",sfjzjs:"",sfssxjs:"0",lxr:"",wxh:null,lxdh:"177****7777",bgdh:null,dzyx:null,yhkh:"177****7777",sfylxjl:"",pygwmc:"",pygwlb:"1",pygwdj:"101",pyxngwdj:"",sjtgwlb:"2",sjtgwdj:"201",sort:1,zgxwm:"306",sfdwgzz:"",sfszjs:"",bz:"11",xl:"0102",jzgly:"301",xyjg:"1",zgxwcc:"3",hdzgxldyxh:"",hdzgxwdyxh:"",zyjszwmc:"012",zyjszwjb:"2",zcpdsj_:"2023-02-15",password_md5:null,did_s:["1002416718515011584","f3972866-8b8e-48c3-90a9-aba75978769s"],clxx_:"版本合并测试@推送",zyjszg_:"",ssxdj_:"",aaaa_:null,xzdy_:null,sfszjs_:"0",jxgw_:"05",jzbm_:null,zyxk_:null}},n=t.form.map((function(t){return Object.assign(t.data,{column:e.renderColumns(t.data.title)}),t}));this.tableList=n},imgErr:function(e){e.photo=""},openDrawer2:function(e,t){var n=this;this.drawer2.nodeInfo=e,this.drawer2.rowInfo=t,this.drawerShow2=!0,this.$nextTick((function(){n.$refs.detailFormRef2.init("/api/teacher/info/basic/detail/".concat(e.form_id,"/").concat(t.id))}))},uploadFile:function(e){var t=this,n=new FormData;return n.append("file",e),l["n"](n).then((function(e){t.$Message.success("导入成功")}))},importDutySheetFun:function(){var e=this;return this.importDutySheet.loading=!0,this.importDutySheet.formData={begin:u()(this.importDutySheet.date[0]).format("YYYY-MM-DD"),end:u()(this.importDutySheet.date[1]).format("YYYY-MM-DD")},l["g"](this.importDutySheet.formData).then((function(t){t&&(window.location.href=t.response),e.importDutySheet.loading=!1})).finally((function(){e.importDutySheet.loading=!1}))},importDutyFun:function(){var e=this;return this.importDuty.loading=!0,this.importDuty.formData={begin_time:u()(this.importDuty.date[0]).format("YYYY-MM-DD"),end_time:u()(this.importDuty.date[1]).format("YYYY-MM-DD")},api.getApiDutyRecordDutyRecordAllExportByAdmin(this.importDuty.formData,{responseType:"blob"}).then((function(t){d["a"](t,"".concat(e.importDuty.formData.begin_time+"至"+e.importDuty.formData.end_time,"值班数据")),e.importDuty.loading=!1})).finally((function(){e.importDuty.loading=!1}))},getData:function(){var e=this,t={role_id:this.userInfo.currentRole.id,begin:this.currentWeekRange[0],end:this.currentWeekRange[1]};this.loading=!0,l["d"](t).then((function(t){e.loading=!1,e.timeGround=[],e.course=t.response,e.course[0].plandatas.forEach((function(t){e.timeGround.push({id:t.leader_id,typeName:t.leader_name})}))}))},formatDate:function(e,t,n){var a=e,o=t;o<10&&(o="0".concat(o));var i=n;return i<10&&(i="0".concat(i)),"".concat(a,"-").concat(o,"-").concat(i)},initData:function(e){var t=this,n="";n=e?new Date(e):new Date,this.currentDay=n.getDate(),this.currentYear=n.getFullYear(),this.currentMonth=n.getMonth()+1,this.currentWeek=n.getDay(),0===this.currentWeek&&(this.currentWeek=7);var a=this.formatDate(this.currentYear,this.currentMonth,this.currentDay);this.days.length=0;for(var o=this.currentWeek-1;o>=0;o-=1){var i=new Date(a);i.setDate(i.getDate()-o),this.days.push(i)}for(var r=1;r<=7-this.currentWeek;r+=1){var s=new Date(a);s.setDate(s.getDate()+r),this.days.push(s)}this.currentWeekRange=[this.formatDate(this.days[0].getFullYear(),this.days[0].getMonth()+1,this.days[0].getDate()),this.formatDate(this.days[6].getFullYear(),this.days[6].getMonth()+1,this.days[6].getDate())];var d=[];this.days.forEach((function(e){d.push("".concat(e.getMonth()+1,"/").concat(e.getDate()))})),this.defalultWeekGround.map((function(e,n){t.weekGround[n]=e+"(".concat(d[n],")")})),this.getData()},weekPre:function(){var e=this.days[0];e.setDate(e.getDate()-7),this.initData(e)},weekNext:function(){var e=this.days[6];e.setDate(e.getDate()+7),this.initData(e)},GetPersonByCondiction:function(){var e=this,t={page_index:1,page_size:1e4};Object(s["b"])(t).then((function(t){console.log("🚀🚀resp🚀,",t),e.peopleOption=t.data}))},clickCell:function(e,t){this.isAdmin&&(this.selectDate=t,this.selectItem=e,this.duty_daytime_people_id=e.duty_daytime_people_list.map((function(e){return e.id})),this.duty_night_people_id=e.duty_night_people_list.map((function(e){return e.id})),this.showModal=!0)},handleConfirm:function(){var e=this,t={duty_type_id:this.selectItem.duty_type_id,date:this.selectDate,record_id:this.selectItem.record_id,duty_daytime_people_id:this.duty_daytime_people_id,duty_night_people_id:this.duty_night_people_id};console.log(t),Object(s["a"])(t).then((function(t){e.handleModalLoading(),e.showModal=!1,e.$Message.success("安排成功"),e.duty_daytime_people_id=[],e.duty_night_people_id=[],e.getData()})).catch((function(){e.handleModalLoading()}))},handleModalLoading:function(){var e=this;this.modalLoading=!1,this.$nextTick((function(){e.modalLoading=!0}))},handleClose:function(){this.duty_daytime_people_id=[],this.duty_night_people_id=[]}},computed:{dateFormat:function(){return u()(this.schedule.date).format("YYYY年MM月DD日")},isAdmin:function(){var e=0==this.userInfo.currentRole.id;return e}}},A=w,x=(n("ad5a"),n("fdd1"),n("86e8"),Object(g["a"])(A,a,o,!1,null,"d7439a08",null));t["default"]=x.exports},c048:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKcAAADICAMAAAC6agFRAAAAhFBMVEVHcEyAlf+Alf+Alf+Alf+Alf+Alf+Alf+Alf+quP+Alf+Alf+Alf+Alf+Alf+erv+Alf////+6xf+suf/4+f+InP/g5f+gsP+Qov/Ayv+Yqf/w8v+otv/Y3v+4xP+wvf/o6//I0f/Q2P+3wv+EmP+Lnv+ks/+Hm/+Wp/+Pof+vvP+drf8BoFlEAAAAEHRSTlMAoICwEPBgwEDcMCBQ4JC6qK/XcwAAAAlwSFlzAAALEgAACxIB0t1+/AAABJlJREFUeJzt3ety2jAQBWBDILRJ2toN90tIaJre3v/9OkDAtixZe9ZraTOj8ztMPrC8OiItZO8Z3Q5vJv3nW9Yp94M8TB4/d2E+jAMx88fvHaAPoZRHJx96H+zVPDnZ0Ek45snJhH4KyDw7edCb8E4WNODqvDoZ0FFI5tWJQ4Muz9IJQ2M5UWg0JwiN58SgEZ0QNKYTgUZ1AtC4Tjo0spMMje2kQqM7idD4ThpUgZME1eCkQFU4CVAdTj9UidML1eL0QdU4PVA9znaoImcrVJOzDarK2QLV5XRDlTmdUG1OF1Sd0wHV57RDFTqtUI1OG1Sl0wLV6WxClTobUK1OE6rWaUD1OutQxc4aVLOzCg3r/Ic5K9Cwzt+gs4SGdb6izis0rDN/40IDO19/MKGBnflPJjS0kwsN7sx/gUP0DA3vzPM/b39haAwnI8kpm+SUTXLKJjllk5yySU5HZtvVaruEHxbYud4Vp8wX4APDOvfFNS/YI4M6K0wUGtK5nFadBXTpQzoPNWYxRx4b0lkYQe76gM6F6dwDD47pXAEPTs5GPsp1z6eGU+l9FH0uredFcZj5fy7ynF9Pqa9Obd98gn6JgHNOvyv2UyZTwHl5kaaEK58v39fobg3+ls7O2fUlOtB+frF/WlCeUj2dnZWbGO2+SLo6q8P7WbFzw90IwXR0rmoTcYqfz6jp5jQmd7FT6pyb1WIrJ6unk3NrMosNPnFo6eKcmQWox1upi/OlySwKdKMhpoNzbWNibS2I89nqRAsGMXznk51J6yPhnOboLEPrI2DYzp2L2U8f4Tobh8dKNtJIvnO2aXH2MUSZzlUbs48+wnPaR2cZ+SHKczb6hxlHH9luig2vqrCcex/T0UfOq4UF5Tht/cOM7V3t99XC2gg4zoOfae0jl9XCadMMZ9voLNO8lcqNlrERMJyO/mHG7COVjZbRpnFn++gsYy7D6owA/3jEcbr7h5n6MqyfUeArDzu9o9OOMWYE/JYE6mwe3dyp9hGzXqEVAHS29w8zJab59MBzFOi0Ht3cufQRy9MDKwDm9PUPF8b29Pp8P5k4Osuc93LrzoCVP8jpOrq5cx6i9kXd2987KP3DzEvLzoAUJ8TZcnRzZ+1e1EhxApy0/mHmuWVRA8WJ7sRGZ5m2DYx+5elOav9AQi9OZOeyByZQnMhOoH8goRYnqtN/dOOF+t4J0ckZnbQQixPRSTq68UIrTjQnb3TSQqvMNCfcP5CQihPJ2cfoLEMqThQn/ejGC6U4UZys/oGEcOUJTuToxguhOPmd3P6BxF+c/E7w6MaLtzh5nejRjRfvlfc6e7+JzvHdSl5nTz3JjG82aXk9fXVEy/r07Un++33R6+Z+jv+fh6X/3yGb5JRNcsomOWWTnLJJTtkkp2ySUzbJKZvklE1yyiY5ZZOcsklO2SSnbJJTNskpm+SUTXLKJjllk5yySU7ZJKdsAn+PLTtZ9iGYk8Dfs8zN1yy7/QjO+yzLvihweDI4fhL5nWriMePR6aPdtV/58d3lM/2Dfhc4mi931y9zGA3UKsfD80W/SG+HNxN1GQwfjsosy/4DyyTTLCUInp8AAAAASUVORK5CYII="},c5f6:function(e,t,n){"use strict";var a=n("7726"),o=n("69a8"),i=n("2d95"),r=n("5dbc"),s=n("6a99"),d=n("79e5"),l=n("9093").f,c=n("11e9").f,u=n("86cc").f,h=n("aa77").trim,f="Number",p=a[f],m=p,g=p.prototype,_=i(n("2aeb")(g))==f,v="trim"in String.prototype,y=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){t=v?t.trim():h(t,3);var n,a,o,i=t.charCodeAt(0);if(43===i||45===i){if(n=t.charCodeAt(2),88===n||120===n)return NaN}else if(48===i){switch(t.charCodeAt(1)){case 66:case 98:a=2,o=49;break;case 79:case 111:a=8,o=55;break;default:return+t}for(var r,d=t.slice(2),l=0,c=d.length;l<c;l++)if(r=d.charCodeAt(l),r<48||r>o)return NaN;return parseInt(d,a)}}return+t};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof p&&(_?d((function(){g.valueOf.call(n)})):i(n)!=f)?r(new m(y(t)),n,p):y(t)};for(var b,w=n("9e1e")?l(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),A=0;w.length>A;A++)o(m,b=w[A])&&!o(p,b)&&u(p,b,c(m,b));p.prototype=g,g.constructor=p,n("2aba")(a,f,p)}},d5de:function(e,t,n){"use strict";n("b2f5")},e191:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}));var a=n("b6bd");function o(e){return Object(a["a"])({url:"/api/Common/GetPersonByCondiction",method:"get",params:e})}function i(e){return Object(a["a"])({url:"/api/DutyRecord/DutyArrangeIns",method:"post",data:e})}},f9e9:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKgAAADICAMAAABLYVrcAAAAhFBMVEVHcEzycz3ycz3ycz3ycz3ycz3ycz3ycz3ycz33kWnycz3ycz3ycz3ycz31iFvycz3/////w7D83M/5uZ78r5T1lm7+vqn+9/TzfEn2n3r0hVX95dv3qIb0jWL6y7f71MP4sJLzeET97uf5wqv7qoz5m3f0glP4lnD2jGH9uaL9tJv5oH5TRpbOAAAAD3RSTlMAsNDg8DAQgEB+UKAgwD1bOEkqAAAACXBIWXMAAAsSAAALEgHS3X78AAADbElEQVR4nO3d23LaMBCAYZGUhCZtpdg4NgHMITQ9vf/7dUJCi4yNtetltcrsf2/mGys+IGmCeetu9MlytPtshjS+YlFaa6ePQ6RjnrO5hz4MkDI67fRhgJRt3N+gaOkto3MPxUqv2aE46YTT+Q5FSVlH/gDFSONAEdJIULg0FhQsjQaFSuNBgdKIUJg0JhQkjQqFSONCAdLI0HBpbGiwNDo0VBofGigVAA2TSoAGSUVAQ6QyoAFSIdB+qRRor1QMtE8qB9ojFQQ9L5UEPSsVBT0nlQU9IxUG7ZZKg3ZKxUG7pPKgHVKB0HapRGirVCS0TSoT2iIVCj2VSoWeSMVCm1K50IZUMNSXSoZ6Ul7odxj0WMoL/QmEHkl5oZtHtJQXCh77/1Jm6OY3VsoMtS/gwX+XckPtyy+clB1qN39QUn6otZsfuyms3bcoUEQThRKnUOoUSt0HhWYOVpZleV48yYceyvIiDehrq0UiUOfK5wF/BJxQ51yNpjJDXZknAnVuvkwE6spZIlDnMNd/FChGiodus966pfDRx0ODLt/lLG/lluDb1IWh+2b1qTSTCLW2ysumdC0Sam21ag5+JRNq7aJxUoHH80Ht0peWYqFNKexmygm1hQddgY5lhdrck4IuJ15o5Q0+6PHEC/VP6TPkSGbo0zEU9HRihvrvX5ADuaHe2EPeTLih3h0K8mWfG1phL3tuqHXIj2CHzlOBYj9CodQfodCukrmYUrk9JXPDT+YRmsxLSSqvecm8OCfzVWSLvej163Jr/lSJ3AmI6vjxKXhKp+EEzjvyQRtOsdOOs8b0qNCJ3OJkyQE6IBzQanG6MjIHOi8PLdbN2ft94AVRPDTLe6uzbRsStXQXZ4mxBjvjQBHOKFDoWlgkKG65nh+6At7oI0G36P1PrND5gK1PfNCyxu164YUO3/N2ceg8y9eDN+YNgtZFfyT7HIdCsVvCkCmUOoVSp1DqFEqdQqlTKHUKpU6h1CmUOoVSp1DqFEqdQqlTKHUKpU6h1CmUOoVSp1DqFErdB4UujxYVCZcPQ9L/pUOdQqlTKHUKpU6h1CmUOoVSp1DqFEqdQqlLCHonQBHQjblh/K11fCNjzH0K0IkxSZzS0f4fzXP+0D6uqxuThPTgNObLVwGczkb/nK+/Yj8Selav78fGGGPMX4XiaWOSThKMAAAAAElFTkSuQmCC"},fdd1:function(e,t,n){"use strict";n("9ad3")},fdef:function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2aa0520c"],{"0cbf":function(module,__webpack_exports__,__webpack_require__){"use strict";var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("8e6e"),core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__),regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("96cf"),regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_1__),_Users_ajiedebijiben_Documents_vue_weeklySchedule_pc_node_modules_babel_runtime_corejs2_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("3b8d"),core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("28a5"),core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("456d"),core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("ac6a"),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5__),_Users_ajiedebijiben_Documents_vue_weeklySchedule_pc_node_modules_babel_runtime_corejs2_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("bd86"),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("7f7f"),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_7__),core_js_modules_es6_array_find_index__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("20d6"),core_js_modules_es6_array_find_index__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(core_js_modules_es6_array_find_index__WEBPACK_IMPORTED_MODULE_8__),_babel_runtime_corejs2_regenerator__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("967e"),_babel_runtime_corejs2_regenerator__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(_babel_runtime_corejs2_regenerator__WEBPACK_IMPORTED_MODULE_9__),_components_common_CTable_vue__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("d670"),_components_common_CEditModal_vue__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("12cb"),_components_common_SearchCondForm_vue__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("5057"),lodash__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("2ef0"),lodash__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_13__),_api_controller_index__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("d02c"),_hook_index__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("61be"),dayjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("5a0c"),dayjs__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(dayjs__WEBPACK_IMPORTED_MODULE_16__);function ownKeys(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(a),!0).forEach((function(t){Object(_Users_ajiedebijiben_Documents_vue_weeklySchedule_pc_node_modules_babel_runtime_corejs2_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ownKeys(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}__webpack_exports__["a"]={name:"list",components:{CTable:_components_common_CTable_vue__WEBPACK_IMPORTED_MODULE_10__["a"],CEditModal:_components_common_CEditModal_vue__WEBPACK_IMPORTED_MODULE_11__["a"],SearchCondForm:_components_common_SearchCondForm_vue__WEBPACK_IMPORTED_MODULE_12__["a"]},data:function(){return{daylightHours:{show:!1,morrow:0,value:[]},eveningTime:{show:!1,morrow:0,value:[]},isEdit:!1,editModalShowArea:!1,addrTitle:"",addrName:void 0,addrRange:100,address:void 0,addrRangeList:[{label:"50米",value:50},{label:"100米",value:100},{label:"200米",value:200},{label:"300米",value:300},{label:"400米",value:400},{label:"500米",value:500},{label:"600米",value:600},{label:"700米",value:700},{label:"800米",value:800},{label:"900米",value:900},{label:"1000米",value:1e3},{label:"2000米",value:2e3},{label:"3000米",value:3e3}],locSetModalShow:!1,btSaveLoading:!1,ruleValidate:{name:[{required:!0,message:"The name cannot be empty",trigger:"blur"}],mail:[{required:!0,message:"Mailbox cannot be empty",trigger:"blur"},{type:"email",message:"Incorrect email format",trigger:"blur"}],city:[{required:!0,message:"Please select the city",trigger:"change"}],gender:[{required:!0,message:"Please select gender",trigger:"change"}],interest:[{required:!0,type:"array",min:1,message:"Choose at least one hobby",trigger:"change"},{type:"array",max:2,message:"Choose two hobbies at best",trigger:"change"}],date:[{required:!0,type:"date",message:"Please select the date",trigger:"change"}],time:[{required:!0,type:"string",message:"Please select time",trigger:"change"}],desc:[{required:!0,message:"Please enter a personal introduction",trigger:"blur"},{type:"string",min:20,message:"Introduce no less than 20 words",trigger:"blur"}]},grid:{xl:12,lg:12,md:24,sm:24,xs:24},formValidate:{name:"",sign_daytime:{},start_daytime:"",end_daytime:"",duty_night_time_start:"",duty_night_time_end:"",sign_night_time:[],attandence_area:[],log_content:"",day_time_start:"",day_time_end:"",effect_begin:"",effect_end:""},searchCondList:[{id:"name",name:"配置名称",type:"input",show:!0,optList:[]}],params:{id:"",name:"",page_index:1,page_size:10},tableColumns:[{type:"index",title:"序号",align:"center",width:80,show:!0,fixed:"left"},{key:"name",title:"值班配置值班",align:"center",minWidth:150,show:!0},{key:"day_time",title:"一天值班时间段",align:"center",minWidth:150,show:!1},{key:"effect_begin",title:"配置生效开始时间",align:"center",minWidth:150,show:!0},{key:"effect_end",title:"配置生效结束时间",align:"center",minWidth:150,show:!0},{slot:"log_content",title:"值班日志",align:"center",minWidth:150,show:!0},{slot:"generalSwitch",title:"启用",align:"center",minWidth:150,show:!0},{slot:"actionAndDetails",title:"操作",align:"center",minWidth:160,show:!0,fixed:"right"}],tableLoading:!1,tableData:[],tableSize:"default",tableFullscreen:!1,dataCount:0,collapse:!1,regionDot:0,editModalshow:!1,editModalLoading:!1,flag:"",formItem:[{id:"name",name:"配置名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"effect_beginAndEffect_end",name:"配置生效时间",type:"datetimerange",disabled:!1,require:!1,optList:[]},{id:"day_time",name:"一天值班时间段",type:"timerange",disabled:!1,require:!1,optList:[]},{id:"sign_daytime",name:"值班时间区间",type:"timeTable",disabled:!1,require:!1,columns:[{title:"周数",width:100,key:"day"},{title:"值班时间",slot:"time",minWidth:410},{title:" ",slot:"action",width:140}],data:[{day:"周一",time:""},{day:"周二",time:""},{day:"周三",time:""},{day:"周四",time:""},{day:"周五",time:""},{day:"周六",time:""},{day:"周日",time:""}],optList:[]},{id:"log_content",name:"配置日志",type:"textarea",disabled:!1,require:!1,optList:[]},{id:"attandence_area",name:"值班打卡坐标",type:"area",disabled:!1,require:!1,optList:[]},{id:"is_sign",name:"是否签到",type:"switch",disabled:!1,require:!1,optList:[]}],formRule:{name:[{required:!0,message:"该项不能为空",trigger:"blur"}],effect_beginAndEffect_end:[{type:"array",required:!0,message:"该项不能为空",trigger:"change"}],day_time:[{type:"array",required:!0,message:"该项不能为空",trigger:"change"}],duty_daytime:[{type:"array",required:!0,message:"该项不能为空",trigger:"change"}],duty_night_time:[{type:"array",required:!0,message:"该项不能为空",trigger:"change"}],sign_night_time:[{type:"array",required:!0,message:"该项不能为空",trigger:"change"},{type:"array",required:!0,message:"该项不能为空",trigger:"blur"}],attandence_area:[{type:"array",required:!0,message:"该项不能为空",trigger:"change"},{type:"array",required:!0,message:"该项不能为空",trigger:"blur"}]},defaultFormData:{name:"",start_daytime:"",end_daytime:"",sign_daytime:{},duty_night_time_start:"",duty_night_time_end:"",sign_night_time:[],attandence_area:[],log_content:"",day_time_start:"",day_time_end:"",effect_begin:"",effect_end:"",is_sign:0},roleList:[]}},computed:{tableDataCal:function(){var e=(this.params.page_index-1)*this.params.page_size,t=e+this.params.page_size;return this.tableData.slice(e,t)}},created:function(){},mounted:function(){this.getData();var e=this;window.addEventListener("message",(function(t){var a=t.data;a&&"locationPicker"==a.module&&(e.address=a)}),!1)},methods:{showOpenTime:function showOpenTime(row){var info={one:"周一",two:"周二",three:"周三",four:"周四",five:"周五",six:"周六",seven:"周日"},data=eval("("+row.service_interval_time+")");this.openTime.data=[{day:info["one"],time:data["one"]},{day:info["two"],time:data["two"]},{day:info["three"],time:data["three"]},{day:info["four"],time:data["four"]},{day:info["five"],time:data["five"]},{day:info["six"],time:data["six"]},{day:info["seven"],time:data["seven"]}],this.$forceUpdate(),this.openTime.show=!0},defaultOpeningHours:function defaultOpeningHours(noFormatData){console.log("🚀🚀noFo11rmatData🚀,",noFormatData);var info={one:"周一",two:"周二",three:"周三",four:"周四",five:"周五",six:"周六",seven:"周日"},data="string"===typeof noFormatData?eval("("+noFormatData+")"):{one:[],two:[],three:[],four:[],five:[],six:[],seven:[]};console.log("🚀🚀🚀data,",data),this.formItem[this.formItem.findIndex((function(e){return"timeTable"===e.type}))].data=[{day:info["one"],time:data["one"]},{day:info["two"],time:data["two"]},{day:info["three"],time:data["three"]},{day:info["four"],time:data["four"]},{day:info["five"],time:data["five"]},{day:info["six"],time:data["six"]},{day:info["seven"],time:data["seven"]}]},setTime2:function(){this.eveningTime.show=!0,this.eveningTime.morrow=0,this.eveningTime.value=[]},setTime1:function(){this.daylightHours.show=!0,this.daylightHours.morrow=0,this.daylightHours.value=[]},setMap:function(){this.editModalShowArea=!0},nextStep:function(){this.addrName=this.address.poiname,this.addrTitle=this.address.poiname,this.locSetModalShow=!0},saveAttendance:function(){this.addrName=this.address.poiname,this.addrTitle=this.address.poiname;var e={address:this.addrName,latitude:this.address.latlng.lat,longitude:this.address.latlng.lng,offset:this.addrRange};this.defaultFormData.attandence_area.push(e),this.$refs.ceditmodal.formData.attandence_area.push(e),this.editModalShowArea=!1,this.address=void 0},handleSubmit:function(e){var t=this;this.$refs[e].validate((function(e){e?t.$Message.success("Success!"):t.$Message.error("Fail!")}))},getPeopleList:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.asc.getApiCommonGetPersonByCondiction({user_type:1,keyword:t}).then((function(t){var a=t.response.map((function(e){return _objectSpread(_objectSpread({},e),{},{label:e.name+"-"+e.card,value:e.name+"-"+e.card})}));e.formItem[e.formItem.findIndex((function(e){return"cardName"===e.id}))].optList=a}))},search:function(e){var t=this;Object.keys(e).forEach((function(a){e[a]?t.params[a]=e[a]:t.params[a]=""})),this.onPageChange(1)},reset:function(){var e=this;this.searchCondList.forEach((function(t){e.params[t.id]=""})),this.onPageChange(1)},getData:function(){var e=this;this.tableLoading=!0,_api_controller_index__WEBPACK_IMPORTED_MODULE_14__["e"](this.params).then((function(t){console.log("🚀res🚀🚀,",t),e.tableData=t.data,e.dataCount=t.data_count,e.tableLoading=!1}))},switchChange:function(e,t,a){var i=this;_api_controller_index__WEBPACK_IMPORTED_MODULE_14__["f"]({id:t.id,is_enable:e}).then((function(e){i.$Message.success("操作成功"),i.getData()}))},rowDetails:function(e){var t=this;this.formItem[this.formItem.findIndex((function(e){return"timeTable"===e.type}))].columns=[{title:"周数",width:100,key:"day"},{title:"值班时间",slot:"time",minWidth:590}],this.$forceUpdate(),this.defaultOpeningHours(e.sign_daytime),this.regionDot=0,this.editModalshow=!0,this.editModalLoading=!0,_api_controller_index__WEBPACK_IMPORTED_MODULE_14__["d"]({id:e.id}).then((function(a){t.$forceUpdate(),t.defaultOpeningHours(a.sign_daytime),t.$refs.ceditmodal.modalDetailsInit(_objectSpread(_objectSpread({id:e.id},a),{},{attandence_area:JSON.parse(a.attendance_area),day_time:a.day_time.split("~"),effect_beginAndEffect_end:[dayjs__WEBPACK_IMPORTED_MODULE_16___default()(a.effect_begin).format("YYYY-MM-DD HH:mm"),dayjs__WEBPACK_IMPORTED_MODULE_16___default()(a.effect_end).format("YYYY-MM-DD HH:mm")]}),"name"),t.editModalLoading=!1})).finally((function(){t.editModalLoading=!1}))},add:function(){this.formItem[this.formItem.findIndex((function(e){return"timeTable"===e.type}))].columns=[{title:"周数",width:100,key:"day"},{title:"值班时间",slot:"time",minWidth:490},{title:" ",slot:"action",width:110}],console.log("🚀🚀this.defaultFormData.sign_daytime🚀,",this.defaultFormData.sign_daytime),this.defaultOpeningHours(this.defaultFormData.sign_daytime),this.flag="add",this.editModalshow=!0,this.regionDot=0,this.$refs.ceditmodal.modalInit("add",_objectSpread(_objectSpread({},this.defaultFormData),{},{effect_beginAndEffect_end:[],attandence_area:[]}),"新增值班配置")},rowEdit:function(){var e=Object(_Users_ajiedebijiben_Documents_vue_weeklySchedule_pc_node_modules_babel_runtime_corejs2_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__["a"])(_babel_runtime_corejs2_regenerator__WEBPACK_IMPORTED_MODULE_9___default.a.mark((function e(t){var a=this;return _babel_runtime_corejs2_regenerator__WEBPACK_IMPORTED_MODULE_9___default.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:console.log("编辑行",t),this.formItem[this.formItem.findIndex((function(e){return"timeTable"===e.type}))].columns=[{title:"周数",width:100,key:"day"},{title:"值班时间",slot:"time",minWidth:490},{title:" ",slot:"action",width:110}],this.flag="edit",this.editModalshow=!0,this.editModalLoading=!0,_api_controller_index__WEBPACK_IMPORTED_MODULE_14__["d"]({id:t.id}).then((function(e){a.defaultOpeningHours(e.sign_daytime),a.$refs.ceditmodal.aaa++,a.$refs.ceditmodal.modalInit("edit",_objectSpread(_objectSpread({id:t.id},e),{},{attandence_area:JSON.parse(e.attendance_area),day_time:e.day_time.split("~"),effect_beginAndEffect_end:[dayjs__WEBPACK_IMPORTED_MODULE_16___default()(e.effect_begin).format("YYYY-MM-DD HH:mm"),dayjs__WEBPACK_IMPORTED_MODULE_16___default()(e.effect_end).format("YYYY-MM-DD HH:mm")]})),a.editModalLoading=!1})).finally((function(){a.editModalLoading=!1}));case 6:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),modalSubmit:function(e){var t=this;console.log("modal提交",e),e=_objectSpread(_objectSpread({},e),{},{day_time_end:e.day_time.split("-")[1],day_time_start:e.day_time.split("-")[0],effect_begin:dayjs__WEBPACK_IMPORTED_MODULE_16___default()(e.effect_beginAndEffect_end[0]).format("YYYY-MM-DD HH:mm"),effect_end:dayjs__WEBPACK_IMPORTED_MODULE_16___default()(e.effect_beginAndEffect_end[1]).format("YYYY-MM-DD HH:mm"),sign_daytime:JSON.parse(e.sign_daytime)}),console.log("222",e),delete e.effect_beginAndEffect_end,delete e.end_daytime,delete e.start_daytime,delete e.duty_night_time_end,delete e.duty_night_time_start,delete e.sign_night_time,delete e.daytime_num,delete e.duty_daytime,delete e.duty_night_num,delete e.duty_night_time;var a={add:function(){t.$Modal.confirm({title:"提示",content:"是否确定提交?",loading:!0,onOk:function(){_api_controller_index__WEBPACK_IMPORTED_MODULE_14__["g"](e).then((function(e){t.$Message.success("成功"),t.editModalshow=!1,t.getData()})).finally((function(){t.$Modal.remove()}))}})},edit:function(){t.$Modal.confirm({title:"提示",content:"是否确定提交?",loading:!0,onOk:function(){_api_controller_index__WEBPACK_IMPORTED_MODULE_14__["h"](e).then((function(e){t.$Message.success("成功"),t.editModalshow=!1,t.getData()})).finally((function(){t.$Modal.remove()}))}})}};a[this.flag]()},rowDelete:function(e){var t=this;_api_controller_index__WEBPACK_IMPORTED_MODULE_14__["c"]({id:e.id}).then((function(e){t.$Message.success("操作成功"),t.getData()}))},onPageChange:function(e){this.params.page_index=e,this.getData()},onPageSizeChange:function(e){this.params.page_size=e,1==this.params.page_index&&this.onPageChange(1)}}}},"386d":function(e,t,a){"use strict";var i=a("cb7c"),n=a("83a1"),o=a("5f1b");a("214f")("search",1,(function(e,t,a,_){return[function(a){var i=e(this),n=void 0==a?void 0:a[t];return void 0!==n?n.call(a,i):new RegExp(a)[t](String(i))},function(e){var t=_(a,e,this);if(t.done)return t.value;var r=i(e),s=String(this),d=r.lastIndex;n(d,0)||(r.lastIndex=0);var l=o(r,s);return n(r.lastIndex,d)||(r.lastIndex=d),null===l?-1:l.index}]}))},5057:function(e,t,a){"use strict";a("7f7f");var i=function(){var e=this,t=e._self._c;return t("div",[t("Form",{staticClass:"searchDiv",attrs:{model:e.searchCondObj,"label-width":e.labelWidth,"label-colon":e.labelColon}},[t("Row",[e._l(e.searchCondList.filter((function(e){return e.show})),(function(a){return t("Col",e._b({key:a.id},"Col",e.grid,!1),[t("FormItem",{attrs:{label:a.name}},["input"==a.type?t("Input",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"请输入"+a.name},model:{value:e.searchCondObj[a.id],callback:function(t){e.$set(e.searchCondObj,a.id,t)},expression:"searchCondObj[item.id]"}}):"select"==a.type?t("Select",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"请选择"+a.name},model:{value:e.searchCondObj[a.id],callback:function(t){e.$set(e.searchCondObj,a.id,t)},expression:"searchCondObj[item.id]"}},e._l(a.optList,(function(a){return t("Option",{key:a.value,attrs:{value:a.value}},[e._v(e._s(a.label))])})),1):"datetime"==a.type?t("DatePicker",{attrs:{type:"datetime",format:"yyyy-MM-dd HH:mm",placeholder:"请选择"+a.name},on:{"on-change":function(t,i){return e.datetimeChange(t,i,a.id)}},model:{value:e.searchCondObj[a["id"]],callback:function(t){e.$set(e.searchCondObj,a["id"],t)},expression:"searchCondObj[item['id']]"}}):e._e()],1)],1)})),t("Col",e._b({staticClass:"buttonCol"},"Col",e.grid,!1),[t("Button",{attrs:{type:"primary"},on:{click:e.searchBt}},[e._v("查询")]),t("Button",{on:{click:e.resetBt}},[e._v("重置")])],1)],2)],1)],1)},n=[],o=(a("c5f6"),{props:{searchCondList:{type:Array,require:!0},labelWidth:{type:Number,default:100},labelColon:{type:Boolean,default:!0}},data:function(){return{grid:{sm:12,md:12,lg:8,xl:6},searchCondObj:{}}},computed:{},created:function(){},mounted:function(){},methods:{searchBt:function(){this.$emit("onSubmit",this.searchCondObj)},resetBt:function(){this.searchCondObj={},this.$emit("onReset")},datetimeChange:function(e,t,a){this.searchCondObj[a]=e}}}),_=o,r=(a("6d17"),a("2877")),s=Object(r["a"])(_,i,n,!1,null,"45d49b8a",null);t["a"]=s.exports},"6d17":function(e,t,a){"use strict";a("6eee")},"6eee":function(e,t,a){},"731a":function(e,t,a){"use strict";a.r(t);a("386d");var i=function(){var e=this,t=e._self._c;return t("div",[t("Modal",{attrs:{title:"白天签到时间",width:"400"},scopedSlots:e._u([{key:"footer",fn:function(){return[t("Button",{on:{click:function(){return e.daylightHours.show=!1}}},[e._v("取消")]),t("Button",{attrs:{disabled:!e.daylightHours.value.length>0,type:"primary"},on:{click:function(){e.daylightHours.show=!1,e.$refs.ceditmodal.$refs.form.validate()}}},[e._v("确定\n ")])]},proxy:!0}]),model:{value:e.daylightHours.show,callback:function(t){e.$set(e.daylightHours,"show",t)},expression:"daylightHours.show"}},[t("TimePicker",{staticStyle:{width:"calc(100% - 70px)"},attrs:{format:"HH:mm",placeholder:"请选择时间",placement:"bottom-end",type:"timerange"},model:{value:e.daylightHours.value,callback:function(t){e.$set(e.daylightHours,"value",t)},expression:"daylightHours.value"}}),t("i-switch",{staticClass:"ivu-ml-8",attrs:{"false-value":0,"true-value":1,size:"large"},scopedSlots:e._u([{key:"open",fn:function(){return[t("span",[e._v("次日")])]},proxy:!0},{key:"close",fn:function(){return[t("span",[e._v("当日")])]},proxy:!0}]),model:{value:e.daylightHours.morrow,callback:function(t){e.$set(e.daylightHours,"morrow",t)},expression:"daylightHours.morrow"}})],1),t("Modal",{attrs:{title:"晚上签到时间",width:"400"},scopedSlots:e._u([{key:"footer",fn:function(){return[t("Button",{on:{click:function(){return e.eveningTime.show=!1}}},[e._v("取消")]),t("Button",{attrs:{disabled:!e.eveningTime.value.length>0,type:"primary"},on:{click:function(){e.$refs.ceditmodal.formData.sign_night_time.push({begin:e.eveningTime.value[0],end:e.eveningTime.value[1],morrow:e.eveningTime.morrow}),e.eveningTime.show=!1,e.$refs.ceditmodal.$refs.form.validate()}}},[e._v("确定\n ")])]},proxy:!0}]),model:{value:e.eveningTime.show,callback:function(t){e.$set(e.eveningTime,"show",t)},expression:"eveningTime.show"}},[t("TimePicker",{staticStyle:{width:"calc(100% - 70px)"},attrs:{format:"HH:mm",placeholder:"请选择时间",placement:"bottom-end",type:"timerange"},model:{value:e.eveningTime.value,callback:function(t){e.$set(e.eveningTime,"value",t)},expression:"eveningTime.value"}}),t("i-switch",{staticClass:"ivu-ml-8",attrs:{"false-value":0,"true-value":1,size:"large"},scopedSlots:e._u([{key:"open",fn:function(){return[t("span",[e._v("次日")])]},proxy:!0},{key:"close",fn:function(){return[t("span",[e._v("当日")])]},proxy:!0}]),model:{value:e.eveningTime.morrow,callback:function(t){e.$set(e.eveningTime,"morrow",t)},expression:"eveningTime.morrow"}})],1),t("Modal",{attrs:{title:"".concat(e.isEdit?"编辑":"添加","考勤地点"),"mask-closable":""},on:{"on-cancle":function(t){e.address=void 0}},scopedSlots:e._u([{key:"footer",fn:function(){return[t("Button",{attrs:{disabled:void 0==e.address,type:"primary"},on:{click:function(t){e.saveAttendance(),e.$refs.ceditmodal.$refs.form.validate()}}},[e._v("确定\n ")])]},proxy:!0}]),model:{value:e.editModalShowArea,callback:function(t){e.editModalShowArea=t},expression:"editModalShowArea"}},[[t("iframe",{attrs:{id:"mapPage",src:"https://apis.map.qq.com/tools/locpicker?search=1&type=1&key=IZXBZ-OTAWV-XU7PV-5FAAL-F6VXH-7XBQP&referer=myapp",frameborder:"0",height:"500px",width:"100%"}})],t("div",{staticStyle:{width:"60%",display:"flex",height:"30px","align-items":"center"}},[t("div",{staticStyle:{width:"100px"}},[e._v("打开范围:")]),t("Select",{model:{value:e.addrRange,callback:function(t){e.addrRange=t},expression:"addrRange"}},e._l(e.addrRangeList,(function(a){return t("Option",{key:a.value,attrs:{value:a.value}},[e._v(e._s(a.label))])})),1)],1)],2),t("Modal",{attrs:{"mask-closable":"",title:"地点设置"},scopedSlots:e._u([{key:"footer",fn:function(){return[t("Button",{on:{click:function(t){e.locSetModalShow=!1}}},[e._v("上一步")]),t("Button",{attrs:{loading:e.btSaveLoading,type:"primary"},on:{click:e.saveAttendance}},[e._v("确定")])]},proxy:!0}]),model:{value:e.locSetModalShow,callback:function(t){e.locSetModalShow=t},expression:"locSetModalShow"}},[[t("Form",{attrs:{"label-width":100,"label-colon":""}},[t("Row",[t("Col",{attrs:{span:"24"}},[t("FormItem",{attrs:{label:"标题"}},[t("Input",{attrs:{type:"text"},model:{value:e.addrTitle,callback:function(t){e.addrTitle=t},expression:"addrTitle"}})],1)],1),t("Col",{attrs:{span:"24"}},[t("FormItem",{attrs:{label:"地点名称"}},[t("Input",{attrs:{type:"text"},model:{value:e.addrName,callback:function(t){e.addrName=t},expression:"addrName"}})],1)],1),t("Col",{attrs:{span:"24"}},[t("FormItem",{attrs:{label:"打卡范围"}},[t("Select",{model:{value:e.addrRange,callback:function(t){e.addrRange=t},expression:"addrRange"}},e._l(e.addrRangeList,(function(a){return t("Option",{key:a.value,attrs:{value:a.value}},[e._v(e._s(a.label))])})),1)],1)],1)],1)],1)]],2),t("CEditModal",{ref:"ceditmodal",attrs:{formItem:e.formItem,formLabelWidth:100,formRule:e.formRule,loading:e.editModalLoading,regionDot:e.regionDot,width:850},on:{getPeopleList:e.getPeopleList,onClose:function(t){e.editModalshow=!1},onSubmit:e.modalSubmit,setMap:e.setMap,setTime1:e.setTime1,setTime2:e.setTime2},model:{value:e.editModalshow,callback:function(t){e.editModalshow=t},expression:"editModalshow"}}),t("Card",{ref:"card"},[t("SearchCondForm",{attrs:{labelWidth:120,searchCondList:e.searchCondList},on:{onReset:e.reset,onSubmit:e.search}}),t("Button",{staticClass:"ivu-ml-8",attrs:{ghost:"",type:"primary"},on:{click:e.add}},[t("Icon",{attrs:{type:"md-add"}}),e._v("\n 新增\n ")],1),t("CTable",{attrs:{dataCount:e.dataCount,pageIndex:e.params.page_index,pageSize:e.params.page_size,tableColumns:e.tableColumns.filter((function(e){return e.show})),tableData:e.tableData,tableLoading:e.tableLoading,tableSize:e.tableSize},on:{onPageChange:e.onPageChange,onPageSizeChange:e.onPageSizeChange,rowDelete:e.rowDelete,rowDetails:e.rowDetails,rowEdit:e.rowEdit,switchChange:e.switchChange},scopedSlots:e._u([{key:"log_content",fn:function(e){var a=e.row;return[t("Ellipsis",{attrs:{height:80,text:a.log_content,transfer:!0,tooltip:""}})]}}])})],1)],1)},n=[],o=a("0cbf"),_=o["a"],r=a("2877"),s=Object(r["a"])(_,i,n,!1,null,null,null);t["default"]=s.exports},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},d670:function(e,t,a){"use strict";var i=function(){var e=this,t=e._self._c;return t("div",[t("Table",{staticClass:"ivu-mt",attrs:{columns:e.tableColumns,data:e.tableData,loading:e.tableLoading,size:e.tableSize},scopedSlots:e._u([{key:"generalSwitch",fn:function(a){var i=a.row,n=a.index;return[t("i-switch",{attrs:{size:"large","true-value":1,"false-value":0},on:{"on-change":function(t){return e.switchChange(t,i,n)}},model:{value:i.is_enable,callback:function(t){e.$set(i,"is_enable",t)},expression:"row.is_enable"}},[t("span",{attrs:{slot:"open",type:"md-checkmark"},slot:"open"},[e._v("启用")]),t("span",{attrs:{slot:"close",type:"md-close"},slot:"close"},[e._v("停用")])])]}},{key:"action",fn:function(a){var i=a.row;return[t("Button",{attrs:{type:"info",size:"small"},on:{click:function(t){return e.edit(i)}}},[e._v("编辑")]),t("Poptip",{attrs:{confirm:"",transfer:"",title:"是否确认删除?"},on:{"on-ok":function(t){return e.del(i)}}},[t("Button",{staticStyle:{"margin-left":"8px"},attrs:{type:"error",size:"small"}},[e._v("删除")])],1)]}},{key:"actionAndDetails",fn:function(a){var i=a.row;return[t("a",{attrs:{type:"text"},on:{click:function(t){return e.details(i)}}},[e._v("详情")]),t("Divider",{attrs:{type:"vertical"}}),t("a",{attrs:{type:"text"},on:{click:function(t){return e.edit(i)}}},[e._v("编辑")]),t("Divider",{attrs:{type:"vertical"}}),t("Poptip",{attrs:{confirm:"",transfer:"",title:"是否确认删除?"},on:{"on-ok":function(t){return e.del(i)}}},[t("a",{attrs:{type:"text"}},[e._v("删除")])])]}},e._l(e.$scopedSlots,(function(t,a){return{key:a,fn:function(t){return[e._t(a,null,null,t)]}}}))],null,!0)}),t("div",{staticClass:"ivu-text-center ivu-mt"},[t("Page",{attrs:{total:e.dataCount,current:e.pageIndex,"page-size":e.pageSize,"page-size-opts":e.pageSizeOpts,"show-total":"","show-sizer":""},on:{"on-change":e.handleChangePage,"on-page-size-change":e.handleChangePageSize}})],1)],1)},n=[],o=(a("c5f6"),{props:{tableColumns:{type:Array,require:!0},tableData:{type:Array,require:!0},tableLoading:{type:Boolean,default:!1},tableSize:{type:String,default:"default"},dataCount:{type:Number,require:!0},pageIndex:{type:Number,require:!0},pageSize:{type:Number,require:!0},pageSizeOpts:{type:Array,default:function(){return[10,20,50,100]}}},data:function(){return{}},computed:{},created:function(){},mounted:function(){},methods:{switchChange:function(e,t,a){this.$emit("switchChange",e,t,a)},details:function(e){this.$emit("rowDetails",e)},edit:function(e){this.$emit("rowEdit",e)},del:function(e){this.$emit("rowDelete",e)},handleChangePage:function(e){this.$emit("onPageChange",e)},handleChangePageSize:function(e){this.$emit("onPageSizeChange",e)}}}),_=o,r=a("2877"),s=Object(r["a"])(_,i,n,!1,null,"016d50fc",null);t["a"]=s.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0ac970"],{"19d6":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",[e("Row",{attrs:{gutter:24}},[e("Col",{attrs:{xl:6,lg:6,md:0,sm:0,xs:0}},[e("Card",{staticStyle:{border:"1px solid #ddd","border-radius":"8px"},attrs:{shadow:"",title:"通用设置",icon:"md-options",padding:0}},[e("CellGroup",{staticClass:"ivu-pt-8 ivu-pb-8"},[e("Cell",{attrs:{title:"1、开关配置",name:"repairs",label:"",selected:!0}})],1)],1)],1),e("Col",{attrs:{xl:18,lg:18,md:24,sm:24,xs:24}},[e("Card",{attrs:{bordered:!1,"dis-hover":""}},[e("Card",{staticStyle:{width:"320px","border-radius":"5px",margin:"10px"}},[e("div",{staticStyle:{"text-align":"left"}},[e("Row",[e("Col",{attrs:{span:"18"}},[e("h3",[t._v("自动推送")])]),e("Col",{attrs:{span:"6"}},[e("i-switch",{attrs:{trueValue:"1",falseValue:"0"},on:{"on-change":t.onChangeSwitch},model:{value:t.config.AutomaticallyPushState,callback:function(e){t.$set(t.config,"AutomaticallyPushState",e)},expression:"config.AutomaticallyPushState"}})],1)],1)],1)])],1)],1)],1)],1)},o=[],i=a("61be"),c=(a("8095"),a("9687"),a("690c"),a("cd80"),a("dcea"),a("403a"),a("06e3"),a("a5f6")),s=(a("cd2f"),a("ecef"),{components:{},data:function(){return{config:{AutomaticallyPushState:"0"}}},computed:{},watch:{},methods:{onChangeSwitch:function(t){var e=this;i["b"]((function(){return c["b"]({timing_switch:t}).then((function(t){return e.getAutomaticallyPush(),t}))}),!1,"正在变更中...")},getAutomaticallyPush:function(){var t=this;c["a"]().then((function(e){t.config.AutomaticallyPushState=e.response}))}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){console.log("🚀🚀🚀,"),this.getAutomaticallyPush()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}}),u=s,l=a("2877"),r=Object(l["a"])(u,n,o,!1,null,"315db19f",null);e["default"]=r.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-635341cc"],{"12cb":function(t,e,i){"use strict";i("20d6"),i("7f7f");var a=function(){var t=this,e=t._self._c;return e("div",[e("Drawer",{staticClass:"class-drawer",attrs:{title:"配置值班时间",transfer:"",width:"800"},model:{value:t.showDrawer,callback:function(e){t.showDrawer=e},expression:"showDrawer"}},[e("div",{staticStyle:{"margin-top":"20px"}},[e("Card",{attrs:{"dis-hover":""}},[e("Row",{staticStyle:{"margin-bottom":"10px",padding:"12px 0","background-color":"#f6f6f6"}},[e("Col",{attrs:{span:"14"}},[t._v(" 值班时间范围限制")])],1),e("Row",{key:t.aaa,staticStyle:{"margin-bottom":"10px"}},t._l(t.formDataTimeTable.time,(function(i,a){return e("Col",{key:a,staticStyle:{"margin-bottom":"10px",display:"flex","align-items":"center"},attrs:{span:"24"}},[e("TimePicker",{staticStyle:{width:"240px"},attrs:{clearable:!1,format:"HH:mm",placeholder:"未设置",placement:"bottom-end",type:"timerange"},on:{"on-open-change":function(e){return t.onOpenChangeTimeTable(e,i,a)}},model:{value:i.timeRange,callback:function(e){t.$set(i,"timeRange",e)},expression:"item.timeRange"}}),e("i-switch",{staticClass:"ivu-ml-8",attrs:{"false-value":0,"true-value":1,size:"large"},on:{"on-change":function(e){return t.onSwitchChangeTimeTable(e,i,a)}},scopedSlots:t._u([{key:"open",fn:function(){return[e("span",[t._v("次日")])]},proxy:!0},{key:"close",fn:function(){return[e("span",[t._v("当日")])]},proxy:!0}],null,!0),model:{value:i.morrow,callback:function(e){t.$set(i,"morrow",e)},expression:"item.morrow"}}),e("div",{staticStyle:{"margin-left":"auto"}},[e("Poptip",{attrs:{confirm:"",title:"是否继续该操作?"},on:{"on-ok":function(){t.formDataTimeTable.time.splice(a,1)},"on-cancel":function(t){}}},[e("Button",{attrs:{icon:"ios-close",shape:"circle"}})],1)],1)],1)})),1),e("Row",{staticStyle:{"margin-bottom":"10px",display:"flex","justify-content":"center"}},[e("Button",{staticStyle:{width:"200px"},attrs:{icon:"ios-add",type:"dashed"},on:{click:function(e){return t.formDataTimeTable.time.push({begin:"",end:"",morrow:0})}}},[t._v("添加时间\n ")])],1)],1)],1),e("div",{staticClass:"drawer-footer"},[e("Button",{staticStyle:{"margin-right":"8px"},on:{click:function(e){t.showDrawer=!1}}},[t._v("取消")]),e("Button",{attrs:{type:"primary"},on:{click:t.save}},[t._v("保存")])],1)]),e("Modal",{attrs:{"before-close":t.beforeClose,"mask-closable":t.maskClosable,title:t.modalTitle,transfer:!1,width:t.width},scopedSlots:t._u([{key:"footer",fn:function(){return[t.isDetails?e("div",[e("Button",{on:{click:t.onCancel}},[t._v("关闭")])],1):e("div",[e("Button",{on:{click:t.onCancel}},[t._v("取消")]),e("Button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("提交")])],1)]},proxy:!0}]),model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[[t.loading?e("Spin",{attrs:{fix:"",size:"large"}}):t._e(),e("Form",{ref:"form",attrs:{"label-width":t.formLabelWidth,model:t.formData,rules:t.formRule,"label-colon":""}},[t.isDetails?t._e():e("Row",[t._l(t.formItem.filter((function(t){return"timeTable"!=t.type&&"file"!=t.type&&(!t.hasOwnProperty("show")||t.show)})),(function(i){return e("Col",t._b({key:i.id},"Col",t.grid,!1),[e("FormItem",{attrs:{label:i.name,prop:i.id}},["input"==i.type?e("Input",{attrs:{disabled:i.disabled,placeholder:"请输入"+i.name,clearable:""},model:{value:t.formData[i.id],callback:function(e){t.$set(t.formData,i.id,e)},expression:"formData[item.id]"}}):t._e(),"textarea"==i.type?e("Input",{attrs:{disabled:i.disabled,placeholder:"请输入"+i.name,rows:i.rows,clearable:"",type:"textarea"},model:{value:t.formData[i.id],callback:function(e){t.$set(t.formData,i.id,e)},expression:"formData[item.id]"}}):"select"==i.type?e("Select",{attrs:{disabled:i.disabled,placeholder:"请选择"+i.name,clearable:"",filterable:""},on:{"on-query-change":t.onQueryChange},model:{value:t.formData[i.id],callback:function(e){t.$set(t.formData,i.id,e)},expression:"formData[item.id]"}},t._l(i.optList,(function(i){return e("Option",{key:i.value,attrs:{value:i.value}},[t._v(t._s(i.label)+"\n ")])})),1):"multipleselect"==i.type?e("Select",{attrs:{disabled:i.disabled,placeholder:"请选择"+i.name,clearable:"",filterable:"",multiple:""},model:{value:t.formData[i.id],callback:function(e){t.$set(t.formData,i.id,e)},expression:"formData[item.id]"}},t._l(i.optList,(function(i){return e("Option",{key:i.value,attrs:{value:i.value}},[t._v(t._s(i.label)+"\n ")])})),1):"switch"==i.type?e("i-switch",{attrs:{"false-value":0,"true-value":1},model:{value:t.formData[i["id"]],callback:function(e){t.$set(t.formData,i["id"],e)},expression:"formData[item['id']]"}}):"timerange"==i.type?e("TimePicker",{staticStyle:{width:"100%"},attrs:{editable:!0,placeholder:"请选择"+i.name,format:"HH:mm",placement:"bottom-end",type:"timerange"},on:{"on-clear":function(e){return t.onClearTimerange(e,i["id"])}},model:{value:t.formData[i["id"]],callback:function(e){t.$set(t.formData,i["id"],e)},expression:"formData[item['id']]"}}):"datetime"==i.type?e("DatePicker",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"+i.name,format:"yyyy-MM-dd HH:mm",placement:"bottom-end",type:"datetime"},on:{"on-clear":function(e){return t.onClearTimerange1(e,i["id"])}},model:{value:t.formData[i["id"]],callback:function(e){t.$set(t.formData,i["id"],e)},expression:"formData[item['id']]"}}):"datetimerange"==i.type?e("DatePicker",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"+i.name,format:"yyyy-MM-dd HH:mm",placement:"bottom-end",type:"datetimerange"},on:{"on-clear":function(e){return t.onCleardatetimerange(e,i["id"])}},model:{value:t.formData[i["id"]],callback:function(e){t.$set(t.formData,i["id"],e)},expression:"formData[item['id']]"}}):"area"==i.type?e("div",[e("Button",{attrs:{ghost:"",type:"primary"},on:{click:t.setMap}},[t._v(t._s(["配置坐标","更改坐标"][t.regionDot]))]),t._l(t.formData["attandence_area"],(function(i,a){return t.formData["attandence_area"].length>0?e("div",{key:a},[e("div",{staticStyle:{width:"100%","min-height":"20px",display:"flex",padding:"5px",margin:"5px 0"}},[e("div",{staticStyle:{width:"85%",height:"100%","background-color":"#ffffff"}},[e("div",{staticStyle:{width:"100%",height:"50%",display:"flex","align-items":"center","line-height":"18px"}},[e("Icon",{staticStyle:{"margin-right":"8px"},attrs:{type:"ios-pin-outline"}}),t._v("\n "+t._s(i.address)+"(范围:"+t._s(i.offset)+"米)\n ")],1)]),e("div",{staticStyle:{cursor:"pointer",width:"15%",height:"100%","background-color":"#ffffff",display:"flex","align-items":"center","justify-content":"center"}},[e("Poptip",{attrs:{confirm:"",title:"是否确认删除?",transfer:""},on:{"on-ok":function(){return t.formData["attandence_area"].splice(a,1)}}},[e("Icon",{attrs:{color:"#A3A3A3",size:"20",type:"md-close"}})],1)],1)]),e("divider")],1):t._e()}))],2):"areaTime1"==i.type?e("div",[e("Button",{attrs:{ghost:"",type:"primary"},on:{click:t.setTime1}},[t._v(t._s(["配置时间","更改时间"][t.regionDot]))]),t._l(t.formData["sign_daytime"],(function(i,a){return t.formData["sign_daytime"].length>0?e("div",{key:a},[e("div",{staticStyle:{width:"100%","min-height":"20px",display:"flex",padding:"5px",margin:"5px 0"}},[e("div",{staticStyle:{width:"85%",height:"100%","background-color":"#ffffff"}},[e("div",{staticStyle:{width:"100%",height:"50%",display:"flex","align-items":"center","line-height":"18px"}},[e("Icon",{staticStyle:{"margin-right":"8px"},attrs:{type:"ios-alarm-outline"}}),t._v("\n "+t._s(i.begin+"~"+i.end)+"\n "),1==i.morrow?e("Tag",{staticClass:"ivu-ml-8",attrs:{color:"primary"}},[t._v("次日")]):t._e()],1)]),e("div",{staticStyle:{cursor:"pointer",width:"15%",height:"100%","background-color":"#ffffff",display:"flex","align-items":"center","justify-content":"center"}},[e("Poptip",{attrs:{confirm:"",title:"是否确认删除?",transfer:""},on:{"on-ok":function(){return t.formData["sign_daytime"].splice(a,1)}}},[e("Icon",{attrs:{color:"#A3A3A3",size:"20",type:"md-close"}})],1)],1)]),e("divider")],1):t._e()}))],2):"areaTime2"==i.type?e("div",[e("Button",{attrs:{ghost:"",type:"primary"},on:{click:t.setTime2}},[t._v(t._s(["配置时间","更改时间"][t.regionDot]))]),t._l(t.formData["sign_night_time"],(function(i,a){return t.formData["sign_night_time"].length>0?e("div",{key:a},[e("div",{staticStyle:{width:"100%","min-height":"20px",display:"flex",padding:"5px",margin:"5px 0"}},[e("div",{staticStyle:{width:"85%",height:"100%","background-color":"#ffffff"}},[e("div",{staticStyle:{width:"100%",height:"50%",display:"flex","align-items":"center","line-height":"18px"}},[e("Icon",{staticStyle:{"margin-right":"8px"},attrs:{type:"ios-alarm-outline"}}),t._v("\n "+t._s(i.begin+"~"+i.end)+"\n "),1==i.morrow?e("Tag",{staticClass:"ivu-ml-8",attrs:{color:"primary"}},[t._v("次日")]):t._e()],1)]),e("div",{staticStyle:{cursor:"pointer",width:"15%",height:"100%","background-color":"#ffffff",display:"flex","align-items":"center","justify-content":"center"}},[e("Poptip",{attrs:{confirm:"",title:"是否确认删除?",transfer:""},on:{"on-ok":function(){return t.formData["sign_night_time"].splice(a,1)}}},[e("Icon",{attrs:{color:"#A3A3A3",size:"20",type:"md-close"}})],1)],1)]),e("divider")],1):t._e()}))],2):t._e()],1)],1)})),t._l(t.formItem.filter((function(t){return"file"==t.type&&(!t.hasOwnProperty("show")||t.show)})),(function(i,a){return e("Col",{key:i.id,attrs:{span:"12"}},[e("FormItem",{attrs:{label:i.name,prop:i.name}},[e("Upload",{attrs:{"before-upload":function(e){return t.uploadFile(e,i.id,a)},action:"#",multiple:""}},[e("Button",{attrs:{loading:t.uploadBtLoading[a],icon:"ios-cloud-upload-outline"}},[t._v("选择文件\n ")])],1),t._l(t.formData[i.id],(function(a){return e("p",{key:a.path,staticClass:"fileRow"},[e("a",{attrs:{href:a.path,target:"_blank"}},[t._v(t._s(a.file_name))]),e("Icon",{staticClass:"delIcon",attrs:{type:"md-close"},on:{click:function(e){return t.fileDel(a,i.id)}}})],1)}))],2)],1)}))],2),!t.isDetails&&t.formItem.filter((function(t){return"timeTable"===t.type})).length?e("Row",t._l(t.formItem.filter((function(t){return"timeTable"===t.type})),(function(i,a){return e("FormItem",{key:i.id,attrs:{label:"值班时间区间"}},[e("Table",{key:t.aaa,attrs:{columns:i.columns,data:i.data,border:"",size:"small"},scopedSlots:t._u([{key:"time",fn:function(i){var a=i.row;i.index;return t._l(a.time,(function(i,a){return e("Tag",{key:a,staticStyle:{"margin-right":"5px"},attrs:{color:"blue"}},[t._v(t._s(i.Begin+"~"+i.End+[" 当日"," 次日"][i.Morrow])+"\n ")])}))}},{key:"action",fn:function(a){var n=a.row,r=a.index;return[e("a",{on:{click:function(e){return t.openClass(n,r,i)}}},[t._v("配置")])]}}],null,!0)})],1)})),1):t._e(),t.isDetails?e("Row",[t._l(t.formItem.filter((function(t){return"timeTable"!=t.type&&"file"!=t.type&&(!t.hasOwnProperty("show")||t.show)})),(function(i){return e("Col",t._b({key:i.id},"Col",t.grid,!1),[e("FormItem",{attrs:{label:i.name,prop:i.name}},["input"==i.type?e("span",[t._v(t._s(t.formData[i.id]))]):t._e(),"textarea"==i.type?e("span",[t._v(t._s(t.formData[i.id]))]):t._e(),"datetime"==i.type?e("span",[t._v(t._s(t.formData[i.id]))]):t._e(),"timerange"==i.type?e("span",[t._v(t._s(t.formData[i.id].join("-")))]):t._e(),"datetimerange"==i.type?e("span",[t._v(t._s(t.formData[i.id].join("~")))]):t._e(),"areaTime1"==i.type?e("span",t._l(t.formData["sign_daytime"],(function(i,a){return t.formData["sign_daytime"].length>0?e("div",{key:a},[e("div",{staticStyle:{width:"100%",height:"50%",display:"flex","align-items":"center","line-height":"18px"}},[e("Icon",{staticStyle:{"margin-right":"8px"},attrs:{type:"ios-alarm-outline"}}),t._v(t._s(i.begin+"~"+i.end)+"\n "),1==i.morrow?e("Tag",{staticClass:"ivu-ml-8",attrs:{color:"primary"}},[t._v("次日")]):t._e()],1)]):t._e()})),0):t._e(),"areaTime2"==i.type?e("span",t._l(t.formData["sign_night_time"],(function(i,a){return t.formData["sign_night_time"].length>0?e("div",{key:a},[e("div",{staticStyle:{width:"100%",height:"50%",display:"flex","align-items":"center","line-height":"18px"}},[e("Icon",{staticStyle:{"margin-right":"8px"},attrs:{type:"ios-alarm-outline"}}),t._v(t._s(i.begin+"~"+i.end)+"\n "),1==i.morrow?e("Tag",{staticClass:"ivu-ml-8",attrs:{color:"primary"}},[t._v("次日")]):t._e()],1)]):t._e()})),0):t._e(),"area"==i.type?e("span",t._l(t.formData["attandence_area"],(function(i,a){return t.formData["attandence_area"].length>0?e("div",{key:a},[e("div",{staticStyle:{width:"85%",height:"100%","background-color":"#ffffff"}},[e("div",{staticStyle:{width:"100%",height:"50%",display:"flex","align-items":"center","line-height":"18px"}},[e("Icon",{staticStyle:{"margin-right":"8px"},attrs:{type:"ios-pin-outline"}}),t._v(t._s(i.address)+"(范围:"+t._s(i.offset)+"米)\n ")],1)])]):t._e()})),0):t._e(),"select"==i.type?e("span",[t._v("\n "+t._s(i.optList[i.optList.findIndex((function(e){return e.value==t.formData[i.id]}))].label)+"\n ")]):t._e(),"switch"==i.type?e("span",[t._v(t._s("".concat(1==t.formData[i.id]?"是":"否")))]):t._e()])],1)})),t._l(t.formItem.filter((function(t){return"file"==t.type&&(!t.hasOwnProperty("show")||t.show)})),(function(i){return e("Col",{key:i.id,attrs:{span:"12"}},[e("FormItem",{attrs:{label:i.name,prop:i.name}},t._l(t.formData[i.id],(function(a){return e("p",{key:a.path,staticClass:"fileRow"},[e("a",{attrs:{href:a.path,target:"_blank"}},[t._v(t._s(a.file_name))]),e("Icon",{staticClass:"delIcon",attrs:{type:"md-close"},on:{click:function(e){return t.fileDel(a,i.id)}}})],1)})),0)],1)}))],2):t._e(),t.isDetails&&t.formItem.filter((function(t){return"timeTable"===t.type})).length?e("Row",t._l(t.formItem.filter((function(t){return"timeTable"===t.type})),(function(i,a){return e("FormItem",{key:i.id,attrs:{label:"值班时间区间"}},[e("Table",{key:i.id,attrs:{columns:i.columns,data:i.data,border:"",size:"small"},scopedSlots:t._u([{key:"time",fn:function(i){var a=i.row;i.index;return t._l(a.time,(function(i,a){return e("Tag",{key:a,staticStyle:{"margin-right":"5px"},attrs:{color:"blue"}},[t._v(t._s(i.Begin+"~"+i.End+[" 当日"," 次日"][i.Morrow])+"\n ")])}))}}],null,!0)})],1)})),1):t._e()],1)]],2)],1)},n=[],r=(i("8e6e"),i("456d"),i("ac6a"),i("bd86")),o=(i("7514"),i("f576"),i("28a5"),i("f410")),l=i.n(o);function s(t){if(l()(t))return t}var c=i("f921"),m=i.n(c),f=i("d8d6"),u=i.n(f);function d(t,e){var i=null==t?null:"undefined"!=typeof m.a&&t[u.a]||t["@@iterator"];if(null!=i){var a,n,r,o,l=[],s=!0,c=!1;try{if(r=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;s=!1}else for(;!(s=(a=r.call(i)).done)&&(l.push(a.value),l.length!==e);s=!0);}catch(t){c=!0,n=t}finally{try{if(!s&&null!=i["return"]&&(o=i["return"](),Object(o)!==o))return}finally{if(c)throw n}}return l}}var p=i("e630");function h(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(t,e){return s(t)||d(t,e)||Object(p["a"])(t,e)||h()}i("c5f6");var y=i("2ef0"),v=i.n(y);function b(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function _(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?b(Object(i),!0).forEach((function(e){Object(r["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):b(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var w={props:{regionDot:{type:Number,default:0},loading:{type:Boolean,default:!1},formItem:{type:Array,require:!0},formRule:{type:Object,default:function(){}},formLabelWidth:{type:Number,default:80},value:{type:Boolean,require:!0},width:{default:"520"},maskClosable:{type:Boolean,default:!1},__PROP_NAMES_MAP:{maskClosable:"mask-closable"}},watch:{value:function(t){this.show=t}},data:function(){return{show:this.value,modalTitle:"编辑",formData:{},grid:{xl:12,lg:12,md:24,sm:24,xs:24},uploadBtLoading:[],isDetails:!1,peopleKey:"",aaa:123123,showDrawer:!1,formDataTimeTable:{time:[{begin:"12:00",end:"15:00"},{begin:"12:00",end:"15:00"}]}}},computed:{},created:function(){},mounted:function(){},methods:{checkTimes:function(t,e){function i(t){var e=t.split(":").map(Number),i=g(e,2),a=i[0],n=i[1];return 60*a+n}var a=t.map((function(t){var e=t.split("~").map(i),a=g(e,2),n=a[0],r=a[1];return{start:n,end:r}})),n=e.map(i),r=n.every((function(t){return a.every((function(e){var i=e.end;return t>i}))})),o=n.every((function(t){return a.every((function(e){var i=e.start;return t<i}))})),l=n.every((function(t){return a.every((function(e){var i=e.start,a=e.end;return t<i||t>a}))}));return r||o||l},onOpenChangeTimeTable:function(t,e,i){var a=this;if(console.log("🚀🚀event, item, index🚀,",t,e,i),!t){var n={0:function(){var t=a.formDataTimeTable.time.map((function(t){if(0===t.morrow)return t.timeRange.join("~")})).filter((function(t){return void 0!==t}));-1!==t.indexOf(e.timeRange.join("~"))&&t.splice(t.indexOf(e.timeRange.join("~")),1),a.checkTimes(t,e.timeRange)||(a.formDataTimeTable.time.splice(i,1),a.$Message.error("当日配置时间重叠,请重新配置时间"),a.aaa++)},1:function(){var t=a.formDataTimeTable.time.map((function(t){if(1===t.morrow)return t.timeRange.join("~")})).filter((function(t){return void 0!==t}));-1!==t.indexOf(e.timeRange.join("~"))&&t.splice(t.indexOf(e.timeRange.join("~")),1),a.checkTimes(t,e.timeRange)||(a.formDataTimeTable.time.splice(i,1),a.$Message.error("次日配置时间重叠,请重新配置时间"),a.aaa++)}};n[e.morrow]()}},onSwitchChangeTimeTable:function(t,e,i){var a=this;if(void 0!==e.timeRange){console.log("🚀🚀event, item, index🚀,",t,e,i);var n={0:function(){var t=a.formDataTimeTable.time.map((function(t){if(0===t.morrow)return t.timeRange.join("~")})).filter((function(t){return void 0!==t}));-1!==t.indexOf(e.timeRange.join("~"))&&t.splice(t.indexOf(e.timeRange.join("~")),1),a.checkTimes(t,e.timeRange)||(a.formDataTimeTable.time.splice(i,1),a.$Message.error("当日配置时间重叠,请重新配置时间"),a.aaa++)},1:function(){var t=a.formDataTimeTable.time.map((function(t){if(1===t.morrow)return t.timeRange.join("~")})).filter((function(t){return void 0!==t}));-1!==t.indexOf(e.timeRange.join("~"))&&t.splice(t.indexOf(e.timeRange.join("~")),1),a.checkTimes(t,e.timeRange)||(a.formDataTimeTable.time.splice(i,1),a.$Message.error("次日配置时间重叠,请重新配置时间"),a.aaa++)}};n[e.morrow]()}},save:function(){var t=this,e=v.a.cloneDeep(this.formItem.find((function(t){return"timeTable"===t.type})).data);function i(t){return t.map((function(t){if(void 0!==t.timeRange)return{Begin:t.timeRange[0],End:t.timeRange[1],Morrow:t.morrow}})).filter((function(t){return void 0!==t}))}var a={"周一":function(){return e[0].time=i(t.formDataTimeTable.time)},"周二":function(){return e[1].time=i(t.formDataTimeTable.time)},"周三":function(){return e[2].time=i(t.formDataTimeTable.time)},"周四":function(){return e[3].time=i(t.formDataTimeTable.time)},"周五":function(){return e[4].time=i(t.formDataTimeTable.time)},"周六":function(){return e[5].time=i(t.formDataTimeTable.time)},"周日":function(){return e[6].time=i(t.formDataTimeTable.time)}};a[this.formDataTimeTable.day](),this.formItem.find((function(t){return"timeTable"===t.type})).data=e;var n={one:e[0].time,two:e[1].time,three:e[2].time,four:e[3].time,five:e[4].time,six:e[5].time,seven:e[6].time};this.formData["sign_daytime"]=JSON.stringify(n),this.showDrawer=!1},openClass:function(t,e,i){console.log("🚀🚀openClass,",t,e),this.formDataTimeTable=_(_({},t),{},{id:i.id,index:e,time:t.time.map((function(t){return{morrow:t.Morrow,timeRange:[t.Begin,t.End]}}))}),this.showDrawer=!0},setTime2:function(){this.$emit("setTime2",!0)},setTime1:function(){this.$emit("setTime1",!0)},setMap:function(){this.$emit("setMap",!0)},onQueryChange:function(t){this.peopleKey=t,this.$emit("getPeopleList",t)},modalInit:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"add",i=arguments.length>1?arguments[1]:void 0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(this.isDetails=!1,this.uploadBtLoading=[],"add"==e)this.$refs.form.resetFields(),this.modalTitle=a||"新增",this.formData=i?Object(y["cloneDeep"])(i):{};else if("edit"==e){this.modalTitle="编辑",this.$refs.form.resetFields(),this.formData=Object(y["cloneDeep"])(i);var n=this.formItem.findIndex((function(t){return"timerange"==t.type}));if(-1!=n)try{var r=this.formItem[n].id;this.formData[r]=this.formData[r].split("-")}catch(o){console.log("🚀🚀🚀,",o)}}this.formItem.forEach((function(e){"file"==e.type&&t.uploadBtLoading.push(!1)}))},modalDetailsInit:function(t,e){this.isDetails=!0,this.modalTitle="".concat(t[e]," - 详情"),this.formData=Object(y["cloneDeep"])(t)},uploadFile:function(t,e,i){var a=this;this.uploadBtLoading[i]=!0,this.$forceUpdate();var n=new FormData;return n.append("file",t),this.asc.postApiCommonFileUpload(n).then((function(t){1==t.code?(a.formData[e].push(t.response),a.$Message.success(t.msg)):a.$Message.error(t.msg_detail)})).finally((function(){a.uploadBtLoading[i]=!1,a.$forceUpdate()})),!1},fileDel:function(t,e){var i=this.formData[e].findIndex((function(e){return e.id==t.id}));this.formData[e].splice(i,1)},onClearTimerange:function(t,e){this.formData[e]=[]},onCleardatetimerange:function(t,e){console.log("🚀🚀event🚀,",t),this.formData[e]=[]},onClearTimerange1:function(t,e){this.formData[e]=[]},beforeClose:function(){this.$emit("onClose")},onCancel:function(){this.$emit("onCancel"),this.$emit("onClose")},onSubmit:function(){var t=this;this.$refs.form.validate((function(e){if(e){var i=Object(y["cloneDeep"])(t.formData),a=t.formItem.findIndex((function(t){return"timerange"==t.type}));if(-1!=a){var n=t.formItem[a].id;i[n]=i[n].join("-")}t.$emit("onSubmit",i)}else t.$Message.warning("请检查输入项")}))}}},D=w,T=(i("eb99"),i("2877")),x=Object(T["a"])(D,a,n,!1,null,"705d335c",null);e["a"]=x.exports},"2e08":function(t,e,i){var a=i("9def"),n=i("9744"),r=i("be13");t.exports=function(t,e,i,o){var l=String(r(t)),s=l.length,c=void 0===i?" ":String(i),m=a(e);if(m<=s||""==c)return l;var f=m-s,u=n.call(c,Math.ceil(f/c.length));return u.length>f&&(u=u.slice(0,f)),o?u+l:l+u}},"54d9":function(t,e,i){},9744:function(t,e,i){"use strict";var a=i("4588"),n=i("be13");t.exports=function(t){var e=String(n(this)),i="",r=a(t);if(r<0||r==1/0)throw RangeError("Count can't be negative");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(i+=e);return i}},eb99:function(t,e,i){"use strict";i("54d9")},f576:function(t,e,i){"use strict";var a=i("5ca1"),n=i("2e08"),r=i("a25f"),o=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r);a(a.P+a.F*o,"String",{padStart:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0,!0)}})}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3c5ecaa8"],{"12cb":function(t,e,i){"use strict";i("20d6"),i("7f7f");var n=function(){var t=this,e=t._self._c;return e("div",[e("Drawer",{staticClass:"class-drawer",attrs:{title:"配置值班时间",transfer:"",width:"800"},model:{value:t.showDrawer,callback:function(e){t.showDrawer=e},expression:"showDrawer"}},[e("div",{staticStyle:{"margin-top":"20px"}},[e("Card",{attrs:{"dis-hover":""}},[e("Row",{staticStyle:{"margin-bottom":"10px",padding:"12px 0","background-color":"#f6f6f6"}},[e("Col",{attrs:{span:"14"}},[t._v(" 值班时间范围限制")])],1),e("Row",{key:t.aaa,staticStyle:{"margin-bottom":"10px"}},t._l(t.formDataTimeTable.time,(function(i,n){return e("Col",{key:n,staticStyle:{"margin-bottom":"10px",display:"flex","align-items":"center"},attrs:{span:"24"}},[e("TimePicker",{staticStyle:{width:"240px"},attrs:{clearable:!1,format:"HH:mm",placeholder:"未设置",placement:"bottom-end",type:"timerange"},on:{"on-open-change":function(e){return t.onOpenChangeTimeTable(e,i,n)}},model:{value:i.timeRange,callback:function(e){t.$set(i,"timeRange",e)},expression:"item.timeRange"}}),e("i-switch",{staticClass:"ivu-ml-8",attrs:{"false-value":0,"true-value":1,size:"large"},on:{"on-change":function(e){return t.onSwitchChangeTimeTable(e,i,n)}},scopedSlots:t._u([{key:"open",fn:function(){return[e("span",[t._v("次日")])]},proxy:!0},{key:"close",fn:function(){return[e("span",[t._v("当日")])]},proxy:!0}],null,!0),model:{value:i.morrow,callback:function(e){t.$set(i,"morrow",e)},expression:"item.morrow"}}),e("div",{staticStyle:{"margin-left":"auto"}},[e("Poptip",{attrs:{confirm:"",title:"是否继续该操作?"},on:{"on-ok":function(){t.formDataTimeTable.time.splice(n,1)},"on-cancel":function(t){}}},[e("Button",{attrs:{icon:"ios-close",shape:"circle"}})],1)],1)],1)})),1),e("Row",{staticStyle:{"margin-bottom":"10px",display:"flex","justify-content":"center"}},[e("Button",{staticStyle:{width:"200px"},attrs:{icon:"ios-add",type:"dashed"},on:{click:function(e){return t.formDataTimeTable.time.push({begin:"",end:"",morrow:0})}}},[t._v("添加时间\n ")])],1)],1)],1),e("div",{staticClass:"drawer-footer"},[e("Button",{staticStyle:{"margin-right":"8px"},on:{click:function(e){t.showDrawer=!1}}},[t._v("取消")]),e("Button",{attrs:{type:"primary"},on:{click:t.save}},[t._v("保存")])],1)]),e("Modal",{attrs:{"before-close":t.beforeClose,"mask-closable":t.maskClosable,title:t.modalTitle,transfer:!1,width:t.width},scopedSlots:t._u([{key:"footer",fn:function(){return[t.isDetails?e("div",[e("Button",{on:{click:t.onCancel}},[t._v("关闭")])],1):e("div",[e("Button",{on:{click:t.onCancel}},[t._v("取消")]),e("Button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("提交")])],1)]},proxy:!0}]),model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[[t.loading?e("Spin",{attrs:{fix:"",size:"large"}}):t._e(),e("Form",{ref:"form",attrs:{"label-width":t.formLabelWidth,model:t.formData,rules:t.formRule,"label-colon":""}},[t.isDetails?t._e():e("Row",[t._l(t.formItem.filter((function(t){return"timeTable"!=t.type&&"file"!=t.type&&(!t.hasOwnProperty("show")||t.show)})),(function(i){return e("Col",t._b({key:i.id},"Col",t.grid,!1),[e("FormItem",{attrs:{label:i.name,prop:i.id}},["input"==i.type?e("Input",{attrs:{disabled:i.disabled,placeholder:"请输入"+i.name,clearable:""},model:{value:t.formData[i.id],callback:function(e){t.$set(t.formData,i.id,e)},expression:"formData[item.id]"}}):t._e(),"textarea"==i.type?e("Input",{attrs:{disabled:i.disabled,placeholder:"请输入"+i.name,rows:i.rows,clearable:"",type:"textarea"},model:{value:t.formData[i.id],callback:function(e){t.$set(t.formData,i.id,e)},expression:"formData[item.id]"}}):"select"==i.type?e("Select",{attrs:{disabled:i.disabled,placeholder:"请选择"+i.name,clearable:"",filterable:""},on:{"on-query-change":t.onQueryChange},model:{value:t.formData[i.id],callback:function(e){t.$set(t.formData,i.id,e)},expression:"formData[item.id]"}},t._l(i.optList,(function(i){return e("Option",{key:i.value,attrs:{value:i.value}},[t._v(t._s(i.label)+"\n ")])})),1):"multipleselect"==i.type?e("Select",{attrs:{disabled:i.disabled,placeholder:"请选择"+i.name,clearable:"",filterable:"",multiple:""},model:{value:t.formData[i.id],callback:function(e){t.$set(t.formData,i.id,e)},expression:"formData[item.id]"}},t._l(i.optList,(function(i){return e("Option",{key:i.value,attrs:{value:i.value}},[t._v(t._s(i.label)+"\n ")])})),1):"switch"==i.type?e("i-switch",{attrs:{"false-value":0,"true-value":1},model:{value:t.formData[i["id"]],callback:function(e){t.$set(t.formData,i["id"],e)},expression:"formData[item['id']]"}}):"timerange"==i.type?e("TimePicker",{staticStyle:{width:"100%"},attrs:{editable:!0,placeholder:"请选择"+i.name,format:"HH:mm",placement:"bottom-end",type:"timerange"},on:{"on-clear":function(e){return t.onClearTimerange(e,i["id"])}},model:{value:t.formData[i["id"]],callback:function(e){t.$set(t.formData,i["id"],e)},expression:"formData[item['id']]"}}):"datetime"==i.type?e("DatePicker",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"+i.name,format:"yyyy-MM-dd HH:mm",placement:"bottom-end",type:"datetime"},on:{"on-clear":function(e){return t.onClearTimerange1(e,i["id"])}},model:{value:t.formData[i["id"]],callback:function(e){t.$set(t.formData,i["id"],e)},expression:"formData[item['id']]"}}):"datetimerange"==i.type?e("DatePicker",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"+i.name,format:"yyyy-MM-dd HH:mm",placement:"bottom-end",type:"datetimerange"},on:{"on-clear":function(e){return t.onCleardatetimerange(e,i["id"])}},model:{value:t.formData[i["id"]],callback:function(e){t.$set(t.formData,i["id"],e)},expression:"formData[item['id']]"}}):"area"==i.type?e("div",[e("Button",{attrs:{ghost:"",type:"primary"},on:{click:t.setMap}},[t._v(t._s(["配置坐标","更改坐标"][t.regionDot]))]),t._l(t.formData["attandence_area"],(function(i,n){return t.formData["attandence_area"].length>0?e("div",{key:n},[e("div",{staticStyle:{width:"100%","min-height":"20px",display:"flex",padding:"5px",margin:"5px 0"}},[e("div",{staticStyle:{width:"85%",height:"100%","background-color":"#ffffff"}},[e("div",{staticStyle:{width:"100%",height:"50%",display:"flex","align-items":"center","line-height":"18px"}},[e("Icon",{staticStyle:{"margin-right":"8px"},attrs:{type:"ios-pin-outline"}}),t._v("\n "+t._s(i.address)+"(范围:"+t._s(i.offset)+"米)\n ")],1)]),e("div",{staticStyle:{cursor:"pointer",width:"15%",height:"100%","background-color":"#ffffff",display:"flex","align-items":"center","justify-content":"center"}},[e("Poptip",{attrs:{confirm:"",title:"是否确认删除?",transfer:""},on:{"on-ok":function(){return t.formData["attandence_area"].splice(n,1)}}},[e("Icon",{attrs:{color:"#A3A3A3",size:"20",type:"md-close"}})],1)],1)]),e("divider")],1):t._e()}))],2):"areaTime1"==i.type?e("div",[e("Button",{attrs:{ghost:"",type:"primary"},on:{click:t.setTime1}},[t._v(t._s(["配置时间","更改时间"][t.regionDot]))]),t._l(t.formData["sign_daytime"],(function(i,n){return t.formData["sign_daytime"].length>0?e("div",{key:n},[e("div",{staticStyle:{width:"100%","min-height":"20px",display:"flex",padding:"5px",margin:"5px 0"}},[e("div",{staticStyle:{width:"85%",height:"100%","background-color":"#ffffff"}},[e("div",{staticStyle:{width:"100%",height:"50%",display:"flex","align-items":"center","line-height":"18px"}},[e("Icon",{staticStyle:{"margin-right":"8px"},attrs:{type:"ios-alarm-outline"}}),t._v("\n "+t._s(i.begin+"~"+i.end)+"\n "),1==i.morrow?e("Tag",{staticClass:"ivu-ml-8",attrs:{color:"primary"}},[t._v("次日")]):t._e()],1)]),e("div",{staticStyle:{cursor:"pointer",width:"15%",height:"100%","background-color":"#ffffff",display:"flex","align-items":"center","justify-content":"center"}},[e("Poptip",{attrs:{confirm:"",title:"是否确认删除?",transfer:""},on:{"on-ok":function(){return t.formData["sign_daytime"].splice(n,1)}}},[e("Icon",{attrs:{color:"#A3A3A3",size:"20",type:"md-close"}})],1)],1)]),e("divider")],1):t._e()}))],2):"areaTime2"==i.type?e("div",[e("Button",{attrs:{ghost:"",type:"primary"},on:{click:t.setTime2}},[t._v(t._s(["配置时间","更改时间"][t.regionDot]))]),t._l(t.formData["sign_night_time"],(function(i,n){return t.formData["sign_night_time"].length>0?e("div",{key:n},[e("div",{staticStyle:{width:"100%","min-height":"20px",display:"flex",padding:"5px",margin:"5px 0"}},[e("div",{staticStyle:{width:"85%",height:"100%","background-color":"#ffffff"}},[e("div",{staticStyle:{width:"100%",height:"50%",display:"flex","align-items":"center","line-height":"18px"}},[e("Icon",{staticStyle:{"margin-right":"8px"},attrs:{type:"ios-alarm-outline"}}),t._v("\n "+t._s(i.begin+"~"+i.end)+"\n "),1==i.morrow?e("Tag",{staticClass:"ivu-ml-8",attrs:{color:"primary"}},[t._v("次日")]):t._e()],1)]),e("div",{staticStyle:{cursor:"pointer",width:"15%",height:"100%","background-color":"#ffffff",display:"flex","align-items":"center","justify-content":"center"}},[e("Poptip",{attrs:{confirm:"",title:"是否确认删除?",transfer:""},on:{"on-ok":function(){return t.formData["sign_night_time"].splice(n,1)}}},[e("Icon",{attrs:{color:"#A3A3A3",size:"20",type:"md-close"}})],1)],1)]),e("divider")],1):t._e()}))],2):t._e()],1)],1)})),t._l(t.formItem.filter((function(t){return"file"==t.type&&(!t.hasOwnProperty("show")||t.show)})),(function(i,n){return e("Col",{key:i.id,attrs:{span:"12"}},[e("FormItem",{attrs:{label:i.name,prop:i.name}},[e("Upload",{attrs:{"before-upload":function(e){return t.uploadFile(e,i.id,n)},action:"#",multiple:""}},[e("Button",{attrs:{loading:t.uploadBtLoading[n],icon:"ios-cloud-upload-outline"}},[t._v("选择文件\n ")])],1),t._l(t.formData[i.id],(function(n){return e("p",{key:n.path,staticClass:"fileRow"},[e("a",{attrs:{href:n.path,target:"_blank"}},[t._v(t._s(n.file_name))]),e("Icon",{staticClass:"delIcon",attrs:{type:"md-close"},on:{click:function(e){return t.fileDel(n,i.id)}}})],1)}))],2)],1)}))],2),!t.isDetails&&t.formItem.filter((function(t){return"timeTable"===t.type})).length?e("Row",t._l(t.formItem.filter((function(t){return"timeTable"===t.type})),(function(i,n){return e("FormItem",{key:i.id,attrs:{label:"值班时间区间"}},[e("Table",{key:t.aaa,attrs:{columns:i.columns,data:i.data,border:"",size:"small"},scopedSlots:t._u([{key:"time",fn:function(i){var n=i.row;i.index;return t._l(n.time,(function(i,n){return e("Tag",{key:n,staticStyle:{"margin-right":"5px"},attrs:{color:"blue"}},[t._v(t._s(i.Begin+"~"+i.End+[" 当日"," 次日"][i.Morrow])+"\n ")])}))}},{key:"action",fn:function(n){var a=n.row,r=n.index;return[e("a",{on:{click:function(e){return t.openClass(a,r,i)}}},[t._v("配置")])]}}],null,!0)})],1)})),1):t._e(),t.isDetails?e("Row",[t._l(t.formItem.filter((function(t){return"timeTable"!=t.type&&"file"!=t.type&&(!t.hasOwnProperty("show")||t.show)})),(function(i){return e("Col",t._b({key:i.id},"Col",t.grid,!1),[e("FormItem",{attrs:{label:i.name,prop:i.name}},["input"==i.type?e("span",[t._v(t._s(t.formData[i.id]))]):t._e(),"textarea"==i.type?e("span",[t._v(t._s(t.formData[i.id]))]):t._e(),"datetime"==i.type?e("span",[t._v(t._s(t.formData[i.id]))]):t._e(),"timerange"==i.type?e("span",[t._v(t._s(t.formData[i.id].join("-")))]):t._e(),"datetimerange"==i.type?e("span",[t._v(t._s(t.formData[i.id].join("~")))]):t._e(),"areaTime1"==i.type?e("span",t._l(t.formData["sign_daytime"],(function(i,n){return t.formData["sign_daytime"].length>0?e("div",{key:n},[e("div",{staticStyle:{width:"100%",height:"50%",display:"flex","align-items":"center","line-height":"18px"}},[e("Icon",{staticStyle:{"margin-right":"8px"},attrs:{type:"ios-alarm-outline"}}),t._v(t._s(i.begin+"~"+i.end)+"\n "),1==i.morrow?e("Tag",{staticClass:"ivu-ml-8",attrs:{color:"primary"}},[t._v("次日")]):t._e()],1)]):t._e()})),0):t._e(),"areaTime2"==i.type?e("span",t._l(t.formData["sign_night_time"],(function(i,n){return t.formData["sign_night_time"].length>0?e("div",{key:n},[e("div",{staticStyle:{width:"100%",height:"50%",display:"flex","align-items":"center","line-height":"18px"}},[e("Icon",{staticStyle:{"margin-right":"8px"},attrs:{type:"ios-alarm-outline"}}),t._v(t._s(i.begin+"~"+i.end)+"\n "),1==i.morrow?e("Tag",{staticClass:"ivu-ml-8",attrs:{color:"primary"}},[t._v("次日")]):t._e()],1)]):t._e()})),0):t._e(),"area"==i.type?e("span",t._l(t.formData["attandence_area"],(function(i,n){return t.formData["attandence_area"].length>0?e("div",{key:n},[e("div",{staticStyle:{width:"85%",height:"100%","background-color":"#ffffff"}},[e("div",{staticStyle:{width:"100%",height:"50%",display:"flex","align-items":"center","line-height":"18px"}},[e("Icon",{staticStyle:{"margin-right":"8px"},attrs:{type:"ios-pin-outline"}}),t._v(t._s(i.address)+"(范围:"+t._s(i.offset)+"米)\n ")],1)])]):t._e()})),0):t._e(),"select"==i.type?e("span",[t._v("\n "+t._s(i.optList[i.optList.findIndex((function(e){return e.value==t.formData[i.id]}))].label)+"\n ")]):t._e(),"switch"==i.type?e("span",[t._v(t._s("".concat(1==t.formData[i.id]?"是":"否")))]):t._e()])],1)})),t._l(t.formItem.filter((function(t){return"file"==t.type&&(!t.hasOwnProperty("show")||t.show)})),(function(i){return e("Col",{key:i.id,attrs:{span:"12"}},[e("FormItem",{attrs:{label:i.name,prop:i.name}},t._l(t.formData[i.id],(function(n){return e("p",{key:n.path,staticClass:"fileRow"},[e("a",{attrs:{href:n.path,target:"_blank"}},[t._v(t._s(n.file_name))]),e("Icon",{staticClass:"delIcon",attrs:{type:"md-close"},on:{click:function(e){return t.fileDel(n,i.id)}}})],1)})),0)],1)}))],2):t._e(),t.isDetails&&t.formItem.filter((function(t){return"timeTable"===t.type})).length?e("Row",t._l(t.formItem.filter((function(t){return"timeTable"===t.type})),(function(i,n){return e("FormItem",{key:i.id,attrs:{label:"值班时间区间"}},[e("Table",{key:i.id,attrs:{columns:i.columns,data:i.data,border:"",size:"small"},scopedSlots:t._u([{key:"time",fn:function(i){var n=i.row;i.index;return t._l(n.time,(function(i,n){return e("Tag",{key:n,staticStyle:{"margin-right":"5px"},attrs:{color:"blue"}},[t._v(t._s(i.Begin+"~"+i.End+[" 当日"," 次日"][i.Morrow])+"\n ")])}))}}],null,!0)})],1)})),1):t._e()],1)]],2)],1)},a=[],r=(i("8e6e"),i("456d"),i("ac6a"),i("bd86")),o=(i("7514"),i("f576"),i("28a5"),i("f410")),l=i.n(o);function s(t){if(l()(t))return t}var c=i("f921"),f=i.n(c),m=i("d8d6"),u=i.n(m);function d(t,e){var i=null==t?null:"undefined"!=typeof f.a&&t[u.a]||t["@@iterator"];if(null!=i){var n,a,r,o,l=[],s=!0,c=!1;try{if(r=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;s=!1}else for(;!(s=(n=r.call(i)).done)&&(l.push(n.value),l.length!==e);s=!0);}catch(t){c=!0,a=t}finally{try{if(!s&&null!=i["return"]&&(o=i["return"](),Object(o)!==o))return}finally{if(c)throw a}}return l}}var p=i("e630");function h(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(t,e){return s(t)||d(t,e)||Object(p["a"])(t,e)||h()}i("c5f6");var y=i("2ef0"),v=i.n(y);function b(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function _(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?b(Object(i),!0).forEach((function(e){Object(r["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):b(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var w={props:{regionDot:{type:Number,default:0},loading:{type:Boolean,default:!1},formItem:{type:Array,require:!0},formRule:{type:Object,default:function(){}},formLabelWidth:{type:Number,default:80},value:{type:Boolean,require:!0},width:{default:"520"},maskClosable:{type:Boolean,default:!1},__PROP_NAMES_MAP:{maskClosable:"mask-closable"}},watch:{value:function(t){this.show=t}},data:function(){return{show:this.value,modalTitle:"编辑",formData:{},grid:{xl:12,lg:12,md:24,sm:24,xs:24},uploadBtLoading:[],isDetails:!1,peopleKey:"",aaa:123123,showDrawer:!1,formDataTimeTable:{time:[{begin:"12:00",end:"15:00"},{begin:"12:00",end:"15:00"}]}}},computed:{},created:function(){},mounted:function(){},methods:{checkTimes:function(t,e){function i(t){var e=t.split(":").map(Number),i=g(e,2),n=i[0],a=i[1];return 60*n+a}var n=t.map((function(t){var e=t.split("~").map(i),n=g(e,2),a=n[0],r=n[1];return{start:a,end:r}})),a=e.map(i),r=a.every((function(t){return n.every((function(e){var i=e.end;return t>i}))})),o=a.every((function(t){return n.every((function(e){var i=e.start;return t<i}))})),l=a.every((function(t){return n.every((function(e){var i=e.start,n=e.end;return t<i||t>n}))}));return r||o||l},onOpenChangeTimeTable:function(t,e,i){var n=this;if(console.log("🚀🚀event, item, index🚀,",t,e,i),!t){var a={0:function(){var t=n.formDataTimeTable.time.map((function(t){if(0===t.morrow)return t.timeRange.join("~")})).filter((function(t){return void 0!==t}));-1!==t.indexOf(e.timeRange.join("~"))&&t.splice(t.indexOf(e.timeRange.join("~")),1),n.checkTimes(t,e.timeRange)||(n.formDataTimeTable.time.splice(i,1),n.$Message.error("当日配置时间重叠,请重新配置时间"),n.aaa++)},1:function(){var t=n.formDataTimeTable.time.map((function(t){if(1===t.morrow)return t.timeRange.join("~")})).filter((function(t){return void 0!==t}));-1!==t.indexOf(e.timeRange.join("~"))&&t.splice(t.indexOf(e.timeRange.join("~")),1),n.checkTimes(t,e.timeRange)||(n.formDataTimeTable.time.splice(i,1),n.$Message.error("次日配置时间重叠,请重新配置时间"),n.aaa++)}};a[e.morrow]()}},onSwitchChangeTimeTable:function(t,e,i){var n=this;if(void 0!==e.timeRange){console.log("🚀🚀event, item, index🚀,",t,e,i);var a={0:function(){var t=n.formDataTimeTable.time.map((function(t){if(0===t.morrow)return t.timeRange.join("~")})).filter((function(t){return void 0!==t}));-1!==t.indexOf(e.timeRange.join("~"))&&t.splice(t.indexOf(e.timeRange.join("~")),1),n.checkTimes(t,e.timeRange)||(n.formDataTimeTable.time.splice(i,1),n.$Message.error("当日配置时间重叠,请重新配置时间"),n.aaa++)},1:function(){var t=n.formDataTimeTable.time.map((function(t){if(1===t.morrow)return t.timeRange.join("~")})).filter((function(t){return void 0!==t}));-1!==t.indexOf(e.timeRange.join("~"))&&t.splice(t.indexOf(e.timeRange.join("~")),1),n.checkTimes(t,e.timeRange)||(n.formDataTimeTable.time.splice(i,1),n.$Message.error("次日配置时间重叠,请重新配置时间"),n.aaa++)}};a[e.morrow]()}},save:function(){var t=this,e=v.a.cloneDeep(this.formItem.find((function(t){return"timeTable"===t.type})).data);function i(t){return t.map((function(t){if(void 0!==t.timeRange)return{Begin:t.timeRange[0],End:t.timeRange[1],Morrow:t.morrow}})).filter((function(t){return void 0!==t}))}var n={"周一":function(){return e[0].time=i(t.formDataTimeTable.time)},"周二":function(){return e[1].time=i(t.formDataTimeTable.time)},"周三":function(){return e[2].time=i(t.formDataTimeTable.time)},"周四":function(){return e[3].time=i(t.formDataTimeTable.time)},"周五":function(){return e[4].time=i(t.formDataTimeTable.time)},"周六":function(){return e[5].time=i(t.formDataTimeTable.time)},"周日":function(){return e[6].time=i(t.formDataTimeTable.time)}};n[this.formDataTimeTable.day](),this.formItem.find((function(t){return"timeTable"===t.type})).data=e;var a={one:e[0].time,two:e[1].time,three:e[2].time,four:e[3].time,five:e[4].time,six:e[5].time,seven:e[6].time};this.formData["sign_daytime"]=JSON.stringify(a),this.showDrawer=!1},openClass:function(t,e,i){console.log("🚀🚀openClass,",t,e),this.formDataTimeTable=_(_({},t),{},{id:i.id,index:e,time:t.time.map((function(t){return{morrow:t.Morrow,timeRange:[t.Begin,t.End]}}))}),this.showDrawer=!0},setTime2:function(){this.$emit("setTime2",!0)},setTime1:function(){this.$emit("setTime1",!0)},setMap:function(){this.$emit("setMap",!0)},onQueryChange:function(t){this.peopleKey=t,this.$emit("getPeopleList",t)},modalInit:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"add",i=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(this.isDetails=!1,this.uploadBtLoading=[],"add"==e)this.$refs.form.resetFields(),this.modalTitle=n||"新增",this.formData=i?Object(y["cloneDeep"])(i):{};else if("edit"==e){this.modalTitle="编辑",this.$refs.form.resetFields(),this.formData=Object(y["cloneDeep"])(i);var a=this.formItem.findIndex((function(t){return"timerange"==t.type}));if(-1!=a)try{var r=this.formItem[a].id;this.formData[r]=this.formData[r].split("-")}catch(o){console.log("🚀🚀🚀,",o)}}this.formItem.forEach((function(e){"file"==e.type&&t.uploadBtLoading.push(!1)}))},modalDetailsInit:function(t,e){this.isDetails=!0,this.modalTitle="".concat(t[e]," - 详情"),this.formData=Object(y["cloneDeep"])(t)},uploadFile:function(t,e,i){var n=this;this.uploadBtLoading[i]=!0,this.$forceUpdate();var a=new FormData;return a.append("file",t),this.asc.postApiCommonFileUpload(a).then((function(t){1==t.code?(n.formData[e].push(t.response),n.$Message.success(t.msg)):n.$Message.error(t.msg_detail)})).finally((function(){n.uploadBtLoading[i]=!1,n.$forceUpdate()})),!1},fileDel:function(t,e){var i=this.formData[e].findIndex((function(e){return e.id==t.id}));this.formData[e].splice(i,1)},onClearTimerange:function(t,e){this.formData[e]=[]},onCleardatetimerange:function(t,e){console.log("🚀🚀event🚀,",t),this.formData[e]=[]},onClearTimerange1:function(t,e){this.formData[e]=[]},beforeClose:function(){this.$emit("onClose")},onCancel:function(){this.$emit("onCancel"),this.$emit("onClose")},onSubmit:function(){var t=this;this.$refs.form.validate((function(e){if(e){var i=Object(y["cloneDeep"])(t.formData),n=t.formItem.findIndex((function(t){return"timerange"==t.type}));if(-1!=n){var a=t.formItem[n].id;i[a]=i[a].join("-")}t.$emit("onSubmit",i)}else t.$Message.warning("请检查输入项")}))}}},D=w,T=(i("eb99"),i("2877")),x=Object(T["a"])(D,n,a,!1,null,"705d335c",null);e["a"]=x.exports},"2e08":function(t,e,i){var n=i("9def"),a=i("9744"),r=i("be13");t.exports=function(t,e,i,o){var l=String(r(t)),s=l.length,c=void 0===i?" ":String(i),f=n(e);if(f<=s||""==c)return l;var m=f-s,u=a.call(c,Math.ceil(m/c.length));return u.length>m&&(u=u.slice(0,m)),o?u+l:l+u}},"54d9":function(t,e,i){},"5dbc":function(t,e,i){var n=i("d3f4"),a=i("8b97").set;t.exports=function(t,e,i){var r,o=e.constructor;return o!==i&&"function"==typeof o&&(r=o.prototype)!==i.prototype&&n(r)&&a&&a(t,r),t}},"8b97":function(t,e,i){var n=i("d3f4"),a=i("cb7c"),r=function(t,e){if(a(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{n=i("9b43")(Function.call,i("11e9").f(Object.prototype,"__proto__").set,2),n(t,[]),e=!(t instanceof Array)}catch(a){e=!0}return function(t,i){return r(t,i),e?t.__proto__=i:n(t,i),t}}({},!1):void 0),check:r}},9744:function(t,e,i){"use strict";var n=i("4588"),a=i("be13");t.exports=function(t){var e=String(a(this)),i="",r=n(t);if(r<0||r==1/0)throw RangeError("Count can't be negative");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(i+=e);return i}},aa77:function(t,e,i){var n=i("5ca1"),a=i("be13"),r=i("79e5"),o=i("fdef"),l="["+o+"]",s="​…",c=RegExp("^"+l+l+"*"),f=RegExp(l+l+"*$"),m=function(t,e,i){var a={},l=r((function(){return!!o[t]()||s[t]()!=s})),c=a[t]=l?e(u):o[t];i&&(a[i]=c),n(n.P+n.F*l,"String",a)},u=m.trim=function(t,e){return t=String(a(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(f,"")),t};t.exports=m},c5f6:function(t,e,i){"use strict";var n=i("7726"),a=i("69a8"),r=i("2d95"),o=i("5dbc"),l=i("6a99"),s=i("79e5"),c=i("9093").f,f=i("11e9").f,m=i("86cc").f,u=i("aa77").trim,d="Number",p=n[d],h=p,g=p.prototype,y=r(i("2aeb")(g))==d,v="trim"in String.prototype,b=function(t){var e=l(t,!1);if("string"==typeof e&&e.length>2){e=v?e.trim():u(e,3);var i,n,a,r=e.charCodeAt(0);if(43===r||45===r){if(i=e.charCodeAt(2),88===i||120===i)return NaN}else if(48===r){switch(e.charCodeAt(1)){case 66:case 98:n=2,a=49;break;case 79:case 111:n=8,a=55;break;default:return+e}for(var o,s=e.slice(2),c=0,f=s.length;c<f;c++)if(o=s.charCodeAt(c),o<48||o>a)return NaN;return parseInt(s,n)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,i=this;return i instanceof p&&(y?s((function(){g.valueOf.call(i)})):r(i)!=d)?o(new h(b(e)),i,p):b(e)};for(var _,w=i("9e1e")?c(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),D=0;w.length>D;D++)a(h,_=w[D])&&!a(p,_)&&m(p,_,f(h,_));p.prototype=g,g.constructor=p,i("2aba")(n,d,p)}},eb99:function(t,e,i){"use strict";i("54d9")},f576:function(t,e,i){"use strict";var n=i("5ca1"),a=i("2e08"),r=i("a25f"),o=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r);n(n.P+n.F*o,"String",{padStart:function(t){return a(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},fdef:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-371390fc"],{"25b06":function(e,t,a){"use strict";a.r(t);a("28a5"),a("ac6a"),a("456d"),a("7f7f");var n=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"demo-split"},[t("Split",{scopedSlots:e._u([{key:"left",fn:function(){return[t("div",{staticClass:"demo-split-pane-L"},[e.treePanelLoading?t("Spin",{attrs:{size:"large",fix:""}}):e._e(),t("Tree",{attrs:{data:e.typeTree},on:{"on-select-change":e.treeNodeChange},model:{value:e.currentTreeNode,callback:function(t){e.currentTreeNode=t},expression:"currentTreeNode"}})],1)]},proxy:!0},{key:"right",fn:function(){return[t("div",{staticClass:"demo-split-pane-R"},[t("Card",{ref:"card",attrs:{"dis-hover":""}},[t("Input",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入关键词",clearable:""},model:{value:e.params.name,callback:function(t){e.$set(e.params,"name",t)},expression:"params.name"}}),t("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:e.doSearch}},[e._v("查找")]),t("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary",ghost:"",disabled:0==Object.keys(e.currentTreeNode).length},on:{click:e.add}},[t("Icon",{attrs:{type:"md-add"}}),e._v("新增分类\n ")],1),t("Table",{ref:"table",staticClass:"ivu-mt",attrs:{columns:e.columns,data:e.tableData,loading:e.tableLoading,size:"small"},scopedSlots:e._u([{key:"is_enable",fn:function(a){var n=a.row,r=a.index;return[t("i-switch",{attrs:{size:"large","true-value":1,"false-value":0},on:{"on-change":function(t){return e.switchChange(t,n,r)}},model:{value:n.is_enable,callback:function(t){e.$set(n,"is_enable",t)},expression:"row.is_enable"}},[t("span",{attrs:{slot:"open",type:"md-checkmark"},slot:"open"},[e._v("启用")]),t("span",{attrs:{slot:"close",type:"md-close"},slot:"close"},[e._v("停用")])])]}},{key:"action",fn:function(a){var n=a.row;return[t("div",{on:{click:function(e){e.stopPropagation(),e.preventDefault()}}},[t("a",{attrs:{type:"text"},on:{click:function(t){return e.handleEdit(n)}}},[e._v("编辑")]),t("Divider",{attrs:{type:"vertical"}}),t("a",{attrs:{type:"text"},on:{click:function(t){return e.handleDelete(n.id)}}},[e._v("删除")])],1)]}}])}),t("div",{staticClass:"ivu-mt ivu-text-center"},[t("Page",{attrs:{total:e.dataCount,current:e.params.page_index,"show-total":"","show-sizer":"","show-elevator":"","page-size":e.params.page_size,"page-size-opts":[10,30,50,100]},on:{"update:current":function(t){return e.$set(e.params,"page_index",t)},"on-change":e.handleChangePage,"on-page-size-change":e.handleChangePageSize}})],1)],1)],1)]},proxy:!0}]),model:{value:e.split,callback:function(t){e.split=t},expression:"split"}})],1),t("CEditModal",{ref:"ceditmodal",attrs:{formRule:e.formRule,formItem:e.formItem,loading:e.editModalLoading,formLabelWidth:100,width:800},on:{onClose:function(t){e.editModalshow=!1},onSubmit:e.modalSubmit},model:{value:e.editModalshow,callback:function(t){e.editModalshow=t},expression:"editModalshow"}})],1)},r=[],i=(a("8e6e"),a("20d6"),a("bd86")),o=(a("96cf"),a("3b8d")),s=a("967e"),c=a.n(s),l=a("b6bd");function u(e){return Object(l["a"])({url:"/api/DutyClassify/GetClassifyTree",method:"get",params:e})}function d(e){return Object(l["a"])({url:"/api/DutyClassify/QueryDutyClassify",method:"get",params:e})}function f(e){return Object(l["a"])({url:"/api/DutyClassify/ModifyDutyStatus",method:"get",params:e})}function p(e){return Object(l["a"])({url:"/api/DutyClassify/DeleteDuty",method:"get",params:e})}function h(e){return Object(l["a"])({url:"/api/DutyClassify/AddDutyType",method:"post",data:e})}function g(e){return Object(l["a"])({url:"/api/Common/GetDutyConfigSelect",method:"get",params:e})}function m(e){return Object(l["a"])({url:"/api/DutyClassify/UpdateDutyType",method:"post",data:e})}var b=a("d02c"),y=a("12cb");function v(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function _(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?v(Object(a),!0).forEach((function(t){Object(i["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):v(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var x={components:{CEditModal:y["a"]},data:function(){return{split:"250px",curNode:[],treePanelLoading:!1,typeTree:[],currentTreeNode:{},tableLoading:!1,tableData:[],dataCount:0,columns:[{type:"index",title:"序号",align:"center",width:60},{title:"名称",key:"name"},{title:"启用",slot:"is_enable"},{title:"操作",slot:"action",align:"center",fixed:"right",width:150}],params:{page_index:1,page_size:10,parent_id:"1",name:""},editModalshow:!1,editModalLoading:!1,isEdit:!1,formItem:[{id:"name",name:"分类名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"config_id",name:"配置类型",type:"multipleselect",disabled:!1,require:!1,optList:[]}],formRule:{name:[{required:!0,message:"该项不能为空",trigger:"blur"}],config_id:[{type:"array",required:!0,message:"该项不能为空",trigger:"change"}]},defaultFormData:{id:"",name:"",parent_id:"",config_id:[]},configList:[]}},mounted:function(){this.getTreeData(),this.getData(),this.GetDutyConfigSelect()},methods:{getTreeData:function(){var e=Object(o["a"])(c.a.mark((function e(){var t=this;return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.treePanelLoading=!0,this.currentTreeNode={},u().then((function(e){t.typeTree=t.treeFormat(e),t.treePanelLoading=!1}));case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),treeNodeChange:function(e,t){console.log("🚀🚀🚀,",e,t),t.expand=!0,t.selected?(this.currentTreeNode=t,this.params.parent_id=t.id):(this.currentTreeNode={},this.params.parent_id="1"),this.getData()},treeFormat:function(e){var t=this;return e.map((function(e){return e.children&&0!=e.children.length&&(e.children=t.treeFormat(e.children)),_(_({},e),{},{title:e.name,expand:"1"==e.id,selected:!1})}))},GetDutyConfigSelect:function(){var e=this;g().then((function(t){var a=e.formItem.findIndex((function(e){return"config_id"==e.id}));e.formItem[a].optList=t.map((function(e){return _(_({},e),{},{label:e.name,value:e.id})}))}))},getData:function(){var e=this;this.tableLoading=!0,d(this.params).then((function(t){e.tableData=t.data,e.dataCount=t.data_count,e.tableLoading=!1}))},switchChange:function(e,t,a){var n=this;this.tableData[a].is_enable=e,f({id:t.id,is_enable:e}).then((function(e){n.$Message.success(e)})).catch((function(){n.tableData[a].is_enable=0==e?1:0,n.$Message.error(res.msg_detail)}))},handleChangePage:function(e){this.params.page_index=e,this.getData()},handleChangePageSize:function(e){this.params.page_size=e,1==this.params.page_index&&(this.params.page_index=e,this.getData())},doSearch:function(){this.params.page_size=1,this.getData()},handleEdit:function(e){this.editModalshow=!0,this.isEdit=!0,this.$refs.ceditmodal.modalInit("edit",_(_({},e),{},{config_id:e.config_id.split(";")}),"编辑分类")},handleDelete:function(e){var t=this;this.$Modal.confirm({title:"确定要删除吗?",loading:!0,onOk:function(){var a={id:e};p(a).then((function(){t.$Modal.remove(),t.$Message.success("删除成功"),t.getData(),t.getTreeData()}))}})},add:function(){this.editModalshow=!0,this.isEdit=!1,this.$refs.ceditmodal.modalInit("add",this.defaultFormData,"新增分类")},modalSubmit:function(e){var t=this;function a(e){return console.log("🚀valval🚀🚀,",e),b["b"]({parent_id:e.parent_id}).then((function(t){return console.log("🚀valvaxxxxxl🚀🚀,",e),h(_(_({},e),{},{id:t}))}))}console.log("modal提交",e);var n=0!=Object.keys(this.currentTreeNode).length;e.parent_id=n?this.currentTreeNode.id:"1",e.config_id=e.config_id.join(";"),console.log(e),this.$Modal.confirm({title:"提示",content:"是否确定提交?",loading:!0,onOk:function(){var n=Object(o["a"])(c.a.mark((function n(){var r;return c.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!t.isEdit){n.next=6;break}return n.next=3,m(e);case 3:n.t0=n.sent,n.next=9;break;case 6:return n.next=8,a(e);case 8:n.t0=n.sent;case 9:r=n.t0,t.$Message.success(r),t.editModalshow=!1,t.getData(),t.getTreeData(),t.$Modal.remove();case 15:case"end":return n.stop()}}),n)})));function r(){return n.apply(this,arguments)}return r}()})}}},w=x,D=(a("cd7c"),a("2877")),C=Object(D["a"])(w,n,r,!1,null,"a7e93df6",null);t["default"]=C.exports},"5dbc":function(e,t,a){var n=a("d3f4"),r=a("8b97").set;e.exports=function(e,t,a){var i,o=t.constructor;return o!==a&&"function"==typeof o&&(i=o.prototype)!==a.prototype&&n(i)&&r&&r(e,i),e}},"8b97":function(e,t,a){var n=a("d3f4"),r=a("cb7c"),i=function(e,t){if(r(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{n=a("9b43")(Function.call,a("11e9").f(Object.prototype,"__proto__").set,2),n(e,[]),t=!(e instanceof Array)}catch(r){t=!0}return function(e,a){return i(e,a),t?e.__proto__=a:n(e,a),e}}({},!1):void 0),check:i}},aa77:function(e,t,a){var n=a("5ca1"),r=a("be13"),i=a("79e5"),o=a("fdef"),s="["+o+"]",c="​…",l=RegExp("^"+s+s+"*"),u=RegExp(s+s+"*$"),d=function(e,t,a){var r={},s=i((function(){return!!o[e]()||c[e]()!=c})),l=r[e]=s?t(f):o[e];a&&(r[a]=l),n(n.P+n.F*s,"String",r)},f=d.trim=function(e,t){return e=String(r(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(u,"")),e};e.exports=d},c5f6:function(e,t,a){"use strict";var n=a("7726"),r=a("69a8"),i=a("2d95"),o=a("5dbc"),s=a("6a99"),c=a("79e5"),l=a("9093").f,u=a("11e9").f,d=a("86cc").f,f=a("aa77").trim,p="Number",h=n[p],g=h,m=h.prototype,b=i(a("2aeb")(m))==p,y="trim"in String.prototype,v=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){t=y?t.trim():f(t,3);var a,n,r,i=t.charCodeAt(0);if(43===i||45===i){if(a=t.charCodeAt(2),88===a||120===a)return NaN}else if(48===i){switch(t.charCodeAt(1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+t}for(var o,c=t.slice(2),l=0,u=c.length;l<u;l++)if(o=c.charCodeAt(l),o<48||o>r)return NaN;return parseInt(c,n)}}return+t};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(e){var t=arguments.length<1?0:e,a=this;return a instanceof h&&(b?c((function(){m.valueOf.call(a)})):i(a)!=p)?o(new g(v(t)),a,h):v(t)};for(var _,x=a("9e1e")?l(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;x.length>w;w++)r(g,_=x[w])&&!r(h,_)&&d(h,_,u(g,_));h.prototype=m,m.constructor=h,a("2aba")(n,p,h)}},cd7c:function(e,t,a){"use strict";a("e80b")},e80b:function(e,t,a){},fdef:function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-59309fa8"],{"25b06":function(e,t,a){"use strict";a.r(t);a("28a5"),a("ac6a"),a("456d"),a("7f7f");var n=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"demo-split"},[t("Split",{scopedSlots:e._u([{key:"left",fn:function(){return[t("div",{staticClass:"demo-split-pane-L"},[e.treePanelLoading?t("Spin",{attrs:{size:"large",fix:""}}):e._e(),t("Tree",{attrs:{data:e.typeTree},on:{"on-select-change":e.treeNodeChange},model:{value:e.currentTreeNode,callback:function(t){e.currentTreeNode=t},expression:"currentTreeNode"}})],1)]},proxy:!0},{key:"right",fn:function(){return[t("div",{staticClass:"demo-split-pane-R"},[t("Card",{ref:"card",attrs:{"dis-hover":""}},[t("Input",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入关键词",clearable:""},model:{value:e.params.name,callback:function(t){e.$set(e.params,"name",t)},expression:"params.name"}}),t("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary"},on:{click:e.doSearch}},[e._v("查找")]),t("Button",{staticClass:"ivu-ml-8",attrs:{type:"primary",ghost:"",disabled:0==Object.keys(e.currentTreeNode).length},on:{click:e.add}},[t("Icon",{attrs:{type:"md-add"}}),e._v("新增分类\n ")],1),t("Table",{ref:"table",staticClass:"ivu-mt",attrs:{columns:e.columns,data:e.tableData,loading:e.tableLoading,size:"small"},scopedSlots:e._u([{key:"is_enable",fn:function(a){var n=a.row,i=a.index;return[t("i-switch",{attrs:{size:"large","true-value":1,"false-value":0},on:{"on-change":function(t){return e.switchChange(t,n,i)}},model:{value:n.is_enable,callback:function(t){e.$set(n,"is_enable",t)},expression:"row.is_enable"}},[t("span",{attrs:{slot:"open",type:"md-checkmark"},slot:"open"},[e._v("启用")]),t("span",{attrs:{slot:"close",type:"md-close"},slot:"close"},[e._v("停用")])])]}},{key:"action",fn:function(a){var n=a.row;return[t("div",{on:{click:function(e){e.stopPropagation(),e.preventDefault()}}},[t("a",{attrs:{type:"text"},on:{click:function(t){return e.handleEdit(n)}}},[e._v("编辑")]),t("Divider",{attrs:{type:"vertical"}}),t("a",{attrs:{type:"text"},on:{click:function(t){return e.handleDelete(n.id)}}},[e._v("删除")])],1)]}}])}),t("div",{staticClass:"ivu-mt ivu-text-center"},[t("Page",{attrs:{total:e.dataCount,current:e.params.page_index,"show-total":"","show-sizer":"","show-elevator":"","page-size":e.params.page_size,"page-size-opts":[10,30,50,100]},on:{"update:current":function(t){return e.$set(e.params,"page_index",t)},"on-change":e.handleChangePage,"on-page-size-change":e.handleChangePageSize}})],1)],1)],1)]},proxy:!0}]),model:{value:e.split,callback:function(t){e.split=t},expression:"split"}})],1),t("CEditModal",{ref:"ceditmodal",attrs:{formRule:e.formRule,formItem:e.formItem,loading:e.editModalLoading,formLabelWidth:100,width:800},on:{onClose:function(t){e.editModalshow=!1},onSubmit:e.modalSubmit},model:{value:e.editModalshow,callback:function(t){e.editModalshow=t},expression:"editModalshow"}})],1)},i=[],r=(a("8e6e"),a("20d6"),a("bd86")),o=(a("96cf"),a("3b8d")),s=a("967e"),c=a.n(s),l=a("b6bd");function d(e){return Object(l["a"])({url:"/api/DutyClassify/GetClassifyTree",method:"get",params:e})}function u(e){return Object(l["a"])({url:"/api/DutyClassify/QueryDutyClassify",method:"get",params:e})}function p(e){return Object(l["a"])({url:"/api/DutyClassify/ModifyDutyStatus",method:"get",params:e})}function f(e){return Object(l["a"])({url:"/api/DutyClassify/DeleteDuty",method:"get",params:e})}function h(e){return Object(l["a"])({url:"/api/DutyClassify/AddDutyType",method:"post",data:e})}function m(e){return Object(l["a"])({url:"/api/Common/GetDutyConfigSelect",method:"get",params:e})}function g(e){return Object(l["a"])({url:"/api/DutyClassify/UpdateDutyType",method:"post",data:e})}var b=a("d02c"),y=a("12cb");function v(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function _(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?v(Object(a),!0).forEach((function(t){Object(r["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):v(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var D={components:{CEditModal:y["a"]},data:function(){return{split:"250px",curNode:[],treePanelLoading:!1,typeTree:[],currentTreeNode:{},tableLoading:!1,tableData:[],dataCount:0,columns:[{type:"index",title:"序号",align:"center",width:60},{title:"名称",key:"name"},{title:"启用",slot:"is_enable"},{title:"操作",slot:"action",align:"center",fixed:"right",width:150}],params:{page_index:1,page_size:10,parent_id:"1",name:""},editModalshow:!1,editModalLoading:!1,isEdit:!1,formItem:[{id:"name",name:"分类名称",type:"input",disabled:!1,require:!1,optList:[]},{id:"config_id",name:"配置类型",type:"multipleselect",disabled:!1,require:!1,optList:[]}],formRule:{name:[{required:!0,message:"该项不能为空",trigger:"blur"}],config_id:[{type:"array",required:!0,message:"该项不能为空",trigger:"change"}]},defaultFormData:{id:"",name:"",parent_id:"",config_id:[]},configList:[]}},mounted:function(){this.getTreeData(),this.getData(),this.GetDutyConfigSelect()},methods:{getTreeData:function(){var e=Object(o["a"])(c.a.mark((function e(){var t=this;return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.treePanelLoading=!0,this.currentTreeNode={},d().then((function(e){t.typeTree=t.treeFormat(e),t.treePanelLoading=!1}));case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),treeNodeChange:function(e,t){console.log("🚀🚀🚀,",e,t),t.expand=!0,t.selected?(this.currentTreeNode=t,this.params.parent_id=t.id):(this.currentTreeNode={},this.params.parent_id="1"),this.getData()},treeFormat:function(e){var t=this;return e.map((function(e){return e.children&&0!=e.children.length&&(e.children=t.treeFormat(e.children)),_(_({},e),{},{title:e.name,expand:"1"==e.id,selected:!1})}))},GetDutyConfigSelect:function(){var e=this;m().then((function(t){var a=e.formItem.findIndex((function(e){return"config_id"==e.id}));e.formItem[a].optList=t.map((function(e){return _(_({},e),{},{label:e.name,value:e.id})}))}))},getData:function(){var e=this;this.tableLoading=!0,u(this.params).then((function(t){e.tableData=t.data,e.dataCount=t.data_count,e.tableLoading=!1}))},switchChange:function(e,t,a){var n=this;this.tableData[a].is_enable=e,p({id:t.id,is_enable:e}).then((function(e){n.$Message.success(e)})).catch((function(){n.tableData[a].is_enable=0==e?1:0,n.$Message.error(res.msg_detail)}))},handleChangePage:function(e){this.params.page_index=e,this.getData()},handleChangePageSize:function(e){this.params.page_size=e,1==this.params.page_index&&(this.params.page_index=e,this.getData())},doSearch:function(){this.params.page_size=1,this.getData()},handleEdit:function(e){this.editModalshow=!0,this.isEdit=!0,this.$refs.ceditmodal.modalInit("edit",_(_({},e),{},{config_id:e.config_id.split(";")}),"编辑分类")},handleDelete:function(e){var t=this;this.$Modal.confirm({title:"确定要删除吗?",loading:!0,onOk:function(){var a={id:e};f(a).then((function(){t.$Modal.remove(),t.$Message.success("删除成功"),t.getData(),t.getTreeData()}))}})},add:function(){this.editModalshow=!0,this.isEdit=!1,this.$refs.ceditmodal.modalInit("add",this.defaultFormData,"新增分类")},modalSubmit:function(e){var t=this;function a(e){return console.log("🚀valval🚀🚀,",e),b["b"]({parent_id:e.parent_id}).then((function(t){return console.log("🚀valvaxxxxxl🚀🚀,",e),h(_(_({},e),{},{id:t}))}))}console.log("modal提交",e);var n=0!=Object.keys(this.currentTreeNode).length;e.parent_id=n?this.currentTreeNode.id:"1",e.config_id=e.config_id.join(";"),console.log(e),this.$Modal.confirm({title:"提示",content:"是否确定提交?",loading:!0,onOk:function(){var n=Object(o["a"])(c.a.mark((function n(){var i;return c.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!t.isEdit){n.next=6;break}return n.next=3,g(e);case 3:n.t0=n.sent,n.next=9;break;case 6:return n.next=8,a(e);case 8:n.t0=n.sent;case 9:i=n.t0,t.$Message.success(i),t.editModalshow=!1,t.getData(),t.getTreeData(),t.$Modal.remove();case 15:case"end":return n.stop()}}),n)})));function i(){return n.apply(this,arguments)}return i}()})}}},w=D,x=(a("cd7c"),a("2877")),C=Object(x["a"])(w,n,i,!1,null,"a7e93df6",null);t["default"]=C.exports},cd7c:function(e,t,a){"use strict";a("e80b")},e80b:function(e,t,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5ae99c19"],{1649:function(e,t,n){},"1c90":function(e,t){e.exports="data:image/png;base64,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"},"2d5e":function(e,t){e.exports="data:image/png;base64,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"},"645a":function(e,t,n){"use strict";n("a152")},"697b":function(e,t,n){},8837:function(e,t,n){},"891d":function(e,t,n){"use strict";n("8837")},a152:function(e,t,n){},a19f:function(e,t){e.exports="data:image/png;base64,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"},a92c:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMoAAAC6CAMAAADYmSJbAAAAmVBMVEVHcEx+zzt+zztVx/d+zzvctGXktUFVx/d+zzv5X11Vx/d+zztVx/dVx/dVx/d+zzt+zzt+zztVx/dVx/d+zzt+zztVx/efvKe2wT6RvUD5X11iv+t+zzv9r0JVx/d+zzv5X13///+pu5y+vz/+w3H7h0/+19f/69D7h4b6fXv/9vX8pXv+7Ov+4uH+4dT8ubj5aWf8r679zc0R6oXTAAAAHXRSTlMAMPCQQO/vwMBAEKCwIGDgcGCggBCwMNjYTBDQ0MrCGggAAAAJcEhZcwAACxIAAAsSAdLdfvwAAAJASURBVHic7dpbbxJhFIXhPVCFcur5rGOntdjS0qr//8cZ0J4062L8VrIn5H3vWR9PYICEiZdGs/6guJMPLTopP68/G8XfTfdrR1efW3RlOXJ/+p5yYFlNodT1wRvIaGIazaHUk9d32cC1mUSpB8+Svm0yi1L3f0uOfYtplPp4TbFdKJmUyUoyNQ7mUerVR/LMOZhHmXkv+kxK3/pJnEoZQJFBMQRFB8UQFB0UQ1B0UAxB0UExBEUHxRAUHRRDUHRQDEHRQTEERQfFEBQdFENQdFAMQdFBMQRFB8UQFB0UQ1B0UAxtFuX8wjmYR7k4j+1LZzdtKDfWo7ehqKA4giKD4shD+fHQFLW86wrlqQzSNM3CYLFQFsWUZt4RSrmkaaBAgQIFCpR/Kcv7ry26X3aYMm/3c3IOBQoUKFCgQIECBQoUKFCgQIECBQqUVMri8VuLHhcdpvx/UKBAgQKlsJ/lkq7cGHJXeONR0zx05Xady++3z7X7L/LlYYbnwK1tOiiOoMigONooytkXZ9dtKNfWo89ia1MoW1BUUBxBkUFxBEUGxREUGRRHUGRQHEGRQXEERQbFERQZFEdQZFAcQZFBcQRFBsURFBkUR1BkUBxBkUFxBEUGxREUGRRHG0UJ614iJSJ2nHt5lJ2IGDsH8yjjiKicg3mUKiLiyDiYRjlaSeKw51vMovQO15SofJYkSq+KcFtyKK+SiGpoGk2hDN9IImLP8/WSQPm09w6yfmV2x8PiTj+26LT8vPHun1ckIn4B4NNDPy07CvcAAAAASUVORK5CYII="},ab6c:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKgAAADICAMAAABLYVrcAAAAZlBMVEVHcEzi5efi5efi5efi5efi5efi5efi5ee0ubvi5efi5efi5efi5efi5efi5efDx8n////i5eeYnaDp7O34+fnx8vOqr7K9wcPk5+nd4OPn6uzP09W0uLqvs7bGysycoaTBxcimqq0MfBy6AAAAEHRSTlMAsOBgMEDwgJwQoNDAUCBxDkOBYAAAAAlwSFlzAAALEgAACxIB0t1+/AAAAk9JREFUeJzt3YlSg0AQhOFNzCExHhgTjcbr/V/SwhzmAMIOXbNN7P8JvmIpqKWACeuGk37u0fN1aFPWc1EW0Mc20oHP0VxDW0izGzdnAbVL3dZ9A7VKh47ONdQo9TygG6hJmnk6t1CL1HXld1CD9CoNNF46TgSNliaDxkrTQSOlCaFx0pTQKGlSaIw0LTRCmhjaXJoa2liaHNpUmh7aUEoAbSZlgDaSUkCbSDmgDaQk0PNSFuhZKQ30nJQHekZKBK2XMkFrpVTQOikXtEZKBq2WskErpXTQKikftEJKCC2XMkJLpZTQMikntERKCj2VskJPpLTQYykv9EhKDD2UVkHnwGZG6IG0CvoAbG6F7kt9oW+R0D2pL3QZC/2T+kLzhVnqDI1e+53UGZqvrFJv6PLbKPW9jhbSd5vU987029enRZoAmucfq0Vk92mg8Y0FBScoOkHRCYpOUHSCohMUnaDoLgD6lKjXWChyuxzTrJwjqKCCCrptlqiXWChZgqITFJ2g6ARFJyg6QdEJik5QdIKiuwBoZ3ahggoqqKCkUD0ksyUoOkHRCYpOUHSCohMUnaDoBEUnKDo9JPPbhQoqqKCCkkLJEhSdoOgERScoOkHRCYpOUHSCohMU3QVAO/NiQWd2oYIKKuh/g3bma3CyBEUnKDpB0QmKTlB0gqITFJ2g6ARF1yGo7/Bdc2PnccYtoL4Dos0NQ3CctW5v5D4h2ti4+C36lN/ZzwpoNiKg1DYarP/dPyA/TbfOELIJAaey6c4ZQrib9DmVo95tCCGE8AMHOjrY1K05GAAAAABJRU5ErkJggg=="},ba6e:function(e,t,n){"use strict";n.r(t);n("c5f6");var a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"ele-body"},[t("Card",{directives:[{name:"show",rawName:"v-show",value:!e.drawerShow,expression:"!drawerShow"}],ref:"card",attrs:{bordered:!1,"dis-hover":""}},[e.loading?t("Spin",{attrs:{fix:""}}):e._e(),t("div",{staticClass:"table-heard"},[t("div",[t("Tag",{attrs:{size:"large"}},[e._v(e._s(this.currentWeekRange[0]+"至"+this.currentWeekRange[1])+"\n ")])],1),t("div",{staticClass:"center"},[t("Button",{attrs:{size:"default"},on:{click:e.weekPre}},[t("Icon",{attrs:{type:"ios-arrow-back"}}),e._v("\n 上一周\n ")],1),t("p",[e._v(e._s(e.currentYear)+"年"+e._s(e.currentMonth)+"月")]),t("Button",{attrs:{size:"default"},on:{click:e.weekNext}},[e._v("下一周\n "),t("Icon",{attrs:{type:"ios-arrow-forward"}})],1)],1),t("div")]),e.isAdmin?t("div",{staticStyle:{width:"100%",display:"flex"}},[t("Button",{staticStyle:{margin:"0 5px"},attrs:{icon:"ios-download-outline"},on:{click:function(t){e.importDutySheet.show=!0}}},[e._v("下载模版\n ")]),t("Upload",{staticStyle:{margin:"0 5px"},attrs:{"before-upload":e.uploadFile,action:"#"}},[t("Button",{attrs:{icon:"ios-cloud-upload-outline"}},[e._v("导入模版")])],1)],1):e._e(),t("table",{attrs:{align:"center",cellpadding:"0",cellspacing:"0"}},[t("tr",{staticClass:"sepacialy"},[t("td"),e._l(e.weekGround,(function(n,a){return t("td",{key:a},[e._v(e._s(n))])}))],2),e._l(e.timeGround,(function(n,a){return t("tr",{key:a},[t("td",{staticClass:"time"},[e._v(e._s(n.typeName))]),e._l(e.weekGround,(function(n,o){return t("td",{key:o,attrs:{align:"center",valign:"middle"}},e._l(e.course[o].plandatas,(function(n,i){return t("div",{key:i,on:{click:function(t){return e.getScheduleDetails(n,e.course[o].date)}}},[n.leader_id===e.timeGround[a].id?t("div",{staticClass:"course-item"},[t("p",{directives:[{name:"show",rawName:"v-show",value:n.schedule.plan_list.map((function(e){return e.content})).join(";"),expression:"x.schedule.plan_list.map(cur=>cur.content).join(';')"}]},[e._v("\n 今日安排:"+e._s(n.schedule.plan_list.map((function(e){return e.content})).join(";")))]),t("p",{directives:[{name:"show",rawName:"v-show",value:n.schedule.duty_list.map((function(e){return e.content})).join(";"),expression:"x.schedule.duty_list.map(cur=>cur.content).join(';')"}]},[e._v("\n 值班安排:"+e._s(n.schedule.duty_list.map((function(e){return e.content})).join(";")))]),t("p",{directives:[{name:"show",rawName:"v-show",value:n.schedule.meet_list.map((function(e){return e.content})).join(";"),expression:"x.schedule.meet_list.map(cur=>cur.content).join(';')"}]},[e._v("\n 会议安排:"+e._s(n.schedule.meet_list.map((function(e){return e.content})).join(";")))])]):e._e()])})),0)}))],2)}))],2)],1),t("Modal",{attrs:{width:"460"},scopedSlots:e._u([{key:"header",fn:function(){return[t("p",{staticStyle:{color:"#2D8CF0","text-align":"center"}},[t("Icon",{attrs:{type:"ios-information-circle"}}),t("span",[e._v("导出值班日志")])],1)]},proxy:!0},{key:"footer",fn:function(){return[t("Button",{attrs:{loading:e.importDuty.loading,long:"",size:"large",type:"primary"},on:{click:e.importDutyFun}},[e._v("导出值班日志\n ")])]},proxy:!0}]),model:{value:e.importDuty.show,callback:function(t){e.$set(e.importDuty,"show",t)},expression:"importDuty.show"}},[t("div",{staticStyle:{"text-align":"center"}},[t("Form",{attrs:{"label-width":80}},[t("FormItem",{attrs:{label:"值班日期",prop:"user"}},[t("DatePicker",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择值班日期",placement:"bottom-end",type:"daterange"},model:{value:e.importDuty.date,callback:function(t){e.$set(e.importDuty,"date",t)},expression:"importDuty.date"}})],1)],1)],1)]),t("Modal",{attrs:{width:"460"},scopedSlots:e._u([{key:"header",fn:function(){return[t("p",{staticStyle:{color:"#2D8CF0","text-align":"center"}},[t("Icon",{attrs:{type:"ios-information-circle"}}),t("span",[e._v("下载模版")])],1)]},proxy:!0},{key:"footer",fn:function(){return[t("Button",{attrs:{loading:e.importDutySheet.loading,long:"",size:"large",type:"primary"},on:{click:e.importDutySheetFun}},[e._v("\n 下载\n ")])]},proxy:!0}]),model:{value:e.importDutySheet.show,callback:function(t){e.$set(e.importDutySheet,"show",t)},expression:"importDutySheet.show"}},[t("div",{staticStyle:{"text-align":"center"}},[t("Form",{attrs:{"label-width":80}},[t("FormItem",{attrs:{label:"日期",prop:"user"}},[t("DatePicker",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择日期",placement:"bottom-end",type:"daterange"},model:{value:e.importDutySheet.date,callback:function(t){e.$set(e.importDutySheet,"date",t)},expression:"importDutySheet.date"}})],1)],1)],1)]),t("Drawer",{staticClass:"zd-form",attrs:{width:"100",height:"100",transfer:!1,mask:""},model:{value:e.drawerShow,callback:function(t){e.drawerShow=t},expression:"drawerShow"}},[t("div",{staticStyle:{"max-width":"1300px",margin:"0 auto"}},[t("Row",{staticClass:"resume-content",staticStyle:{"flex-flow":"row","padding-bottom":"60px"},attrs:{gutter:36}},[t("Col",{staticClass:"ivu-mb",attrs:{flex:"250px"}},[t("Menu",{attrs:{"active-name":e.schedule.menu},on:{"on-select":e.onSelectMenu}},[t("MenuItem",{staticClass:"menuFlex",attrs:{name:"1-1"}},[e._v("\n 今日安排\n "),t("div",{staticClass:"aaaxx"},[e._v(e._s(e.schedule.formData.plan_list?e.schedule.formData.plan_list.length:0))])]),t("MenuItem",{staticClass:"menuFlex",attrs:{name:"1-2"}},[e._v("\n 值班安排\n "),t("div",{staticClass:"aaaxx"},[e._v(e._s(e.schedule.formData.duty_list?e.schedule.formData.duty_list.length:0))])]),t("MenuItem",{staticClass:"menuFlex",attrs:{name:"1-3"}},[e._v("\n 会议安排\n "),t("div",{staticClass:"aaaxx"},[e._v(e._s(e.schedule.formData.meet_list?e.schedule.formData.meet_list.length:0))])])],1)],1),t("Col",{staticStyle:{"overflow-x":"auto"},attrs:{flex:"auto"}},[t("div",{attrs:{id:"teacher_basic"}}),t("Card",{staticClass:"ivu-mb"},[t("div",{staticStyle:{display:"flex","justify-content":"space-between","align-items":"center",width:"100%"}},[t("h2",[t("Icon",{attrs:{type:"ios-alarm"}}),e._v("\n "+e._s("2025年01月26日")+"\n ")],1),t("a",{attrs:{href:"#"},on:{click:function(t){e.schedule.track.show=!e.schedule.track.show}}},[e._v(e._s(["显示轨迹","隐藏轨迹"][Number(e.schedule.track.show)]))])]),t("div",{directives:[{name:"show",rawName:"v-show",value:"1-1"===e.schedule.menu,expression:"schedule.menu === '1-1'"}]},[t("Divider",{attrs:{orientation:"center"}},[e._v("今日安排")]),e._l(e.schedule.formData.plan_list,(function(a,o){return t("Card",{key:o,staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1},scopedSlots:e._u([{key:"title",fn:function(){return[t("Icon",{attrs:{type:"logo-buffer"}})]},proxy:!0},{key:"extra",fn:function(){return[a.id?t("a",{attrs:{href:"#"},on:{click:function(t){return e.submit(a,"save")}}},[e._v("保存")]):t("a",{attrs:{href:"#"},on:{click:function(t){return e.submit(a,"submit")}}},[e._v("提交")]),t("Divider",{attrs:{type:"vertical"}}),t("Poptip",{attrs:{transfer:!0,confirm:"",title:"是否继续?","ok-text":"是","cancel-text":"否"},on:{"on-ok":function(t){return e.deleteSchedule(a,o)}}},[t("a",{attrs:{href:"#"}},[e._v("删除")])])]},proxy:!0}],null,!0)},[t("Form",{ref:"formValidate112",refInFor:!0,attrs:{model:a,rules:e.schedule.ruleValidate}},[t("FormItem",{attrs:{prop:"time"}},[t("Row",[t("Col",{attrs:{span:"7"}},[t("FormItem",{attrs:{label:"日程时间",prop:"timeRange"}},[t("TimePicker",{staticStyle:{width:"90%"},attrs:{format:"HH:mm",type:"timerange",placeholder:"请选择日程时间"},model:{value:a.timeRange,callback:function(t){e.$set(a,"timeRange",t)},expression:"item.timeRange"}})],1)],1),t("Col",{attrs:{span:"12"}},[t("FormItem",{attrs:{label:"日程内容",prop:"content"}},[t("Input",{staticStyle:{width:"90%"},attrs:{type:"textarea",placeholder:"请输入日程计划",maxlength:"500",autosize:{minRows:1,maxRows:6},"show-word-limit":""},model:{value:a.content,callback:function(t){e.$set(a,"content",t)},expression:"item.content"}})],1)],1),t("Col",{attrs:{span:"5"}},[t("FormItem",{attrs:{label:"附件上传",prop:"beforeUpload"}},[t("Upload",{staticStyle:{width:"90%",display:"flex","justify-content":"flex-start"},attrs:{"before-upload":function(t){return e.beforeUpload(t,a)},action:""}},[t("Button",{attrs:{icon:"ios-cloud-upload-outline"}},[e._v("附件上传")])],1)],1)],1),t("Col",{attrs:{span:"24"}},[t("FormItem",{attrs:{label:"附件",prop:"fileData"}},e._l(a.file_list,(function(o,i){return t("div",{key:i,staticClass:"filelist",staticStyle:{display:"flex",width:"100%"}},[t("div",{staticStyle:{display:"flex",width:"100%",height:"32px","align-items":"center"}},[".file"===o.suffix?t("img",{attrs:{src:n("ab6c"),width:"15px"}}):e._e(),".word"===o.suffix?t("img",{attrs:{src:n("a19f"),width:"15px"}}):e._e(),".excel"===o.suffix?t("img",{attrs:{src:n("1c90"),width:"15px"}}):e._e(),".ppt"===o.suffix?t("img",{attrs:{src:n("f9e9"),width:"15px"}}):e._e(),".pdf"===o.suffix?t("img",{attrs:{src:n("2d5e"),width:"15px"}}):e._e(),".image"===o.suffix?t("img",{attrs:{src:n("c048"),width:"15px"}}):e._e(),".jpg"===o.suffix?t("img",{attrs:{src:n("c048"),width:"15px"}}):e._e(),".png"===o.suffix?t("img",{attrs:{src:n("c048"),width:"15px"}}):e._e(),".jpeg"===o.suffix?t("img",{attrs:{src:n("c048"),width:"15px"}}):e._e(),".doc"===o.suffix?t("img",{attrs:{src:n("a19f"),width:"15px"}}):e._e(),".docx"===o.suffix?t("img",{attrs:{src:n("a19f"),width:"15px"}}):e._e(),".xlsx"===o.suffix?t("img",{attrs:{src:n("1c90"),width:"15px"}}):e._e(),".xls"===o.suffix?t("img",{attrs:{src:n("1c90"),width:"15px"}}):e._e(),".zip"===o.suffix?t("img",{attrs:{src:n("a92c"),width:"15px"}}):e._e(),t("a",{staticClass:"ivu-ml-8 file-title",on:{click:function(t){return e.preview(o,a.file_list)}}},[e._v("\n "+e._s(o.file_name)+"\n ")]),o.file_name?t("Icon",{staticClass:"fileddelete",attrs:{size:"20",type:"ios-close"},on:{click:function(t){return e.fileDelete(a.file_list,o)}}}):e._e()],1)])})),0)],1)],1)],1)],1)],1)})),t("Row",{staticStyle:{margin:"10px 0"}},[t("Col",{attrs:{span:"24"}},[t("Button",{attrs:{type:"dashed",long:"",icon:"md-add"},on:{click:e.handleAdd}},[e._v("添加安排")])],1)],1)],2),t("div",{directives:[{name:"show",rawName:"v-show",value:"1-2"===e.schedule.menu,expression:"schedule.menu === '1-2'"}]},[t("Divider",{attrs:{orientation:"center"}},[e._v("值班安排")]),t("Card",{attrs:{bordered:!1,"dis-hover":""}},[t("div",e._l(e.schedule.formData.duty_list,(function(n,a){return t("Row",{key:a,staticStyle:{margin:"10px 0"}},[t("Col",{attrs:{span:"7"}},[t("div",[t("Icon",{attrs:{type:"ios-alarm"}}),e._v("\n 日程时间: "+e._s(n.begin)+"-"+e._s(n.end)+"\n ")],1)]),t("Col",{attrs:{span:"17"}},[t("p",[t("Icon",{attrs:{type:"logo-buffer"}}),e._v("\n "+e._s(n.content)+"\n ")],1)])],1)})),1)])],1),t("div",{directives:[{name:"show",rawName:"v-show",value:"1-3"===e.schedule.menu,expression:"schedule.menu === '1-3'"}]},[t("Divider",{attrs:{orientation:"center"}},[e._v("会议安排")]),t("Card",{attrs:{bordered:!1,"dis-hover":""}},[t("div",e._l(e.schedule.formData.meet_list,(function(n,a){return t("Row",{key:a,staticStyle:{margin:"10px 0"}},[t("Col",{attrs:{span:"7"}},[t("div",[t("Icon",{attrs:{type:"ios-alarm"}}),e._v("\n 日程时间: "+e._s(n.begin)+"-"+e._s(n.end)+"\n ")],1)]),t("Col",{attrs:{span:"17"}},[t("p",[t("Icon",{attrs:{type:"logo-buffer"}}),e._v("\n "+e._s(n.content)+"\n ")],1)])],1)})),1)])],1)])],1),t("Col",{directives:[{name:"show",rawName:"v-show",value:e.schedule.track.show,expression:"schedule.track.show"}],attrs:{flex:"300px"}},[t("Affix",{staticStyle:{height:"calc(100vh - 100px)",overflow:"auto"},attrs:{"offset-top":0}},[t("Card",{attrs:{padding:16,bordered:"","dis-hover":""}},[t("Timeline",e._l(e.schedule.track.data,(function(n,a){return t("TimelineItem",{key:a},[t("p",{staticClass:"time"},[e._v(e._s(n.createtime))]),t("p",{staticClass:"content"},[e._v(e._s(n.remark))])])})),1)],1)],1)],1)],1)],1),t("div",{staticClass:"page-sys-menu-drawer-footer"},[t("Button",{staticStyle:{width:"200px"},on:{click:function(t){e.drawerShow=!1}}},[e._v("\n 关闭\n ")])],1)]),t("Drawer",{staticClass:"zd-detail-form-preview",attrs:{title:"预览",width:60,styles:{padding:0,overflow:"hidden"}},model:{value:e.pdfShow,callback:function(t){e.pdfShow=t},expression:"pdfShow"}},[t("div",{staticStyle:{height:"100%",width:"100%"}},[t("iframe",{attrs:{src:e.pdfSrc,frameborder:"0",height:"100%",width:"100%"}})])])],1)},o=[],i=(n("8e6e"),n("456d"),n("bd86")),r=(n("20d6"),n("ac6a"),n("0808"),n("c71c")),s=n("e191"),l=n("61be"),d=n("b6bd");function c(e,t){return d["a"].post("/api/File/FileUpload",e,t)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t){var n={filePath:e.filePath};return d["a"].get("/api/File/Preview",h({params:n},t))}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t){var n={begin:e.begin,end:e.end};return d["a"].get("/api/PlanSchedule/GetPlanScheduleCalendar",m({params:n},t))}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t){var n={userid:e.userid,date:e.date};return d["a"].get("/api/PlanSchedule/GetPlanScheduleInfo",b({params:n},t))}function v(e,t){return d["a"].post("/api/PlanSchedule/PlanScheduleIns",e,t)}function w(e,t){return d["a"].post("/api/PlanSchedule/PlanScheduleSave",e,t)}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(e,t){var n={id:e.id};return d["a"].post("/api/PlanSchedule/PlanScheduleDel",null,D({params:n},t))}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function O(e,t){var n={userid:e.userid,date:e.date};return d["a"].get("/api/PlanSchedule/GetPlanScheduleTrackList",S({params:n},t))}function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t){var n={begin:e.begin,end:e.end};return d["a"].get("/api/PlanSchedule/PlanScheduleTemplate",j({params:n},t))}function P(e,t){return d["a"].post("/api/PlanSchedule/PlanScheduleImport",e,t)}var B=n("5a0c"),Q=n.n(B),q=(n("7f7f"),function(){var e=this,t=e._self._c;return t("div",[e.loading?t("Spin",{attrs:{fix:""}}):e._e(),""!=e.formTitle?t("div",{staticClass:"form-title"},[e._v(e._s(e.formTitle))]):e._e(),t("Form",{ref:"form",attrs:{model:e.data,"label-position":"right","label-width":120}},[t("Card",{attrs:{bordered:!1,"dis-hover":""}},[t("Row",{attrs:{gutter:64}},e._l(e.formConfig,(function(n,a){return t("Col",{key:a,attrs:{xl:e.colLength(n.option,n.show_type),lg:24,md:24,sm:24,xs:24}},["Divider"===n.show_type?t("Divider",{attrs:{orientation:"center"}},[e._v(e._s(n.name))]):["Code"===n.show_type||"MultiCode"===n.show_type?t("FormItem",{attrs:{label:n.name+":",required:1===n.option.required}},[e._v("\n "+e._s(e.codeLabel(n.id))+"\n ")]):t("FormItem",{attrs:{label:n.name+":",required:1===n.option.required}},[e._v("\n "+e._s(e.data[n.id])+"\n ")])]],2)})),1)],1),1===e.fileConfig.allow?t("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":"",title:e.fileConfig.show_name}},[t("Row",{attrs:{gutter:24}},[t("Col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[t("Table",{ref:"table",attrs:{border:"",stripe:"",size:"small",columns:e.columns,data:e.fileData,loading:e.fileLoading},scopedSlots:e._u([{key:"name",fn:function(a){var o=a.row;return[t("div",{staticStyle:{display:"flex","align-items":"center"}},["file"===o.type?t("img",{attrs:{src:n("ab6c"),width:"15px"}}):e._e(),"word"===o.type?t("img",{attrs:{src:n("a19f"),width:"15px"}}):e._e(),"excel"===o.type?t("img",{attrs:{src:n("1c90"),width:"15px"}}):e._e(),"ppt"===o.type?t("img",{attrs:{src:n("f9e9"),width:"15px"}}):e._e(),"pdf"===o.type?t("img",{attrs:{src:n("2d5e"),width:"15px"}}):e._e(),"image"===o.type?t("img",{attrs:{src:n("c048"),width:"15px"}}):e._e(),"zip"===o.type?t("img",{attrs:{src:n("a92c"),width:"15px"}}):e._e(),t("a",{staticClass:"ivu-ml-8 file-title",on:{click:function(t){return e.preview(o)}}},[e._v("\n "+e._s(o.name)+"\n ")])])]}},{key:"action",fn:function(n){var a=n.row;n.index;return[t("a",{on:{click:function(t){return t.stopPropagation(),e.download(a)}}},[e._v("下载")])]}}],null,!1,3670162245)})],1)],1)],1):e._e()],1),t("Drawer",{staticClass:"zd-detail-form-preview",attrs:{title:"预览",width:60,styles:{padding:0,overflow:"hidden"}},model:{value:e.pdfShow,callback:function(t){e.pdfShow=t},expression:"pdfShow"}},[t("div",{staticStyle:{height:"100%",width:"100%"}},[t("iframe",{attrs:{src:e.pdfSrc,frameborder:"0",height:"100%",width:"100%"}})])])],1)}),U=[],K=(n("7514"),{props:{formId:{type:String,default:""},id:{type:String,default:""},formTitle:{type:String,default:""}},data:function(){return{loading:!1,data:{},formConfig:[],fileConfig:{allow:1},columns:[],fileData:[],fileLoading:!1,pdfShow:!1,pdfSrc:""}},mounted:function(){this.columns=this.renderColumns(),this.fileData=[{id:"1013632160705282048",name:"附件3 导师聘期考核操作手册(导师端).docx",type:"word",path:"/hrms/upfiles/word/1013632160705282048.docx",tag:"",size:"1,078KB",createtime:"2022-08-29 10:12",createtby:"",createby_name:""},{id:"1082226633454125056",name:"微信截图_20230306161127.png",type:"image",path:"https://asc.hnasct.cn/hrms/upfiles/image/1082226633454125056.png",tag:"",size:"2KB",createtime:"2023-03-06 17:02",createtby:"",createby_name:""},{id:"1094804180058505216",name:"test.png",type:"image",path:"https://asc.hnasct.cn/hrms/upfiles/image/1094804180058505216.png",tag:"",size:"45KB",createtime:"2023-04-10 10:00",createtby:"",createby_name:""},{id:"1094804232256618496",name:"avt.jpg",type:"image",path:"https://asc.hnasct.cn/hrms/upfiles/image/1094804232256618496.jpg",tag:"",size:"301KB",createtime:"2023-04-10 10:01",createtby:"",createby_name:""},{id:"1188747649763770368",name:"微信截图_20231225151338.png",type:"image",path:"https://asc.hnasct.cn/hrms/upfiles/image/1188747649763770368.png",tag:"",size:"1KB",createtime:"2023-12-25 15:38",createtby:"",createby_name:""}]},methods:{colLength:function(e,t){return"Divider"===t||e&&2==e.show_length?24:12},init:function(e){var t=this;this.loading=!0,this.data={},this.fileConfig={},this.formConfig=[],API.UrlForminit(e).then((function(e){t.data=e.data,t.fileConfig=e.file,1===t.fileConfig.allow&&(t.columns=t.renderColumns(),t.fileData=e.file_list),t.formConfig=e.form,t.loading=!1,t.$emit("initok")}))},codeLabel:function(e){var t=this.formConfig.find((function(t){return t.id===e})).value;return this._.isEmpty(t)?"":t[0]},getFile:function(){var e=this;this.fileLoading=!0,API.fileList(this.formId,this.id).then((function(t){e.renderColumns(),e.fileData=t.data,e.fileLoading=!1}))},renderColumns:function(){return[{title:"文件名",width:!1,minWidth:120,ellipsis:!0,tooltip:!0,key:"name",resizable:!0,slot:"name"},{title:"分类",width:110,ellipsis:!0,tooltip:!0,key:"tag",resizable:!0},{title:"大小",width:90,ellipsis:!0,tooltip:!0,key:"size",resizable:!0},{title:"添加时间",width:150,ellipsis:!0,tooltip:!0,key:"createtime",resizable:!0},{title:"操作",slot:"action",width:70,align:"center",fixed:"right"}]},download:function(e){this.$getFile(e.path,e.name)},preview:function(e){var t=this;if("image"!==e.type){var n=this.$Message.loading({content:"加载预览中...",duration:0});API.FilePreview(e.path).then((function(a){t._.isEmpty(a.pdf)?(t.$Message.info("该文件不支持预览,已为您转为下载"),t.download(e)):(t.pdfSrc=a.pdf,t.pdfShow=!0),setTimeout(n,100)})).catch((function(){setTimeout(n,100)}))}else{var a=this.fileData.filter((function(e){return"image"===e.type})).map((function(e){return e.path}));Object(r["a"])({options:{toolbar:!0,initialViewIndex:a.findIndex((function(t){return t===e.path}))},images:a})}}}}),E=K,R=(n("e06f"),n("2877")),T=Object(R["a"])(E,q,U,!1,null,"1bbb457c",null),J=T.exports;n("2ef0");function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var G={components:{detailForm:J},props:{},data:function(){return{drawerShow2:!1,drawer2:{nodeInfo:{},rowInfo:{}},fileData:[{id:"1013632160705282048",name:"附件3 导师聘期考核操作手册(导师端).docx",type:"word",path:"/hrms/upfiles/word/1013632160705282048.docx",tag:"",size:"1,078KB",createtime:"2022-08-29 10:12",createtby:"",createby_name:""},{id:"1082226633454125056",name:"微信截图_20230306161127.png",type:"image",path:"https://asc.hnasct.cn/hrms/upfiles/image/1082226633454125056.png",tag:"",size:"2KB",createtime:"2023-03-06 17:02",createtby:"",createby_name:""},{id:"1094804180058505216",name:"test.png",type:"image",path:"https://asc.hnasct.cn/hrms/upfiles/image/1094804180058505216.png",tag:"",size:"45KB",createtime:"2023-04-10 10:00",createtby:"",createby_name:""},{id:"1094804232256618496",name:"avt.jpg",type:"image",path:"https://asc.hnasct.cn/hrms/upfiles/image/1094804232256618496.jpg",tag:"",size:"301KB",createtime:"2023-04-10 10:01",createtby:"",createby_name:""},{id:"1188747649763770368",name:"微信截图_20231225151338.png",type:"image",path:"https://asc.hnasct.cn/hrms/upfiles/image/1188747649763770368.png",tag:"",size:"1KB",createtime:"2023-12-25 15:38",createtby:"",createby_name:""}],drawerShow:!1,schedule:{menu:"1-1",track:{show:!1,data:[]},userid:"",date:"",formData:{plan_list:[{userid:"",date:"",timeRange:["09:41:00","12:00:00"],begin:"",end:"",content:"",file_list:[]}],duty_list:[],meet_list:[]},ruleValidate:{name:[{required:!0,message:"The name cannot be empty",trigger:"blur"}]}},photoLoading:!1,info:{},tableList:[],menuList:[],tid:"",pdfShow:!1,pdfSrc:"",importDutySheet:{loading:!1,show:!1,date:[Q()().format("YYYY-MM-DD"),Q()().format("YYYY-MM-DD")],formData:{begin_time:"",end_time:""}},importDuty:{loading:!1,show:!1,date:[Q()().format("YYYY-MM-DD"),Q()().format("YYYY-MM-DD")],formData:{begin_time:"",end_time:""}},weekGround:["周一","周二","周三","周四","周五","周六","周日"],course:[],timeGround:[],currentYear:"",currentMonth:"",currentDay:"",currentWeek:"",days:[],currentWeekRange:[],defalultWeekGround:["周一","周二","周三","周四","周五","周六","周日"],coachColorMap:{"张三":"#2B2E4A","李四":"#521262","王五":"#903749"},loading:!1,showModal:!1,selectDate:"",selectItem:"",formData:{},formRule:{},peopleOption:[],duty_daytime_people_id:[],duty_night_people_id:[],modalLoading:!0}},created:function(){},mounted:function(){this.initData()},methods:{onSelectMenu:function(e){this.schedule.menu=e},getTheScheduleActionTrack:function(){var e=this;O({userid:this.schedule.userid,date:this.schedule.date}).then((function(t){1===t.code&&(e.schedule.track.data=t.response)}))},fileDelete:function(e,t){e.splice(e.indexOf(t.id),1)},beforeUpload:function(e,t){var n=this,a=new FormData;return a.append("file",e),l["b"]((function(){return c(a).then((function(e){return n.schedule.formData.plan_list.forEach((function(n){t.id===n.id&&n.file_list.push(e.response)})),e}))}),!1,"正在上传..."),!1},download:function(e){this.$getFile(e.path,e.file_name)},preview:function(e,t){var n=this;if(console.log("🚀🚀🚀,",e),".jpg"!==e.suffix&&".jpeg"!==e.suffix&&".png"!==e.suffix)l["b"]((function(){return p({filePath:e.path}).then((function(t){return""!==t.response.pdf?(n.pdfSrc=t.response.pdf,n.pdfShow=!0):(n.$Message.info("该文件不支持预览,已为您转为下载"),n.download(e)),t}))}),!0,"加载预览中...");else{var a=t.filter((function(e){return".jpg"===e.suffix||".jpeg"===e.suffix||".png"===e.suffix})).map((function(e){return e.path}));Object(r["a"])({options:{toolbar:!0,initialViewIndex:a.findIndex((function(t){return t===e.path}))},images:a})}},submit:function(e,t){var n=this,a={save:function(){l["b"]((function(){return w(M(M({},e),{},{begin:e.timeRange[0],end:e.timeRange[1],file_id_list:e.file_list.map((function(e){return e.id}))}))}),!1,"保存中...")},submit:function(){l["b"]((function(){return v(M(M({},e),{},{userid:n.schedule.userid,date:n.schedule.date,begin:e.timeRange[0],end:e.timeRange[1],file_id_list:e.file_list.map((function(e){return e.id}))})).then((function(e){return e}))}),!1,"提交中...")}};a[t]()},deleteSchedule:function(e,t){var n=this;""!==e.id?(console.log("🚀🚀🚀,",e),l["b"]((function(){return x({id:e.id}).then((function(e){return n.getScheduleDetails({leader_id:n.schedule.userid},n.schedule.date),e}))}),!1,"正在删除...")):this.schedule.formData.plan_list.splice(t,1)},handleAdd:function(){this.schedule.formData.plan_list.push({id:"",date:"",begin:"",end:"",timeRange:["",""],content:"",file_list:[]})},getScheduleDetails:function(e,t){var n=this;this.schedule.date=Q()(t).format("YYYY-MM-DD"),this.schedule.userid=e.leader_id,this.drawerShow=!0,l["b"]((function(){return y({userid:n.schedule.userid,date:n.schedule.date}).then((function(e){n.schedule.formData=M(M({},e),{},{plan_list:e.response.plan_list.map((function(e){return M(M({},e),{},{timeRange:[e.begin,e.end]})}))}),n.getTheScheduleActionTrack()}))}),!0,"正在获取日程数据...")},getDetailData:function(){var e=this,t={form:[{id:"zd_form_design_divider_1626940424170",name:"基本信息",show_type:"Divider",event_func:{onchange:"",onfocus:"",onblur:""}},{id:"gh",name:"工号",show_type:"Character",value:"asc666",option:{max_length:20,show_length:1,describe:"",required:1,disabled:1,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"xm",name:"姓名",show_type:"Character",value:"asc666",option:{max_length:50,show_length:1,describe:"",required:1,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"dqztm",name:"当前状态",show_type:"Code",value:["在职","11"],option:{show_length:1,describe:"教职工当前状态(JYT1001-JZGDQZT)",required:1,disabled:0,default_value:"",code_id:"S022",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"jzglbm",name:"教职工类别",show_type:"Code",value:["校本部教职工","1"],option:{show_length:1,describe:"教职工类别(JYT1001-JZGLB)",required:1,disabled:0,default_value:"",code_id:"S023",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"jzgly",name:"教职工来源",show_type:"Code",value:["系统内高校调入","301"],option:{show_length:1,describe:"",required:0,disabled:0,default_value:"",code_id:"S064",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"xqh",name:"校区",show_type:"Code",value:["主校区","5189fa35-f674-41dc-afee-a8765108aef7"],option:{show_length:1,describe:"校区",required:0,disabled:0,default_value:"",code_id:"@SchoolArea",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"did",name:"部门",show_type:"Code",value:["院领导","7176ebe5-06d8-41a0-a8b4-9e60bd76fd91"],option:{show_length:1,describe:"部门",required:0,disabled:0,default_value:"",code_id:"@Dept",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"pid",name:"岗位",show_type:"Code",value:["院领导-校长","1047048048204578816"],option:{show_length:1,describe:"岗位",required:0,disabled:0,default_value:"",code_id:"@Position",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"jrgw",name:"兼任岗位",show_type:"MultiCode",value:["院领导-校长,人事处(教师工作部)-科长","1047048048204578816,1229315523926294528"],option:{show_length:1,describe:"岗位",required:0,disabled:0,default_value:"",code_id:"@Position",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"bz",name:"编制",show_type:"Code",value:["正式事业编","11"],option:{show_length:1,describe:"",required:0,disabled:0,default_value:"",code_id:"S061",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"did_s",name:"三级部门",show_type:"MultiCode",value:["生物教研室,英语教研室","1002416718515011584,f3972866-8b8e-48c3-90a9-aba75978769s"],option:{show_length:1,describe:"",required:0,disabled:0,default_value:"",code_id:"@Dept_Sub",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"clxx_",name:"车辆信息",show_type:"LongText",value:"版本合并测试@推送",option:{max_length:32,show_length:1,describe:"",required:0,disabled:0,default_value:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"sfszjs_",name:"是否思政教师",show_type:"Code",value:["否","0"],option:{show_length:1,describe:"",required:0,disabled:0,default_value:"",code_id:"D003",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"zd_form_design_divider_1648626561513",name:"职称信息",show_type:"Divider",event_func:{onchange:"",onfocus:"",onblur:""}},{id:"xl",name:"职称系列",show_type:"Code",value:["本科生教学系列","0102"],option:{show_length:1,describe:"",required:0,disabled:0,default_value:"",code_id:"S062",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"zyjszwmc",name:"职称",show_type:"Code",value:["副教授","012"],option:{show_length:1,describe:"专业技术职务名称",required:0,disabled:0,default_value:"",code_id:"S024",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"zyjszwjb",name:"职称等级",show_type:"Code",value:["副高级","2"],option:{show_length:1,describe:"专业技术职务级别",required:0,disabled:0,default_value:"",code_id:"S025",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"zcpdsj_",name:"职称评定时间",show_type:"Date",value:"2023-02-15",option:{show_length:1,describe:"",required:0,disabled:0,default_value:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"zd_form_design_divider_1646733721118",name:"岗位信息",show_type:"Divider",event_func:{onchange:"",onfocus:"",onblur:""}},{id:"pygwlb",name:"聘用岗位类别",show_type:"Code",value:["教师岗位","1"],option:{show_length:1,describe:"岗位类别",required:0,disabled:0,default_value:"",code_id:"S019",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"pygwdj",name:"聘用岗位等级",show_type:"Code",value:["专业技术岗位一级","101"],option:{show_length:1,describe:"岗位等级",required:0,disabled:0,default_value:"",code_id:"S020",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"sjtgwlb",name:"双肩挑岗位类别",show_type:"Code",value:["其他专业技术岗位","2"],option:{show_length:1,describe:"岗位类别",required:0,disabled:0,default_value:"",code_id:"S019",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"sjtgwdj",name:"双肩挑岗位等级",show_type:"Code",value:["管理岗位一级","201"],option:{show_length:1,describe:"岗位等级",required:0,disabled:0,default_value:"",code_id:"S020",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"sfssxjs",name:"是否双师型教师",show_type:"Code",value:["否","0"],option:{show_length:1,describe:"是否",required:0,disabled:0,default_value:"",code_id:"D003",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"sfylxjl",name:"是否有留学经历",show_type:"Code",value:["",""],option:{show_length:1,describe:"是否",required:0,disabled:0,default_value:"",code_id:"D003",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"sfdwgzz",name:"是否党务工作者",show_type:"Code",value:["",""],option:{show_length:1,describe:"",required:0,disabled:0,default_value:"",code_id:"D003",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"sfszjs",name:"是否思政教师",show_type:"Code",value:["",""],option:{show_length:1,describe:"",required:0,disabled:0,default_value:"",code_id:"D003",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"zd_form_design_divider_1649836958267",name:"学历学位",show_type:"Divider",event_func:{onchange:"",onfocus:"",onblur:""}},{id:"zgxlm",name:"最高学历",show_type:"Code",value:["硕士研究生结业","15"],option:{show_length:1,describe:"学历(GB/T 4658-2006)",required:0,disabled:0,default_value:"",code_id:"S012",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"hdzgxldyxh",name:"获得最高学历的院校或机构",show_type:"Character",value:"",option:{max_length:64,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"zgxwcc",name:"最高学位层次",show_type:"Code",value:["硕士","3"],option:{show_length:1,describe:"",required:0,disabled:0,default_value:"",code_id:"S063",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"zgxwm",name:"最高学位",show_type:"Code",value:["历史学硕士学位","306"],option:{show_length:1,describe:"",required:0,disabled:0,default_value:"",code_id:"S028",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"hdzgxwdyxh",name:"获得最高学位的院校或机构",show_type:"Character",value:"",option:{max_length:64,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"zd_form_design_divider_1649837091716",name:"联系方式",show_type:"Divider",event_func:{onchange:"",onfocus:"",onblur:""}},{id:"lxdh",name:"联系电话",show_type:"Character",value:"1777777777777",option:{max_length:30,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"bgdh",name:"办公电话",show_type:"Character",option:{max_length:20,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"dzyx",name:"电子邮箱",show_type:"Character",option:{max_length:64,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"wxh",name:"微信号",show_type:"Character",option:{max_length:30,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"lxr",name:"联系人",show_type:"Character",value:"",option:{max_length:30,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"zd_form_design_divider_1626940437100",name:"其他",show_type:"Divider",event_func:{onchange:"",onfocus:"",onblur:""}},{id:"ywxm",name:"英文姓名",show_type:"Character",value:"asc666",option:{max_length:50,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"xmpy",name:"姓名拼音",show_type:"Character",value:"asc666",option:{max_length:50,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"cym",name:"曾用名",show_type:"Character",value:"3444444",option:{max_length:50,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"xbm",name:"性别",show_type:"Code",value:["男","1"],option:{show_length:1,describe:"性别 (GB/T 2261.1-2003)",required:0,disabled:0,default_value:"",code_id:"S002",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"csrq",name:"出生日期",show_type:"Date",value:"1992-03-08",option:{show_length:1,describe:"",required:0,disabled:0,default_value:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"csdm",name:"出生地",show_type:"Code",value:["北京市东城区","110101"],option:{show_length:1,describe:"行政区划 (GB/T 2260-2007)",required:0,disabled:0,default_value:"",code_id:"S001",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"jg",name:"籍贯",show_type:"Code",value:["黑龙江省佳木斯市","2308"],option:{show_length:1,describe:"行政区划 (GB/T 2260-2007)",required:0,disabled:0,default_value:"",code_id:"S001",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"mzm",name:"民族",show_type:"Code",value:["汉族","01"],option:{show_length:1,describe:"民族(GB/T 3304-1991)",required:0,disabled:0,default_value:"",code_id:"S006",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"gjdqm",name:"国籍/地区",show_type:"Code",value:["阿鲁巴","ABW"],option:{show_length:1,describe:"世界各国和地区名称(自GB/T 2659-2000)",required:0,disabled:0,default_value:"",code_id:"S005",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"sfzjlxm",name:"身份证件类型",show_type:"Code",value:["居民身份证","1"],option:{show_length:1,describe:"身份证件类型(JYT1001-SFZJLX)",required:0,disabled:0,default_value:"",code_id:"S007",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"sfzjh",name:"身份证件号",show_type:"Character",value:"460006199209202755",option:{max_length:30,show_length:1,describe:"",required:1,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"hyzkm",name:"婚姻状况",show_type:"Code",value:["未婚","10"],option:{show_length:1,describe:"婚姻状况(GB/T 2261.2-2003)",required:0,disabled:0,default_value:"",code_id:"S003",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"gatqwm",name:"港澳台侨外",show_type:"Code",value:["",""],option:{show_length:1,describe:"港澳台侨外(JYT1001-GATQW)",required:0,disabled:0,default_value:"",code_id:"S008",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"zzmmm",name:"政治面貌",show_type:"Code",value:["群众","13"],option:{show_length:1,describe:"政治面貌(GB/T 4762-1984)",required:0,disabled:0,default_value:"",code_id:"S009",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"jkzkm",name:"健康状况",show_type:"Code",value:["健康或良好","1"],option:{show_length:1,describe:"健康状况(GB/T 2261.3-2003)",required:0,disabled:0,default_value:"",code_id:"S004",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"xyzjm",name:"信仰宗教",show_type:"Code",value:["",""],option:{show_length:1,describe:"信仰宗教(GA 214.12-2004)",required:0,disabled:0,default_value:"",code_id:"S010",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"xxm",name:"血型",show_type:"Code",value:["未定","8"],option:{show_length:1,describe:"血型(JYT1001-XX)",required:0,disabled:0,default_value:"",code_id:"S011",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"sfzjyxq",name:"身份证件有效期",show_type:"Date",option:{show_length:1,describe:"",required:0,disabled:0,default_value:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"cjgzny",name:"参加工作年月",show_type:"YearMonth",value:"2019-10",option:{show_length:1,describe:"",required:0,disabled:0,default_value:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"lxrq",name:"来校日期",show_type:"Date",value:"2021-03-26",option:{show_length:1,describe:"",required:0,disabled:0,default_value:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"qxrq",name:"起薪日期",show_type:"Date",option:{show_length:1,describe:"",required:0,disabled:0,default_value:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"cjny",name:"从教年月",show_type:"YearMonth",value:"1900-01",option:{show_length:1,describe:"",required:0,disabled:0,default_value:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"dabhm",name:"档案编号",show_type:"Character",value:"",option:{max_length:10,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"dawb",name:"档案文本",show_type:"Character",value:"",option:{max_length:500,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"tc",name:"特长",show_type:"Character",value:"",option:{max_length:100,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"xklbm",name:"学科类别",show_type:"Code",value:["工学","08"],option:{show_length:1,describe:"学科类别码(学位授予和人才培养学科目录,前2位)",required:0,disabled:0,default_value:"",code_id:"S014",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"yjxkm",name:"一级学科",show_type:"Code",value:["哲学","0101"],option:{show_length:1,describe:"一级学科码(学位授予和人才培养学科目录,前4位)",required:0,disabled:0,default_value:"",code_id:"S015",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"ejxkm",name:"二级学科",show_type:"Code",value:["刑法学","030104"],option:{show_length:1,describe:"二级学科码(学位授予和人才培养学科目录)",required:0,disabled:0,default_value:"",code_id:"S016",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"yjfx",name:"研究方向",show_type:"Character",value:"",option:{max_length:100,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"hkszdm",name:"户口所在地",show_type:"Code",value:["北京市东城区","110101"],option:{show_length:1,describe:"行政区划 (GB/T 2260-2007)",required:0,disabled:0,default_value:"",code_id:"S001",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"hklbm",name:"户口类别",show_type:"Code",value:["",""],option:{show_length:1,describe:"户口类别码(GA 324.1-2001)",required:0,disabled:0,default_value:"",code_id:"S017",code_parent_select:0},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"dqzz",name:"当前住址",show_type:"Character",value:"海南省海口市龙华区幸福大道103号",option:{max_length:180,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"dqzzyzbm",name:"当前住址邮政编码",show_type:"Character",value:"122222",option:{max_length:6,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"sort",name:"显示顺序",show_type:"Integer",value:1,option:{show_length:1,describe:"",required:0,disabled:0,default_value:"",max_value:!1,min_value:!1},event_func:{onchange:"",onfocus:"",onblur:""}},{id:"yhkh",name:"银行卡号",show_type:"Character",value:"696563248955622446",option:{max_length:30,show_length:1,describe:"",required:0,disabled:0,default_value:"",input_type:0,regular:""},event_func:{onchange:"",onfocus:"",onblur:""}}],event_script:[],file:{allow:1,required:0,max_size:50,allow_type:[".doc",".docx",".rtf",".xls",".xlsx",".csv",".ppt",".pptx",".pdf",".png",".jpg",".jpeg",".gif",".bmp",".zip",".rar",".7z",".txt"],show_name:"其他文件材料",tag:[],only_one:0},file_list:[{id:"1013632160705282048",name:"附件3 导师聘期考核操作手册(导师端).docx",type:"word",path:"/hrms/upfiles/word/1013632160705282048.docx",tag:"",size:"1,078KB",createtime:"2022-08-29 10:12",createtby:"",createby_name:""},{id:"1082226633454125056",name:"微信截图_20230306161127.png",type:"image",path:"/hrms/upfiles/image/1082226633454125056.png",tag:"",size:"2KB",createtime:"2023-03-06 17:02",createtby:"",createby_name:""},{id:"1094804180058505216",name:"test.png",type:"image",path:"/hrms/upfiles/image/1094804180058505216.png",tag:"",size:"45KB",createtime:"2023-04-10 10:00",createtby:"",createby_name:""},{id:"1094804232256618496",name:"avt.jpg",type:"image",path:"/hrms/upfiles/image/1094804232256618496.jpg",tag:"",size:"301KB",createtime:"2023-04-10 10:01",createtby:"",createby_name:""},{id:"1188747649763770368",name:"微信截图_20231225151338.png",type:"image",path:"/hrms/upfiles/image/1188747649763770368.png",tag:"",size:"1KB",createtime:"2023-12-25 15:38",createtby:"",createby_name:""}],file_change:{delete:[],add:[]},data:{tid:"4F0DE8A4-FCDD-4BAF-8DE2-F874EDEBDBE0",dqztm:"11",jzglbm:"1",xqh:"5189fa35-f674-41dc-afee-a8765108aef7",did:"7176ebe5-06d8-41a0-a8b4-9e60bd76fd91",pid:"1047048048204578816",jrgw:["1047048048204578816","1229315523926294528"],gh:"asc666",xm:"asc666",ywxm:"asc666",xmpy:"asc666",cym:"3444444",xbm:"1",csrq:"1992-03-08",csdm:"110101",jg:"2308",mzm:"01",gjdqm:"ABW",sfzjlxm:"1",sfzjh:"460****2755",hyzkm:"10",gatqwm:"",zzmmm:"13",jkzkm:"1",xyzjm:"",xxm:"8",zp:"/hrms/upfiles/image/1324557836260212736.jpg",sfzjyxq:null,zgxlm:"15",whcdm:"",cjgzny:"2019-10",lxrq:"2021-03-26",qxrq:null,cjny:"1900-01",bzlbm:"",dabhm:"",dawb:"",tc:"",xklbm:"08",yjxkm:"0101",ejxkm:"030104",yjfx:"",hkszdm:"110101",hklbm:"",dqzz:"海南省****103号",dqzzyzbm:"122222",sfjzjs:"",sfssxjs:"0",lxr:"",wxh:null,lxdh:"177****7777",bgdh:null,dzyx:null,yhkh:"177****7777",sfylxjl:"",pygwmc:"",pygwlb:"1",pygwdj:"101",pyxngwdj:"",sjtgwlb:"2",sjtgwdj:"201",sort:1,zgxwm:"306",sfdwgzz:"",sfszjs:"",bz:"11",xl:"0102",jzgly:"301",xyjg:"1",zgxwcc:"3",hdzgxldyxh:"",hdzgxwdyxh:"",zyjszwmc:"012",zyjszwjb:"2",zcpdsj_:"2023-02-15",password_md5:null,did_s:["1002416718515011584","f3972866-8b8e-48c3-90a9-aba75978769s"],clxx_:"版本合并测试@推送",zyjszg_:"",ssxdj_:"",aaaa_:null,xzdy_:null,sfszjs_:"0",jxgw_:"05",jzbm_:null,zyxk_:null}},n=t.form.map((function(t){return Object.assign(t.data,{column:e.renderColumns(t.data.title)}),t}));this.tableList=n},imgErr:function(e){e.photo=""},openDrawer2:function(e,t){var n=this;this.drawer2.nodeInfo=e,this.drawer2.rowInfo=t,this.drawerShow2=!0,this.$nextTick((function(){n.$refs.detailFormRef2.init("/api/teacher/info/basic/detail/".concat(e.form_id,"/").concat(t.id))}))},uploadFile:function(e){var t=this,n=new FormData;return n.append("file",e),P(n).then((function(e){t.$Message.success("导入成功")}))},importDutySheetFun:function(){var e=this;return this.importDutySheet.loading=!0,this.importDutySheet.formData={begin:Q()(this.importDutySheet.date[0]).format("YYYY-MM-DD"),end:Q()(this.importDutySheet.date[1]).format("YYYY-MM-DD")},k(this.importDutySheet.formData).then((function(t){t&&(window.location.href=t.response),e.importDutySheet.loading=!1})).finally((function(){e.importDutySheet.loading=!1}))},importDutyFun:function(){var e=this;return this.importDuty.loading=!0,this.importDuty.formData={begin_time:Q()(this.importDuty.date[0]).format("YYYY-MM-DD"),end_time:Q()(this.importDuty.date[1]).format("YYYY-MM-DD")},api.getApiDutyRecordDutyRecordAllExportByAdmin(this.importDuty.formData,{responseType:"blob"}).then((function(t){l["a"](t,"".concat(e.importDuty.formData.begin_time+"至"+e.importDuty.formData.end_time,"值班数据")),e.importDuty.loading=!1})).finally((function(){e.importDuty.loading=!1}))},getData:function(){var e=this,t={begin:this.currentWeekRange[0],end:this.currentWeekRange[1]};this.loading=!0,g(t).then((function(t){e.loading=!1,e.timeGround=[],e.course=t.response,e.course[0].plandatas.forEach((function(t){e.timeGround.push({id:t.leader_id,typeName:t.leader_name})}))}))},formatDate:function(e,t,n){var a=e,o=t;o<10&&(o="0".concat(o));var i=n;return i<10&&(i="0".concat(i)),"".concat(a,"-").concat(o,"-").concat(i)},initData:function(e){var t=this,n="";n=e?new Date(e):new Date,this.currentDay=n.getDate(),this.currentYear=n.getFullYear(),this.currentMonth=n.getMonth()+1,this.currentWeek=n.getDay(),0===this.currentWeek&&(this.currentWeek=7);var a=this.formatDate(this.currentYear,this.currentMonth,this.currentDay);this.days.length=0;for(var o=this.currentWeek-1;o>=0;o-=1){var i=new Date(a);i.setDate(i.getDate()-o),this.days.push(i)}for(var r=1;r<=7-this.currentWeek;r+=1){var s=new Date(a);s.setDate(s.getDate()+r),this.days.push(s)}this.currentWeekRange=[this.formatDate(this.days[0].getFullYear(),this.days[0].getMonth()+1,this.days[0].getDate()),this.formatDate(this.days[6].getFullYear(),this.days[6].getMonth()+1,this.days[6].getDate())];var l=[];this.days.forEach((function(e){l.push("".concat(e.getMonth()+1,"/").concat(e.getDate()))})),this.defalultWeekGround.map((function(e,n){t.weekGround[n]=e+"(".concat(l[n],")")})),this.getData()},weekPre:function(){var e=this.days[0];e.setDate(e.getDate()-7),this.initData(e)},weekNext:function(){var e=this.days[6];e.setDate(e.getDate()+7),this.initData(e)},GetPersonByCondiction:function(){var e=this,t={page_index:1,page_size:1e4};Object(s["b"])(t).then((function(t){console.log("🚀🚀resp🚀,",t),e.peopleOption=t.data}))},clickCell:function(e,t){this.isAdmin&&(this.selectDate=t,this.selectItem=e,this.duty_daytime_people_id=e.duty_daytime_people_list.map((function(e){return e.id})),this.duty_night_people_id=e.duty_night_people_list.map((function(e){return e.id})),this.showModal=!0)},handleConfirm:function(){var e=this,t={duty_type_id:this.selectItem.duty_type_id,date:this.selectDate,record_id:this.selectItem.record_id,duty_daytime_people_id:this.duty_daytime_people_id,duty_night_people_id:this.duty_night_people_id};console.log(t),Object(s["a"])(t).then((function(t){e.handleModalLoading(),e.showModal=!1,e.$Message.success("安排成功"),e.duty_daytime_people_id=[],e.duty_night_people_id=[],e.getData()})).catch((function(){e.handleModalLoading()}))},handleModalLoading:function(){var e=this;this.modalLoading=!1,this.$nextTick((function(){e.modalLoading=!0}))},handleClose:function(){this.duty_daytime_people_id=[],this.duty_night_people_id=[]}},computed:{isAdmin:function(){JSON.parse(window.localStorage.getItem("admin"));return!0}}},I=G,N=(n("891d"),n("c162"),n("645a"),Object(R["a"])(I,a,o,!1,null,"f59624ac",null));t["default"]=N.exports},c048:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKcAAADICAMAAAC6agFRAAAAhFBMVEVHcEyAlf+Alf+Alf+Alf+Alf+Alf+Alf+Alf+quP+Alf+Alf+Alf+Alf+Alf+erv+Alf////+6xf+suf/4+f+InP/g5f+gsP+Qov/Ayv+Yqf/w8v+otv/Y3v+4xP+wvf/o6//I0f/Q2P+3wv+EmP+Lnv+ks/+Hm/+Wp/+Pof+vvP+drf8BoFlEAAAAEHRSTlMAoICwEPBgwEDcMCBQ4JC6qK/XcwAAAAlwSFlzAAALEgAACxIB0t1+/AAABJlJREFUeJzt3ety2jAQBWBDILRJ2toN90tIaJre3v/9OkDAtixZe9ZraTOj8ztMPrC8OiItZO8Z3Q5vJv3nW9Yp94M8TB4/d2E+jAMx88fvHaAPoZRHJx96H+zVPDnZ0Ek45snJhH4KyDw7edCb8E4WNODqvDoZ0FFI5tWJQ4Muz9IJQ2M5UWg0JwiN58SgEZ0QNKYTgUZ1AtC4Tjo0spMMje2kQqM7idD4ThpUgZME1eCkQFU4CVAdTj9UidML1eL0QdU4PVA9znaoImcrVJOzDarK2QLV5XRDlTmdUG1OF1Sd0wHV57RDFTqtUI1OG1Sl0wLV6WxClTobUK1OE6rWaUD1OutQxc4aVLOzCg3r/Ic5K9Cwzt+gs4SGdb6izis0rDN/40IDO19/MKGBnflPJjS0kwsN7sx/gUP0DA3vzPM/b39haAwnI8kpm+SUTXLKJjllk5yySU5HZtvVaruEHxbYud4Vp8wX4APDOvfFNS/YI4M6K0wUGtK5nFadBXTpQzoPNWYxRx4b0lkYQe76gM6F6dwDD47pXAEPTs5GPsp1z6eGU+l9FH0uredFcZj5fy7ynF9Pqa9Obd98gn6JgHNOvyv2UyZTwHl5kaaEK58v39fobg3+ls7O2fUlOtB+frF/WlCeUj2dnZWbGO2+SLo6q8P7WbFzw90IwXR0rmoTcYqfz6jp5jQmd7FT6pyb1WIrJ6unk3NrMosNPnFo6eKcmQWox1upi/OlySwKdKMhpoNzbWNibS2I89nqRAsGMXznk51J6yPhnOboLEPrI2DYzp2L2U8f4Tobh8dKNtJIvnO2aXH2MUSZzlUbs48+wnPaR2cZ+SHKczb6hxlHH9luig2vqrCcex/T0UfOq4UF5Tht/cOM7V3t99XC2gg4zoOfae0jl9XCadMMZ9voLNO8lcqNlrERMJyO/mHG7COVjZbRpnFn++gsYy7D6owA/3jEcbr7h5n6MqyfUeArDzu9o9OOMWYE/JYE6mwe3dyp9hGzXqEVAHS29w8zJab59MBzFOi0Ht3cufQRy9MDKwDm9PUPF8b29Pp8P5k4Osuc93LrzoCVP8jpOrq5cx6i9kXd2987KP3DzEvLzoAUJ8TZcnRzZ+1e1EhxApy0/mHmuWVRA8WJ7sRGZ5m2DYx+5elOav9AQi9OZOeyByZQnMhOoH8goRYnqtN/dOOF+t4J0ckZnbQQixPRSTq68UIrTjQnb3TSQqvMNCfcP5CQihPJ2cfoLEMqThQn/ejGC6U4UZys/oGEcOUJTuToxguhOPmd3P6BxF+c/E7w6MaLtzh5nejRjRfvlfc6e7+JzvHdSl5nTz3JjG82aXk9fXVEy/r07Un++33R6+Z+jv+fh6X/3yGb5JRNcsomOWWTnLJJTtkkp2ySUzbJKZvklE1yyiY5ZZOcsklO2SSnbJJTNskpm+SUTXLKJjllk5yySU7ZJKdsAn+PLTtZ9iGYk8Dfs8zN1yy7/QjO+yzLvihweDI4fhL5nWriMePR6aPdtV/58d3lM/2Dfhc4mi931y9zGA3UKsfD80W/SG+HNxN1GQwfjsosy/4DyyTTLCUInp8AAAAASUVORK5CYII="},c162:function(e,t,n){"use strict";n("1649")},e06f:function(e,t,n){"use strict";n("697b")},e191:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}));var a=n("b6bd");function o(e){return Object(a["a"])({url:"/api/Common/GetPersonByCondiction",method:"get",params:e})}function i(e){return Object(a["a"])({url:"/api/DutyRecord/DutyArrangeIns",method:"post",data:e})}},f9e9:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKgAAADICAMAAABLYVrcAAAAhFBMVEVHcEzycz3ycz3ycz3ycz3ycz3ycz3ycz3ycz33kWnycz3ycz3ycz3ycz31iFvycz3/////w7D83M/5uZ78r5T1lm7+vqn+9/TzfEn2n3r0hVX95dv3qIb0jWL6y7f71MP4sJLzeET97uf5wqv7qoz5m3f0glP4lnD2jGH9uaL9tJv5oH5TRpbOAAAAD3RSTlMAsNDg8DAQgEB+UKAgwD1bOEkqAAAACXBIWXMAAAsSAAALEgHS3X78AAADbElEQVR4nO3d23LaMBCAYZGUhCZtpdg4NgHMITQ9vf/7dUJCi4yNtetltcrsf2/mGys+IGmCeetu9MlytPtshjS+YlFaa6ePQ6RjnrO5hz4MkDI67fRhgJRt3N+gaOkto3MPxUqv2aE46YTT+Q5FSVlH/gDFSONAEdJIULg0FhQsjQaFSuNBgdKIUJg0JhQkjQqFSONCAdLI0HBpbGiwNDo0VBofGigVAA2TSoAGSUVAQ6QyoAFSIdB+qRRor1QMtE8qB9ojFQQ9L5UEPSsVBT0nlQU9IxUG7ZZKg3ZKxUG7pPKgHVKB0HapRGirVCS0TSoT2iIVCj2VSoWeSMVCm1K50IZUMNSXSoZ6Ul7odxj0WMoL/QmEHkl5oZtHtJQXCh77/1Jm6OY3VsoMtS/gwX+XckPtyy+clB1qN39QUn6otZsfuyms3bcoUEQThRKnUOoUSt0HhWYOVpZleV48yYceyvIiDehrq0UiUOfK5wF/BJxQ51yNpjJDXZknAnVuvkwE6spZIlDnMNd/FChGiodus966pfDRx0ODLt/lLG/lluDb1IWh+2b1qTSTCLW2ysumdC0Sam21ag5+JRNq7aJxUoHH80Ht0peWYqFNKexmygm1hQddgY5lhdrck4IuJ15o5Q0+6PHEC/VP6TPkSGbo0zEU9HRihvrvX5ADuaHe2EPeTLih3h0K8mWfG1phL3tuqHXIj2CHzlOBYj9CodQfodCukrmYUrk9JXPDT+YRmsxLSSqvecm8OCfzVWSLvej163Jr/lSJ3AmI6vjxKXhKp+EEzjvyQRtOsdOOs8b0qNCJ3OJkyQE6IBzQanG6MjIHOi8PLdbN2ft94AVRPDTLe6uzbRsStXQXZ4mxBjvjQBHOKFDoWlgkKG65nh+6At7oI0G36P1PrND5gK1PfNCyxu164YUO3/N2ceg8y9eDN+YNgtZFfyT7HIdCsVvCkCmUOoVSp1DqFEqdQqlTKHUKpU6h1CmUOoVSp1DqFEqdQqlTKHUKpU6h1CmUOoVSp1DqFErdB4UujxYVCZcPQ9L/pUOdQqlTKHUKpU6h1CmUOoVSp1DqFEqdQqlLCHonQBHQjblh/K11fCNjzH0K0IkxSZzS0f4fzXP+0D6uqxuThPTgNObLVwGczkb/nK+/Yj8Selav78fGGGPMX4XiaWOSThKMAAAAAElFTkSuQmCC"}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5e770356"],{"3e1a":function(e,t,a){},"4a50":function(e,t,a){"use strict";a.r(t);a("7f7f");var n=function(){var e=this,t=e._self._c;return t("div",[t("Card",{ref:"card",staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[t("Button",{attrs:{type:"primary",ghost:"",icon:"md-add"},on:{click:function(t){e.modal=!0}}},[e._v("\n 添加角色\n ")]),t("Table",{ref:"table",staticClass:"ivu-mt",attrs:{columns:e.columns,data:e.tableData,loading:e.loading},scopedSlots:e._u([{key:"action",fn:function(a){var n=a.row;return[t("div",{on:{click:function(e){e.stopPropagation(),e.preventDefault()}}},[t("a",{attrs:{type:"text"},on:{click:function(t){return e.handleEdit(n)}}},[e._v("编辑")]),t("Divider",{attrs:{type:"vertical"}}),t("a",{attrs:{type:"text"},on:{click:function(t){return e.handleMenu(n)}}},[e._v("菜单权限")]),t("Divider",{attrs:{type:"vertical"}}),t("a",{attrs:{type:"text"},on:{click:function(t){return e.handleDelete(n.id)}}},[e._v("删除")])],1)]}}])})],1),t("Modal",{attrs:{title:"添加角色",loading:e.modalLoading},on:{"on-ok":e.handleAdd},model:{value:e.modal,callback:function(t){e.modal=t},expression:"modal"}},[t("h3",{staticStyle:{"margin-bottom":"5px"}},[e._v("角色名称")]),t("Input",{attrs:{placeholder:"请输入角色名称"},model:{value:e.roleName,callback:function(t){e.roleName=t},expression:"roleName"}})],1),t("Modal",{attrs:{title:"编辑角色",loading:e.modalLoading},on:{"on-ok":e.saveEdit},model:{value:e.editModal,callback:function(t){e.editModal=t},expression:"editModal"}},[t("h3",{staticStyle:{"margin-bottom":"5px"}},[e._v("角色名称")]),t("Input",{attrs:{placeholder:"请输入角色名称"},model:{value:e.editName,callback:function(t){e.editName=t},expression:"editName"}})],1),t("Modal",{attrs:{title:"分配菜单",loading:e.modalLoading},on:{"on-ok":e.saveMenu},model:{value:e.menuModal,callback:function(t){e.menuModal=t},expression:"menuModal"}},[t("CheckboxGroup",{model:{value:e.userMenu,callback:function(t){e.userMenu=t},expression:"userMenu"}},e._l(e.menuData,(function(a){return t("Checkbox",{key:a.id,attrs:{label:a.id,border:""}},[e._v(e._s(a.name))])})),1)],1)],1)},i=[],o=(a("8e6e"),a("ac6a"),a("456d"),a("7514"),a("bd86")),l=a("7274");function d(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function r(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?d(Object(a),!0).forEach((function(t){Object(o["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):d(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var s={data:function(){return{modal:!1,editModal:!1,modalLoading:!0,searchValue:"",loading:!1,roleName:"",editName:"",tableData:[],roleId:"",columns:[{type:"index",title:"序号",align:"center",width:150},{title:"名称",key:"role_name"},{title:"操作",slot:"action",align:"center",fixed:"right"}],menuModal:!1,menuData:[],userMenu:[],editRow:{}}},created:function(){this.getData(),this.getMenuData()},methods:{getData:function(){var e=this,t={page_index:1,page_size:100,key:this.searchValue};this.loading=!0,l["b"](t).then((function(t){e.loading=!1,e.tableData=t.data}))},getMenuData:function(){var e=this;l["a"]().then((function(t){e.menuData=t}))},handleAdd:function(){var e=this;if(""==this.roleName)this.handleModalLoading(),this.$Message.warning("请输入角色名称");else{var t={role_name:this.roleName,capacity_info:[]};l["f"](t).then((function(t){e.modal=!1,e.$Message.success("添加成功"),e.roleName="",e.getData()})).catch((function(){e.handleModalLoading()}))}},handleEdit:function(e){this.editName=e.role_name,this.roleId=e.id,this.editRow=e,this.editModal=!0},saveEdit:function(){var e=this;if(""==this.editName)this.handleModalLoading(),this.$Message.warning("请输入角色名称");else{var t=r(r({},this.editRow),{},{role_name:this.editName,id:this.roleId});l["f"](t).then((function(t){e.editModal=!1,e.$Message.success("编辑成功"),e.editName="",e.getData()})).catch((function(){e.handleModalLoading()}))}},handleDelete:function(e){var t=this;this.$Modal.confirm({title:"确定要删除当前角色吗?",loading:!0,onOk:function(){var a={id:e,is_del:1};l["e"](a).then((function(){t.$Modal.remove(),t.$Message.success("删除成功"),t.getData()}))}})},handleMenu:function(e){this.editName=e.role_name,this.roleId=e.id,this.editRow=e,this.menuModal=!0,this.userMenu=e.capacity_info.map((function(e){return e.id}))},saveMenu:function(){var e=this,t=[];this.userMenu.map((function(a){t.push(e.menuData.find((function(e){return e.id==a})))}));var a=r(r({},this.editRow),{},{role_name:this.editName,id:this.roleId,capacity_id:this.userMenu.join(","),capacity_info:t});l["f"](a).then((function(t){e.menuModal=!1,e.$Message.success("分配成功"),e.getData()})).catch((function(t){e.handleModalLoading()}))},handleModalLoading:function(){var e=this;this.modalLoading=!1,this.$nextTick((function(){e.modalLoading=!0}))}}},c=s,u=(a("96f6"),a("2877")),h=Object(u["a"])(c,n,i,!1,null,"364e43c7",null);t["default"]=h.exports},"96f6":function(e,t,a){"use strict";a("3e1a")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5e770356"],{"3e1a":function(e,t,a){},"4a50":function(e,t,a){"use strict";a.r(t);a("7f7f");var n=function(){var e=this,t=e._self._c;return t("div",[t("Card",{ref:"card",staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[t("Button",{attrs:{type:"primary",ghost:"",icon:"md-add"},on:{click:function(t){e.modal=!0}}},[e._v("\n 添加角色\n ")]),t("Table",{ref:"table",staticClass:"ivu-mt",attrs:{columns:e.columns,data:e.tableData,loading:e.loading},scopedSlots:e._u([{key:"action",fn:function(a){var n=a.row;return[t("div",{on:{click:function(e){e.stopPropagation(),e.preventDefault()}}},[t("a",{attrs:{type:"text"},on:{click:function(t){return e.handleEdit(n)}}},[e._v("编辑")]),t("Divider",{attrs:{type:"vertical"}}),t("a",{attrs:{type:"text"},on:{click:function(t){return e.handleMenu(n)}}},[e._v("菜单权限")]),t("Divider",{attrs:{type:"vertical"}}),t("a",{attrs:{type:"text"},on:{click:function(t){return e.handleDelete(n.id)}}},[e._v("删除")])],1)]}}])})],1),t("Modal",{attrs:{title:"添加角色",loading:e.modalLoading},on:{"on-ok":e.handleAdd},model:{value:e.modal,callback:function(t){e.modal=t},expression:"modal"}},[t("h3",{staticStyle:{"margin-bottom":"5px"}},[e._v("角色名称")]),t("Input",{attrs:{placeholder:"请输入角色名称"},model:{value:e.roleName,callback:function(t){e.roleName=t},expression:"roleName"}})],1),t("Modal",{attrs:{title:"编辑角色",loading:e.modalLoading},on:{"on-ok":e.saveEdit},model:{value:e.editModal,callback:function(t){e.editModal=t},expression:"editModal"}},[t("h3",{staticStyle:{"margin-bottom":"5px"}},[e._v("角色名称")]),t("Input",{attrs:{placeholder:"请输入角色名称"},model:{value:e.editName,callback:function(t){e.editName=t},expression:"editName"}})],1),t("Modal",{attrs:{title:"分配菜单",loading:e.modalLoading},on:{"on-ok":e.saveMenu},model:{value:e.menuModal,callback:function(t){e.menuModal=t},expression:"menuModal"}},[t("CheckboxGroup",{model:{value:e.userMenu,callback:function(t){e.userMenu=t},expression:"userMenu"}},e._l(e.menuData,(function(a){return t("Checkbox",{key:a.id,attrs:{label:a.id,border:""}},[e._v(e._s(a.name))])})),1)],1)],1)},i=[],o=(a("8e6e"),a("ac6a"),a("456d"),a("7514"),a("bd86")),l=a("7274");function d(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function r(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?d(Object(a),!0).forEach((function(t){Object(o["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):d(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var s={data:function(){return{modal:!1,editModal:!1,modalLoading:!0,searchValue:"",loading:!1,roleName:"",editName:"",tableData:[],roleId:"",columns:[{type:"index",title:"序号",align:"center",width:150},{title:"名称",key:"role_name"},{title:"操作",slot:"action",align:"center",fixed:"right"}],menuModal:!1,menuData:[],userMenu:[],editRow:{}}},created:function(){this.getData(),this.getMenuData()},methods:{getData:function(){var e=this,t={page_index:1,page_size:100,key:this.searchValue};this.loading=!0,l["b"](t).then((function(t){e.loading=!1,e.tableData=t.data}))},getMenuData:function(){var e=this;l["a"]().then((function(t){e.menuData=t}))},handleAdd:function(){var e=this;if(""==this.roleName)this.handleModalLoading(),this.$Message.warning("请输入角色名称");else{var t={role_name:this.roleName,capacity_info:[]};l["d"](t).then((function(t){e.modal=!1,e.$Message.success("添加成功"),e.roleName="",e.getData()})).catch((function(){e.handleModalLoading()}))}},handleEdit:function(e){this.editName=e.role_name,this.roleId=e.id,this.editRow=e,this.editModal=!0},saveEdit:function(){var e=this;if(""==this.editName)this.handleModalLoading(),this.$Message.warning("请输入角色名称");else{var t=r(r({},this.editRow),{},{role_name:this.editName,id:this.roleId});l["d"](t).then((function(t){e.editModal=!1,e.$Message.success("编辑成功"),e.editName="",e.getData()})).catch((function(){e.handleModalLoading()}))}},handleDelete:function(e){var t=this;this.$Modal.confirm({title:"确定要删除当前角色吗?",loading:!0,onOk:function(){var a={id:e,is_del:1};l["c"](a).then((function(){t.$Modal.remove(),t.$Message.success("删除成功"),t.getData()}))}})},handleMenu:function(e){this.editName=e.role_name,this.roleId=e.id,this.editRow=e,this.menuModal=!0,this.userMenu=e.capacity_info.map((function(e){return e.id}))},saveMenu:function(){var e=this,t=[];this.userMenu.map((function(a){t.push(e.menuData.find((function(e){return e.id==a})))}));var a=r(r({},this.editRow),{},{role_name:this.editName,id:this.roleId,capacity_id:this.userMenu.join(","),capacity_info:t});l["d"](a).then((function(t){e.menuModal=!1,e.$Message.success("分配成功"),e.getData()})).catch((function(t){e.handleModalLoading()}))},handleModalLoading:function(){var e=this;this.modalLoading=!1,this.$nextTick((function(){e.modalLoading=!0}))}}},c=s,u=(a("96f6"),a("2877")),h=Object(u["a"])(c,n,i,!1,null,"364e43c7",null);t["default"]=h.exports},"96f6":function(e,t,a){"use strict";a("3e1a")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-888fcb32"],{"3ebf":function(e,t,a){"use strict";a("ab39")},5834:function(e,t,a){"use strict";a.r(t);a("7f7f");var n=function(){var e=this,t=e._self._c;return t("div",[t("Card",{ref:"card",staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[t("div",{staticClass:"top-condition"},[t("Input",{staticStyle:{width:"250px","margin-bottom":"5px"},attrs:{placeholder:"请输入关键字",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.doSearch.apply(null,arguments)}},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}}),t("Button",{staticStyle:{margin:"0 10px"},attrs:{type:"primary"},on:{click:e.doSearch}},[e._v("查找")]),t("Button",{attrs:{type:"primary",ghost:"",icon:"md-add"},on:{click:function(t){e.userModal=!0}}},[e._v("\n 添加权限\n ")])],1),t("Table",{ref:"table",staticClass:"ivu-mt",attrs:{columns:e.columns,data:e.tableData,loading:e.loading},scopedSlots:e._u([{key:"role_info",fn:function(a){var n=a.row;return e._l(n.role_info,(function(e,a){return t("p",{key:a},[t("Badge",{staticClass:"ivu-mb-8",attrs:{color:"管理员"==e.name?"orange":"blue",text:e.name}})],1)}))}},{key:"action",fn:function(a){var n=a.row;return[t("div",{on:{click:function(e){e.stopPropagation(),e.preventDefault()}}},[t("a",{attrs:{type:"text"},on:{click:function(t){return e.handleEdit(n)}}},[e._v("编辑")]),t("Divider",{attrs:{type:"vertical"}}),t("a",{attrs:{type:"text"},on:{click:function(t){return e.handleDelete(n.id)}}},[e._v("删除")])],1)]}}])}),t("div",{staticClass:"ivu-mt ivu-text-center"},[t("Page",{attrs:{total:e.total,current:e.pageIndex,"show-total":"","show-sizer":"","show-elevator":"","page-size":e.pageSize,"page-size-opts":[10,30,50,100]},on:{"update:current":function(t){e.pageIndex=t},"on-change":e.handleChangePage,"on-page-size-change":e.handleChangePageSize}})],1)],1),t("Modal",{attrs:{title:"编辑权限",loading:e.modalLoading,width:"30%"},on:{"on-ok":e.saveEdit,"on-cancel":e.handleCancel},model:{value:e.modal,callback:function(t){e.modal=t},expression:"modal"}},[t("CheckboxGroup",{model:{value:e.userRole,callback:function(t){e.userRole=t},expression:"userRole"}},e._l(e.allRole,(function(a){return t("Checkbox",{key:a.id,attrs:{label:a.id,border:""}},[e._v(e._s(a.name))])})),1)],1),t("Modal",{attrs:{title:"添加权限",loading:e.modalLoading,width:"50"},on:{"on-ok":e.handleAdd},model:{value:e.userModal,callback:function(t){e.userModal=t},expression:"userModal"}},[t("Form",{ref:"form",attrs:{model:e.formData,rules:e.formRule,"label-width":150}},[t("FormItem",{attrs:{label:"选择人员"}},[t("Select",{attrs:{filterable:""},model:{value:e.selectUser,callback:function(t){e.selectUser=t},expression:"selectUser"}},e._l(e.peopleOption,(function(a){return t("Option",{key:a.id,attrs:{value:a.id,label:a.name}},[t("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[t("p",[e._v(e._s(a.name)+"\n "),t("span",{staticStyle:{color:"#9a9a9a"}},[e._v("("+e._s(a.card)+")")])]),t("p",{staticStyle:{color:"#ccc"}},[e._v(e._s(a.dept_name))])])])})),1)],1),t("FormItem",{attrs:{label:"选择权限"}},[t("CheckboxGroup",{model:{value:e.userRole,callback:function(t){e.userRole=t},expression:"userRole"}},e._l(e.allRole,(function(a){return t("Checkbox",{key:a.id,attrs:{label:a.id,border:""}},[e._v(e._s(a.name))])})),1)],1)],1)],1)],1)},o=[],i=(a("8e6e"),a("ac6a"),a("456d"),a("bd86")),l=(a("7514"),a("28a5"),a("7274")),r=a("e191");function s(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function c(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?s(Object(a),!0).forEach((function(t){Object(i["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):s(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var d={data:function(){return{loading:!1,modal:!1,modalLoading:!0,searchValue:"",tableData:[],columns:[{type:"index",align:"center",width:60},{title:"卡号",key:"card",width:200},{title:"姓名",key:"name",width:200},{title:"角色",slot:"role_info"},{title:"操作",slot:"action",align:"center",width:150}],pageIndex:1,pageSize:10,total:0,allRole:[],userRole:[],cardNumber:"",editRow:{},userModal:!1,formData:{},formRule:{},peopleOption:[],selectUser:""}},created:function(){this.getData(),this.getRoleList(),this.GetPersonByCondiction()},methods:{getData:function(){var e=this,t={page_index:this.pageIndex,page_size:this.pageSize,key_name:this.searchValue};this.loading=!0,l["d"](t).then((function(t){e.loading=!1,e.tableData=t.data,e.total=t.data_count}))},getRoleList:function(){var e=this;l["c"]().then((function(t){e.allRole=t}))},doSearch:function(){this.pageIndex=1,this.getData()},handleChangePage:function(e){this.pageIndex=e,this.getData()},handleChangePageSize:function(e){this.pageIndex=1,this.pageSize=e,this.getData()},handleEdit:function(e){this.editRow=e,this.modal=!0,e.role_info.length&&(this.userRole=e.role_id.split(";"))},saveEdit:function(){var e=this,t=[];this.userRole.map((function(a){t.push(e.allRole.find((function(e){return e.id==a})))}));var a=c(c({},this.editRow),{},{role_id:this.userRole.join(","),role_info:t});l["h"](a).then((function(t){e.handleModalLoading(),e.modal=!1,e.$Message.success("添加成功"),e.userRole=[],e.getData()})).catch((function(){e.handleModalLoading()}))},handleCancel:function(){this.userRole=[]},GetPersonByCondiction:function(){var e=this,t={page_index:1,page_size:1e4};Object(r["b"])(t).then((function(t){e.peopleOption=t.data}))},handleAdd:function(){var e=this,t=[];this.userRole.map((function(a){t.push(e.allRole.find((function(e){return e.id==a})))}));var a={userid:this.selectUser,role_id:this.userRole.join(","),role_info:t};l["h"](a).then((function(t){e.handleModalLoading(),e.userModal=!1,e.$Message.success("添加成功"),e.getData()})).catch((function(){e.handleModalLoading()}))},handleModalLoading:function(){var e=this;this.modalLoading=!1,this.$nextTick((function(){e.modalLoading=!0}))},handleDelete:function(e){var t=this;this.$Modal.confirm({title:"确定要删除吗?",loading:!0,onOk:function(){var a={id:e,is_del:1};l["g"](a).then((function(){t.$Modal.remove(),t.$Message.success("删除成功"),t.getData()}))}})}}},u=d,h=(a("3ebf"),a("2877")),f=Object(h["a"])(u,n,o,!1,null,"149d11d0",null);t["default"]=f.exports},ab39:function(e,t,a){},e191:function(e,t,a){"use strict";a.d(t,"b",(function(){return o})),a.d(t,"a",(function(){return i}));var n=a("b6bd");function o(e){return Object(n["a"])({url:"/api/Common/GetPersonByCondiction",method:"get",params:e})}function i(e){return Object(n["a"])({url:"/api/DutyRecord/DutyArrangeIns",method:"post",data:e})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9d4c7a22"],{5834:function(e,t,a){"use strict";a.r(t);a("7f7f");var n=function(){var e=this,t=e._self._c;return t("div",[t("Card",{ref:"card",staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[t("div",{staticClass:"top-condition"},[t("Button",{staticStyle:{margin:"0 10px"},attrs:{type:"primary",ghost:"",icon:"md-add"},on:{click:function(t){e.userModal=!0}}},[e._v("\n 添加权限\n ")]),t("Input",{staticStyle:{width:"250px","margin-bottom":"5px"},attrs:{placeholder:"请输入关键字",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.doSearch.apply(null,arguments)}},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}}),t("Button",{staticStyle:{margin:"0 10px"},attrs:{type:"primary"},on:{click:e.doSearch}},[e._v("查找")]),t("Button",{staticStyle:{margin:"0 0 5px"},attrs:{type:"default"},on:{click:e.doReset}},[e._v("重置")])],1),t("Table",{ref:"table",staticClass:"ivu-mt",attrs:{columns:e.columns,data:e.tableData,loading:e.loading},scopedSlots:e._u([{key:"role_list",fn:function(a){var n=a.row;return e._l(n.role_list,(function(e,a){return t("p",{key:a},[t("Badge",{staticClass:"ivu-mb-8",attrs:{color:"blue",text:e.role_name}})],1)}))}},{key:"dept_list",fn:function(a){var n=a.row;return e._l(n.dept_list,(function(e,a){return t("p",{key:a},[t("Badge",{staticClass:"ivu-mb-8",attrs:{color:"blue",text:e.name}})],1)}))}},{key:"action",fn:function(a){var n=a.row;return[t("div",{on:{click:function(e){e.stopPropagation(),e.preventDefault()}}},[t("a",{attrs:{type:"text"},on:{click:function(t){return e.handleEdit(n)}}},[e._v("编辑")])])]}}])}),t("div",{staticClass:"ivu-mt ivu-text-center"},[t("Page",{attrs:{total:e.total,current:e.pageIndex,"show-total":"","show-sizer":"","show-elevator":"","page-size":e.pageSize,"page-size-opts":[10,30,50,100]},on:{"update:current":function(t){e.pageIndex=t},"on-change":e.handleChangePage,"on-page-size-change":e.handleChangePageSize}})],1)],1),t("Modal",{attrs:{title:"编辑权限",loading:e.modalLoading,width:"50%"},on:{"on-ok":e.saveEdit,"on-cancel":e.handleCancel},model:{value:e.modal,callback:function(t){e.modal=t},expression:"modal"}},[t("Form",{ref:"formEdit",attrs:{model:e.formDataEdit,rules:e.formRuleEdit,"label-width":150}},[t("FormItem",{attrs:{label:"选择人员"}},[t("Select",{attrs:{disabled:"",filterable:""},model:{value:e.selectUser,callback:function(t){e.selectUser=t},expression:"selectUser"}},e._l(e.peopleOptionDefault,(function(a){return t("Option",{key:a.userroleid,attrs:{value:a.userroleid,label:a.username}},[t("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[t("p",[e._v(e._s(a.usercard)+"\n "),t("span",{staticStyle:{color:"#9a9a9a"}},[e._v("("+e._s(a.username)+")")])])])])})),1)],1),t("FormItem",{attrs:{label:"分管权限"}},[t("CheckboxGroup",{model:{value:e.userRole,callback:function(t){e.userRole=t},expression:"userRole"}},e._l(e.allRole,(function(a){return t("Checkbox",{key:a.id,attrs:{label:a.id,border:""}},[e._v(e._s(a.name))])})),1)],1),t("FormItem",{attrs:{label:"分管院系"}},[t("CheckboxGroup",{model:{value:e.userDept,callback:function(t){e.userDept=t},expression:"userDept"}},e._l(e.allDept,(function(a){return t("Checkbox",{key:a.id,attrs:{label:a.id,border:""}},[e._v(e._s(a.name))])})),1)],1)],1)],1),e._v("ß\n\n "),t("Modal",{attrs:{title:"添加权限",loading:e.modalLoading,width:"50"},on:{"on-ok":e.handleAdd},model:{value:e.userModal,callback:function(t){e.userModal=t},expression:"userModal"}},[t("Form",{ref:"form",attrs:{model:e.formData,rules:e.formRule,"label-width":150}},[t("FormItem",{attrs:{label:"选择人员"}},[t("Select",{attrs:{filterable:""},model:{value:e.selectUser,callback:function(t){e.selectUser=t},expression:"selectUser"}},e._l(e.peopleOption,(function(a){return t("Option",{key:a.userid,attrs:{value:a.userid,label:a.username}},[t("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[t("p",[e._v(e._s(a.usercard)+"\n "),t("span",{staticStyle:{color:"#9a9a9a"}},[e._v("("+e._s(a.username)+")")])])])])})),1)],1),t("FormItem",{attrs:{label:"分管权限"}},[t("CheckboxGroup",{model:{value:e.userRole,callback:function(t){e.userRole=t},expression:"userRole"}},e._l(e.allRole,(function(a){return t("Checkbox",{key:a.id,attrs:{label:a.id,border:""}},[e._v(e._s(a.name))])})),1)],1),t("FormItem",{attrs:{label:"分管院系"}},[t("CheckboxGroup",{model:{value:e.userDept,callback:function(t){e.userDept=t},expression:"userDept"}},e._l(e.allDept,(function(a){return t("Checkbox",{key:a.id,attrs:{label:a.id,border:""}},[e._v(e._s(a.name))])})),1)],1)],1)],1)],1)},o=[],l=a("597f"),r=a("7274"),i=(a("e191"),a("61be")),s={data:function(){return{userInfo:this.$store.state.admin.user.info,formDataEdit:{},formRuleEdit:{},loading:!1,modal:!1,modalLoading:!0,searchValue:"",tableData:[],columns:[{type:"index",align:"center",width:60},{title:"卡号",key:"usercard",width:200},{title:"姓名",key:"username",width:200},{title:"分管权限",slot:"role_list"},{title:"分管部门",slot:"dept_list"},{title:"操作",slot:"action",align:"center",width:150}],pageIndex:1,pageSize:10,total:0,allRole:[],userRole:[],allDept:[],userDept:[],cardNumber:"",editRow:{},userModal:!1,formData:{},formRule:{},peopleOption:[],peopleOptionDefault:[],selectUser:""}},created:function(){console.log("🚀🚀用户信息🚀,",this.userInfo),this.getData(),this.getRoleList(),this.getDeptAllList()},methods:{getData:function(){var e=this,t={card_name:this.searchValue,page_index:this.pageIndex,page_size:this.pageSize};this.loading=!0,l["j"](t).then((function(t){e.loading=!1,e.tableData=t.response.data,e.total=t.response.data_count,e.GetPersonByCondiction()}))},getRoleList:function(){var e=this;l["k"]().then((function(t){e.allRole=t.response}))},getDeptAllList:function(){var e=this;l["b"]().then((function(t){e.allDept=t.response}))},doReset:function(){this.pageIndex=1,this.searchValue="",this.getData()},doSearch:function(){this.pageIndex=1,this.getData()},handleChangePage:function(e){this.pageIndex=e,this.getData()},handleChangePageSize:function(e){this.pageIndex=1,this.pageSize=e,this.getData()},handleEdit:function(e){var t=this;i["b"]((function(){return l["i"]({id:e.userroleid}).then((function(a){return console.log(e),t.selectUser=e.userroleid,t.userRole=a.response.role_list.map((function(e){return e.role_id})),t.userDept=a.response.dept_list.map((function(e){return e.id})),t.modal=!0,a}))}),!0,"加载中...")},saveEdit:function(){var e=this,t={userroleid:this.selectUser,dept_list:this.userDept.map((function(e){return{id:e,name:""}})),role_list:this.userRole.map((function(e){return{role_id:e,role_name:""}}))};i["b"]((function(){return l["r"](t).then((function(t){return e.modal=!1,e.getData(),t}))}))},handleCancel:function(){this.userRole=[]},GetPersonByCondiction:function(){var e=this,t={page_index:1,page_size:1e4};l["j"](t).then((function(t){e.peopleOption=t.response.data.filter((function(e){return!e.dept_list.length})),e.peopleOptionDefault=t.response.data.map((function(e){return{userroleid:e.userroleid,username:e.username}}))}))},handleAdd:function(){var e=this,t={userid:this.selectUser,dept_list:this.userDept.map((function(e){return{id:e,name:""}})),role_list:this.userRole.map((function(e){return{role_id:e,role_name:""}}))};l["q"](t).then((function(t){e.handleModalLoading(),e.userModal=!1,e.$Message.success("添加成功"),e.getData()})).catch((function(){e.handleModalLoading()}))},handleModalLoading:function(){var e=this;this.modalLoading=!1,this.$nextTick((function(){e.modalLoading=!0}))},handleDelete:function(e){var t=this;this.$Modal.confirm({title:"确定要删除吗?",loading:!0,onOk:function(){var a={id:e,is_del:1};r["e"](a).then((function(){t.$Modal.remove(),t.$Message.success("删除成功"),t.getData()}))}})}}},u=s,c=(a("6d3d"),a("2877")),d=Object(c["a"])(u,n,o,!1,null,"060d5388",null);t["default"]=d.exports},"58c8":function(e,t,a){},"6d3d":function(e,t,a){"use strict";a("58c8")},e191:function(e,t,a){"use strict";a.d(t,"b",(function(){return o})),a.d(t,"a",(function(){return l}));var n=a("b6bd");function o(e){return Object(n["a"])({url:"/api/Common/GetPersonByCondiction",method:"get",params:e})}function l(e){return Object(n["a"])({url:"/api/DutyRecord/DutyArrangeIns",method:"post",data:e})}}}]);
\ No newline at end of file
import { type AxiosRequestConfig } from "axios";
/**
* 获取用户权限
* /api/Common/GetCurrentUserRoleList
*/
export declare function getApiCommonGetCurrentUserRoleList(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/Common/GetCurrentUserRoleList
*/
export function getApiCommonGetCurrentUserRoleList(config) {
return request.get(`/api/Common/GetCurrentUserRoleList`, config);
}
......@@ -3,7 +3,7 @@ import { type AxiosRequestConfig } from "axios";
* 获取分管部门--根据权限
* /api/Common/GetDeptList
*/
export declare function getApiCommonGetDeptList(config?: AxiosRequestConfig): import("axios").AxiosPromise<{
export declare function getApiCommonGetDeptList(params: GetApiCommonGetDeptListParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
......@@ -13,3 +13,6 @@ export declare function getApiCommonGetDeptList(config?: AxiosRequestConfig): im
id: string;
}[];
}>;
export interface GetApiCommonGetDeptListParams {
role_id: string;
}
......@@ -3,6 +3,12 @@ import request from "@/plugins/request";
* 获取分管部门--根据权限
* /api/Common/GetDeptList
*/
export function getApiCommonGetDeptList(config) {
return request.get(`/api/Common/GetDeptList`, config);
export function getApiCommonGetDeptList(params, config) {
const paramsInput = {
role_id: params.role_id,
};
return request.get(`/api/Common/GetDeptList`, {
params: paramsInput,
...config,
});
}
......@@ -4,3 +4,4 @@ export * from "./postApiCommonGetUserList";
export * from "./postApiCommonGetRoleList";
export * from "./getApiCommonGetMenuRole";
export * from "./getApiCommonGetAheadWriteSwitch";
export * from "./getApiCommonGetCurrentUserRoleList";
......@@ -4,3 +4,4 @@ export * from "./postApiCommonGetUserList";
export * from "./postApiCommonGetRoleList";
export * from "./getApiCommonGetMenuRole";
export * from "./getApiCommonGetAheadWriteSwitch";
export * from "./getApiCommonGetCurrentUserRoleList";
import { type AxiosRequestConfig } from "axios";
import { type UserListRequest } from "../../interface";
/**
* 获取中层干部
* /api/Common/GetUserList
*/
export declare function postApiCommonGetUserList(input?: string[], config?: AxiosRequestConfig): import("axios").AxiosPromise<{
export declare function postApiCommonGetUserList(input?: UserListRequest, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
......
......@@ -3,4 +3,5 @@ export * from "./getApiPlanProjectPlanProjectAheadInit";
export * from "./postApiPlanProjectPlanProjectSave";
export * from "./postApiPlanProjectGetPlanProjectByWeekList";
export * from "./postApiPlanProjectGetPlanProjectByDayList";
export * from "./postApiPlanProjectGetPlanScheduleByDayList";
export * from "./getApiPlanProjectGetPlanProjectByMyList";
......@@ -3,4 +3,5 @@ export * from "./getApiPlanProjectPlanProjectAheadInit";
export * from "./postApiPlanProjectPlanProjectSave";
export * from "./postApiPlanProjectGetPlanProjectByWeekList";
export * from "./postApiPlanProjectGetPlanProjectByDayList";
export * from "./postApiPlanProjectGetPlanScheduleByDayList";
export * from "./getApiPlanProjectGetPlanProjectByMyList";
import { type AxiosRequestConfig } from "axios";
import { type PlanScheduleByDayListRequest } from "../../interface";
/**
* 日程天视图
* /api/PlanProject/GetPlanScheduleByDayList
*/
export declare function postApiPlanProjectGetPlanScheduleByDayList(input?: PlanScheduleByDayListRequest, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
id: string;
date: string;
week: string;
createtime: string;
userid: string;
usercard: string;
username: string;
dept_id: string;
dept_name: string;
leader_nature_id: string;
leader_nature_name: string;
schedule: {
plan_list: {
id: string;
date: string;
begin: string;
end: string;
content: string;
}[];
duty_list: {
id: string;
date: string;
begin: string;
end: string;
content: string;
}[];
meet_list: {
id: string;
date: string;
begin: string;
end: string;
content: string;
}[];
};
}[];
}>;
import request from "@/plugins/request";
/**
* 日程天视图
* /api/PlanProject/GetPlanScheduleByDayList
*/
export function postApiPlanProjectGetPlanScheduleByDayList(input, config) {
return request.post(`/api/PlanProject/GetPlanScheduleByDayList`, input, config);
}
......@@ -48,4 +48,5 @@ export declare function getApiPlanScheduleGetPlanScheduleCalendar(params: GetApi
export interface GetApiPlanScheduleGetPlanScheduleCalendarParams {
begin: string;
end: string;
role_id: string;
}
......@@ -7,6 +7,7 @@ export function getApiPlanScheduleGetPlanScheduleCalendar(params, config) {
const paramsInput = {
begin: params.begin,
end: params.end,
role_id: params.role_id,
};
return request.get(`/api/PlanSchedule/GetPlanScheduleCalendar`, {
params: paramsInput,
......
import { type AxiosRequestConfig } from "axios";
/**
* 手动推送
* /api/PlanSchedule/ScheduleMegPush
*/
export declare function getApiPlanScheduleScheduleMegPush(params: GetApiPlanScheduleScheduleMegPushParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
export interface GetApiPlanScheduleScheduleMegPushParams {
date: string;
leader_number: string;
}
import request from "@/plugins/request";
/**
* 手动推送
* /api/PlanSchedule/ScheduleMegPush
*/
export function getApiPlanScheduleScheduleMegPush(params, config) {
const paramsInput = {
date: params.date,
leader_number: params.leader_number,
};
return request.get(`/api/PlanSchedule/ScheduleMegPush`, {
params: paramsInput,
...config,
});
}
......@@ -6,3 +6,4 @@ export * from "./postApiPlanSchedulePlanScheduleDel";
export * from "./getApiPlanScheduleGetPlanScheduleTrackList";
export * from "./getApiPlanSchedulePlanScheduleTemplate";
export * from "./postApiPlanSchedulePlanScheduleImport";
export * from "./getApiPlanScheduleScheduleMegPush";
......@@ -6,3 +6,4 @@ export * from "./postApiPlanSchedulePlanScheduleDel";
export * from "./getApiPlanScheduleGetPlanScheduleTrackList";
export * from "./getApiPlanSchedulePlanScheduleTemplate";
export * from "./postApiPlanSchedulePlanScheduleImport";
export * from "./getApiPlanScheduleScheduleMegPush";
......@@ -16,5 +16,6 @@ export declare function getApiSysConfigSysConfigInit(config?: AxiosRequestConfig
nowrite_remind: string;
ahead_write: string;
write_remind: string;
timing_switch: number;
};
}>;
import { type AxiosRequestConfig } from "axios";
/**
* 获取定时开关
* /api/SysConfig/TimingSwitchInit
*/
export declare function getApiSysConfigTimingSwitchInit(config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
import request from "@/plugins/request";
/**
* 获取定时开关
* /api/SysConfig/TimingSwitchInit
*/
export function getApiSysConfigTimingSwitchInit(config) {
return request.get(`/api/SysConfig/TimingSwitchInit`, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 保存定时开关
* /api/SysConfig/TimingSwitchSave
*/
export declare function getApiSysConfigTimingSwitchSave(params: GetApiSysConfigTimingSwitchSaveParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
export interface GetApiSysConfigTimingSwitchSaveParams {
timing_switch: number;
}
import request from "@/plugins/request";
/**
* 保存定时开关
* /api/SysConfig/TimingSwitchSave
*/
export function getApiSysConfigTimingSwitchSave(params, config) {
const paramsInput = {
timing_switch: params.timing_switch,
};
return request.get(`/api/SysConfig/TimingSwitchSave`, {
params: paramsInput,
...config,
});
}
export * from "./getApiSysConfigSysConfigInit";
export * from "./postApiSysConfigSysConfigSave";
export * from "./getApiSysConfigTimingSwitchInit";
export * from "./getApiSysConfigTimingSwitchSave";
export * from "./getApiSysConfigSysConfigInit";
export * from "./postApiSysConfigSysConfigSave";
export * from "./getApiSysConfigTimingSwitchInit";
export * from "./getApiSysConfigTimingSwitchSave";
import { type AxiosRequestConfig } from "axios";
/**
* 定时推送
* /api/TimeTask/MessageTimedPush
*/
export declare function getApiTimeTaskMessageTimedPush(config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
import request from "@/plugins/request";
/**
* 定时推送
* /api/TimeTask/MessageTimedPush
*/
export function getApiTimeTaskMessageTimedPush(config) {
return request.get(`/api/TimeTask/MessageTimedPush`, config);
}
export * from "./getApiTimeTaskNoWriteRemind";
export * from "./getApiTimeTaskWriteRemind";
export * from "./getApiTimeTaskMessageTimedPush";
export * from "./getApiTimeTaskNoWriteRemind";
export * from "./getApiTimeTaskWriteRemind";
export * from "./getApiTimeTaskMessageTimedPush";
......@@ -37,6 +37,10 @@ export declare function getApiUserRoleGetUserRoleList(params: GetApiUserRoleGetU
id: string;
name: string;
}[];
role_list: {
role_id: string;
role_name: string;
}[];
};
}[];
query: {
......@@ -44,6 +48,7 @@ export declare function getApiUserRoleGetUserRoleList(params: GetApiUserRoleGetU
};
}>;
export interface GetApiUserRoleGetUserRoleListParams {
card_name?: string;
page_index?: number;
page_size?: number;
}
......@@ -5,6 +5,7 @@ import request from "@/plugins/request";
*/
export function getApiUserRoleGetUserRoleList(params, config) {
const paramsInput = {
card_name: params.card_name,
page_index: params.page_index,
page_size: params.page_size,
};
......
......@@ -37,6 +37,10 @@ export declare function getApiUserRoleGetUserRoleSearch(params: GetApiUserRoleGe
id: string;
name: string;
}[];
role_list: {
role_id: string;
role_name: string;
}[];
};
}[];
query: {
......
......@@ -2,4 +2,5 @@ export * from "./getApiUserRoleGetUserRoleList";
export * from "./getApiUserRoleGetUserRoleInfo";
export * from "./getApiUserRoleGetUserRoleSearch";
export * from "./getApiUserRoleUserRoleIns";
export * from "./postApiUserRoleUserRoleDepIns";
export * from "./postApiUserRoleUserRoleSave";
......@@ -2,4 +2,5 @@ export * from "./getApiUserRoleGetUserRoleList";
export * from "./getApiUserRoleGetUserRoleInfo";
export * from "./getApiUserRoleGetUserRoleSearch";
export * from "./getApiUserRoleUserRoleIns";
export * from "./postApiUserRoleUserRoleDepIns";
export * from "./postApiUserRoleUserRoleSave";
import { type AxiosRequestConfig } from "axios";
import { type UserRoleDepInsRequest } from "../../interface";
/**
* 用户权限和所管部门创建
* /api/UserRole/UserRoleDepIns
*/
export declare function postApiUserRoleUserRoleDepIns(input?: UserRoleDepInsRequest, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
import request from "@/plugins/request";
/**
* 用户权限和所管部门创建
* /api/UserRole/UserRoleDepIns
*/
export function postApiUserRoleUserRoleDepIns(input, config) {
return request.post(`/api/UserRole/UserRoleDepIns`, input, config);
}
export interface PlanScheduleByDayListRequest {
role_id?: string;
date?: string;
dept_id_list?: string[];
tid_list?: string[];
}
import { type ScheduleData } from "../../interface";
export interface PlanScheduleDayViewModel {
id?: string;
date?: string;
week?: string;
createtime?: string;
userid?: string;
usercard?: string;
username?: string;
dept_id?: string;
dept_name?: string;
leader_nature_id?: string;
leader_nature_name?: string;
schedule?: ScheduleData;
}
import { type PlanScheduleDayViewModel } from "../../interface";
export interface PlanScheduleDayViewModelListMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: PlanScheduleDayViewModel[];
}
......@@ -6,4 +6,5 @@ export interface SysConfig {
nowrite_remind?: string;
ahead_write?: string;
write_remind?: string;
timing_switch?: number;
}
export interface UserListRequest {
role_id: string;
dept_list?: string[];
}
import { type Dept, type RoleModel } from "../../interface";
export interface UserRoleDepInsRequest {
userid: string;
dept_list?: Dept[];
role_list?: RoleModel[];
}
import { type Dept } from "../../interface";
import { type Dept, type RoleModel } from "../../interface";
export interface UserRoleViewModel {
userroleid?: string;
userid?: string;
usercard?: string;
username?: string;
dept_list?: Dept[];
role_list?: RoleModel[];
}
......@@ -3,6 +3,7 @@ export * from "./apiTypes/PlanProjectDayViewModelListMessageModel";
export * from "./apiTypes/StringMessageModel";
export * from "./apiTypes/SelectResponses";
export * from "./apiTypes/SelectResponsesListMessageModel";
export * from "./apiTypes/UserListRequest";
export * from "./apiTypes/MenuRoleViewModel";
export * from "./apiTypes/MenuRoleViewModelMessageModel";
export * from "./apiTypes/WeekplanFile";
......@@ -22,9 +23,12 @@ export * from "./apiTypes/ViewRequests";
export * from "./apiTypes/WeekData";
export * from "./apiTypes/PlanProjectWeekViewModel";
export * from "./apiTypes/PlanProjectWeekViewModelListMessageModel";
export * from "./apiTypes/PlanProjectMessageModel";
export * from "./apiTypes/PlanScheduleByDayListRequest";
export * from "./apiTypes/ScheduleGroup";
export * from "./apiTypes/ScheduleData";
export * from "./apiTypes/PlanScheduleDayViewModel";
export * from "./apiTypes/PlanScheduleDayViewModelListMessageModel";
export * from "./apiTypes/PlanProjectMessageModel";
export * from "./apiTypes/PlanScheduleData";
export * from "./apiTypes/PlanScheduleCalendarViewModel";
export * from "./apiTypes/PlanScheduleCalendarViewModelListMessageModel";
......@@ -40,12 +44,13 @@ export * from "./apiTypes/SysConfigMessageModel";
export * from "./apiTypes/Option";
export * from "./apiTypes/TableTitle";
export * from "./apiTypes/Dept";
export * from "./apiTypes/RoleModel";
export * from "./apiTypes/UserRoleViewModel";
export * from "./apiTypes/UserRoleViewModelMessageModel";
export * from "./apiTypes/UserRoleViewModelMessageModelPageModel";
export * from "./apiTypes/RoleModel";
export * from "./apiTypes/UserRoleInfoViewModel";
export * from "./apiTypes/UserRoleInfoViewModelMessageModel";
export * from "./apiTypes/UserRoleDepInsRequest";
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]>;
......
......@@ -3,6 +3,7 @@ export * from "./apiTypes/PlanProjectDayViewModelListMessageModel";
export * from "./apiTypes/StringMessageModel";
export * from "./apiTypes/SelectResponses";
export * from "./apiTypes/SelectResponsesListMessageModel";
export * from "./apiTypes/UserListRequest";
export * from "./apiTypes/MenuRoleViewModel";
export * from "./apiTypes/MenuRoleViewModelMessageModel";
export * from "./apiTypes/WeekplanFile";
......@@ -22,9 +23,12 @@ export * from "./apiTypes/ViewRequests";
export * from "./apiTypes/WeekData";
export * from "./apiTypes/PlanProjectWeekViewModel";
export * from "./apiTypes/PlanProjectWeekViewModelListMessageModel";
export * from "./apiTypes/PlanProjectMessageModel";
export * from "./apiTypes/PlanScheduleByDayListRequest";
export * from "./apiTypes/ScheduleGroup";
export * from "./apiTypes/ScheduleData";
export * from "./apiTypes/PlanScheduleDayViewModel";
export * from "./apiTypes/PlanScheduleDayViewModelListMessageModel";
export * from "./apiTypes/PlanProjectMessageModel";
export * from "./apiTypes/PlanScheduleData";
export * from "./apiTypes/PlanScheduleCalendarViewModel";
export * from "./apiTypes/PlanScheduleCalendarViewModelListMessageModel";
......@@ -40,9 +44,10 @@ export * from "./apiTypes/SysConfigMessageModel";
export * from "./apiTypes/Option";
export * from "./apiTypes/TableTitle";
export * from "./apiTypes/Dept";
export * from "./apiTypes/RoleModel";
export * from "./apiTypes/UserRoleViewModel";
export * from "./apiTypes/UserRoleViewModelMessageModel";
export * from "./apiTypes/UserRoleViewModelMessageModelPageModel";
export * from "./apiTypes/RoleModel";
export * from "./apiTypes/UserRoleInfoViewModel";
export * from "./apiTypes/UserRoleInfoViewModelMessageModel";
export * from "./apiTypes/UserRoleDepInsRequest";
......@@ -39,6 +39,7 @@
<a class="ivu-ml-8 file-title" @click="preview(row)">
{{ row.name }}
</a>
</div>
</template>
<template slot-scope="{ row, index }" slot="action">
......
......@@ -6,23 +6,24 @@
:class="{ 'i-layout-header-user-mobile': isMobile }"
@on-click="handleClick"
>
<Avatar size="small" :src="avatar" v-if="avatar" />
<!-- <Avatar size="small" :src="avatar" v-if="avatar"/>-->
<Avatar size="default" icon="ios-person" style="background-color: #2D8CF0;"/>
<span class="i-layout-header-user-name" v-if="!isMobile"
>{{ info.name }}
>{{ `${info.name}(${info.currentRole.name})` }}
</span>
<!-- <DropdownMenu slot="list">
<DropdownItem>
<Icon type="md-person" />
<span>{{ role}}</span>
<DropdownMenu slot="list">
<DropdownItem @click.native=setCurrentRole(item) v-for="(item,index) in info.roleList" :key="index">
<Icon type="md-person"/>
<span>{{ item.name }}</span>
</DropdownItem>
</DropdownMenu> -->
</DropdownMenu>
</Dropdown>
</span>
</template>
<script>
import { mapState, mapActions } from "vuex";
import {mapState, mapActions} from "vuex";
export default {
name: "iHeaderUser",
......@@ -40,18 +41,26 @@ export default {
});
}
},
//设置当前权限
setCurrentRole(item) {
let info = {
...this.info,
currentRole: item,
}
this.$store.dispatch('admin/user/set', info, {root: true});
window.location.reload()
}
},
data() {
return {
role: [],
avatar:''
avatar: ''
};
},
created() {
// HomeInit().then((resp) => {
// this.role = resp.role.join(",");
// this.avatar = resp.weChatAvatar;
// });
mounted() {
},
};
</script>
......@@ -28,7 +28,7 @@
</Tooltip>
<i-menu-side-collapse v-else :menu="item" :key="index" top-level />
</template>
<div class="footer">Build 1.0.0 - 241223 1.0.1</div>
<div class="footer">Build 1.0.0 - 250211 1.0.1</div>
</Menu>
</div>
</template>
......
......@@ -8,12 +8,12 @@ export default [
hideSider: false,
name: 'home'
},
{
path: '/statistics',
title: '数据统计',
icon: 'md-podium',
hideSider: true,
name: 'statistics',
auth: ['0']
}
// {
// path: '/statistics',
// title: '数据统计',
// icon: 'md-podium',
// hideSider: true,
// name: 'statistics',
// auth: ['0']
// }
];
......@@ -12,6 +12,11 @@ export default {
title: '人员权限设置',
// auth: ['permission'],
},
{
path: `${pre}systemConfig`,
title: '系统配置',
// auth: ['permission'],
},
/*
{
path: `${pre}role`,
......
......@@ -26,8 +26,8 @@
</div>
</div>
<div v-if="isAdmin" style="width: 100%;display: flex;">
<!-- <Button icon="ios-download-outline" style="margin:0 5px 0 0;" @click="importDuty.show = true">导出值班日志-->
<!-- </Button>-->
<!-- <Button icon="ios-download-outline" style="margin:0 5px 0 0;" @click="importDuty.show = true">导出值班日志-->
<!-- </Button>-->
<Button icon="ios-download-outline" style="margin:0 5px;" @click="importDutySheet.show = true">下载模版
</Button>
<Upload :before-upload="uploadFile" action="#" style="margin:0 5px;">
......@@ -49,12 +49,25 @@
@click="getScheduleDetails(x,course[index1].date)">
<!-- 这天的课程开始时间 <=> 时间轴的开始时间 -->
<div v-if="x.leader_id === timeGround[index].id" class="course-item">
<p v-show="x.schedule.plan_list.map(cur=>cur.content).join(';')">
今日安排:{{ x.schedule.plan_list.map(cur => cur.content).join(';') }}</p>
<p v-show="x.schedule.duty_list.map(cur=>cur.content).join(';')">
值班安排:{{ x.schedule.duty_list.map(cur => cur.content).join(';') }}</p>
<p v-show="x.schedule.meet_list.map(cur=>cur.content).join(';')">
会议安排:{{ x.schedule.meet_list.map(cur => cur.content).join(';') }}</p>
<div v-show="x.schedule.plan_list.map(cur=>cur.content).join(';')">
<div style="display: flex;align-items: center">
今日安排:
<Ellipsis :text="x.schedule.plan_list.map(cur => cur.content).join(';')" :length="10"/>
</div>
</div>
<div v-show="x.schedule.duty_list.map(cur=>cur.content).join(';')">
<div style="display: flex;align-items: center">
值班安排:
<Ellipsis :text="x.schedule.duty_list.map(cur => cur.content).join(';')" :length="10"/>
</div>
</div>
<div v-show="x.schedule.meet_list.map(cur=>cur.content).join(';')">
<div style="display: flex;align-items: center">
会议安排:
<Ellipsis :text="x.schedule.meet_list.map(cur => cur.content).join(';')" :length="10"/>
</div>
</div>
<!-- <p>
<Tag v-if="x.duty_daytime_people" color='blue' style="height:auto"
@click.native="clickCell(x,course[index1].date)">
......@@ -180,15 +193,15 @@
<Menu @on-select="onSelectMenu" :active-name="schedule.menu">
<MenuItem name="1-1" class="menuFlex">
今日安排
<div class="aaaxx">{{ schedule.formData.plan_list ?schedule.formData.plan_list.length : 0 }}</div>
<div class="aaaxx">{{ schedule.formData.plan_list ? schedule.formData.plan_list.length : 0 }}</div>
</MenuItem>
<MenuItem name="1-2" class="menuFlex">
值班安排
<div class="aaaxx">{{ schedule.formData.duty_list ?schedule.formData.duty_list.length : 0 }}</div>
<div class="aaaxx">{{ schedule.formData.duty_list ? schedule.formData.duty_list.length : 0 }}</div>
</MenuItem>
<MenuItem name="1-3" class="menuFlex">
会议安排
<div class="aaaxx">{{schedule.formData.meet_list ?schedule.formData.meet_list.length : 0 }}</div>
<div class="aaaxx">{{ schedule.formData.meet_list ? schedule.formData.meet_list.length : 0 }}</div>
</MenuItem>
</Menu>
</Col>
......@@ -199,13 +212,25 @@
<div style="display: flex;justify-content: space-between;align-items: center;width: 100%;">
<h2>
<Icon type="ios-alarm"/>
{{ '2025年01月26日' }}
{{ dateFormat }}
</h2>
<div>
<Poptip
:transfer="true"
confirm
title="是否确认推送推送给该用户?"
@on-ok="manualPush"
ok-text="是"
cancel-text="否">
<a href="#">{{ '消息推送' }}</a>
</Poptip>
<Divider type="vertical"></Divider>
<a href="#"
@click="schedule.track.show = !schedule.track.show">{{
['显示轨迹', '隐藏轨迹'][Number(schedule.track.show)]
}}</a>
</div>
</div>
<div v-show="schedule.menu === '1-1'">
<Divider orientation="center">今日安排</Divider>
<Card v-for="(item,index) in schedule.formData.plan_list" :bordered="false" :key="index"
......@@ -425,6 +450,7 @@ import dayjs from "dayjs";
import detailForm from '@/components/detail-form-pure';
import _ from "lodash";
import {mapState} from "vuex";
export default {
components: {
......@@ -433,7 +459,7 @@ export default {
props: {},
data() {
return {
userInfo: this.$store.state.admin.user.info,
drawerShow2: false,
drawer2: {
......@@ -508,7 +534,7 @@ export default {
"userid": "",
"date": "",
"leader_number": '',
formData: {
plan_list: [
{
......@@ -613,6 +639,7 @@ export default {
},
mounted() {
// this.getScheduleDetails();
this.initData();
// this.GetPersonByCondiction();
......@@ -621,6 +648,15 @@ export default {
/**
* 新增日程
* */
//手动推送
manualPush() {
hooks.myEncapsulationFunction(() => {
return scheduleApi.getApiPlanScheduleScheduleMegPush({
date: this.schedule.date,
leader_number: this.schedule.leader_number,
})
}, false, '消息推送中...')
},
//切换菜单
onSelectMenu(e) {
this.schedule.menu = e
......@@ -751,6 +787,7 @@ export default {
},
//新增日程
handleAdd() {
this.schedule.formData.plan_list.push({
"id": '',
"date": '',
......@@ -766,8 +803,10 @@ export default {
// userid: '07E5CE0F-C342-482E-899B-7FD377D7DBEC',
// date: '2025-01-26',
if (this.isAdmin){
this.schedule.date = dayjs(date).format('YYYY-MM-DD');
this.schedule.userid = item.leader_id;
this.schedule.leader_number = item.leader_number;
this.drawerShow = true;
hooks.myEncapsulationFunction(() => {
......@@ -784,6 +823,7 @@ export default {
this.getTheScheduleActionTrack()
})
}, true, '正在获取日程数据...')
}
},
/**
* 可能是附件-文件类型预览
......@@ -2625,6 +2665,7 @@ export default {
},
getData() {
const params = {
role_id:this.userInfo.currentRole.id,
begin: this.currentWeekRange[0],
end: this.currentWeekRange[1],
}
......@@ -4376,6 +4417,7 @@ export default {
},
// 点击确认排班
handleConfirm() {
const params = {
"duty_type_id": this.selectItem.duty_type_id,
"date": this.selectDate,
......@@ -4410,11 +4452,16 @@ export default {
},
computed: {
//获取用户信息
//日期格式化
dateFormat() {
return dayjs(this.schedule.date).format('YYYY年MM月DD日')
},
isAdmin() {
//是否是管理员
let admin = JSON.parse(window.localStorage.getItem('admin'))
return true
// return admin.sys.user['ghost-uuid'].user.info.role_list.includes('超管')
let admin = this.userInfo.currentRole.id == 0 ? true :false;
return admin
}
}
};
......
<template>
<div>
<!-- <Menu @on-select="onSelectMenu" :active-name="schedule.menu">
<!-- <Menu @on-select="onSelectMenu" :active-name="schedule.menu">
<MenuItem name="1-1" class="menuFlex">
今日安排
<div class="aaaxx">{{ schedule.formData.plan_list ? schedule.formData.plan_list.length : 0 }}</div>
......@@ -35,7 +35,7 @@
</Col>
<Col :xl="18" :lg="18" :md="24" :sm="24" :xs="24">
<Card :bordered="false" dis-hover>
<!-- <Row>
<!-- <Row>
<Col :xl="0" :lg="0" :md="24" :sm="24" :xs="24">
<Tabs :value="currentType" @on-click="handleChangeCell">
<TabPane label="报修管理" name="repairs" />
......@@ -52,7 +52,8 @@
<h3 v-else>{{ item.name }}: {{EvaluateType}}</h3> -->
</Col>
<Col span="6">
<Switch @on-change="onChangeSwitch" v-model="config.AutomaticallyPushState" trueValue="1" falseValue="0">
<Switch @on-change="onChangeSwitch" v-model="config.AutomaticallyPushState" trueValue="1"
falseValue="0">
</Switch>
</Col>
......@@ -68,8 +69,9 @@
</template>
<script>
import * as hooks from '@/hook/index'
import * as scheduleApi from '@/api/scheduleApi/controller/index'
import * as hooks from '@/hook'
import * as scheduleApi from '@api/scheduleApi/controller/index.d.ts'
import {mapState} from "vuex";
//这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等)
//例如:import 《组件名称》 from '《组件路径》';
export default {
......@@ -78,8 +80,8 @@ export default {
data() {
//这里存放数据",
return {
config:{
AutomaticallyPushState:'0',
config: {
AutomaticallyPushState: '0',
},
};
......@@ -91,25 +93,26 @@ export default {
//方法集合",
methods: {
//变更自动推送状态
onChangeSwitch(e){
hooks.myEncapsulationFunction(()=>{
onChangeSwitch(e) {
hooks.myEncapsulationFunction(() => {
return scheduleApi.getApiSysConfigTimingSwitchSave({
"timing_switch": e
}).then((res)=>{
}).then((res) => {
this.getAutomaticallyPush()
return res
})
},false,'正在变更中...')
}, false, '正在变更中...')
},
//获取自动推送状态
getAutomaticallyPush() {
scheduleApi.getApiSysConfigTimingSwitchInit().then(res=>{
scheduleApi.getApiSysConfigTimingSwitchInit().then(res => {
this.config.AutomaticallyPushState = res.response
})
},
},
//生命周期 - 创建之前",数据模型未加载,方法未加载,html模板未加载
beforeCreate() {
},
//生命周期 - 创建完成(可以访问当前this实例)",数据模型已加载,方法已加载,html模板已加载,html模板未渲染
......@@ -123,6 +126,7 @@ export default {
//生命周期 - 挂载完成(可以访问DOM元素)",html模板已渲染
mounted() {
console.log("🚀🚀🚀,", );
this.getAutomaticallyPush()
},
......
......@@ -2,76 +2,112 @@
<div>
<Card :bordered="false" dis-hover class="ivu-mt" ref="card">
<div class="top-condition">
<Input v-model="searchValue" placeholder="请输入关键字" style="width: 250px; margin-bottom: 5px" @keyup.enter.native="doSearch" clearable />
<Button type="primary" style="margin: 0 10px" @click="doSearch">查找</Button>
<Button type="primary" ghost icon="md-add" @click="userModal = true">
<Button type="primary" style="margin: 0 10px" ghost icon="md-add" @click="userModal = true">
添加权限
</Button>
</div>
<Table ref="table" :columns="columns" :data="tableData" :loading="loading" class="ivu-mt">
<template slot-scope="{ row }" slot="role_info">
<Input v-model="searchValue" placeholder="请输入关键字" style="width: 250px; margin-bottom: 5px"
@keyup.enter.native="doSearch" clearable/>
<Button type="primary" style="margin: 0 10px" @click="doSearch">查找</Button>
<Button type="default" style="margin: 0 0 5px" @click="doReset">重置</Button>
<p v-for="(item, i) in row.role_info" :key="i">
<Badge :color="
item.name == '管理员'
? 'orange'
: 'blue'
" :text="item.name" class="ivu-mb-8" />
</div>
<Table ref="table" :columns="columns" :data="tableData" :loading="loading" class="ivu-mt">
<template #role_list="{ row }">
<p v-for="(item, i) in row.role_list" :key="i">
<Badge color="blue" :text="item.role_name" class="ivu-mb-8"/>
</p>
</template>
<template #dept_list="{ row }">
<p v-for="(item, i) in row.dept_list" :key="i">
<Badge color="blue" :text="item.name" class="ivu-mb-8"/>
</p>
</template>
<template slot-scope="{ row }" slot="action">
<div @click.stop.prevent>
<a type="text" @click="handleEdit(row)">编辑</a>
<Divider type="vertical"></Divider>
<a type="text" @click="handleDelete(row.id)">删除</a>
<!-- <Divider type="vertical"></Divider>
<a type="text" @click="handleDelete(row.id)">删除</a>-->
</div>
</template>
</Table>
<div class="ivu-mt ivu-text-center">
<Page :total="total" :current.sync="pageIndex" show-total show-sizer show-elevator :page-size="pageSize" :page-size-opts="[10, 30, 50, 100]"
@on-change="handleChangePage" @on-page-size-change="handleChangePageSize" />
<Page :total="total" :current.sync="pageIndex" show-total show-sizer show-elevator :page-size="pageSize"
:page-size-opts="[10, 30, 50, 100]"
@on-change="handleChangePage" @on-page-size-change="handleChangePageSize"/>
</div>
</Card>
<Modal v-model="modal" title="编辑权限" @on-ok="saveEdit" @on-cancel="handleCancel" :loading="modalLoading" width="30%">
<Modal v-model="modal" title="编辑权限" @on-ok="saveEdit" @on-cancel="handleCancel" :loading="modalLoading"
width="50%">
<Form ref="formEdit" :model="formDataEdit" :rules="formRuleEdit" :label-width="150">
<FormItem label="选择人员" >
<Select disabled v-model="selectUser" filterable>
<Option v-for="item in peopleOptionDefault" :value="item.userroleid" :key="item.userroleid" :label="item.username">
<div style="display:flex;justify-content: space-between;">
<p>{{ item.usercard }}
<span style="color:#9a9a9a">({{ item.username }})</span>
</p>
<!-- <p style="color:#ccc">{{ item.dept_name }}</p>-->
</div>
</Option>
</Select>
</FormItem>
<FormItem label="分管权限">
<CheckboxGroup v-model="userRole">
<Checkbox :label="item.id" border v-for="item in allRole" :key="item.id">{{ item.name }}</Checkbox>
</CheckboxGroup>
</Modal>
</FormItem>
<FormItem label="分管院系">
<CheckboxGroup v-model="userDept">
<Checkbox :label="item.id" border v-for="item in allDept" :key="item.id">{{ item.name }}</Checkbox>
</CheckboxGroup>
</FormItem>
</Form>
</Modal>ß
<Modal v-model="userModal" title="添加权限" @on-ok="handleAdd" :loading="modalLoading" width='50'>
<Form ref="form" :model="formData" :rules="formRule" :label-width="150">
<FormItem label="选择人员">
<Select v-model="selectUser" filterable>
<Option v-for="item in peopleOption" :value="item.id" :key="item.id" :label="item.name">
<Option v-for="item in peopleOption" :value="item.userid" :key="item.userid" :label="item.username">
<div style="display:flex;justify-content: space-between;">
<p>{{ item.name }}
<span style="color:#9a9a9a">({{item.card}})</span>
<p>{{ item.usercard }}
<span style="color:#9a9a9a">({{ item.username }})</span>
</p>
<p style="color:#ccc">{{ item.dept_name }}</p>
</div>
</Option>
</Select>
</FormItem>
<FormItem label="选择权限">
<FormItem label="分管权限">
<CheckboxGroup v-model="userRole">
<Checkbox :label="item.id" border v-for="item in allRole" :key="item.id">{{ item.name }}</Checkbox>
</CheckboxGroup>
</FormItem>
<FormItem label="分管院系">
<CheckboxGroup v-model="userDept">
<Checkbox :label="item.id" border v-for="item in allDept" :key="item.id">{{ item.name }}</Checkbox>
</CheckboxGroup>
</FormItem>
</Form>
</Modal>
</div>
</template>
<script>
import * as scheduleApi from '@/api/scheduleApi/controller/index'
import * as api from "@/api/set";
import { GetPersonByCondiction } from "@/api/arrangement"
import {GetPersonByCondiction} from "@/api/arrangement"
import * as hooks from '@/hook/index'
export default {
data() {
return {
userInfo: this.$store.state.admin.user.info,
formDataEdit: {},
formRuleEdit: {},
loading: false,
modal: false,
modalLoading: true,
......@@ -87,17 +123,21 @@ export default {
{
title: "卡号",
key: "card",
key: "usercard",
width: 200
},
{
title: "姓名",
key: "name",
key: "username",
width: 200
},
{
title: "角色",
slot: "role_info",
title: "分管权限",
slot: "role_list",
},
{
title: "分管部门",
slot: "dept_list",
},
{
......@@ -111,43 +151,62 @@ export default {
pageSize: 10,
total: 0,
allRole: [],
userRole: [], // 用户所拥有的角色
allDept: [],
userDept: [], // 用户所拥有的院系
cardNumber: "",
editRow: {},
userModal: false,
formData: {},
formRule: {},
peopleOption: [],
peopleOptionDefault:[],
selectUser: ''
};
},
created() {
console.log("🚀🚀用户信息🚀,", this.userInfo)
this.getData();
this.getRoleList();
this.GetPersonByCondiction();
this.getDeptAllList();
},
methods: {
getData() {
const params = {
card_name: this.searchValue,
page_index: this.pageIndex,
page_size: this.pageSize,
key_name: this.searchValue,
};
this.loading = true;
api.GetUserRoleList(params).then((resp) => {
scheduleApi.getApiUserRoleGetUserRoleList(params).then((resp) => {
this.loading = false;
this.tableData = resp.data;
this.total = resp.data_count;
this.tableData = resp.response.data;
this.total = resp.response.data_count;
this.GetPersonByCondiction()
});
},
// 获取所有角色
getRoleList() {
api.GetRoleSelect().then((resp) => {
this.allRole = resp;
scheduleApi.postApiCommonGetRoleList().then((resp) => {
this.allRole = resp.response;
});
},
// 获取所有部门
getDeptAllList() {
scheduleApi.getApiCommonGetDeptAllList().then((resp) => {
this.allDept = resp.response;
});
},
//重置查询
doReset() {
this.pageIndex = 1;
this.searchValue = ''
this.getData()
},
// 点击查询
doSearch() {
this.pageIndex = 1;
......@@ -165,34 +224,37 @@ export default {
this.pageSize = size;
this.getData();
},
// 编辑权限
// 获取权限信息
handleEdit(row) {
this.editRow = row;
hooks.myEncapsulationFunction(() => {
return scheduleApi.getApiUserRoleGetUserRoleInfo({id: row.userroleid}).then(res => {
console.log(row);
this.selectUser = row.userroleid
this.userRole = res.response.role_list.map(cur=>cur.role_id)
this.userDept = res.response.dept_list.map(cur=>cur.id)
// this.editRow = row;
this.modal = true;
if (row.role_info.length) {
this.userRole = row.role_id.split(';')
}
return res
})
}, true, '加载中...')
},
// 编辑保存
// 保存编辑权限
saveEdit() {
let arr = [];
this.userRole.map(x => {
arr.push(this.allRole.find(c => c.id == x))
})
const params = {
...this.editRow,
role_id: this.userRole.join(','),
role_info: arr
userroleid:this.selectUser,
"dept_list": this.userDept.map(cur=>{return {id:cur,name:''}}),
"role_list": this.userRole.map(cur=>{return {role_id:cur,role_name:''}}),
};
api.UserRoleSave(params).then((resp) => {
this.handleModalLoading();
hooks.myEncapsulationFunction(()=>{
return scheduleApi.postApiUserRoleUserRoleSave(params).then((resp) => {
this.modal = false;
this.$Message.success("添加成功");
this.userRole = [];
this.getData();
}).catch(() => {
this.handleModalLoading();
});
return resp
})
})
},
handleCancel() {
......@@ -205,23 +267,28 @@ export default {
page_index: 1,
page_size: 10000
}
GetPersonByCondiction(params).then(resp => {
this.peopleOption = resp.data;
scheduleApi.getApiUserRoleGetUserRoleList(params).then(resp => {
//用于新增权限
this.peopleOption = resp.response.data.filter(cur => !(!!cur.dept_list.length));
//用于修改权限
this.peopleOptionDefault = resp.response.data.map(cur => {
return {
userroleid: cur.userroleid,
username: cur.username
}
})
})
},
// 确认添加权限
handleAdd() {
let arr = [];
this.userRole.map(x => {
arr.push(this.allRole.find(c => c.id == x))
})
const params = {
userid: this.selectUser,
role_id: this.userRole.join(','),
role_info: arr
};
api.UserRoleSave(params).then((resp) => {
let params = {
"userid": this.selectUser,
"dept_list": this.userDept.map(cur=>{return {id:cur,name:''}}),
"role_list": this.userRole.map(cur=>{return {role_id:cur,role_name:''}}),
}
scheduleApi.postApiUserRoleUserRoleDepIns(params).then((resp) => {
this.handleModalLoading();
this.userModal = false;
this.$Message.success("添加成功");
......@@ -264,7 +331,8 @@ export default {
.top-condition {
display: flex;
}
/deep/.ivu-checkbox-group-item {
/deep/ .ivu-checkbox-group-item {
margin-bottom: 10px;
}
</style>
......@@ -88,7 +88,9 @@ service.interceptors.response.use(
// break;
default:
// 不是正确的 code
Message.destroy(),
errorCreate(`${dataAxios.msg_detail}`);
break;
// errorCreate(`${dataAxios.msg}: ${response.config.url}`);
......
......@@ -35,27 +35,6 @@ router.beforeEach(async (to, from, next) => {
const token = util.cookies.get('weekPlanPc-token');
if (token && token !== 'undefined') {
next();
/*
// 获取用户权限,这里不能直接从 Vuex 的 user.info 读,因为数据还未准备好
const userInfo = await store.dispatch('admin/db/get', {
dbName: 'sys',
path: 'user.info',
defaultValue: {},
user: true
}, { root: true });
const access = userInfo.access;
const isPermission = includeArray(to.meta.auth, access);
if (isPermission) {
next();
} else {
next({
name: '403'
});
}*/
} else {
// 没有登录的时候跳转到登录界面
// 携带上登陆成功之后需要跳转的页面完整路径
......
......@@ -21,6 +21,15 @@ const frameIn = [{
},
component: () => import('@/pages/arrangement/index.vue')
},
{
path: '/set/systemConfig',
name: 'systemConfig',
meta: {
title: '系统配置',
},
component: () => import('@/pages/set/config/index.vue')
},
{
path: 'dutyType',
name: 'dutyType',
......
......@@ -4,6 +4,7 @@
import util from '@/libs/util';
import router from '@/router';
import {AccountLogin, AccountRegister, TestSSO, SSO, GetLoginUserInfo} from '@api/account';
import * as scheduleApi from '@/api/scheduleApi/controller/index'
import {Modal} from 'view-design';
......@@ -21,8 +22,12 @@ export default {
let info = {}
util.cookies.set('weekPlanPc-token', res.response.access_token.token_content);
await GetLoginUserInfo().then(async resp => {
await scheduleApi.getApiCommonGetCurrentUserRoleList().then(resx=>{
info = resp.response;
info.access = resp.response.role;
info.roleList = resx.response;
info.currentRole = info.roleList[0]
})
});
// 设置 vuex 用户信息
await dispatch('admin/user/set', info, {root: true});
......@@ -43,8 +48,12 @@ export default {
let info = {}
util.cookies.set('weekPlanPc-token', res.response.access_token.token_content);
await GetLoginUserInfo().then(async resp => {
await scheduleApi.getApiCommonGetCurrentUserRoleList().then(resx=>{
info = resp.response;
info.access = resp.response.role;
info.roleList = resx.response;
info.currentRole = info.roleList[0];
})
});
// 设置 vuex 用户信息
await dispatch('admin/user/set', info, {root: true});
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或