mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-10 00:40:30 +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
32 KiB
JavaScript
1 line
32 KiB
JavaScript
(window["webpackJsonp_ninca-crk-access-control"]=window["webpackJsonp_ninca-crk-access-control"]||[]).push([["chunk-b3c40660"],{"001f":function(t,e,a){},"00c9":function(t,e,a){"use strict";a("1296")},"0627":function(t,e,a){"use strict";var n=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"pass-time-content"},[e("div",{staticClass:"content-head"},[t._v("通行时间: "+t._s(t.GFdateFormat(t.data.beginDate,"YYYY-MM-DD"))+"~"+t._s(t.GFdateFormat(t.data.endDate,"YYYY-MM-DD")))]),e("div",{staticClass:"content-pass-time"},[e("TextTable",t._l(t.data.passableCycle,(function(t){return e("WeekTextTableItem",{key:t.weekday,attrs:{leftText:t.weekday,texts:t.time}})})),1)],1)])},i=[],r=a("bee2"),c=a("d4ec"),s=a("262e"),o=a("2caf"),u=a("9ab4"),d=a("60a3"),l=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("TextTableItem",{attrs:{leftText:t.cLeftText,texts:t.cText}})},f=[],h=(a("d81d"),a("a9e3"),function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"text-table-item"},[e("div",{staticClass:"text-table-left"},[t._v(t._s(t.leftText))]),e("div",{staticClass:"text-table-right"},t._l(t.texts,(function(a,n){return e("div",{key:n,staticClass:"text-table-list"},[t._v(t._s(a))])})),0)])}),p=[],b=function(t){Object(s["a"])(a,t);var e=Object(o["a"])(a);function a(){return Object(c["a"])(this,a),e.apply(this,arguments)}return Object(r["a"])(a)}(d["h"]);Object(u["a"])([Object(d["e"])({type:String,default:""})],b.prototype,"leftText",void 0),Object(u["a"])([Object(d["e"])({type:Array,default:function(){return[]}})],b.prototype,"texts",void 0),b=Object(u["a"])([d["a"]],b);var v=b,m=v,y=(a("e7d5"),a("2877")),j=Object(y["a"])(m,h,p,!1,null,"58d93042",null),O=j.exports,g=function(t){Object(s["a"])(a,t);var e=Object(o["a"])(a);function a(){return Object(c["a"])(this,a),e.apply(this,arguments)}return Object(r["a"])(a,[{key:"cText",get:function(){return this.texts.map((function(t){return t.beginTime+"~"+t.endTime}))}},{key:"cLeftText",get:function(){return this.weekdayNumToChn(this.leftText)}},{key:"weekdayNumToChn",value:function(t){var e={2:"周一",3:"周二",4:"周三",5:"周四",6:"周五",7:"周六",1:"周日"};return e[t]}}]),a}(d["h"]);Object(u["a"])([Object(d["e"])({type:Number,default:""})],g.prototype,"leftText",void 0),Object(u["a"])([Object(d["e"])({type:Array,default:function(){return[]}})],g.prototype,"texts",void 0),g=Object(u["a"])([Object(d["a"])({components:{TextTableItem:O}})],g);var k=g,w=k,x=Object(y["a"])(w,l,f,!1,null,null,null),T=x.exports,I=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"text-table"},[t._t("default")],2)},_=[],C=function(t){Object(s["a"])(a,t);var e=Object(o["a"])(a);function a(){return Object(c["a"])(this,a),e.apply(this,arguments)}return Object(r["a"])(a)}(d["h"]);C=Object(u["a"])([d["a"]],C);var D=C,A=D,R=(a("487b"),Object(y["a"])(A,I,_,!1,null,"6d74f28f",null)),L=R.exports,F=function(t){Object(s["a"])(a,t);var e=Object(o["a"])(a);function a(){return Object(c["a"])(this,a),e.apply(this,arguments)}return Object(r["a"])(a)}(d["h"]);Object(u["a"])([Object(d["e"])({type:Object,default:function(){return{}}})],F.prototype,"data",void 0),F=Object(u["a"])([Object(d["a"])({components:{WeekTextTableItem:T,TextTable:L}})],F);var M=F,S=M,$=(a("9c73"),Object(y["a"])(S,n,i,!1,null,"41531328",null));e["a"]=$.exports},"083a":function(t,e,a){"use strict";var n=a("0d51"),i=TypeError;t.exports=function(t,e){if(!delete t[e])throw new i("Cannot delete property "+n(e)+" of "+n(t))}},1296:function(t,e,a){},"1d5e":function(t,e,a){"use strict";var n=a("c7eb"),i=a("5530"),r=a("1da1"),c=a("d4ec"),s=a("bee2"),o=a("262e"),u=a("2caf"),d=a("2ff6"),l={defaultEdit:"/api/terminal/default/edit",defaultQuery:"/api/terminal/default/query",count:"/api/terminal/count",personDel:"/api/terminal/persons/delete"},f=function(t){Object(o["a"])(a,t);var e=Object(u["a"])(a);function a(){return Object(c["a"])(this,a),e.apply(this,arguments)}return Object(s["a"])(a,[{key:"defaultEdit",value:function(){var t=Object(r["a"])(Object(n["a"])().mark((function t(){var e,a,r,c,s=arguments;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=s.length>0&&void 0!==s[0]?s[0]:{},a=s.length>1&&void 0!==s[1]?s[1]:{},r=Object.assign(e),t.next=5,this.$ajax(l.defaultEdit,r,Object(i["a"])({tip:"配置成功"},a));case 5:return c=t.sent,t.abrupt("return",c);case 7:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"defaultQuery",value:function(){var t=Object(r["a"])(Object(n["a"])().mark((function t(){var e,a,i,r,c=arguments;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=c.length>0&&void 0!==c[0]?c[0]:{},a=c.length>1&&void 0!==c[1]?c[1]:{},i=Object.assign(e),t.next=5,this.$ajax(l.defaultQuery,i,a);case 5:return r=t.sent,t.abrupt("return",{deviceInfo:r.data||[]});case 7:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"count",value:function(){var t=Object(r["a"])(Object(n["a"])().mark((function t(){var e,a,r,c,s=arguments;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=s.length>0&&void 0!==s[0]?s[0]:{},a=s.length>1&&void 0!==s[1]?s[1]:{},r=Object.assign(e),t.next=5,this.$ajax(l.count,r,Object(i["a"])({},a));case 5:return c=t.sent,t.abrupt("return",c.data);case 7:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"personDel",value:function(){var t=Object(r["a"])(Object(n["a"])().mark((function t(){var e,a,r,c,s=arguments;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=s.length>0&&void 0!==s[0]?s[0]:{},a=s.length>1&&void 0!==s[1]?s[1]:{},r=Object.assign(e),t.next=5,this.$ajax(l.personDel,r,Object(i["a"])({},a));case 5:return c=t.sent,t.abrupt("return",c);case 7:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}]),a}(d["a"]);e["a"]=new f},"27e1":function(t,e,a){},2864:function(t,e,a){"use strict";a("27e1")},4243:function(t,e,a){"use strict";var n=a("c7eb"),i=a("5530"),r=a("1da1"),c=a("d4ec"),s=a("bee2"),o=a("262e"),u=a("2caf"),d=(a("d81d"),a("2ff6")),l={query:"/acs/passableTime/query",add:"/acs/passableTime/add",edit:"/acs/passableTime/edit",delete:"/acs/passableTime/delete",detail:"/acs/passableTime/detail"};e["a"]=new(function(t){Object(o["a"])(a,t);var e=Object(u["a"])(a);function a(){return Object(c["a"])(this,a),e.apply(this,arguments)}return Object(s["a"])(a,[{key:"weekdayNumToChn",value:function(t){var e={1:"周一",2:"周二",3:"周三",4:"周四",5:"周五",6:"周六",7:"周日"};return e[t]}},{key:"query",value:function(){var t=Object(r["a"])(Object(n["a"])().mark((function t(){var e,a,r,c,s=this,o=arguments;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=o.length>0&&void 0!==o[0]?o[0]:{},a=o.length>1&&void 0!==o[1]?o[1]:{},r=Object.assign({},e),t.next=5,this.$ajax(l.query,r,Object(i["a"])({},a));case 5:return c=t.sent,t.abrupt("return",c.data.map((function(t){return Object.assign(t,s.formatData(t))})));case 7:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"detail",value:function(){var t=Object(r["a"])(Object(n["a"])().mark((function t(e){var a,r,c,s=arguments;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=s.length>1&&void 0!==s[1]?s[1]:{},r=Object.assign({},e),t.next=4,this.$ajax(l.detail,r,Object(i["a"])({},a));case 4:return c=t.sent,t.abrupt("return",Object.assign(c.data,this.formatData(c.data)));case 6:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"formatData",value:function(t){var e=this;return{id:t.passableTimeId,beginDateStr:this.GFdateFormat(t.beginDate,"YYYY-MM-DD"),endDateStr:this.GFdateFormat(t.endDate,"YYYY-MM-DD"),passableCycle:t.passableCycle.map((function(t){return Object.assign(t,{weekdayStr:e.weekdayNumToChn(t.weekday)})}))}}},{key:"add",value:function(){var t=Object(r["a"])(Object(n["a"])().mark((function t(e){var a,r,c,s=arguments;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=s.length>1&&void 0!==s[1]?s[1]:{},r=Object.assign({},e),t.next=4,this.$ajax(l.add,r,Object(i["a"])({addTime:{start:"beginDate",end:"endDate"}},a));case 4:return c=t.sent,t.abrupt("return",c.data);case 6:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"edit",value:function(){var t=Object(r["a"])(Object(n["a"])().mark((function t(e){var a,r,c,s=arguments;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=s.length>1&&void 0!==s[1]?s[1]:{},r=Object.assign({},e),t.next=4,this.$ajax(l.edit,r,Object(i["a"])({addTime:{start:"beginDate",end:"endDate"}},a));case 4:return c=t.sent,t.abrupt("return",c.data);case 6:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"delete",value:function(){var t=Object(r["a"])(Object(n["a"])().mark((function t(e){var a,r,c,s=arguments;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=s.length>1&&void 0!==s[1]?s[1]:{},r=Object.assign({},e),t.next=4,this.$ajax(l.delete,r,Object(i["a"])({},a));case 4:return c=t.sent,t.abrupt("return",c.data);case 6:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()}]),a}(d["a"]))},"487b":function(t,e,a){"use strict";a("f781")},"48b1":function(t,e,a){"use strict";var n=a("c7eb"),i=a("1da1"),r=a("5530"),c=a("d4ec"),s=a("bee2"),o=a("257e"),u=a("262e"),d=a("2caf"),l=(a("d3b7"),a("159b"),a("14d9"),a("3ca3"),a("ddb0"),a("9ab4")),f=a("a53c"),h=a("144b"),p=a("3c4e"),b=a.n(p),v=a("60a3"),m=function(t,e,a){return e},y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.modal,a=void 0===e?"infoModal":e,o=t.getDetail,f=void 0===o?"getDetail":o,p=t.addList,y=void 0===p?"addList":p,j=t.changeData,O=void 0===j?"changeData":j,g=function(t){Object(u["a"])(o,t);var e=Object(d["a"])(o);function o(){var t;return Object(c["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(s["a"])(o,[{key:"mounted",value:function(){this.oldList=Object(r["a"])({},this[y])}},{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(i["a"])(Object(n["a"])().mark((function t(){var e,r,c,s,o,u,d=this,l=arguments;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=l.length>0&&void 0!==l[0]?l[0]:{},r=l.length>1&&void 0!==l[1]?l[1]:{},c=l.length>2?l[2]:void 0,this.mixinHidden=c,s=Object.assign({cover:!0},e),this.ops=s,o=this[O]?this[O](r,s):r,this.addList=s.cover?b()(this.oldList,o,{arrayMerge:m}):b()(this.oldList,o),this.dealOther&&this.dealOther(this.addList,s),u=this.$refs[a],t.next=12,this.$nextTick(Object(i["a"])(Object(n["a"])().mark((function t(){return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(t.t0=d[f],!t.t0){t.next=4;break}return t.next=4,d[f](d.addList,s);case 4:u&&u.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[a];e.hide().then((function(){t.loading=!1,t.mixinHidden&&t.mixinHidden()}))}}]),o}(v["h"]);return Object(l["a"])([Object(v["i"])("loading")],g.prototype,"loadingChange",null),g=Object(l["a"])([Object(v["a"])({components:{CwModal:h["a"]}})],g),g};e["a"]=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object.assign({modal:"infoModal"},t),a=e.modal,h=void 0===a?"infoModal":a,p=e.form,b=void 0===p?"cwform":p,m=e.formItems,j=void 0===m?"formItems":m,O=function(){var t={};return"string"===typeof j?t[j]=function(t){this.delPlaceholderData(t)}:Array.isArray(j)&&j.forEach((function(e){t[e]=function(t){this.delPlaceholderData(t)}})),t},g=function(t){Object(u["a"])(a,t);var e=Object(d["a"])(a);function a(){var t;return Object(c["a"])(this,a),t=e.apply(this,arguments),t.p1=Object(o["a"])(t),t.ops={},t.formAttrsW={},t}return Object(s["a"])(a,[{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(r["a"])({disabled:this.typeObj.view,inline:!1},this.formAttrsW||{})}},{key:"dealOther",value:function(){var t=this;this.typeObj.view&&(this.showFooter=!1),"string"===typeof j?this.delPlaceholder(j):Array.isArray(j)&&j.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(i["a"])(Object(n["a"])().mark((function t(e){var a,i;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,a=this.$refs[e],t.next=4,a&&a.validate();case 4:return i=t.sent,t.abrupt("return",i);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(b)){var e=[];return b.forEach((function(a){e.push(t.validateForm(a))})),Promise.all(e)}return this.validateForm(b)}},{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(b)?b.forEach((function(e){var a=t.$refs[e];a&&a.resetForm()})):this.formRef&&this.formRef.resetForm()}}]),a}(Object(v["c"])(y(Object(r["a"])({},e))));return Object(l["a"])([Object(v["f"])("p")],g.prototype,"p1",void 0),Object(l["a"])([Object(v["b"])({default:{}})],g.prototype,"p",void 0),Object(l["a"])([Object(v["g"])(h)],g.prototype,"modalRef",void 0),Object(l["a"])([Object(v["g"])(b)],g.prototype,"formRef",void 0),g=Object(l["a"])([Object(v["a"])({components:{CwForm:f["a"]},watch:Object(r["a"])({},O())})],g),g}},"691c":function(t,e,a){},7650:function(t,e,a){"use strict";var n=a("ade3"),i=a("c7eb"),r=a("1da1"),c=a("2909"),s=a("5530"),o=a("d4ec"),u=a("bee2"),d=a("262e"),l=a("2caf"),f=(a("b0c0"),a("d3b7"),a("6062"),a("3ca3"),a("ddb0"),a("159b"),a("4de4"),a("d81d"),a("caad"),a("2532"),a("9ab4")),h=a("b412"),p=a("1d5e"),b=a("60a3");e["a"]=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.name,v=void 0===a?"searchList":a,m=e.span,y=void 0===m?[]:m,j=e.userFn,O=void 0!==j&&j,g=function(t){Object(d["a"])(a,t);var e=Object(l["a"])(a);function a(){var t;return Object(o["a"])(this,a),t=e.apply(this,arguments),t.options={},t.deviceFormItems=[{type:"select",name:"districtIds",contentAttrs:{multiple:!0},showHidden:!0},{type:"cascader",name:"areaIds",itemAttrs:{label:"安装区域"},colAttrs:{span:y[0]},contentAttrs:{props:{multiple:!0,label:"name",value:"id",emitPath:!1,checkStrictly:!0},"collapse-tags":!0,"show-all-levels":!1,placeholder:"请选择安装区域"}},{type:"select",name:"deviceIds",itemAttrs:{label:"安装设备"},colAttrs:{span:y[1]},contentAttrs:{filterable:!0,multiple:!0,clearable:!0,"collapse-tags":!0,placeholder:"请选择安装设备"}}],t}return Object(u["a"])(a,[{key:"created",value:function(){O||(this[v]=Object(s["a"])({districtId:[],districtIds:[],deviceIds:[],areaIds:[]},this[v]),this.options=Object(s["a"])({deviceIds:[],areaIds:[]},this.options)),this.getAreaIds()}},{key:"_devicechangeData",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=e.deviceKey,n=void 0===a?"deviceInfo":a,i=this.GFdeepclone(t),r=i[n]||[],o=new Set,u=new Set;return r.forEach((function(t){o.add(t.deviceId),u.add(t.areaId)})),Object(s["a"])(Object(s["a"])({},i),{},{deviceIds:Object(c["a"])(o),areaIds:Object(c["a"])(u)})}},{key:"_getDefaultDevice",value:function(){var t=Object(r["a"])(Object(i["a"])().mark((function t(e){var a,n,r,c,s,o;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,p["a"].defaultQuery({userType:e});case 2:return a=t.sent,n=this._devicechangeData(a||[]),r=n.deviceIds,c=void 0===r?[]:r,s=n.areaIds,o=void 0===s?[]:s,this[v].areaIds=o,this[v].deviceIds=c,t.abrupt("return",{deviceIds:c,areaIds:o});case 7:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"getAreaIds",value:function(){var t=this;this.$ajax("/sysetting/deviceArea/tree",{}).then((function(e){t[v].areaIds=[],t.options.areaIds=[],t.options.areaIds=e.data}))}},{key:"getDistrictId",value:function(t){return this.$ajax("/component/device/district/get/sub",{id:t})}},{key:"getDistrictId1",value:function(t){var e=this;this.$ajax("/component/device/district/list",{}).then((function(t){var a=e.GFmapping(t.data,{label:"districtName",value:"id"});e.options.districtId=Object(h["a"])(a,{parentKey:"parentId",childrenKey:"children"})}))}},{key:"getDeviceIds",value:function(t){var e=this;t&&t.length>0?this.$ajax("/component/device/list",{areaIds:t,districtId:this[v].districtId[this[v].districtId.length-1]}).then((function(t){e.options.deviceIds=e.GFmapping(t.data,{label:"deviceName",value:"id"}),e.setSelectDeviceIds(e.options.deviceIds)})):(this[v].deviceIds=[],this.options.deviceIds=[])}},{key:"setSelectDeviceIds",value:function(t){this[v].deviceIds=this[v].deviceIds.filter((function(e){return t.some((function(t){return t.value===e}))}))}},{key:"_getDeviceCode",value:function(){var t=this;return this.options.deviceIds.filter((function(e){return t[v].deviceIds.includes(e.deviceId)})).map((function(t){return t.deviceCode}))}},{key:"_addDeviceCode",value:function(){this[v].deviceCodes=this._getDeviceCode()}}]),a}(b["h"]);return g=Object(f["a"])([Object(b["a"])({watch:(t={},Object(n["a"])(t,"".concat(v,".districtId"),(function(t){t.length>0?this[v].districtIds=[t[t.length-1]]:this[v].districtIds=[]})),Object(n["a"])(t,"".concat(v,".areaIds"),(function(t){this.getDeviceIds(t)})),t)})],g),g}},"90ad":function(t,e,a){},"963f":function(t,e,a){},"9c73":function(t,e,a){"use strict";a("963f")},a434:function(t,e,a){"use strict";var n=a("23e7"),i=a("7b0b"),r=a("23cb"),c=a("5926"),s=a("07fa"),o=a("3a34"),u=a("3511"),d=a("65f0"),l=a("8418"),f=a("083a"),h=a("1dde"),p=h("splice"),b=Math.max,v=Math.min;n({target:"Array",proto:!0,forced:!p},{splice:function(t,e){var a,n,h,p,m,y,j=i(this),O=s(j),g=r(t,O),k=arguments.length;for(0===k?a=n=0:1===k?(a=0,n=O-g):(a=k-2,n=v(b(c(e),0),O-g)),u(O+a-n),h=d(j,n),p=0;p<n;p++)m=g+p,m in j&&l(h,p,j[m]);if(h.length=n,a<n){for(p=g;p<O-n;p++)m=p+n,y=p+a,m in j?j[y]=j[m]:f(j,y);for(p=O;p>O-n+a;p--)f(j,p-1)}else if(a>n)for(p=O-n;p>g;p--)m=p+n-1,y=p+a-1,m in j?j[y]=j[m]:f(j,y);for(p=0;p<a;p++)j[p+g]=arguments[p+2];return o(j,O-n+a),h}})},de50:function(t,e,a){"use strict";a("691c")},e10d:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("CwMainLayout",{staticClass:"common-idf",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("CwOp",{attrs:{items:t.opItems}})]},proxy:!0}])})]},proxy:!0}])},[e("InCardWrap",{ref:"cardwrap",attrs:{data:t.tableData,query:t.searchList,paginationAttrs:t.paginationAttrs},on:{"pagination-change":function(e){return t.getList(!1)}},scopedSlots:t._u([{key:"default",fn:function(a){return[e("Card",t._b({},"Card",a,!1))]}}])}),e("CwAsyncWrap",{ref:"refAdd"},[e("AddEdit",{on:{getList:t.getList}})],1)],1)},i=[],r=a("5530"),c=a("c7eb"),s=a("1da1"),o=a("d4ec"),u=a("bee2"),d=a("262e"),l=a("2caf"),f=(a("14d9"),a("9ab4")),h=a("4d8e"),p=a("7650"),b=a("60a3"),v=a("4243"),m=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("in-card-qz",{staticClass:"in-qz-card",attrs:{"disabled-card-click":"",row:t.row,cardAttrs:t.cardAttrs,tops:t.tops,contents:[],pics:[]},scopedSlots:t._u([{key:"contents",fn:function(){return[e("PassTimeContent",{attrs:{data:t.row}})]},proxy:!0}])})},y=[],j=a("0627"),O=function(t){Object(d["a"])(a,t);var e=Object(l["a"])(a);function a(){var t;return Object(o["a"])(this,a),t=e.apply(this,arguments),t.cardAttrs={style:{height:"285px"}},t}return Object(u["a"])(a,[{key:"tops",get:function(){return{attrs:{},left:{attrs:{style:{width:"90%"}},text:this.row.passableTimeName},action:{dropitems:[{command:"edit",label:"编辑"},{command:"del",label:"删除"}]}}}},{key:"emitDevice",value:function(t){this.$emit(t,this.row)}}]),a}(b["h"]);Object(f["a"])([Object(b["e"])({type:Object})],O.prototype,"row",void 0),O=Object(f["a"])([Object(b["a"])({inheritAttrs:!1,components:{PassTimeContent:j["a"]}})],O);var g=O,k=g,w=(a("2864"),a("2877")),x=Object(w["a"])(k,m,y,!1,null,"4f6b7006",null),T=x.exports,I=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("CwModal",{ref:"infoModal",staticClass:"addedit-modal",class:{add_modal:t.typeObj.add},attrs:{width:"550px",title:t.ops.title,submitLoading:t.loading,showFooter:!0},on:{confirm:t.submitFrom,closes:t.close}},[e("div",{staticClass:"modal-content"},[e("in-form",{ref:"cwform",attrs:{formAttrs:t.formAttrs,formItems:t.formItems,options:t.options,model:t.addList},scopedSlots:t._u([{key:"cycle",fn:function(){return[e("el-form-item",{attrs:{label:"循环周期",prop:"cycle"}},[e("CycleTime",[e("CycleTimeItem",{ref:"c2",attrs:{weekText:"周一",initVal:t.initVal.c2}}),e("CycleTimeItem",{ref:"c3",attrs:{weekText:"周二",initVal:t.initVal.c3}}),e("CycleTimeItem",{ref:"c4",attrs:{weekText:"周三",initVal:t.initVal.c4}}),e("CycleTimeItem",{ref:"c5",attrs:{weekText:"周四",initVal:t.initVal.c5}}),e("CycleTimeItem",{ref:"c6",attrs:{weekText:"周五",initVal:t.initVal.c6}}),e("CycleTimeItem",{ref:"c7",attrs:{weekText:"周六",initVal:t.initVal.c7}}),e("CycleTimeItem",{ref:"c1",attrs:{weekText:"周日",initVal:t.initVal.c1}})],1)],1)]},proxy:!0}])})],1)])},_=[],C=(a("d3b7"),a("159b"),a("d81d"),a("4de4"),a("48b1")),D=a("5a0c"),A=a.n(D),R=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"cycle-time"},[t._t("default")],2)},L=[],F=function(t){Object(d["a"])(a,t);var e=Object(l["a"])(a);function a(){return Object(o["a"])(this,a),e.apply(this,arguments)}return Object(u["a"])(a)}(b["h"]);F=Object(f["a"])([b["a"]],F);var M=F,S=M,$=Object(w["a"])(S,R,L,!1,null,"60c834f0",null),P=$.exports,N=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"cycle-time-item"},[e("div",{staticClass:"cycle-head"},[e("div",{staticClass:"cycle-head-left"},[e("el-checkbox",{model:{value:t.checked,callback:function(e){t.checked=e},expression:"checked"}},[t._v(t._s(t.weekText))])],1),e("div",{staticClass:"cycle-head-right"},[e("el-button",{attrs:{type:"text"},on:{click:t.timeRangerSetting}},[t._v(t._s(t.showSetting?"隐藏时间段设置":"打开时间段设置"))])],1)]),t.showSetting?e("div",{staticClass:"cycle-content"},[t._l(t.timeRanges,(function(a,n){return e("div",{key:a.key,staticClass:"cycle-content-item"},[e("el-time-picker",{attrs:{"is-range":"",disabled:!t.checked,"range-separator":"-","start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"HH:mm:ss",placeholder:"选择时间范围"},model:{value:a.timeRange,callback:function(e){t.$set(a,"timeRange",e)},expression:"item.timeRange"}}),e("div",{staticClass:"cycle-content-item-right"},[e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.delClick(n,a)}}},[t._v("删除")])],1)],1)})),e("div",{directives:[{name:"show",rawName:"v-show",value:t.timeRanges.length<5,expression:"timeRanges.length < 5"}],staticClass:"cycle-content-item cycle-content-item-btn"},[e("el-button",{attrs:{icon:"el-icon-plus",disabled:!t.checked},on:{click:t.addClick}},[t._v("添加")])],1)],2):t._e()])},E=[],V=(a("a434"),a("a9e3"),a("d9e2"),function(t){Object(d["a"])(a,t);var e=Object(l["a"])(a);function a(){var t;return Object(o["a"])(this,a),t=e.apply(this,arguments),t.checked=!1,t.showSetting=!1,t.timeRanges=[],t}return Object(u["a"])(a,[{key:"initValChange",value:function(t){t.length>0&&(this.checked=!0),this.timeRanges=t.map((function(t){return{key:Math.random(),timeRange:[t.beginTime,t.endTime]}}))}},{key:"addClick",value:function(){if(this.timeRanges.length<5){var t=this.timeRanges[this.timeRanges.length-1]||{},e=t.timeRange&&t.timeRange[1]||"";this.timeRanges.push({key:Math.random(),timeRange:[e,e]})}}},{key:"delClick",value:function(t){this.timeRanges.splice(t,1)}},{key:"timeRangerSetting",value:function(){this.showSetting=!this.showSetting}},{key:"checkTime",value:function(){var t=this,e=!0;return 0!==this.timeRanges.length&&(this.timeRanges.forEach((function(a,n){if(e){var i=a.timeRange,r=0===n?[0,0]:t.timeRanges[n-1].timeRange;i[0]>=i[1]&&(e=!1),t.stringToNum(i[0])<t.stringToNum(r[1])&&(e=!1),i[0]&&i[1]||(e=!1)}})),e)}},{key:"stringToNum",value:function(t){if(t){var e=t.split(":");return Number(e[2])+60*Number(e[1])+Number(60*e[0]*60)}return t}},{key:"getData",value:function(){if(this.checked){if(this.checkTime())return this.timeRanges.map((function(t){return{beginTime:t.timeRange[0],endTime:t.timeRange[1]}}));var t="请选择".concat(this.weekText,"的正确时间,时间必填,且不能交叉.");throw this.$message.warning(t),new Error(t)}return[]}}]),a}(b["h"]));Object(f["a"])([Object(b["e"])({type:String,default:""})],V.prototype,"weekText",void 0),Object(f["a"])([Object(b["e"])({type:Array,default:function(){return[]}})],V.prototype,"initVal",void 0),Object(f["a"])([Object(b["i"])("initVal",{immediate:!0})],V.prototype,"initValChange",null),V=Object(f["a"])([b["a"]],V);var Y=V,q=Y,G=(a("00c9"),Object(w["a"])(q,N,E,!1,null,"10b6325b",null)),H=G.exports,W=function(t){Object(d["a"])(a,t);var e=Object(l["a"])(a);function a(){var t;return Object(o["a"])(this,a),t=e.apply(this,arguments),t.addList={passableTimeName:"",timeRange:[]},t.options={},t.initVal={c1:[],c2:[],c3:[],c4:[],c5:[],c6:[],c7:[]},t.rules={passableTimeName:[{required:!0,message:"请输入规则名称",trigger:"blur"}]},t}return Object(u["a"])(a,[{key:"formItems",get:function(){return[{type:"input",name:"passableTimeName",formItemAttrs:{label:"规则名称"},colAttrs:{span:24},rules:[{required:!0,message:"请输入规则名称",trigger:"blur"}],contentAttrs:{placeholder:"请输入规则名称"}},{type:"datePicker",name:"timeRange",formItemAttrs:{label:"通行日期"},colAttrs:{span:24},rules:[{required:!0,message:"请输入通行日期",trigger:"blur"}],contentAttrs:{placeholder:"请输入通行日期",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"}},{type:"input",name:"cycle",isSlot:!0,formItemAttrs:{label:"循环周期"},colAttrs:{span:24}}]}},{key:"getDetail",value:function(){var t=Object(s["a"])(Object(c["a"])().mark((function t(e,a){var n=this;return Object(c["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.typeObj.edit&&(e.passableCycle.forEach((function(t){n.initVal["c"+t.weekday]=t.time||[]})),this.addList.timeRange=[e.beginDate,e.endDate]);case 1:case"end":return t.stop()}}),t,this)})));function e(e,a){return t.apply(this,arguments)}return e}()},{key:"checkTimeSetting",value:function(){var t=this,e=[1,2,3,4,5,6,7].map((function(e){return{weekday:e,time:t["c"+e].getData()}}));return e}},{key:"submitFrom",value:function(){var t=Object(s["a"])(Object(c["a"])().mark((function t(){var e=this;return Object(c["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.cwform.getRefMethod("validate").then((function(t){var a=e.checkTimeSetting(),n=Object(r["a"])(Object(r["a"])({},e.addList),{},{passableCycle:a.filter((function(t){return t.time.length>0})),timeRange:[e.addList.timeRange[0],A()(e.addList.timeRange[1]).endOf("day").valueOf()]});console.warn(n),e.typeObj.add?v["a"].add(n,{_this:e,loading:"loading"}).then((function(t){e.closeModal()})):v["a"].edit(n,{_this:e,loading:"loading"}).then((function(t){e.closeModal()}))}));case 1:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}]),a}(Object(b["c"])(Object(C["a"])()));Object(f["a"])([Object(b["g"])()],W.prototype,"c1",void 0),Object(f["a"])([Object(b["g"])()],W.prototype,"cwform",void 0),Object(f["a"])([Object(b["g"])()],W.prototype,"c2",void 0),Object(f["a"])([Object(b["g"])()],W.prototype,"c3",void 0),Object(f["a"])([Object(b["g"])()],W.prototype,"c4",void 0),Object(f["a"])([Object(b["g"])()],W.prototype,"c5",void 0),Object(f["a"])([Object(b["g"])()],W.prototype,"c6",void 0),Object(f["a"])([Object(b["g"])()],W.prototype,"c7",void 0),W=Object(f["a"])([Object(b["a"])({components:{CycleTime:P,CycleTimeItem:H}})],W);var Q=W,K=Q,U=(a("de50"),Object(w["a"])(K,I,_,!1,null,"3ea750c3",null)),z=U.exports,B=function(t){Object(d["a"])(a,t);var e=Object(l["a"])(a);function a(){var t;return Object(o["a"])(this,a),t=e.apply(this,arguments),t.tableData=[],t.searchList={},t.options={recordResult:t.GFgetTypeConfig("RECOGNITION_RESULT",{type:"select"}),openDoorTypeCode:t.GFgetTypeConfig("OPEN_DOOR_TYPE",{type:"select"})},t}return Object(u["a"])(a,[{key:"created",value:function(){this.getList()}},{key:"activated",value:function(){this.getList()}},{key:"opItems",get:function(){return[{type:"button",command:"add",label:"添加通行时间规则",btnAttrs:{type:"primary"}}]}},{key:"formItems",get:function(){return[]}},{key:"getData",value:function(){var t=Object(s["a"])(Object(c["a"])().mark((function t(e){var a;return Object(c["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,v["a"].query(e,{_this:this,loading:"loading"});case 2:a=t.sent,this.paginationAttrs.total=0,this.tableData=a;case 5:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"addClick",value:function(){var t=Object(s["a"])(Object(c["a"])().mark((function t(){return Object(c["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.refAdd.showModal({type:"add",title:"新增通行时间"},{});case 1:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"editClick",value:function(){var t=Object(s["a"])(Object(c["a"])().mark((function t(e){var a;return Object(c["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e.row,this.refAdd.showModal({type:"edit",title:"编辑通行时间"},Object(r["a"])({},a));case 2:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"addDevice",value:function(t){this.$router.push({path:"/acs/urgent/index/add",query:{id:t.id}})}},{key:"delClick",value:function(t){var e=this,a=t.row;this.GFdc({content:"确定删除吗?"}).then((function(){v["a"].delete({ids:[a.id]}).then((function(t){e.delPage()}))}))}}]),a}(Object(b["c"])(Object(h["tableMixin"])(),Object(p["a"])({name:"searchList",getDeviceIdsUrl:"/acs/urgentGroup/deviceListByArea"})));Object(f["a"])([Object(b["e"])({type:String,default:""})],B.prototype,"name",void 0),Object(f["a"])([Object(b["g"])()],B.prototype,"refAdd",void 0),B=Object(f["a"])([Object(b["a"])({name:"UrgentIndex",components:{Card:T,AddEdit:z}})],B);var J=B,X=J,Z=(a("e55b"),Object(w["a"])(X,n,i,!1,null,"00d672ea",null));e["default"]=Z.exports},e55b:function(t,e,a){"use strict";a("90ad")},e7d5:function(t,e,a){"use strict";a("001f")},f781:function(t,e,a){}}]); |