(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0ae9a2"],{"0b82":function(e,a,t){"use strict";t.r(a);var l=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"new-app-container layout-vertical"},[t("YMTableSearch",{attrs:{loading:e.loading,"search-form":e.searchForm},on:{onValueChange:e.onValueChange,submit:e.onSubmit}}),t("YMTable",{ref:"table",attrs:{"table-key":1,index:!0,selection:!1,"table-options":e.tableOptions,"edit-form":e.editForm,"edit-config":e.editConfig,columns:e.columns,"rows-actions":e.rowsActions,"show-summary":!1,apis:e.apis,"custom-style":{height:"calc(100vh - 150px)"}}})],1)},r=[],n=(t("7db0"),t("d3b7"),[]),o=[{label:"中文",value:"zh"},{label:"英语",value:"en"},{label:"越南",value:"vi"}],i={data:function(){return{loading:!1,searchForm:[{label:"关键字",type:"input",prop:"button",clearable:!1},{label:"语言",type:"select",prop:"language",options:o,clearable:!1},{label:"说明",type:"input",prop:"explain",clearable:!1},{label:"分组",prop:"group_id",type:"select",options:[{label:"系统配置",value:0},{label:"用户配置",value:1}]}],columns:[{label:"回复关键字",prop:"button"},{label:"回复内容",prop:"reply"},{label:"语言",prop:"language",method:function(e){var a;return null===(a=o.find((function(a){return a.value===e.language})))||void 0===a?void 0:a.label}},{label:"说明",prop:"explain"}],rowsActions:[{key:"edit",label:"编辑"},{key:"delete",vIF:function(e){return 0!==e.group_id},label:"删除"}],apis:{list:{url:"/keyboard",dataParam:"data.data",resultParam:"data",init:!1},add:{url:"/keyboard/submit"},edit:{url:"/keyboard/submit"},delete:{url:"/keyboard/delete",method:"post"}},tableOptions:{add:{show:!0,initData:function(){return{buttons:n}}}},editForm:[{body:[{label:"语言",type:"select",prop:"language",options:o,clearable:!1,rules:[{required:!0,message:"语言",trigger:"change"}]},{label:"回复关键字",type:"input",prop:"button",disabled:function(e){return!!e.id&&0===e.group_id},clearable:!1,rules:[{required:!0,message:"回复关键字",trigger:"change"}]},{label:"回复内容",type:"textarea",prop:"reply",clearable:!1,rules:[{required:!0,message:"回复内容",trigger:"change"}]},{label:"说明",type:"textarea",prop:"explain",clearable:!1,rules:[{required:!0,message:"回复关键字",trigger:"change"}]},{label:"图片",type:"uploadOneImage",prop:"image",rules:[{required:!1,message:"图片",trigger:"change"}]},{label:"按钮",type:"buttons",prop:"buttons",colSpan:24}]}],editConfig:{}}},created:function(){},mounted:function(){this.onSubmit()},methods:{onValueChange:function(e){},onSubmit:function(e){this.$refs.table.getList(e)}}},u=i,s=t("2877"),p=Object(s["a"])(u,l,r,!1,null,null,null);a["default"]=p.exports}}]);