1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4794bab7"],{"09f4":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),Math.easeInOutQuad=function(t,e,n,a){return t/=a/2,t<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function o(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function r(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(t,e,n){var i=r(),s=t-i,l=20,c=0;e="undefined"===typeof e?500:e;var u=function t(){c+=l;var r=Math.easeInOutQuad(c,i,s,e);o(r),c<e?a(t):n&&"function"===typeof n&&n()};u()}},"15fd":function(t,e,n){"use strict";function a(t,e){if(null==t)return{};var n,a,o={},r=Object.keys(t);for(a=0;a<r.length;a++)n=r[a],e.indexOf(n)>=0||(o[n]=t[n]);return o}function o(t,e){if(null==t)return{};var n,o,r=a(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}n.d(e,"a",(function(){return o}))},"160b":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return s}));var a=n("b775"),o=n("829b"),r="/api-web";function i(t){return Object(o["a"])({url:r+"/musicGroup/queryPage",method:"post",data:t,requestType:"form"})}function s(t){return Object(a["a"])({url:r+"/chargeType/queryPage",method:"get",params:t})}},"1aad":function(t,e,n){"use strict";n.r(e);var a,o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"m-container"},[n("h2",[n("div",{staticClass:"squrt"}),t._v("\n 乐团巡查\n "),n("filter-search",{attrs:{keys:["searchType"],moreKeys:["organId","start","end"]},on:{reload:t.reloadSearch}})],1),t._v(" "),n("div",{staticClass:"m-core"},[n("save-form",{ref:"searchForm",attrs:{inline:!0,model:t.searchForm},on:{submit:t.search,reset:t.onReSet}},[n("el-form-item",{attrs:{prop:"search"}},[n("el-input",{attrs:{type:"text",placeholder:"请输入乐团名称",clearable:""},model:{value:t.searchForm.search,callback:function(e){t.$set(t.searchForm,"search",e)},expression:"searchForm.search"}})],1),t._v(" "),n("el-form-item",{attrs:{prop:"organId"}},[n("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},on:{change:t.onBranchChange},model:{value:t.searchForm.organId,callback:function(e){t.$set(t.searchForm,"organId","string"===typeof e?e.trim():e)},expression:"searchForm.organId"}},t._l(t.selects.branchs,(function(t,e){return n("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),n("el-form-item",{attrs:{prop:"cooperationOrganId"}},[n("el-select",{staticClass:"multiple",attrs:{disabled:!t.searchForm.organId,filterable:"",clearable:"",placeholder:"请选择合作单位"},model:{value:t.searchForm.cooperationOrganId,callback:function(e){t.$set(t.searchForm,"cooperationOrganId","string"===typeof e?e.trim():e)},expression:"searchForm.cooperationOrganId"}},t._l(t.cooperationList,(function(t,e){return n("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),n("el-form-item",{attrs:{prop:"userId"}},[n("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择乐团主管"},model:{value:t.searchForm.userId,callback:function(e){t.$set(t.searchForm,"userId","string"===typeof e?e.trim():e)},expression:"searchForm.userId"}},t._l(t.educationList,(function(e,a){return n("el-option",{key:a,attrs:{label:e.userName,value:e.userId}},[n("span",{staticStyle:{float:"left"}},[t._v(t._s(e.userName))]),t._v(" "),n("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[t._v(t._s(e.userId))])])})),1)],1),t._v(" "),n("el-form-item",{attrs:{prop:"conclusionStatus"}},[n("el-select",{staticClass:"multiple",attrs:{clearable:"",placeholder:"巡查项目是否异常"},model:{value:t.searchForm.conclusionStatus,callback:function(e){t.$set(t.searchForm,"conclusionStatus","string"===typeof e?e.trim():e)},expression:"searchForm.conclusionStatus"}},[n("el-option",{attrs:{label:"是",value:1}}),t._v(" "),n("el-option",{attrs:{label:"否",value:0}})],1)],1),t._v(" "),n("el-form-item",{attrs:{prop:"createTimer"}},[n("el-date-picker",{attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"巡查开始日期","end-placeholder":"巡查结束日期","picker-options":{firstDayOfWeek:1}},model:{value:t.searchForm.createTimer,callback:function(e){t.$set(t.searchForm,"createTimer","string"===typeof e?e.trim():e)},expression:"searchForm.createTimer"}})],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"danger","native-type":"submit"}},[t._v("搜索")]),t._v(" "),n("el-button",{attrs:{"native-type":"reset",type:"primary"}},[t._v("重置")])],1)],1),t._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.tableList}},[n("el-table-column",{attrs:{align:"center",prop:"id",width:"120px",label:"巡查编号"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"所属分部"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.organName)+"("),n("copy-text",[t._v(t._s(e.row.organId))]),t._v(")\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"cooperationName",label:"合作单位"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"musicGroupName",label:"巡查乐团"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.musicGroupName)+"("),n("copy-text",[t._v(t._s(e.row.musicGroupId))]),t._v(")\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"乐团主管"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.realName)+"("),n("copy-text",[t._v(t._s(e.row.userId))]),t._v(")\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"巡查项目异常"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.conclusionStatus?"异常":"正常")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"subject",label:"巡查时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t.dayjs(e.row.planStart).format("YYYY-MM-DD HH:mm"))+"~\n "+t._s(t.dayjs(e.row.planEnd).format("HH:mm"))+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"submitedTime",label:"提交时间"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"status",label:"提交状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("statusFormat")(e.row.status))+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"处理方式"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("overflow-text",{attrs:{width:"100%",text:t.row.memo}})]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",width:"250px",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[0!=e.row.status?n("auth",{attrs:{auths:"inspectionItemPlanConclusion/getPlanConclusion"}},[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.onLook(e.row)}}},[t._v("查看")])],1):t._e(),t._v(" "),0!=e.row.status?n("auth",{attrs:{auths:"inspectionItemPlanConclusion/GPS-INFO"}},[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.onGPS(e.row)}}},[t._v("GPS定位")])],1):t._e(),t._v(" "),0!=e.row.status?n("auth",{attrs:{auths:"inspectionItemPlanConclusion/exportPlanConclusion"}},[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.onExport(e.row)}}},[t._v("下载")])],1):t._e(),t._v(" "),1==e.row.conclusionStatus||0==e.row.status?n("auth",{attrs:{auths:"inspectionItemPlan/updateMemo"}},[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.handleClick(e.row)}}},[t._v("立即处理")])],1):t._e()]}}])})],1),t._v(" "),n("pagination",{attrs:{total:t.pageInfo.total,sync:"",page:t.pageInfo.page,limit:t.pageInfo.limit,"page-sizes":t.pageInfo.page_size},on:{"update:total":function(e){return t.$set(t.pageInfo,"total",e)},"update:page":function(e){return t.$set(t.pageInfo,"page",e)},"update:limit":function(e){return t.$set(t.pageInfo,"limit",e)},pagination:t.getList}})],1)],1),t._v(" "),n("el-dialog",{attrs:{title:"乐团巡查表",visible:t.tableStatus,width:"1200px"},on:{"update:visible":function(e){t.tableStatus=e}}},[t.tableStatus?n("look-detail",{attrs:{detail:t.planDetail}}):t._e()],1),t._v(" "),n("el-dialog",{attrs:{title:"GPS定位",visible:t.gpsVisible,width:"1000px","append-to-body":""},on:{"update:visible":function(e){t.gpsVisible=e}}},[t.gpsVisible?n("gpsLoction",{attrs:{activeRow:t.activeRow}}):t._e()],1),t._v(" "),n("el-dialog",{attrs:{title:"处理方式",visible:t.handleStatus,width:"500px"},on:{"update:visible":function(e){t.handleStatus=e},close:function(e){return t.handleClose("ruleForm")}}},[n("el-form",{ref:"ruleForm",attrs:{model:t.handleForm,"label-position":"top"}},[n("el-form-item",{attrs:{label:"处理方式",prop:"memo",rules:[{required:!0,message:"请输入处理方式",trigger:"blur"}]}},[n("el-input",{attrs:{type:"textarea"},model:{value:t.handleForm.memo,callback:function(e){t.$set(t.handleForm,"memo","string"===typeof e?e.trim():e)},expression:"handleForm.memo"}})],1)],1),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.handleStatus=!1}}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onHandleSubmit("ruleForm")}}},[t._v("确 定")])],1)],1)],1)},r=[],i=n("ade3"),s=n("5530"),l=n("15fd"),c=(n("c5f6"),n("96cf"),n("1da1")),u=n("333d"),p=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("descriptions",{attrs:{column:3}},[n("descriptions-item",{attrs:{label:"所属分部:"}},[t._v("\n "+t._s(t.detail.organName)+"\n ")]),t._v(" "),n("descriptions-item",{attrs:{label:"合作单位:"}},[t._v("\n "+t._s(t.detail.cooperationName)+"\n ")]),t._v(" "),n("descriptions-item",{attrs:{label:"巡查乐团:"}},[t._v("\n "+t._s(t.detail.musicGroupName)+"\n ")]),t._v(" "),n("descriptions-item",{attrs:{label:"乐团主管:"}},[t._v("\n "+t._s(t.detail.realName)+"\n ")]),t._v(" "),n("descriptions-item",{attrs:{label:"巡查时间:"}},[t._v("\n "+t._s(t.dayjs(t.detail.planStart).format("YYYY-MM-DD HH:mm"))+"~\n "+t._s(t.dayjs(t.detail.planEnd).format("HH:mm"))+"\n ")]),t._v(" "),n("descriptions-item",{attrs:{label:"提交时间:"}},[t._v("\n "+t._s(t.detail.submitedTime)+"\n ")]),t._v(" "),n("descriptions-item",{attrs:{label:"处理方式:"}},[t._v("\n "+t._s(t.detail.memo)+"\n ")])],1),t._v(" "),n("el-table",{staticStyle:{"margin-top":"15px"},attrs:{data:t.tableData},scopedSlots:t._u([{key:"empty",fn:function(){return[n("empty")]},proxy:!0}])},[n("el-table-column",{attrs:{prop:"name",fixed:"left",label:"巡查项目",align:"center",width:"150"}}),t._v(" "),n("el-table-column",{attrs:{label:"课前管理",align:"center"}},[n("el-table-column",{attrs:{width:"200px",align:"center",label:"老师是否提前准备板书(本课内容、作业)"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("i",{class:1==t.row[1]?"el-icon-check":"el-icon-close"})]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"2",width:"160px",label:"老师是否佩戴工牌",align:"center"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("i",{class:1==t.row[2]?"el-icon-check":"el-icon-close"})]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"3",width:"180px",label:"老师是否仪容仪表整洁",align:"center"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("i",{class:1==t.row[3]?"el-icon-check":"el-icon-close"})]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"4",width:"160px",label:"老师是否携带乐器",align:"center"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("i",{class:1==t.row[4]?"el-icon-check":"el-icon-close"})]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"5",width:"160px",align:"center",label:"老师是否携带教学资料、设备"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("i",{class:1==t.row[5]?"el-icon-check":"el-icon-close"})]}}])})],1),t._v(" "),n("el-table-column",{attrs:{label:"课中管理",align:"center"}},[n("el-table-column",{attrs:{prop:"6",width:"160px",align:"center",label:"老师是否合理安排学员座位"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("i",{class:1==t.row[6]?"el-icon-check":"el-icon-close"})]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"7",width:"160px",align:"center",label:"乐器箱包、书包是否摆放整齐"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("i",{class:1==t.row[7]?"el-icon-check":"el-icon-close"})]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"8",width:"180px",align:"center",label:"课堂纪律是否保持良好"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("i",{class:1==t.row[8]?"el-icon-check":"el-icon-close"})]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"9",width:"180px",align:"center",label:"老师是否全程站立教学"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("i",{class:1==t.row[9]?"el-icon-check":"el-icon-close"})]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"10",width:"160px",align:"center",label:"老师是否全程使用节拍器或教学音频"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("i",{class:1==t.row[10]?"el-icon-check":"el-icon-close"})]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"11",width:"160px",align:"center",label:"未发现私换乐器"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("i",{class:1==t.row[11]?"el-icon-check":"el-icon-close"})]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"12",width:"160px",align:"center",label:"老师是否将上课照片/视频发送到声部群"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("i",{class:1==t.row[12]?"el-icon-check":"el-icon-close"})]}}])})],1),t._v(" "),n("el-table-column",{attrs:{label:"课后管理",align:"center"}},[n("el-table-column",{attrs:{prop:"13",width:"160px",align:"center",label:"老师是否保持教室环境卫生"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("i",{class:1==t.row[13]?"el-icon-check":"el-icon-close"})]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"14",width:"160px",align:"center",label:"老师是否关好所有电源、门窗"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("i",{class:1==t.row[14]?"el-icon-check":"el-icon-close"})]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"15",width:"160px",align:"center",label:"老师是否有序组织学员放学"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("i",{class:1==t.row[15]?"el-icon-check":"el-icon-close"})]}}])})],1)],1)],1)},d=[],m=n("6612"),f=n.n(m),h=n("5a0c"),b=n.n(h),v=n("ddec"),g=n("829b"),_=function(t){return Object(g["a"])({url:"/api-web/inspectionItemPlan/queryPage",params:t,method:"get"})},w=function(t){return Object(g["a"])({url:"/api-web/inspectionItemPlanConclusion/getPlanConclusion",params:t,method:"get"})},y=function(t){return Object(g["a"])({url:"/api-web/inspectionItemPlan/updateMemo",method:"post",requestType:"form",data:t})},k={props:["detail"],components:{descriptions:v["a"]},data:function(){return{tableData:[]}},mounted:function(){this.init()},methods:{dayjs:b.a,numeral:f.a,init:function(){var t=Object(c["a"])(regeneratorRuntime.mark((function t(){var e,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e=this.detail,t.next=4,w({planId:e.id});case 4:n=t.sent,this.tableData=n.data,t.next=10;break;case 8:t.prev=8,t.t0=t["catch"](0);case 10:case"end":return t.stop()}}),t,this,[[0,8]])})));function e(){return t.apply(this,arguments)}return e}()}},x=k,L=(n("37cb"),n("2877")),S=Object(L["a"])(x,p,d,!1,null,"142acd92",null),O=S.exports,I=n("1cc7"),F=n("99b4"),j=(n("160b"),n("ed08")),R=n("adb21"),T=n("9be9"),P={components:{pagination:u["a"],LookDetail:O,gpsLoction:T["a"]},data:function(){return{educationList:[],cooperationList:[],musicGroupList:[],activeRow:null,planDetail:null,searchForm:{search:null,organId:null,userId:null,conclusionStatus:null,cooperationOrganId:null,createTimer:[]},tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},handleStatus:!1,handleForm:{id:null,memo:null},tableStatus:!1,gpsVisible:!1}},mounted:function(){var t=Object(c["a"])(regeneratorRuntime.mark((function t(){var e,n=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this.$route.query,e.organId&&(this.searchForm.organId=e.organId),e.conclusionStatus&&(this.searchForm.conclusionStatus=Number(e.conclusionStatus)),e.start&&e.end&&(this.searchForm.createTimer=[e.start,e.end]),this.getList(),t.next=7,this.$store.dispatch("setBranchs");case 7:return t.next=9,Object(I["F"])().then((function(t){200==t.code&&(n.educationList=t.data)}));case 9:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),methods:(a={dayjs:b.a,reloadSearch:function(){this.rules.page=1,this.getList()},getList:function(){var t=Object(c["a"])(regeneratorRuntime.mark((function t(){var e,n,a,o,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e=this.searchForm,n=e.createTimer,a=Object(l["a"])(e,["createTimer"]),o=Object(s["a"])(Object(s["a"])({},a),{},{page:this.pageInfo.page,rows:this.pageInfo.limit,searchType:this.$route.query.searchType},Object(j["a"])(n,["startTime","endTime"])),t.next=5,_(o);case 5:r=t.sent,this.tableList=r.data.rows,this.pageInfo.total=r.data.total,t.next=12;break;case 10:t.prev=10,t.t0=t["catch"](0);case 12:case"end":return t.stop()}}),t,this,[[0,10]])})));function e(){return t.apply(this,arguments)}return e}()},Object(i["a"])(a,"reloadSearch",(function(){this.rules.page=1,this.getList()})),Object(i["a"])(a,"onLook",(function(t){this.planDetail=t,this.tableStatus=!0})),Object(i["a"])(a,"onGPS",(function(t){this.activeRow={schoolLongitudeLatitude:t.schoolGps,signOutLongitudeLatitude:t.submitedGps},this.gpsVisible=!0})),Object(i["a"])(a,"onExport",function(){var t=Object(c["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(R["a"])(this,{url:"/api-web/inspectionItemPlanConclusion/exportPlanConclusion",fileName:"巡查结果.xlsx",method:"get",params:{planId:e.id}},"您确定导出巡查结果?");case 2:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()),Object(i["a"])(a,"onBranchChange",function(){var t=Object(c["a"])(regeneratorRuntime.mark((function t(e){var n=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e){t.next=4;break}return this.cooperationList=[],this.searchForm.cooperationOrganId=null,t.abrupt("return");case 4:return t.next=6,Object(F["z"])({organId:e}).then((function(t){200==t.code&&(n.cooperationList=t.data)}));case 6:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()),Object(i["a"])(a,"search",(function(){this.pageInfo.page=1,this.getList()})),Object(i["a"])(a,"onReSet",(function(){this.$refs["searchForm"].resetFields(),this.pageInfo.page=1,this.getList()})),Object(i["a"])(a,"handleClick",(function(t){this.handleForm.id=t.id,this.handleForm.memo=t.memo,this.handleStatus=!0})),Object(i["a"])(a,"onHandleSubmit",(function(t){var e=this;this.$refs[t].validate(function(){var t=Object(c["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!n){t.next=12;break}return console.log(e.handleForm),t.prev=2,t.next=5,y(e.handleForm);case 5:e.$message.success("处理成功"),e.getList(),e.handleStatus=!1,t.next=12;break;case 10:t.prev=10,t.t0=t["catch"](2);case 12:case"end":return t.stop()}}),t,null,[[2,10]])})));return function(e){return t.apply(this,arguments)}}())})),Object(i["a"])(a,"handleClose",(function(t){this.$refs[t].resetFields()})),a),filters:{statusFormat:function(t){var e=["未提交","正常","异常"];return e[t]}}},C=P,E=(n("2bd6"),Object(L["a"])(C,o,r,!1,null,"df7c165a",null));e["default"]=E.exports},"1d0a":function(t,e,n){},"2bd6":function(t,e,n){"use strict";n("7e44")},"37cb":function(t,e,n){"use strict";n("1d0a")},"5c83":function(t,e,n){},"7e44":function(t,e,n){},"9be9":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-amap",{ref:"map",staticClass:"amap-demo",attrs:{zoom:t.zoom,vid:"amapDemo","amap-manager":t.amapManager,center:t.center,events:t.markerEvents}},[t._l(t.markers,(function(t,e){return n("el-amap-marker",{key:e,attrs:{position:t.location,title:t.title}})})),t._v(" "),t._l(t.markers,(function(t,e){return n("el-amap-text",{key:e+"xxx",attrs:{text:t.title,position:t.location,offset:[40,-10]}})})),t._v(" "),n("el-amap-polyline",{attrs:{path:t.path,strokeColor:"#4196fc"}}),t._v(" "),t._l(t.texts,(function(t,e){return n("el-amap-text",{key:e+"ooo",attrs:{text:t.text,position:t.position,offset:[-50,0]}})}))],2)],1)},o=[],r=(n("28a5"),n("8f9b")),i=n.n(r);(function(){var t=EventTarget.prototype.addEventListener,e=!1;try{var n=Object.defineProperty({},"passive",{get:function(){e=!0}});document.addEventListener("testPassive",null,n),document.removeEventListener("testPassive",null,n)}catch(a){}EventTarget.prototype.addEventListener=function(n,a,o){this.func=t,o=o instanceof Object?o:{},o.passive=e,this.func(n,a,o)}})(),i.a.initAMapApiLoader({key:"b1e6ac2eb28902ce91a490edf194e000",plugin:["Autocomplete","PlaceSearch","Scale","OverView","ToolBar","MapType","PolyEditor","AMap.CircleEditor"],v:"1.4.4"});var s=new i.a.AMapManager,l={props:["activeRow"],data:function(){var t=this;return{zoom:20,amapManager:s,center:[114.34371,30.55939],markers:[],distance:"-",schoolLongitudeLatitude:null,signInLongitudeLatitude:null,markerEvents:{complete:function(e){t.$refs.map.$amap.setFitView()}},path:[],texts:[]}},watch:{activeRow:function(t){t&&(console.log(t),this.init())}},mounted:function(){this.init()},activated:function(){},methods:{init:function(){if(this.activeRow.schoolLongitudeLatitude){var t={title:"教学点",location:this.activeRow.schoolLongitudeLatitude.split(",")};this.center=this.activeRow.schoolLongitudeLatitude.split(","),this.schoolLongitudeLatitude=this.activeRow.schoolLongitudeLatitude.split(","),this.markers.push(t)}if(this.activeRow.signInLongitudeLatitude){var e={title:"签到点",location:this.activeRow.signInLongitudeLatitude.split(",")};this.center=this.activeRow.signInLongitudeLatitude.split(","),this.signInLongitudeLatitude=this.activeRow.signInLongitudeLatitude.split(","),this.markers.push(e)}if(this.activeRow.signOutLongitudeLatitude){var n={title:"签退点",location:this.activeRow.signOutLongitudeLatitude.split(",")};this.center=this.activeRow.signOutLongitudeLatitude.split(","),this.signOutLongitudeLatitude=this.activeRow.signOutLongitudeLatitude.split(","),this.markers.push(n)}this.getDistance(this.signInLongitudeLatitude,this.schoolLongitudeLatitude),this.getDistance(this.signOutLongitudeLatitude,this.schoolLongitudeLatitude)},onSearchResult:function(){},getDistance:function(t,e){if(t&&t.length>0&&e&&e.length>0){s.getMap();var n=new AMap.Marker({position:t}),a=new AMap.Marker({position:e}),o=n.getPosition(),r=a.getPosition(),i=o.divideBy(2).add(r.divideBy(2));console.log(i);var l=[i.lng,i.lat],c=Math.round(o.distance(r));this.path.push(t,e),this.texts.push({text:"两点相距".concat(c,"米"),position:l}),this.distance=c}}}},c=l,u=(n("deac"),n("2877")),p=Object(u["a"])(c,a,o,!1,null,"7576dd06",null);e["a"]=p.exports},adb21:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var a=n("bc3a"),o=n.n(a),r=(n("4328"),n("5f87")),i=n("3908"),s=function(t,e,n){var a=e.url,s={method:e.method?e.method:"get",headers:{Authorization:Object(r["a"])()},url:a,responseType:"blob"};"post"==s.method?s.data=e.params:s.params=e.params,t.$confirm(n||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){i["a"].startLoading(),o()(s).then((function(n){var a=new Blob([n.data],{type:"application/vnd.ms-excel;charset=utf-8"}),o=new Response(a).text();o.then((function(n){if(-1!=n.indexOf("code")){var o=JSON.parse(n);t.$message.error(o.msg)}else{var r=URL.createObjectURL(a),i=document.createElement("a"),s=e.fileName||"导出文件.xlsx";i.href=r,i.setAttribute("download",s),document.body.appendChild(i),i.click()}})),i["a"].endLoading()})).catch((function(e){t.$message.error("下载失败,请联系管理员"),i["a"].endLoading()}))})).catch((function(){}))}},deac:function(t,e,n){"use strict";n("5c83")},ed08:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return s}));var a=n("ade3"),o=(n("c5f6"),n("28a5"),n("a481"),n("6b54"),n("53ca"),n("5a0c")),r=n.n(o);var i=function(t){var e=[];for(var n in t)if(t.hasOwnProperty(n)){var a=t[n],o=n.toLocaleUpperCase();e.push({label:a,value:"TRUE"===o||"FALSE"===o?"TRUE"===o:n})}return e},s=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return t&&t.length?(e={},Object(a["a"])(e,n[0]||"start",r()(t[0]).isValid()?r()(t[0]).format(o):""),Object(a["a"])(e,n[1]||"end",r()(t[1]).isValid()?r()(t[1]).format(o):""),e):{}}}}]);
|