Files
starRiverProperty/frontend/front_acs.bak20231012/static/js/chunk-157d54b1.b5d2502d.js
T
反编译工作区 0c56a3e599 chore(frontend): add static frontend build artifacts (portal, front_acs, etc.)
Made-with: Cursor

Former-commit-id: 571c9a99ee26d90505e550c287eb8ad8d743ff8d
2026-04-27 13:40:23 +08:00

1 line
18 KiB
JavaScript

(window["webpackJsonp_ninca-crk-access-control"]=window["webpackJsonp_ninca-crk-access-control"]||[]).push([["chunk-157d54b1"],{"1d5e":function(t,e,n){"use strict";n("d3b7"),n("4ae1"),n("25f0");var r=n("f3f3"),a=(n("96cf"),n("c964")),i=n("276c"),c=n("e954"),s=n("920b"),o=n("e1a7"),u=n("f20d"),d=n("2ff6");function l(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 n,r=Object(u["a"])(t);if(e()){var a=Object(u["a"])(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(o["a"])(this,n)}}var f={defaultEdit:"/api/terminal/default/edit",defaultQuery:"/api/terminal/default/query",count:"/api/terminal/count",personDel:"/api/terminal/persons/delete"},p=function(t){Object(s["a"])(n,t);var e=l(n);function n(){return Object(i["a"])(this,n),e.apply(this,arguments)}return Object(c["a"])(n,[{key:"defaultEdit",value:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,n,a,i,c=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=c.length>0&&void 0!==c[0]?c[0]:{},n=c.length>1&&void 0!==c[1]?c[1]:{},a=Object.assign(e),t.next=5,this.$ajax(f.defaultEdit,a,Object(r["a"])({tip:"配置成功"},n));case 5:return i=t.sent,t.abrupt("return",i);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(a["a"])(regeneratorRuntime.mark((function t(){var e,n,r,a,i=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:{},n=i.length>1&&void 0!==i[1]?i[1]:{},r=Object.assign(e),t.next=5,this.$ajax(f.defaultQuery,r,n);case 5:return a=t.sent,t.abrupt("return",{deviceInfo:a.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(a["a"])(regeneratorRuntime.mark((function t(){var e,n,a,i,c=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=c.length>0&&void 0!==c[0]?c[0]:{},n=c.length>1&&void 0!==c[1]?c[1]:{},a=Object.assign(e),t.next=5,this.$ajax(f.count,a,Object(r["a"])({},n));case 5:return i=t.sent,t.abrupt("return",i.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(a["a"])(regeneratorRuntime.mark((function t(){var e,n,a,i,c=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=c.length>0&&void 0!==c[0]?c[0]:{},n=c.length>1&&void 0!==c[1]?c[1]:{},a=Object.assign(e),t.next=5,this.$ajax(f.personDel,a,Object(r["a"])({},n));case 5:return i=t.sent,t.abrupt("return",i);case 7:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}]),n}(d["a"]);e["a"]=new p},"21fc":function(t,e,n){"use strict";var r=n("8a08"),a=n.n(r);a.a},"45fc":function(t,e,n){"use strict";var r=n("23e7"),a=n("b727").some,i=n("a640"),c=n("ae40"),s=i("some"),o=c("some");r({target:"Array",proto:!0,forced:!s||!o},{some:function(t){return a(this,t,arguments.length>1?arguments[1]:void 0)}})},"5abb":function(t,e,n){},7650:function(t,e,n){"use strict";n("4de4"),n("4160"),n("caad"),n("d81d"),n("45fc"),n("b0c0"),n("d3b7"),n("4ae1"),n("25f0"),n("6062"),n("2532"),n("3ca3"),n("159b"),n("ddb0");var r=n("fc11"),a=(n("96cf"),n("c964")),i=n("d0ff"),c=n("f3f3"),s=n("276c"),o=n("e954"),u=n("920b"),d=n("e1a7"),l=n("f20d"),f=n("9ab4"),p=n("b412"),v=n("1d5e"),h=n("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 n,r=Object(l["a"])(t);if(e()){var a=Object(l["a"])(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(d["a"])(this,n)}}e["a"]=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.name,d=void 0===n?"searchList":n,l=e.span,b=void 0===l?[]:l,y=e.userFn,g=void 0!==y&&y,O=function(t){Object(u["a"])(n,t);var e=m(n);function n(){var t;return Object(s["a"])(this,n),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:b[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:b[1]},contentAttrs:{filterable:!0,multiple:!0,clearable:!0,"collapse-tags":!0,placeholder:"请选择安装设备"}}],t}return Object(o["a"])(n,[{key:"created",value:function(){g||(this[d]=Object(c["a"])({districtId:[],districtIds:[],deviceIds:[],areaIds:[]},this[d]),this.options=Object(c["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]:{},n=e.deviceKey,r=void 0===n?"deviceInfo":n,a=this.GFdeepclone(t),s=a[r]||[],o=new Set,u=new Set;return s.forEach((function(t){o.add(t.deviceId),u.add(t.areaId)})),Object(c["a"])({},a,{deviceIds:Object(i["a"])(o),areaIds:Object(i["a"])(u)})}},{key:"_getDefaultDevice",value:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(e){var n,r,a,i,c,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,v["a"].defaultQuery({userType:e});case 2:return n=t.sent,r=this._devicechangeData(n||[]),a=r.deviceIds,i=void 0===a?[]:a,c=r.areaIds,s=void 0===c?[]:c,this[d].areaIds=s,this[d].deviceIds=i,t.abrupt("return",{deviceIds:i,areaIds:s});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[d].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 n=e.GFmapping(t.data,{label:"districtName",value:"id"});e.options.districtId=Object(p["a"])(n,{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[d].districtId[this[d].districtId.length-1]}).then((function(t){e.options.deviceIds=e.GFmapping(t.data,{label:"deviceName",value:"id"}),e.setSelectDeviceIds(e.options.deviceIds)})):(this[d].deviceIds=[],this.options.deviceIds=[])}},{key:"setSelectDeviceIds",value:function(t){this[d].deviceIds=this[d].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[d].deviceIds.includes(e.deviceId)})).map((function(t){return t.deviceCode}))}},{key:"_addDeviceCode",value:function(){this[d].deviceCodes=this._getDeviceCode()}}]),n}(h["h"]);return O=Object(f["a"])([Object(h["a"])({watch:(t={},Object(r["a"])(t,"".concat(d,".districtId"),(function(t){t.length>0?this[d].districtIds=[t[t.length-1]]:this[d].districtIds=[]})),Object(r["a"])(t,"".concat(d,".areaIds"),(function(t){this.getDeviceIds(t)})),t)})],O),O}},"7d38":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("CwMainLayout",{staticClass:"common-idf",attrs:{loading:t.loading},scopedSlots:t._u([{key:"op-header",fn:function(){return[n("CwHeaderLayout",{attrs:{showBottomLine:""},scopedSlots:t._u([{key:"op",fn:function(){return[n("CwOp",{attrs:{items:t.opItems}})]},proxy:!0}])},[n("CwSearchForm",{attrs:{formItems:t.formItems,options:t.options,ruleForm:t.searchList}})],1)]},proxy:!0}])},[n("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(e){return[n("Card",t._b({on:{add:t.addDevice,open:t.openDevice,reset:t.resetDevice}},"Card",e,!1))]}}])}),n("CwAsyncWrap",{ref:"refAdd"},[n("AddEdit",{on:{getList:t.getList}})],1)],1)},a=[],i=(n("d3b7"),n("4ae1"),n("25f0"),n("d0ff")),c=(n("96cf"),n("c964")),s=n("276c"),o=n("e954"),u=n("920b"),d=n("e1a7"),l=n("f20d"),f=n("9ab4"),p=n("4d8e"),v=n("7650"),h=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("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[n("div",{staticClass:"card-content"},[n("div",{staticClass:"content-top common-padding"},[n("div",{staticClass:"text-left"},[n("div",{staticClass:"text"},[t._v("门禁设备:")]),t.row.deviceCount<1e3?n("div",{staticClass:"num"},[t._v(" "+t._s(t.row.deviceCount)+" "),n("span",{staticClass:"unit"},[t._v("台")])]):n("div",{staticClass:"num"},[t._v(" 999+ "),n("span",{staticClass:"unit"},[t._v("台")])])]),n("div",{staticClass:"text-right",on:{click:function(e){return t.emitDevice("add")}}},[t.row.deviceCount>0?n("span",{staticClass:"text"},[t._v("查看")]):n("span",{staticClass:"text"},[t._v("添加设备")]),n("i",{staticClass:"el-icon-arrow-right icon"})])]),n("div",{staticClass:"common-padding"},[n("div",{staticClass:"line-wrap"},[1===t.row.isDefaultGroup?n("div",{staticClass:"tag"},[t._v(" 快速执行组 ")]):t._e()])]),n("ul",{staticClass:"content-list common-padding"},[n("li",{staticClass:"list-item"},[n("InCell",{attrs:{label:"创建人",text:t.row.createUserName}})],1),n("li",{staticClass:"list-item"},[n("InCell",{attrs:{label:"创建时间",text:t._f("GLdateFormat")(t.row.createTime)}})],1),n("li",{staticClass:"list-item"},[n("InCell",{attrs:{label:"更新时间",text:t._f("GLdateFormat")(t.row.lastUpdateTime)}})],1)]),n("div",{staticClass:"footer-button"},[n("div",{staticClass:"button-left button-text"},[n("el-button",{attrs:{type:"text"},on:{click:function(e){return t.emitDevice("open")}}},[t._v("打开门禁组")])],1),n("div",{staticClass:"button-right button-text"},[n("el-button",{attrs:{type:"text"},on:{click:function(e){return t.emitDevice("reset")}}},[t._v("恢复该门禁组")])],1)])])]},proxy:!0}])})},m=[],b=n("60a3");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 n,r=Object(l["a"])(t);if(e()){var a=Object(l["a"])(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(d["a"])(this,n)}}var g=function(t){Object(u["a"])(n,t);var e=y(n);function n(){var t;return Object(s["a"])(this,n),t=e.apply(this,arguments),t.cardAttrs={style:{}},t}return Object(o["a"])(n,[{key:"emitDevice",value:function(t){this.$emit(t,this.row)}},{key:"tops",get:function(){return{attrs:{},left:{attrs:{style:{width:"90%"}},text:this.row.groupName},action:{dropitems:[{command:"edit",label:"编辑"},{command:"del",label:"删除"}]}}}}]),n}(b["h"]);Object(f["a"])([Object(b["e"])({type:Object})],g.prototype,"row",void 0),g=Object(f["a"])([Object(b["a"])({inheritAttrs:!1,components:{}})],g);var O=g,j=O,w=(n("82dd"),n("2877")),I=Object(w["a"])(j,h,m,!1,null,"24e5f7b2",null),k=I.exports,C=n("12c1"),x=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("CwModal",{ref:"infoModal",staticClass:"addedit-modal",class:{add_modal:t.typeObj.add},attrs:{width:"400px",title:t.ops.title,submitLoading:t.loading,showFooter:!0},on:{confirm:t.submitFrom,closes:t.close}},[n("CwForm",{ref:"cwform",attrs:{formAttrs:t.formAttrs,formItems:t.formItems,options:t.options,rules:t.rules,ruleForm:t.addList}})],1)},R=[],D=n("48b1");function _(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 n,r=Object(l["a"])(t);if(e()){var a=Object(l["a"])(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(d["a"])(this,n)}}var A=function(t){Object(u["a"])(n,t);var e=_(n);function n(){var t;return Object(s["a"])(this,n),t=e.apply(this,arguments),t.addList={groupName:"",isDefaultGroup:0},t.options={},t.rules={groupName:[{required:!0,message:"请输入紧急疏散组名称",trigger:"blur"}]},t}return Object(o["a"])(n,[{key:"getDetail",value:function(){var t=Object(c["a"])(regeneratorRuntime.mark((function t(e,n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})));function e(e,n){return t.apply(this,arguments)}return e}()},{key:"submitFrom",value:function(){var t=Object(c["a"])(regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.formRef.validate().then((function(t){var n=e.typeObj.add?"/acs/urgentGroup/add":"acs/urgentGroup/edit";e.$ajax(n,e.addList,{loading:"loading"}).then((function(){e.closeModal()}))}));case 1:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"formItems",get:function(){return[{type:"input",name:"groupName",itemAttrs:{label:"紧急疏散组名称","label-width":"9em"},contentAttrs:{placeholder:"请输入紧急疏散组名称"}},{type:"checkbox",name:"isDefaultGroup",itemAttrs:{label:"","label-width":"9em"},contentAttrs:{text:"设为快速执行组","true-label":1,"false-label":0}}]}}]),n}(Object(b["c"])(Object(D["a"])()));A=Object(f["a"])([b["a"]],A);var L=A,F=L,G=(n("21fc"),Object(w["a"])(F,x,R,!1,null,"0287597f",null)),S=G.exports;function $(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 n,r=Object(l["a"])(t);if(e()){var a=Object(l["a"])(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(d["a"])(this,n)}}var E=function(t){Object(u["a"])(n,t);var e=$(n);function n(){var t;return Object(s["a"])(this,n),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(o["a"])(n,[{key:"created",value:function(){this.getList()}},{key:"activated",value:function(){this.getList()}},{key:"getData",value:function(){var t=Object(c["a"])(regeneratorRuntime.mark((function t(e){var n,r,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,C["a"].urgentGroupPage(e,{_this:this,loading:"loading"});case 2:n=t.sent,r=n.total,a=n.datas,this.paginationAttrs.total=r,this.tableData=a;case 7:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"addClick",value:function(){var t=Object(c["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.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(c["a"])(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=e.row,this.refAdd.showModal({type:"edit",title:"编辑疏散组"},{id:n.id,isDefaultGroup:n.isDefaultGroup,groupName:n.groupName});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:"openClick",value:function(){var t=this;this.GFdc({type:"warning",content:"你确定打开所有门禁吗?"}).then((function(){C["a"].groupOn({},{tip:"打开所有门禁成功"}).then((function(e){t.getList()}))}))}},{key:"closeClick",value:function(){var t=this;C["a"].groupOff({},{tip:"关闭所有门禁成功"}).then((function(e){t.getList()}))}},{key:"openDevice",value:function(t){var e=this;C["a"].groupOn({groupId:t.id},{tip:"打开成功"}).then((function(t){e.getList()}))}},{key:"resetDevice",value:function(t){var e=this;C["a"].groupOff({groupId:t.id},{tip:"恢复成功"}).then((function(t){e.getList()}))}},{key:"delClick",value:function(t){var e=this,n=t.row;this.GFdc({content:"确定删除吗?"}).then((function(){C["a"].delete({ids:[n.id]}).then((function(t){e.delPage()}))}))}},{key:"opItems",get:function(){return[{type:"button",command:"add",label:"添加疏散组",btnAttrs:{type:"primary"}},{type:"button",command:"open",label:"打开全部门禁"},{type:"button",command:"close",label:"关闭全部门禁"}]}},{key:"formItems",get:function(){return Object(i["a"])(this.deviceFormItems)}}]),n}(Object(b["c"])(Object(p["tableMixin"])(),Object(v["a"])({name:"searchList",getDeviceIdsUrl:"/acs/urgentGroup/deviceListByArea"})));Object(f["a"])([Object(b["e"])({type:String,default:""})],E.prototype,"name",void 0),Object(f["a"])([Object(b["g"])()],E.prototype,"refAdd",void 0),E=Object(f["a"])([Object(b["a"])({name:"UrgentIndex",components:{Card:k,AddEdit:S}})],E);var N=E,P=N,T=(n("a04e"),Object(w["a"])(P,r,a,!1,null,"49419330",null));e["default"]=T.exports},"82dd":function(t,e,n){"use strict";var r=n("5abb"),a=n.n(r);a.a},"84cb":function(t,e,n){},"8a08":function(t,e,n){},a04e:function(t,e,n){"use strict";var r=n("84cb"),a=n.n(r);a.a}}]);