| | |
| | | <el-table ref="eltable" :data="tableData" style="width: 100%;" height="100%" tooltip-effect="dark" border |
| | | @selection-change="selectChange" @select="select" v-loading="loading" @sort-change="sortChange" |
| | | @row-click="rowClick" :show-summary="data.countFleid!=undefined && data.countFleid.length > 0" |
| | | :summary-method="getSummaries" :key="Math.random()" :row-class-name="tableRowClassName"> |
| | | :summary-method="getSummaries" :row-class-name="tableRowClassName"> |
| | | <el-table-column type="selection" width="65" v-if="data.showSelect" :key="Math.random()"> |
| | | </el-table-column> |
| | | <el-table-column type="index" align="center" label="序号" width="70" v-if="data.isIndex" :key="Math.random()"> |
| | |
| | | return |
| | | } |
| | | for (var i = 0; i < this.data.requiredUp.length; i++) { |
| | | if (this.upData[this.data.requiredUp[i]] == null || this.upData[this.data.requiredUp[i]] == '') { |
| | | if (this.upData[this.data.requiredUp[i]] === null || this.upData[this.data.requiredUp[i]] === '') { |
| | | var list = this.upHead.filter(a => { |
| | | if (a.label == this.data.requiredUp[i]) return a |
| | | }) |
| | |
| | | if(val.method=='doDiy'){ |
| | | this.main(row,val) |
| | | }else{ |
| | | this.$emit(val.method,row) |
| | | this.$parent[val.method](row) |
| | | } |
| | | }, |
| | | getWidth(){ |