mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-10 00:40:30 +08:00
0c56a3e599
Made-with: Cursor Former-commit-id: 571c9a99ee26d90505e550c287eb8ad8d743ff8d
1 line
57 KiB
JavaScript
1 line
57 KiB
JavaScript
(window["webpackJsonp_ninca-crk-access-control"]=window["webpackJsonp_ninca-crk-access-control"]||[]).push([["chunk-6bcdd9f2"],{"10b4":function(t,e,r){"use strict";var n=r("d298"),a=r.n(n);a.a},1500:function(t,e,r){"use strict";var n=r("e325"),a=r.n(n);a.a},"208f":function(t,e,r){"use strict";r("a15b"),r("d3b7"),r("4ae1"),r("25f0");var n=r("f3f3"),a=r("276c"),i=r("e954"),c=r("920b"),o=r("e1a7"),s=r("f20d"),l=r("9ab4"),u=r("00a7"),d=r("60a3");function f(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var r,n=Object(s["a"])(t);if(e()){var a=Object(s["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(o["a"])(this,r)}}var p=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t=function(t){Object(c["a"])(r,t);var e=f(r);function r(){var t;return Object(a["a"])(this,r),t=e.apply(this,arguments),t.flashModalKey1=t.flashModalKey,t.modalKey=1,t}return Object(i["a"])(r,[{key:"flashModalKey",value:function(){this.modalKey++}}]),r}(d["h"]);return Object(l["a"])([Object(d["f"])("mkey")],t.prototype,"flashModalKey1",void 0),t=Object(l["a"])([d["a"]],t),t};function h(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var r,n=Object(s["a"])(t);if(e()){var a=Object(s["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(o["a"])(this,r)}}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]:{},r=e.cardWrapRef,o=void 0===r?"cardwrap":r,s=function(e){Object(c["a"])(o,e);var r=h(o);function o(){var t;return Object(a["a"])(this,o),t=r.apply(this,arguments),t.paginationAttrs={},t.selectedArr=[],t.tableData=[],t.searchList={},t.loading=!1,t}return Object(i["a"])(o,[{key:"created",value:function(){this.paginationAttrs=Object(n["a"])({total:0,style:{}},this.paginationAttrs);var t=this.paginationAttrs["page-sizes"]&&this.paginationAttrs["page-sizes"][0];this.searchList=Object(n["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 r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.$ajax(t,Object(n["a"])({ids:[e]},r)).then((function(t){var e=t.data;return e[0]||{}}))}},{key:"_getDetailById",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.$ajax(t,Object(n["a"])({id:e},r)).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()}},{key:"selectedStr",get:function(){return this.selectedArr.join(",")}}]),o}(Object(d["c"])(p()));return Object(l["a"])([Object(d["g"])(o)],s.prototype,"cardWrapRef",void 0),s=Object(l["a"])([Object(d["a"])({components:{CwTable:u["a"]}})],s),s}},"48b1":function(t,e,r){"use strict";r("4160"),r("d3b7"),r("4ae1"),r("25f0"),r("3ca3"),r("159b"),r("ddb0");var n=r("f3f3"),a=(r("96cf"),r("c964")),i=r("276c"),c=r("e954"),o=r("2c4c"),s=r("920b"),l=r("e1a7"),u=r("f20d"),d=r("9ab4"),f=r("a53c"),p=r("144b"),h=r("3c4e"),m=r.n(h),b=r("60a3");function v(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var r,n=Object(u["a"])(t);if(e()){var a=Object(u["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(l["a"])(this,r)}}var g=function(t,e,r){return e},y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.modal,r=void 0===e?"infoModal":e,o=t.getDetail,l=void 0===o?"getDetail":o,u=t.addList,f=void 0===u?"addList":u,h=t.changeData,y=void 0===h?"changeData":h,O=function(t){Object(s["a"])(o,t);var e=v(o);function o(){var t;return Object(i["a"])(this,o),t=e.apply(this,arguments),t.loading=!1,t.ops={},t.oldList={},t.addList={},t.showFooter=!0,t.mixinHidden=null,t}return Object(c["a"])(o,[{key:"mounted",value:function(){this.oldList=Object(n["a"])({},this[f])}},{key:"loadingChange",value:function(t){this.$emit("update:loading",t),this.$emit("loading",t)}},{key:"dealOther",value:function(t,e){}},{key:"showModal",value:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,n,i,c,o,s,u=this,d=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=d.length>0&&void 0!==d[0]?d[0]:{},n=d.length>1&&void 0!==d[1]?d[1]:{},i=d.length>2?d[2]:void 0,this.mixinHidden=i,c=Object.assign({cover:!0},e),this.ops=c,o=this[y]?this[y](n,c):n,this.addList=c.cover?m()(this.oldList,o,{arrayMerge:g}):m()(this.oldList,o),this.dealOther&&this.dealOther(this.addList,c),s=this.$refs[r],t.next=12,this.$nextTick(Object(a["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(t.t0=u[l],!t.t0){t.next=4;break}return t.next=4,u[l](u.addList,c);case 4:s&&s.show();case 5:case"end":return t.stop()}}),t)}))));case 12:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"closeModal",value:function(){var t=this,e=this.$refs[r];e.hide().then((function(){t.loading=!1,t.mixinHidden&&t.mixinHidden()}))}}]),o}(b["h"]);return Object(d["a"])([Object(b["i"])("loading")],O.prototype,"loadingChange",null),O=Object(d["a"])([Object(b["a"])({components:{CwModal:p["a"]}})],O),O};function O(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var r,n=Object(u["a"])(t);if(e()){var a=Object(u["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(l["a"])(this,r)}}e["a"]=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object.assign({modal:"infoModal"},t),r=e.modal,l=void 0===r?"infoModal":r,u=e.form,p=void 0===u?"cwform":u,h=e.formItems,m=void 0===h?"formItems":h,v=function(){var t={};return"string"===typeof m?t[m]=function(t){this.delPlaceholderData(t)}:Array.isArray(m)&&m.forEach((function(e){t[e]=function(t){this.delPlaceholderData(t)}})),t},g=function(t){Object(s["a"])(r,t);var e=O(r);function r(){var t;return Object(i["a"])(this,r),t=e.apply(this,arguments),t.p1=Object(o["a"])(t),t.ops={},t.formAttrsW={},t}return Object(c["a"])(r,[{key:"dealOther",value:function(){var t=this;this.typeObj.view&&(this.showFooter=!1),"string"===typeof m?this.delPlaceholder(m):Array.isArray(m)&&m.forEach((function(e){t.delPlaceholder(e)}))}},{key:"delPlaceholder",value:function(t){this[t]&&"view"===this.ops.type&&this[t].forEach((function(t){t.contentAttrs&&t.contentAttrs.placeholder&&(t.contentAttrs.placeholder="")}))}},{key:"delPlaceholderData",value:function(t){t&&"view"===this.ops.type&&t.forEach((function(t){t.contentAttrs&&t.contentAttrs.placeholder&&(t.contentAttrs.placeholder="")}))}},{key:"getData",value:function(t){return this.typeObj.add?t[0]:this.typeObj.edit?t[1]:this.typeObj.view?t[2]:void 0}},{key:"validateForm",value:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(e){var r,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,r=this.$refs[e],t.next=4,r&&r.validate();case 4:return n=t.sent,t.abrupt("return",n);case 8:throw t.prev=8,t.t0=t["catch"](0),t.t0;case 11:case"end":return t.stop()}}),t,this,[[0,8]])})));function e(e){return t.apply(this,arguments)}return e}()},{key:"validateFormAll",value:function(){var t=this;if(Array.isArray(p)){var e=[];return p.forEach((function(r){e.push(t.validateForm(r))})),Promise.all(e)}return this.validateForm(p)}},{key:"closeModal",value:function(t){var e=this;this.modalRef.hide().then((function(){e.loading=!1,e.resetForm(),e.$emit("getList"),setTimeout((function(){e.mixinHidden&&e.mixinHidden()}),500),t&&t()}))}},{key:"close",value:function(){var t=this;setTimeout((function(){t.resetForm(),t.mixinHidden&&t.mixinHidden()}),500)}},{key:"resetForm",value:function(){var t=this;Array.isArray(p)?p.forEach((function(e){var r=t.$refs[e];r&&r.resetForm()})):this.formRef&&this.formRef.resetForm()}},{key:"typeObj",get:function(){var t=this.ops.type;return{add:"add"===t,edit:"edit"===t,view:"view"===t,o1:"o1"===t,o2:"o2"===t,o3:"o3"===t}}},{key:"formAttrs",get:function(){return Object(n["a"])({disabled:this.typeObj.view,inline:!1},this.formAttrsW||{})}}]),r}(Object(b["c"])(y(Object(n["a"])({},e))));return Object(d["a"])([Object(b["f"])("p")],g.prototype,"p1",void 0),Object(d["a"])([Object(b["b"])({default:{}})],g.prototype,"p",void 0),Object(d["a"])([Object(b["g"])(l)],g.prototype,"modalRef",void 0),Object(d["a"])([Object(b["g"])(p)],g.prototype,"formRef",void 0),g=Object(d["a"])([Object(b["a"])({components:{CwForm:f["a"]},watch:Object(n["a"])({},v())})],g),g}},"4b1f":function(t,e,r){},5378:function(t,e,r){"use strict";var n=r("9249"),a=r.n(n);a.a},"555d":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("CwMainLayout",{staticClass:"person-view",attrs:{loading:t.loading},scopedSlots:t._u([{key:"op-header",fn:function(){return[r("CwHeaderLayout",{attrs:{showBottomLine:""},scopedSlots:t._u([{key:"op",fn:function(){return[r("div",{staticClass:"header-op"},[r("el-tabs",{on:{"tab-click":t.tabClick},model:{value:t.applicationId,callback:function(e){t.applicationId=e},expression:"applicationId"}},t._l(t.appImageStores,(function(e){return r("el-tab-pane",{key:e.applicationId,attrs:{label:e.applicationName+"("+e.personNum+")",name:e.applicationId}},["access-control"===e.serviceCode?r("CwOp",{attrs:{items:t.opItems}}):r("el-radio-group",{model:{value:t.imageStoreId,callback:function(e){t.imageStoreId=e},expression:"imageStoreId"}},t._l(e.imageStores,(function(e){return r("el-radio-button",{key:e.imageStoreId,attrs:{label:e.imageStoreId}},[t._v(" "+t._s(e.imageStoreName+"("+e.personNum+")")+" ")])})),1)],1)})),1)],1)]},proxy:!0}])},[r("div",{staticClass:"header-wrap"},[r("div",{staticClass:"header-left"},[r("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?r("CwSearchForm",{attrs:{formAttrs:t.formAttrs,formItems:t.formItems,searchMethod:"getListWrap",options:t.options,rules:t.rules,ruleForm:t.searchList}}):t._e()],1)])]},proxy:!0}])},[r("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(e){return[r("Card",t._b({attrs:{isAccessControl:t.isAccessControl}},"Card",e,!1))]}}])}),r("CwAsyncWrap",{ref:"refDetail"},[r("DetailModal",{on:{getList:t.getListWrap}})],1),r("CwAsyncWrap",{ref:"refEdit"},[r("EditModal",{on:{getList:t.getListWrap}})],1),r("CwAsyncWrap",{ref:"refAdd"},[r("AddModal",{on:{getList:t.getListWrap}})],1),r("CwAsyncWrap",{ref:"refAddSignle"},[r("AddSignle",{on:{getList:t.getListWrap}})],1),r("CwAsyncWrap",{ref:"refRuleSet"},[r("RuleSet",{on:{getList:t.getListWrap}})],1)],1)},a=[],i=(r("4de4"),r("7db0"),r("b0c0"),r("d3b7"),r("4ae1"),r("25f0"),r("96cf"),r("c964")),c=r("f3f3"),o=r("276c"),s=r("e954"),l=r("920b"),u=r("e1a7"),d=r("f20d"),f=r("9ab4"),p=r("60a3"),h=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"img-card",style:{width:"230px"},on:{click:function(e){return e.stopPropagation(),t.cardClick(e)}}},[r("el-card",{staticClass:"img-card-inner",attrs:{"body-style":{padding:"0"},shadow:"hover"}},[r("div",{staticClass:"top"},[r("div",{staticClass:"top-left"},[t._v(t._s(t.row.personName))]),t.$attrs.isAccessControl?r("el-dropdown",t._b({on:{command:function(e){return t.actionsOp(e,t.action)}}},"el-dropdown",t.action.attrs,!1),[r("span",{staticClass:"el-dropdown-link",on:{click:function(t){t.stopPropagation()}}},[r("i",{staticClass:"el-icon-more",staticStyle:{transform:"rotate(90deg)"}})]),r("el-dropdown-menu",{staticClass:"cw-action-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.action.dropitems,(function(e,n){return r("el-dropdown-item",t._b({key:n},"el-dropdown-item",e,!1),[t._v(t._s(e.label))])})),1)],1):t._e()],1),r("div",{staticClass:"content"},[r("div",{staticClass:"pic"},[r("div",{staticClass:"pic-wrap"},[r("CwBigimg",{attrs:{src:t.row.comparePicture,maskText:""}})],1)]),r("ul",{staticClass:"bottom"},[t.row.isLong?r("li",[r("Cell",{attrs:{label:"有效时间",text:"长期"}})],1):t._e(),t.row.isLong?t._e():r("li",[r("Cell",{attrs:{label:"开始时间",text:t.row.startTimeStr}})],1),t.row.isLong?t._e():r("li",[r("Cell",{attrs:{label:"结束时间",text:t.row.endTimeStr}})],1)])])])],1)},m=[],b=r("65eb"),v=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"cell",style:{height:t.height,"line-height":t.height}},[t.label?r("div",{staticClass:"label"},[t._v(t._s(t.label)+t._s(t.after))]):t._e(),r("div",{staticClass:"text cw-no-wrap",attrs:{title:t.text}},[t._v(t._s(t.text))])])},g=[];r("a9e3");function y(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var r,n=Object(d["a"])(t);if(e()){var a=Object(d["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(u["a"])(this,r)}}var O=function(t){Object(l["a"])(r,t);var e=y(r);function r(){return Object(o["a"])(this,r),e.apply(this,arguments)}return r}(p["h"]);Object(f["a"])([Object(p["e"])({type:[String,Number],default:""})],O.prototype,"label",void 0),Object(f["a"])([Object(p["e"])({type:[String,Number],default:""})],O.prototype,"text",void 0),Object(f["a"])([Object(p["e"])({type:String,default:"30px"})],O.prototype,"height",void 0),Object(f["a"])([Object(p["e"])({type:String,default:":"})],O.prototype,"after",void 0),O=Object(f["a"])([Object(p["a"])({components:{}})],O);var j=O,w=j,k=(r("f13c"),r("2877")),R=Object(k["a"])(w,v,g,!1,null,"401efc32",null),I=R.exports;function x(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var r,n=Object(d["a"])(t);if(e()){var a=Object(d["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(u["a"])(this,r)}}var C=function(t){Object(l["a"])(r,t);var e=x(r);function r(){var t;return Object(o["a"])(this,r),t=e.apply(this,arguments),t.action={attrs:{trigger:"click"},dropitems:[{label:"编辑",command:"edit"},{label:"删除",command:"del"}]},t}return Object(s["a"])(r,[{key:"cardClick",value:function(){this.op({commond:"view"},this.row)}},{key:"actionsOp",value:function(t){this.op({commond:t},this.row)}}]),r}(Object(p["c"])(Object(b["a"])()));Object(f["a"])([Object(p["e"])({type:Object})],C.prototype,"row",void 0),C=Object(f["a"])([Object(p["a"])({inheritAttrs:!1,components:{Cell:I}})],C);var A=C,L=A,S=(r("f264"),Object(k["a"])(L,h,m,!1,null,"b0c9eb24",null)),D=S.exports,_=r("208f"),P=r("806c"),F=r("a705"),M=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("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}},[r("DetailContent",{attrs:{data:t.detail}},[r("DetailViewTable",{attrs:{data:t.detail.apps}})],1)],1)},$=[],T=r("48b1"),z=r("bc0a"),U=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"detail-view-table"},[r("div",{staticClass:"right-text"},[t._v("允许通行时间:")]),r("CwTable",{attrs:{data:t.data,columns:t.columns}})],1)},E=[];function W(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var r,n=Object(d["a"])(t);if(e()){var a=Object(d["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(u["a"])(this,r)}}var N=function(t){Object(l["a"])(r,t);var e=W(r);function r(){return Object(o["a"])(this,r),e.apply(this,arguments)}return Object(s["a"])(r,[{key:"columns",get:function(){return[{type:"text",cloumn:{width:80,prop:"applicationName",label:"关联应用"}},{type:"text",cloumn:{prop:"passIntervalsStr",label:"授权时间"}}]}}]),r}(Object(p["c"])(Object(_["a"])()));Object(f["a"])([Object(p["e"])({type:Array,default:function(){return[]}})],N.prototype,"data",void 0),N=Object(f["a"])([p["a"]],N);var q=N,H=q,Q=(r("837c"),Object(k["a"])(H,U,E,!1,null,"70ad0100",null)),B=Q.exports;function K(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var r,n=Object(d["a"])(t);if(e()){var a=Object(d["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(u["a"])(this,r)}}var G=function(t){Object(l["a"])(r,t);var e=K(r);function r(){var t;return Object(o["a"])(this,r),t=e.apply(this,arguments),t.addList={},t.detail={},t}return Object(s["a"])(r,[{key:"getDetail",value:function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(e,r){return regeneratorRuntime.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,r){return t.apply(this,arguments)}return e}()},{key:"getData",value:function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.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,P["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}()}]),r}(Object(p["c"])(Object(T["a"])()));G=Object(f["a"])([Object(p["a"])({components:{DetailContent:z["a"],DetailViewTable:B}})],G);var J=G,V=J,Z=(r("a64b"),Object(k["a"])(V,M,$,!1,null,"028c5514",null)),X=Z.exports,Y=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("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}},[r("DetailContent",{attrs:{data:t.addList}},[r("TimeSetting",{ref:"refTimeSetting",attrs:{data:t.addList}})],1)],1)},tt=[],et=r("aed5");function rt(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var r,n=Object(d["a"])(t);if(e()){var a=Object(d["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(u["a"])(this,r)}}var nt=function(t){Object(l["a"])(r,t);var e=rt(r);function r(){var t;return Object(o["a"])(this,r),t=e.apply(this,arguments),t.addList={state:!0,workday:[1,2],timeRange:[]},t}return Object(s["a"])(r,[{key:"getDetail",value:function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(e,r){return regeneratorRuntime.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,r){return t.apply(this,arguments)}return e}()},{key:"submitFrom",value:function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(){var e,r;return regeneratorRuntime.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,r=Object(c["a"])({},e,{personId:this.addList.personId,deviceId:this.addList.deviceId}),t.next=6,this.$ajax("/acs/person/edit",r,{loading:"loading"});case 6:this.closeModal();case 7:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}]),r}(Object(p["c"])(Object(T["a"])()));Object(f["a"])([Object(p["g"])()],nt.prototype,"refTimeSetting",void 0),nt=Object(f["a"])([Object(p["a"])({components:{DetailContent:z["a"],TimeSetting:et["a"]}})],nt);var at=nt,it=at,ct=(r("1500"),Object(k["a"])(it,Y,tt,!1,null,"426dce9c",null)),ot=ct.exports,st=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("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}},[r("div",{staticClass:"add-wrap"},[r("div",{staticClass:"left"},[r("TimeSetting",{ref:"refTimeSetting",attrs:{data:t.addList}})],1),r("div",{staticClass:"right"},[r("AddSelectPerson",{ref:"refSelectPerson"})],1)])])},lt=[],ut=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("CwMainLayout",{staticClass:"add-select-person",attrs:{title:"通行人员",loading:t.loading},scopedSlots:t._u([{key:"op-header",fn:function(){return[r("CwHeaderLayout",[r("CwSearchForm",{attrs:{formAttrs:t.formAttrs,formItems:t.formItems,options:t.options,rules:t.rules,ruleForm:t.searchList}})],1)]},proxy:!0}])},[r("CwCardWrap",{ref:"cardwrap",attrs:{data:t.tableData,query:t.searchList},on:{selectd:t.selectd},scopedSlots:t._u([{key:"default",fn:function(e){return[r("Card",t._b({},"Card",e,!1))]}}])}),t.paginationAttrs.total>100?r("div",{staticClass:"tip"},[t._v("已默认加载100人名单")]):t._e()],1)},dt=[],ft=(r("d81d"),function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"person-card",class:{active:t.row.active},style:{width:"96px"},on:{click:function(e){return e.stopPropagation(),t.cardClick(e)}}},[r("div",{staticClass:"pic-wrap"},[r("CwBigimg",{attrs:{src:t.src,isZoom:!1,maskText:"显示照"},on:{click:t.cardClick}})],1),r("div",{staticClass:"text"},[t._v(" "+t._s(t.row.name)+" ")])])}),pt=[];function ht(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var r,n=Object(d["a"])(t);if(e()){var a=Object(d["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(u["a"])(this,r)}}var mt=function(t){Object(l["a"])(r,t);var e=ht(r);function r(){return Object(o["a"])(this,r),e.apply(this,arguments)}return Object(s["a"])(r,[{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}}]),r}(p["h"]);Object(f["a"])([Object(p["e"])({type:Object})],mt.prototype,"row",void 0),mt=Object(f["a"])([Object(p["a"])({inheritAttrs:!1,components:{}})],mt);var bt=mt,vt=bt,gt=(r("617d"),Object(k["a"])(vt,ft,pt,!1,null,"7b652882",null)),yt=gt.exports,Ot=r("d156");function jt(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var r,n=Object(d["a"])(t);if(e()){var a=Object(d["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(u["a"])(this,r)}}var wt=function(t){Object(l["a"])(r,t);var e=jt(r);function r(){var t;return Object(o["a"])(this,r),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(s["a"])(r,[{key:"created",value:function(){this.getOrganizationIds(),this.getLabelIds(),this.getList()}},{key:"getOrganizationIds",value:function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(){var e,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Ot["a"].list();case 2:e=t.sent,r=e.tree,this.options.organizationIds=r;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(i["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Ot["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(i["a"])(regeneratorRuntime.mark((function t(e){var r,n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,P["a"].personPage(e,{_this:this,loading:"loading"});case 2:r=t.sent,n=r.total,a=r.datas,this.paginationAttrs.total=n,this.tableData=a.map((function(t){return 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:"getSelectData",value:function(){return this.selectData}},{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:"selectData",get:function(){return this.tableData.filter((function(t){return t.active})).map((function(t){return t.id}))}}]),r}(Object(p["c"])(Object(_["a"])("getData")));wt=Object(f["a"])([Object(p["a"])({components:{Card:yt}})],wt);var kt=wt,Rt=kt,It=(r("5378"),Object(k["a"])(Rt,ut,dt,!1,null,"726fe04e",null)),xt=It.exports;function Ct(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var r,n=Object(d["a"])(t);if(e()){var a=Object(d["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(u["a"])(this,r)}}var At=function(t){Object(l["a"])(r,t);var e=Ct(r);function r(){var t;return Object(o["a"])(this,r),t=e.apply(this,arguments),t.addList={state:!0},t}return Object(s["a"])(r,[{key:"getDetail",value:function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(e,r){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})));function e(e,r){return t.apply(this,arguments)}return e}()},{key:"submitFrom",value:function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(){var e,r,n;return regeneratorRuntime.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 r=t.sent,n=Object(c["a"])({personIds:e,deviceId:this.addList.deviceId},r),t.next=11,this.$ajax("/acs/person/add",n,{loading:"loading"});case 11:this.closeModal();case 12:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}]),r}(Object(p["c"])(Object(T["a"])()));Object(f["a"])([Object(p["g"])()],At.prototype,"refTimeSetting",void 0),Object(f["a"])([Object(p["g"])()],At.prototype,"refSelectPerson",void 0),At=Object(f["a"])([Object(p["a"])({components:{DetailContent:z["a"],TimeSetting:et["a"],AddSelectPerson:xt}})],At);var Lt=At,St=Lt,Dt=(r("e214"),Object(k["a"])(St,st,lt,!1,null,"66d540ad",null)),_t=Dt.exports,Pt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("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}},[r("div",{staticClass:"add-wrap"},[r("div",{staticClass:"left"},[r("TimeSetting",{ref:"refTimeSetting",attrs:{data:t.addList}})],1),r("div",{staticClass:"right"},[r("AddSinglePerson",{ref:"refSinglePerson"})],1)])])},Ft=[],Mt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"add-single-person"},[t.isInit?r("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(e){return{key:e.code,fn:function(){return[r("ImgUploader",{key:e.code,staticClass:"img-uploader",attrs:{uploadFile:"",id:t.addList[e.code],uploadUrl:t.uploadUrl,width:116,height:150},on:{"update:id":function(r){return t.$set(t.addList,e.code,r)}},model:{value:t.addList[e.code+"temp"],callback:function(r){t.$set(t.addList,e.code+"temp",r)},expression:"addList[slotOne.code + 'temp']"}})]},proxy:!0}}))],null,!0)}):t._e()],1)},$t=[];r("4160"),r("caad"),r("a15b"),r("ac1f"),r("2532"),r("1276"),r("159b");function Tt(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var r,n=Object(d["a"])(t);if(e()){var a=Object(d["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(u["a"])(this,r)}}var zt=function(t){Object(l["a"])(r,t);var e=Tt(r);function r(){var t;return Object(o["a"])(this,r),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(s["a"])(r,[{key:"created",value:function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.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(i["a"])(regeneratorRuntime.mark((function t(){var e,r,n,a,i,c=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Ot["a"].personProperties();case 2:e=t.sent,e.hasAccount,r=e.properties,n=["labelIds","organizationIds","comparePicture"],a=r.filter((function(t){return n.includes(t.code)||1===t.hasRequired})),i={},this.formItems=a.map((function(t){return 1===t.hasMultiple?i[t.code]=[]:i[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=i,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(i["a"])(regeneratorRuntime.mark((function t(){var e,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Ot["a"].list();case 2:e=t.sent,r=e.tree,this.options.organizationIds=r;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(i["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Ot["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(i["a"])(regeneratorRuntime.mark((function e(r){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=Object(c["a"])({},t.addList),"string"===typeof n.organizationIds&&(n.organizationIds=n.organizationIds?[n.organizationIds]:[]),"string"===typeof n.labelIds&&(n.labelIds=n.labelIds?[n.labelIds]:[]),t.allSlots.forEach((function(t){delete n[t.code+"temp"]})),t.tranfItem.length>0&&t.tranfItem.forEach((function(t){var e=n[t]||[];n[t]=e.join(",")})),e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}}]),r}(Object(p["c"])(Object(T["a"])()));zt=Object(f["a"])([Object(p["a"])({components:{ImgUploader:F["a"]}})],zt);var Ut=zt,Et=Ut,Wt=Object(k["a"])(Et,Mt,$t,!1,null,"0ee39506",null),Nt=Wt.exports;function qt(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var r,n=Object(d["a"])(t);if(e()){var a=Object(d["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(u["a"])(this,r)}}var Ht=function(t){Object(l["a"])(r,t);var e=qt(r);function r(){var t;return Object(o["a"])(this,r),t=e.apply(this,arguments),t.addList={state:!0},t}return Object(s["a"])(r,[{key:"getDetail",value:function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(e,r){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})));function e(e,r){return t.apply(this,arguments)}return e}()},{key:"submitFrom",value:function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(){var e,r,n;return regeneratorRuntime.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 r=t.sent,n=Object(c["a"])({personProperties:e,deviceId:this.addList.deviceId},r),t.next=10,this.$ajax("/acs/person/addNew",n,{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}()}]),r}(Object(p["c"])(Object(T["a"])()));Object(f["a"])([Object(p["g"])()],Ht.prototype,"refTimeSetting",void 0),Object(f["a"])([Object(p["g"])()],Ht.prototype,"refSinglePerson",void 0),Ht=Object(f["a"])([Object(p["a"])({components:{DetailContent:z["a"],TimeSetting:et["a"],AddSinglePerson:Nt}})],Ht);var Qt=Ht,Bt=Qt,Kt=(r("c48e"),Object(k["a"])(Bt,Pt,Ft,!1,null,"6fdb7c15",null)),Gt=Kt.exports,Jt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("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}},[r("CwForm",{ref:"cwform",attrs:{formAttrs:t.formAttrs,formItems:t.formItems,options:t.options,rules:t.rules,ruleForm:t.addList}})],1)},Vt=[];function Zt(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var r,n=Object(d["a"])(t);if(e()){var a=Object(d["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(u["a"])(this,r)}}var Xt=function(t){Object(l["a"])(r,t);var e=Zt(r);function r(){var t;return Object(o["a"])(this,r),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(s["a"])(r,[{key:"getDetail",value:function(t,e){this.getImageStoreDetail(t),this.getIncludeOrganizations(),this.getLables()}},{key:"getImageStoreDetail",value:function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Ot["a"].getImageStoreDetail({id:e.imageStoreId});case 2:r=t.sent,this.addList=Object(c["a"])({},this.addList,{},r);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(i["a"])(regeneratorRuntime.mark((function t(){var e,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Ot["a"].list();case 2:e=t.sent,r=e.tree,this.options.includeOrganizations=r;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(i["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Ot["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 r="/component/imagestore/edit";t.$ajax(r,t.addList,{loading:"loading"}).then((function(){t.closeModal()}))}))}},{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}}]}}]),r}(Object(p["c"])(Object(T["a"])()));Xt=Object(f["a"])([Object(p["a"])({components:{DetailContent:z["a"],TimeSetting:et["a"],AddSelectPerson:xt}})],Xt);var Yt=Xt,te=Yt,ee=(r("d044"),Object(k["a"])(te,Jt,Vt,!1,null,"511eb13b",null)),re=ee.exports;function ne(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var r,n=Object(d["a"])(t);if(e()){var a=Object(d["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(u["a"])(this,r)}}var ae=function(t){Object(l["a"])(r,t);var e=ne(r);function r(){var t;return Object(o["a"])(this,r),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(s["a"])(r,[{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"])({},this.searchList,{},this.routerQUery),this.getDetail()}},{key:"getDetail",value:function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.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:"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 r=t.data;e.searchList.personIds=r.personIds})).catch((function(t){e.searchList.regFaceUrl="",e.searchList.personIds=[]})):this.searchList.personIds=[]}},{key:"getListWrap",value:function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(){var e,r,n,a,i,c=this;return regeneratorRuntime.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,n=this.appImageStores.filter((function(t){return t.applicationId===c.applicationId}))[0],this.imageStoreId===(null===n||void 0===n?void 0:null===(r=n.imageStores[0])||void 0===r?void 0:r.imageStoreId)||this.isNoPerson?(this.imageStoreId=null===n||void 0===n?void 0:null===(a=n.imageStores[0])||void 0===a?void 0:a.imageStoreId,this.getList()):this.imageStoreId=null===n||void 0===n?void 0:null===(i=n.imageStores[0])||void 0===i?void 0:i.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(i["a"])(regeneratorRuntime.mark((function t(){var e,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,P["a"].imagestorePersonStatistics(this.searchList);case 2:e=t.sent,r=e.appImageStores,this.appImageStores=r||[];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(i["a"])(regeneratorRuntime.mark((function t(){var e,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Ot["a"].list();case 2:e=t.sent,r=e.tree,this.options.organizationIds=r;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(i["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Ot["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(i["a"])(regeneratorRuntime.mark((function t(e){var r,n,a;return regeneratorRuntime.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,P["a"].page(e,{_this:this,loading:"loading"});case 8:r=t.sent,n=r.total,a=r.datas,this.paginationAttrs.total=n,this.tableData=a;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,r=t.row,n=[r.id],a=this.searchList.deviceId;this.GFdc({content:"确定删除吗?"}).then((function(){e.$ajax("/acs/person/delete",{personIds:n,deviceId:a}).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"])({},e,{deviceId:this.routerQUery.deviceId}))}},{key:"viewClick",value:function(t){var e=t.row;this.refDetail.showModal({type:"view",title:"通行人员详情"},Object(c["a"])({},e,{deviceId:this.routerQUery.deviceId}))}},{key:"tabClick",value:function(t){var e,r=t.name,n=this.appImageStores.filter((function(t){return t.applicationId===r}))[0];this.imageStoreId=null===n||void 0===n?void 0:null===(e=n.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)}},{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}}]),r}(Object(p["c"])(Object(_["a"])("getData")));Object(f["a"])([Object(p["g"])()],ae.prototype,"refDetail",void 0),Object(f["a"])([Object(p["g"])()],ae.prototype,"refEdit",void 0),Object(f["a"])([Object(p["g"])()],ae.prototype,"refAdd",void 0),Object(f["a"])([Object(p["g"])()],ae.prototype,"refRuleSet",void 0),Object(f["a"])([Object(p["g"])()],ae.prototype,"refAddSignle",void 0),Object(f["a"])([Object(p["i"])("searchList.regFaceUrl")],ae.prototype,"regFaceUrlChange",null),Object(f["a"])([Object(p["i"])("imageStoreId")],ae.prototype,"imageStoreIdChange",null),ae=Object(f["a"])([Object(p["a"])({components:{Card:D,ImgUploader:F["a"],DetailModal:X,EditModal:ot,AddModal:_t,RuleSet:re,AddSignle:Gt}})],ae);var ie=ae,ce=ie,oe=(r("10b4"),Object(k["a"])(ce,n,a,!1,null,"26c344cb",null));e["default"]=oe.exports},5584:function(t,e,r){},"617d":function(t,e,r){"use strict";var n=r("d4b2"),a=r.n(n);a.a},"61ec":function(t,e,r){},"65eb":function(t,e,r){"use strict";r("d3b7"),r("4ae1"),r("25f0");var n=r("276c"),a=r("e954"),i=r("920b"),c=r("e1a7"),o=r("f20d"),s=r("9ab4"),l=r("60a3");function u(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var r,n=Object(o["a"])(t);if(e()){var a=Object(o["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(c["a"])(this,r)}}e["a"]=function(){var t=function(t){Object(i["a"])(r,t);var e=u(r);function r(){return Object(n["a"])(this,r),e.apply(this,arguments)}return Object(a["a"])(r,[{key:"emitMethod",value:function(t){var e,r=this.$parent;while(r&&!r[t])r=r.$parent;for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];r&&(e=r)[t].apply(e,a)}},{key:"op",value:function(t,e){var r=t.commond;this.$emit("op",t,e);var n=r+"Click";this.emitMethod(n,{type:r,row:e,action:t})}}]),r}(l["h"]);return t=Object(s["a"])([l["a"]],t),t}},"76b0":function(t,e,r){"use strict";var n=r("61ec"),a=r.n(n);a.a},"7db0":function(t,e,r){"use strict";var n=r("23e7"),a=r("b727").find,i=r("44d2"),c=r("ae40"),o="find",s=!0,l=c(o);o in[]&&Array(1)[o]((function(){s=!1})),n({target:"Array",proto:!0,forced:s||!l},{find:function(t){return a(this,t,arguments.length>1?arguments[1]:void 0)}}),i(o)},"837c":function(t,e,r){"use strict";var n=r("5584"),a=r.n(n);a.a},9249:function(t,e,r){},"99bd":function(t,e,r){"use strict";e["a"]={methods:{emitMethod:function(t){var e,r=this.$parent;while(r&&!r[t])r=r.$parent;for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];r&&(e=r)[t].apply(e,a)}}}},a15b:function(t,e,r){"use strict";var n=r("23e7"),a=r("44ad"),i=r("fc6a"),c=r("a640"),o=[].join,s=a!=Object,l=c("join",",");n({target:"Array",proto:!0,forced:s||!l},{join:function(t){return o.call(i(this),void 0===t?",":t)}})},a64b:function(t,e,r){"use strict";var n=r("d53b"),a=r.n(n);a.a},aed5:function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"form-wrap"},[r("div",{staticClass:"text"},[t._v("允许通行时间:")]),r("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[r("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("全选")]),r("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(e){return r("el-checkbox",{key:e.label,attrs:{label:e.label}},[t._v(t._s(e.text))])})),1)]},proxy:!0}])})],1)},a=[],i=(r("d81d"),r("d3b7"),r("4ae1"),r("25f0"),r("96cf"),r("c964")),c=r("f3f3"),o=r("276c"),s=r("e954"),l=r("920b"),u=r("e1a7"),d=r("f20d"),f=r("9ab4"),p=r("48b1"),h=r("60a3");function m(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var r,n=Object(d["a"])(t);if(e()){var a=Object(d["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(u["a"])(this,r)}}var b=[{label:1,text:"周一"},{label:2,text:"周二"},{label:3,text:"周三"},{label:4,text:"周四"},{label:5,text:"周五"},{label:6,text:"周六"},{label:7,text:"周日"}],v=function(t){Object(l["a"])(r,t);var e=m(r);function r(){var t;return Object(o["a"])(this,r),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(s["a"])(r,[{key:"dataChange",value:function(){this.addList=Object(c["a"])({},this.addList,{},this.data)}},{key:"getDetail",value:function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(e,r){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})));function e(e,r){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(i["a"])(regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.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}()},{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":"结束日期"}}]}}]),r}(Object(h["c"])(Object(p["a"])()));Object(f["a"])([Object(h["e"])({type:Object,default:function(){return{}}})],v.prototype,"data",void 0),Object(f["a"])([Object(h["i"])("data",{immediate:!0})],v.prototype,"dataChange",null),v=Object(f["a"])([Object(h["a"])({components:{}})],v);var g=v,y=g,O=(r("e87f"),r("2877")),j=Object(O["a"])(y,n,a,!1,null,"6d76ca08",null);e["a"]=j.exports},afc9:function(t,e,r){},baa5:function(t,e,r){var n=r("23e7"),a=r("e58c");n({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},bc0a:function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"detail-content"},[r("div",{staticClass:"left"},[r("div",{staticClass:"left-wrap"},[r("CwBigimg",{attrs:{src:t.data.comparePicture,maskText:"注册照"}})],1)]),r("div",{staticClass:"right"},[r("div",{staticClass:"right-top"},[t._v("姓名: "+t._s(t.data.personName))]),t._t("default")],2)])},a=[],i=(r("d3b7"),r("4ae1"),r("25f0"),r("276c")),c=r("920b"),o=r("e1a7"),s=r("f20d"),l=r("9ab4"),u=r("60a3");function d(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var r,n=Object(s["a"])(t);if(e()){var a=Object(s["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(o["a"])(this,r)}}var f=function(t){Object(c["a"])(r,t);var e=d(r);function r(){return Object(i["a"])(this,r),e.apply(this,arguments)}return r}(u["h"]);Object(l["a"])([Object(u["e"])({type:Object,default:function(){return{}}})],f.prototype,"data",void 0),f=Object(l["a"])([u["a"]],f);var p=f,h=p,m=(r("76b0"),r("2877")),b=Object(m["a"])(h,n,a,!1,null,"263adeb6",null);e["a"]=b.exports},c48e:function(t,e,r){"use strict";var n=r("afc9"),a=r.n(n);a.a},cb5b:function(t,e,r){},d044:function(t,e,r){"use strict";var n=r("fcfe"),a=r.n(n);a.a},d298:function(t,e,r){},d4b2:function(t,e,r){},d53b:function(t,e,r){},e214:function(t,e,r){"use strict";var n=r("4b1f"),a=r.n(n);a.a},e325:function(t,e,r){},e58c:function(t,e,r){"use strict";var n=r("fc6a"),a=r("a691"),i=r("50c4"),c=r("a640"),o=r("ae40"),s=Math.min,l=[].lastIndexOf,u=!!l&&1/[1].lastIndexOf(1,-0)<0,d=c("lastIndexOf"),f=o("indexOf",{ACCESSORS:!0,1:0}),p=u||!d||!f;t.exports=p?function(t){if(u)return l.apply(this,arguments)||0;var e=n(this),r=i(e.length),c=r-1;for(arguments.length>1&&(c=s(c,a(arguments[1]))),c<0&&(c=r+c);c>=0;c--)if(c in e&&e[c]===t)return c||0;return-1}:l},e87f:function(t,e,r){"use strict";var n=r("cb5b"),a=r.n(n);a.a},e94d:function(t,e,r){},ec86:function(t,e,r){},f13c:function(t,e,r){"use strict";var n=r("ec86"),a=r.n(n);a.a},f264:function(t,e,r){"use strict";var n=r("e94d"),a=r.n(n);a.a},fcfe:function(t,e,r){}}]); |