|
|
|
@ -314,10 +314,18 @@ |
|
|
|
<a type="text" size="small" v-if="shouldShowDelete(scope.row)" @click="massProductionDocumentDelete(scope.row)">删除</a> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="序号" type="index" align="center" :index="indexMethod"></el-table-column> |
|
|
|
<el-table-column label="序号" type="index" align="center" :index="indexMethod"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span :style="{ color: scope.row.uploadedFlag === 'Y' ? 'green' : '' }"> |
|
|
|
{{ scope.$index + 1 }} |
|
|
|
</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="文档类型" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span :style="{ color: scope.row.uploadedFlag === 'Y' ? '#029315' : '' }"> |
|
|
|
{{ getCombinedDocumentType(scope.row) }} |
|
|
|
</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
@ -331,9 +339,16 @@ |
|
|
|
:min-width="item.columnWidth" |
|
|
|
:label="item.columnLabel"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div v-if="scope.row.uploadedFlag === 'Y'"> |
|
|
|
<span v-if="!item.columnHidden" style="color: #029315;">{{scope.row[item.columnProp]}}</span> |
|
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
|
style="width: 100px; height: 80px"/></span> |
|
|
|
</div> |
|
|
|
<div v-else> |
|
|
|
<span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span> |
|
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
|
style="width: 100px; height: 80px"/></span> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
@ -348,10 +363,18 @@ |
|
|
|
ref="projectAllDocumentDocumentTable" |
|
|
|
@row-click="projectAllDocumentClickRow" |
|
|
|
v-loading="dataListLoading"> |
|
|
|
<el-table-column label="序号" type="index" align="center" :index="indexMethod"></el-table-column> |
|
|
|
<el-table-column label="序号" type="index" align="center" :index="indexMethod"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span :style="{ color: scope.row.uploadedFlag === 'Y' ? 'green' : '' }"> |
|
|
|
{{ scope.$index + 1 }} |
|
|
|
</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="文档类型" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span :style="{ color: scope.row.uploadedFlag === 'Y' ? '#029315' : '' }"> |
|
|
|
{{ getCombinedDocumentType(scope.row) }} |
|
|
|
</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
@ -365,9 +388,16 @@ |
|
|
|
:min-width="item.columnWidth" |
|
|
|
:label="item.columnLabel"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div v-if="scope.row.uploadedFlag === 'Y'"> |
|
|
|
<span v-if="!item.columnHidden" style="color: #029315;">{{scope.row[item.columnProp]}}</span> |
|
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
|
style="width: 100px; height: 80px"/></span> |
|
|
|
</div> |
|
|
|
<div v-else> |
|
|
|
<span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span> |
|
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
|
style="width: 100px; height: 80px"/></span> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
@ -2807,6 +2837,12 @@ import {EventBus} from "../../../main"; |
|
|
|
this.searchData1.testPartNo = this.$route.query.testPartNo; |
|
|
|
this.agencyMatters = true; |
|
|
|
} |
|
|
|
// 获取 URL 查询参数 |
|
|
|
const { projectPartId } = this.$route.query; |
|
|
|
// 将查询参数赋值给 searchData |
|
|
|
if (projectPartId){ |
|
|
|
this.searchData.projectPartId = projectPartId |
|
|
|
} |
|
|
|
// 获取数据列表 |
|
|
|
this.getDataList() |
|
|
|
} |
|
|
|
|