webpackJsonp([14],{DiCx:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={name:"MonitorForm",props:{title:{type:String,default:""},labelWidth:{type:Number,default:10},layout:{type:Array,default:function(){return[]}},model:{type:Object,default:function(){return{}}}},data:function(){return{showImg:!1,curSrc:null}},methods:{handleView:function(t){this.curSrc=t,this.showImg=!0}}},o={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"monitor-form"},[t.title?i("p",{staticClass:"title"},[t._v(t._s(t.title))]):t._e(),t._v(" "),t._l(t.layout,function(e,n){return i("Row",{key:n,staticClass:"row"},t._l(e,function(e,n){return i("i-col",{key:n,staticClass:"col",attrs:{span:e.width,offset:e.offset||0}},[i("div",{style:"text-align: "+(e.align||"right")+"; width:"+t.labelWidth+"rem;"},[t._v(t._s(e.label)+"：")]),t._v(" "),"img"==e.type&&t.model[n]?[t._l(t.model[n].split(","),function(e){return i("img",{key:e,staticStyle:{"margin-right":"1rem"},attrs:{src:e},on:{click:function(i){return t.handleView(e)}}})}),t._v(" "),t.model.done_photo?i("img",{staticStyle:{"margin-right":"1rem"},attrs:{src:t.model.done_photo},on:{click:function(e){return t.handleView(t.model.done_photo)}}}):t._e()]:i("div",{staticClass:"content"},[t._v(t._s(e.format?e.format(t.model[n]):t.model[n]||" "))])],2)}),1)}),t._v(" "),i("m-modal",{attrs:{title:"照片"},model:{value:t.showImg,callback:function(e){t.showImg=e},expression:"showImg"}},[t.showImg?i("img",{staticStyle:{width:"100%","max-height":"23rem"},attrs:{src:t.curSrc}}):t._e()])],2)},staticRenderFns:[]};var r=i("VU/8")(n,o,!1,function(t){i("dtfL")},"data-v-6dd4cb1f",null);e.default=r.exports},dtfL:function(t,e){}});
//# sourceMappingURL=14.ccceec5b9e6bf9eb43fd.js.map