Commit ad40d07a by Suvalue

后台前端代码提交

parent d6aa01b6
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=Cache-Control content="no-cache, no-store, must-revalidate"><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><meta name=renderer content=webkit><meta name=viewport content="width=1300"><link rel=icon href=./web/favicon.ico><title>大数据医院运营后台管理</title><script src=./web/scripts/jquery.min.js></script><script src=./web/scripts/linq.min.js></script><script src="./web/scripts/file.js?version=1.8.28.2"></script><script src=./web/scripts/echarts.min.js></script><script src=./web/scripts/walden.js></script><script src=./web/scripts/sucharts.min.2019.11.08.js></script><script src=./web/scripts/shim.min.js></script><script src=./web/scripts/xlsx.core.min.js></script><script src=./web/scripts/FileSaver.min.js></script><script src=./web/scripts/clipboard.min.js></script><link href=web/css/chunk-1220897c.bdc032ae.css rel=prefetch><link href=web/css/chunk-a5196180.0e433876.css rel=prefetch><link href=web/js/chunk-1220897c.10c4e9e7.js rel=prefetch><link href=web/js/chunk-2d0a5503.9031d9ee.js rel=prefetch><link href=web/js/chunk-2d21ad95.676b54b4.js rel=prefetch><link href=web/js/chunk-2d224c43.e946cfc1.js rel=prefetch><link href=web/js/chunk-a5196180.3f30abf3.js rel=prefetch><link href=web/css/app.3d25b637.css rel=preload as=style><link href=web/css/chunk-vendors.2a56b552.css rel=preload as=style><link href=web/js/app.a002290c.js rel=preload as=script><link href=web/js/chunk-vendors.e4ebf5f6.js rel=preload as=script><link href=web/css/chunk-vendors.2a56b552.css rel=stylesheet><link href=web/css/app.3d25b637.css rel=stylesheet></head><body><noscript><strong>We're sorry but temp_vue3 doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=web/js/chunk-vendors.e4ebf5f6.js></script><script src=web/js/app.a002290c.js></script></body></html>
\ No newline at end of file
.roleId{display:inline-block;width:120px;padding:0 12px 0 10px;height:40px}.xing{color:red}.selectks{position:absolute;right:85px;top:195px;width:217px}.selectks .el-form-item__content{margin-left:0!important}.qy{margin-right:10px}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0091c028"],{2326:function(t,e,r){},"3c2e":function(t,e,r){"use strict";var o=r("2326"),i=r.n(o);i.a},cf53:function(t,e,r){"use strict";r.r(e);var o=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"manage_page manage_org_page"},[r("div",{staticClass:"search_bar clearfix"},[r("div",{staticClass:"left"},[r("el-input",{staticStyle:{width:"300px"},attrs:{clearable:"",placeholder:"可输入机构名称搜索"},nativeOn:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.search()}},model:{value:t.searchContent,callback:function(e){t.searchContent=e},expression:"searchContent"}}),r("el-button",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]}),r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.search()}}},[t._v("搜索")])],1),r("div",{staticClass:"right"},[r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.orgAdd()}}},[t._v("添加机构")])],1)]),r("div",{staticClass:"table_box"},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableList,border:"",height:"100%","default-expand-all":"","row-key":function(t){return t.id},"row-class-name":t.$tableRowClassName,"tree-props":t.orgProps}},[r("el-table-column",{attrs:{prop:"title",label:"序号",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.$index+1))])]}}])}),t._l(t.tableColumns,(function(e,o){return[r("el-table-column",{key:o,attrs:{prop:e.prop,label:e.label,sortable:e.sortable,width:e.width||void 0},scopedSlots:t._u([{key:"default",fn:function(o){return[r("span",[t._v(t._s(t.$decimal(o.row[e.prop])))])]}}],null,!0)})]})),r("el-table-column",{attrs:{prop:"",label:"操作",width:"280",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(r){return t.orgEdit(e.row.id)}}},[t._v("编辑")]),r("el-button",{attrs:{size:"mini",type:"info"},on:{click:function(r){return t.orgAdd(e.row.id)}}},[t._v("添加子机构")]),r("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(r){return t.orgDel(e.row.id)}}},[t._v("删除")])]}}])})],2)],1),r("org-dialog",{attrs:{visible:t.orgDgVisible,orgId:t.orgId,parentId:t.parentId,orgOptions:t.tableOptions},on:{"update:visible":function(e){t.orgDgVisible=e},submitted:t.orgSubmitted}})],1)},i=[],n=(r("8e6e"),r("ac6a"),r("456d"),r("bd86")),a=r("2f62"),s=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("el-dialog",{staticClass:"org_dialog manage_dialog",attrs:{title:"机构配置",width:"600px",visible:t.dgVisible,"modal-append-to-body":!1},on:{"update:visible":function(e){t.dgVisible=e}}},[r("el-form",{ref:"form",staticClass:"manage_form",attrs:{model:t.form,"label-width":"120px"}},[r("my-input",{attrs:{placeholder:"请输入机构名称",titleName:"机构名称",required:!0,prop:"orgName",width:t.inputWidth,withForm:""},model:{value:t.form.orgName,callback:function(e){t.$set(t.form,"orgName",e)},expression:"form.orgName"}}),r("my-input",{attrs:{placeholder:"请输入机构编码",titleName:"机构编码",required:!0,prop:"orgCode",width:t.inputWidth,withForm:""},model:{value:t.form.orgCode,callback:function(e){t.$set(t.form,"orgCode",e)},expression:"form.orgCode"}}),r("my-input",{attrs:{placeholder:"请输入机构简称",titleName:"机构简称",required:!0,prop:"orgShortName",width:t.inputWidth,withForm:""},model:{value:t.form.orgShortName,callback:function(e){t.$set(t.form,"orgShortName",e)},expression:"form.orgShortName"}}),r("my-input",{attrs:{placeholder:"请输入机构类型",titleName:"机构类型",required:!0,prop:"orgType",width:t.inputWidth,withForm:""},model:{value:t.form.orgType,callback:function(e){t.$set(t.form,"orgType",e)},expression:"form.orgType"}}),r("my-input",{attrs:{placeholder:"请输入机构组织",titleName:"机构组织",required:!1,prop:"orgGroup",width:t.inputWidth,withForm:""},model:{value:t.form.orgGroup,callback:function(e){t.$set(t.form,"orgGroup",e)},expression:"form.orgGroup"}}),r("my-input",{attrs:{placeholder:"请输入机构编号",titleName:"机构编号",required:!1,prop:"orgNo",width:t.inputWidth,withForm:""},model:{value:t.form.orgNo,callback:function(e){t.$set(t.form,"orgNo",e)},expression:"form.orgNo"}}),r("my-input",{attrs:{placeholder:"请输入机构地址",titleName:"机构地址",required:!1,prop:"orgAddress",width:t.inputWidth,withForm:""},model:{value:t.form.orgAddress,callback:function(e){t.$set(t.form,"orgAddress",e)},expression:"form.orgAddress"}}),r("my-select",{attrs:{options:t.orgOptions,placeholder:"请选择所属机构",titleName:"所属机构",required:!0,prop:"parentId",width:t.inputWidth,withForm:""},model:{value:t.form.parentId,callback:function(e){t.$set(t.form,"parentId",e)},expression:"form.parentId"}})],1),r("div",{staticClass:"manage_handle"},[r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submit()}}},[t._v("提交")]),r("el-button",{on:{click:function(e){return t.cancel()}}},[t._v("取消")])],1)],1)},l=[],d=(r("c5f6"),{id:0,orgAddress:"",orgCode:"",orgGroup:"",orgName:"",orgNo:"",orgShortName:"",orgType:"",parentId:0}),c={name:"orgDialog",props:{visible:Boolean,orgId:Number,parentId:Number,orgOptions:Array},data:function(){return{dgVisible:this.visible,form:{},inputWidth:"300px"}},methods:{getInfo:function(){var t=this;this.$setLoading(!0),this.$dataPost("/org/info",{orgId:this.orgId},(function(e){for(var r in t.$setLoading(!1),d)t.$set(t.form,r,e[r]);t.$nextTick((function(){t.$refs.form.clearValidate()}))}))},setDefaultForm:function(){var t=this;this.form=this.$deepCopy(d),this.form.parentId=this.parentId,this.$nextTick((function(){t.$refs.form.clearValidate()}))},submit:function(){var t=this;this.$refs.form.validate((function(e){if(!e){var r=setTimeout((function(){t.$refs.form.clearValidate(),clearTimeout(r)}),2e3);return!1}if(t.form.id){var o=t.form;o.orgId=o.id,t.$dataPostXD("/org/update",o,(function(e){t.$emit("submitted",e),t.dgVisible=!1}))}else{var i=t.form;t.$dataPostXD("/org/add",i,(function(e){t.$emit("submitted",e),t.dgVisible=!1}))}}))},cancel:function(){this.dgVisible=!1}},watch:{visible:{immediate:!0,handler:function(t,e){this.dgVisible=t,1==t&&(this.orgId?this.getInfo():this.setDefaultForm())}},dgVisible:{handler:function(t,e){this.$emit("update:visible",t)}}}},u=c,p=r("2877"),f=Object(p["a"])(u,s,l,!1,null,null,null),m=f.exports;function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(Object(r),!0).forEach((function(e){Object(n["a"])(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var b={name:"manageOrg",data:function(){return{tableList:[],tableListCopy:[],tableOptions:[],searchContent:"",tableColumns:[{prop:"orgName",label:"机构名称",sortable:!0,width:""},{prop:"orgType",label:"机构类别",sortable:!0,width:""},{prop:"orgShortName",label:"机构简称",sortable:!0,width:""}],orgProps:{label:"orgName",children:"dicOrgList"},orgId:0,parentId:0,orgDgVisible:!1}},computed:{},mounted:function(){this.getList(),this.getListAll()},methods:h(h({},Object(a["b"])({})),{},{getList:function(){var t=this;this.$setLoading(!0),this.$dataPost("/org/parentall",{orgName:this.searchContent},(function(e){t.$setLoading(!1),e=e||[],t.tableListCopy=e,t.tableList=e}))},getListAll:function(){var t=this;this.$dataPost("/org/all",(function(e){e=e||[];var r=e.map((function(t){return{title:t.orgName,value:t.id}}));r.unshift({title:"无",value:0}),t.tableOptions=r}))},search:function(){var t=this.searchContent;this.tableList=this.tableListCopy.filter((function(e){return e.orgName.indexOf(t)>-1}))},orgAdd:function(t){this.parentId=t||0,this.orgId=0,this.orgDgVisible=!0},orgEdit:function(t){this.orgId=t,this.orgDgVisible=!0},orgDel:function(t){var e=this;this.orgId=t,this.$confirm("确认删除?","提示",{distinguishCancelAndClose:!0,confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.$dataPostXD("/org/delete",{orgId:t},(function(t){e.getList(),e.getListAll()}))})).catch((function(t){}))},orgSubmitted:function(){this.getList()}}),components:{orgDialog:m}},v=b,y=(r("3c2e"),Object(p["a"])(v,o,i,!1,null,"c768693c",null));e["default"]=y.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0a5503"],{"09bf":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"error_page error_404"},[r("div",{staticClass:"error_box center"},[r("ul",{staticClass:"error_logo"},[r("li",[r("img",{attrs:{src:t.imgDomain+"/num_4.png"}})]),r("li",{staticClass:"error_logo_middle"},[r("img",{attrs:{src:t.imgDomain+"/medical.png"}})]),r("li",[r("img",{attrs:{src:t.imgDomain+"/num_4.png"}})])]),r("p",{staticClass:"bottom_line"}),r("h3",{staticClass:"not_found"},[t._v("没有找到您要访问的页面\n "),r("p",{directives:[{name:"show",rawName:"v-show",value:t.jumpShow,expression:"jumpShow"}],staticStyle:{display:"inline-block"}},[t._v(",\n "),r("span",{staticClass:"second",attrs:{id:"second"}},[t._v(t._s(t.countDown))]),t._v("秒后\n "),r("router-link",{attrs:{to:"/"}},[t._v("返回首页")])],1)])])])},o=[],i=(r("5ab2"),r("6d57"),r("e10e"),r("f548"),r("f010")),s=r("08c1");function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){Object(i["a"])(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var l={name:"page404",data:function(){return{mainUrl:"/hospital",countDown:5,timer:"",jumpShow:!0}},computed:c({},Object(s["c"])({imgDomain:function(t){return t.imgDomain}})),mounted:function(){var t=this;this.setLoading(!1);var e=this.$route.path;if(e.indexOf("/404")>-1)return this.jumpShow=!1,!1;this.timer=setInterval((function(){t.countDown>1?t.countDown--:(clearInterval(t.timer),t.$router.replace(t.mainUrl))}),1e3)},destroyed:function(){clearInterval(this.timer)},methods:c({},Object(s["b"])({setLoading:"setLoading"}))},u=l,p=r("5511"),m=Object(p["a"])(u,n,o,!1,null,null,null);e["default"]=m.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0a5503"],{"09bf":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"error_page error_404"},[r("div",{staticClass:"error_box center"},[r("ul",{staticClass:"error_logo"},[r("li",[r("img",{attrs:{src:t.imgDomain+"/num_4.png"}})]),r("li",{staticClass:"error_logo_middle"},[r("img",{attrs:{src:t.imgDomain+"/medical.png"}})]),r("li",[r("img",{attrs:{src:t.imgDomain+"/num_4.png"}})])]),r("p",{staticClass:"bottom_line"}),r("h3",{staticClass:"not_found"},[t._v("没有找到您要访问的页面\n "),r("p",{directives:[{name:"show",rawName:"v-show",value:t.jumpShow,expression:"jumpShow"}],staticStyle:{display:"inline-block"}},[t._v(",\n "),r("span",{staticClass:"second",attrs:{id:"second"}},[t._v(t._s(t.countDown))]),t._v("秒后\n "),r("router-link",{attrs:{to:"/"}},[t._v("返回首页")])],1)])])])},o=[],i=(r("8e6e"),r("ac6a"),r("456d"),r("a481"),r("bd86")),a=r("2f62");function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){Object(i["a"])(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var l={name:"page404",data:function(){return{mainUrl:"/hospital",countDown:5,timer:"",jumpShow:!0}},computed:c({},Object(a["c"])({imgDomain:function(t){return t.imgDomain}})),mounted:function(){var t=this;this.setLoading(!1);var e=this.$route.path;if(e.indexOf("/404")>-1)return this.jumpShow=!1,!1;this.timer=setInterval((function(){t.countDown>1?t.countDown--:(clearInterval(t.timer),t.$router.replace(t.mainUrl))}),1e3)},destroyed:function(){clearInterval(this.timer)},methods:c({},Object(a["b"])({setLoading:"setLoading"}))},u=l,p=r("2877"),m=Object(p["a"])(u,n,o,!1,null,null,null);e["default"]=m.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0a5503"],{"09bf":function(t,n,e){"use strict";e.r(n);var i=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"error_page error_404"},[e("div",{staticClass:"error_box center"},[e("ul",{staticClass:"error_logo"},[e("li",[e("img",{attrs:{src:t.imgDomain+"/num_4.png"}})]),e("li",{staticClass:"error_logo_middle"},[e("img",{attrs:{src:t.imgDomain+"/medical.png"}})]),e("li",[e("img",{attrs:{src:t.imgDomain+"/num_4.png"}})])]),e("p",{staticClass:"bottom_line"}),e("h3",{staticClass:"not_found"},[t._v("没有找到您要访问的页面\n "),e("p",{directives:[{name:"show",rawName:"v-show",value:t.jumpShow,expression:"jumpShow"}],staticStyle:{display:"inline-block"}},[t._v(",\n "),e("span",{staticClass:"second",attrs:{id:"second"}},[t._v(t._s(t.countDown))]),t._v("秒后\n "),e("router-link",{attrs:{to:"/"}},[t._v("返回首页")])],1)])])])},a=[],o=(e("a481"),e("cebc")),r=e("2f62"),s={name:"page404",data:function(){return{mainUrl:"/hospital",countDown:5,timer:"",jumpShow:!0}},computed:Object(o["a"])({},Object(r["c"])({imgDomain:function(t){return t.imgDomain}})),mounted:function(){var t=this;this.setLoading(!1);var n=this.$route.path;if(n.indexOf("/404")>-1)return this.jumpShow=!1,!1;this.timer=setInterval(function(){t.countDown>1?t.countDown--:(clearInterval(t.timer),t.$router.replace(t.mainUrl))},1e3)},destroyed:function(){clearInterval(this.timer)},methods:Object(o["a"])({},Object(r["b"])({setLoading:"setLoading"}))},c=s,l=e("2877"),u=Object(l["a"])(c,i,a,!1,null,null,null);n["default"]=u.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d21ad95"],{bcec:function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"manage_page manage_role_page"},[i("div",{staticClass:"search_bar clearfix"},[i("div",{staticClass:"left"},[i("el-input",{staticStyle:{width:"300px"},attrs:{clearable:"",placeholder:"可输入用户名搜索"},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search()}},model:{value:e.searchContent,callback:function(t){e.searchContent=t},expression:"searchContent"}}),i("el-button",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]}),i("el-button",{attrs:{type:"info"},on:{click:function(t){return e.search()}}},[i("i",{staticClass:"el-icon-search"}),e._v("搜索\n ")])],1),i("div",{staticClass:"right"},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.roleAdd()}}},[e._v("添加角色")])],1)]),i("div",{staticClass:"table_box"},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableList,border:"",height:"100%","row-key":function(e){return e.id},"row-class-name":e.$tableRowClassName}},[i("el-table-column",{attrs:{prop:"title",label:"序号",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.$index+1))])]}}])}),e._l(e.tableColumns,function(t,o){return[i("el-table-column",{key:o,attrs:{prop:t.prop,label:t.label,sortable:t.sortable,width:t.width||void 0},scopedSlots:e._u([{key:"default",fn:function(o){return[i("span",[e._v(e._s(e.$decimal(o.row[t.prop])))])]}}],null,!0)})]}),i("el-table-column",{attrs:{prop:"",label:"操作",width:"280",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(i){return e.roleEdit(t.row.id)}}},[e._v("编辑角色")]),i("el-button",{attrs:{size:"mini",type:"info"},on:{click:function(i){return e.roleMenuEdit(t.row.id,t.row.roleName)}}},[e._v("分配角色菜单")]),i("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(i){return e.roleDel(t.row.id)}}},[e._v("删除")])]}}])})],2)],1),i("role-dialog",{attrs:{visible:e.roleDgVisible,roleId:e.roleId},on:{"update:visible":function(t){e.roleDgVisible=t},submitted:e.roleSubmitted}}),i("role-menu-dialog",{attrs:{visible:e.roleMenuDgVisible,roleId:e.roleId,roleName:e.roleName},on:{"update:visible":function(t){e.roleMenuDgVisible=t}}})],1)},n=[],l=i("cebc"),a=i("2f62"),r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{staticClass:"role_dialog manage_dialog",attrs:{title:"角色配置",width:"600px",visible:e.dgVisible,"modal-append-to-body":!1},on:{"update:visible":function(t){e.dgVisible=t}}},[i("el-form",{ref:"form",staticClass:"manage_form",attrs:{model:e.form,"label-width":"120px"}},[i("my-input",{attrs:{placeholder:"请输入角色名称",titleName:"角色名称",required:!0,prop:"roleName",withForm:""},model:{value:e.form.roleName,callback:function(t){e.$set(e.form,"roleName",t)},expression:"form.roleName"}}),i("my-input",{attrs:{placeholder:"请输入角色编码",titleName:"角色编码",required:!0,prop:"roleCode",withForm:""},model:{value:e.form.roleCode,callback:function(t){e.$set(e.form,"roleCode",t)},expression:"form.roleCode"}})],1),i("div",{staticClass:"manage_handle"},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submit()}}},[e._v("提交")]),i("el-button",{on:{click:function(t){return e.cancel()}}},[e._v("取消")])],1)],1)},s=[],d=(i("c5f6"),{id:0,roleCode:"",roleName:""}),c={name:"roleDialog",props:{visible:Boolean,roleId:Number},data:function(){return{dgVisible:this.visible,form:{}}},methods:{getInfo:function(){var e=this;this.$setLoading(!0),this.$dataPost("/role/info",{roleId:this.roleId},function(t){for(var i in e.$setLoading(!1),d)e.$set(e.form,i,t[i]);e.$nextTick(function(){e.$refs.form.clearValidate()})})},setDefaultForm:function(){var e=this;this.form=this.$deepCopy(d),this.$nextTick(function(){e.$refs.form.clearValidate()})},submit:function(){var e=this;this.$refs.form.validate(function(t){if(!t){var i=setTimeout(function(){e.$refs.form.clearValidate(),clearTimeout(i)},2e3);return!1}if(e.form.id){var o=e.form;o.roleId=o.id,e.$dataPostXD("/role/update",o,function(t){e.$emit("submitted",t),e.dgVisible=!1})}else{var n=e.form;e.$dataPostXD("/role/add",n,function(t){e.$emit("submitted",t),e.dgVisible=!1})}})},cancel:function(){this.dgVisible=!1}},watch:{visible:{immediate:!0,handler:function(e,t){this.dgVisible=e,1==e&&(this.roleId?this.getInfo():this.setDefaultForm())}},dgVisible:{handler:function(e,t){this.$emit("update:visible",e)}}}},u=c,m=i("2877"),f=Object(m["a"])(u,r,s,!1,null,null,null),h=f.exports,b=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{staticClass:"role_dialog manage_dialog",attrs:{title:e.title,width:"600px",visible:e.dgVisible,"modal-append-to-body":!1},on:{"update:visible":function(t){e.dgVisible=t}}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"form",staticClass:"manage_form",attrs:{"label-width":"120px"}},[i("my-input",{attrs:{placeholder:"请输入角色名",titleName:"角色名",required:!1,prop:"roleName",withForm:"",disabled:""},model:{value:e.roleName,callback:function(t){e.roleName=t},expression:"roleName"}}),i("form-item",{attrs:{titleName:e.title,rules:[{required:!0,message:e.title+"必填",trigger:["change"]}]}},[i("el-tree",{ref:"tree",staticClass:"form_tree",attrs:{data:e.menuList,"node-key":"id",props:e.menuProps,"show-checkbox":"","default-expand-all":"","expand-on-click-node":!1,"default-checked-keys":e.checkedMenuList}})],1)],1),i("div",{staticClass:"manage_handle"},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submit()}}},[e._v("提交")]),i("el-button",{on:{click:function(t){return e.cancel()}}},[e._v("取消")])],1)],1)},p=[],g=(i("ac6a"),i("980e")),v={name:"roleMenuDialog",props:{visible:Boolean,roleId:Number,roleName:String},data:function(){return{title:"角色菜单",loading:!1,dgVisible:this.visible,checkedMenuList:[],menuList:[],menuProps:{label:"menuName",children:"sysMenuList"}}},methods:{getInfo:function(){var e=this;this.loading=!0,this.$dataPost("/menu/rolemenu",{roleId:this.roleId},function(t){e.loading=!1,t=t||[];var i=t||[];i.forEach(function(t){0==i.filter(function(e){return e.parentId===t.menuId}).length&&e.checkedMenuList.push(t.menuId)}),e.getMenuList(),e.$nextTick(function(){e.$refs.form.clearValidate()})})},getMenuList:function(){var e=this;this.loading=!0,this.$dataPost("/menu/parentall",{menuName:""},function(t){e.loading=!1,e.menuList=t||[]})},submit:function(){var e=this;this.$nextTick(function(){var t=e.$refs.tree.getCheckedNodes(),i=e.$refs.tree.getHalfCheckedNodes(),o=t.concat(i);if(0==t.length)return e.$message({message:e.title+"必填",type:"error",duration:1500}),!1;var n={menus:o.map(function(e){return e.id}),roleId:e.roleId};e.$dataPostXD("/menu/saverolemenu",n,function(t){e.$emit("submitted",t),e.dgVisible=!1})})},cancel:function(){this.dgVisible=!1}},components:{formItem:g["a"]},watch:{visible:{immediate:!0,handler:function(e,t){this.dgVisible=e,1==e&&(this.checkedMenuList=[],this.menuList=[],this.getInfo())}},dgVisible:{handler:function(e,t){this.$emit("update:visible",e)}}}},$=v,k=Object(m["a"])($,b,p,!1,null,null,null),w=k.exports,_={name:"manageRole",data:function(){return{routePath:"/result/detail",tableList:[],tableListCopy:[],searchContent:"",tableColumns:[{prop:"roleName",label:"角色名称",sortable:!0,width:""},{prop:"roleCode",label:"角色编码",sortable:!0,width:""}],roleId:0,roleName:"",roleDgVisible:!1,roleMenuDgVisible:!1}},computed:{allotid:function(){return this.$store.state.allotid||this.$getSession("allotid")}},mounted:function(){this.getList()},methods:Object(l["a"])({},Object(a["b"])({}),{getList:function(){var e=this;this.$setLoading(!0),this.$dataPost("/role/all",{roleName:this.searchContent},function(t){e.$setLoading(!1),t=t||[],e.tableListCopy=t,e.tableList=t})},search:function(){var e=this.searchContent;this.tableList=this.tableListCopy.filter(function(t){return t.roleName.indexOf(e)>-1})},roleAdd:function(){this.roleId=0,this.roleDgVisible=!0},roleEdit:function(e){console.log(e),this.roleId=e,this.roleDgVisible=!0},roleDel:function(e){var t=this;this.roleId=e,this.$confirm("确认删除?","提示",{distinguishCancelAndClose:!0,confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$dataPostXD("/role/delete",{roleId:e},function(e){t.getList()})}).catch(function(e){})},roleMenuEdit:function(e,t){this.roleId=e,this.roleName=t,this.roleMenuDgVisible=!0},roleSubmitted:function(){this.getList()}}),components:{roleDialog:h,roleMenuDialog:w}},y=_,C=Object(m["a"])(y,o,n,!1,null,"a1cbc02a",null);t["default"]=C.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d21ad95"],{bcec:function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"manage_page manage_role_page"},[i("div",{staticClass:"search_bar clearfix"},[i("div",{staticClass:"left"},[i("el-input",{staticStyle:{width:"300px"},attrs:{clearable:"",placeholder:"可输入用户名搜索"},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search()}},model:{value:e.searchContent,callback:function(t){e.searchContent=t},expression:"searchContent"}}),i("el-button",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]}),i("el-button",{attrs:{type:"info"},on:{click:function(t){return e.search()}}},[i("i",{staticClass:"el-icon-search"}),e._v("搜索\n ")])],1),i("div",{staticClass:"right"},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.roleAdd()}}},[e._v("添加角色")])],1)]),i("div",{staticClass:"table_box"},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableList,border:"",height:"100%","row-key":function(e){return e.id},"row-class-name":e.$tableRowClassName}},[i("el-table-column",{attrs:{prop:"title",label:"序号",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.$index+1))])]}}])}),e._l(e.tableColumns,(function(t,o){return[i("el-table-column",{key:o,attrs:{prop:t.prop,label:t.label,sortable:t.sortable,width:t.width||void 0},scopedSlots:e._u([{key:"default",fn:function(o){return[i("span",[e._v(e._s(e.$decimal(o.row[t.prop])))])]}}],null,!0)})]})),i("el-table-column",{attrs:{prop:"",label:"操作",width:"280",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(i){return e.roleEdit(t.row.id)}}},[e._v("编辑角色")]),i("el-button",{attrs:{size:"mini",type:"info"},on:{click:function(i){return e.roleMenuEdit(t.row.id,t.row.roleName)}}},[e._v("分配角色菜单")]),i("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(i){return e.roleDel(t.row.id)}}},[e._v("删除")])]}}])})],2)],1),i("role-dialog",{attrs:{visible:e.roleDgVisible,roleId:e.roleId},on:{"update:visible":function(t){e.roleDgVisible=t},submitted:e.roleSubmitted}}),i("role-menu-dialog",{attrs:{visible:e.roleMenuDgVisible,roleId:e.roleId,roleName:e.roleName},on:{"update:visible":function(t){e.roleMenuDgVisible=t}}})],1)},n=[],r=(i("8e6e"),i("ac6a"),i("456d"),i("bd86")),l=i("2f62"),a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{staticClass:"role_dialog manage_dialog",attrs:{title:"角色配置",width:"600px",visible:e.dgVisible,"modal-append-to-body":!1},on:{"update:visible":function(t){e.dgVisible=t}}},[i("el-form",{ref:"form",staticClass:"manage_form",attrs:{model:e.form,"label-width":"120px"}},[i("my-input",{attrs:{placeholder:"请输入角色名称",titleName:"角色名称",required:!0,prop:"roleName",withForm:""},model:{value:e.form.roleName,callback:function(t){e.$set(e.form,"roleName",t)},expression:"form.roleName"}}),i("my-input",{attrs:{placeholder:"请输入角色编码",titleName:"角色编码",required:!0,prop:"roleCode",withForm:""},model:{value:e.form.roleCode,callback:function(t){e.$set(e.form,"roleCode",t)},expression:"form.roleCode"}})],1),i("div",{staticClass:"manage_handle"},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submit()}}},[e._v("提交")]),i("el-button",{on:{click:function(t){return e.cancel()}}},[e._v("取消")])],1)],1)},s=[],c=(i("c5f6"),{id:0,roleCode:"",roleName:""}),u={name:"roleDialog",props:{visible:Boolean,roleId:Number},data:function(){return{dgVisible:this.visible,form:{}}},methods:{getInfo:function(){var e=this;this.$setLoading(!0),this.$dataPost("/role/info",{roleId:this.roleId},(function(t){for(var i in e.$setLoading(!1),c)e.$set(e.form,i,t[i]);e.$nextTick((function(){e.$refs.form.clearValidate()}))}))},setDefaultForm:function(){var e=this;this.form=this.$deepCopy(c),this.$nextTick((function(){e.$refs.form.clearValidate()}))},submit:function(){var e=this;this.$refs.form.validate((function(t){if(!t){var i=setTimeout((function(){e.$refs.form.clearValidate(),clearTimeout(i)}),2e3);return!1}if(e.form.id){var o=e.form;o.roleId=o.id,e.$dataPostXD("/role/update",o,(function(t){e.$emit("submitted",t),e.dgVisible=!1}))}else{var n=e.form;e.$dataPostXD("/role/add",n,(function(t){e.$emit("submitted",t),e.dgVisible=!1}))}}))},cancel:function(){this.dgVisible=!1}},watch:{visible:{immediate:!0,handler:function(e,t){this.dgVisible=e,1==e&&(this.roleId?this.getInfo():this.setDefaultForm())}},dgVisible:{handler:function(e,t){this.$emit("update:visible",e)}}}},d=u,f=i("2877"),m=Object(f["a"])(d,a,s,!1,null,null,null),h=m.exports,b=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{staticClass:"role_dialog manage_dialog",attrs:{title:e.title,width:"600px",visible:e.dgVisible,"modal-append-to-body":!1},on:{"update:visible":function(t){e.dgVisible=t}}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"form",staticClass:"manage_form",attrs:{"label-width":"120px"}},[i("my-input",{attrs:{placeholder:"请输入角色名",titleName:"角色名",required:!1,prop:"roleName",withForm:"",disabled:""},model:{value:e.roleName,callback:function(t){e.roleName=t},expression:"roleName"}}),i("form-item",{attrs:{titleName:e.title,rules:[{required:!0,message:e.title+"必填",trigger:["change"]}]}},[i("el-tree",{ref:"tree",staticClass:"form_tree",attrs:{data:e.menuList,"node-key":"id",props:e.menuProps,"show-checkbox":"","default-expand-all":"","expand-on-click-node":!1,"default-checked-keys":e.checkedMenuList}})],1)],1),i("div",{staticClass:"manage_handle"},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submit()}}},[e._v("提交")]),i("el-button",{on:{click:function(t){return e.cancel()}}},[e._v("取消")])],1)],1)},p=[],g=i("980e"),v={name:"roleMenuDialog",props:{visible:Boolean,roleId:Number,roleName:String},data:function(){return{title:"角色菜单",loading:!1,dgVisible:this.visible,checkedMenuList:[],menuList:[],menuProps:{label:"menuName",children:"sysMenuList"}}},methods:{getInfo:function(){var e=this;this.loading=!0,this.$dataPost("/menu/rolemenu",{roleId:this.roleId},(function(t){e.loading=!1,t=t||[];var i=t||[];i.forEach((function(t){0==i.filter((function(e){return e.parentId===t.menuId})).length&&e.checkedMenuList.push(t.menuId)})),e.getMenuList(),e.$nextTick((function(){e.$refs.form.clearValidate()}))}))},getMenuList:function(){var e=this;this.loading=!0,this.$dataPost("/menu/parentall",{menuName:""},(function(t){e.loading=!1,e.menuList=t||[]}))},submit:function(){var e=this;this.$nextTick((function(){var t=e.$refs.tree.getCheckedNodes(),i=e.$refs.tree.getHalfCheckedNodes(),o=t.concat(i);if(0==t.length)return e.$message({message:e.title+"必填",type:"error",duration:1500}),!1;var n={menus:o.map((function(e){return e.id})),roleId:e.roleId};e.$dataPostXD("/menu/saverolemenu",n,(function(t){e.$emit("submitted",t),e.dgVisible=!1}))}))},cancel:function(){this.dgVisible=!1}},components:{formItem:g["a"]},watch:{visible:{immediate:!0,handler:function(e,t){this.dgVisible=e,1==e&&(this.checkedMenuList=[],this.menuList=[],this.getInfo())}},dgVisible:{handler:function(e,t){this.$emit("update:visible",e)}}}},y=v,w=Object(f["a"])(y,b,p,!1,null,null,null),k=w.exports;function $(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,o)}return i}function _(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?$(Object(i),!0).forEach((function(t){Object(r["a"])(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):$(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var C={name:"manageRole",data:function(){return{routePath:"/result/detail",tableList:[],tableListCopy:[],searchContent:"",tableColumns:[{prop:"roleName",label:"角色名称",sortable:!0,width:""},{prop:"roleCode",label:"角色编码",sortable:!0,width:""}],roleId:0,roleName:"",roleDgVisible:!1,roleMenuDgVisible:!1}},computed:{allotid:function(){return this.$store.state.allotid||this.$getSession("allotid")}},mounted:function(){this.getList()},methods:_(_({},Object(l["b"])({})),{},{getList:function(){var e=this;this.$setLoading(!0),this.$dataPost("/role/all",{roleName:this.searchContent},(function(t){e.$setLoading(!1),t=t||[],e.tableListCopy=t,e.tableList=t}))},search:function(){var e=this.searchContent;this.tableList=this.tableListCopy.filter((function(t){return t.roleName.indexOf(e)>-1}))},roleAdd:function(){this.roleId=0,this.roleDgVisible=!0},roleEdit:function(e){console.log(e),this.roleId=e,this.roleDgVisible=!0},roleDel:function(e){var t=this;this.roleId=e,this.$confirm("确认删除?","提示",{distinguishCancelAndClose:!0,confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.$dataPostXD("/role/delete",{roleId:e},(function(e){t.getList()}))})).catch((function(e){}))},roleMenuEdit:function(e,t){this.roleId=e,this.roleName=t,this.roleMenuDgVisible=!0},roleSubmitted:function(){this.getList()}}),components:{roleDialog:h,roleMenuDialog:k}},N=C,x=Object(f["a"])(N,o,n,!1,null,"a1cbc02a",null);t["default"]=x.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d21ad95"],{bcec:function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"manage_page manage_role_page"},[i("div",{staticClass:"search_bar clearfix"},[i("div",{staticClass:"left"},[i("el-input",{staticStyle:{width:"300px"},attrs:{clearable:"",placeholder:"可输入用户名搜索"},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search()}},model:{value:e.searchContent,callback:function(t){e.searchContent=t},expression:"searchContent"}}),i("el-button",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]}),i("el-button",{attrs:{type:"info"},on:{click:function(t){return e.search()}}},[i("i",{staticClass:"el-icon-search"}),e._v("搜索\n ")])],1),i("div",{staticClass:"right"},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.roleAdd()}}},[e._v("添加角色")])],1)]),i("div",{staticClass:"table_box"},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableList,border:"",height:"100%","row-key":function(e){return e.id},"row-class-name":e.$tableRowClassName}},[i("el-table-column",{attrs:{prop:"title",label:"序号",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.$index+1))])]}}])}),e._l(e.tableColumns,(function(t,o){return[i("el-table-column",{key:o,attrs:{prop:t.prop,label:t.label,sortable:t.sortable,width:t.width||void 0},scopedSlots:e._u([{key:"default",fn:function(o){return[i("span",[e._v(e._s(e.$decimal(o.row[t.prop])))])]}}],null,!0)})]})),i("el-table-column",{attrs:{prop:"",label:"操作",width:"280",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(i){return e.roleEdit(t.row.id)}}},[e._v("编辑角色")]),i("el-button",{attrs:{size:"mini",type:"info"},on:{click:function(i){return e.roleMenuEdit(t.row.id,t.row.roleName)}}},[e._v("分配角色菜单")]),i("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(i){return e.roleDel(t.row.id)}}},[e._v("删除")])]}}])})],2)],1),i("role-dialog",{attrs:{visible:e.roleDgVisible,roleId:e.roleId},on:{"update:visible":function(t){e.roleDgVisible=t},submitted:e.roleSubmitted}}),i("role-menu-dialog",{attrs:{visible:e.roleMenuDgVisible,roleId:e.roleId,roleName:e.roleName},on:{"update:visible":function(t){e.roleMenuDgVisible=t}}})],1)},n=[],r=(i("5ab2"),i("6d57"),i("e10e"),i("f010")),l=i("08c1"),a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{staticClass:"role_dialog manage_dialog",attrs:{title:"角色配置",width:"600px",visible:e.dgVisible,"modal-append-to-body":!1},on:{"update:visible":function(t){e.dgVisible=t}}},[i("el-form",{ref:"form",staticClass:"manage_form",attrs:{model:e.form,"label-width":"120px"}},[i("my-input",{attrs:{placeholder:"请输入角色名称",titleName:"角色名称",required:!0,prop:"roleName",withForm:""},model:{value:e.form.roleName,callback:function(t){e.$set(e.form,"roleName",t)},expression:"form.roleName"}}),i("my-input",{attrs:{placeholder:"请输入角色编码",titleName:"角色编码",required:!0,prop:"roleCode",withForm:""},model:{value:e.form.roleCode,callback:function(t){e.$set(e.form,"roleCode",t)},expression:"form.roleCode"}})],1),i("div",{staticClass:"manage_handle"},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submit()}}},[e._v("提交")]),i("el-button",{on:{click:function(t){return e.cancel()}}},[e._v("取消")])],1)],1)},s=[],c=(i("163d"),{id:0,roleCode:"",roleName:""}),u={name:"roleDialog",props:{visible:Boolean,roleId:Number},data:function(){return{dgVisible:this.visible,form:{}}},methods:{getInfo:function(){var e=this;this.$setLoading(!0),this.$dataPost("/role/info",{roleId:this.roleId},(function(t){for(var i in e.$setLoading(!1),c)e.$set(e.form,i,t[i]);e.$nextTick((function(){e.$refs.form.clearValidate()}))}))},setDefaultForm:function(){var e=this;this.form=this.$deepCopy(c),this.$nextTick((function(){e.$refs.form.clearValidate()}))},submit:function(){var e=this;this.$refs.form.validate((function(t){if(!t){var i=setTimeout((function(){e.$refs.form.clearValidate(),clearTimeout(i)}),2e3);return!1}if(e.form.id){var o=e.form;o.roleId=o.id,e.$dataPostXD("/role/update",o,(function(t){e.$emit("submitted",t),e.dgVisible=!1}))}else{var n=e.form;e.$dataPostXD("/role/add",n,(function(t){e.$emit("submitted",t),e.dgVisible=!1}))}}))},cancel:function(){this.dgVisible=!1}},watch:{visible:{immediate:!0,handler:function(e,t){this.dgVisible=e,1==e&&(this.roleId?this.getInfo():this.setDefaultForm())}},dgVisible:{handler:function(e,t){this.$emit("update:visible",e)}}}},d=u,f=i("5511"),m=Object(f["a"])(d,a,s,!1,null,null,null),h=m.exports,b=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{staticClass:"role_dialog manage_dialog",attrs:{title:e.title,width:"600px",visible:e.dgVisible,"modal-append-to-body":!1},on:{"update:visible":function(t){e.dgVisible=t}}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"form",staticClass:"manage_form",attrs:{"label-width":"120px"}},[i("my-input",{attrs:{placeholder:"请输入角色名",titleName:"角色名",required:!1,prop:"roleName",withForm:"",disabled:""},model:{value:e.roleName,callback:function(t){e.roleName=t},expression:"roleName"}}),i("form-item",{attrs:{titleName:e.title,rules:[{required:!0,message:e.title+"必填",trigger:["change"]}]}},[i("el-tree",{ref:"tree",staticClass:"form_tree",attrs:{data:e.menuList,"node-key":"id",props:e.menuProps,"show-checkbox":"","default-expand-all":"","expand-on-click-node":!1,"default-checked-keys":e.checkedMenuList}})],1)],1),i("div",{staticClass:"manage_handle"},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submit()}}},[e._v("提交")]),i("el-button",{on:{click:function(t){return e.cancel()}}},[e._v("取消")])],1)],1)},p=[],g=i("980e"),v={name:"roleMenuDialog",props:{visible:Boolean,roleId:Number,roleName:String},data:function(){return{title:"角色菜单",loading:!1,dgVisible:this.visible,checkedMenuList:[],menuList:[],menuProps:{label:"menuName",children:"sysMenuList"}}},methods:{getInfo:function(){var e=this;this.loading=!0,this.$dataPost("/menu/rolemenu",{roleId:this.roleId},(function(t){e.loading=!1,t=t||[];var i=t||[];i.forEach((function(t){0==i.filter((function(e){return e.parentId===t.menuId})).length&&e.checkedMenuList.push(t.menuId)})),e.getMenuList(),e.$nextTick((function(){e.$refs.form.clearValidate()}))}))},getMenuList:function(){var e=this;this.loading=!0,this.$dataPost("/menu/parentall",{menuName:""},(function(t){e.loading=!1,e.menuList=t||[]}))},submit:function(){var e=this;this.$nextTick((function(){var t=e.$refs.tree.getCheckedNodes(),i=e.$refs.tree.getHalfCheckedNodes(),o=t.concat(i);if(0==t.length)return e.$message({message:e.title+"必填",type:"error",duration:1500}),!1;var n={menus:o.map((function(e){return e.id})),roleId:e.roleId};e.$dataPostXD("/menu/saverolemenu",n,(function(t){e.$emit("submitted",t),e.dgVisible=!1}))}))},cancel:function(){this.dgVisible=!1}},components:{formItem:g["a"]},watch:{visible:{immediate:!0,handler:function(e,t){this.dgVisible=e,1==e&&(this.checkedMenuList=[],this.menuList=[],this.getInfo())}},dgVisible:{handler:function(e,t){this.$emit("update:visible",e)}}}},y=v,w=Object(f["a"])(y,b,p,!1,null,null,null),k=w.exports;function $(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,o)}return i}function _(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?$(Object(i),!0).forEach((function(t){Object(r["a"])(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):$(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var C={name:"manageRole",data:function(){return{routePath:"/result/detail",tableList:[],tableListCopy:[],searchContent:"",tableColumns:[{prop:"roleName",label:"角色名称",sortable:!0,width:""},{prop:"roleCode",label:"角色编码",sortable:!0,width:""}],roleId:0,roleName:"",roleDgVisible:!1,roleMenuDgVisible:!1}},computed:{allotid:function(){return this.$store.state.allotid||this.$getSession("allotid")}},mounted:function(){this.getList()},methods:_({},Object(l["b"])({}),{getList:function(){var e=this;this.$setLoading(!0),this.$dataPost("/role/all",{roleName:this.searchContent},(function(t){e.$setLoading(!1),t=t||[],e.tableListCopy=t,e.tableList=t}))},search:function(){var e=this.searchContent;this.tableList=this.tableListCopy.filter((function(t){return t.roleName.indexOf(e)>-1}))},roleAdd:function(){this.roleId=0,this.roleDgVisible=!0},roleEdit:function(e){console.log(e),this.roleId=e,this.roleDgVisible=!0},roleDel:function(e){var t=this;this.roleId=e,this.$confirm("确认删除?","提示",{distinguishCancelAndClose:!0,confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.$dataPostXD("/role/delete",{roleId:e},(function(e){t.getList()}))})).catch((function(e){}))},roleMenuEdit:function(e,t){this.roleId=e,this.roleName=t,this.roleMenuDgVisible=!0},roleSubmitted:function(){this.getList()}}),components:{roleDialog:h,roleMenuDialog:k}},N=C,x=Object(f["a"])(N,o,n,!1,null,"a1cbc02a",null);t["default"]=x.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-51ecf2aa"],{1812:function(t,e,r){"use strict";var o=r("8d94"),i=r.n(o);i.a},"8d94":function(t,e,r){},cf53:function(t,e,r){"use strict";r.r(e);var o=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"manage_page manage_org_page"},[r("div",{staticClass:"search_bar clearfix"},[r("div",{staticClass:"left"},[r("el-input",{staticStyle:{width:"300px"},attrs:{clearable:"",placeholder:"可输入机构名称搜索"},nativeOn:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.search()}},model:{value:t.searchContent,callback:function(e){t.searchContent=e},expression:"searchContent"}}),r("el-button",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]}),r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.search()}}},[t._v("搜索")])],1),r("div",{staticClass:"right"},[r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.orgAdd()}}},[t._v("添加机构")])],1)]),r("div",{staticClass:"table_box"},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableList,border:"",height:"100%","default-expand-all":"","row-key":function(t){return t.id},"row-class-name":t.$tableRowClassName,"tree-props":t.orgProps}},[r("el-table-column",{attrs:{prop:"title",label:"序号",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.$index+1))])]}}])}),t._l(t.tableColumns,(function(e,o){return[r("el-table-column",{key:o,attrs:{prop:e.prop,label:e.label,sortable:e.sortable,width:e.width||void 0},scopedSlots:t._u([{key:"default",fn:function(o){return[r("span",[t._v(t._s(t.$decimal(o.row[e.prop])))])]}}],null,!0)})]})),r("el-table-column",{attrs:{prop:"isNew",label:"是否新机构"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.isNew?"是":"否"))])]}}])}),r("el-table-column",{attrs:{prop:"",label:"操作",width:"280",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(r){return t.orgEdit(e.row.id)}}},[t._v("编辑")]),r("el-button",{attrs:{size:"mini",type:"info"},on:{click:function(r){return t.orgAdd(e.row.id)}}},[t._v("添加子机构")]),r("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(r){return t.orgDel(e.row.id)}}},[t._v("删除")])]}}])})],2)],1),r("org-dialog",{attrs:{visible:t.orgDgVisible,orgId:t.orgId,parentId:t.parentId,orgOptions:t.tableOptions},on:{"update:visible":function(e){t.orgDgVisible=e},submitted:t.orgSubmitted}})],1)},i=[],n=(r("8e6e"),r("ac6a"),r("456d"),r("bd86")),a=r("2f62"),s=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("el-dialog",{staticClass:"org_dialog manage_dialog",attrs:{title:"机构配置",width:"600px",visible:t.dgVisible,"modal-append-to-body":!1},on:{"update:visible":function(e){t.dgVisible=e}}},[r("el-form",{ref:"form",staticClass:"manage_form",attrs:{model:t.form,"label-width":"120px"}},[r("my-input",{attrs:{placeholder:"请输入机构名称",titleName:"机构名称",required:!0,prop:"orgName",width:t.inputWidth,withForm:""},model:{value:t.form.orgName,callback:function(e){t.$set(t.form,"orgName",e)},expression:"form.orgName"}}),r("my-input",{attrs:{placeholder:"请输入机构编码",titleName:"机构编码",required:!0,prop:"orgCode",width:t.inputWidth,withForm:""},model:{value:t.form.orgCode,callback:function(e){t.$set(t.form,"orgCode",e)},expression:"form.orgCode"}}),r("my-input",{attrs:{placeholder:"请输入机构简称",titleName:"机构简称",required:!0,prop:"orgShortName",width:t.inputWidth,withForm:""},model:{value:t.form.orgShortName,callback:function(e){t.$set(t.form,"orgShortName",e)},expression:"form.orgShortName"}}),r("my-input",{attrs:{placeholder:"请输入机构类型",titleName:"机构类型",required:!0,prop:"orgType",width:t.inputWidth,withForm:""},model:{value:t.form.orgType,callback:function(e){t.$set(t.form,"orgType",e)},expression:"form.orgType"}}),r("my-switch",{attrs:{titleName:"是否新机构",required:!0,prop:"isNew",width:t.inputWidth,withForm:""},model:{value:t.form.isNew,callback:function(e){t.$set(t.form,"isNew",e)},expression:"form.isNew"}}),r("my-input",{attrs:{placeholder:"请输入机构组织",titleName:"机构组织",required:!1,prop:"orgGroup",width:t.inputWidth,withForm:""},model:{value:t.form.orgGroup,callback:function(e){t.$set(t.form,"orgGroup",e)},expression:"form.orgGroup"}}),r("my-input",{attrs:{placeholder:"请输入机构编号",titleName:"机构编号",required:!1,prop:"orgNo",width:t.inputWidth,withForm:""},model:{value:t.form.orgNo,callback:function(e){t.$set(t.form,"orgNo",e)},expression:"form.orgNo"}}),r("my-input",{attrs:{placeholder:"请输入机构地址",titleName:"机构地址",required:!1,prop:"orgAddress",width:t.inputWidth,withForm:""},model:{value:t.form.orgAddress,callback:function(e){t.$set(t.form,"orgAddress",e)},expression:"form.orgAddress"}}),r("my-select",{attrs:{options:t.orgOptions,placeholder:"请选择所属机构",titleName:"所属机构",required:!0,prop:"parentId",width:t.inputWidth,withForm:""},model:{value:t.form.parentId,callback:function(e){t.$set(t.form,"parentId",e)},expression:"form.parentId"}})],1),r("div",{staticClass:"manage_handle"},[r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submit()}}},[t._v("提交")]),r("el-button",{on:{click:function(e){return t.cancel()}}},[t._v("取消")])],1)],1)},l=[],d=(r("c5f6"),{id:0,orgAddress:"",orgCode:"",orgGroup:"",orgName:"",orgNo:"",orgShortName:"",orgType:"",isNew:0,parentId:0}),c={name:"orgDialog",props:{visible:Boolean,orgId:Number,parentId:Number,orgOptions:Array},data:function(){return{dgVisible:this.visible,form:{},inputWidth:"300px"}},methods:{getInfo:function(){var t=this;this.$setLoading(!0),this.$dataPost("/org/info",{orgId:this.orgId},(function(e){for(var r in t.$setLoading(!1),d)t.$set(t.form,r,e[r]);t.$nextTick((function(){t.$refs.form.clearValidate()}))}))},setDefaultForm:function(){var t=this;this.form=this.$deepCopy(d),this.form.parentId=this.parentId,this.$nextTick((function(){t.$refs.form.clearValidate()}))},submit:function(){var t=this;this.$refs.form.validate((function(e){if(!e){var r=setTimeout((function(){t.$refs.form.clearValidate(),clearTimeout(r)}),2e3);return!1}if(t.form.id){var o=t.form;o.orgId=o.id,t.$dataPostXD("/org/update",o,(function(e){t.$emit("submitted",e),t.dgVisible=!1}))}else{var i=t.form;t.$dataPostXD("/org/add",i,(function(e){t.$emit("submitted",e),t.dgVisible=!1}))}}))},cancel:function(){this.dgVisible=!1}},watch:{visible:{immediate:!0,handler:function(t,e){this.dgVisible=t,1==t&&(this.orgId?this.getInfo():this.setDefaultForm())}},dgVisible:{handler:function(t,e){this.$emit("update:visible",t)}}}},u=c,p=r("2877"),f=Object(p["a"])(u,s,l,!1,null,null,null),m=f.exports;function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(Object(r),!0).forEach((function(e){Object(n["a"])(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var b={name:"manageOrg",data:function(){return{tableList:[],tableListCopy:[],tableOptions:[],searchContent:"",tableColumns:[{prop:"orgName",label:"机构名称",sortable:!0,width:""},{prop:"orgType",label:"机构类别",sortable:!0,width:""},{prop:"orgShortName",label:"机构简称",sortable:!0,width:""}],orgProps:{label:"orgName",children:"dicOrgList"},orgId:0,parentId:0,orgDgVisible:!1}},computed:{},mounted:function(){this.getList(),this.getListAll()},methods:h(h({},Object(a["b"])({})),{},{getList:function(){var t=this;this.$setLoading(!0),this.$dataPost("/org/parentall",{orgName:this.searchContent},(function(e){t.$setLoading(!1),e=e||[],t.tableListCopy=e,t.tableList=e}))},getListAll:function(){var t=this;this.$dataPost("/org/all",(function(e){e=e||[];var r=e.map((function(t){return{title:t.orgName,value:t.id}}));r.unshift({title:"无",value:0}),t.tableOptions=r}))},search:function(){var t=this.searchContent;this.tableList=this.tableListCopy.filter((function(e){return e.orgName.indexOf(t)>-1}))},orgAdd:function(t){this.parentId=t||0,this.orgId=0,this.orgDgVisible=!0},orgEdit:function(t){this.orgId=t,this.orgDgVisible=!0},orgDel:function(t){var e=this;this.orgId=t,this.$confirm("确认删除?","提示",{distinguishCancelAndClose:!0,confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.$dataPostXD("/org/delete",{orgId:t},(function(t){e.getList(),e.getListAll()}))})).catch((function(t){}))},orgSubmitted:function(){this.getList()}}),components:{orgDialog:m}},v=b,w=(r("1812"),Object(p["a"])(v,o,i,!1,null,"e14f701a",null));e["default"]=w.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-79bedd8b"],{"3c2e":function(t,e,r){"use strict";var o=r("6c1f"),i=r.n(o);i.a},"6c1f":function(t,e,r){},cf53:function(t,e,r){"use strict";r.r(e);var o=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"manage_page manage_org_page"},[r("div",{staticClass:"search_bar clearfix"},[r("div",{staticClass:"left"},[r("el-input",{staticStyle:{width:"300px"},attrs:{clearable:"",placeholder:"可输入机构名称搜索"},nativeOn:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.search()}},model:{value:t.searchContent,callback:function(e){t.searchContent=e},expression:"searchContent"}}),r("el-button",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]}),r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.search()}}},[t._v("搜索")])],1),r("div",{staticClass:"right"},[r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.orgAdd()}}},[t._v("添加机构")])],1)]),r("div",{staticClass:"table_box"},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableList,border:"",height:"100%","default-expand-all":"","row-key":function(t){return t.id},"row-class-name":t.$tableRowClassName,"tree-props":t.orgProps}},[r("el-table-column",{attrs:{prop:"title",label:"序号",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.$index+1))])]}}])}),t._l(t.tableColumns,(function(e,o){return[r("el-table-column",{key:o,attrs:{prop:e.prop,label:e.label,sortable:e.sortable,width:e.width||void 0},scopedSlots:t._u([{key:"default",fn:function(o){return[r("span",[t._v(t._s(t.$decimal(o.row[e.prop])))])]}}],null,!0)})]})),r("el-table-column",{attrs:{prop:"",label:"操作",width:"280",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(r){return t.orgEdit(e.row.id)}}},[t._v("编辑")]),r("el-button",{attrs:{size:"mini",type:"info"},on:{click:function(r){return t.orgAdd(e.row.id)}}},[t._v("添加子机构")]),r("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(r){return t.orgDel(e.row.id)}}},[t._v("删除")])]}}])})],2)],1),r("org-dialog",{attrs:{visible:t.orgDgVisible,orgId:t.orgId,parentId:t.parentId,orgOptions:t.tableOptions},on:{"update:visible":function(e){t.orgDgVisible=e},submitted:t.orgSubmitted}})],1)},i=[],n=(r("5ab2"),r("6d57"),r("e10e"),r("f010")),a=r("08c1"),s=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("el-dialog",{staticClass:"org_dialog manage_dialog",attrs:{title:"机构配置",width:"600px",visible:t.dgVisible,"modal-append-to-body":!1},on:{"update:visible":function(e){t.dgVisible=e}}},[r("el-form",{ref:"form",staticClass:"manage_form",attrs:{model:t.form,"label-width":"120px"}},[r("my-input",{attrs:{placeholder:"请输入机构名称",titleName:"机构名称",required:!0,prop:"orgName",width:t.inputWidth,withForm:""},model:{value:t.form.orgName,callback:function(e){t.$set(t.form,"orgName",e)},expression:"form.orgName"}}),r("my-input",{attrs:{placeholder:"请输入机构编码",titleName:"机构编码",required:!0,prop:"orgCode",width:t.inputWidth,withForm:""},model:{value:t.form.orgCode,callback:function(e){t.$set(t.form,"orgCode",e)},expression:"form.orgCode"}}),r("my-input",{attrs:{placeholder:"请输入机构简称",titleName:"机构简称",required:!0,prop:"orgShortName",width:t.inputWidth,withForm:""},model:{value:t.form.orgShortName,callback:function(e){t.$set(t.form,"orgShortName",e)},expression:"form.orgShortName"}}),r("my-input",{attrs:{placeholder:"请输入机构类型",titleName:"机构类型",required:!0,prop:"orgType",width:t.inputWidth,withForm:""},model:{value:t.form.orgType,callback:function(e){t.$set(t.form,"orgType",e)},expression:"form.orgType"}}),r("my-input",{attrs:{placeholder:"请输入机构组织",titleName:"机构组织",required:!1,prop:"orgGroup",width:t.inputWidth,withForm:""},model:{value:t.form.orgGroup,callback:function(e){t.$set(t.form,"orgGroup",e)},expression:"form.orgGroup"}}),r("my-input",{attrs:{placeholder:"请输入机构编号",titleName:"机构编号",required:!1,prop:"orgNo",width:t.inputWidth,withForm:""},model:{value:t.form.orgNo,callback:function(e){t.$set(t.form,"orgNo",e)},expression:"form.orgNo"}}),r("my-input",{attrs:{placeholder:"请输入机构地址",titleName:"机构地址",required:!1,prop:"orgAddress",width:t.inputWidth,withForm:""},model:{value:t.form.orgAddress,callback:function(e){t.$set(t.form,"orgAddress",e)},expression:"form.orgAddress"}}),r("my-select",{attrs:{options:t.orgOptions,placeholder:"请选择所属机构",titleName:"所属机构",required:!0,prop:"parentId",width:t.inputWidth,withForm:""},model:{value:t.form.parentId,callback:function(e){t.$set(t.form,"parentId",e)},expression:"form.parentId"}})],1),r("div",{staticClass:"manage_handle"},[r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submit()}}},[t._v("提交")]),r("el-button",{on:{click:function(e){return t.cancel()}}},[t._v("取消")])],1)],1)},l=[],d=(r("163d"),{id:0,orgAddress:"",orgCode:"",orgGroup:"",orgName:"",orgNo:"",orgShortName:"",orgType:"",parentId:0}),c={name:"orgDialog",props:{visible:Boolean,orgId:Number,parentId:Number,orgOptions:Array},data:function(){return{dgVisible:this.visible,form:{},inputWidth:"300px"}},methods:{getInfo:function(){var t=this;this.$setLoading(!0),this.$dataPost("/org/info",{orgId:this.orgId},(function(e){for(var r in t.$setLoading(!1),d)t.$set(t.form,r,e[r]);t.$nextTick((function(){t.$refs.form.clearValidate()}))}))},setDefaultForm:function(){var t=this;this.form=this.$deepCopy(d),this.form.parentId=this.parentId,this.$nextTick((function(){t.$refs.form.clearValidate()}))},submit:function(){var t=this;this.$refs.form.validate((function(e){if(!e){var r=setTimeout((function(){t.$refs.form.clearValidate(),clearTimeout(r)}),2e3);return!1}if(t.form.id){var o=t.form;o.orgId=o.id,t.$dataPostXD("/org/update",o,(function(e){t.$emit("submitted",e),t.dgVisible=!1}))}else{var i=t.form;t.$dataPostXD("/org/add",i,(function(e){t.$emit("submitted",e),t.dgVisible=!1}))}}))},cancel:function(){this.dgVisible=!1}},watch:{visible:{immediate:!0,handler:function(t,e){this.dgVisible=t,1==t&&(this.orgId?this.getInfo():this.setDefaultForm())}},dgVisible:{handler:function(t,e){this.$emit("update:visible",t)}}}},u=c,p=r("5511"),f=Object(p["a"])(u,s,l,!1,null,null,null),m=f.exports;function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(Object(r),!0).forEach((function(e){Object(n["a"])(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var b={name:"manageOrg",data:function(){return{tableList:[],tableListCopy:[],tableOptions:[],searchContent:"",tableColumns:[{prop:"orgName",label:"机构名称",sortable:!0,width:""},{prop:"orgType",label:"机构类别",sortable:!0,width:""},{prop:"orgShortName",label:"机构简称",sortable:!0,width:""}],orgProps:{label:"orgName",children:"dicOrgList"},orgId:0,parentId:0,orgDgVisible:!1}},computed:{},mounted:function(){this.getList(),this.getListAll()},methods:h({},Object(a["b"])({}),{getList:function(){var t=this;this.$setLoading(!0),this.$dataPost("/org/parentall",{orgName:this.searchContent},(function(e){t.$setLoading(!1),e=e||[],t.tableListCopy=e,t.tableList=e}))},getListAll:function(){var t=this;this.$dataPost("/org/all",(function(e){e=e||[];var r=e.map((function(t){return{title:t.orgName,value:t.id}}));r.unshift({title:"无",value:0}),t.tableOptions=r}))},search:function(){var t=this.searchContent;this.tableList=this.tableListCopy.filter((function(e){return e.orgName.indexOf(t)>-1}))},orgAdd:function(t){this.parentId=t||0,this.orgId=0,this.orgDgVisible=!0},orgEdit:function(t){this.orgId=t,this.orgDgVisible=!0},orgDel:function(t){var e=this;this.orgId=t,this.$confirm("确认删除?","提示",{distinguishCancelAndClose:!0,confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.$dataPostXD("/org/delete",{orgId:t},(function(t){e.getList(),e.getListAll()}))})).catch((function(t){}))},orgSubmitted:function(){this.getList()}}),components:{orgDialog:m}},v=b,y=(r("3c2e"),Object(p["a"])(v,o,i,!1,null,"c768693c",null));e["default"]=y.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a5196180"],{"3c2e":function(t,e,o){"use strict";var r=o("b48a"),i=o.n(r);i.a},b48a:function(t,e,o){},cf53:function(t,e,o){"use strict";o.r(e);var r=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"manage_page manage_org_page"},[o("div",{staticClass:"search_bar clearfix"},[o("div",{staticClass:"left"},[o("el-input",{staticStyle:{width:"300px"},attrs:{clearable:"",placeholder:"可输入机构名称搜索"},nativeOn:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.search()}},model:{value:t.searchContent,callback:function(e){t.searchContent=e},expression:"searchContent"}}),o("el-button",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]}),o("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.search()}}},[t._v("搜索")])],1),o("div",{staticClass:"right"},[o("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.orgAdd()}}},[t._v("添加机构")])],1)]),o("div",{staticClass:"table_box"},[o("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableList,border:"",height:"100%","default-expand-all":"","row-key":function(t){return t.id},"row-class-name":t.$tableRowClassName,"tree-props":t.orgProps}},[o("el-table-column",{attrs:{prop:"title",label:"序号",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("span",[t._v(t._s(e.$index+1))])]}}])}),t._l(t.tableColumns,function(e,r){return[o("el-table-column",{key:r,attrs:{prop:e.prop,label:e.label,sortable:e.sortable,width:e.width||void 0},scopedSlots:t._u([{key:"default",fn:function(r){return[o("span",[t._v(t._s(t.$decimal(r.row[e.prop])))])]}}],null,!0)})]}),o("el-table-column",{attrs:{prop:"",label:"操作",width:"280",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(o){return t.orgEdit(e.row.id)}}},[t._v("编辑")]),o("el-button",{attrs:{size:"mini",type:"info"},on:{click:function(o){return t.orgAdd(e.row.id)}}},[t._v("添加子机构")]),o("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(o){return t.orgDel(e.row.id)}}},[t._v("删除")])]}}])})],2)],1),o("org-dialog",{attrs:{visible:t.orgDgVisible,orgId:t.orgId,parentId:t.parentId,orgOptions:t.tableOptions},on:{"update:visible":function(e){t.orgDgVisible=e},submitted:t.orgSubmitted}})],1)},i=[],n=o("cebc"),a=o("2f62"),s=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("el-dialog",{staticClass:"org_dialog manage_dialog",attrs:{title:"机构配置",width:"600px",visible:t.dgVisible,"modal-append-to-body":!1},on:{"update:visible":function(e){t.dgVisible=e}}},[o("el-form",{ref:"form",staticClass:"manage_form",attrs:{model:t.form,"label-width":"120px"}},[o("my-input",{attrs:{placeholder:"请输入机构名称",titleName:"机构名称",required:!0,prop:"orgName",width:t.inputWidth,withForm:""},model:{value:t.form.orgName,callback:function(e){t.$set(t.form,"orgName",e)},expression:"form.orgName"}}),o("my-input",{attrs:{placeholder:"请输入机构编码",titleName:"机构编码",required:!0,prop:"orgCode",width:t.inputWidth,withForm:""},model:{value:t.form.orgCode,callback:function(e){t.$set(t.form,"orgCode",e)},expression:"form.orgCode"}}),o("my-input",{attrs:{placeholder:"请输入机构简称",titleName:"机构简称",required:!0,prop:"orgShortName",width:t.inputWidth,withForm:""},model:{value:t.form.orgShortName,callback:function(e){t.$set(t.form,"orgShortName",e)},expression:"form.orgShortName"}}),o("my-input",{attrs:{placeholder:"请输入机构类型",titleName:"机构类型",required:!0,prop:"orgType",width:t.inputWidth,withForm:""},model:{value:t.form.orgType,callback:function(e){t.$set(t.form,"orgType",e)},expression:"form.orgType"}}),o("my-input",{attrs:{placeholder:"请输入机构组织",titleName:"机构组织",required:!1,prop:"orgGroup",width:t.inputWidth,withForm:""},model:{value:t.form.orgGroup,callback:function(e){t.$set(t.form,"orgGroup",e)},expression:"form.orgGroup"}}),o("my-input",{attrs:{placeholder:"请输入机构编号",titleName:"机构编号",required:!1,prop:"orgNo",width:t.inputWidth,withForm:""},model:{value:t.form.orgNo,callback:function(e){t.$set(t.form,"orgNo",e)},expression:"form.orgNo"}}),o("my-input",{attrs:{placeholder:"请输入机构地址",titleName:"机构地址",required:!1,prop:"orgAddress",width:t.inputWidth,withForm:""},model:{value:t.form.orgAddress,callback:function(e){t.$set(t.form,"orgAddress",e)},expression:"form.orgAddress"}}),o("my-select",{attrs:{options:t.orgOptions,placeholder:"请选择所属机构",titleName:"所属机构",required:!0,prop:"parentId",width:t.inputWidth,withForm:""},model:{value:t.form.parentId,callback:function(e){t.$set(t.form,"parentId",e)},expression:"form.parentId"}})],1),o("div",{staticClass:"manage_handle"},[o("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submit()}}},[t._v("提交")]),o("el-button",{on:{click:function(e){return t.cancel()}}},[t._v("取消")])],1)],1)},l=[],d=(o("c5f6"),{id:0,orgAddress:"",orgCode:"",orgGroup:"",orgName:"",orgNo:"",orgShortName:"",orgType:"",parentId:0}),u={name:"orgDialog",props:{visible:Boolean,orgId:Number,parentId:Number,orgOptions:Array},data:function(){return{dgVisible:this.visible,form:{},inputWidth:"300px"}},methods:{getInfo:function(){var t=this;this.$setLoading(!0),this.$dataPost("/org/info",{orgId:this.orgId},function(e){for(var o in t.$setLoading(!1),d)t.$set(t.form,o,e[o]);t.$nextTick(function(){t.$refs.form.clearValidate()})})},setDefaultForm:function(){var t=this;this.form=this.$deepCopy(d),this.form.parentId=this.parentId,this.$nextTick(function(){t.$refs.form.clearValidate()})},submit:function(){var t=this;this.$refs.form.validate(function(e){if(!e){var o=setTimeout(function(){t.$refs.form.clearValidate(),clearTimeout(o)},2e3);return!1}if(t.form.id){var r=t.form;r.orgId=r.id,t.$dataPostXD("/org/update",r,function(e){t.$emit("submitted",e),t.dgVisible=!1})}else{var i=t.form;t.$dataPostXD("/org/add",i,function(e){t.$emit("submitted",e),t.dgVisible=!1})}})},cancel:function(){this.dgVisible=!1}},watch:{visible:{immediate:!0,handler:function(t,e){this.dgVisible=t,1==t&&(this.orgId?this.getInfo():this.setDefaultForm())}},dgVisible:{handler:function(t,e){this.$emit("update:visible",t)}}}},c=u,p=o("2877"),m=Object(p["a"])(c,s,l,!1,null,null,null),f=m.exports,g={name:"manageOrg",data:function(){return{tableList:[],tableListCopy:[],tableOptions:[],searchContent:"",tableColumns:[{prop:"orgName",label:"机构名称",sortable:!0,width:""},{prop:"orgType",label:"机构类别",sortable:!0,width:""},{prop:"orgShortName",label:"机构简称",sortable:!0,width:""}],orgProps:{label:"orgName",children:"dicOrgList"},orgId:0,parentId:0,orgDgVisible:!1}},computed:{},mounted:function(){this.getList(),this.getListAll()},methods:Object(n["a"])({},Object(a["b"])({}),{getList:function(){var t=this;this.$setLoading(!0),this.$dataPost("/org/parentall",{orgName:this.searchContent},function(e){t.$setLoading(!1),e=e||[],t.tableListCopy=e,t.tableList=e})},getListAll:function(){var t=this;this.$dataPost("/org/all",function(e){e=e||[];var o=e.map(function(t){return{title:t.orgName,value:t.id}});o.unshift({title:"无",value:0}),t.tableOptions=o})},search:function(){var t=this.searchContent;this.tableList=this.tableListCopy.filter(function(e){return e.orgName.indexOf(t)>-1})},orgAdd:function(t){this.parentId=t||0,this.orgId=0,this.orgDgVisible=!0},orgEdit:function(t){this.orgId=t,this.orgDgVisible=!0},orgDel:function(t){var e=this;this.orgId=t,this.$confirm("确认删除?","提示",{distinguishCancelAndClose:!0,confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$dataPostXD("/org/delete",{orgId:t},function(t){e.getList(),e.getListAll()})}).catch(function(t){})},orgSubmitted:function(){this.getList()}}),components:{orgDialog:f}},h=g,b=(o("3c2e"),Object(p["a"])(h,r,i,!1,null,"c768693c",null));e["default"]=b.exports}}]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(function(a,b){if("function"==typeof define&&define.amd)define([],b);else if("undefined"!=typeof exports)b();else{b(),a.FileSaver={exports:{}}.exports}})(this,function(){"use strict";function b(a,b){return"undefined"==typeof b?b={autoBom:!1}:"object"!=typeof b&&(console.warn("Deprecated: Expected third argument to be a object"),b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a}function c(b,c,d){var e=new XMLHttpRequest;e.open("GET",b),e.responseType="blob",e.onload=function(){a(e.response,c,d)},e.onerror=function(){console.error("could not download file")},e.send()}function d(a){var b=new XMLHttpRequest;b.open("HEAD",a,!1);try{b.send()}catch(a){}return 200<=b.status&&299>=b.status}function e(a){try{a.dispatchEvent(new MouseEvent("click"))}catch(c){var b=document.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(b)}}var f="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,a=f.saveAs||("object"!=typeof window||window!==f?function(){}:"download"in HTMLAnchorElement.prototype?function(b,g,h){var i=f.URL||f.webkitURL,j=document.createElement("a");g=g||b.name||"download",j.download=g,j.rel="noopener","string"==typeof b?(j.href=b,j.origin===location.origin?e(j):d(j.href)?c(b,g,h):e(j,j.target="_blank")):(j.href=i.createObjectURL(b),setTimeout(function(){i.revokeObjectURL(j.href)},4E4),setTimeout(function(){e(j)},0))}:"msSaveOrOpenBlob"in navigator?function(f,g,h){if(g=g||f.name||"download","string"!=typeof f)navigator.msSaveOrOpenBlob(b(f,h),g);else if(d(f))c(f,g,h);else{var i=document.createElement("a");i.href=f,i.target="_blank",setTimeout(function(){e(i)})}}:function(a,b,d,e){if(e=e||open("","_blank"),e&&(e.document.title=e.document.body.innerText="downloading..."),"string"==typeof a)return c(a,b,d);var g="application/octet-stream"===a.type,h=/constructor/i.test(f.HTMLElement)||f.safari,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||g&&h)&&"object"==typeof FileReader){var j=new FileReader;j.onloadend=function(){var a=j.result;a=i?a:a.replace(/^data:[^;]*;/,"data:attachment/file;"),e?e.location.href=a:location=a,e=null},j.readAsDataURL(a)}else{var k=f.URL||f.webkitURL,l=k.createObjectURL(a);e?e.location=l:location.href=l,e=null,setTimeout(function(){k.revokeObjectURL(l)},4E4)}});f.saveAs=a.saveAs=a,"undefined"!=typeof module&&(module.exports=a)});
//# sourceMappingURL=FileSaver.min.js.map
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
//最终API域名
var domain = "/admin";
//
var baseParams = {
appname: "manager"
};
//状态颜色转换
function setPerColor(val){
if(val>=0 && val <=25){
//return "rgb(249, 130, 130)";
return "#ACAFB9";
}else if(val>25 && val <=50){
//return "rgb(247, 171, 97)";
return "#FF9E34";
}else if(val>50 && val <=75){
//return "rgb(186, 230, 96)";
return '#599FEE';
}else if(val>75 && val <=100){
//return "rgb(146, 197, 239)";
return "#00C6AF";
}
}
\ No newline at end of file
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
if(!Object.keys)Object.keys=function(){var t=Object.prototype.hasOwnProperty,e=!{toString:null}.propertyIsEnumerable("toString"),r=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],i=r.length;return function(n){if(typeof n!=="object"&&typeof n!=="function"||n===null)throw new TypeError("Object.keys called on non-object");var o=[];for(var a in n)if(t.call(n,a))o.push(a);if(e)for(var l=0;l<i;++l)if(t.call(n,r[l]))o.push(r[l]);return o}}();if(!String.prototype.trim)String.prototype.trim=function(){var t=this.replace(/^\s+/,"");for(var e=t.length-1;e>=0;--e)if(!t.charAt(e).match(/^\s/))return t.slice(0,e+1);return""};if(!Array.prototype.forEach)Array.prototype.forEach=function(t){var e=this.length>>>0,r=arguments[1]||void 0;for(var i=0;i<e;++i)if(i in this)r?t.call(r,this[i],i,this):t(this[i],i,this)};if(!Array.prototype.map)Array.prototype.map=function(t){var e=this.length>>>0,r=arguments[1]||void 0,i=new Array(e);for(var n=0;n<e;++n)if(n in this)i[n]=r?t.call(r,this[n],n,this):t(this[n],n,this);return i};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(t){var e=this.length>>>0,r=arguments[1]|0||0;for(r<0&&(r+=e)<0&&(r=0);r<e;++r)if(this[r]===t)return r;return-1};if(!Array.prototype.lastIndexOf)Array.prototype.lastIndexOf=function(t){var e=this.length>>>0,r=e-1;for(;r>=0;--r)if(this[r]===t)return r;return-1};if(!Array.isArray)Array.isArray=function(t){return Object.prototype.toString.call(t)==="[object Array]"};if(!Date.prototype.toISOString)Date.prototype.toISOString=function(){function t(t,e){return("0000000"+t).slice(-(e||2))}return function e(){var e=this.getUTCFullYear(),r="";if(e>9999)r="+"+t(e,6);else if(e<0)r="-"+t(-e,6);else r=t(e,4);return[r,t(this.getUTCMonth()+1),t(this.getUTCDate())].join("-")+"T"+[t(this.getUTCHours()),t(this.getUTCMinutes()),t(this.getUTCSeconds())].join(":")+"."+t(this.getUTCMilliseconds(),3)+"Z"}}();if(typeof ArrayBuffer!=="undefined"&&!ArrayBuffer.prototype.slice)ArrayBuffer.prototype.slice=function(t,e){if(t==null)t=0;if(t<0){t+=this.byteLength;if(t<0)t=0}if(t>=this.byteLength)return new Uint8Array(0);if(e==null)e=this.byteLength;if(e<0){e+=this.byteLength;if(e<0)e=0}if(e>this.byteLength)e=this.byteLength;if(t>e)return new Uint8Array(0);var r=new ArrayBuffer(e-t);var i=new Uint8Array(r);var n=new Uint8Array(this,t,e-t);if(i.set)i.set(n);else while(t<=--e)i[e-t]=n[e];return r};if(typeof Uint8Array!=="undefined"&&!Uint8Array.prototype.slice)Uint8Array.prototype.slice=function(t,e){if(t==null)t=0;if(t<0){t+=this.length;if(t<0)t=0}if(t>=this.length)return new Uint8Array(0);if(e==null)e=this.length;if(e<0){e+=this.length;if(e<0)e=0}if(e>this.length)e=this.length;if(t>e)return new Uint8Array(0);var r=new Uint8Array(e-t);while(t<=--e)r[e-t]=this[e];return r};var IE_SaveFile=function(){try{if(typeof IE_SaveFile_Impl=="undefined")document.write(['<script type="text/vbscript" language="vbscript">','IE_GetProfileAndPath_Key = "HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\\"','Function IE_GetProfileAndPath(key): Set wshell = CreateObject("WScript.Shell"): IE_GetProfileAndPath = wshell.RegRead(IE_GetProfileAndPath_Key & key): IE_GetProfileAndPath = wshell.ExpandEnvironmentStrings("%USERPROFILE%") & "!" & IE_GetProfileAndPath: End Function','Function IE_SaveFile_Impl(FileName, payload): Dim data, plen, i, bit: data = CStr(payload): plen = Len(data): Set fso = CreateObject("Scripting.FileSystemObject"): fso.CreateTextFile FileName, True: Set f = fso.GetFile(FileName): Set stream = f.OpenAsTextStream(2, 0): For i = 1 To plen Step 3: bit = Mid(data, i, 2): stream.write Chr(CLng("&h" & bit)): Next: stream.Close: IE_SaveFile_Impl = True: End Function',"|/script>".replace("|","<")].join("\r\n"));if(typeof IE_SaveFile_Impl=="undefined")return void 0;var t=function(){var t="";try{t=IE_GetProfileAndPath("{374DE290-123F-4565-9164-39C4925E467B}")}catch(e){try{t=IE_GetProfileAndPath("Personal")}catch(e){try{t=IE_GetProfileAndPath("Desktop")}catch(e){throw e}}}var r=t.split("!");DDP=r[1].replace("%USERPROFILE%",r[0]);return function(t){return DDP+"\\"+t}}();function e(t){var e=[];var r=typeof t=="string";for(var i=0;i<t.length;++i)e.push(("00"+(r?t.charCodeAt(i):t[i]).toString(16)).slice(-2));var n=e.join("|");return n}return function(r,i){return IE_SaveFile_Impl(t(i),e(r))}}catch(r){return void 0}}();var IE_LoadFile=function(){try{if(typeof IE_LoadFile_Impl=="undefined")document.write(['<script type="text/vbscript" language="vbscript">','Function IE_LoadFile_Impl(FileName): Dim out(), plen, i, cc: Set fso = CreateObject("Scripting.FileSystemObject"): Set f = fso.GetFile(FileName): Set stream = f.OpenAsTextStream(1, 0): plen = f.Size: ReDim out(plen): For i = 1 To plen Step 1: cc = Hex(Asc(stream.read(1))): If Len(cc) < 2 Then: cc = "0" & cc: End If: out(i) = cc: Next: IE_LoadFile_Impl = Join(out,""): End Function',"|/script>".replace("|","<")].join("\r\n"));if(typeof IE_LoadFile_Impl=="undefined")return void 0;function t(t){var e=[];for(var r=0;r<t.length;r+=2)e.push(String.fromCharCode(parseInt(t.slice(r,r+2),16)));var i=e.join("");return i}return function(e){return t(IE_LoadFile_Impl(e))}}catch(e){return void 0}}();if(typeof window!=="undefined"&&typeof window.getComputedStyle!=="function"){window.getComputedStyle=function(t,e){return this.el=t,this.getPropertyValue=function(e){var r=/(\-([a-z]){1})/g;return e=="float"&&(e="styleFloat"),r.test(e)&&(e=e.replace(r,function(){return arguments[2].toUpperCase()})),t.currentStyle[e]?t.currentStyle[e]:null},this}}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment