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
16 KiB
JavaScript
1 line
16 KiB
JavaScript
(window["webpackJsonp_ninca-crk-access-control"]=window["webpackJsonp_ninca-crk-access-control"]||[]).push([["chunk-0df991e8"],{"1d5e":function(e,t,r){"use strict";r("d3b7"),r("4ae1"),r("25f0");var n=r("f3f3"),a=(r("96cf"),r("c964")),i=r("276c"),c=r("e954"),s=r("920b"),u=r("e1a7"),o=r("f20d"),d=r("2ff6");function l(e){function t(){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(e){return!1}}return function(){var r,n=Object(o["a"])(e);if(t()){var a=Object(o["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(u["a"])(this,r)}}var f={defaultEdit:"/api/terminal/default/edit",defaultQuery:"/api/terminal/default/query",count:"/api/terminal/count",personDel:"/api/terminal/persons/delete"},h=function(e){Object(s["a"])(r,e);var t=l(r);function r(){return Object(i["a"])(this,r),t.apply(this,arguments)}return Object(c["a"])(r,[{key:"defaultEdit",value:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var t,r,a,i,c=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},r=c.length>1&&void 0!==c[1]?c[1]:{},a=Object.assign(t),e.next=5,this.$ajax(f.defaultEdit,a,Object(n["a"])({tip:"配置成功"},r));case 5:return i=e.sent,e.abrupt("return",i);case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"defaultQuery",value:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var t,r,n,a,i=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:{},r=i.length>1&&void 0!==i[1]?i[1]:{},n=Object.assign(t),e.next=5,this.$ajax(f.defaultQuery,n,r);case 5:return a=e.sent,e.abrupt("return",{deviceInfo:a.data||[]});case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"count",value:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var t,r,a,i,c=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},r=c.length>1&&void 0!==c[1]?c[1]:{},a=Object.assign(t),e.next=5,this.$ajax(f.count,a,Object(n["a"])({},r));case 5:return i=e.sent,e.abrupt("return",i.data);case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"personDel",value:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var t,r,a,i,c=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},r=c.length>1&&void 0!==c[1]?c[1]:{},a=Object.assign(t),e.next=5,this.$ajax(f.personDel,a,Object(n["a"])({},r));case 5:return i=e.sent,e.abrupt("return",i);case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),r}(d["a"]);t["a"]=new h},"208f":function(e,t,r){"use strict";r("a15b"),r("d3b7"),r("4ae1"),r("25f0");var n=r("f3f3"),a=r("276c"),i=r("e954"),c=r("920b"),s=r("e1a7"),u=r("f20d"),o=r("9ab4"),d=r("00a7"),l=r("60a3");function f(e){function t(){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(e){return!1}}return function(){var r,n=Object(u["a"])(e);if(t()){var a=Object(u["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(s["a"])(this,r)}}var h=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];var e=function(e){Object(c["a"])(r,e);var t=f(r);function r(){var e;return Object(a["a"])(this,r),e=t.apply(this,arguments),e.flashModalKey1=e.flashModalKey,e.modalKey=1,e}return Object(i["a"])(r,[{key:"flashModalKey",value:function(){this.modalKey++}}]),r}(l["h"]);return Object(o["a"])([Object(l["f"])("mkey")],e.prototype,"flashModalKey1",void 0),e=Object(o["a"])([l["a"]],e),e};function v(e){function t(){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(e){return!1}}return function(){var r,n=Object(u["a"])(e);if(t()){var a=Object(u["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(s["a"])(this,r)}}t["a"]=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"getData",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.cardWrapRef,s=void 0===r?"cardwrap":r,u=function(t){Object(c["a"])(s,t);var r=v(s);function s(){var e;return Object(a["a"])(this,s),e=r.apply(this,arguments),e.paginationAttrs={},e.selectedArr=[],e.tableData=[],e.searchList={},e.loading=!1,e}return Object(i["a"])(s,[{key:"created",value:function(){this.paginationAttrs=Object(n["a"])({total:0,style:{}},this.paginationAttrs);var e=this.paginationAttrs["page-sizes"]&&this.paginationAttrs["page-sizes"][0];this.searchList=Object(n["a"])({currentPage:1,rowsOfPage:e||10},this.searchList)}},{key:"getList",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.clearCheck(),this.resetPage(t),this[e]&&this[e](this.GFdeepclone(this.searchList))}},{key:"_getDetail",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.$ajax(e,Object(n["a"])({ids:[t]},r)).then((function(e){var t=e.data;return t[0]||{}}))}},{key:"_getDetailById",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.$ajax(e,Object(n["a"])({id:t},r)).then((function(e){var t=e.data;return t||{}}))}},{key:"selectd",value:function(e){this.selectedArr=e}},{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(e){e&&(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(",")}}]),s}(Object(l["c"])(h()));return Object(o["a"])([Object(l["g"])(s)],u.prototype,"cardWrapRef",void 0),u=Object(o["a"])([Object(l["a"])({components:{CwTable:d["a"]}})],u),u}},"45fc":function(e,t,r){"use strict";var n=r("23e7"),a=r("b727").some,i=r("a640"),c=r("ae40"),s=i("some"),u=c("some");n({target:"Array",proto:!0,forced:!s||!u},{some:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},"99bd":function(e,t,r){"use strict";t["a"]={methods:{emitMethod:function(e){var t,r=this.$parent;while(r&&!r[e])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&&(t=r)[e].apply(t,a)}}}},a15b:function(e,t,r){"use strict";var n=r("23e7"),a=r("44ad"),i=r("fc6a"),c=r("a640"),s=[].join,u=a!=Object,o=c("join",",");n({target:"Array",proto:!0,forced:u||!o},{join:function(e){return s.call(i(this),void 0===e?",":e)}})},af9a:function(e,t,r){"use strict";r("4de4"),r("4160"),r("caad"),r("d81d"),r("45fc"),r("b0c0"),r("d3b7"),r("4ae1"),r("25f0"),r("6062"),r("2532"),r("3ca3"),r("159b"),r("ddb0");var n=r("fc11"),a=(r("96cf"),r("c964")),i=r("d0ff"),c=r("f3f3"),s=r("276c"),u=r("e954"),o=r("920b"),d=r("e1a7"),l=r("f20d"),f=r("9ab4"),h=r("1d5e"),v=r("60a3"),p=r("3a26");function g(e){function t(){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(e){return!1}}return function(){var r,n=Object(l["a"])(e);if(t()){var a=Object(l["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(d["a"])(this,r)}}t["a"]=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.name,d=void 0===r?"searchList":r,l=t.span,b=void 0===l?[]:l,y=t.userFn,j=void 0!==y&&y,O=function(e){Object(o["a"])(r,e);var t=g(r);function r(){var e;return Object(s["a"])(this,r),e=t.apply(this,arguments),e.options={},e.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",hidden:!0,itemAttrs:{label:"安装设备"},colAttrs:{span:b[1]},contentAttrs:{filterable:!0,multiple:!0,clearable:!0,"collapse-tags":!0,placeholder:"设备"}}],e}return Object(u["a"])(r,[{key:"created",value:function(){j||(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 e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.deviceKey,n=void 0===r?"deviceInfo":r,a=this.GFdeepclone(e),s=a[n]||[],u=new Set,o=new Set;return s.forEach((function(e){u.add(e.deviceId),o.add(e.areaId)})),Object(c["a"])({},a,{deviceIds:Object(i["a"])(u),areaIds:Object(i["a"])(o)})}},{key:"_getDefaultDevice",value:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(t){var r,n,a,i,c,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,h["a"].defaultQuery({userType:t});case 2:return r=e.sent,n=this._devicechangeData(r||[]),a=n.deviceIds,i=void 0===a?[]:a,c=n.areaIds,s=void 0===c?[]:c,this[d].areaIds=s,this[d].deviceIds=i,e.abrupt("return",{deviceIds:i,areaIds:s});case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getAreaIds",value:function(){var e=this;this.$ajax("/sysetting/deviceArea/tree",{}).then((function(t){e[d].areaIds=[],e.options.areaIds=[],e.options.areaIds=t.data}))}},{key:"getDistrictId",value:function(e){return this.$ajax("/component/device/district/get/sub",{id:e})}},{key:"getDistrictId1",value:function(e){var t=this;this.$ajax("/component/device/district/list",{}).then((function(e){var r=t.GFmapping(e.data,{label:"districtName",value:"id"});t.options.districtId=Object(p["listToTree"])(r,{parentKey:"parentId",childrenKey:"children"})}))}},{key:"getDeviceIds",value:function(e){var t=this;e&&e.length>0?this.$ajax("/component/device/list",{areaIds:e,districtId:this[d].districtId[this[d].districtId.length-1]}).then((function(e){t.options.deviceIds=t.GFmapping(e.data,{label:"deviceName",value:"id"}),t.setSelectDeviceIds(t.options.deviceIds)})):(this[d].deviceIds=[],this.options.deviceIds=[])}},{key:"setSelectDeviceIds",value:function(e){this[d].deviceIds=this[d].deviceIds.filter((function(t){return e.some((function(e){return e.value===t}))}))}},{key:"_getDeviceCode",value:function(){var e=this;return this.options.deviceIds.filter((function(t){return e[d].deviceIds.includes(t.deviceId)})).map((function(e){return e.deviceCode}))}},{key:"_addDeviceCode",value:function(){this[d].deviceCodes=this._getDeviceCode()}}]),r}(v["h"]);return O=Object(f["a"])([Object(v["a"])({watch:(e={},Object(n["a"])(e,"".concat(d,".districtId"),(function(e){e.length>0?this[d].districtIds=[e[e.length-1]]:this[d].districtIds=[]})),Object(n["a"])(e,"".concat(d,".areaIds"),(function(e){this.getDeviceIds(e)})),e)})],O),O}},b799:function(e,t,r){"use strict";r("99af"),r("d3b7"),r("4ae1"),r("25f0");var n=r("f3f3"),a=(r("96cf"),r("c964")),i=r("276c"),c=r("e954"),s=r("920b"),u=r("e1a7"),o=r("f20d"),d=r("2ff6");function l(e){function t(){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(e){return!1}}return function(){var r,n=Object(o["a"])(e);if(t()){var a=Object(o["a"])(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Object(u["a"])(this,r)}}var f={areaTree:"/component/device/area/get/alltree",devicePage:"/component/device/page",devicePageType:"/acs/device/typePage",areaList:"/sysetting/deviceArea/tree",districtTree:"/component/device/district/get/alltree",districtList:"/component/device/district/get/sub"},h=function(e){Object(s["a"])(r,e);var t=l(r);function r(){return Object(i["a"])(this,r),t.apply(this,arguments)}return Object(c["a"])(r,[{key:"areaTree",value:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var t,r,a,i,c=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},r=c.length>1&&void 0!==c[1]?c[1]:{},a=Object.assign(t),e.next=5,this.$ajax(f.areaTree,a,Object(n["a"])({},r));case 5:return i=e.sent,e.abrupt("return",this.rQuery(i.data));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"districtTree",value:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var t,r,a,i,c=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},r=c.length>1&&void 0!==c[1]?c[1]:{},a=Object.assign(t),e.next=5,this.$ajax(f.districtTree,a,Object(n["a"])({},r));case 5:return i=e.sent,e.abrupt("return",this.rQuery(i.data));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"areaList",value:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var t,r,a,i,c=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},r=c.length>1&&void 0!==c[1]?c[1]:{},a=Object.assign(t),e.next=5,this.$ajax(f.areaList,a,Object(n["a"])({},r));case 5:return i=e.sent,e.abrupt("return",{tree:i.data});case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"districtList",value:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var t,r,a,i,c,s,u=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=u.length>0&&void 0!==u[0]?u[0]:{},r=u.length>1&&void 0!==u[1]?u[1]:{},a=Object.assign(t),e.next=5,this.$ajax(f.districtList,a,Object(n["a"])({},r));case 5:return i=e.sent,c=this.rQuery(i.data,(function(e){return{label:e.districtName,value:e.id}})),s=this.listToTree(c,{parentKey:"parentId",childrenKey:"children"}),e.abrupt("return",{tree:s,list:c});case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"devicePage",value:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var t,r,a,i,c=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},r=c.length>1&&void 0!==c[1]?c[1]:{},a=Object.assign(t),e.next=5,this.$ajax(f.devicePage,a,Object(n["a"])({},r));case 5:return i=e.sent,e.abrupt("return",this.rPage(i.data,(function(e){return{deviceLocaltionStr:"".concat(null===e||void 0===e?void 0:e.districtMergeName," ").concat(null===e||void 0===e?void 0:e.areaName)}})));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"devicePageType",value:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var t,r,a,i,c=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},r=c.length>1&&void 0!==c[1]?c[1]:{},a=Object.assign(t),e.next=5,this.$ajax(f.devicePageType,a,Object(n["a"])({},r));case 5:return i=e.sent,e.abrupt("return",this.rPage(i.data,(function(e){return{deviceLocaltionStr:"".concat(null===e||void 0===e?void 0:e.districtMergeName," ").concat(null===e||void 0===e?void 0:e.areaName),id:e.deviceId}})));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),r}(d["a"]);t["a"]=new h}}]); |