text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e6296"],{9823:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-col",{attrs:{span:24}},[a("base-card",[a("avue-crud",{ref:"crud",attrs:{option:e.listOption,data:e.listData,page:e.page,"table-loading":e.loading},on:{"on-load":e.list,"row-save":e.listAdd,"row-del":e.listDelete,"row-update":e.listUpdate,"search-reset":e.searchReset,"search-change":e.searchChange,"refresh-change":e.refreshChange,"size-change":e.sizeChange,"current-change":e.currentChange},model:{value:e.listForm,callback:function(t){e.listForm=t},expression:"listForm"}})],1)],1)},i=[],s=(a("d3b7"),a("e285")),r=a("0e0b"),l={data:function(){return{query:{},listForm:{},listData:[],listOption:{tip:!1,index:!0,stripe:!0,border:!0,viewBtn:!0,height:664,align:"center",column:[{label:"分组",prop:"name",span:24,search:!0,searchSpan:24,rules:[{required:!0,message:"请输入 分组名称",trigger:"blur"},{min:2,max:32,message:"请输入 2~32 位字长的分组名称",trigger:"blur"},{pattern:/^[A-Za-z0-9\u4e00-\u9fa5]+$/,message:"请输入 正确格式的分组名称"}]},{label:"备注",prop:"description",span:24,type:"textarea",overHidden:!0,rules:[{max:380,message:"最多输入380个字符",trigger:"blur"}]},{label:"修改日期",prop:"updateTime",span:12,disabled:!0,type:"date",format:"yyyy-MM-dd HH:mm:ss",valueFormat:"yyyy-MM-dd HH:mm:ss"},{label:"创建日期",prop:"createTime",span:12,disabled:!0,type:"date",format:"yyyy-MM-dd HH:mm:ss",valueFormat:"yyyy-MM-dd HH:mm:ss"}]},loading:!0,page:{total:0,pageSize:20,currentPage:1}}},methods:{list:function(e){var t=this;this.loading=!0,s["f"].list(Object.assign({page:{current:e.currentPage,size:e.pageSize}},this.query)).then((function(e){var a=e.data;t.page.total=a.total,t.listData=a.records})).finally((function(){t.loading=!1}))},listAdd:function(e,t,a){var n=this;s["f"].add(e).then((function(){a(),n.list(n.page),Object(r["a"])()})).finally((function(){t()}))},listDelete:function(e){var t=this;this.$confirm("是否删除该条数据？","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return s["f"].delete(e.id)})).then((function(){t.list(t.page),Object(r["a"])()}))},listUpdate:function(e,t,a,n){var i=this;s["f"].update(e).then((function(){n(),i.list(i.page),Object(r["a"])()})).finally((function(){a()}))},refreshChange:function(){this.list(this.page)},currentChange:function(e){this.page.currentPage=e},sizeChange:function(e){this.page.pageSize=e},searchChange:function(e,t){this.query=e,this.list(this.page),t()},searchReset:function(){this.query={},this.list(this.page)}}},o=l,c=a("2877"),u=Object(c["a"])(o,n,i,!1,null,null,null);t["default"]=u.exports}}]);