|
|
@ -205,7 +205,10 @@ |
|
|
|
:tableLoading = "inspectNoticeDetailsTableLoading" |
|
|
|
:isShowIndex="true" |
|
|
|
:selectionTable="false" |
|
|
|
:cellStyle = "cellStyle" |
|
|
|
:cellClassName="cellClassName" |
|
|
|
:tableBorder="true" |
|
|
|
:tableAlign="'center'" |
|
|
|
:tableHeaderAlign="'center'" |
|
|
|
@buttonClick="inspectDetailsButtonClick" |
|
|
|
> |
|
|
|
</umyTable> |
|
|
@ -843,7 +846,11 @@ export default { |
|
|
|
} |
|
|
|
) |
|
|
|
console.log(830,{id: that.masterID, summaryDetailId: that.inspectNoticeDetailsFormData.id }, that.inspectNoticeDetailsFormData) |
|
|
|
completeSummaryDetailStatus({id: that.masterID, summaryDetailId: that.inspectNoticeDetailsFormData.id }, that.inspectNoticeDetailsFormData).then(res => { |
|
|
|
completeSummaryDetailStatus( |
|
|
|
{id: that.masterID, summaryDetailId: that.inspectNoticeDetailsFormData.id }, |
|
|
|
that.inspectNoticeDetailsFormData, |
|
|
|
// 'http://dev.ccwin-in.com:60085/api/' |
|
|
|
).then(res => { |
|
|
|
// 更新数据============================================================ |
|
|
|
that.inspectNoticeDetailsShow = false |
|
|
|
this.loading = false |
|
|
@ -1034,15 +1041,16 @@ export default { |
|
|
|
this.loadingPDF = false |
|
|
|
}, |
|
|
|
//设置指定行、列、具体单元格颜色 |
|
|
|
cellStyle({row, column, rowIndex, columnIndex}){ |
|
|
|
cellClassName({row, column, rowIndex, columnIndex}){ |
|
|
|
if (row.detailInspectStatus == 1 && columnIndex === 5) { |
|
|
|
return 'background:#42a9b9;color:#fff' //默认合格 |
|
|
|
return 'cell-class-mrhg' //默认合格 |
|
|
|
} else if (row.detailInspectStatus == 2 && columnIndex === 5) { |
|
|
|
return 'background:#42b983;color:#fff'//合格 |
|
|
|
return 'cell-class-hg'//合格 |
|
|
|
} else if (row.detailInspectStatus == 3 && columnIndex === 5) { |
|
|
|
return 'background:#c3503e;color:#fff'//不合格 |
|
|
|
return 'cell-class-nohg'//不合格 |
|
|
|
}else{ |
|
|
|
return '' |
|
|
|
} |
|
|
|
return '' |
|
|
|
}, |
|
|
|
currenTabsChange(row){ |
|
|
|
this.currentTagName = row.name |
|
|
@ -1110,6 +1118,18 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
::v-deep .cell-class-mrhg{ |
|
|
|
background:#42a9b9 !important; |
|
|
|
color:#fff !important |
|
|
|
} |
|
|
|
::v-deep .cell-class-hg{ |
|
|
|
background:#42b983 !important; |
|
|
|
color:#fff !important |
|
|
|
} |
|
|
|
::v-deep .cell-class-nohg{ |
|
|
|
background:#c3503e !important; |
|
|
|
color:#fff |
|
|
|
} |
|
|
|
</style> |
|
|
|
<style lang="scss"> |
|
|
|
.upload-demo { |
|
|
|