| 1 |
- "use strict";(self["webpackChunkyos_manage"]=self["webpackChunkyos_manage"]||[]).push([[3423],{63423:function(e,t,a){a.r(t),a.d(t,{default:function(){return r}});var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"bs-table",staticStyle:{height:"calc(100vh - 330px)"}},[a("el-table",{ref:"tables",staticStyle:{width:"100%"},attrs:{border:"",stripe:"","row-class-name":e.tableClassName,"header-cell-style":{background:"#fafafafa",height:"40px",color:"#000000"},"highlight-current-row":"",data:e.data,size:"mini",height:"100%"},on:{"row-click":e.rowClick,"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45",align:"center"},on:{handleSelectionChange:e.handleSelectionChange}}),e._l(e.layout,(function(t){return a("el-table-column",{key:t.tablecolid,attrs:{"show-overflow-tooltip":"",prop:t.columnname,label:t.title,width:t.width?t.width:0,"min-width":0===t.width?150:t.width,fixed:e.checkFixed(t.columnname)},scopedSlots:e._u([{key:"default",fn:function(a){return["operation"!==t.columnname?e._t("customcol",null,{column:{data:a.row,columnname:t.columnname}}):e._e(),"operation"===t.columnname?e._t("opreation",null,{data:a.row}):e._e()]}}],null,!0)})}))],2)],1)},n=[],i=a(20629),o={props:["data","tableName","custom","layout","fixRightData","fixLeftData"],data(){return{list:[],act_column:"",value:"",show:!1}},computed:{...(0,i.Se)({loading:"loading"})},watch:{tableName(){this.$nextTick((()=>{this.$refs.tables.doLayout()}))}},methods:{rowClick(e){this.$emit("rowClick",e)},tableClassName({row:e,rowIndex:t}){e.index=t},handleSelectionChange(e){this.$emit("checkboxCallBack",e)},checkFixed(e){let t=this.fixRightData.some((t=>t===e)),a=this.fixLeftData.some((t=>t===e));return t?"right":a?"left":void 0},headerSearch(e){this.show=!1,this.$emit("headerSearch",e,this.value)},inputChange(e){this.value=e}},mounted(){}},c=o,h=a(43736),s=(0,h.Z)(c,l,n,!1,null,"0d66c9bb",null),r=s.exports}}]);
|