(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d21f0bd"],{d7c7:function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"new-app-container layout-vertical"},[a("YMTable",{ref:"table",attrs:{"table-key":2,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)},n=[],i=a("7e1e"),r={name:"BannerList",data:function(){var e=this;return{loading:!1,searchForm:[],columns:[{label:"Banner标题",prop:"title"},{label:"Banner图片",image:!0,prop:"image"},{label:"跳转链接",prop:"link"},{label:"排序",prop:"sort"},{label:"类型",prop:"type",method:function(e){return"app"===e.type?"APP":"PC"}},{label:"语种",prop:"lang"},{label:"创建时间",prop:"create_time"}],rowsActions:[{key:"edit",label:"编辑"},{key:"delete",label:"删除",method:function(t){e.$confirm("此操作将永久删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(i["f"])({id:t.id}).then((function(){e.$refs.table.getList()}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))}}],apis:{list:{url:"banner/index",dataParam:"data.data",resultParam:"data",init:!1},add:{url:"banner/update"},edit:{url:"banner/update"},delete:{url:"banner/delete",method:"get"}},tableOptions:{add:{show:!0}},editForm:[{body:[{label:"Banner标题",type:"input",prop:"title",rules:[{required:!0,message:"请输入标题",trigger:"blur"}]},{label:"展示图片",type:"uploadOneImage",prop:"image",rules:[{required:!0,message:"请上传图片",trigger:"change"}]},{label:"跳转链接",type:"input",prop:"link",placeholder:"请输入跳转URL"},{label:"排序值",type:"inputNumber",prop:"sort",defaultValue:0},{label:"语种",type:"select",prop:"lang",options:[{label:"中文简体",value:"zh"},{label:"Vietnamese",value:"vi"},{label:"English",value:"en"}],rules:[{required:!0,message:"请选择语种",trigger:"change"}]},{label:"类型",type:"select",prop:"type",options:[{label:"APP",value:"app"},{label:"PC",value:"pc"}],rules:[{required:!0,message:"请选择类型",trigger:"change"}]}]}],editConfig:{}}},mounted:function(){this.onSubmit()},methods:{onValueChange:function(e){},onSubmit:function(e){this.$refs.table.getList(e)}}},o=r,s=a("2877"),p=Object(s["a"])(o,l,n,!1,null,null,null);t["default"]=p.exports}}]);