Files
starRiverProperty/frontend/canoe-person.bak20231024/js/chunk-3fa61aba.a63f6e8e.js
反编译工作区 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_park-unit-web"]=window["webpackJsonp_park-unit-web"]||[]).push([["chunk-3fa61aba"],{"1a03":function(e,t,r){"use strict";var n=r("71dd"),a=r.n(n);a.a},2356:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("qz-wrap",{staticClass:"org-list",attrs:{loading:e.loading},scopedSlots:e._u([{key:"opt",fn:function(){return[r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onOpenModal("add",null)}}},[e._v("新增机构")]),r("el-button",{on:{click:function(t){return e.routerJump("InstitutionTypeList")}}},[e._v("机构类型管理")]),r("el-button",{on:{click:e.onOpenExport}},[e._v("机构导出")])]},proxy:!0}])},[r("qz-table",{attrs:{columns:e.columns,data:e.tableData,attrs:{"row-key":"id"}},scopedSlots:e._u([{key:"name",fn:function(t){var n=t.row;return[n.isEdit?[r("el-input",{staticStyle:{width:"260px"},model:{value:n.name,callback:function(t){e.$set(n,"name",t)},expression:"row.name"}},[r("template",{slot:"suffix"},[r("el-button",{attrs:{type:"text"},on:{click:e.fetchTableData}},[e._v("取消")]),r("el-button",{attrs:{type:"text"},on:{click:function(t){return e.onUpdate(n)}}},[e._v("保存")])],1)],2)]:r("span",{staticClass:"click-item",on:{click:function(t){return e.onToogleEdit(n,e.index,!0)}}},[e._v(e._s(n.name)+" "),r("i",{staticClass:"el-icon-edit"})])]}},{key:"personCount",fn:function(t){var n=t.row;return[r("span",{staticClass:"click-item",on:{click:function(t){return e.routerJump("InstitutionPersonList",{orgId:n.id})}}},[e._v(" "+e._s(n.personCount)+" "),r("i",{staticClass:"el-icon-setting"})])]}},{key:"isValid",fn:function(t){var n=t.row;return[[0,1].includes(n.isValid)?[r("qz-dot-tag",{attrs:{type:["danger","success"][n.isValid]}},[e._v(e._s(e.statusMap[n.isValid]||"-"))])]:e._e()]}},{key:"action",fn:function(t){var n=t.row;return[r("el-button",{attrs:{type:"text"},on:{click:function(t){return e.onOpenModal("view",n)}}},[e._v("详情")]),"单位"!==n.type?r("el-button",{attrs:{type:"text"},on:{click:function(t){return e.onOpenModal("edit",n)}}},[e._v("编辑")]):e._e(),n.parentId&&"单位"!==n.type?r("el-button",{attrs:{type:"text"},on:{click:function(t){return e.onUpdateStatus(n)}}},[e._v(e._s(1===n.isValid?"停用":"启用"))]):e._e(),n.parentId&&!n.personCount&&"单位"!==n.type?r("el-button",{attrs:{type:"text"},on:{click:function(t){return e.onDelete(n)}}},[e._v("删除")]):e._e(),r("el-button",{attrs:{type:"text"},on:{click:function(t){return e.onOpenBindAcs(n)}}},[e._v("查看门禁设备")]),r("el-button",{attrs:{type:"text"},on:{click:function(t){return e.onOpenBindFloor(n)}}},[e._v("查看派梯楼层")])]}}])}),r("org-edit-modal",{ref:"orgModalRef",on:{fresh:e.fetchTableData}}),r("park-edit-modal",{ref:"parkModalRef",on:{fresh:e.fetchTableData}}),r("CwDeviceTransfer",{ref:"deviceTransferRef"}),r("CwFloorTransfer",{ref:"floorTransferRef"}),r("ExportDrawer",{ref:"exportRef"})],1)},a=[],o=(r("99af"),r("4160"),r("b0c0"),r("159b"),r("2909")),s=(r("96cf"),r("1da1")),i=r("d4ec"),c=r("bee2"),l=r("99de"),u=r("7e84"),p=r("262e"),d=r("9ab4"),f=r("60a3"),h=r("f58a"),m=r("6891"),b=r("8fdb"),v=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("qz-drawer",{attrs:{visible:e.visible,"confirm-loading":e.confirmLoading,title:e.title},on:{"update:visible":function(t){e.visible=t},confirm:e.onOk,close:e.onCancel}},["view"===e.mode?r("qz-form-info",{model:{value:e.orgFormInfo,callback:function(t){e.orgFormInfo=t},expression:"orgFormInfo"}}):r("qz-form",{ref:"orgFormRef",attrs:{form:e.form,rows:e.rows,width:"420px",footer:!1},scopedSlots:e._u([{key:"standardAddress",fn:function(){return[r("div",[e._v(e._s(e.form.address1+e.form.address2+e.form.address3+e.form.address4))])]},proxy:!0},{key:"address1",fn:function(){return[r("CwAddressChoose",{on:{change:e.addressChange},model:{value:e.form.address1,callback:function(t){e.$set(e.form,"address1",t)},expression:"form.address1"}})]},proxy:!0},{key:"ext1",fn:function(){return[r("span",[e._v(e._s(e.addressStr))])]},proxy:!0},{key:"zoneIds",fn:function(){return[r("CwAddressChoose",{on:{changeName:e.handleChangeAddress},model:{value:e.form.zoneIds,callback:function(t){e.$set(e.form,"zoneIds",t)},expression:"form.zoneIds"}})]},proxy:!0}])})],1)},g=[],y=(r("a4d3"),r("4de4"),r("d81d"),r("e439"),r("dbb4"),r("b64b"),r("d3b7"),r("25f0"),r("ade3"));function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){Object(y["a"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var k={add:"新增机构",edit:"编辑机构",view:"查看机构"},w=function(e){function t(){var e;return Object(i["a"])(this,t),e=Object(l["a"])(this,Object(u["a"])(t).apply(this,arguments)),e.form={name:"",parkType:"",parentId:void 0,level:null,address1:[],address2:null,address3:null,address4:null},e.parentOrgRow={parentId:{label:"上级单位",customSlot:"orgSelect"}},e.baseFormRows={name:{label:"园区名称",type:"text",valid:{required:!0},attrs:{clearable:!0}},parkType:{label:"园区类型",type:"text"},standardAddress:{label:"标准地址",customSlot:"standardAddress"},address1:{label:"省份/城市/区县",customSlot:"address1"},address2:{label:"街道",type:"text"},address3:{label:"街/路/巷",type:"text"},address4:{label:"详细地址",type:"text"}},e.rows={},e.properties=[],e.orgFormInfo=[],e.mode="",e.orgTypeOptions=[],e.title="",e.visible=!1,e.confirmLoading=!1,e.orgProps={multiple:!1,emitPath:!1,checkStrictly:!0,label:"name",value:"id"},e.parkFormRows={ext1:{label:"标准地址",customSlot:"ext1"},zoneIds:{label:"省份/城市/区县",customSlot:"zoneIds"},ext3:{label:"街道",type:"text",attrs:{clearable:!0}},ext4:{label:"街路巷",type:"text",attrs:{clearable:!0}},ext5:{label:"详细地址",type:"text",attrs:{clearable:!0}}},e.chooseAreaName="",e}return Object(p["a"])(t,e),Object(c["a"])(t,[{key:"open",value:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t,r){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.mode=t,"view"===t){e.next=5;break}return r&&(this.form=O({},r)),e.next=5,this.fetchOrgTypes();case 5:"add"===t?this.getAddForm():this.fetchOrgDetail(r),this.orgFormRef&&this.orgFormRef.reset(),this.title=k[t],this.visible=!0;case 9:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"getAddForm",value:function(){this.form={name:"",parentId:void 0,level:null},this.rows=Object.assign({},this.baseFormRows,this.parentOrgRow)}},{key:"fetchOrgDetail",value:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,this.properties=[],e.next=4,this.service.orgDetail({id:t.id});case 4:if(r=e.sent,n=r.data,this.form=n,"园区"===n.type){e.next=12;break}return e.next=10,this.fetchOrgTypeDetail(this.form.typeId||"");case 10:e.next=15;break;case 12:this.$set(this,"properties",[]),this.getFormItems(),this.rows=Object.assign({},this.rows,this.parkFormRows);case 15:"view"===this.mode?this.getOrgFormInfo():this.getFormItems(),e.next=20;break;case 18:e.prev=18,e.t0=e["catch"](0);case 20:case"end":return e.stop()}}),e,this,[[0,18]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"fetchOrgTypes",value:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.service.allOrgType({});case 3:t=e.sent,r=t.data,this.orgTypeOptions=r.map((function(e){return{label:e.name,value:e.id}})),this.baseFormRows["typeId"].options=this.orgTypeOptions,e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"fetchOrgTypeDetail",value:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r,n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,t){e.next=4;break}return this.properties=[],e.abrupt("return");case 4:return e.next=6,this.service.orgTypeDetail({id:t});case 6:r=e.sent,n=r.data,a=n.properties||[],this.properties=a.filter((function(e){return 0===e.status})),this.getFormItems(),e.next=15;break;case 13:e.prev=13,e.t0=e["catch"](0);case 15:case"end":return e.stop()}}),e,this,[[0,13]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onOk",value:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,"view"===this.mode){e.next=17;break}return e.next=4,this.orgFormRef.validate();case 4:if(this.confirmLoading=!0,t=O({},this.form),r=t.parentId,"[object Array]"===Object.prototype.toString.call(r)&&(t.parentId=r[r.length-1]),!this.form.id){e.next=13;break}return e.next=11,this.service.updateOrg(t);case 11:e.next=15;break;case 13:return e.next=15,this.service.addOrg(t);case 15:this.$message.success("保存成功"),this.$emit("fresh");case 17:this.visible=!1,e.next=22;break;case 20:e.prev=20,e.t0=e["catch"](0);case 22:return e.prev=22,this.confirmLoading=!1,e.finish(22);case 25:case"end":return e.stop()}}),e,this,[[0,20,22,25]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"onOrgTypeChange",value:function(e){this.fetchOrgTypeDetail(e)}},{key:"getOrgFormInfo",value:function(){var e=this;this.orgFormInfo=[],this.orgFormInfo.push({label:"机构名称",value:this.form.name||"-"}),this.orgFormInfo.push({label:"机构类型",value:this.form.type||"-"}),this.properties.forEach((function(t){e.orgFormInfo.push({label:t.name,value:e.form[t.code]||"-"})}))}},{key:"getFormItems",value:function(){var e=Object.assign({},this.baseFormRows,1!==this.form.level?this.parentOrgRow:{});this.properties.forEach((function(t){e[t.code]={label:t.name,type:"text",key:Math.random()}})),this.rows=Object.assign({},e)}},{key:"onCancel",value:function(){}},{key:"addressChange",value:function(e){this.$set(this.form,"address1",e)}},{key:"handleChangeAddress",value:function(e){this.chooseAreaName=e}},{key:"addressStr",get:function(){return"".concat(this.chooseAreaName).concat(this.form.ext3).concat(this.form.ext4).concat(this.form.ext5)}}]),t}(f["e"]);d["a"]([Object(f["d"])()],w.prototype,"orgFormRef",void 0),w=d["a"]([Object(f["a"])({name:"OrgEditModal",components:{}})],w);var j=w,R=j,_=r("2877"),I=Object(_["a"])(R,v,g,!1,null,"ebe4e6b6",null),C=I.exports,T=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("qz-drawer",{attrs:{visible:e.visible,title:"机构批量导出"},on:{"update:visible":function(t){e.visible=t}}},[r("CwBorderTitle",{attrs:{title:"机构数据筛选"}}),r("el-form",{ref:"formRef",attrs:{model:e.form,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"所属机构",prop:"ids"}},[r("CwOrgChoose",{model:{value:e.form.ids,callback:function(t){e.$set(e.form,"ids",t)},expression:"form.ids"}})],1),r("el-form-item",{attrs:{prop:"excelMaxRows"}},[r("span",{attrs:{slot:"label"},slot:"label"},[e._v("单Excel包含"),r("br"),e._v("数据条数")]),r("el-input-number",{attrs:{"controls-position":"right",min:1,max:2e4,width:"200px"},model:{value:e.form.excelMaxRows,callback:function(t){e.$set(e.form,"excelMaxRows",t)},expression:"form.excelMaxRows"}})],1)],1),r("span",{attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取消")]),r("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.onConfirm}},[e._v("确定")])],1)],1)},D=[],F=r("17b0");function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){Object(y["a"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var M=function(e){function t(){var e;return Object(i["a"])(this,t),e=Object(l["a"])(this,Object(u["a"])(t).apply(this,arguments)),e.visible=!1,e.form={ids:[],excelMaxRows:5e3},e.rules={excelMaxRows:[{type:"number",required:!0,message:"请输入单Excel包含数据条数",trigger:"change"}]},e.loading=!1,e}return Object(p["a"])(t,e),Object(c["a"])(t,[{key:"show",value:function(){this.formRef&&this.formRef.resetFields(),this.visible=!0}},{key:"onConfirm",value:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,this.loading=!0,e.next=4,this.formRef.validate();case 4:return e.next=6,this.service.orgExport(S({},this.form));case 6:this.visible=!1,t=document.getElementsByClassName("expand-item"),r=null,t&&t.length>1&&(n=t[1].getBoundingClientRect(),n&&(r={targetX:n.left||0,targetY:n.top||0})),Object(F["cwQzDownloadAnimation"])(r),this.loading=!1,e.next=17;break;case 14:e.prev=14,e.t0=e["catch"](0),this.loading=!1;case 17:case"end":return e.stop()}}),e,this,[[0,14]])})));function t(){return e.apply(this,arguments)}return t}()}]),t}(f["e"]);d["a"]([Object(f["d"])()],M.prototype,"formRef",void 0),M=d["a"]([Object(f["a"])({name:"ExportSetting",components:{}})],M);var P=M,$=P,A=(r("98d1"),Object(_["a"])($,T,D,!1,null,"09bc7c22",null)),z=A.exports,q=r("ae85"),N=r("a0aa"),B=r("8841"),J=function(e){function t(){var e;return Object(i["a"])(this,t),e=Object(l["a"])(this,Object(u["a"])(t).apply(this,arguments)),e.columns=m["e"],e.routerJump=e.$utils.routerJump,e.statusMap={0:"已停用",1:"已启用"},e}return Object(p["a"])(t,e),Object(c["a"])(t,[{key:"created",value:function(){this.fetchTableData()}},{key:"fetchTableData",value:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,this.loading=!0,e.next=4,this.service.orgTree();case 4:t=e.sent,r=t.data,this.tableData=r,this.loading=!1,e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](0),this.loading=!1;case 13:case"end":return e.stop()}}),e,this,[[0,10]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"onUpdateStatus",value:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,r={id:t.id},!t.isValid){e.next=7;break}return e.next=5,this.service.disableOrg(r);case 5:e.next=9;break;case 7:return e.next=9,this.service.enableOrg(r);case 9:this.$message.success("修改成功"),this.fetchTableData(),e.next=15;break;case 13:e.prev=13,e.t0=e["catch"](0);case 15:case"end":return e.stop()}}),e,this,[[0,13]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getChildrenIds",value:function(e,t){var r=this;e.forEach((function(e){t.push(e.id),e.children&&e.children.length>0&&r.getChildrenIds(e.children,t)}))}},{key:"onDelete",value:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(0===t.personCount){e.next=4;break}this.$alert("机构内无人员时才可删除"),e.next=18;break;case 4:return r=t.children&&t.children.length>0?"以及下层的机构":"",e.prev=5,e.next=8,this.$confirm("确定删除".concat(t.name,"机构").concat(r,"吗?"),{center:!0});case 8:return n=[t.id],t.children&&t.children.length>0&&this.getChildrenIds(t.children,n),e.next=12,this.service.deleteOrg({ids:n});case 12:this.$message.success("删除成功"),this.fetchTableData(),e.next=18;break;case 16:e.prev=16,e.t0=e["catch"](5);case 18:case"end":return e.stop()}}),e,this,[[5,16]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onOpenModal",value:function(e,t){this.orgModalRef.open(e,t)}},{key:"onToogleEdit",value:function(e,t,r){e.isEdit=r,this.tableData=Object(o["a"])(this.tableData)}},{key:"onUpdate",value:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.service.updateOrg(t);case 3:this.$message.success("保存成功"),this.fetchTableData(),e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onOpenBindAcs",value:function(e){this.deviceTransferRef.open({orgId:e.id,orgName:e.name})}},{key:"onOpenBindFloor",value:function(e){this.floorTransferRef.open({orgId:e.id,orgName:e.name})}},{key:"onOpenExport",value:function(){this.exportRef.show()}}]),t}(Object(f["b"])(Object(q["a"])()));d["a"]([Object(f["d"])()],J.prototype,"orgModalRef",void 0),d["a"]([Object(f["d"])()],J.prototype,"parkModalRef",void 0),d["a"]([Object(f["d"])()],J.prototype,"deviceTransferRef",void 0),d["a"]([Object(f["d"])()],J.prototype,"floorTransferRef",void 0),d["a"]([Object(f["d"])()],J.prototype,"exportRef",void 0),d["a"]([Object(h["a"])("是否修改该机构状态?")],J.prototype,"onUpdateStatus",null),J=d["a"]([Object(f["a"])({name:"Org",components:{OrgEditModal:b["a"],parkEditModal:C,CwDeviceTransfer:N["a"],CwFloorTransfer:B["a"],ExportDrawer:z}})],J);var L=J,V=L,U=(r("1a03"),Object(_["a"])(V,n,a,!1,null,null,null));t["default"]=U.exports},"57e9":function(e,t,r){},"71dd":function(e,t,r){e.exports={elInputWidth:"200px",elInputNumberWidth:"200px",elTextareaWidth:"300px",elSelectWidth:"200px",primaryColor:"#0075da",primaryHoverColor:"#3391e1",primaryActiveColor:"#0069c4"}},"98d1":function(e,t,r){"use strict";var n=r("57e9"),a=r.n(n);a.a}}]);