|
@@ -47,35 +47,35 @@
|
|
|
<el-table-column width="200" label="模具3D图档">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.mould3DFiles.length == 0">未上传</span>
|
|
|
- <span v-else-if="scope.row.mould3DFiles.state == 3">已通过</span>
|
|
|
+ <span v-else-if="scope.row.mould3DFilesState">已通过</span>
|
|
|
<span v-else>未通过</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column width="200" label="模具2D图档">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.mould2DFiles.length == 0">未上传</span>
|
|
|
- <span v-else-if="scope.row.mould2DFiles.state == 3">已通过</span>
|
|
|
+ <span v-else-if="scope.row.mould2DFilesState">已通过</span>
|
|
|
<span v-else>未通过</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column width="200" label="零件3D图档">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.sparepart3DFiles.length == 0">未上传</span>
|
|
|
- <span v-else-if="scope.row.sparepart3DFiles.state == 3">已通过</span>
|
|
|
+ <span v-else-if="scope.row.sparepart3DFilesState">已通过</span>
|
|
|
<span v-else>未通过</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column width="200" label="零件2D图档">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.sparepart2DFiles.length == 0">未上传</span>
|
|
|
- <span v-else-if="scope.row.sparepart2DFiles.state == 3">已通过</span>
|
|
|
+ <span v-else-if="scope.row.sparepart2DFilesState">已通过</span>
|
|
|
<span v-else>未通过</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column width="200" label="保养方案">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.maintainFiles.length == 0">未上传</span>
|
|
|
- <span v-else-if="scope.row.maintainFiles.state == 3">已通过</span>
|
|
|
+ <span v-else-if="scope.row.maintainFilesState">已通过</span>
|
|
|
<span v-else>未通过</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -136,6 +136,7 @@ export default {
|
|
|
res => {
|
|
|
if (res.code == "ok") {
|
|
|
this.documents = res.data.list;
|
|
|
+ this.total = res.data.total;
|
|
|
//对于拿到的所有数据
|
|
|
this.documents.forEach(file => {
|
|
|
var mould2DFilesState = true;
|