text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-04f73392"],{"6e29":function(t,e,a){"use strict";a.d(e,"a",(function(){return s})),a.d(e,"f",(function(){return c})),a.d(e,"e",(function(){return o})),a.d(e,"d",(function(){return l})),a.d(e,"c",(function(){return u})),a.d(e,"b",(function(){return d})),a.d(e,"g",(function(){return m}));a("16ca");var r=a("b775"),n="risk-equipment",i={getActiveRiskList:"".concat(n,"/securitymanagement/riskCalculation"),getWarningList:"".concat(n,"/RiskTR"),getEchatsData:"".concat(n,"/RiskTR/area/info"),getriskCalculationList:"".concat(n,"/comprehensiverisk/riskCalculation"),getComputeConfig:"".concat(n,"/risk/config/info"),saveComputeConfig:"".concat(n,"/risk/config/save")};function s(t){return Object(r["b"])({url:"".concat(i.getActiveRiskList),method:"get",params:t})}function c(t){return Object(r["b"])({url:"".concat(i.getriskCalculationList),method:"get",params:t})}function o(t){return Object(r["b"])({url:"".concat(i.getWarningList),method:"get",params:t})}function l(t){return Object(r["b"])({url:"".concat(i.getWarningList,"/").concat(t),method:"get"})}function u(t){return Object(r["b"])({url:"".concat(i.getEchatsData),method:"get",params:t})}function d(){return Object(r["b"])({url:"".concat(i.getComputeConfig),method:"get"})}function m(t){return Object(r["b"])({url:"".concat(i.saveComputeConfig),method:"post",data:t})}},"97d1":function(t,e,a){},cab2:function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("page-header-wrapper",{attrs:{content:""}},[a("div",{staticClass:"manageStyle"},[a("div",[a("a-card",{staticClass:"table-page-search-wrapper",attrs:{bordered:!1}},[a("a-form",{attrs:{layout:"inline"}},[a("a-row",{attrs:{gutter:48}},[a("a-col",{attrs:{md:8,sm:24}},[a("a-form-item",{attrs:{label:"所属单位"}},[a("a-tree-select",{staticStyle:{width:"100%"},attrs:{"dropdown-style":{maxHeight:"400px",overflow:"auto"},"tree-data":t.treeData,placeholder:"请选择单位","tree-default-expand-all":""},model:{value:t.queryParam.ownerId,callback:function(e){t.$set(t.queryParam,"ownerId",e)},expression:"queryParam.ownerId"}})],1)],1),a("a-col",{attrs:{md:8,sm:24}},[a("a-form-item",{attrs:{label:"风险区域"}},[a("a-tree-select",{staticStyle:{width:"100%"},attrs:{"dropdown-style":{maxHeight:"400px",overflow:"auto"},"tree-data":t.areaRiskSimpleTreeList,placeholder:"请选择区域","tree-default-expand-all":"",allowClear:"",replaceFields:{children:"subAreaRisks",title:"fullName",key:"id",value:"id"}},model:{value:t.queryParam.riskAreaId,callback:function(e){t.$set(t.queryParam,"riskAreaId",e)},expression:"queryParam.riskAreaId"}})],1)],1),a("a-col",{staticStyle:{"text-align":"right"},attrs:{md:8,sm:24}},[a("span",{staticClass:"table-page-search-submitButtons"},[a("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.searchList(t.queryParam)}}},[t._v("查询")]),a("a-button",{staticStyle:{"margin-left":"8px"},on:{click:function(e){return t.resetTable()}}},[t._v("重置")])],1)])],1)],1)],1),a("a-card",{staticClass:"card-margin",attrs:{bordered:!1}},[a("a-table",{ref:"table",attrs:{rowKey:"id",columns:t.columns,"data-source":t.data,loading:t.loading}})],1)],1)]),a("a-card",{staticClass:"remarkCard"},[a("div",{staticClass:"remark",attrs:{bordered:!1}},[a("div",{staticClass:"MA"},[t._v("CR=")]),a("div",{staticClass:"algorithm"},[a("span",{staticClass:"genhao"},[t._v(" √ ")]),a("span",{staticClass:"subStyle"},[a("span",[t._v("γ"),a("sub",[t._v("R")])]),t._v(" * TR * MR")])])]),a("p",[t._v(" 注:（CR < 2，R=1，低风险；CR >=2，R=2，一般风险；CR >=3，MR=3，较大风险；CR >=4，R=4，重大风险） ")])])],1)},n=[],i=a("2af9"),s=a("9b2d"),c=a.n(s),o=a("08a3"),l=a("6e29"),u={name:"comprehensiveRisk",components:{STable:i["f"]},data:function(){return{data:[],queryParam:{},treeData:[],areaRiskSimpleTreeList:[],loading:!1,columns:[{title:"所属单位",dataIndex:"owner",key:"owner"},{title:"风险区域",dataIndex:"riskArea",key:"riskArea"},{title:"固有风险",dataIndex:"yr",key:"yr"},{title:"设备运行风险",dataIndex:"tr",key:"tr"},{title:"安全管理风险",key:"mr",dataIndex:"mr"},{title:"综合风险",key:"r",dataIndex:"r"},{title:"综合风险等级",key:"levelName",dataIndex:"levelName"},{title:"创建时间",key:"createDate",dataIndex:"createDate"}]}},created:function(){this.getriskCalculationListFun()},mounted:function(){this.treeData=c.a.get("departmentTree"),this.getRiskSimpleTree()},methods:{getRiskSimpleTree:function(){var t=this;Object(o["h"])({}).then((function(e){e&&e.body&&200==e.code?t.areaRiskSimpleTreeList=e.body:t.$message.error(e.message||"查询区域风险失败！")})).catch((function(e){t.$message.error(res.message||"查询区域风险失败！")}))},getriskCalculationListFun:function(t){var e=this;this.loading=!0,Object(l["f"])(t).then((function(t){200==t.code?(e.loading=!1,e.data=t.body):(e.loading=!1,e.$message.error("列表查询失败"))})).catch((function(t){e.loading=!1,e.$message.error("列表查询失败")}))},resetTable:function(){this.queryParam={},this.getriskCalculationListFun()},searchList:function(t){this.getriskCalculationListFun(t)}}},d=u,m=(a("ef06"),a("5d22")),f=Object(m["a"])(d,r,n,!1,null,"33065ffe",null);e["default"]=f.exports},ef06:function(t,e,a){"use strict";a("97d1")}}]);