Newer
Older
smartwell_front_dz / smartwell / static / js / 4655.c04144bc.js
wangxitong on 11 Sep 2023 20 KB first commit
"use strict";(self["webpackChunknewfront"]=self["webpackChunknewfront"]||[]).push([[4655],{80722:(e,t,r)=>{r.r(t),r.d(t,{default:()=>I});r(74916),r(64765),r(73210);var a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-container"},[t("el-row",[t("el-col",{attrs:{span:5}},[t("div",{staticClass:"dept-div"},[t("el-card",{staticClass:"box-card",attrs:{shadow:"always"}},[t("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[t("span",[e._v("组织机构")])]),t("el-scrollbar",{ref:"deptScroll",staticClass:"user-dept-scroll"},[t("el-tree",{directives:[{name:"loading",rawName:"v-loading",value:e.treeLoading,expression:"treeLoading"}],ref:"tree2",staticClass:"filter-tree",attrs:{data:e.deptTree,props:e.defaultProps,"default-expand-all":e.expandAllNode,"expand-on-click-node":e.expandNodeClick},on:{"node-click":e.handleNodeClick}})],1)],1)],1)]),t("el-col",{attrs:{span:19}},[t("search-area",{ref:"searchArea",attrs:{size:"small"},on:{search:e.search}},[t("search-item",[t("el-input",{attrs:{size:"small",placeholder:"账号/真实姓名/手机号",clearable:""},model:{value:e.listQuery.keywords,callback:function(t){e.$set(e.listQuery,"keywords","string"===typeof t?t.trim():t)},expression:"listQuery.keywords"}})],1),t("search-item",[t("el-date-picker",{attrs:{type:"daterange",format:"yyyy-MM-dd",size:"small","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"注册开始日期","end-placeholder":"注册结束日期"},model:{value:e.registerTime,callback:function(t){e.registerTime=t},expression:"registerTime"}})],1),t("template",{slot:"btns"},[t("div",{staticStyle:{"margin-bottom":"10px"}},[e.hasPerm("/sys/mgr/add")?t("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-plus"},on:{click:e.add}},[e._v(" 新增 ")]):e._e(),e.hasPerm("/sys/mgr/update")?t("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-edit"},on:{click:e.edit}},[e._v(" 修改 ")]):e._e(),e.hasPerm("/sys/mgr/delete")?t("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-delete"},on:{click:e.del}},[e._v(" 删除 ")]):e._e(),e.hasPerm("/sys/mgr/reset")?t("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-key"},on:{click:e.resetPwd}},[e._v(" 重置密码 ")]):e._e(),e.hasPerm("/sys/mgr/roleAssign")?t("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-magic-stick"},on:{click:e.roleAssign}},[e._v(" 角色分配 ")]):e._e()],1)])],2),t("normal-table",{ref:"normalTable",staticClass:"table",style:{"min-height":e.bodyHeight-118+"px"},attrs:{data:e.list,total:e.total,columns:e.columns,query:e.listQuery,"list-loading":e.listLoading,size:"small"},on:{change:e.changePage}},[t("template",{slot:"preColumns"},[t("el-table-column",{attrs:{label:"选择",width:"55","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("el-radio",{staticClass:"radio",attrs:{label:r.$index},model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[e._v("   ")])]}}])})],1),t("template",{slot:"columns"},[t("el-table-column",{attrs:{label:"状态",width:"80",align:"center"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("el-tag",{attrs:{type:e.tagNames[r.row.statusName],size:"medium"}},[e._v(" "+e._s(r.row.statusName)+" ")])]}}])}),e.hasPerm("/sys/mgr/freeze")?t("el-table-column",{attrs:{label:"操作",align:"center",width:"70"},scopedSlots:e._u([{key:"default",fn:function(r){return[e.hasPerm("/sys/mgr/freeze")?t("el-button",{attrs:{type:e.btnStatus[r.row.statusName],size:"mini"},on:{click:function(t){return e.freeze(r.row)}}},[e._v(" "+e._s(e.btnNames[r.row.statusName])+" ")]):e._e()]}}],null,!1,785643409)}):e._e()],1)],2)],1)],1),t("edit-user",{directives:[{name:"show",rawName:"v-show",value:e.editShow,expression:"editShow"}],ref:"edituser",on:{watchChild:e.fetchData}}),t("role-assign",{directives:[{name:"show",rawName:"v-show",value:e.roleAssignShow,expression:"roleAssignShow"}],ref:"roleassign",on:{watchChild:e.fetchData}})],1)},s=[],i=r(95082),o=(r(68309),r(89554),r(41539),r(54747),r(40561),r(57733)),l=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,width:"700","append-to-body":""},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[t("el-form",{ref:"dataForm",attrs:{rules:e.rules,model:e.userForm,"label-position":"right","label-width":"80px"}},[t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"账号",prop:"account"}},[t("el-input",{attrs:{disabled:"update"==e.dialogStatus,type:"text",placeholder:"必填"},model:{value:e.userForm.account,callback:function(t){e.$set(e.userForm,"account","string"===typeof t?t.trim():t)},expression:"userForm.account"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"姓名",prop:"name"}},[t("el-input",{attrs:{type:"text",placeholder:"必填"},model:{value:e.userForm.name,callback:function(t){e.$set(e.userForm,"name","string"===typeof t?t.trim():t)},expression:"userForm.name"}})],1)],1)],1),t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"性别",prop:"sex"}},[t("el-select",{attrs:{placeholder:"请选择"},model:{value:e.userForm.sex,callback:function(t){e.$set(e.userForm,"sex",t)},expression:"userForm.sex"}},e._l(e.sexList,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"出生日期",prop:"birthday"}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.userForm.birthday,callback:function(t){e.$set(e.userForm,"birthday",t)},expression:"userForm.birthday"}})],1)],1)],1),t("el-row",{directives:[{name:"show",rawName:"v-show",value:"create"==e.dialogStatus,expression:"dialogStatus=='create'"}],attrs:{gutter:20}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"密码",prop:"password"}},[t("el-input",{attrs:{type:"password",placeholder:"必填"},model:{value:e.userForm.password,callback:function(t){e.$set(e.userForm,"password","string"===typeof t?t.trim():t)},expression:"userForm.password"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"重复密码",prop:"rePassword"}},[t("el-input",{attrs:{type:"password",placeholder:"必填"},model:{value:e.userForm.rePassword,callback:function(t){e.$set(e.userForm,"rePassword","string"===typeof t?t.trim():t)},expression:"userForm.rePassword"}})],1)],1)],1),t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:12}},["create"==e.dialogStatus?t("el-form-item",{attrs:{label:"角色",prop:"roleid"}},[t("select-tree",{attrs:{"default-expanded-keys":[e.userForm.roleid],options:e.roleTreeList,props:e.roleProps},model:{value:e.userForm.roleid,callback:function(t){e.$set(e.userForm,"roleid",t)},expression:"userForm.roleid"}})],1):t("el-form-item",{attrs:{label:"角色"}},[t("el-input",{attrs:{disabled:"update"==e.dialogStatus,type:"text",placeholder:"无"},model:{value:e.roleName,callback:function(t){e.roleName=t},expression:"roleName"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"组织机构",prop:"deptId"}},[t("dept-select",{attrs:{"dept-show":!0,"default-expanded-keys":[e.userForm.roleid],placeholder:"请选择组织机构"},model:{value:e.userForm.deptId,callback:function(t){e.$set(e.userForm,"deptId",t)},expression:"userForm.deptId"}})],1)],1)],1),t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[t("el-input",{attrs:{type:"text",placeholder:"必填"},model:{value:e.userForm.email,callback:function(t){e.$set(e.userForm,"email","string"===typeof t?t.trim():t)},expression:"userForm.email"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"电话",prop:"phone"}},[t("el-input",{attrs:{type:"text",placeholder:"必填"},model:{value:e.userForm.phone,callback:function(t){e.$set(e.userForm,"phone","string"===typeof t?t.trim():t)},expression:"userForm.phone"}})],1)],1)],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{loading:e.btnLoading,type:"primary"},on:{click:e.saveData}},[e._v(" 保存 ")]),t("el-button",{on:{click:e.cancel}},[e._v(" 取消 ")])],1)],1)},n=[],d=(r(21703),r(96647),r(38862),r(50275)),c=r(13331),u=r(81037),h=r(89176),m=r(76006),p=r(78035),f=r(25108);const g={name:"EditUser",components:{SelectTree:c.Z,DeptSelect:u.Z},data:function(){var e=this,t=function(t,r,a){""===r?a(new Error("密码不能为空")):(""!==e.userForm.rePassword&&e.$refs.dataForm.validateField("rePassword"),a())},r=function(t,r,a){""===r?a(new Error("重复密码不能为空")):r!==e.userForm.password?a(new Error("两次输入密码不一致!")):a()};return{dialogFormVisible:!1,dialogStatus:"",userForm:{id:"",account:"",name:"",email:"",phone:"",deptId:"",roleid:"",password:"",rePassword:"",birthday:""},deptProps:{parent:"pid",value:"id",label:"name",children:"children"},roleProps:{parent:"pid",value:"id",label:"name",children:"children"},roleTreeList:null,sexList:this.$store.getters.sexList,textMap:{update:"编辑用户",create:"新增用户"},rules:{account:[{required:!0,message:"账号不能为空",trigger:["blur","change"]}],name:[{required:!0,message:"姓名不能为空",trigger:["blur","change"]}],password:[{required:!0,validator:t,trigger:["blur","change"]}],rePassword:[{required:!0,validator:r,trigger:["blur","change"]}],deptId:[{required:!0,message:"组织机构必选",trigger:["blur","change"]}],roleid:[{required:!0,message:"角色必选",trigger:["blur","change"]}],email:[{required:!1,message:"请输入邮箱地址",trigger:"blur"},{type:"email",message:"请输入正确的邮箱地址",trigger:["blur","change"]}],phone:[{required:!1,pattern:h.i9.mobile,message:"请输入正确的手机号",trigger:["blur","change"]}]},roleName:"",btnLoading:!1}},created:function(){this.fetchRoleTree()},methods:{initDialog:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.dialogStatus=e,this.dialogFormVisible=!0,this.btnLoading=!1,"create"===e?(this.resetForm(),this.$nextTick((function(){t.$refs["dataForm"].clearValidate()}))):"update"===e&&(this.userForm={id:r.id,account:r.account,name:r.name,email:r.email,phone:r.phone,deptId:r.deptId,roleid:r.roleid,birthday:r.birthday,sex:r.sex},this.roleName=r.roleName,delete this.userForm["password"],delete this.userForm["rePassword"])},fetchRoleTree:function(){var e=this;(0,m.Wq)(this.listQuery).then((function(t){f.log(t.data),t.data.list&&(e.roleTreeList=(0,d.WP)(t.data.list,"0",!0))}))},resetForm:function(){this.userForm={id:"",account:"",name:"",email:"",phone:"",deptId:"",roleid:"",password:"",rePassword:""}},saveData:function(){"update"===this.dialogStatus?this.updateData():"create"===this.dialogStatus&&this.createData()},createData:function(){var e=this;this.$refs["dataForm"].validate((function(t){f.log(e.userForm);var r=JSON.parse(JSON.stringify(e.userForm));r.password=(0,o.b)(r.password),r.rePassword=(0,o.b)(r.rePassword),t&&(e.btnLoading=!0,(0,p.cn)(r).then((function(t){200===t.code&&e.$confirm("新增成功,是否继续新增?","提示",{confirmButtonText:"是",cancelButtonText:"否",type:"info"}).then((function(){e.btnLoading=!1,e.resetForm(),e.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))}))["catch"]((function(){e.$emit("watchChild"),e.dialogFormVisible=!1}))}))["catch"]((function(t){e.btnLoading=!1})))}))},updateData:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.btnLoading=!0,(0,p.Nq)(e.userForm).then((function(t){200===t.code&&(e.$message.success("修改成功"),e.$emit("watchChild"),e.dialogFormVisible=!1)}))["catch"]((function(t){e.btnLoading=!1})))}))},cancel:function(){this.dialogFormVisible=!1,this.$emit("watchChild")}}},v=g;var y=r(1001),b=(0,y.Z)(v,l,n,!1,null,"40ad36cb",null);const w=b.exports;var x=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{visible:e.dialogFormVisible,title:e.titleText,width:"330px","append-to-body":""},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[t("el-scrollbar",[t("el-tree",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"tree",attrs:{props:e.defaultProps,data:e.roleTreeList,"default-expanded-keys":e.defaultExpanded,"default-checked-keys":e.defaultChecked,"default-expand-all":e.defaultExpandAll,"show-checkbox":"","check-strictly":"","node-key":"id"},on:{"check-change":e.handleCheckChange}})],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{type:"primary"},on:{click:e.saveData}},[e._v(" 保存 ")]),t("el-button",{on:{click:e.cancel}},[e._v(" 取消 ")])],1)],1)},k=[],F=r(25108);const $={name:"RoleAssign",data:function(){return{userId:"",userName:"",ids:[],dialogFormVisible:!1,defaultProps:{label:"name",children:"children"},roleTreeList:null,defaultExpanded:[],defaultChecked:[],loading:!1,defaultExpandAll:!0}},computed:{titleText:function(){return this.userName+""}},mounted:function(){},methods:{initDialog:function(e){this.loading=!0,this.userId=e.id,this.userName=e.name,this.dialogFormVisible=!0,this.fetchRoleTree()},fetchRoleTree:function(){var e=this;(0,m.uY)(this.userId).then((function(t){if(t.data){e.roleTreeList=(0,d.WP)(t.data);var r=(0,d.P7)(t.data);e.defaultExpanded=r[0],e.defaultChecked=r[1],e.loading=!1}}))},saveData:function(){var e=this;this.ids=this.$refs.tree.getCheckedKeys(),(0,p.vo)(this.userId,this.ids).then((function(t){200===t.code&&(e.$message.success("角色分配成功"),e.dialogFormVisible=!1,e.$emit("watchChild"))}))},handleCheckChange:function(){F.log("handleCheckChange")},cancel:function(){this.dialogFormVisible=!1,this.$emit("watchChild")}}},T=$;var C=(0,y.Z)(T,x,k,!1,null,"28fc079b",null);const N=C.exports;var P=r(79053),S=r(20629),_=r(25108);const L={name:"ListUser",components:{roleAssign:N,editUser:w},data:function(){return{radio:"",password:"111111",listQuery:{keywords:"",beginTime:"",endTime:"",deptId:"",offset:1,limit:20,sort:"id"},registerTime:[],tagNames:{已冻结:"danger",启用:"success"},btnNames:{已冻结:"解冻",启用:"冻结"},btnStatus:{已冻结:"",启用:"primary"},columns:[{text:"账号",value:"account"},{text:"所在组织机构",value:"deptName",width:150},{text:"真实姓名",value:"name"},{text:"角色",value:"roleName"},{text:"手机号",value:"phone"},{text:"注册时间",value:"createtime"}],list:[],total:0,deptTree:null,defaultProps:{children:"children",label:"name"},treeLoading:!1,listLoading:!1,editShow:!1,roleAssignShow:!1,expandAllNode:!0,expandNodeClick:!1}},computed:(0,i.Z)({},(0,S.Se)(["bodyHeight"])),watch:{registerTime:function(e){e&&e.length>0?(this.listQuery.beginTime=e[0],this.listQuery.endTime=e[1]):(this.listQuery.beginTime="",this.listQuery.endTime="")}},created:function(){this.fetchDeptTree(),this.fetchData()},methods:{add:function(){this.editShow=!0,this.$refs.edituser.initDialog("create")},edit:function(){if(this.singleCheck()){this.editShow=!0;var e=this.list[this.radio];this.$refs.edituser.initDialog("update",e)}else this.$message.error("必须选中一项")},roleAssign:function(){if(this.singleCheck()){this.roleAssignShow=!0;var e=this.list[this.radio];this.$refs.roleassign.initDialog(e)}else this.$message.error("必须选中一项")},del:function(){var e=this;if(this.singleCheck()){var t=this.list[this.radio];this.$confirm("确定要删除"+t.name+"吗?","确认删除",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){(0,p.ti)(t.id).then((function(t){200===t.code&&(e.$message.success("删除成功"),e.fetchData())}))}))}else this.$message.error("必须选中一项")},resetPwd:function(){var e=this;if(this.singleCheck()){var t=this.list[this.radio];this.$confirm("确定要重置"+t.name+"的密码为"+this.password+"吗?","确认重置密码",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var r=(0,o.b)(e.password),a={id:t.id,newPwd:r};(0,p.J$)(a).then((function(t){200===t.code&&e.$message.success("重置密码成功")}))}))}else this.$message.error("必须选中一项")},freeze:function(e){var t=this;_.log(e.id),"已冻结"===e.statusName?this.$confirm("确定要对"+e.name+"解除冻结吗?","确认操作",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){(0,p.R5)(e.id).then((function(r){200===r.code&&(t.$message.success("解除冻结成功"),e.statusName="启用",_.log("rowStatusName:"+e.statusName))}))})):this.$confirm("确定要冻结"+e.name+"吗?","确认操作",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){(0,p.Ml)(e.id).then((function(r){200===r.code&&(t.$message.success("冻结用户成功"),e.statusName="已冻结")}))}))},search:function(){this.fetchData(!1)},fetchData:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.listLoading=!0,t||(this.listQuery.offset=1),(0,p.lE)(this.listQuery).then((function(t){e.list=t.data.rows,e.total=t.data.total,e.listLoading=!1,e.radio=""}))},fetchDeptTree:function(){var e=this;this.treeLoading=!0,(0,P.t5)(this.listQuery).then((function(t){e.deptTree=(0,d.WP)(t.data,"0",!0),e.treeLoading=!1}))},handleNodeClick:function(e){this.listQuery.deptId=e.id,this.fetchData()},changePage:function(e){e&&e.size&&(this.listQuery.limit=e.size),e&&e.page&&(this.listQuery.offset=e.page),this.fetchData()},deleteItem:function(e,t){var r=this;e.forEach((function(a,s){a.id===t.id?e.splice(s,1):a.children&&a.children.length>0&&r.deleteItem(a.children,t)}))},singleCheck:function(){return""!==this.radio}}},Z=L;var D=(0,y.Z)(Z,a,s,!1,null,"6d1888ef",null);const I=D.exports},79053:(e,t,r)=>{r.d(t,{CZ:()=>l,MB:()=>n,U4:()=>s,cd:()=>o,mv:()=>d,t5:()=>i});var a=r(84471);function s(e){return(0,a.Z)({url:"sys/dept/list",method:"get",params:e})}function i(e){return(0,a.Z)({url:"sys/dept/tree",method:"get",params:e})}function o(e){return(0,a.Z)({url:"sys/role/treeByRoleId",method:"get",params:{roleId:e}})}function l(e){return(0,a.Z)({url:"sys/dept/add",method:"post",data:e})}function n(e){return(0,a.Z)({url:"sys/dept/update",method:"post",data:e})}function d(e){return(0,a.Z)({url:"sys/dept/delete",method:"post",data:{id:e}})}},76006:(e,t,r)=>{r.d(t,{JV:()=>o,R:()=>h,Wq:()=>l,_d:()=>d,aP:()=>m,k8:()=>u,uY:()=>n,ul:()=>c,vf:()=>p});var a=r(80129),s=r.n(a),i=r(84471);function o(e){return(0,i.Z)({url:"sys/role/list",method:"get",params:e})}function l(){return(0,i.Z)({url:"sys/role/tree",method:"get"})}function n(e){return(0,i.Z)({url:"sys/role/treeByUserId",method:"get",params:{userId:e}})}function d(e){return(0,i.Z)({url:"sys/role/add",method:"post",data:e})}function c(e){return(0,i.Z)({url:"sys/role/update",method:"post",data:e})}function u(e){return(0,i.Z)({url:"sys/role/delete",method:"post",data:{id:e}})}function h(e,t){return(0,i.Z)({url:"sys/role/funcAuthor",method:"post",data:{roleId:e,ids:t},paramsSerializer:function(e){return s().stringify(e,{indices:!1})}})}function m(e,t){return(0,i.Z)({url:"sys/role/dataAuthor",method:"post",data:{roleId:e,ids:t},paramsSerializer:function(e){return s().stringify(e,{indices:!1})}})}function p(){return(0,i.Z)({url:"sys/dict/code/dataScopeType",method:"get"})}},50275:(e,t,r)=>{r.d(t,{P7:()=>c,WP:()=>o,qd:()=>i});var a=r(89584),s=r(66347);r(21249),r(41539),r(70189),r(78783),r(33948),r(40561);function i(e){if(e&&e.length>0){var t,r=!1,a=e[0].pid,i=(0,s.Z)(e);try{for(i.s();!(t=i.n()).done;){var o=t.value;if(o.pid!==a){r=!0;break}}}catch(l){i.e(l)}finally{i.f()}return r}return!1}function o(e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=d(e);if(r.length>1)return e;var a=n(l(e,r[0],t));return a}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0",r=arguments.length>2?arguments[2]:void 0,a=function t(r){for(var a=[],s=0;s<e.length;s++){var i=e[s],o=""+i.id,l=""+i.pid;l===r&&(i.children=t(o),a.push(i))}return a};if(!r)return a(t);var i,o=1,l=[],n=(0,s.Z)(e);try{for(n.s();!(i=n.n()).done;){var d=i.value,c=""+d.id;if(c===t)return d.children=a(t),o=0,l.push(d),l}}catch(u){n.e(u)}finally{n.f()}return 1===o?a(t):void 0}function n(e){var t=function e(t){return t.map((function(t){return t&&t.children&&t.children.length?e(t.children):delete t.children,t})),t};return t(e)}function d(e){var t=new Set;if(e){var r,i=(0,s.Z)(e);try{for(i.s();!(r=i.n()).done;){var o=r.value;t.add(o.pid)}}catch(u){i.e(u)}finally{i.f()}var l,n=(0,s.Z)(e);try{for(n.s();!(l=n.n()).done;){var d=l.value;t.has(d.id)&&t["delete"](d.id)}}catch(u){n.e(u)}finally{n.f()}var c=(0,a.Z)(t);return c}return null}function c(e){for(var t=[],r=[],a=0;a<e.length;a++)"true"!==e[a].open&&!0!==e[a].open||t.push(e[a].id),"true"!==e[a].checked&&!0!==e[a].checked||r.push(e[a].id);return[t,r]}}}]);