|
@@ -684,7 +684,10 @@ export default {
|
|
|
}
|
|
|
// this.tableData = []
|
|
|
this.$api.selectCompareRecord(a).then(response=>{
|
|
|
- if(response.code == 200){
|
|
|
+ if (response.code == 200) {
|
|
|
+ if (response.data.length == 0) {
|
|
|
+ return false
|
|
|
+ }
|
|
|
this.CompareRecord = JSON.parse(JSON.stringify(response.data.records))
|
|
|
// //console.log(response.data)
|
|
|
var b = JSON.parse(JSON.stringify(this.tableData[0]))
|