|
@@ -13,12 +13,6 @@
|
|
|
<el-table-column prop="name" label="姓名" width="120">
|
|
<el-table-column prop="name" label="姓名" width="120">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="address" label="地址" :formatter="formatter">
|
|
<el-table-column prop="address" label="地址" :formatter="formatter">
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column label="头像">
|
|
|
|
|
- <template scope="scope">
|
|
|
|
|
- <img :src="scope.row.logo">
|
|
|
|
|
- </template>
|
|
|
|
|
-
|
|
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" width="180">
|
|
<el-table-column label="操作" width="180">
|
|
|
<template scope="scope">
|
|
<template scope="scope">
|
|
@@ -43,6 +37,7 @@
|
|
|
export default {
|
|
export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ url: '../../../static/vuetable.json',
|
|
|
tableData: [],
|
|
tableData: [],
|
|
|
cur_page: 1
|
|
cur_page: 1
|
|
|
}
|
|
}
|
|
@@ -57,8 +52,11 @@
|
|
|
},
|
|
},
|
|
|
getData(){
|
|
getData(){
|
|
|
let self = this;
|
|
let self = this;
|
|
|
- this.$axios.post('/api/table',{page:self.cur_page}).then((res) => {
|
|
|
|
|
- self.tableData = res.data.data;
|
|
|
|
|
|
|
+ if(process.env.NODE_ENV === 'development'){
|
|
|
|
|
+ self.url = '/ms/table/list';
|
|
|
|
|
+ };
|
|
|
|
|
+ self.$axios.post(self.url, {page:self.cur_page}).then((res) => {
|
|
|
|
|
+ self.tableData = res.data.list;
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
formatter(row, column) {
|
|
formatter(row, column) {
|