|
@@ -19,7 +19,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<span>
|
|
|
<el-link type="primary" @click="editContrast(scope.row)"
|
|
|
- >{{ scope.row.type == 0?scope.row.literatureNo:scope.rwo.name }}(D{{ scope.row.sysOrder }})</el-link
|
|
|
+ >{{ scope.row.type == 0?scope.row.literatureNo:scope.row.name }}(D{{ scope.row.sysOrder }})</el-link
|
|
|
>
|
|
|
</span>
|
|
|
<el-tag
|
|
@@ -38,7 +38,7 @@
|
|
|
min-width="300px"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <div v-for="item in scope.row.recordList" :key="item.evidenceId">
|
|
|
+ <div v-for="(item,index1) in getRecordList(scope.row)" :key="index1">
|
|
|
<p>
|
|
|
<span>
|
|
|
<el-link style="color:red;margin-left:10px" @click="delContrast(item.evidenceId)">删除</el-link>
|
|
@@ -72,8 +72,8 @@
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<div
|
|
|
- v-for="item in scope.row.recordList"
|
|
|
- :key="item.evidenceId"
|
|
|
+ v-for="(item,index2) in scope.row.recordList"
|
|
|
+ :key="index2"
|
|
|
>
|
|
|
<p>
|
|
|
<span>
|
|
@@ -130,6 +130,13 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ getRecordList(row){
|
|
|
+ return row.recordList.filter((item, index, self) =>
|
|
|
+ index === self.findIndex((t) => (
|
|
|
+ t.id === item.id
|
|
|
+ ))
|
|
|
+ )
|
|
|
+ },
|
|
|
getData(){
|
|
|
var data = {}
|
|
|
for(var i = 0;i<this.tableHeader.length;i++){
|