You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

1 lines
23 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-78acb13f"],{1092:function(t,e,a){"use strict";a("57d7")},3783:function(t,e,a){},"57d7":function(t,e,a){},"7cb1":function(t,e,a){"use strict";a("a08b")},a073:function(t,e,a){"use strict";a.d(e,"b",(function(){return o})),a.d(e,"d",(function(){return n})),a.d(e,"a",(function(){return s})),a.d(e,"c",(function(){return r}));var i=a("b775");function o(t){return Object(i["a"])({url:"/admin/apiadmin/sysrole/listPage",method:"post",data:t,headers:{"Content-Type":"application/json"}})}function n(t){return Object(i["a"])({url:"/admin/apiadmin/dictcommons/typeValues",method:"get",params:t})}function s(t){return Object(i["a"])({url:"/admin/apiadmin/sysmenu/listAllByRoleSid",method:"POST",data:t,headers:{"Content-Type":"application/json"}})}function r(t){return Object(i["a"])({url:"/admin/apiadmin/sysroleauthorize/updateRoleAndMenuAdmin",method:"POST",data:t,headers:{"Content-Type":"application/json"}})}},a08b:function(t,e,a){},a55e:function(t,e,a){"use strict";a("3783")},c973:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container",staticStyle:{display:"flex"}},[e("div",{staticClass:"org-tree"},[e("el-tree",{attrs:{data:t.treedata,"node-key":"sid",props:t.props,"default-expanded-keys":["fd6435f2-0005-11ec-a033-48452053aa33"]},on:{"node-click":t.handleNodeClick},scopedSlots:t._u([{key:"default",fn:function(a){var i=a.node,o=a.data;return e("span",{staticClass:"custom-tree-node",on:{mouseenter:function(e){return t.mouseenter(o)},mouseleave:function(e){return t.mouseleave(o)}}},[e("span",[t._v(t._s(i.label||t.$store.getters.userInfo.Orgname))]),e("span",{directives:[{name:"show",rawName:"v-show",value:o.del,expression:"data.del"}],staticClass:"handle"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"新增",placement:"top-start"}},[e("el-button",{attrs:{type:"text",size:"mini",icon:"el-icon-circle-plus-outline"},on:{click:function(e){return e.stopPropagation(),function(){return t.append(o)}.apply(null,arguments)}}})],1)],1)])}}])})],1),e("el-dialog",{staticClass:"edit",attrs:{title:"编辑节点",visible:t.dialogVisible,width:"50%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[e("table",{staticClass:"e-table",attrs:{cellspacing:"0"}},[e("tr",[e("td",[t._v("组织名称")]),e("td",[e("el-input",{staticStyle:{width:"300px"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),e("td",[t._v("组织编码")]),e("td",[e("el-input",{staticStyle:{width:"300px"},model:{value:t.form.orgCode,callback:function(e){t.$set(t.form,"orgCode",e)},expression:"form.orgCode"}})],1)]),e("tr",[e("td",[t._v("主管人员")]),e("td",[e("el-select",{staticStyle:{width:"300px"},attrs:{filterable:"",clearable:""},model:{value:t.form.zgStaffSid,callback:function(e){t.$set(t.form,"zgStaffSid",e)},expression:"form.zgStaffSid"}},t._l(t.staffdata,(function(t){return e("el-option",{key:t.sid,attrs:{label:t.name,value:t.sid}})})),1)],1),e("td",[t._v("分管人员")]),e("td",[e("el-select",{staticStyle:{width:"300px"},attrs:{filterable:"",multiple:""},model:{value:t.fgStaffSid,callback:function(e){t.fgStaffSid=e},expression:"fgStaffSid"}},t._l(t.staffdata2,(function(t){return e("el-option",{key:t.sid,attrs:{label:t.name,value:t.sid}})})),1)],1)]),e("tr",[e("td",[t._v("组织简称")]),e("td",{attrs:{colspan:3}},[e("el-input",{staticStyle:{width:"30%"},model:{value:t.form.orgAbbre,callback:function(e){t.$set(t.form,"orgAbbre",e)},expression:"form.orgAbbre"}})],1)]),e("tr",[e("td",[t._v("管理层级")]),e("td",[e("el-select",{staticStyle:{width:"300px"},attrs:{placeholder:"请选择",filterable:""},on:{change:t.changeOrgLevel},model:{value:t.form.orgLevelValue,callback:function(e){t.$set(t.form,"orgLevelValue",e)},expression:"form.orgLevelValue"}},t._l(t.orgLevel_list,(function(t){return e("el-option",{key:t.dictKey,attrs:{label:t.dictValue,value:t.dictValue}})})),1)],1),e("td",[t._v("其他编码")]),e("td",[e("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"与财务中客户编码相同"},model:{value:t.form.otherCode,callback:function(e){t.$set(t.form,"otherCode",e)},expression:"form.otherCode"}})],1)]),e("tr",[e("td",[t._v("组织地址")]),e("td",[e("el-input",{staticStyle:{width:"300px"},model:{value:t.form.addrs,callback:function(e){t.$set(t.form,"addrs",e)},expression:"form.addrs"}})],1),e("td",[t._v("组织属性")]),e("td",[e("el-select",{attrs:{placeholder:"请选择",filterable:""},on:{change:t.changeOrgAttribute},model:{value:t.form.orgAttributeValue,callback:function(e){t.$set(t.form,"orgAttributeValue",e)},expression:"form.orgAttributeValue"}},t._l(t.orgAttribute_list,(function(t){return e("el-option",{key:t.dictKey,attrs:{label:t.dictValue,value:t.dictValue}})})),1)],1)]),e("tr",[e("td",[t._v("组织联系人")]),e("td",[e("el-input",{staticStyle:{width:"300px"},model:{value:t.form.linkPerson,callback:function(e){t.$set(t.form,"linkPerson",e)},expression:"form.linkPerson"}})],1),e("td",[t._v("联系电话")]),e("td",[e("el-input",{staticStyle:{width:"300px"},model:{value:t.form.linkPhone,callback:function(e){t.$set(t.form,"linkPhone",e)},expression:"form.linkPhone"}})],1)]),e("tr",[e("td",[t._v("是否独立法人")]),e("td",[e("el-radio",{attrs:{label:0},model:{value:t.form.isDept,callback:function(e){t.$set(t.form,"isDept",e)},expression:"form.isDept"}},[t._v("是")]),e("el-radio",{attrs:{label:1},model:{value:t.form.isDept,callback:function(e){t.$set(t.form,"isDept",e)},expression:"form.isDept"}},[t._v("否")])],1),e("td",[t._v("排序号")]),e("td",[e("el-input",{staticStyle:{width:"300px"},model:{value:t.form.sort,callback:function(e){t.$set(t.form,"sort",e)},expression:"form.sort"}})],1)])]),e("div",{staticClass:"text-center",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.nodeSave()}}},[t._v("保 存")]),e("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("返 回")])],1)]),e("div",{directives:[{name:"show",rawName:"v-show",value:"table"==t.isshow,expression:"isshow == 'table'"}],staticClass:"org-table"},[e("div",{staticClass:"tab-header"},[e("el-form",{ref:"form",attrs:{inline:!0,model:t.form,"label-width":"80px"}},[e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"组织名称"}},[e("el-input",{attrs:{clearable:""},model:{value:t.page.params.name,callback:function(e){t.$set(t.page.params,"name",e)},expression:"page.params.name"}})],1),e("el-form-item",[e("el-button",{on:{click:function(e){return t.onSearch()}}},[t._v("查询")]),e("el-button",{on:{click:function(e){return t.resetSearch()}}},[t._v("重置")])],1)],1)],1)],1)],1),e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,"default-expand-all":"",border:""}},[e("el-table-column",{attrs:{label:"操作",align:"center",width:"160px"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.editRow(a.row)}}},[t._v(" 编辑 ")]),e("el-button",{attrs:{type:"danger",size:"mini"},nativeOn:{click:function(e){return e.preventDefault(),t.remove(a.row)}}},[t._v(" 删除 ")])]}}])}),e("el-table-column",{attrs:{prop:"name",label:"组织名称",width:"120",align:"center"}}),e("el-table-column",{attrs:{prop:"orgCode",label:"组织编码",width:"110",align:"center"}}),e("el-table-column",{attrs:{prop:"zgNames",label:"主管",width:"100",align:"center"}}),e("el-table-column",{attrs:{prop:"fgNames",label:"分管",width:"100",align:"center"}}),e("el-table-column",{attrs:{prop:"linkPerson",label:"联系人",align:"center",width:"100px"}}),e("el-table-column",{attrs:{prop:"linkPhone",label:"联系人手机号",width:"130",align:"center"}}),e("el-table-column",{attrs:{prop:"addrs",label:"地址",align:"center"}}),e("el-table-column",{attrs:{prop:"sort",label:"排序",align:"center",width:"80px"}})],1),e("pagination",{attrs:{total:t.page.total,page:t.page.current,limit:t.page.size},on:{"update:page":function(e){return t.$set(t.page,"current",e)},"update:limit":function(e){return t.$set(t.page,"size",e)},pagination:t.pagination}})],1),e("div",{directives:[{name:"show",rawName:"v-show",value:"ewm"==t.isshow,expression:"isshow == 'ewm'"}],staticClass:"org-table"},[e("div",{staticClass:"tab-header"},[e("el-form",{ref:"form",attrs:{inline:!0,model:t.form,"label-width":"80px"}},[e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:16}},[e("h4",{staticStyle:{margin:"0","line-height":"32px"}},[t._v("组织二维码")])]),e("el-col",{attrs:{span:8}},[e("el-form-item",{staticStyle:{float:"right"}},[e("el-button",{attrs:{type:"primary"},on:{click:t.Printewm}},[t._v("打 印")]),e("el-button",{on:{click:function(e){t.isshow="table"}}},[t._v("返 回")])],1)],1)],1)],1)],1),e("div",{ref:"print",staticClass:"ewm",staticStyle:{display:"flex","justify-content":"center","align-items":"center"}},[e("img",{staticStyle:{width:"200px",height:"200px"},attrs:{src:t.ewmForm.qrFilePath,alt:""}}),e("ul",{staticStyle:{"list-style":"none","line-height":"32px","font-size":"16px"}},[e("li",[e("label",[t._v("组织名称: ")]),e("span",[t._v(t._s(t.ewmForm.departmentName))])])])])]),e("div",{directives:[{name:"show",rawName:"v-show",value:"edit"==t.isshow,expression:"isshow == 'edit'"}],staticClass:"org-table"},[e("div",{staticClass:"tab-header"},[e("el-form",{ref:"form",attrs:{inline:!0,model:t.form,"label-width":"80px"}},[e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:16}},[e("h4",{staticStyle:{margin:"0","line-height":"32px"}},[t._v(" "+t._s(t.dialogTitle)+"组织信息")])]),e("el-col",{attrs:{span:8}},[e("el-form-item",{staticStyle:{float:"right"}},[e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.save()}}},[t._v("保 存")]),e("el-button",{on:{click:function(e){t.isshow="table"}}},[t._v("返 回")])],1)],1)],1)],1)],1),e("div",{staticClass:"ediut"},[e("table",{staticClass:"e-table",attrs:{cellspacing:"0"}},[e("tr",[e("td",[t._v("组织名称")]),e("td",[e("el-input",{staticStyle:{width:"300px"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),e("td",[t._v("组织编码")]),e("td",[e("el-input",{staticStyle:{width:"300px"},model:{value:t.form.orgCode,callback:function(e){t.$set(t.form,"orgCode",e)},expression:"form.orgCode"}})],1)]),e("tr",[e("td",[t._v("主管人员")]),e("td",[e("el-select",{staticStyle:{width:"300px"},attrs:{filterable:"",clearable:""},on:{change:t.zgNamesChange},model:{value:t.form.zgNames,callback:function(e){t.$set(t.form,"zgNames",e)},expression:"form.zgNames"}},t._l(t.staffdata,(function(t){return e("el-option",{key:t.sid,attrs:{label:t.name,value:t.sid}})})),1)],1),e("td",[t._v("分管人员")]),e("td",[e("el-select",{staticStyle:{width:"300px"},attrs:{filterable:"",multiple:""},model:{value:t.fgStaffSid,callback:function(e){t.fgStaffSid=e},expression:"fgStaffSid"}},t._l(t.staffdata2,(function(t){return e("el-option",{key:t.sid,attrs:{label:t.name,value:t.sid}})})),1)],1)]),e("tr",[e("td",[t._v("组织简称")]),e("td",{attrs:{colspan:3}},[e("el-input",{staticStyle:{width:"300px"},model:{value:t.form.orgAbbre,callback:function(e){t.$set(t.form,"orgAbbre",e)},expression:"form.orgAbbre"}})],1)]),e("tr",[e("td",[t._v("管理层级")]),e("td",[e("el-select",{staticStyle:{width:"300px"},attrs:{placeholder:"请选择",filterable:""},on:{change:t.changeOrgLevel},model:{value:t.form.orgLevelValue,callback:function(e){t.$set(t.form,"orgLevelValue",e)},expression:"form.orgLevelValue"}},t._l(t.orgLevel_list,(function(t){return e("el-option",{key:t.dictKey,attrs:{label:t.dictValue,value:t.dictValue}})})),1)],1),e("td",[t._v("其他编码")]),e("td",[e("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"与财务中客户编码相同"},model:{value:t.form.otherCode,callback:function(e){t.$set(t.form,"otherCode",e)},expression:"form.otherCode"}})],1)]),e("tr",[e("td",[t._v("组织地址")]),e("td",[e("el-input",{staticStyle:{width:"300px"},model:{value:t.form.addrs,callback:function(e){t.$set(t.form,"addrs",e)},expression:"form.addrs"}})],1),e("td",[t._v("组织属性")]),e("td",[e("el-select",{attrs:{placeholder:"请选择",filterable:""},on:{change:t.changeOrgAttribute},model:{value:t.form.orgAttributeValue,callback:function(e){t.$set(t.form,"orgAttributeValue",e)},expression:"form.orgAttributeValue"}},t._l(t.orgAttribute_list,(function(t){return e("el-option",{key:t.dictKey,attrs:{label:t.dictValue,value:t.dictValue}})})),1)],1)]),e("tr",[e("td",[t._v("组织联系人")]),e("td",[e("el-input",{staticStyle:{width:"300px"},model:{value:t.form.linkPerson,callback:function(e){t.$set(t.form,"linkPerson",e)},expression:"form.linkPerson"}})],1),e("td",[t._v("联系电话")]),e("td",[e("el-input",{staticStyle:{width:"300px"},model:{value:t.form.linkPhone,callback:function(e){t.$set(t.form,"linkPhone",e)},expression:"form.linkPhone"}})],1)]),e("tr",[e("td",[t._v("是否独立法人")]),e("td",[e("el-radio",{attrs:{label:0},model:{value:t.form.isDept,callback:function(e){t.$set(t.form,"isDept",e)},expression:"form.isDept"}},[t._v("是")]),e("el-radio",{attrs:{label:1},model:{value:t.form.isDept,callback:function(e){t.$set(t.form,"isDept",e)},expression:"form.isDept"}},[t._v("否")])],1),e("td",[t._v("排序号")]),e("td",[e("el-input",{staticStyle:{width:"300px"},model:{value:t.form.sort,callback:function(e){t.$set(t.form,"sort",e)},expression:"form.sort"}})],1)])])])])],1)},o=[],n=a("b775");function s(t){return Object(n["a"])({url:"/admin/apiadmin/sysorganization/listPage",method:"POST",data:t,headers:{"Content-Type":"application/json"}})}function r(t){return Object(n["a"])({url:"/admin/apiadmin/sysorganization/list/"+t,method:"get",data:t,headers:{"Content-Type":"application/json"}})}function l(t){return Object(n["a"])({url:"/admin/apiadmin/sysorganization/update/"+t.sid,method:"POST",data:t,headers:{"Content-Type":"application/json"}})}function d(t){return Object(n["a"])({url:"/admin/apiadmin/sysorganization/update/"+t.sid,method:"POST",data:t,headers:{"Content-Type":"application/json"}})}function c(t){return Object(n["a"])({url:"/admin/apiadmin/sysorganization/save",method:"POST",data:t,headers:{"Content-Type":"application/json"}})}function f(t){return Object(n["a"])({url:"/admin/apiadmin/sysorganization/fetchBySid/"+t,method:"get",data:t,headers:{"Content-Type":"application/json"}})}function u(t){return Object(n["a"])({url:"/admin/apiadmin/sysorganization/delBySid/"+t.sid,method:"get",data:t,headers:{"Content-Type":"application/json"}})}function m(t){return Object(n["a"])({url:"/admin/apiadmin/sysstaffinfo/getStaffNameByDeptSid",method:"get",params:t,headers:{"Content-Type":"application/json"}})}function p(t){return Object(n["a"])({url:"/admin/apiadmin/sysstaffinfo/getStaffName",method:"get",params:t,headers:{"Content-Type":"application/json"}})}function g(t){return Object(n["a"])({url:"/admin/apiadmin/sysorganization/getQrCode/"+t.sid,method:"post",data:t,headers:{"Content-Type":"application/json"}})}var h=a("a073"),b=function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{top:"5vh","append-to-body":!0,title:"获取地图坐标",visible:t.dialogVisible,"before-close":t.handleClose,width:"1000px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[e("div",{staticClass:"amap-page-container"},[e("el-amap-search-box",{staticClass:"search-box",attrs:{"search-option":t.searchOption,"on-search-result":t.onSearchResult}}),e("div",{staticClass:"toolbar"},[e("span",[t._v("当前坐标: "+t._s(t.lng)+", "+t._s(t.lat))]),e("span",[t._v("地址: "+t._s(t.address))]),e("el-button",{staticClass:"btn",attrs:{type:"primary"},on:{click:t.select}},[t._v("确定")])],1),e("el-amap",{staticClass:"amap-demo",attrs:{vid:"amapDemo2",zoom:t.zoom,center:t.mapCenter,events:t.events,plugin:t.plugin}},t._l(t.markers,(function(a,i){return e("el-amap-marker",{key:i,attrs:{position:a,events:t.markerEvents}})})),1)],1)])},v=[],S={name:"AmapPage",props:{dialogVisible:{type:Boolean,default:!1},address:{type:String,default:""},makerPosition:{type:String,default:""}},data:function(){var t=this;return{zoom:14,mapCenter:[114.508905,38.004099],searchOption:{city:"石家庄",citylimit:!1},lng:0,lat:0,loaded:!1,plugin:[{pName:"Geolocation",resizeEnable:!0,timeout:100,events:{init:function(e){e.getCurrentPosition((function(e,a){if(a&&a.position){if(0==t.makerPosition.length)t.$emit("update:address",a.formattedAddress),t.lng=a.position.lng,t.lat=a.position.lat,t.mapCenter=[t.lng,t.lat];else{var i=t.makerPosition.split(",");t.lng=i[0],t.lat=i[1]}t.loaded=!0,t.$nextTick()}}))}}}],events:{click:function(e){var a=e.lnglat,i=a.lng,o=a.lat;t.lng=i,t.lat=o,t.markers[0]=[i,o];var n=new AMap.Geocoder({radius:1e3,extensions:"all"});n.getAddress([i,o],(function(e,a){if("complete"===e&&"OK"===a.info&&a&&a.regeocode){var i=a.regeocode.addressComponent,o=i.province+i.city+i.district+i.street+i.streetNumber;t.$emit("update:address",o),t.$nextTick()}}))}},markerEvents:{click:function(e){var a=e.lnglat,i=a.lng,o=a.lat;t.lng=i,t.lat=o;var n=new AMap.Geocoder({radius:1e3,extensions:"all"});n.getAddress([i,o],(function(e,a){if("complete"===e&&"OK"===a.info&&a&&a.regeocode){var i=a.regeocode.addressComponent,o=i.province+i.city+i.district+i.street+i.streetNumber;t.$emit("update:address",o),t.$nextTick()}}))}}}},computed:{markers:{get:function(){return[[this.lng,this.lat]]},set:function(t){}}},methods:{onSearchResult:function(t){var e=this;if(this.markers=[],t.length>0){var a=t[0],i=a.lng,o=a.lat;e.lng=i,e.lat=o,e.mapCenter=[i,o];var n=new AMap.Geocoder({radius:1e3,extensions:"all"});n.getAddress([i,o],(function(t,a){if("complete"===t&&"OK"===a.info&&a&&a.regeocode){var i=a.regeocode.addressComponent,o=i.province+i.city+i.district+i.street+i.streetNumber;e.$emit("update:address",o),e.$nextTick()}}))}},handleClose:function(t){this.$emit("update:dialogVisible",!1),this.$nextTick((function(){t()}))},select:function(){this.$emit("update:dialogVisible",!1),this.$emit("update:makerPosition",this.markers[0].toString()),this.$emit("update:address",this.address)}}},y=S,k=(a("1092"),a("2877")),w=Object(k["a"])(y,b,v,!1,null,"d07b41ea",null),x=w.exports,_={components:{Position:x},data:function(){return{dialogVisible:!1,mapDialog:!1,dialogTitle:"",props:{label:"name",children:"children"},nodeForm:{sid:"",name:"",sortNo:""},ewmForm:{qrFilePath:"",organizationName:"",departmentName:"",address:""},orgAttribute_list:[],orgLevel_list:[],form:{sid:"",name:"",orgCode:"",addrs:"",zgStaffSid:"",zgStaffName:"",fgStaffSid:"",fgStaffName:"",linkPerson:"",linkPhone:"",sort:"",isDept:"",orgAbbre:"",orgAttributeValue:"",orgAttributeKey:"",orgLevelValue:"",orgLevelKey:"",otherCode:""},fgStaffSid:[],formBackup:Object.assign({},this.form),isshow:"table",page:{total:0,current:1,size:10,params:{name:"",organizationSid:"",psid:""}},tableData:[],treedata:[],staffdata:[],staffdata2:[],rules:{}}},mounted:function(){this.getOrgTree(),this.init()},methods:{init:function(){var t=this;Object(h["d"])({type:"orgAttribute"}).then((function(e){e.success&&(t.orgAttribute_list=e.data)})),Object(h["d"])({type:"orgLevel"}).then((function(e){e.success&&(t.orgLevel_list=e.data)}))},changeOrgLevel:function(t){var e=null;this.orgLevel_list.forEach((function(a){a.dictValue===t&&(e={value:a.dictValue,key:a.dictKey})})),this.form.orgLevelValue=e.value,this.form.orgLevelKey=e.key},changeOrgAttribute:function(t){var e=null;this.orgAttribute_list.forEach((function(a){a.dictValue===t&&(e={key:a.dictKey,value:a.dictValue})})),this.form.orgAttributeKey=e.key},pagination:function(t){this.page.current=t.pageNum,this.page.size=t.pageSize,this.getPageList(this.page)},handleNodeClick:function(t){this.isshow="table",this.page.params.organizationSid=window.sessionStorage.getItem("orgSid"),this.page.params.psid=t.sid||0,this.getPageList(this.page)},getPageList:function(t){var e=this;s(t).then((function(t){console.log("返回子级:",t),e.tableData=t.data.records,e.page.total=t.data.total}))},getOrgTree:function(){var t=this;r(window.sessionStorage.getItem("orgSid")).then((function(e){t.treedata=e.data}))},zgNamesChange:function(t){console.log("zgNamesChange:",t);var e=this.staffdata.filter((function(e){return e.sid==t}));console.log(">>>>>>>>>zgNamesChange",e),null!=e&&e.length>0?(this.form.zgNames=e[0].name,this.form.zgStaffSid=e[0].sid):(this.form.zgNames="",this.form.zgStaffSid="")},save:function(){var t=this;this.fgStaffSid.length>0?this.form.fgStaffSid=this.fgStaffSid.join():(this.form.fgStaffName="",this.form.fgStaffSid=""),this.form.organizationSid=window.sessionStorage.getItem("orgSid"),this.form.sid?d(this.form).then((function(e){e.success&&(t.isshow="table",t.getOrgTree(),t.handleNodeClick({sid:t.form.psid}),t.$message({message:e.msg,type:"success"}))})):c(this.form).then((function(e){e.success&&(t.isshow="table",t.getOrgTree(),t.handleNodeClick({sid:t.form.psid}),t.$message({message:e.msg,type:"success"}))}))},append:function(t){console.log(123456789,t),this.dialogTitle="新增",this.isshow="edit",this.fgStaffSid=[],this.form=Object.assign({},this.formBackup),this.form.psid=t.sid||0,this.form.organizationSid=window.sessionStorage.getItem("orgSid"),this.form.address=t.orgAddress||t.address,this.form.dlxx=t.gisInfo||t.dlxx,this.getStaff(t.sid),this.getStaff2(t.sid)},editRow:function(t){var e=this;this.getStaff(t.sid),this.getStaff2(t.sid),this.dialogTitle="编辑",this.isshow="edit",this.fgStaffSid=[],f(t.sid).then((function(t){t.success&&(e.form=t.data,e.form.fgStaffName=t.data.fgNames,e.form.fgStaffSid=t.data.fgStaffSid,e.form.fgStaffSid&&(e.fgStaffSid=t.data.fgStaffSid.split(",")),e.form.zgNames=t.data.zgNames,e.form.zgStaffSid=t.data.zgStaffSid,console.log("编辑回显的数据",e.form))}))},deit:function(t){this.getStaff(t.sid),this.getStaff2(t.sid),console.log(t,8888),this.dialogVisible=!0,this.form.sid=t.sid,this.form.name=t.name,this.form.orgCode=t.orgCode,this.form.addrs=t.addrs,this.form.linkPerson=t.linkPerson,this.form.linkPhone=t.linkPhone,this.form.sort=t.sort,this.form.zgStaffSid=t.zgSids,this.form.fgStaffSid=t.fgSids.split(",")},nodeSave:function(){var t=this;console.log("这是保存nodeSave(0"),this.form.fgStaffSid=this.form.fgStaffSid.join(),l(this.form).then((function(e){t.getOrgTree(),t.dialogVisible=!1,t.$message({message:e.msg,type:"success"})}))},remove:function(t){var e=this;this.$confirm("确定要删除该组织吗, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){u({sid:t.sid}).then((function(a){e.getOrgTree(),e.handleNodeClick({sid:t.psid}),e.$message({message:a.msg,type:"success"})}))}))},lookRow:function(t){var e=this;this.isshow="ewm",g({sid:t.sid}).then((function(t){e.ewmForm=t.data}))},Printewm:function(){this.$print(this.$refs.print)},mouseenter:function(t){this.$set(t,"del",!0)},mouseleave:function(t){this.$set(t,"del",!1)},onSearch:function(){this.getPageList(this.page)},resetSearch:function(){this.page.params.name="",this.getPageList(this.page)},getStaff:function(t){var e=this;m({deptSid:t}).then((function(t){t.success&&(e.staffdata=t.data)}))},getStaff2:function(t){var e=this;p({deptSid:t}).then((function(t){e.staffdata2=t.data,console.log("分管人员",e.staffdata2)}))}}},C=_,$=(a("7cb1"),a("a55e"),Object(k["a"])(C,i,o,!1,null,"491957f6",null));e["default"]=$.exports}}]);