Commit ebd0441d by 潘际乾

docpan 更新

parent 4c1ca71e
...@@ -70,15 +70,17 @@ export default { ...@@ -70,15 +70,17 @@ export default {
return arr; return arr;
}, },
tableData() { tableData() {
const temp = this.column; // const temp = this.column;
const res = []; // const res = [];
return this.list.map((row) => { // return this.list.map((row) => {
const res = {} // const res = {}
for (let i = 0; i < temp.length; i++) { // for (let i = 0; i < temp.length; i++) {
res[temp[i]] = row[temp[i]]; // res[temp[i]] = row[temp[i]];
} // }
return res; // return res;
}); // });
return this.list;
}, },
}, },
data() { data() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment