(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d21e1c6"],{d3bc:function(t,e,l){"use strict";l.r(e);var a=function(){var t=this,e=t._self._c;return e("div",[e("el-breadcrumb",[e("el-breadcrumb-item",[t._v("首页")]),e("el-breadcrumb-item",[t._v("排放量预警设置")])],1),e("el-form",{attrs:{model:t.form,"label-width":"200px"}},[e("el-card",{staticClass:"box-card",staticStyle:{height:"80px"}},[e("el-row",{staticClass:"row-bg",attrs:{gutter:20,type:"flex",justify:"space-between"}},[e("el-col",{attrs:{span:8}},[e("el-form-item",{attrs:{label:"年份:"}},[e("el-date-picker",{attrs:{size:"mini",type:"year","picker-options":t.timeChange,placeholder:"选择年"},model:{value:t.form.year,callback:function(e){t.$set(t.form,"year",e)},expression:"form.year"}})],1)],1),e("el-col",{attrs:{span:8}},[e("el-form-item",{attrs:{label:""}})],1),e("el-col",{staticStyle:{margin:"5px"},attrs:{span:4}},[e("el-divider",{attrs:{direction:"vertical"}}),e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.getProductList}},[t._v("查询")]),e("el-button",{attrs:{size:"mini"},on:{click:t.add}},[t._v("新增")])],1)],1)],1)],1),e("el-card",{staticClass:"box-heard"},[e("alltitle",{attrs:{msg:"排放量预警列表"}}),e("el-table",{staticStyle:{width:"100%"},attrs:{stripe:!0,data:t.tableData}},[t._l(t.colums,(function(l,a){return[l.template?t._e():e("el-table-column",{key:l.k,attrs:{align:"center",label:l.label,prop:l.prop,width:l.width,"column-key":l.columnKey,filters:l.filters,formatter:l.format,type:l.type,"filter-method":l.filterMethod,"show-overflow-tooltip":!0}}),"actionBar"==l.prop?e("el-table-column",{key:a,attrs:{align:"center",label:l.label,prop:l.prop,width:l.width},scopedSlots:t._u([{key:"default",fn:function(l){return[e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return t.toEdit(l.row)}}},[t._v("编辑")])]}}],null,!0)}):t._e()]}))],2),e("el-pagination",{staticClass:"postop",staticStyle:{float:"right"},attrs:{"current-page":t.currentPage4,"page-sizes":[10,30,50,100],"page-size":1,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.length},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1),e("newadd",{ref:"add"}),e("edit",{ref:"edit"})],1)},r=[],i=function(){var t=this,e=t._self._c;return e("div",[e("alldialog",{ref:"allDialog",attrs:{title:"新增预警信息"}},[e("el-card",[e("el-form",{attrs:{model:t.form,"label-width":"200px"}},[e("alltitle",{attrs:{msg:"基本信息"}}),e("el-row",{staticClass:"pad",attrs:{gutter:20}},[e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"年份:"}},[e("el-input",{staticStyle:{width:"50%"},attrs:{size:"mini",placeholder:"请输入年份"},model:{value:t.form.product,callback:function(e){t.$set(t.form,"product",e)},expression:"form.product"}})],1)],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"CO2预期排放量:"}},[e("el-input",{staticStyle:{width:"50%"},attrs:{size:"mini",placeholder:"请输入CO2预期排放量"},model:{value:t.form.until1,callback:function(e){t.$set(t.form,"until1",e)},expression:"form.until1"}})],1)],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"预警CO2排放量(tCO2e):"}},[e("el-input",{staticStyle:{width:"50%"},attrs:{size:"mini",placeholder:"请输入预警CO2排放量(tCO2e)"},model:{value:t.form.until2,callback:function(e){t.$set(t.form,"until2",e)},expression:"form.until2"}})],1)],1)],1)],1)],1)],1)],1)},o=[],s={data(){return{visible:!1,form:{product:"",type:"",code:"",details:"",num:""}}},methods:{show(t){this.$refs.allDialog.showDialog(),t.id?(console.log(t),this.form=t):this.form={}}}},n=s,c=l("1805"),d=Object(c["a"])(n,i,o,!1,null,"c54e83ca",null),m=d.exports,p=function(){var t=this,e=t._self._c;return e("div",[e("alldialog",{ref:"allDialog",attrs:{title:"编辑预警信息"}},[e("el-card",[e("el-form",{attrs:{model:t.form,"label-width":"200px"}},[e("alltitle",{attrs:{msg:"基本信息"}}),e("el-row",{staticClass:"pad",attrs:{gutter:20}},[e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"年份:"}},[e("el-input",{staticStyle:{width:"50%"},attrs:{disabled:"",size:"mini",placeholder:"请输入年份"},model:{value:t.form.product,callback:function(e){t.$set(t.form,"product",e)},expression:"form.product"}})],1)],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"盘查CO2当量(tCO2e):"}},[e("el-input",{staticStyle:{width:"50%"},attrs:{disabled:"",size:"mini",placeholder:"请输入盘查CO2当量(tCO2e)"},model:{value:t.form.num,callback:function(e){t.$set(t.form,"num",e)},expression:"form.num"}})],1)],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"盘查不包含电力CO2当量(tCO2e):"}},[e("el-input",{staticStyle:{width:"50%"},attrs:{disabled:"",size:"mini",placeholder:"请输入盘查不包含电力CO2当量(tCO2e)"},model:{value:t.form.until,callback:function(e){t.$set(t.form,"until",e)},expression:"form.until"}})],1)],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"CO2预期排放量:"}},[e("el-input",{staticStyle:{width:"50%"},attrs:{size:"mini",placeholder:"请输入CO2预期排放量"},model:{value:t.form.until1,callback:function(e){t.$set(t.form,"until1",e)},expression:"form.until1"}})],1)],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"预警CO2排放量(tCO2e):"}},[e("el-input",{staticStyle:{width:"50%"},attrs:{size:"mini",placeholder:"请输入预警CO2排放量(tCO2e)"},model:{value:t.form.until2,callback:function(e){t.$set(t.form,"until2",e)},expression:"form.until2"}})],1)],1)],1)],1)],1)],1)],1)},u=[],f={data(){return{visible:!1,form:{product:"",type:"",code:"",details:"",num:""}}},methods:{show(t){this.$refs.allDialog.showDialog(),t.id?(console.log(t),this.form=t):this.form={}}}},h=f,b=Object(c["a"])(h,p,u,!1,null,"3c87ab5d",null),g=b.exports,w={components:{newadd:m,edit:g},data(){return{timeChange:{disabledDate(t){return t.getTime()>Date.now()}},currentPage4:1,form:{},tableData:[{id:"22",year:"121003256",year:"2022",agreement:"38625",waring:"68000",expectation:"60654"}],colums:[{width:120,type:"index",label:"序号"},{prop:"year",label:"年份"},{prop:"agreement",label:"盘查CO2当量(tCO2e)"},{prop:"expectation",label:"CO2预期排放量"},{prop:"waring",label:"预警CO2排放量(tCO2e)"},{prop:"actionBar",label:"操作",template:!0}]}},methods:{handleSizeChange(t){console.log(`每页 ${t} 条`)},handleCurrentChange(t){console.log("当前页: "+t)},add(t){this.$refs["add"].show(t)},getProductList(){},remove(t){},toEdit(t){this.$refs["edit"].show(t),console.log(t)}}},C=w,y=Object(c["a"])(C,a,r,!1,null,"afe23b0e",null);e["default"]=y.exports}}]);