(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d230289"],{eaa8:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"elForm",attrs:{model:e.formData,rules:e.rules,size:"medium","label-width":"100px"}},[a("el-form-item",{attrs:{label:"事件标题",prop:"title"}},[a("el-input",{style:{width:"100%"},attrs:{placeholder:"请输入设备名称事件标题",clearable:""},model:{value:e.formData.title,callback:function(t){e.$set(e.formData,"title",t)},expression:"formData.title"}})],1),a("el-form-item",{attrs:{label:"开始时间",prop:"start_time"}},[a("el-date-picker",{style:{width:"100%"},attrs:{type:"datetime",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"请选择开始时间",clearable:""},model:{value:e.formData.start_time,callback:function(t){e.$set(e.formData,"start_time",t)},expression:"formData.start_time"}})],1),a("el-form-item",{attrs:{label:"结束时间",prop:"end_time"}},[a("el-date-picker",{style:{width:"100%"},attrs:{type:"datetime",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"请选择结束时间",clearable:""},model:{value:e.formData.end_time,callback:function(t){e.$set(e.formData,"end_time",t)},expression:"formData.end_time"}})],1),a("el-form-item",{attrs:{size:"large"}},[a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("提交")]),a("el-button",{on:{click:e.resetForm}},[e._v("重置")])],1)],1)},l=[],i={inheritAttrs:!1,components:{},props:{data:{type:Object},isReadOnly:{type:Boolean,default:!1}},data:function(){return{formData:{title:void 0,start_time:null,end_time:null},rules:{title:[{required:!0,message:"请输入设备名称事件标题",trigger:"blur"}],start_time:[{required:!0,message:"请选择开始时间",trigger:"change"}],end_time:[{required:!0,message:"请选择结束时间",trigger:"change"}]}}},computed:{},watch:{},created:function(){},mounted:function(){this.data&&(this.formData=this.data)},methods:{submitForm:function(){this.$refs["elForm"].validate((function(e){if(!e)return!1}))},resetForm:function(){this.$refs["elForm"].resetFields()}}},s=i,m=a("5d22"),o=Object(m["a"])(s,r,l,!1,null,null,null);t["default"]=o.exports}}]);