mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-09 16:30:29 +08:00
7b2bd307f1
- backend/: 13 Maven modules (cw-elevator-application, cloudwalk-cloud, intelligent-cwoscomponent, ninca-crk, etc.) - frontend/: 4 Vue projects (elevator-front, cwos-portal, alarm-front, front_acs) + decompiled + scripts - scripts/: build, test-env, tools (Docker Compose, service templates, API parity) - docs/: AGENTS.md, superpowers specs, architecture docs - .gitignore: standard Java/Maven exclusions Moved from legacy maven-*/ root layout to backend/ organized structure.
1 line
43 KiB
JavaScript
1 line
43 KiB
JavaScript
(window["webpackJsonp_ninca-crk-access-control"]=window["webpackJsonp_ninca-crk-access-control"]||[]).push([["chunk-034b24d7"],{"06e4":function(t,e,a){},"0d2a":function(t,e,a){"use strict";a("96d3")},1236:function(t,e,a){"use strict";a("65dc")},1809:function(t,e,a){},"186e":function(t,e,a){"use strict";a("3299")},"197d":function(t,e,a){"use strict";a("2970")},"1bc1":function(t,e,a){"use strict";a("d3d8")},"208f":function(t,e,a){"use strict";var r=a("5530"),n=a("d4ec"),i=a("bee2"),s=a("262e"),c=a("2caf"),o=(a("a15b"),a("9ab4")),l=a("00a7"),d=a("60a3"),u=function(){var t=function(t){Object(s["a"])(a,t);var e=Object(c["a"])(a);function a(){var t;return Object(n["a"])(this,a),t=e.apply(this,arguments),t.flashModalKey1=t.flashModalKey,t.modalKey=1,t}return Object(i["a"])(a,[{key:"flashModalKey",value:function(){this.modalKey++}}]),a}(d["h"]);return Object(o["a"])([Object(d["f"])("mkey")],t.prototype,"flashModalKey1",void 0),t=Object(o["a"])([d["a"]],t),t};e["a"]=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"getData",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=e.cardWrapRef,p=void 0===a?"cardwrap":a,h=function(e){Object(s["a"])(o,e);var a=Object(c["a"])(o);function o(){var t;return Object(n["a"])(this,o),t=a.apply(this,arguments),t.paginationAttrs={},t.selectedArr=[],t.tableData=[],t.searchList={},t.loading=!1,t}return Object(i["a"])(o,[{key:"selectedStr",get:function(){return this.selectedArr.join(",")}},{key:"created",value:function(){this.paginationAttrs=Object(r["a"])({total:0,style:{}},this.paginationAttrs);var t=this.paginationAttrs["page-sizes"]&&this.paginationAttrs["page-sizes"][0];this.searchList=Object(r["a"])({currentPage:1,rowsOfPage:t||10},this.searchList)}},{key:"getList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.clearCheck(),this.resetPage(e),this[t]&&this[t](this.GFdeepclone(this.searchList))}},{key:"_getDetail",value:function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.$ajax(t,Object(r["a"])({ids:[e]},a)).then((function(t){var e=t.data;return e[0]||{}}))}},{key:"_getDetailById",value:function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.$ajax(t,Object(r["a"])({id:e},a)).then((function(t){var e=t.data;return e||{}}))}},{key:"selectd",value:function(t){this.selectedArr=t}},{key:"clearCheck",value:function(){this.cardWrapRef&&this.cardWrapRef.clearCheck()}},{key:"allCheckClick",value:function(){this.cardWrapRef&&this.cardWrapRef.checkAll()}},{key:"reviseCheckClick",value:function(){this.cardWrapRef&&this.cardWrapRef.reviseCheck()}},{key:"resetPage",value:function(t){t&&(this.searchList.currentPage=1)}},{key:"delPage",value:function(){(1===this.tableData.length||this.tableData.length===this.selectedArr.length)&&this.searchList.currentPage>1&&this.searchList.currentPage--,this.getList()}}]),o}(Object(d["c"])(u()));return Object(o["a"])([Object(d["g"])(p)],h.prototype,"cardWrapRef",void 0),h=Object(o["a"])([Object(d["a"])({components:{CwTable:l["a"]}})],h),h}},2970:function(t,e,a){},3299:function(t,e,a){},"3c07":function(t,e,a){},"555d":function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("CwMainLayout",{staticClass:"person-view",attrs:{loading:t.loading},scopedSlots:t._u([{key:"op-header",fn:function(){return[e("CwHeaderLayout",{attrs:{showBottomLine:""},scopedSlots:t._u([{key:"op",fn:function(){return[e("div",{staticClass:"header-op"},[e("el-tabs",{on:{"tab-click":t.tabClick},model:{value:t.applicationId,callback:function(e){t.applicationId=e},expression:"applicationId"}},t._l(t.appImageStores,(function(a){return e("el-tab-pane",{key:a.applicationId,attrs:{label:a.applicationName+"("+a.personNum+")",name:a.applicationId}},["access-control"===a.serviceCode?e("CwOp",{attrs:{items:t.opItems}}):e("el-radio-group",{model:{value:t.imageStoreId,callback:function(e){t.imageStoreId=e},expression:"imageStoreId"}},t._l(a.imageStores,(function(a){return e("el-radio-button",{key:a.imageStoreId,attrs:{label:a.imageStoreId}},[t._v(" "+t._s(a.imageStoreName+"("+a.personNum+")")+" ")])})),1)],1)})),1)],1)]},proxy:!0}])},[e("div",{staticClass:"header-wrap"},[e("div",{staticClass:"header-left"},[e("ImgUploader",{staticClass:"img-uploader",attrs:{tips:"选择照片",width:96,height:128},model:{value:t.searchList.regFaceUrl,callback:function(e){t.$set(t.searchList,"regFaceUrl",e)},expression:"searchList.regFaceUrl"}})],1),t.searchList.deviceId?e("CwSearchForm",{attrs:{formAttrs:t.formAttrs,formItems:t.formItems,searchMethod:"getListWrap",options:t.options,rules:t.rules,ruleForm:t.searchList}}):t._e()],1)])]},proxy:!0}])},[e("CwCardWrap",{ref:"cardwrap",attrs:{data:t.tableData,query:t.searchList,paginationAttrs:t.paginationAttrs},on:{"pagination-change":function(e){return t.getList(!1)},selectd:t.selectd},scopedSlots:t._u([{key:"default",fn:function(a){return[e("Card",t._b({attrs:{isAccessControl:t.isAccessControl}},"Card",a,!1))]}}])}),e("CwAsyncWrap",{ref:"refDetail"},[e("DetailModal",{on:{getList:t.getListWrap}})],1),e("CwAsyncWrap",{ref:"refEdit"},[e("EditModal",{on:{getList:t.getListWrap}})],1),e("CwAsyncWrap",{ref:"refAdd"},[e("AddModal",{on:{getList:t.getListWrap}})],1),e("CwAsyncWrap",{ref:"refAddSignle"},[e("AddSignle",{on:{getList:t.getListWrap}})],1),e("CwAsyncWrap",{ref:"refRuleSet"},[e("RuleSet",{on:{getList:t.getListWrap}})],1)],1)},n=[],i=a("c7eb"),s=a("1da1"),c=a("5530"),o=a("d4ec"),l=a("bee2"),d=a("262e"),u=a("2caf"),p=(a("7db0"),a("d3b7"),a("4de4"),a("b0c0"),a("9ab4")),h=a("60a3"),f=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"img-card",style:{width:"230px"},on:{click:function(e){return e.stopPropagation(),t.cardClick.apply(null,arguments)}}},[e("el-card",{staticClass:"img-card-inner",attrs:{"body-style":{padding:"0"},shadow:"hover"}},[e("div",{staticClass:"top"},[e("div",{staticClass:"top-left"},[t._v(t._s(t.row.personName))]),t.$attrs.isAccessControl?e("el-dropdown",t._b({on:{command:function(e){return t.actionsOp(e,t.action)}}},"el-dropdown",t.action.attrs,!1),[e("span",{staticClass:"el-dropdown-link",on:{click:function(t){t.stopPropagation()}}},[e("i",{staticClass:"el-icon-more",staticStyle:{transform:"rotate(90deg)"}})]),e("el-dropdown-menu",{staticClass:"cw-action-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.action.dropitems,(function(a,r){return e("el-dropdown-item",t._b({key:r},"el-dropdown-item",a,!1),[t._v(t._s(a.label))])})),1)],1):t._e()],1),e("div",{staticClass:"content"},[e("div",{staticClass:"pic"},[e("div",{staticClass:"pic-wrap"},[e("CwBigimg",{attrs:{src:t.row.comparePicture,maskText:""}})],1)]),e("ul",{staticClass:"bottom"},[t.row.isLong?e("li",[e("Cell",{attrs:{label:"有效时间",text:"长期"}})],1):t._e(),t.row.isLong?t._e():e("li",[e("Cell",{attrs:{label:"开始时间",text:t.row.startTimeStr}})],1),t.row.isLong?t._e():e("li",[e("Cell",{attrs:{label:"结束时间",text:t.row.endTimeStr}})],1)])])])],1)},b=[],m=a("65eb"),g=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"cell",style:{height:t.height,"line-height":t.height}},[t.label?e("div",{staticClass:"label"},[t._v(t._s(t.label)+t._s(t.after))]):t._e(),e("div",{staticClass:"text cw-no-wrap",attrs:{title:t.text}},[t._v(t._s(t.text))])])},v=[],O=(a("a9e3"),function(t){Object(d["a"])(a,t);var e=Object(u["a"])(a);function a(){return Object(o["a"])(this,a),e.apply(this,arguments)}return Object(l["a"])(a)}(h["h"]));Object(p["a"])([Object(h["e"])({type:[String,Number],default:""})],O.prototype,"label",void 0),Object(p["a"])([Object(h["e"])({type:[String,Number],default:""})],O.prototype,"text",void 0),Object(p["a"])([Object(h["e"])({type:String,default:"30px"})],O.prototype,"height",void 0),Object(p["a"])([Object(h["e"])({type:String,default:":"})],O.prototype,"after",void 0),O=Object(p["a"])([Object(h["a"])({components:{}})],O);var j=O,y=j,w=(a("6a76"),a("2877")),k=Object(w["a"])(y,g,v,!1,null,"401efc32",null),I=k.exports,x=function(t){Object(d["a"])(a,t);var e=Object(u["a"])(a);function a(){var t;return Object(o["a"])(this,a),t=e.apply(this,arguments),t.action={attrs:{trigger:"click"},dropitems:[{label:"编辑",command:"edit"},{label:"删除",command:"del"}]},t}return Object(l["a"])(a,[{key:"cardClick",value:function(){this.op({commond:"view"},this.row)}},{key:"actionsOp",value:function(t){this.op({commond:t},this.row)}}]),a}(Object(h["c"])(Object(m["a"])()));Object(p["a"])([Object(h["e"])({type:Object})],x.prototype,"row",void 0),x=Object(p["a"])([Object(h["a"])({inheritAttrs:!1,components:{Cell:I}})],x);var C=x,L=C,A=(a("186e"),Object(w["a"])(L,f,b,!1,null,"b0c9eb24",null)),_=A.exports,S=a("208f"),D=a("806c"),P=a("a705"),M=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("CwModal",{ref:"infoModal",staticClass:"acs-modal",class:{add_modal:t.typeObj.add},attrs:{width:"500px",title:t.ops.title,submitLoading:t.loading,showFooter:!1},on:{closes:t.close}},[e("DetailContent",{attrs:{data:t.detail}},[e("DetailViewTable",{attrs:{data:t.detail.apps}})],1)],1)},F=[],T=a("48b1"),z=a("bc0a"),U=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"detail-view-table"},[e("div",{staticClass:"right-text"},[t._v("允许通行时间:")]),e("CwTable",{attrs:{data:t.data,columns:t.columns}})],1)},R=[],W=function(t){Object(d["a"])(a,t);var e=Object(u["a"])(a);function a(){return Object(o["a"])(this,a),e.apply(this,arguments)}return Object(l["a"])(a,[{key:"columns",get:function(){return[{type:"text",cloumn:{width:80,prop:"applicationName",label:"关联应用"}},{type:"text",cloumn:{prop:"passIntervalsStr",label:"授权时间"}}]}}]),a}(Object(h["c"])(Object(S["a"])()));Object(p["a"])([Object(h["e"])({type:Array,default:function(){return[]}})],W.prototype,"data",void 0),W=Object(p["a"])([h["a"]],W);var $=W,q=$,N=(a("197d"),Object(w["a"])(q,U,R,!1,null,"70ad0100",null)),Q=N.exports,E=function(t){Object(d["a"])(a,t);var e=Object(u["a"])(a);function a(){var t;return Object(o["a"])(this,a),t=e.apply(this,arguments),t.addList={},t.detail={},t}return Object(l["a"])(a,[{key:"getDetail",value:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(e,a){return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.getData();case 1:case"end":return t.stop()}}),t,this)})));function e(e,a){return t.apply(this,arguments)}return e}()},{key:"getData",value:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(){var e;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e={deviceId:this.addList.deviceId,personId:this.addList.personId},t.next=3,D["a"].personDetail(e);case 3:this.detail=t.sent;case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}]),a}(Object(h["c"])(Object(T["a"])()));E=Object(p["a"])([Object(h["a"])({components:{DetailContent:z["a"],DetailViewTable:Q}})],E);var B=E,K=B,H=(a("cd26"),Object(w["a"])(K,M,F,!1,null,"028c5514",null)),G=H.exports,J=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("CwModal",{ref:"infoModal",staticClass:"acs-modal",class:{add_modal:t.typeObj.add},attrs:{width:"600px",title:t.ops.title,submitLoading:t.loading,showFooter:!0},on:{confirm:t.submitFrom,closes:t.close}},[e("DetailContent",{attrs:{data:t.addList}},[e("TimeSetting",{ref:"refTimeSetting",attrs:{data:t.addList}})],1)],1)},V=[],Z=a("aed5"),X=function(t){Object(d["a"])(a,t);var e=Object(u["a"])(a);function a(){var t;return Object(o["a"])(this,a),t=e.apply(this,arguments),t.addList={state:!0,workday:[1,2],timeRange:[]},t}return Object(l["a"])(a,[{key:"getDetail",value:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(e,a){return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:console.warn(e),e.startTime&&e.endTime?(this.addList.state=!1,this.addList.timeRange=[e.startTime,e.endTime]):this.addList.state=!0;case 2:case"end":return t.stop()}}),t,this)})));function e(e,a){return t.apply(this,arguments)}return e}()},{key:"submitFrom",value:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(){var e,a;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.refTimeSetting.getAddList();case 2:return e=t.sent,a=Object(c["a"])(Object(c["a"])({},e),{},{personId:this.addList.personId,deviceId:this.addList.deviceId}),t.next=6,this.$ajax("/acs/person/edit",a,{loading:"loading"});case 6:this.closeModal();case 7:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}]),a}(Object(h["c"])(Object(T["a"])()));Object(p["a"])([Object(h["g"])()],X.prototype,"refTimeSetting",void 0),X=Object(p["a"])([Object(h["a"])({components:{DetailContent:z["a"],TimeSetting:Z["a"]}})],X);var Y=X,tt=Y,et=(a("e62b"),Object(w["a"])(tt,J,V,!1,null,"426dce9c",null)),at=et.exports,rt=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("CwModal",{ref:"infoModal",staticClass:"acs-modal",class:{add_modal:t.typeObj.add},attrs:{width:"1244px",title:t.ops.title,submitLoading:t.loading,showFooter:!0},on:{confirm:t.submitFrom,closes:t.close}},[e("div",{staticClass:"add-wrap"},[e("div",{staticClass:"left"},[e("TimeSetting",{ref:"refTimeSetting",attrs:{data:t.addList}})],1),e("div",{staticClass:"right"},[e("AddSelectPerson",{ref:"refSelectPerson"})],1)])])},nt=[],it=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("CwMainLayout",{staticClass:"add-select-person",attrs:{title:"通行人员",loading:t.loading},scopedSlots:t._u([{key:"op-header",fn:function(){return[e("CwHeaderLayout",[e("CwSearchForm",{attrs:{formAttrs:t.formAttrs,formItems:t.formItems,options:t.options,rules:t.rules,ruleForm:t.searchList}})],1)]},proxy:!0}])},[e("CwCardWrap",{ref:"cardwrap",attrs:{data:t.tableData,query:t.searchList},on:{selectd:t.selectd},scopedSlots:t._u([{key:"default",fn:function(a){return[e("Card",t._b({},"Card",a,!1))]}}])}),t.paginationAttrs.total>100?e("div",{staticClass:"tip"},[t._v("已默认加载100人名单")]):t._e()],1)},st=[],ct=(a("d81d"),function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"person-card",class:{active:t.row.active},style:{width:"96px"},on:{click:function(e){return e.stopPropagation(),t.cardClick.apply(null,arguments)}}},[e("div",{staticClass:"pic-wrap"},[e("CwBigimg",{attrs:{src:t.src,isZoom:!1,maskText:"显示照"},on:{click:t.cardClick}})],1),e("div",{staticClass:"text"},[t._v(" "+t._s(t.row.name)+" ")])])}),ot=[],lt=function(t){Object(d["a"])(a,t);var e=Object(u["a"])(a);function a(){return Object(o["a"])(this,a),e.apply(this,arguments)}return Object(l["a"])(a,[{key:"cardClick",value:function(){this.$set(this.row,"active",!this.row.active)}},{key:"src",get:function(){return"/cwos-portal/portal/fileManager/imgByPath?path="+this.row.comparePicture}}]),a}(h["h"]);Object(p["a"])([Object(h["e"])({type:Object})],lt.prototype,"row",void 0),lt=Object(p["a"])([Object(h["a"])({inheritAttrs:!1,components:{}})],lt);var dt=lt,ut=dt,pt=(a("1236"),Object(w["a"])(ut,ct,ot,!1,null,"7b652882",null)),ht=pt.exports,ft=a("d156"),bt=function(t){Object(d["a"])(a,t);var e=Object(u["a"])(a);function a(){var t;return Object(o["a"])(this,a),t=e.apply(this,arguments),t.tableData=[],t.searchList={name:"",organizationIds:[],labelIds:[],rowsOfPage:100},t.formAttrs={},t.rules={},t.options={organizationIds:[],labelIds:[]},t}return Object(l["a"])(a,[{key:"created",value:function(){this.getOrganizationIds(),this.getLabelIds(),this.getList()}},{key:"formItems",get:function(){return[{type:"input",name:"name",itemAttrs:{label:"人员姓名"},colAttrs:{},contentAttrs:{placeholder:"人员姓名"}},{type:"cascader",name:"organizationIds",colAttrs:{},itemAttrs:{label:"人员组织"},contentAttrs:{style:"width:192px",placeholder:"请选择组织",props:{multiple:!0,checkStrictly:!0,emitPath:!1},clearable:!0,"collapse-tags":!0}},{type:"select",name:"labelIds",itemAttrs:{label:"人员标签"},contentAttrs:{placeholder:"请选择标签",multiple:!0,clearable:!0,"collapse-tags":!0}}]}},{key:"getOrganizationIds",value:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(){var e,a;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,ft["a"].list();case 2:e=t.sent,a=e.tree,this.options.organizationIds=a;case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"getLabelIds",value:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(){var e;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,ft["a"].getAllLabels();case 2:e=t.sent,this.options.labelIds=e;case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"getData",value:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(e){var a,r,n;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,D["a"].personPage(e,{_this:this,loading:"loading"});case 2:a=t.sent,r=a.total,n=a.datas,this.paginationAttrs.total=r,this.tableData=n.map((function(t){return Object(c["a"])(Object(c["a"])({},t),{},{active:!1})}));case 7:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"selectData",get:function(){return this.tableData.filter((function(t){return t.active})).map((function(t){return t.id}))}},{key:"getSelectData",value:function(){return this.selectData}}]),a}(Object(h["c"])(Object(S["a"])("getData")));bt=Object(p["a"])([Object(h["a"])({components:{Card:ht}})],bt);var mt=bt,gt=mt,vt=(a("93d1"),Object(w["a"])(gt,it,st,!1,null,"726fe04e",null)),Ot=vt.exports,jt=function(t){Object(d["a"])(a,t);var e=Object(u["a"])(a);function a(){var t;return Object(o["a"])(this,a),t=e.apply(this,arguments),t.addList={state:!0},t}return Object(l["a"])(a,[{key:"getDetail",value:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(e,a){return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})));function e(e,a){return t.apply(this,arguments)}return e}()},{key:"submitFrom",value:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(){var e,a,r;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=this.refSelectPerson.getSelectData(),0!==e.length){t.next=5;break}this.$message("请选择人员"),t.next=12;break;case 5:return t.next=7,this.refTimeSetting.getAddList();case 7:return a=t.sent,r=Object(c["a"])({personIds:e,deviceId:this.addList.deviceId},a),t.next=11,this.$ajax("/acs/person/add",r,{loading:"loading"});case 11:this.closeModal();case 12:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}]),a}(Object(h["c"])(Object(T["a"])()));Object(p["a"])([Object(h["g"])()],jt.prototype,"refTimeSetting",void 0),Object(p["a"])([Object(h["g"])()],jt.prototype,"refSelectPerson",void 0),jt=Object(p["a"])([Object(h["a"])({components:{DetailContent:z["a"],TimeSetting:Z["a"],AddSelectPerson:Ot}})],jt);var yt=jt,wt=yt,kt=(a("d381"),Object(w["a"])(wt,rt,nt,!1,null,"66d540ad",null)),It=kt.exports,xt=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("CwModal",{ref:"infoModal",staticClass:"acs-modal",class:{add_modal:t.typeObj.add},attrs:{width:"900px",title:t.ops.title,submitLoading:t.loading,showFooter:!0},on:{confirm:t.submitFrom,closes:t.close}},[e("div",{staticClass:"add-wrap"},[e("div",{staticClass:"left"},[e("TimeSetting",{ref:"refTimeSetting",attrs:{data:t.addList}})],1),e("div",{staticClass:"right"},[e("AddSinglePerson",{ref:"refSinglePerson"})],1)])])},Ct=[],Lt=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"add-single-person"},[t.isInit?e("CwForm",{ref:"cwform",attrs:{formAttrs:t.formAttrs,rowAttrs:{gutter:0},formItems:t.formItems,options:t.options,rules:t.rules,ruleForm:t.addList},scopedSlots:t._u([t._l(t.allSlots,(function(a){return{key:a.code,fn:function(){return[e("ImgUploader",{key:a.code,staticClass:"img-uploader",attrs:{uploadFile:"",id:t.addList[a.code],uploadUrl:t.uploadUrl,width:116,height:150},on:{"update:id":function(e){return t.$set(t.addList,a.code,e)}},model:{value:t.addList[a.code+"temp"],callback:function(e){t.$set(t.addList,a.code+"temp",e)},expression:"addList[slotOne.code + 'temp']"}})]},proxy:!0}}))],null,!0)}):t._e()],1)},At=[],_t=(a("caad"),a("14d9"),a("2532"),a("159b"),a("a15b"),function(t){Object(d["a"])(a,t);var e=Object(u["a"])(a);function a(){var t;return Object(o["a"])(this,a),t=e.apply(this,arguments),t.uploadUrl="/ninca-common-component-organization/file/fileUploadCompress",t.formAttrsW={"label-width":"8em"},t.isInit=!1,t.addList={},t.rules={},t.options={organizationIds:[],labelIds:[]},t.allSlots=[],t.formItems=[],t.tranfItem=[],t}return Object(l["a"])(a,[{key:"created",value:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(){return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.isInit=!1,t.next=3,this.getPersonProperties();case 3:this.isInit=!0;case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"getPersonProperties",value:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(){var e,a,r,n,s,c=this;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,ft["a"].personProperties();case 2:e=t.sent,e.hasAccount,a=e.properties,r=["labelIds","organizationIds","comparePicture"],n=a.filter((function(t){return r.includes(t.code)||1===t.hasRequired})),s={},this.formItems=n.map((function(t){return 1===t.hasMultiple?s[t.code]=[]:s[t.code]="",1===t.type?(1===t.hasRequired&&(c.rules[t.code]=[{required:!0,message:t.reminder,trigger:"blur"}]),{type:"input",name:t.code,itemAttrs:{label:t.name},colAttrs:{span:24},contentAttrs:{placeholder:t.reminder}}):2===t.type?(1===t.hasRequired&&(c.rules[t.code]=[{required:!0,message:t.reminder,trigger:"change"}]),"organizationIds"===t.code?(c.getOrganizationIds(),{type:"cascader",name:t.code,itemAttrs:{label:t.name},contentAttrs:{style:"width:100%",placeholder:t.reminder,props:{multiple:!0,checkStrictly:!0,emitPath:!1},clearable:!0}}):("labelIds"!==t.code?c.options[t.code]=t.arrayData?t.arrayData.split(",").map((function(t){return{label:t,value:t}})):[]:c.getLabelIds(),1===t.hasMultiple&&c.tranfItem.push(t.code),{type:"select",name:t.code,itemAttrs:{label:t.name},contentAttrs:{placeholder:t.reminder,multiple:1===t.hasMultiple,clearable:!0,"collapse-tags":!0}})):3===t.type?(1===t.hasRequired&&(c.rules[t.code]=[{required:!0,message:t.reminder,trigger:"blur"}]),{type:"date",name:t.code,itemAttrs:{label:t.name},contentAttrs:{"value-format":"timestamp",placeholder:t.reminder,type:"datetime"}}):4===t.type?(1===t.hasRequired&&(c.rules[t.code]=[{required:!0,message:t.reminder,trigger:"blur"}]),c.allSlots.push(t),{type:"slotItem",name:t.code,itemAttrs:{label:t.name}}):{type:"input",name:t.code,hidden:!0}})),this.addList=s,console.warn(this.addList);case 11:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"getOrganizationIds",value:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(){var e,a;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,ft["a"].list();case 2:e=t.sent,a=e.tree,this.options.organizationIds=a;case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"getLabelIds",value:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(){var e;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,ft["a"].getAllLabels();case 2:e=t.sent,this.options.labelIds=e;case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"getSelectData",value:function(){var t=this;return this.formRef.validate().then(function(){var e=Object(s["a"])(Object(i["a"])().mark((function e(a){var r;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=Object(c["a"])({},t.addList),"string"===typeof r.organizationIds&&(r.organizationIds=r.organizationIds?[r.organizationIds]:[]),"string"===typeof r.labelIds&&(r.labelIds=r.labelIds?[r.labelIds]:[]),t.allSlots.forEach((function(t){delete r[t.code+"temp"]})),t.tranfItem.length>0&&t.tranfItem.forEach((function(t){var e=r[t]||[];r[t]=e.join(",")})),e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}}]),a}(Object(h["c"])(Object(T["a"])())));_t=Object(p["a"])([Object(h["a"])({components:{ImgUploader:P["a"]}})],_t);var St=_t,Dt=St,Pt=Object(w["a"])(Dt,Lt,At,!1,null,"0ee39506",null),Mt=Pt.exports,Ft=function(t){Object(d["a"])(a,t);var e=Object(u["a"])(a);function a(){var t;return Object(o["a"])(this,a),t=e.apply(this,arguments),t.addList={state:!0},t}return Object(l["a"])(a,[{key:"getDetail",value:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(e,a){return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})));function e(e,a){return t.apply(this,arguments)}return e}()},{key:"submitFrom",value:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(){var e,a,r;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.refSinglePerson.getSelectData();case 3:return e=t.sent,t.next=6,this.refTimeSetting.getAddList();case 6:return a=t.sent,r=Object(c["a"])({personProperties:e,deviceId:this.addList.deviceId},a),t.next=10,this.$ajax("/acs/person/addNew",r,{loading:"loading"});case 10:this.closeModal(),t.next=16;break;case 13:t.prev=13,t.t0=t["catch"](0),console.warn(t.t0);case 16:case"end":return t.stop()}}),t,this,[[0,13]])})));function e(){return t.apply(this,arguments)}return e}()}]),a}(Object(h["c"])(Object(T["a"])()));Object(p["a"])([Object(h["g"])()],Ft.prototype,"refTimeSetting",void 0),Object(p["a"])([Object(h["g"])()],Ft.prototype,"refSinglePerson",void 0),Ft=Object(p["a"])([Object(h["a"])({components:{DetailContent:z["a"],TimeSetting:Z["a"],AddSinglePerson:Mt}})],Ft);var Tt=Ft,zt=Tt,Ut=(a("e4f0b"),Object(w["a"])(zt,xt,Ct,!1,null,"6fdb7c15",null)),Rt=Ut.exports,Wt=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("CwModal",{ref:"infoModal",staticClass:"acs-modal",class:{add_modal:t.typeObj.add},attrs:{width:"500px",title:t.ops.title,submitLoading:t.loading,showFooter:!0},on:{confirm:t.submitFrom,closes:t.close}},[e("CwForm",{ref:"cwform",attrs:{formAttrs:t.formAttrs,formItems:t.formItems,options:t.options,rules:t.rules,ruleForm:t.addList}})],1)},$t=[],qt=function(t){Object(d["a"])(a,t);var e=Object(u["a"])(a);function a(){var t;return Object(o["a"])(this,a),t=e.apply(this,arguments),t.addList={includeOrganizations:[],includeLabels:[],excludeLabels:[]},t.options={includeOrganizations:[],includeLabels:[],excludeLabels:[]},t.rules={shiftName:[{required:!0,message:"请输入班种名称",trigger:"blur"}],shiftType:[{required:!0,message:"请输入考勤类型",trigger:"blur"}]},t}return Object(l["a"])(a,[{key:"formItems",get:function(){return[{type:"cascader",name:"includeOrganizations",itemAttrs:{label:"包含机构"},contentAttrs:{placeholder:"请选择机构",style:"width:100%",props:{multiple:!0,checkStrictly:!0,emitPath:!1},"show-all-levels":!1,clearable:!0}},{type:"select",name:"includeLabels",itemAttrs:{label:"包含标签"},contentAttrs:{placeholder:"请选择标签",multiple:!0,clearable:!0,filterable:!0}},{type:"select",name:"excludeLabels",itemAttrs:{label:"排除标签"},contentAttrs:{placeholder:"请选择标签",multiple:!0,clearable:!0,filterable:!0}}]}},{key:"getDetail",value:function(t,e){this.getImageStoreDetail(t),this.getIncludeOrganizations(),this.getLables()}},{key:"getImageStoreDetail",value:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(e){var a;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,ft["a"].getImageStoreDetail({id:e.imageStoreId});case 2:a=t.sent,this.addList=Object(c["a"])(Object(c["a"])({},this.addList),a);case 4:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"getIncludeOrganizations",value:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(){var e,a;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,ft["a"].list();case 2:e=t.sent,a=e.tree,this.options.includeOrganizations=a;case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"getLables",value:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(){var e;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,ft["a"].getAllLabels();case 2:e=t.sent,this.options.excludeLabels=e,this.options.includeLabels=e;case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"submitFrom",value:function(){var t=this;this.formRef.validate().then((function(e){var a="/component/imagestore/edit";t.$ajax(a,t.addList,{loading:"loading"}).then((function(){t.closeModal()}))}))}}]),a}(Object(h["c"])(Object(T["a"])()));qt=Object(p["a"])([Object(h["a"])({components:{DetailContent:z["a"],TimeSetting:Z["a"],AddSelectPerson:Ot}})],qt);var Nt=qt,Qt=Nt,Et=(a("9eee"),Object(w["a"])(Qt,Wt,$t,!1,null,"511eb13b",null)),Bt=Et.exports,Kt=function(t){Object(d["a"])(a,t);var e=Object(u["a"])(a);function a(){var t;return Object(o["a"])(this,a),t=e.apply(this,arguments),t.routerQUery={deviceId:"",imageStoreId:""},t.tableData=[],t.searchList={deviceId:"",personName:"",regFaceUrl:"",organizationIds:[],labelIds:[],personIds:[]},t.formAttrs={},t.rules={},t.options={deviceTypeCode:[],organizationIds:[],labelIds:[]},t.applicationId="",t.imageStoreId="",t.appImageStores=[],t}return Object(l["a"])(a,[{key:"mounted",value:function(){this.routerQUery=this.$route.query,this.routerQUery.deviceId&&this.routerQUery.imageStoreId||this.$message({message:"参数不对",type:"error"}),this.searchList=Object(c["a"])(Object(c["a"])({},this.searchList),this.routerQUery),this.getDetail()}},{key:"getDetail",value:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(){return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.getListWrap(),this.getOrganizationIds(),this.getLabelIds();case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"isAccessControl",get:function(){var t=this,e=this.appImageStores.find((function(e){return e.applicationId===t.applicationId}));return!!e&&"access-control"===e.serviceCode}},{key:"formItems",get:function(){return[{type:"input",name:"regFaceUrl",showHidden:!0},{type:"input",name:"personName",itemAttrs:{label:"人员姓名"},colAttrs:{span:24},contentAttrs:{placeholder:"人员姓名"}},{type:"cascader",name:"organizationIds",colAttrs:{span:24},itemAttrs:{label:"隶属组织"},contentAttrs:{style:"width:192px",placeholder:"请选择组织",props:{multiple:!0,checkStrictly:!0,emitPath:!1},clearable:!0}},{type:"select",name:"labelIds",itemAttrs:{label:"关联标签"},contentAttrs:{placeholder:"请选择标签",multiple:!0,clearable:!0}}]}},{key:"opItems",get:function(){return[{type:"button",command:"rule",label:"设置通行规则",btnAttrs:{type:"primary"}},{type:"button",command:"add",label:"添加现有人员"},{type:"button",command:"sigle",label:"新增人员"}]}},{key:"isNoPerson",get:function(){return this.searchList.regFaceUrl&&0===this.searchList.personIds.length}},{key:"regFaceUrlChange",value:function(t){var e=this;t?this.$ajax("/acs/person/face-compare",{faceImage:t,deviceId:this.searchList.deviceId},{base64:"faceImage"}).then((function(t){var a=t.data;e.searchList.personIds=a.personIds})).catch((function(t){e.searchList.regFaceUrl="",e.searchList.personIds=[]})):this.searchList.personIds=[]}},{key:"getListWrap",value:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(){var e,a,r,n,s,c=this;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.getAppImageStore();case 2:this.applicationId=null===(e=this.appImageStores[0])||void 0===e?void 0:e.applicationId,r=this.appImageStores.filter((function(t){return t.applicationId===c.applicationId}))[0],this.imageStoreId===(null===r||void 0===r||null===(a=r.imageStores[0])||void 0===a?void 0:a.imageStoreId)||this.isNoPerson?(this.imageStoreId=null===r||void 0===r||null===(n=r.imageStores[0])||void 0===n?void 0:n.imageStoreId,this.getList()):this.imageStoreId=null===r||void 0===r||null===(s=r.imageStores[0])||void 0===s?void 0:s.imageStoreId;case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"getAppImageStore",value:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(){var e,a;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,D["a"].imagestorePersonStatistics(this.searchList);case 2:e=t.sent,a=e.appImageStores,this.appImageStores=a||[];case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"getOrganizationIds",value:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(){var e,a;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,ft["a"].list();case 2:e=t.sent,a=e.tree,this.options.organizationIds=a;case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"getLabelIds",value:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(){var e;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,ft["a"].getAllLabels();case 2:e=t.sent,this.options.labelIds=e;case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"getData",value:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(e){var a,r,n;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.imageStoreId=this.imageStoreId,this.imageStoreId&&!this.isNoPerson){t.next=5;break}return this.paginationAttrs.total=0,this.tableData=[],t.abrupt("return");case 5:return delete e.regFaceUrl,t.next=8,D["a"].page(e,{_this:this,loading:"loading"});case 8:a=t.sent,r=a.total,n=a.datas,this.paginationAttrs.total=r,this.tableData=n;case 13:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"addClick",value:function(){this.refAdd.showModal({type:"add",title:"添加通行人员"},this.routerQUery)}},{key:"sigleClick",value:function(){this.refAddSignle.showModal({type:"add",title:"添加单个通行人员"},this.routerQUery)}},{key:"delClick",value:function(t){var e=this,a=t.row,r=[a.id],n=this.searchList.deviceId;this.GFdc({content:"确定删除吗?"}).then((function(){e.$ajax("/acs/person/delete",{personIds:r,deviceId:n}).then((function(t){e.delPage()}))}))}},{key:"editClick",value:function(t){var e=t.row;console.warn(e),this.refEdit.showModal({type:"edit",title:"编辑通行人员"},Object(c["a"])(Object(c["a"])({},e),{},{deviceId:this.routerQUery.deviceId}))}},{key:"viewClick",value:function(t){var e=t.row;this.refDetail.showModal({type:"view",title:"通行人员详情"},Object(c["a"])(Object(c["a"])({},e),{},{deviceId:this.routerQUery.deviceId}))}},{key:"tabClick",value:function(t){var e,a=t.name,r=this.appImageStores.filter((function(t){return t.applicationId===a}))[0];this.imageStoreId=null===r||void 0===r||null===(e=r.imageStores[0])||void 0===e?void 0:e.imageStoreId}},{key:"ruleClick",value:function(){this.refRuleSet.showModal({type:"add",title:"通行规则设置"},this.routerQUery)}},{key:"imageStoreIdChange",value:function(){this.getList(!0)}}]),a}(Object(h["c"])(Object(S["a"])("getData")));Object(p["a"])([Object(h["g"])()],Kt.prototype,"refDetail",void 0),Object(p["a"])([Object(h["g"])()],Kt.prototype,"refEdit",void 0),Object(p["a"])([Object(h["g"])()],Kt.prototype,"refAdd",void 0),Object(p["a"])([Object(h["g"])()],Kt.prototype,"refRuleSet",void 0),Object(p["a"])([Object(h["g"])()],Kt.prototype,"refAddSignle",void 0),Object(p["a"])([Object(h["i"])("searchList.regFaceUrl")],Kt.prototype,"regFaceUrlChange",null),Object(p["a"])([Object(h["i"])("imageStoreId")],Kt.prototype,"imageStoreIdChange",null),Kt=Object(p["a"])([Object(h["a"])({components:{Card:_,ImgUploader:P["a"],DetailModal:G,EditModal:at,AddModal:It,RuleSet:Bt,AddSignle:Rt}})],Kt);var Ht=Kt,Gt=Ht,Jt=(a("e746"),Object(w["a"])(Gt,r,n,!1,null,"26c344cb",null));e["default"]=Jt.exports},"65dc":function(t,e,a){},"65eb":function(t,e,a){"use strict";var r=a("d4ec"),n=a("bee2"),i=a("262e"),s=a("2caf"),c=a("9ab4"),o=a("60a3");e["a"]=function(){var t=function(t){Object(i["a"])(a,t);var e=Object(s["a"])(a);function a(){return Object(r["a"])(this,a),e.apply(this,arguments)}return Object(n["a"])(a,[{key:"emitMethod",value:function(t){var e,a=this.$parent;while(a&&!a[t])a=a.$parent;for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];a&&(e=a)[t].apply(e,n)}},{key:"op",value:function(t,e){var a=t.commond;this.$emit("op",t,e);var r=a+"Click";this.emitMethod(r,{type:a,row:e,action:t})}}]),a}(o["h"]);return t=Object(c["a"])([o["a"]],t),t}},"6a76":function(t,e,a){"use strict";a("c981")},"7db0":function(t,e,a){"use strict";var r=a("23e7"),n=a("b727").find,i=a("44d2"),s="find",c=!0;s in[]&&Array(1)[s]((function(){c=!1})),r({target:"Array",proto:!0,forced:c},{find:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}}),i(s)},"857a":function(t,e,a){"use strict";var r=a("e330"),n=a("1d80"),i=a("577e"),s=/"/g,c=r("".replace);t.exports=function(t,e,a,r){var o=i(n(t)),l="<"+e;return""!==a&&(l+=" "+a+'="'+c(i(r),s,""")+'"'),l+">"+o+"</"+e+">"}},"93d1":function(t,e,a){"use strict";a("d8b2")},"96d3":function(t,e,a){},9911:function(t,e,a){"use strict";var r=a("23e7"),n=a("857a"),i=a("af03");r({target:"String",proto:!0,forced:i("link")},{link:function(t){return n(this,"a","href",t)}})},"99bd":function(t,e,a){"use strict";e["a"]={methods:{emitMethod:function(t){var e,a=this.$parent;while(a&&!a[t])a=a.$parent;for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];a&&(e=a)[t].apply(e,n)}}}},"9eee":function(t,e,a){"use strict";a("d007")},aed5:function(t,e,a){"use strict";var r=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"form-wrap"},[e("div",{staticClass:"text"},[t._v("允许通行时间:")]),e("CwForm",{ref:"cwform",attrs:{rowAttrs:{gutter:0},formAttrs:t.formAttrs,formItems:t.formItems,options:t.options,rules:t.rules,ruleForm:t.addList},scopedSlots:t._u([{key:"workday",fn:function(){return[e("el-checkbox",{attrs:{disabled:t.isDisabled,indeterminate:t.isIndeterminate},on:{change:t.handleCheckAllChange},model:{value:t.checkAll,callback:function(e){t.checkAll=e},expression:"checkAll"}},[t._v("全选")]),e("el-checkbox-group",{attrs:{disabled:t.isDisabled},on:{change:t.handleCheckedCitiesChange},model:{value:t.addList.workday,callback:function(e){t.$set(t.addList,"workday",e)},expression:"addList.workday"}},t._l(t.options.workday,(function(a){return e("el-checkbox",{key:a.label,attrs:{label:a.label}},[t._v(t._s(a.text))])})),1)]},proxy:!0}])})],1)},n=[],i=a("c7eb"),s=a("1da1"),c=a("5530"),o=a("d4ec"),l=a("bee2"),d=a("262e"),u=a("2caf"),p=(a("d81d"),a("9ab4")),h=a("48b1"),f=a("60a3"),b=[{label:1,text:"周一"},{label:2,text:"周二"},{label:3,text:"周三"},{label:4,text:"周四"},{label:5,text:"周五"},{label:6,text:"周六"},{label:7,text:"周日"}],m=function(t){Object(d["a"])(a,t);var e=Object(u["a"])(a);function a(){var t;return Object(o["a"])(this,a),t=e.apply(this,arguments),t.addList={state:!0,timeRange:[]},t.formAttrsW={"label-width":"0"},t.checkAll=!1,t.isIndeterminate=!0,t.options={workday:b},t}return Object(l["a"])(a,[{key:"dataChange",value:function(){this.addList=Object(c["a"])(Object(c["a"])({},this.addList),this.data)}},{key:"rules",get:function(){if(!this.isDisabled)return{timeRange:[{required:!0,message:"请选择时间",trigger:"blur"}]}}},{key:"isDisabled",get:function(){return this.addList.state}},{key:"formItems",get:function(){return[{type:"checkbox",name:"state",itemAttrs:{label:""},colAttrs:{class:"state-col"},contentAttrs:{text:"长期"}},{type:"date",name:"timeRange",colAttrs:{class:"time-col common-col"},itemAttrs:{label:""},contentAttrs:{"value-format":"timestamp",type:"datetimerange",disabled:this.isDisabled,"default-time":["00:00:00","23:59:59"],"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"}}]}},{key:"getDetail",value:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(e,a){return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})));function e(e,a){return t.apply(this,arguments)}return e}()},{key:"handleCheckAllChange",value:function(t){this.addList.workday=t?b.map((function(t){return t.label})):[],this.isIndeterminate=!1}},{key:"handleCheckedCitiesChange",value:function(t){var e=t.length;this.checkAll=e===b.length,this.isIndeterminate=e>0&&e<b.length}},{key:"getAddList",value:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(){var e=this;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",this.formRef.validate().then((function(t){if(t)return e.addList.state?{startTime:"",endTime:""}:{startTime:e.addList.timeRange[0],endTime:e.addList.timeRange[1]}})));case 1:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}]),a}(Object(f["c"])(Object(h["a"])()));Object(p["a"])([Object(f["e"])({type:Object,default:function(){return{}}})],m.prototype,"data",void 0),Object(p["a"])([Object(f["i"])("data",{immediate:!0})],m.prototype,"dataChange",null),m=Object(p["a"])([Object(f["a"])({components:{}})],m);var g=m,v=g,O=(a("1bc1"),a("2877")),j=Object(O["a"])(v,r,n,!1,null,"6d76ca08",null);e["a"]=j.exports},af03:function(t,e,a){"use strict";var r=a("d039");t.exports=function(t){return r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},bc0a:function(t,e,a){"use strict";var r=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"detail-content"},[e("div",{staticClass:"left"},[e("div",{staticClass:"left-wrap"},[e("CwBigimg",{attrs:{src:t.data.comparePicture,maskText:"注册照"}})],1)]),e("div",{staticClass:"right"},[e("div",{staticClass:"right-top"},[t._v("姓名: "+t._s(t.data.personName))]),t._t("default")],2)])},n=[],i=a("bee2"),s=a("d4ec"),c=a("262e"),o=a("2caf"),l=a("9ab4"),d=a("60a3"),u=function(t){Object(c["a"])(a,t);var e=Object(o["a"])(a);function a(){return Object(s["a"])(this,a),e.apply(this,arguments)}return Object(i["a"])(a)}(d["h"]);Object(l["a"])([Object(d["e"])({type:Object,default:function(){return{}}})],u.prototype,"data",void 0),u=Object(l["a"])([d["a"]],u);var p=u,h=p,f=(a("0d2a"),a("2877")),b=Object(f["a"])(h,r,n,!1,null,"263adeb6",null);e["a"]=b.exports},c981:function(t,e,a){},cd26:function(t,e,a){"use strict";a("1809")},d007:function(t,e,a){},d0d5:function(t,e,a){},d381:function(t,e,a){"use strict";a("3c07")},d3d8:function(t,e,a){},d64e:function(t,e,a){},d8b2:function(t,e,a){},e4f0b:function(t,e,a){"use strict";a("d64e")},e62b:function(t,e,a){"use strict";a("d0d5")},e746:function(t,e,a){"use strict";a("06e4")}}]); |