(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0abdff"],{"16ae":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",[a("el-button",{staticClass:"mb20",attrs:{size:"small",type:"primary"},on:{click:t.onAdd}},[t._v("添加表单")]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{data:t.tableData.data,size:"small"}},[a("el-table-column",{attrs:{label:"ID",prop:"form_id","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{label:"表单名称",prop:"name","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"添加时间","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{prop:"update_time",label:"更新时间","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"60",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onEdit(e.row.form_id)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.form_id,e.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{background:"","page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},i=[],o=a("83d6"),r=a("90e7"),s={name:"formList",data:function(){return{roterPre:o["roterPre"],isChecked:!1,listLoading:!0,total:0,tableData:{data:[]},tableFrom:{page:1,limit:20}}},mounted:function(){this.getList()},methods:{getList:function(){var t=this;this.listLoading=!0,Object(r["T"])(this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.total=e.data.count,t.listLoading=!1})).catch((function(e){t.listLoading=!1,t.$message.error(e.message)}))},pageChange:function(t){this.tableData.page=t,this.getList()},handleSizeChange:function(t){this.tableData.limit=t,this.getList()},onAdd:function(){this.$router.push({path:"".concat(o["roterPre"],"/systemForm/form_create"),query:{id:0}})},onDetails:function(t){this.$router.push({path:"".concat(o["roterPre"],"/systemForm/form_detail/").concat(t)})},onEdit:function(t){this.$router.push({path:"".concat(o["roterPre"],"/systemForm/form_create"),query:{id:t}})},handleDelete:function(t,e){var a=this;this.$confirm("删除后不可恢复,请谨慎操作!确定要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(r["j"])(t).then((function(t){var e=t.message;a.$message.success(e),a.getList()})).catch((function(t){var e=t.message;a.$message.error(e)}))})).catch((function(){a.$message({type:"info",message:"已取消删除"})}))}}},l=s,c=a("2877"),u=Object(c["a"])(l,n,i,!1,null,"18649a04",null);e["default"]=u.exports}}]);