(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-524dc030"],{"649f":function(e,t,s){"use strict";s.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"history-add-component"},[t("div",{staticClass:"flex",staticStyle:{"align-items":"baseline"}},[t("div",{staticClass:"history-label"},[t("span",[e._v(e._s(e.label))]),t("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",size:"small",disabled:e.disabled},on:{click:e.handleAdd}},[e._v("\n        添加\n      ")])],1)]),t("div",{staticClass:"history-list"},e._l(e.historyList,(function(s,i){return t("div",{key:i,staticClass:"row-column history-item"},[t("div",{staticClass:"colss"},[t("label",[e._v(e._s(e.descrLabel))]),t("el-input",{attrs:{disabled:e.disabled,placeholder:"请输入".concat(e.descrLabel)},model:{value:s.descr,callback:function(t){e.$set(s,"descr",t)},expression:"item.descr"}})],1),t("div",{staticClass:"colss"},[t("label",[e._v("时间")]),t("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:e.disabled,type:"date",placeholder:"请选择时间","value-format":"yyyy-MM-dd"},model:{value:s.definiteDate,callback:function(t){e.$set(s,"definiteDate",t)},expression:"item.definiteDate"}})],1),t("div",{staticClass:"colss"},[e.historyList.length>1?t("el-button",{attrs:{disabled:e.disabled,type:"danger",size:"small"},on:{click:function(t){return e.handleDelete(i)}}},[e._v("\n          删除\n        ")]):e._e()],1)])})),0)])},l=[],a={name:"HistoryAddComponent",props:{label:{type:String,default:"其他"},descrLabel:{type:String,default:"名称"},historyList:{type:Array,default:function(){return[]}},historyType:{type:String,required:!0},disabled:{type:Boolean,default:!1}},methods:{handleAdd:function(){var e={historyType:this.historyType,descr:"",definiteDate:null,observationMethod:null,outcome:null,checked:!0};this.$emit("add-history",e)},handleDelete:function(e){this.$emit("delete-history",e)}}},d=a,n=(s("836f"),s("2877")),c=Object(n["a"])(d,i,l,!1,null,"11744baa",null);t["default"]=c.exports},"836f":function(e,t,s){"use strict";s("c2c3")},c2c3:function(e,t,s){}}]);