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
25 KiB
1 lines
25 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5d43fcba"],{"153c":function(t,e,a){},2917:function(t,e,a){"use strict";a("153c")},4299:function(t,e,a){},"4ed4":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container",staticStyle:{display:"flex"}},[a("div",{staticClass:"org-tree"},[a("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(e){var o=e.node,i=e.data;return a("span",{staticClass:"custom-tree-node",on:{mouseenter:function(e){return t.mouseenter(i)},mouseleave:function(e){return t.mouseleave(i)}},nativeOn:{click:function(t){t.stopPropagation()}}},[a("span",[t._v(t._s(o.label||t.$store.getters.userInfo.Orgname))]),a("span",{directives:[{name:"show",rawName:"v-show",value:i.del,expression:"data.del"}],staticClass:"handle"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"新增",placement:"top-start"}},[a("el-button",{attrs:{type:"text",size:"mini",icon:"el-icon-circle-plus-outline"},on:{click:function(e){return e.stopPropagation(),function(){return t.append(i)}()}}})],1)],1)])}}])})],1),a("el-dialog",{staticClass:"edit",attrs:{title:"编辑节点",visible:t.dialogVisible,width:"50%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("table",{staticClass:"e-table",attrs:{cellspacing:"0"}},[a("tr",[a("td",[t._v("组织名称")]),a("td",[a("el-input",{staticStyle:{width:"300px"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),a("td",[t._v("组织编码")]),a("td",[a("el-input",{staticStyle:{width:"300px"},model:{value:t.form.orgCode,callback:function(e){t.$set(t.form,"orgCode",e)},expression:"form.orgCode"}})],1)]),a("tr",[a("td",[t._v("主管人员")]),a("td",[a("el-select",{staticStyle:{width:"300px"},attrs:{filterable:""},model:{value:t.form.zgStaffSid,callback:function(e){t.$set(t.form,"zgStaffSid",e)},expression:"form.zgStaffSid"}},t._l(t.staffdata,(function(t){return a("el-option",{key:t.sid,attrs:{label:t.name,value:t.sid}})})),1)],1),a("td",[t._v("分管人员")]),a("td",[a("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 a("el-option",{key:t.sid,attrs:{label:t.name,value:t.sid}})})),1)],1)]),a("tr",[a("td",[t._v("组织简称")]),a("td",{attrs:{colspan:3}},[a("el-input",{staticStyle:{width:"30%"},model:{value:t.form.orgAbbre,callback:function(e){t.$set(t.form,"orgAbbre",e)},expression:"form.orgAbbre"}})],1)]),a("tr",[a("td",[t._v("管理层级")]),a("td",[a("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 a("el-option",{key:t.dictKey,attrs:{label:t.dictValue,value:t.dictValue}})})),1)],1),a("td",[t._v("其他编码")]),a("td",[a("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)]),a("tr",[a("td",[t._v("组织地址")]),a("td",[a("el-input",{staticStyle:{width:"300px"},model:{value:t.form.addrs,callback:function(e){t.$set(t.form,"addrs",e)},expression:"form.addrs"}})],1),a("td",[t._v("组织属性")]),a("td",[a("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 a("el-option",{key:t.dictKey,attrs:{label:t.dictValue,value:t.dictValue}})})),1)],1)]),a("tr",[a("td",[t._v("组织联系人")]),a("td",[a("el-input",{staticStyle:{width:"300px"},model:{value:t.form.linkPerson,callback:function(e){t.$set(t.form,"linkPerson",e)},expression:"form.linkPerson"}})],1),a("td",[t._v("联系电话")]),a("td",[a("el-input",{staticStyle:{width:"300px"},model:{value:t.form.linkPhone,callback:function(e){t.$set(t.form,"linkPhone",e)},expression:"form.linkPhone"}})],1)]),a("tr",[a("td",[t._v("是否独立法人")]),a("td",[a("el-radio",{attrs:{label:0},model:{value:t.form.isDept,callback:function(e){t.$set(t.form,"isDept",e)},expression:"form.isDept"}},[t._v("是")]),a("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),a("td",[t._v("排序号")]),a("td",[a("el-input",{staticStyle:{width:"300px"},model:{value:t.form.sort,callback:function(e){t.$set(t.form,"sort",e)},expression:"form.sort"}})],1)])]),a("div",{staticClass:"text-center",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.nodeSave()}}},[t._v("保 存")]),a("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("返 回")])],1)]),a("div",{directives:[{name:"show",rawName:"v-show",value:"table"==t.isshow,expression:"isshow == 'table'"}],staticClass:"org-table"},[a("div",{staticClass:"tab-header"},[a("el-form",{ref:"form",attrs:{inline:!0,model:t.form,"label-width":"80px"}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"组织名称"}},[a("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),a("el-form-item",[a("el-button",{on:{click:function(e){return t.onSearch()}}},[t._v("查询")]),a("el-button",{on:{click:function(e){return t.resetSearch()}}},[t._v("重置")])],1)],1)],1)],1)],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,"default-expand-all":"",border:""}},[a("el-table-column",{attrs:{label:"操作",align:"center",width:"160px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){return t.editRow(e.row)}}},[t._v(" 编辑 ")]),a("el-button",{attrs:{type:"danger",size:"mini"},nativeOn:{click:function(a){return a.preventDefault(),t.remove(e.row)}}},[t._v(" 删除 ")])]}}])}),a("el-table-column",{attrs:{prop:"name",label:"组织名称",align:"center"}}),a("el-table-column",{attrs:{prop:"orgCode",label:"组织编码",align:"center"}}),a("el-table-column",{attrs:{prop:"fgNames",label:"分管",align:"center"}}),a("el-table-column",{attrs:{prop:"linkPhone",label:"联系人手机号",width:"110",align:"center"}}),a("el-table-column",{attrs:{prop:"addrs",label:"地址",align:"center"}}),a("el-table-column",{attrs:{prop:"sort",label:"排序",align:"center",width:"50px"}}),a("el-table-column",{attrs:{prop:"qrText",label:"二维码",align:"center",width:"80px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.preventDefault(),t.lookRow(e.row)}}},[t._v("查看")])]}}])})],1),a("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),a("div",{directives:[{name:"show",rawName:"v-show",value:"ewm"==t.isshow,expression:"isshow == 'ewm'"}],staticClass:"org-table"},[a("div",{staticClass:"tab-header"},[a("el-form",{ref:"form",attrs:{inline:!0,model:t.form,"label-width":"80px"}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:16}},[a("h4",{staticStyle:{margin:"0","line-height":"32px"}},[t._v("组织二维码")])]),a("el-col",{attrs:{span:8}},[a("el-form-item",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:t.Printewm}},[t._v("打 印")]),a("el-button",{on:{click:function(e){t.isshow="table"}}},[t._v("返 回")])],1)],1)],1)],1)],1),a("div",{ref:"print",staticClass:"ewm",staticStyle:{display:"flex","justify-content":"center","align-items":"center"}},[a("img",{staticStyle:{width:"200px",height:"200px"},attrs:{src:t.ewmForm.qrFilePath,alt:""}}),a("ul",{staticStyle:{"list-style":"none","line-height":"32px","font-size":"16px"}},[a("li",[a("label",[t._v("组织名称: ")]),a("span",[t._v(t._s(t.ewmForm.departmentName))])])])])]),a("div",{directives:[{name:"show",rawName:"v-show",value:"edit"==t.isshow,expression:"isshow == 'edit'"}],staticClass:"org-table"},[a("div",{staticClass:"tab-header"},[a("el-form",{ref:"form",attrs:{inline:!0,model:t.form,"label-width":"80px"}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:16}},[a("h4",{staticStyle:{margin:"0","line-height":"32px"}},[t._v(" "+t._s(t.dialogTitle)+"组织信息")])]),a("el-col",{attrs:{span:8}},[a("el-form-item",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.save()}}},[t._v("保 存")]),a("el-button",{on:{click:function(e){t.isshow="table"}}},[t._v("返 回")])],1)],1)],1)],1)],1),a("div",{staticClass:"ediut"},[a("table",{staticClass:"e-table",attrs:{cellspacing:"0"}},[a("tr",[a("td",[t._v("组织名称")]),a("td",[a("el-input",{staticStyle:{width:"300px"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),a("td",[t._v("组织编码")]),a("td",[a("el-input",{staticStyle:{width:"300px"},model:{value:t.form.orgCode,callback:function(e){t.$set(t.form,"orgCode",e)},expression:"form.orgCode"}})],1)]),a("tr",[a("td",[t._v("主管人员")]),a("td",[a("el-select",{staticStyle:{width:"300px"},attrs:{filterable:""},model:{value:t.form.zgStaffSid,callback:function(e){t.$set(t.form,"zgStaffSid",e)},expression:"form.zgStaffSid"}},t._l(t.staffdata,(function(t){return a("el-option",{key:t.sid,attrs:{label:t.name,value:t.sid}})})),1)],1),a("td",[t._v("分管人员")]),a("td",[a("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 a("el-option",{key:t.sid,attrs:{label:t.name,value:t.sid}})})),1)],1)]),a("tr",[a("td",[t._v("组织简称")]),a("td",{attrs:{colspan:3}},[a("el-input",{staticStyle:{width:"300px"},model:{value:t.form.orgAbbre,callback:function(e){t.$set(t.form,"orgAbbre",e)},expression:"form.orgAbbre"}})],1)]),a("tr",[a("td",[t._v("管理层级")]),a("td",[a("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 a("el-option",{key:t.dictKey,attrs:{label:t.dictValue,value:t.dictValue}})})),1)],1),a("td",[t._v("其他编码")]),a("td",[a("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)]),a("tr",[a("td",[t._v("组织地址")]),a("td",[a("el-input",{staticStyle:{width:"300px"},model:{value:t.form.addrs,callback:function(e){t.$set(t.form,"addrs",e)},expression:"form.addrs"}})],1),a("td",[t._v("组织属性")]),a("td",[a("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 a("el-option",{key:t.dictKey,attrs:{label:t.dictValue,value:t.dictValue}})})),1)],1)]),a("tr",[a("td",[t._v("组织联系人")]),a("td",[a("el-input",{staticStyle:{width:"300px"},model:{value:t.form.linkPerson,callback:function(e){t.$set(t.form,"linkPerson",e)},expression:"form.linkPerson"}})],1),a("td",[t._v("联系电话")]),a("td",[a("el-input",{staticStyle:{width:"300px"},model:{value:t.form.linkPhone,callback:function(e){t.$set(t.form,"linkPhone",e)},expression:"form.linkPhone"}})],1)]),a("tr",[a("td",[t._v("是否独立法人")]),a("td",[a("el-radio",{attrs:{label:0},model:{value:t.form.isDept,callback:function(e){t.$set(t.form,"isDept",e)},expression:"form.isDept"}},[t._v("是")]),a("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),a("td",[t._v("排序号")]),a("td",[a("el-input",{staticStyle:{width:"300px"},model:{value:t.form.sort,callback:function(e){t.$set(t.form,"sort",e)},expression:"form.sort"}})],1)])])])])],1)},i=[],n=a("b775"),s=a("4328"),r=a.n(s),l=window.sessionStorage.getItem("token");function d(t){return Object(n["a"])({url:"/portal/v1/sysorganization/listPage",method:"POST",data:t,headers:{"Content-Type":"application/json",token:l}})}function c(t){return Object(n["a"])({url:"/portal/v1/sysorganization/list",method:"get",data:t,headers:{"Content-Type":"application/json",token:l}})}function f(t){return Object(n["a"])({url:"/portal/v1/sysorganization/update/"+t.sid,method:"POST",data:t,headers:{"Content-Type":"application/json",token:l}})}function u(t){return Object(n["a"])({url:"/portal/v1/sysorganization/update/"+t.sid,method:"POST",data:t,headers:{"Content-Type":"application/json",token:l}})}function p(t){return Object(n["a"])({url:"/portal/v1/sysorganization/save",method:"POST",data:t,headers:{"Content-Type":"application/json",token:l}})}function m(t){return Object(n["a"])({url:"portal/v1/sysorganization/fetchBySid/"+t,method:"get",data:t,headers:{"Content-Type":"application/json",token:l}})}function g(t){return Object(n["a"])({url:"/portal/v1/sysorganization/delBySid/"+t.sid,method:"get",data:r.a.stringify(t),headers:{"Content-Type":"application/json",token:l}})}function h(t){return Object(n["a"])({url:"portal/v1/sysstaffinfo/getStaffNameByDeptSid",method:"get",params:t,headers:{"Content-Type":"application/json",token:l}})}function v(t){return Object(n["a"])({url:"/portal/v1/sysstaffinfo/getStaffName",method:"get",params:t,headers:{"Content-Type":"application/json",token:l}})}function b(t){return Object(n["a"])({url:"/portal/v1/sysorganization/getQrCode/"+t.sid,method:"post",data:t,headers:{"Content-Type":"application/json"}})}var S=a("a073"),y=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("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}}},[a("div",{staticClass:"amap-page-container"},[a("el-amap-search-box",{staticClass:"search-box",attrs:{"search-option":t.searchOption,"on-search-result":t.onSearchResult}}),a("div",{staticClass:"toolbar"},[a("span",[t._v("当前坐标: "+t._s(t.lng)+", "+t._s(t.lat))]),a("span",[t._v("地址: "+t._s(t.address))]),a("el-button",{staticClass:"btn",attrs:{type:"primary"},on:{click:t.select}},[t._v("确定")])],1),a("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(e,o){return a("el-amap-marker",{key:o,attrs:{position:e,events:t.markerEvents}})})),1)],1)])},k=[],w={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 o=t.makerPosition.split(",");t.lng=o[0],t.lat=o[1]}t.loaded=!0,t.$nextTick()}}))}}}],events:{click:function(e){var a=e.lnglat,o=a.lng,i=a.lat;t.lng=o,t.lat=i,t.markers[0]=[o,i];var n=new AMap.Geocoder({radius:1e3,extensions:"all"});n.getAddress([o,i],(function(e,a){if("complete"===e&&"OK"===a.info&&a&&a.regeocode){var o=a.regeocode.addressComponent,i=o.province+o.city+o.district+o.street+o.streetNumber;t.$emit("update:address",i),t.$nextTick()}}))}},markerEvents:{click:function(e){var a=e.lnglat,o=a.lng,i=a.lat;t.lng=o,t.lat=i;var n=new AMap.Geocoder({radius:1e3,extensions:"all"});n.getAddress([o,i],(function(e,a){if("complete"===e&&"OK"===a.info&&a&&a.regeocode){var o=a.regeocode.addressComponent,i=o.province+o.city+o.district+o.street+o.streetNumber;t.$emit("update:address",i),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],o=a.lng,i=a.lat;e.lng=o,e.lat=i,e.mapCenter=[o,i];var n=new AMap.Geocoder({radius:1e3,extensions:"all"});n.getAddress([o,i],(function(t,a){if("complete"===t&&"OK"===a.info&&a&&a.regeocode){var o=a.regeocode.addressComponent,i=o.province+o.city+o.district+o.street+o.streetNumber;e.$emit("update:address",i),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)}}},x=w,_=(a("6670"),a("2877")),C=Object(_["a"])(x,y,k,!1,null,"d07b41ea",null),O=C.exports,j={components:{Position:O},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(S["o"])({type:"orgAttribute"}).then((function(e){e.success&&(t.orgAttribute_list=e.data)})),Object(S["o"])({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=this.$store.getters.userInfo.orgSid,this.page.params.psid=t.sid||0,this.getPageList(this.page)},getPageList:function(t){var e=this;d(t).then((function(t){console.log("返回子级:",t),e.tableData=t.data.records,e.page.total=t.data.total}))},getOrgTree:function(){var t=this;c({}).then((function(e){t.treedata=e.data}))},save:function(){var t=this;this.fgStaffSid.length>0?this.form.fgStaffSid=this.fgStaffSid.join():(this.form.fgStaffName="",this.form.fgStaffSid=""),this.form.organizationSid=this.$store.getters.userInfo.orgSid,this.form.sid?u(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"}))})):p(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=this.$store.getters.userInfo.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=[],m(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.zgStaffName=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(),f(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(){g({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",b({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;h({deptSid:t}).then((function(t){t.success&&(e.staffdata=t.data)}))},getStaff2:function(t){var e=this;v({deptSid:t}).then((function(t){e.staffdata2=t.data,console.log("分管人员",e.staffdata2)}))}}},$=j,T=(a("5f02"),a("2917"),Object(_["a"])($,o,i,!1,null,"0cb1156e",null));e["default"]=T.exports},"5f02":function(t,e,a){"use strict";a("8789")},6670:function(t,e,a){"use strict";a("4299")},8789:function(t,e,a){},a073:function(t,e,a){"use strict";a.d(e,"g",(function(){return n})),a.d(e,"d",(function(){return s})),a.d(e,"o",(function(){return r})),a.d(e,"m",(function(){return l})),a.d(e,"h",(function(){return d})),a.d(e,"e",(function(){return c})),a.d(e,"a",(function(){return f})),a.d(e,"c",(function(){return u})),a.d(e,"i",(function(){return p})),a.d(e,"f",(function(){return m})),a.d(e,"l",(function(){return g})),a.d(e,"n",(function(){return h})),a.d(e,"j",(function(){return v})),a.d(e,"b",(function(){return b})),a.d(e,"k",(function(){return S}));var o=a("b775"),i=(a("4328"),window.sessionStorage.getItem("token"));function n(t){return Object(o["a"])({url:"/portal/v1/sysrole/listPage",method:"post",data:t,headers:{"Content-Type":"application/json",token:i}})}function s(t){return Object(o["a"])({url:"/portal/v1/syspost/list",method:"get",data:t,headers:{"Content-Type":"application/json"}})}function r(t){return Object(o["a"])({url:"/portal/v1/dictcommons/typeValues",method:"get",params:t})}function l(t){return Object(o["a"])({url:"/portal/v1/sysrole/setIsEnable/"+t.sid+"/"+t.isEnable,method:"POST",data:t,headers:{"Content-Type":"application/json"}})}function d(t){return Object(o["a"])({url:"/portal/v1/sysrole/save",method:"POST",data:t,headers:{"Content-Type":"application/json",token:i}})}function c(t){return Object(o["a"])({url:"/portal/v1/sysrole/update/".concat(t.sid),method:"POST",data:t,headers:{"Content-Type":"application/json",token:i}})}function f(t){return Object(o["a"])({url:"/portal/v1/sysrole/delBySids/".concat(t.sid),method:"get",data:t,headers:{"Content-Type":"application/json",token:i}})}function u(t){return Object(o["a"])({url:"/portal/v1/sysmobilemenurole/getRoleMenuList",method:"post",params:{roleSid:t}})}function p(t){return Object(o["a"])({url:"/portal/v1/sysmobilemenurole/saveRoleMenuList",method:"POST",data:t,headers:{"Content-Type":"application/json",token:i}})}function m(t){return Object(o["a"])({url:"/portal/v1/sysmenu/listAllByRoleSid",method:"POST",data:t,headers:{"Content-Type":"application/json",token:i}})}function g(t){return Object(o["a"])({url:"/portal/v1/sysmenurole/updateRoleAndMenu",method:"POST",data:t,headers:{"Content-Type":"application/json",token:i}})}function h(t){return Object(o["a"])({url:"/portal/v1/syssource/listAllByRoleSid",method:"POST",data:t,headers:{"Content-Type":"application/json",token:i}})}function v(t){return Object(o["a"])({url:"/portal/v1/syssourcerole/updateRoleAndSource",method:"POST",data:t,headers:{"Content-Type":"application/json",token:i}})}function b(t){return Object(o["a"])({url:"/portal/v1/sysfunction/listAllByRoleSid",method:"POST",data:t,headers:{"Content-Type":"application/json",token:i}})}function S(t){return Object(o["a"])({url:"/portal/v1/sysrolefunction/updateRoleAndFunction",method:"POST",data:t,headers:{"Content-Type":"application/json",token:i}})}}}]);
|