页面优化

This commit is contained in:
zhanyunjiu
2022-07-06 18:32:18 +08:00
parent ba60baa316
commit c4c1a1bd76
4 changed files with 31 additions and 6 deletions
+1 -1
View File
@@ -42,7 +42,7 @@
<el-table-column label="序列号" align="center" prop="id" />
<el-table-column label="作物名" align="center" prop="resourceType" >
<template slot-scope="scope">
<span> {{cropList.find(t=>t.id == scope.row.cropId ).name}} </span>
<span v-if="scope.row.cropId"> {{cropList.find(t=>t.id == scope.row.cropId ).name}} </span>
</template>
</el-table-column>
<el-table-column label="出入库" align="center" prop="type" />