(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d21ab49"],{bd3d:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("el-dialog",{attrs:{title:"设置表格",visible:e.showDialog},on:{"update:visible":function(t){e.showDialog=t}}},[t("p",[e._v("行配置")]),t("el-form",{staticClass:"demo-ruleForm mt-20",attrs:{"label-width":"101px"}},[t("el-form-item",{attrs:{label:"隐藏无数据行"}},[t("el-radio-group",{model:{value:e.is_hide,callback:function(t){e.is_hide=t},expression:"is_hide"}},[t("el-radio",{attrs:{label:1}},[e._v(" 是 ")]),t("el-radio",{attrs:{label:0}},[e._v(" 否 ")])],1)],1)],1),t("p",[e._v("列配置")]),t("el-tree",{attrs:{data:e.tableHeadOrigin,"show-checkbox":"",props:e.treeProps,"node-key":"columnKey","default-expand-all":"","default-checked-keys":e.tableHeadSelected},on:{"check-change":e.getSelected}}),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(t){e.showDialog=!1}}},[e._v(" 取消 ")]),t("el-button",{attrs:{type:"primary",loading:e.submitLoad},on:{click:e.setTableHead}},[e._v(" 确定 ")])],1)],1)],1)},l=[],s=i("9ab4"),o=i("60a3"),d=i("f727");let c=class extends o["f"]{constructor(){super(...arguments),this.is_hide=0,this.submitLoad=!1,this.tableHeadSelected=[],this.tableHeadOrigin=[],this.treeProps={children:"columnInside",label:"columnName"}}getSelected(e){this.tableHeadSelected.includes(e.columnKey)?this.tableHeadSelected.splice(this.tableHeadSelected.findIndex(t=>t===e.columnKey),1):this.tableHeadSelected.splice(this.tableHeadOrigin.findIndex(t=>t.columnKey===e.columnKey),0,e.columnKey)}async setTableHead(){this.submitLoad=!0;const e={details:this.tableHeadSelected.join(","),tab_code:this.tabCode,effect_type:1,is_hide:this.is_hide},{data:t}=await Object(d["H"])("/statistic/tableConfig/setTableConfig",e);this.tableHeadOrigin=t.details_str,this.submitLoad=!1,this.showDialog=!1,this.$emit("search")}async getTableHeadOrigin(e){if(!e)return;const{data:t}=await Object(d["H"])("statistic/tableConfig/getTableConfigOrg",{tab_code:this.tabCode,effect_type:1,is_hide:this.is_hide});this.tableHeadOrigin=t.details_str,this.is_hide=t.is_hide,this.tableHeadSelected=t.account_table_config_info.split(",")}};Object(s["a"])([Object(o["d"])("visible")],c.prototype,"showDialog",void 0),Object(s["a"])([Object(o["c"])()],c.prototype,"tabCode",void 0),Object(s["a"])([Object(o["g"])("showDialog")],c.prototype,"getTableHeadOrigin",null),c=Object(s["a"])([Object(o["a"])({})],c);var n=c,b=n,r=i("2877"),h=Object(r["a"])(b,a,l,!1,null,"3510b2c0",null);t["default"]=h.exports}}]);
//# sourceMappingURL=chunk-2d21ab49.96b2af21.js.map