(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-238e1e18"],{"481a":function(t,e,i){"use strict";i("8911")},8911:function(t,e,i){},f73d:function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"add-member-dialog-container"},[e("el-dialog",{attrs:{visible:t.dialogVisibleSync,width:"1000px",top:"5vh"},on:{"update:visible":function(e){t.dialogVisibleSync=e},close:t.handleClose},scopedSlots:t._u([{key:"title",fn:function(){return[e("div",[t._v("设置显示字段")])]},proxy:!0},{key:"footer",fn:function(){return[e("div",{staticClass:"dialog-footer"},[e("div",[e("el-button",{on:{click:function(e){t.dialogVisibleSync=!1}}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary",loading:t.customTextLoading},on:{click:t.handleSubmit}},[t._v("确 定")])],1)])]},proxy:!0}])},[e("div",[e("div",{staticClass:"custom-content"},[e("div",{staticClass:"c-left"},[e("el-checkbox-group",{attrs:{min:5},model:{value:t.checkedTexts,callback:function(e){t.checkedTexts=e},expression:"checkedTexts"}},t._l(t.columnKeyList,(function(i){return e("el-checkbox",{key:i.columnKey,attrs:{label:i.columnKey},on:{change:e=>{t.handleSetSelectList(e,i)}}},[t._v(t._s(i.columnName))])})),1)],1),e("div",{staticClass:"c-right"},[e("div",{staticClass:"right-header"},[e("span",[t._v("当前选定的字段")])]),e("div",{staticClass:"right-draggable"},[e("draggable",{key:1,attrs:{handle:".draggable-icon",forceFallback:"true",animation:"100"},model:{value:t.selectList,callback:function(e){t.selectList=e},expression:"selectList"}},[e("transition-group",t._l(t.selectList,(function(i,s){return e("div",{key:i.columnKey,staticClass:"draggable-item"},[e("div",{staticClass:"flex mr20"},[e("svg-icon",{staticClass:"mr10 draggable-icon pointer",attrs:{name:"draggable"}}),e("span",{staticClass:"column-name"},[t._v(" "+t._s(i.columnName))])],1),e("i",{staticClass:"el-icon-delete close-icon",on:{click:function(e){return t.handleDelItem(s,i)}}})])})),0)],1)],1)])])])])],1)},c=[],a=(i("caad"),i("14d9"),i("e9f5"),i("910d"),i("f665"),i("7d54"),i("ab43"),i("9ab4")),l=i("60a3"),n=i("b32d");const o=t=>Object(n["a"])({url:"/statistic/tableConfig/getTableConfigOrg",method:"post",data:t}),d=t=>Object(n["a"])({url:"/statistic/tableConfig/setTableConfig",method:"post",data:t});var r=i("b76a"),u=i.n(r);let h=class extends l["f"]{constructor(){super(...arguments),this.selectList=[],this.checkedTexts=[],this.columnKeyList=[],this.customTextLoading=!1}get details(){return this.selectList.map(t=>t.columnKey).join(",")}handleSetSelectList(t,e){t?this.selectList.push(e):this.selectList.splice(this.selectList.findIndex(t=>t.columnKey==e.columnKey),1)}handleDelItem(t,e){const i=this.checkedTexts.findIndex(t=>t===e.columnKey);this.checkedTexts.splice(i,1),this.selectList.splice(t,1)}handleClose(){this.dialogVisibleSync=!1}async handleSubmit(){this.customTextLoading=!0;try{await d({details:this.details,tab_code:this.config.tab_code}),this.customTextLoading=!1,this.dialogVisibleSync=!1,this.$emit("handleHeader")}catch(t){this.customTextLoading=!1}}async getTableConfigOrg(t){if(!t)return;const{data:e}=await o({tab_code:this.config.tab_code}),i=e.details_str.map(t=>t.columnKey);this.checkedTexts=e.account_table_config_info.split(",").filter(t=>i.includes(t)),this.columnKeyList=e.details_str;const s=[];this.checkedTexts.forEach(t=>{s.push(this.columnKeyList.find(e=>e.columnKey===t))}),this.selectList=s}};Object(a["a"])([Object(l["d"])("dialogVisible",{type:Boolean,default:!1})],h.prototype,"dialogVisibleSync",void 0),Object(a["a"])([Object(l["c"])({type:Object})],h.prototype,"config",void 0),Object(a["a"])([Object(l["g"])("dialogVisibleSync")],h.prototype,"getTableConfigOrg",null),h=Object(a["a"])([Object(l["a"])({name:"CustomText",components:{draggable:u.a}})],h);var b=h,g=b,m=(i("481a"),i("2877")),f=Object(m["a"])(g,s,c,!1,null,"4e6033c3",null);e["default"]=f.exports}}]);
//# sourceMappingURL=chunk-238e1e18.06ebee75.js.map