| | |
| | | <el-table-column v-if="tableData.length != 0" fixed type="selection" width="55"></el-table-column> |
| | | <el-table-column v-if="tableData.length != 0" fixed label="序号" type="index" width="55"> |
| | | </el-table-column> |
| | | <el-table-column v-for="item in CodeArray" v-if="!item.hidden" :label="item.label" :prop="item.prop" |
| | | <el-table-column v-for="item in CodeArray" v-if="CodeArray.length !== 0 && !item.hidden" :label="item.label" :prop="item.prop" |
| | | :show-overflow-tooltip="true" :sortable="item.sortable" :width="item.width" |
| | | align="center"> |
| | | <template slot-scope="scope"> |
| | |
| | | :width="item.width" |
| | | align="center"> |
| | | </el-table-column> |
| | | <el-table-column v-for="item in lcstatusArray" v-if="!item.hidden" label="生命周期值" prop="lcstatus" |
| | | <el-table-column v-for="item in lcstatusArray" v-if=" lcstatusArray.length !== 0 && !item.hidden" label="生命周期值" prop="lcstatus" |
| | | :show-overflow-tooltip="true" :sortable="item.sortable" :width="item.width" |
| | | align="center"> |
| | | <template slot-scope="scope"> |
| | |
| | | } |
| | | }) |
| | | this.tableHeadFindDatas = newval; |
| | | console.log('new',newval) |
| | | if (!this.isCodeArrayPushed) { |
| | | this.CodeArray.push(newval.find(item => item.prop === 'id')) |
| | | this.isCodeArrayPushed = true |
| | | }; |
| | | if (newval.find(item => item.prop === 'id')) { |
| | | this.CodeArray.push(newval.find(item => item.prop === 'id')); |
| | | } else { |
| | | this.CodeArray.push([]); |
| | | } |
| | | console.log('CodeArray', this.CodeArray); |
| | | this.isCodeArrayPushed = true; |
| | | } |
| | | if (!this.islcstatusPushed) { |
| | | this.lcstatusArray.push(newval.find(item => item.prop === 'lcstatus')) |
| | | this.islcstatusPushed = true |
| | | }; |
| | | if (newval.find(item => item.prop === 'lcstatus')) { |
| | | this.lcstatusArray.push(newval.find(item => item.prop === 'lcstatus')); |
| | | } else { |
| | | this.lcstatusArray.push([]); |
| | | } |
| | | console.log('lcstatusArray', this.lcstatusArray); |
| | | this.islcstatusPushed = true; |
| | | } |
| | | // console.log('new',newval) |
| | | this.WupinFindValue = '' |
| | | }, |