gz-att-web/gz-att/static/js/chunk-0cc43cba.8f2628d0.js

1 line
2.4 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0cc43cba"],{"5fd4":function(n,t,e){"use strict";e.d(t,"b",(function(){return o})),e.d(t,"a",(function(){return c}));var a=e("b775");function o(n){return Object(a["a"])({url:"/system/homePage/getHomePageData",method:"post",data:n})}function c(n){return Object(a["a"])({url:"/system/attExceptionHandle/getDetailExceptionAll",method:"get",params:n})}},b16d:function(n,t,e){},b2cc:function(n,t,e){"use strict";e.r(t);var a=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{staticClass:"content"},[e("div",{staticClass:"content-box"},[n._m(0),e("div",{staticClass:"chart-box"},[e("vue2-org-tree",{attrs:{name:"test",data:n.treeData,horizontal:n.horizontal,collapsable:n.collapsable,"label-class-name":n.labelClassName,"render-content":n.renderContent},on:{"on-expand":n.onExpand,"on-node-click":n.onNodeClick}})],1)])])},o=[function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{staticClass:"title-box"},[e("div",{staticStyle:{"margin-left":"10px","font-size":"22px","font-weight":"bold"}},[n._v("当月异常统计")])])}],c=(e("99af"),e("d3b7"),e("159b"),e("5fd4"),{components:{},name:"topOne",props:{orgNumBean:{type:Array,default:null}},data:function(){return{treeData:[],horizontal:!1,collapsable:!0,expandAll:!0,labelClassName:"bg-white"}},created:function(){},mounted:function(){},watch:{orgNumBean:function(n){console.log(n),this.initData()}},methods:{initData:function(){var n=this.handleTree(this.orgNumBean,"orgId");this.treeData={orgName:"公司架构",orgId:"0",personNum:"",children:n},this.expandChange()},renderContent:function(n,t){return"".concat(t.orgName,"(").concat(t.personNum,")")},onExpand:function(n){"expand"in n?(n.expand=!n.expand,!n.expand&&n.children&&this.collapse(n.children)):this.$set(n,"expand",!0)},onNodeClick:function(n,t){},collapse:function(n){var t=this;n.forEach((function(n){n.expand&&(n.expand=!1),n.children&&t.collapse(n.children)}))},expandChange:function(){this.toggleExpand(this.treeData,this.expandAll)},toggleExpand:function(n,t){var e=this;Array.isArray(n)?n.forEach((function(n){e.$set(n,"expand",t),n.children&&e.toggleExpand(n.children,t)})):(this.$set(n,"expand",t),n.children&&e.toggleExpand(n.children,t))}}}),i=c,r=(e("da8c"),e("2877")),l=Object(r["a"])(i,a,o,!1,null,"e7ecd140",null);t["default"]=l.exports},da8c:function(n,t,e){"use strict";e("b16d")}}]);