|
|
@ -58,7 +58,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import AddOrUpdate from './${pathName}-add-and-update'
|
|
|
|
import AddOrUpdate from './${pathName}-add-and-update'
|
|
|
|
import * as api from './${pathName}api.js'
|
|
|
|
import * as api from '@/api/${pathName}.js'
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
data () {
|
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
@ -85,7 +85,11 @@
|
|
|
|
getDataList () {
|
|
|
|
getDataList () {
|
|
|
|
this.dataListLoading = true
|
|
|
|
this.dataListLoading = true
|
|
|
|
api.${pathName}ListApi().then(res => {
|
|
|
|
api.${pathName}ListApi().then(res => {
|
|
|
|
// TODO 获取数据列表
|
|
|
|
this.dataListLoading = false
|
|
|
|
|
|
|
|
this.dataList = res.list || [];
|
|
|
|
|
|
|
|
this.totalPage = res.total;
|
|
|
|
|
|
|
|
}).catch(e => {
|
|
|
|
|
|
|
|
this.dataListLoading = false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 每页数
|
|
|
|
// 每页数
|
|
|
@ -122,10 +126,11 @@
|
|
|
|
}).then(() => {
|
|
|
|
}).then(() => {
|
|
|
|
api.${pathName}DeleteApi(id).then(res => {
|
|
|
|
api.${pathName}DeleteApi(id).then(res => {
|
|
|
|
// TODO 处理删除
|
|
|
|
// TODO 处理删除
|
|
|
|
|
|
|
|
#[[this.$message.success('删除成功')]]#
|
|
|
|
|
|
|
|
this.getDataList()
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|