| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages_manage-views-accessControl-empowerOpen"],{"06c2":function(t,e,a){"use strict";var i=a("9ee6"),o=a.n(i);o.a},1004:function(t,e,a){"use strict";a.d(e,"b",(function(){return o})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var i={uniDataPicker:a("e7c0").default,uniDatetimePicker:a("93d2").default},o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{attrs:{id:"empowerOpen"}},[1==t.pageType?a("v-uni-view",{staticClass:"page-one"},[a("v-uni-view",{staticClass:"header"},[a("v-uni-view",{staticClass:"header-n"},[a("v-uni-input",{staticClass:"header-l",attrs:{type:"text",placeholder:"实验室名称"},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.subNameChange()}},model:{value:t.getData.searchValue,callback:function(e){t.$set(t.getData,"searchValue",e)},expression:"getData.searchValue"}}),t.getData.searchValue?a("v-uni-view",{staticClass:"header-r",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clearSearch()}}},[a("img",{attrs:{src:t.imagesUrl("commonality/clear.png")}})]):t._e()],1)],1),a("v-uni-scroll-view",{staticClass:"list",attrs:{"scroll-y":!0},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.scrollGet.apply(void 0,arguments)}}},[t._l(t.dataList,(function(e,i){return a("v-uni-view",{staticClass:"list-li"},[a("v-uni-view",{staticClass:"list-li-l"},[t._v(t._s(e.subName)+t._s(e.roomNum?"("+e.roomNum+")":""))]),a("v-uni-view",{staticClass:"list-li-r",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.authorizedClick(e)}}},[a("v-uni-view",{staticClass:"null-p"}),a("v-uni-view",[t._v("授权")]),a("v-uni-view",{staticClass:"null-p"})],1)],1)})),t.getDataType?a("v-uni-view",{staticClass:"get-data-null-p"},[t._v("- 没有更多数据 -")]):a("v-uni-view",{staticClass:"get-data-null-p"},[t._v("- 滑动加载更多 -")])],2)],1):t._e(),2==t.pageType?a("v-uni-view",{staticClass:"page-tow"},[a("v-uni-view",{staticClass:"list-tow"},[a("v-uni-view",{staticClass:"list-tow-li"},[a("v-uni-view",{staticClass:"list-tow-li-t"},[t._v("被授权人")]),t.addForm.userId?a("v-uni-view",{staticClass:"list-user-name-box"},[a("v-uni-view",[t._v(t._s(t.addForm.userName)+t._s(t.account?"-"+t.account:""))]),a("v-uni-view",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.delUserData()}}},[t._v("更改")])],1):t._e(),t.addForm.userId?t._e():a("v-uni-input",{staticClass:"list-tow-li-b",attrs:{type:"text",placeholder:"被授权人搜索,最少两个字"},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.authorizedChange()}},model:{value:t.getDataTow.searchValue,callback:function(e){t.$set(t.getDataTow,"searchValue",e)},expression:"getDataTow.searchValue"}}),a("uni-data-picker",{ref:"picker",attrs:{localdata:t.dataListTow},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindPickerChange.apply(void 0,arguments)}}})],1),a("v-uni-view",{staticClass:"list-tow-li"},[a("v-uni-view",{staticClass:"list-tow-li-t"},[t._v("生效时间")]),a("v-uni-view",{staticClass:"time"},[a("v-uni-view",{staticClass:"example-body"}),a("v-uni-view",{staticClass:"time-l"},[a("uni-datetime-picker",{attrs:{type:"datetime","hide-second":"true",border:!0,placeholder:"开始时间"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeLog.apply(void 0,arguments)}},model:{value:t.addForm.validBeginTime,callback:function(e){t.$set(t.addForm,"validBeginTime",e)},expression:"addForm.validBeginTime"}})],1),a("v-uni-view",{staticClass:"time-c"},[t._v("-")]),a("v-uni-view",{staticClass:"time-r"},[a("v-uni-view",{staticClass:"right-end-time"},[t._v(t._s(t.addForm.validEndTime?t.addForm.validEndTime:"结束时间"))])],1)],1)],1)],1)],1):t._e(),2==t.pageType?a("v-uni-view",{staticClass:"bottom"},[a("v-uni-view",{staticClass:"bottom-l",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.cancelClick()}}},[t._v("取消")]),a("v-uni-view",{staticClass:"bottom-r",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.submitForm()}}},[t._v("确定")])],1):t._e(),t.successVisible?a("v-uni-view",{staticClass:"success"},[a("v-uni-view",{staticClass:"null-box",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.closeTip()}}}),a("v-uni-view",{staticClass:"panel"},[1==t.authorizeStatus?a("img",{staticClass:"panel-t",attrs:{src:t.imagesUrl("commonality/icon_kcxq_cg.png")}}):t._e(),2==t.authorizeStatus?a("img",{staticClass:"panel-t",attrs:{src:t.imagesUrl("commonality/icon_kcxq_sb.png")}}):t._e(),a("v-uni-view",{staticClass:"panel-m"},[t._v(t._s(1==t.authorizeStatus?"授权成功":"授权失败"))]),a("v-uni-view",{staticClass:"panel-b"},[t._v("("+t._s(t.count)+"S)")])],1)],1):t._e()],1)},n=[]},"2d07":function(t,e,a){"use strict";a.r(e);var i=a("1004"),o=a("2ea3");for(var n in o)["default"].indexOf(n)<0&&function(t){a.d(e,t,(function(){return o[t]}))}(n);a("946f"),a("06c2");var r=a("828b"),s=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,"041e6104",null,!1,i["a"],void 0);e["default"]=s.exports},"2ea3":function(t,e,a){"use strict";a.r(e);var i=a("ed80"),o=a.n(i);for(var n in i)["default"].indexOf(n)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=o.a},5454:function(t,e,a){var i=a("c86c");e=i(!1),e.push([t.i,"#empowerOpen[data-v-041e6104]{height:100%;display:flex;flex-direction:column}#empowerOpen .page-one[data-v-041e6104]{flex:1;display:flex;flex-direction:column;overflow:hidden}#empowerOpen .page-one .header[data-v-041e6104]{width:%?749?%;height:%?120?%;background:#fff;padding:%?20?% %?30?%;box-sizing:border-box;border-bottom:%?1?% solid #d8d8d8}#empowerOpen .page-one .header .header-n[data-v-041e6104]{position:relative;width:%?690?%;height:%?80?%;border-radius:%?10?% %?10?% %?10?% %?10?%;border:%?1?% solid #e0e0e0;padding-left:%?20?%;box-sizing:border-box}#empowerOpen .page-one .header .header-n .header-l[data-v-041e6104]{width:%?590?%;height:%?80?%}#empowerOpen .page-one .header .header-n .header-r[data-v-041e6104]{position:absolute;top:%?0?%;right:%?0?%;width:%?68?%;height:%?80?%}#empowerOpen .page-one .header .header-n .header-r >img[data-v-041e6104]{width:%?24?%;height:%?24?%;margin-top:%?24?%;margin-left:%?24?%}#empowerOpen .page-one .list[data-v-041e6104]{flex:1;overflow-y:scroll;padding:0 %?30?%;box-sizing:border-box;background:#fff}#empowerOpen .page-one .list .list-li[data-v-041e6104]{display:flex;border-bottom:%?1?% solid #d8d8d8}#empowerOpen .page-one .list .list-li .list-li-l[data-v-041e6104]{flex:1;font-family:PingFang SC;font-weight:400;font-size:%?30?%;color:#333;line-height:%?40?%;padding:%?25?% %?25?% %?25?% 0}#empowerOpen .page-one .list .list-li .list-li-r[data-v-041e6104]{font-family:PingFang SC;font-weight:400;font-size:%?28?%;color:#0183fa;line-height:%?90?%;display:flex;flex-direction:column;text-align:right;width:%?80?%}#empowerOpen .page-one .list .list-li .null-p[data-v-041e6104]{flex:1}#empowerOpen .page-one .list .list-li[data-v-041e6104]:last-child{border-bottom:none}#empowerOpen .page-one .get-data-null-p[data-v-041e6104]{text-align:center;line-height:%?100?%;padding-bottom:80px;color:#999}#empowerOpen .page-tow .list-tow[data-v-041e6104]{padding:0 %?30?% %?50?%;box-sizing:border-box;background:#fff}#empowerOpen .page-tow .list-tow .list-tow-li[data-v-041e6104]{overflow:hidden}#empowerOpen .page-tow .list-tow .list-tow-li .list-tow-li-t[data-v-041e6104]{font-family:PingFang SC;font-weight:400;font-size:%?30?%;color:#333;line-height:%?42?%;text-align:left;margin:%?24?% 0}#empowerOpen .page-tow .list-tow .list-tow-li .list-user-name-box[data-v-041e6104]{display:flex;width:%?690?%;height:%?80?%;border-radius:%?10?% %?10?% %?10?% %?10?%;border:%?1?% solid #e0e0e0;padding-left:%?20?%;box-sizing:border-box}#empowerOpen .page-tow .list-tow .list-tow-li .list-user-name-box uni-view[data-v-041e6104]{line-height:%?78?%}#empowerOpen .page-tow .list-tow .list-tow-li .list-user-name-box uni-view[data-v-041e6104]:nth-child(1){paddin:0 %?10?%;flex:1}#empowerOpen .page-tow .list-tow .list-tow-li .list-user-name-box uni-view[data-v-041e6104]:nth-child(2){width:%?100?%;text-align:center;border-left:%?1?% solid #e0e0e0}#empowerOpen .page-tow .list-tow .list-tow-li .list-tow-li-b[data-v-041e6104]{width:%?690?%;height:%?80?%;border-radius:%?10?% %?10?% %?10?% %?10?%;border:%?1?% solid #e0e0e0;padding-left:%?20?%;box-sizing:border-box}#empowerOpen .page-tow .list-tow .list-tow-li .time[data-v-041e6104]{display:flex;justify-content:flex-start;align-items:center;width:%?690?%;height:%?80?%;border-radius:%?10?% %?10?% %?10?% %?10?%}#empowerOpen .page-tow .list-tow .list-tow-li .time .time-l[data-v-041e6104]{height:%?80?%;width:%?324?%;font-family:PingFang SC;font-weight:400;font-size:%?28?%;color:#333;line-height:%?80?%;text-align:center}#empowerOpen .page-tow .list-tow .list-tow-li .time .time-c[data-v-041e6104]{height:%?80?%;width:%?40?%;text-align:center;line-height:%?80?%}#empowerOpen .page-tow .list-tow .list-tow-li .time .time-r[data-v-041e6104]{height:%?80?%;width:%?324?%;font-family:PingFang SC;font-weight:400;font-size:%?28?%;color:#333;line-height:%?80?%;text-align:center}#empowerOpen .page-tow .list-tow .list-tow-li .time .time-r .right-end-time[data-v-041e6104]{width:%?320?%;height:%?74?%;line-height:%?74?%;font-size:%?28?%;text-align:center;background-color:#e5e5e5;color:#666;border-radius:4px;border:1px solid #e5e5e5}#empowerOpen .bottom[data-v-041e6104]{display:flex;justify-content:space-between;position:fixed;bottom:0}#empowerOpen .bottom .bottom-l[data-v-041e6104]{width:%?375?%;height:%?90?%;background:#fff;font-family:PingFang SC;font-weight:400;font-size:%?30?%;color:#333;line-height:%?90?%;text-align:center}#empowerOpen .bottom .bottom-r[data-v-041e6104]{font-family:PingFang SC;font-weight:400;font-size:%?30?%;color:#fff;line-height:%?90?%;text-align:center;width:%?375?%;height:%?90?%;background:#0183fa}#empowerOpen .success[data-v-041e6104]{height:100%;width:100%;position:fixed;top:0;display:flex;flex-direction:column;z-index:10;background:rgba(0,0,0,.2)}#empowerOpen .success .null-box[data-v-041e6104]{flex:1}#empowerOpen .success .panel[data-v-041e6104]{width:%?550?%;height:%?255?%;background:#fff;border-radius:%?20?% %?20?% %?20?% %?20?%;position:absolute;top:%?320?%;left:%?100?%;display:flex;flex-direction:column;align-items:center}#empowerOpen .success .panel .panel-t[data-v-041e6104]{width:%?80?%;height:%?80?%;margin:%?40?% 0 %?18?% 0}#empowerOpen .success .panel .panel-m[data-v-041e6104]{font-family:PingFang SC;font-weight:400;font-size:%?30?%;color:#3d3d3d;line-height:%?42?%;margin-bottom:%?8?%}#empowerOpen .success .panel .panel-b[data-v-041e6104]{font-family:PingFang SC;font-weight:400;font-size:%?30?%;color:#999;line-height:%?42?%}[data-v-041e6104] .input-value-border{display:none!important}[data-v-041e6104] .uni-date-x{height:%?74?%}",""]),t.exports=e},"946f":function(t,e,a){"use strict";var i=a("cbd9"),o=a.n(i);o.a},"9ee6":function(t,e,a){var i=a("d266");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("967d").default;o("60577a32",i,!0,{sourceMap:!1,shadowMode:!1})},a831:function(t,e,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.applyRemoteOpenLockConfirm=function(t){return(0,n.apiResquest)({url:"/laboratory/apply/remoteOpenLock/confirm",method:"GET",data:t})},e.laboratoryAppletGetSubDetailInfo=e.laboratoryAppletGetApplyDetails=e.laboratoryAppletEditApp=e.laboratoryAppletAuditListByApply=e.iotAppSpeakerPlayVoice=e.iotAppSpeakerFindHorn=e.iotAppSensorFindBySubId=e.iotAppHardwareOperatingHardware=e.iotAppHardwareFindByType=e.iotAppDeviceFindByType=void 0,e.laboratoryAppletLabLockApplyDelete=function(t){return(0,n.apiResquest)({url:"/laboratory/applet/labLockApply/delete",method:"post",data:(0,o.default)({},t)})},e.laboratoryAppletLabLockApplyList=function(t){return(0,n.apiResquest)({url:"/laboratory/applet/labLockApply/list",method:"post",data:(0,o.default)({},t)})},e.laboratoryAppletSubList=void 0,e.laboratoryApplyAddAddApply=function(t){return(0,n.apiResquest)({url:"/laboratory/apply/addAddApply",method:"post",data:(0,o.default)({},t)})},e.laboratoryApplyGetUserInfo=function(t){return(0,n.apiResquest)({url:"/laboratory/apply/getUserInfo",method:"post",data:(0,o.default)({},t)})},e.laboratoryApplyRemoteOpenLock=function(t){return(0,n.apiResquest)({url:"/laboratory/apply/remoteOpenLock",method:"post",data:(0,o.default)({},t)})},e.laboratoryGradeManageList=e.laboratoryGradeManageExecute=e.laboratoryExitRelayOpenLight=e.laboratoryExitRelayCloseLight=e.laboratoryExitLineGetRedisEvacuation=e.laboratoryExitLineExecuteEvacuation=e.laboratoryClassTypeGetList=e.laboratoryClassLevelGetList=e.laboratoryBigViewSelectTriggerInfo=e.laboratoryBigViewGetFloorByBigView=e.laboratoryBigViewGetBuildByBigView=void 0,e.laboratoryLabOpenLockLogUpdateLockData=function(t){return(0,n.apiResquest)({url:"/laboratory/labOpenLockLog/updateLockData",method:"post",data:(0,o.default)({},t)})},e.systemDeptDropList=e.laboratoryexitLineEndEvacuation=e.laboratorySubRelInfoSelectAdminBySubPage=e.laboratoryPlanCloseRiskPlan=void 0,e.systemSubjectGetAppSubject=function(t){return(0,n.apiResquest)({url:"/system/subject/getAppSubject",method:"post",data:(0,o.default)({},t)})},e.systemSubjectGetAppSubjectByLogin=function(t){return(0,n.apiResquest)({url:"/system/subject/getAppSubjectByLogin",method:"post",data:(0,o.default)({},t)})};var o=i(a("9b1b")),n=a("4fd4");e.systemDeptDropList=function(t){return(0,n.apiResquest)({url:"/system/dept/dropList",method:"POST",data:(0,o.default)({},t)})};e.laboratoryClassTypeGetList=function(t){return(0,n.apiResquest)({url:"/laboratory/classType/getList",method:"POST",data:(0,o.default)({},t)})};e.laboratoryClassLevelGetList=function(t){return(0,n.apiResquest)({url:"/laboratory/classLevel/getList",method:"POST",data:(0,o.default)({},t)})};e.laboratoryAppletSubList=function(t){return(0,n.apiResquest)({url:"/laboratory/applet/subList",method:"POST",data:(0,o.default)({},t)})};e.laboratoryAppletGetSubDetailInfo=function(t){return(0,n.apiResquest)({url:"/laboratory/applet/getSubDetailInfo",method:"GET",data:t})};e.iotAppSensorFindBySubId=function(t){return(0,n.apiResquest)({url:"/iot/app/sensor/findBySubId",method:"GET",data:t})};e.iotAppHardwareFindByType=function(t){return(0,n.apiResquest)({url:"/iot/app/hardware/findByType",method:"POST",data:(0,o.default)({},t)})};e.iotAppHardwareOperatingHardware=function(t){return(0,n.apiResquest)({url:"/iot/app/hardware/operatingHardware",method:"GET",data:t})};e.iotAppDeviceFindByType=function(t){return(0,n.apiResquest)({url:"/iot/app/device/findByType",method:"POST",data:(0,o.default)({},t)})};e.iotAppSpeakerFindHorn=function(t){return(0,n.apiResquest)({url:"/iot/app/speaker/findHorn",method:"GET",data:t})};e.iotAppSpeakerPlayVoice=function(t){return(0,n.apiResquest)({url:"/iot/app/speaker/playVoice",method:"GET",data:t})};e.laboratoryBigViewGetBuildByBigView=function(t){return(0,n.apiResquest)({url:"/laboratory/bigView/getBuildByBigView",method:"GET",data:t})};e.laboratorySubRelInfoSelectAdminBySubPage=function(t){return(0,n.apiResquest)({url:"/laboratory/subRelInfo/selectAdminBySubPage",method:"post",data:t})};e.laboratoryBigViewSelectTriggerInfo=function(t){return(0,n.apiResquest)({url:"/laboratory/bigView/selectTriggerInfo",method:"GET",data:t})};e.laboratoryBigViewGetFloorByBigView=function(t){return(0,n.apiResquest)({url:"/laboratory/bigView/getFloorByBigView",method:"GET",data:t})};e.laboratoryExitLineGetRedisEvacuation=function(t){return(0,n.apiResquest)({url:"/laboratory/exitLine/getRedisEvacuation",method:"post",data:t})};e.laboratoryExitLineExecuteEvacuation=function(t){return(0,n.apiResquest)({url:"/laboratory/exitLine/executeEvacuation",method:"post",data:t})};e.laboratoryexitLineEndEvacuation=function(t){return(0,n.apiResquest)({url:"/laboratory/exitLine/endEvacuation",method:"post",data:t})};e.laboratoryExitRelayOpenLight=function(t){return(0,n.apiResquest)({url:"/laboratory/exitRelay/openLight",method:"post",data:t})};e.laboratoryExitRelayCloseLight=function(t){return(0,n.apiResquest)({url:"/laboratory/exitRelay/closeLight",method:"post",data:t})};e.laboratoryPlanCloseRiskPlan=function(t){return(0,n.apiResquest)({url:"/laboratory/plan/closeRiskPlan",method:"GET",data:t})};e.laboratoryAppletAuditListByApply=function(t){return(0,n.apiResquest)({url:"/laboratory/applet/auditListByApply",method:"POST",data:(0,o.default)({},t)})};e.laboratoryAppletGetApplyDetails=function(t){return(0,n.apiResquest)({url:"/laboratory/applet/getApplyDetails",method:"GET",data:t})};e.laboratoryAppletEditApp=function(t){return(0,n.apiResquest)({url:"/laboratory/applet/editApp",method:"POST",data:t})};e.laboratoryGradeManageList=function(t){return(0,n.apiResquest)({url:"/laboratory/gradeManage/list",method:"POST",data:t})};e.laboratoryGradeManageExecute=function(t){return(0,n.apiResquest)({url:"/laboratory/gradeManage/execute",method:"POST",data:t})}},cbd9:function(t,e,a){var i=a("5454");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("967d").default;o("4a219cf8",i,!0,{sourceMap:!1,shadowMode:!1})},d266:function(t,e,a){var i=a("c86c");e=i(!1),e.push([t.i,".uni-date-x .icon-calendar[data-v-041e6104]{padding-left:3px;display:none!important}.uni-date__x-input[data-v-041e6104]{height:%?74?%!important;line-height:%?74?%!important;font-size:%?28?%!important}.uni-date__icon-clear[data-v-041e6104]{height:%?74?%!important;font-size:%?28?%!important}.uni-date__icon-clear uni-text[data-v-041e6104]{font-size:%?32?%!important}",""]),t.exports=e},ed80:function(t,e,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(a("b7c7")),n=i(a("2634")),r=i(a("2fdc"));a("e966"),a("795c"),a("c9b5"),a("bf0f"),a("ab80"),a("2797"),a("aa9c"),a("c223"),a("5c47"),a("a1c1");var s=a("f414"),l=a("a831"),d={components:{},data:function(){return{pageType:1,baseUrl:s.config.base_url,datetimesingle:"",newData:{},currentDate:"",addForm:{userId:"",subId:"",validBeginTime:"",validEndTime:""},total:0,getData:{page:1,pageSize:20,searchValue:"",adminId:uni.getStorageSync("userId")},getDataType:!1,getDataTow:{searchValue:"",labId:""},dataList:[],dataListTow:[],authorizeStatus:0,successVisible:!1,timer:null,count:"",account:!1}},onLoad:function(t){},onShow:function(){},mounted:function(){this.currentDate=this.getdate(),this.systemSubjectGetAppSubject()},methods:{changeLog:function(t){var e=t.split(" ")[0],a=new Date(parseInt(new Date(t).getTime()+18e5)),i=a.getHours().toString().padStart(2,"0"),o=a.getMinutes().toString().padStart(2,"0"),n=e+" "+i+":"+o;this.$set(this.addForm,"validEndTime",n),console.log("change事件:",this.addForm.validEndTime)},getdate:function(){var t=new Date,e=t.getFullYear(),a=t.getMonth()+1,i=t.getDate();a>=1&&a<=9&&(a="0"+a),i>=0&&i<=9&&(i="0"+i);var o=e+"-"+a+"-"+i;return o},delUserData:function(){this.$set(this.addForm,"userName",null),this.$set(this.addForm,"userId",null),this.$set(this,"account",!1)},authorizedChange:function(){var t=this;return(0,r.default)((0,n.default)().mark((function e(){var a,i,o;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(t.getDataTow.searchValue.length<2)){e.next=3;break}return uni.showToast({title:"请输入最少两个字",icon:"none",duration:2e3}),e.abrupt("return");case 3:return a=t,a.dataListTow=[],e.next=7,(0,l.laboratoryApplyGetUserInfo)(t.getDataTow);case 7:i=e.sent,o=i.data,200==o.code&&(o.data.forEach((function(t){a.dataListTow.push({text:t.userName+(t.account?"-"+t.account:""),value:t.userId,userName:t.userName,account:t.account})})),a.$refs.picker.show());case 10:case"end":return e.stop()}}),e)})))()},bindPickerChange:function(t){for(var e=0;e<this.dataListTow.length;e++)if(t.detail.value[0].value==this.dataListTow[e].value)return this.$set(this.addForm,"userName",this.dataListTow[e].userName),this.$set(this.addForm,"userId",this.dataListTow[e].value),void this.$set(this,"account",!!this.dataListTow[e].account&&this.dataListTow[e].account)},authorizedClick:function(t){this.$set(this,"pageType",2),this.$set(this.getDataTow,"labId",t.subId),this.$set(this.addForm,"subId",t.subId)},scrollGet:function(){var t=this;this.total/this.getData.pageSize<=this.getData.page?this.$set(this,"getDataType",!0):(this.getData.page+=1,this.$nextTick((function(){t.systemSubjectGetAppSubject()})))},systemSubjectGetAppSubject:function(){var t=this;return(0,r.default)((0,n.default)().mark((function e(){var a,i,r;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t,e.next=3,(0,l.systemSubjectGetAppSubject)(t.getData);case 3:i=e.sent,r=i.data,200==r.code&&(1==a.getData.page?(t.dataList=r.data.records,t.total=r.data.total,r.data.total/a.getData.pageSize<=a.getData.page&&t.$set(t,"getDataType",!0)):(t.dataList=[].concat((0,o.default)(t.dataList),(0,o.default)(r.data.records)),t.total=r.data.total,r.data.total/a.getData.pageSize<=a.getData.page&&t.$set(t,"getDataType",!0)));case 6:case"end":return e.stop()}}),e)})))()},subNameChange:function(){this.$set(this,"getDataType",!1),this.$set(this,"dataList",[]),this.$set(this,"total",0),this.$set(this.getData,"page",1),this.systemSubjectGetAppSubject()},clearSearch:function(){this.$set(this,"getDataType",!1),this.$set(this,"dataList",[]),this.$set(this,"total",0),this.$set(this.getData,"page",1),this.$set(this.getData,"searchValue",""),this.systemSubjectGetAppSubject()},cancelClick:function(){this.$set(this,"pageType",1)},submitForm:function(){var t=this;return(0,r.default)((0,n.default)().mark((function e(){var a,i,o,r;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t,a.addForm.userId){e.next=4;break}return uni.showToast({title:"请选择被授权人",icon:"none",duration:2e3}),e.abrupt("return");case 4:if(a.addForm.validBeginTime&&a.addForm.validEndTime){e.next=7;break}return uni.showToast({title:"请选择授权时间",icon:"none",duration:2e3}),e.abrupt("return");case 7:return i={userId:t.addForm.userId,subId:t.addForm.subId,validBeginTime:t.addForm.validBeginTime.replace(" ","T")+":00",validEndTime:t.addForm.validEndTime.replace(" ","T")+":59"},e.next=10,(0,l.laboratoryApplyAddAddApply)(i);case 10:o=e.sent,r=o.data,200==r.code?(t.$set(t,"authorizeStatus",1),t.$set(t,"successVisible",!0),t.getCode()):(t.$set(t,"authorizeStatus",2),t.$set(t,"successVisible",!0),t.getCode());case 13:case"end":return e.stop()}}),e)})))()},getCode:function(){var t=this,e=this;this.timer||(this.count=3,this.show=!1,this.timer=setInterval((function(){t.count>0&&t.count<=3?t.count-=1:(e.successVisible=!1,clearInterval(t.timer),t.timer=null)}),1e3))},closeTip:function(){this.$set(this,"successVisible",!1)}}};e.default=d}}]);
|