webpackJsonp([6],{Tuyc:function(t,e){},x3B2:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={name:"itemDialog",components:{},data:function(){return{type:0,titleName:"",gridData:[{date:"2016-05-02",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-04",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-01",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-03",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"}],dialogTableVisible:!1,dialogFormVisible:!1,itemData:{},formLabelWidth:"120px",oldData:{}}},props:{},watch:{},methods:{setShow:function(t,e){this.type=e,this.dialogFormVisible=t},setTitileName:function(t){this.titleName=t},setiItemData:function(t){console.log("给过来的数据格式",t),this.oldData=t;var e=this.utils.getNewObjData(t);this.itemData=e},clickOK:function(){0==this.type&&this.$emit("ok",this.itemData),1==this.type&&this.$emit("okUpData",this.itemData)},clickCancel:function(){this.$emit("cancel","子向父组件传值"),this.dialogFormVisible=!1},checkType:function(t,e,a){var i=!1;return"int"==t.type&&1==a?i=!0:"string"==t.type&&0==a&&(i=!0),i}},computed:{},created:function(){},mounted:function(){},destroyed:function(){}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"itemDialog"},[a("el-dialog",{attrs:{title:t.titleName,visible:t.dialogFormVisible},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",t._l(t.itemData,function(e,i){return"ID"!=e.name?a("el-form-item",{attrs:{label:e.titleName,"label-width":t.formLabelWidth}},[t.checkType(e,i,0)?a("el-input",{attrs:{"auto-complete":"off"},model:{value:e.value,callback:function(a){t.$set(e,"value",a)},expression:"value.value"}}):t._e(),t._v(" "),t.checkType(e,i,1)?a("el-input-number",{attrs:{"auto-complete":"off"},model:{value:e.value,callback:function(a){t.$set(e,"value",a)},expression:"value.value"}}):t._e()],1):t._e()}),1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){return t.clickCancel()}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.clickOK()}}},[t._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var o=a("VU/8")(i,l,!1,function(t){a("Tuyc")},"data-v-7dca6ba8",null);e.default=o.exports}});
//# sourceMappingURL=6.d555bc8dbcb8c141f4dd.js.map