Files
starRiverProperty/frontend/front_acs.bak20231012/static/js/chunk-0deb5486.d4130958.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
15 KiB
JavaScript

(window["webpackJsonp_ninca-crk-access-control"]=window["webpackJsonp_ninca-crk-access-control"]||[]).push([["chunk-0deb5486"],{"1d5e":function(t,e,n){"use strict";n("d3b7"),n("4ae1"),n("25f0");var a=n("f3f3"),r=(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,a=Object(u["a"])(t);if(e()){var r=Object(u["a"])(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.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(r["a"])(regeneratorRuntime.mark((function t(){var e,n,r,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]:{},r=Object.assign(e),t.next=5,this.$ajax(f.defaultEdit,r,Object(a["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(r["a"])(regeneratorRuntime.mark((function t(){var e,n,a,r,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]:{},a=Object.assign(e),t.next=5,this.$ajax(f.defaultQuery,a,n);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"])(regeneratorRuntime.mark((function t(){var e,n,r,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]:{},r=Object.assign(e),t.next=5,this.$ajax(f.count,r,Object(a["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(r["a"])(regeneratorRuntime.mark((function t(){var e,n,r,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]:{},r=Object.assign(e),t.next=5,this.$ajax(f.personDel,r,Object(a["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},"33b6":function(t,e,n){},"45fc":function(t,e,n){"use strict";var a=n("23e7"),r=n("b727").some,i=n("a640"),c=n("ae40"),s=i("some"),o=c("some");a({target:"Array",proto:!0,forced:!s||!o},{some:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},"4a3d":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("CwMainLayout",{staticClass:"urgent-index",attrs:{loading:t.loading},scopedSlots:t._u([{key:"op-header",fn:function(){return[n("CwHeaderLayout",{attrs:{showHeaderBottomLine:!1},scopedSlots:t._u([{key:"op",fn:function(){return[n("CwOp",{attrs:{items:t.opItems}})]},proxy:!0}])},[n("div",{staticClass:"header"},[n("div",{staticClass:"left"},[n("span",{staticClass:"text"},[t._v("紧急疏散组名称:")]),n("span",{staticClass:"name"},[t._v(t._s(t.detailInfo.groupName))]),1===t.detailInfo.isDefaultGroup?n("span",{staticClass:"tag"},[t._v(" 快速执行组 ")]):t._e()]),n("div",{staticClass:"right"},[n("span",{staticClass:"text"},[t._v("当前门禁设备")]),n("span",{staticClass:"num"},[t._v(t._s(t.totalDevice)+"台")])])])])]},proxy:!0}])},[n("InTable",{attrs:{query:t.searchList,data:t.tableData,columns:t.columns,paginationAttrs:t.paginationAttrs},on:{"pagination-change":function(e){return t.getList(!1)}}}),n("CwAsyncWrap",{ref:"refAddDevice"},[n("AddDevice",{on:{getList:t.getList}})],1)],1)},r=[],i=(n("d81d"),n("d3b7"),n("4ae1"),n("25f0"),n("f3f3")),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("60a3"),h=n("12c1"),b=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("CwModal",{ref:"infoModal",staticClass:"add-device",class:{add_modal:t.typeObj.add},attrs:{width:"888px",title:t.ops.title,submitLoading:t.loading,showFooter:!0},on:{confirm:t.submitFrom,closes:t.close}},[n("div",{staticClass:"add-device-inner"},[n("CwSearchForm",{staticClass:"device-search",attrs:{formItems:t.formItems,options:t.options,ruleForm:t.searchList}}),n("InTable",{staticClass:"device-table",attrs:{query:t.searchList,data:t.tableData,columns:t.columns,paginationAttrs:t.paginationAttrs},on:{"pagination-change":function(e){return t.getList(!1)},selectd:t.selectd}})],1)])},g=[],y=n("d0ff"),m=n("7650"),I=n("48b1");function j(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,a=Object(l["a"])(t);if(e()){var r=Object(l["a"])(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Object(d["a"])(this,n)}}var O=function(t){Object(u["a"])(n,t);var e=j(n);function n(){var t;return Object(s["a"])(this,n),t=e.apply(this,arguments),t.tableData=[],t.searchList={},t.paginationAttrs={style:{left:"20px"},autoPosition:!1},t.options={},t}return Object(o["a"])(n,[{key:"created",value:function(){}},{key:"getDetail",value:function(t){this.searchList.groupId=t.groupId,this.getList()}},{key:"getData",value:function(){var t=Object(c["a"])(regeneratorRuntime.mark((function t(e){var n,a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,h["a"].urgentDevicePage(e);case 2:n=t.sent,a=n.total,r=n.datas,this.paginationAttrs.total=a,this.tableData=r;case 7:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"submitFrom",value:function(){var t=this;if(this.selectedArr.length>0){var e=this.$route.query.id;h["a"].addDevice({groupId:e,deviceIds:this.selectedArr},{loading:"loading",tip:"添加成功"}).then((function(e){t.closeModal()}))}else this.$message.info("请选择后再提交")}},{key:"formItems",get:function(){return Object(y["a"])(this.deviceFormItems)}},{key:"columns",get:function(){return[{type:"selection"},{type:"text",column:{prop:"deviceName",label:"设备名称"}},{type:"text",column:{prop:"deviceTypeName",label:"设备型号"}},{type:"text",column:{prop:"areaName",label:"安装区域","show-overflow-tooltip":!0}}]}}]),n}(Object(v["c"])(Object(p["tableMixin"])(),Object(I["a"])(),Object(m["a"])({noDevice:!0})));O=Object(f["a"])([Object(v["a"])({components:{}})],O);var w=O,D=w,k=(n("74ee"),n("2877")),x=Object(k["a"])(D,b,g,!1,null,"4acc01a3",null),R=x.exports;function C(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,a=Object(l["a"])(t);if(e()){var r=Object(l["a"])(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return Object(d["a"])(this,n)}}var A=function(t){Object(u["a"])(n,t);var e=C(n);function n(){var t;return Object(s["a"])(this,n),t=e.apply(this,arguments),t.tableData=[],t.searchList={groupId:""},t.detailInfo={},t.totalDevice=0,t.options={},t}return Object(o["a"])(n,[{key:"created",value:function(){var t=this.$route.query.id;this.searchList.groupId=t,this.getList(),this.getDetail()}},{key:"getData",value:function(){var t=Object(c["a"])(regeneratorRuntime.mark((function t(e){var n,a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.groupId){t.next=3;break}return this.$message({message:"分组id不正确",type:"warning"}),t.abrupt("return");case 3:return t.next=5,h["a"].urgentGroupDevicePage(e,{_this:this,loading:"loading"});case 5:n=t.sent,a=n.total,r=n.datas,this.paginationAttrs.total=a,this.totalDevice=a,this.tableData=r.map((function(t){return Object(i["a"])({},t,{deviceOnlineStatus:0===t.deviceStatus?t.deviceOnlineStatus:-1})}));case 11:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"getDetail",value:function(){var t=this;h["a"].detail({groupId:this.searchList.groupId}).then((function(e){t.detailInfo=e}))}},{key:"addClick",value:function(){this.refAddDevice.showModal({type:"add",title:"添加紧急疏散门禁"},{groupId:this.searchList.groupId})}},{key:"delClick",value:function(t){var e=this,n=t.row,a=[n.deviceId];this.GFdc({content:"确定删除吗?"}).then((function(){h["a"].deleteDevice({deviceIds:a,groupId:e.searchList.groupId}).then((function(t){e.delPage()}))}))}},{key:"openClick",value:function(){var t=this;this.GFdc({content:"打开全部门禁属于重大风险操作,请确认是否执行?",type:"warning"}).then((function(){t.$ajax("/acs/switch/always-on",{},{tip:"打开全部门禁成功"})}))}},{key:"closeClick",value:function(){this.$ajax("/acs/switch/recovery",{},{tip:"恢复全部门禁成功"})}},{key:"opItems",get:function(){return[{type:"button",command:"add",label:"添加设备",btnAttrs:{type:"primary"}}]}},{key:"columns",get:function(){return[{type:"text",column:{prop:"deviceName",label:"设备名称"}},{type:"colorTextDot",column:{prop:"deviceOnlineStatus",label:"状态",width:120},actions:this.GFgetTypeConfig("DEVICE_ONLINE_STATUS",{type:"colorText"})},{type:"text",column:{prop:"deviceCode",label:"设备编号"}},{type:"text",column:{prop:"deviceTypeName",label:"设备型号"}},{type:"text",column:{prop:"areaName",label:"安装区域","show-overflow-tooltip":!0}},{type:"actions",column:{width:100,label:"操作 "},actions:[{type:"button",label:"删除",command:"del"}]}]}}]),n}(Object(v["c"])(Object(p["tableMixin"])()));Object(f["a"])([Object(v["g"])()],A.prototype,"refAddDevice",void 0),A=Object(f["a"])([Object(v["a"])({components:{AddDevice:R}})],A);var _=A,L=_,S=(n("c681"),Object(k["a"])(L,a,r,!1,null,"076a8ecc",null));e["default"]=S.exports},"74ee":function(t,e,n){"use strict";var a=n("33b6"),r=n.n(a);r.a},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 a=n("fc11"),r=(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 b(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,a=Object(l["a"])(t);if(e()){var r=Object(l["a"])(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.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,g=void 0===l?[]:l,y=e.userFn,m=void 0!==y&&y,I=function(t){Object(u["a"])(n,t);var e=b(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:g[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:g[1]},contentAttrs:{filterable:!0,multiple:!0,clearable:!0,"collapse-tags":!0,placeholder:"请选择安装设备"}}],t}return Object(o["a"])(n,[{key:"created",value:function(){m||(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,a=void 0===n?"deviceInfo":n,r=this.GFdeepclone(t),s=r[a]||[],o=new Set,u=new Set;return s.forEach((function(t){o.add(t.deviceId),u.add(t.areaId)})),Object(c["a"])({},r,{deviceIds:Object(i["a"])(o),areaIds:Object(i["a"])(u)})}},{key:"_getDefaultDevice",value:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var n,a,r,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,a=this._devicechangeData(n||[]),r=a.deviceIds,i=void 0===r?[]:r,c=a.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 I=Object(f["a"])([Object(h["a"])({watch:(t={},Object(a["a"])(t,"".concat(d,".districtId"),(function(t){t.length>0?this[d].districtIds=[t[t.length-1]]:this[d].districtIds=[]})),Object(a["a"])(t,"".concat(d,".areaIds"),(function(t){this.getDeviceIds(t)})),t)})],I),I}},c681:function(t,e,n){"use strict";var a=n("cb55"),r=n.n(a);r.a},cb55:function(t,e,n){}}]);