(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0024bbaa"],{"0981":function(t,e,i){"use strict";i("0c85")},"0c85":function(t,e,i){},a7b8:function(t,e,i){"use strict";i.r(e);var l=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("pageGenerator",{attrs:{apiConfig:t.apiConfig,columns:t.columns,pageConfig:t.pageConfig,filterConfig:t.filterConfig,actionConfig:t.actionConfig},scopedSlots:t._u([{key:"userInfo",fn:function(e){var l=e.row;return[i("div",{staticClass:"flex align-center"},[i("img",{staticStyle:{width:"40px",height:"40px"},attrs:{src:l.avatar}}),i("span",{staticClass:"padding-left-sm"},[t._v(" "+t._s(l.nickname))])])]}}])}),i("el-dialog",{attrs:{visible:t.dialogVisible,title:"提交详情",width:"50%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("div",{staticClass:"dialog-content"},[i("el-form",{attrs:{"label-width":"100px"}},[t._l(t.content,(function(e){return["image"==e.type?[i("el-form-item",{key:e.label,attrs:{label:e.label}},[i("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:e.value,alt:"","preview-src-list":[e.value]}})],1)]:"images"==e.type?[i("el-form-item",{key:e.label,attrs:{label:e.label}},[i("div",{staticClass:"img-wrap"},t._l(e.value,(function(t){return i("el-image",{key:t,staticStyle:{width:"100px",height:"100px"},attrs:{src:t,alt:"","preview-src-list":e.value}})})),1)])]:"select"==e.type?[i("el-form-item",{key:e.label,attrs:{label:e.label}},[i("el-input",{attrs:{value:e.value.join(","),disabled:""}})],1)]:[i("el-form-item",{key:e.label,attrs:{label:e.label}},[i("el-input",{attrs:{value:e.value,disabled:""}})],1)]]}))],2)],1)])],1)},a=[],o=i("7f70"),n=(i("9ca6"),i("5c41"),i("0c43"),i("6994"),{name:"CommonList",data:function(){return{pageConfig:{showAdd:!1,showRefresh:!0,showSelection:!1,showBatchDel:!1,showPagination:!0,showExport:!1,listQueryConfig:{page:1,limit:10,form_id:""}},filterConfig:[{label:"表单",prop:"form_id",type:"select",options:[]}],apiConfig:{getList:"form/record/getList",del:"form/record/delete"},columns:[{label:"ID",prop:"id",width:60},{label:"提交表单",prop:"title"},{label:"用户信息",prop:"userInfo",slot:"userInfo"},{label:"创建时间",prop:"createtime"}],actionConfig:[{label:"查看",type:"primary",size:"mini",icon:"el-icon-view",click:this.customClick,layout:"table"},{label:"导出",type:"primary",size:"normal",icon:"el-icon-download",click:this.exportClick,layout:"top",tooltip:"图片仅导出为链接，其他数据正常导出"},{label:"删除",type:"danger",size:"mini",icon:"el-icon-delete",click:"del",layout:"table"}],dialogVisible:!1,content:[]}},created:function(){this.getFormList()},methods:{customClick:function(t,e){this.dialogVisible=!0,this.content=t.content},exportClick:function(t,e){if(e.form_id){var i=this.$util.getUrl("form/record/getList",Object(o["a"])(Object(o["a"])({},e),{},{export:1}));window.open(i)}else this.$util.error("请选择表单")},getFormList:function(){var t=this;this.api.get("form/form/all").then((function(e){1==e.code?t.filterConfig[0].options=e.data.list.map((function(t){return{label:t.title,value:t.id}})):(t.$util.error(e.message||e.msg||"数据异常"),t.filterConfig[0].options=[])}))}}}),s=n,r=(i("0981"),i("3d7a")),c=Object(r["a"])(s,l,a,!1,null,"3caf04cb",null);e["default"]=c.exports}}]);