(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-4675"],{"6udB":function(e,l,t){"use strict";var a=t("vzcK");t.n(a).a},NEZj:function(e,l,t){"use strict";t.r(l);var a={name:"hazardSource",data:function(){return{data:[{id:1,label:"危险源等级",icon:"el-icon-folder",children:[{id:2,label:"低风险",icon:"el-icon-folder"},{id:3,label:"一般风险",icon:"el-icon-success"},{id:4,label:"较大风险",icon:"el-icon-success"},{id:5,label:"重大风险",icon:"el-icon-success"}]}],formInline:{user:"",region:""},checkList:["选中且禁用","复选框 A"],tableData:[{date:"2016-05-02",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-04",name:"王小虎",address:"上海市普陀区金沙江路 1517 弄"},{date:"2016-05-01",name:"王小虎",address:"上海市普陀区金沙江路 1519 弄"},{date:"2016-05-03",name:"王小虎",address:"上海市普陀区金沙江路 1516 弄"}],multipleSelection:[],currentPage4:4}},mounted:function(){this.getAllColumns()},methods:{handleDragStart:function(e,l){console.log("drag start",e)},handleDragEnter:function(e,l,t){console.log("tree drag enter: ",l.label)},handleDragLeave:function(e,l,t){console.log("tree drag leave: ",l.label)},handleDragOver:function(e,l,t){console.log("tree drag over: ",l.label)},handleDragEnd:function(e,l,t,a){console.log("tree drag end: ",l&&l.label,t)},handleDrop:function(e,l,t,a){console.log("tree drop: ",l.label,t)},allowDrop:function(e,l,t){return"二级 3-1"!==l.data.label||"inner"!==t},allowDrag:function(e){return-1===e.data.label.indexOf("三级 3-2-2")},getAllColumns:function(){this.$route.query},handleChange:function(e,l){this.fileList=l.slice(-3)},onSubmit:function(){console.log("submit!")},handleSelectionChange:function(e){this.multipleSelection=e},handleSizeChange:function(e){console.log("每页 "+e+" 条")},handleCurrentChange:function(e){console.log("当前页: "+e)}}},n=(t("6udB"),t("ZrdR")),o=Object(n.a)(a,function(){var e=this,l=e.$createElement,t=e._self._c||l;return t("div",{staticClass:"whole"},[t("div",{staticClass:"left-tree"},[t("el-tree",{attrs:{data:e.data,"node-key":"id","default-expand-all":"","allow-drop":e.allowDrop,"allow-drag":e.allowDrag},on:{"node-drag-start":e.handleDragStart,"node-drag-enter":e.handleDragEnter,"node-drag-leave":e.handleDragLeave,"node-drag-over":e.handleDragOver,"node-drag-end":e.handleDragEnd,"node-drop":e.handleDrop},scopedSlots:e._u([{key:"default",fn:function(l){var a=l.node,n=l.data;return t("span",{staticClass:"slot-t-node"},[[n.ChildItems&&n.ChildItems.length?t("i",{class:{"el-icon-folder":!a.expanded,"el-icon-folder-opened":a.expanded},staticStyle:{color:"#409eff"}}):t("i",{staticClass:"el-icon-folder-add",staticStyle:{color:"#EC933A"}}),e._v(" "),t("span",[e._v(e._s(a.label))])]],2)}}])})],1),e._v(" "),t("div",{staticClass:"right-table"},[t("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.formInline}},[t("el-checkbox-group",{model:{value:e.checkList,callback:function(l){e.checkList=l},expression:"checkList"}},[t("el-checkbox",{staticStyle:{"margin-right":"50px"}},[t("el-form-item",{attrs:{label:"事故来源"}},[t("el-input",{model:{value:e.formInline.user,callback:function(l){e.$set(e.formInline,"user",l)},expression:"formInline.user"}})],1)],1),e._v(" "),t("el-checkbox",{staticStyle:{"margin-right":"50px"}},[t("el-form-item",{attrs:{label:"事故类型"}},[t("el-input",{model:{value:e.formInline.user,callback:function(l){e.$set(e.formInline,"user",l)},expression:"formInline.user"}})],1)],1),e._v(" "),t("el-form-item",{staticStyle:{"margin-right":"50px"},attrs:{label:"主要危险源"}},[t("el-input",{model:{value:e.formInline.user,callback:function(l){e.$set(e.formInline,"user",l)},expression:"formInline.user"}})],1)],1),e._v(" "),t("el-form-item",[t("button",{staticClass:"btn",on:{click:e.onSubmit}},[e._v("查询")]),e._v(" "),t("button",{staticClass:"btn",on:{click:e.onSubmit}},[e._v("确定")])])],1),e._v(" "),t("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,border:""},on:{"selection-change":e.handleSelectionChange}},[t("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),t("el-table-column",{attrs:{prop:"date",label:"风险点",width:"180"}}),e._v(" "),t("el-table-column",{attrs:{prop:"name",label:"主要危险源",width:"180"}}),e._v(" "),t("el-table-column",{attrs:{prop:"address",label:"事故类型"}}),e._v(" "),t("el-table-column",{attrs:{prop:"address",label:"风险等级"}}),e._v(" "),t("el-table-column",{attrs:{prop:"address",label:"管控措施"}}),e._v(" "),t("el-table-column",{attrs:{prop:"address",label:"管控层级"}}),e._v(" "),t("el-table-column",{attrs:{prop:"address",label:"责任单位"}}),e._v(" "),t("el-table-column",{attrs:{prop:"address",label:"责任人"}})],1),e._v(" "),t("div",{staticStyle:{"text-align":"right"}},[t("el-pagination",{attrs:{"current-page":e.currentPage4,"page-sizes":[100,200,300,400],"page-size":100,layout:"total, sizes, prev, pager, next, jumper",total:400},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)])},[],!1,null,"0f794e75",null);o.options.__file="hazardSource.vue";l.default=o.exports},vzcK:function(e,l,t){}}]);
|