|
@@ -1,5 +1,5 @@
|
|
|
|
|
|
-export default function getChainDetail ({ row }) {
|
|
|
|
|
|
+export default function getChainDetail ({ row, cache }) {
|
|
return new Promise(resolve => {
|
|
return new Promise(resolve => {
|
|
const patchNum = {
|
|
const patchNum = {
|
|
nodeType: 'item',
|
|
nodeType: 'item',
|
|
@@ -209,10 +209,10 @@ export default function getChainDetail ({ row }) {
|
|
farm: [],
|
|
farm: [],
|
|
report: '',
|
|
report: '',
|
|
}
|
|
}
|
|
- if (row) {
|
|
|
|
- console.log(row)
|
|
|
|
|
|
+ const data = row || cache
|
|
|
|
+ if (data) {
|
|
Object.keys(value).forEach(i => {
|
|
Object.keys(value).forEach(i => {
|
|
- value[i] = row[i]
|
|
|
|
|
|
+ value[i] = data[i]
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|