(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-cecc2e1a"],{"4e9a":function(t,a,e){"use strict";e("6a2c")},"6a2c":function(t,a,e){},"6c7c":function(t,a,e){"use strict";e.r(a);var l=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"data-info"},[e("el-card",[e("el-form",{attrs:{model:t.dataForm,"label-width":"120px"}},[e("el-form-item",{attrs:{label:"组件类型:"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择类型",size:"large"},on:{change:t.onChangeStatus},model:{value:t.dataForm.type,callback:function(a){t.$set(t.dataForm,"type",a)},expression:"dataForm.type"}},t._l(t.typeList,(function(t){return e("el-option",{key:t.value,attrs:{label:t.text,value:t.value}})})),1)],1),e("el-form-item",{attrs:{label:"组件名称:"}},[e("el-input",{model:{value:t.dataForm.title,callback:function(a){t.$set(t.dataForm,"title",a)},expression:"dataForm.title"}})],1),e("el-form-item",{attrs:{label:"产品状态:"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择状态",size:"large"},on:{change:t.onChangeStatus},model:{value:t.dataForm.statusName,callback:function(a){t.$set(t.dataForm,"statusName",a)},expression:"dataForm.statusName"}},t._l(t.statusOptions,(function(t){return e("el-option",{key:t.status,attrs:{label:t.name,value:t.status}})})),1)],1),e("el-form-item",{attrs:{label:"说明介绍:"}},[e("el-input",{attrs:{type:"textarea"},model:{value:t.dataForm.title,callback:function(a){t.$set(t.dataForm,"title",a)},expression:"dataForm.title"}})],1),1==t.dataForm.type?e("el-form-item",{attrs:{label:"组件内容:"}},[e("Tinymce")],1):t._e()],1)],1),e("div",{staticStyle:{"text-align":"right","margin-top":"20px"}},[e("el-button",{attrs:{type:"warning"},on:{click:t.btnSave}},[t._v("确认保存")])],1)],1)},n=[],o=(e("a9e3"),e("8256")),s={components:{Tinymce:o["a"]},emits:["onClose"],props:{id:{type:Number,default:0}},watch:{id:{handler:function(t){var a=this;null==t||t<0||a.getInfo(t)},immediate:!0,deep:!0}},data:function(){return{activeName:"base",currentCategory:[],allCategories:[],typeList:[{value:1,text:"文本"},{value:2,text:"二维表"}],dataForm:{type:1,prod:{items:[]}},statusOptions:[{status:5,name:"启用"},{status:6,name:"停用"}]}},mounted:function(){var t=this;t.initAllCategory()},methods:{btnSave:function(t){var a=this;if(""!=a.dataForm.title)a.dataForm.id,a.dataForm.title,a.dataForm.status,a.dataForm.categoryId,a.dataForm.sku;else a.$alert("产品标题不能为空")},getInfo:function(t){},onChangeStatus:function(t){this.dataForm.status=t},onChangeCategory:function(t){var a=this;a.dataForm.categoryId=t},initAllCategory:function(){}}},r=s,i=(e("4e9a"),e("2877")),u=Object(i["a"])(r,l,n,!1,null,null,null);a["default"]=u.exports}}]);