优化
Former-commit-id: afaa452d37658c5f62744d79b8512b602777e6e7 [formerly afaa452d37658c5f62744d79b8512b602777e6e7 [formerly afaa452d37658c5f62744d79b8512b602777e6e7 [formerly afaa452d37658c5f62744d79b8512b602777e6e7 [formerly b8ab7a17015b58a9454785b94a496ea1b8ef4946 [formerly 7d06c1ad50bc49569d9ff2071350b6c9f4194828]]]]] Former-commit-id: 48b8f321c6782ef9f228196af32507c6bfcbf437 Former-commit-id: 2d0d551f108a273b4b8eb89cb402e2e6223db85c Former-commit-id: 509e61862040344b57bb23a7502dc9e724412b38 [formerly 9683910aa2ca56b16b82385d2de9e1bcd9b95450] Former-commit-id: 91576efbc04a625ad457efe0738f1c96bc368b49 Former-commit-id: fe399801aa974e6dc008923e93050d256edac5db Former-commit-id: 63e0756f2d74e21bb62e977f5c2143293656811f Former-commit-id: 081a8f64bc1346b7b3520bb6ad5db2d503555012 Former-commit-id: cf76e86e9b06bb9ee9513b09772dc63a23ce72d6
This commit is contained in:
@@ -8,7 +8,7 @@ export default {
|
|||||||
title: '表格',
|
title: '表格',
|
||||||
icon: 'table',
|
icon: 'table',
|
||||||
children: [
|
children: [
|
||||||
{ path: `${pre}table/1`, title: '1' }
|
{ path: `${pre}table/1`, title: '表格 1' }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
])('/demo/business/')
|
])('/demo/business/')
|
||||||
|
|||||||
@@ -8,6 +8,8 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
|
// name 值和本页的 $route.name 一致才可以缓存页面
|
||||||
|
name: 'demo-business-table-1',
|
||||||
components: {
|
components: {
|
||||||
'DemoPageHeader': () => import('./componnets/PageHeader'),
|
'DemoPageHeader': () => import('./componnets/PageHeader'),
|
||||||
'DemoPageMain': () => import('./componnets/PageMain'),
|
'DemoPageMain': () => import('./componnets/PageMain'),
|
||||||
@@ -20,11 +22,23 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleSubmit (form) {
|
handleSubmit (form) {
|
||||||
|
this.$message({
|
||||||
|
message: '开始请求表格数据',
|
||||||
|
type: 'info'
|
||||||
|
})
|
||||||
this.$axios.post('/api/demo/business/table/1', form)
|
this.$axios.post('/api/demo/business/table/1', form)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
|
this.$message({
|
||||||
|
message: '表格数据请求完毕',
|
||||||
|
type: 'success'
|
||||||
|
})
|
||||||
this.table = res.list
|
this.table = res.list
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
|
this.$message({
|
||||||
|
message: '表格数据请求异常',
|
||||||
|
type: 'error'
|
||||||
|
})
|
||||||
console.log('err', err)
|
console.log('err', err)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user