| | |
| | | :prop="item.prop" |
| | | :sortable="item.sortable" |
| | | :formatter="formatBoolean" |
| | | :width="item.label.length >=4 ?'150':item.label.length==3 ?'120':'90'" |
| | | :show-overflow-tooltip="true" |
| | | align="center" |
| | | > |
| | | <!-- 编辑和展示逻辑 --> |
| | | <!-- <template slot-scope="{ row }">--> |
| | |
| | | this.doLayout(); |
| | | }, |
| | | watch: { |
| | | tableHeadDataFateher:{ |
| | | handler(newval,oldval){ |
| | | this.options=newval.tableDefineVO.seniorQueryColumns |
| | | } |
| | | }, |
| | | codeClassifyOid: { |
| | | handler(newval, oldval) { |
| | | this.codeClassifyOid = newval; |
| | |
| | | // 转换数据true和false |
| | | formatBoolean(row, column) { |
| | | if (column.property === "xiaoshouwl" |
| | | ||column.property === "shifoupihaoguanli" |
| | | ||column.property === "caigouwl" |
| | | ||column.property === "kucunwl" |
| | | ||column.property === "shifoupihaoguanli" |
| | | ||column.property === "caigouwl" |
| | | ||column.property === "kucunwl" |
| | | ||column.property === "passing") { |
| | | return row[column.property] =='true'? "是" : "否"; |
| | | } |
| | |
| | | this.rowOid = ""; |
| | | } |
| | | this.selectRow = row; |
| | | this.parameter.ids = []; |
| | | row.forEach((item) => { |
| | | this.parameter.ids.push(item.oid); |
| | | }); |
| | |
| | | ...val, |
| | | }).then((res) => { |
| | | console.log(res); |
| | | this.tableData=res.data.data; |
| | | this.page.total=res.data.total |
| | | }); |
| | | }, |
| | | //相似项查询 |
| | |
| | | background-color: #f5f7fa !important; |
| | | } |
| | | } |
| | | |
| | | /deep/ .el-button { |
| | | margin: 0 10px 10px 0; |
| | | } |
| | | |
| | | |
| | | </style> |