|
|
|
|
@ -48,7 +48,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import Model from "./model.vue";
|
|
|
|
|
import Model from "./model.vue"
|
|
|
|
|
const columns = [
|
|
|
|
|
{
|
|
|
|
|
title: '巷道名称',
|
|
|
|
|
@ -88,7 +88,14 @@ export default {
|
|
|
|
|
pageNum:1,
|
|
|
|
|
pageSize:10,
|
|
|
|
|
data: [],
|
|
|
|
|
pagination: {},
|
|
|
|
|
pagination:{
|
|
|
|
|
total:0,
|
|
|
|
|
defaultPageSize:10, // 默认每页显示数量
|
|
|
|
|
showTotal: total => `共 ${total} 条数据`, // 显示总数
|
|
|
|
|
showSizeChanger:true, // 显示可改变每页数量
|
|
|
|
|
pageSizeOptions: ['10', '20', '30'],
|
|
|
|
|
onShowSizeChange:(current, pageSize)=>this.pageSize = pageSize // 改变每页数量时更新显示
|
|
|
|
|
},
|
|
|
|
|
loading: false,
|
|
|
|
|
columns,
|
|
|
|
|
visible:false,
|
|
|
|
|
@ -100,14 +107,27 @@ export default {
|
|
|
|
|
this.handleGetStreetList()
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
handleGetStreetList(){
|
|
|
|
|
handleGetStreetList(pagination) {
|
|
|
|
|
console.log(pagination)
|
|
|
|
|
if(pagination){
|
|
|
|
|
this.pagination.current = pagination.current;
|
|
|
|
|
this.pagination.pageSize = pagination.pageSize;
|
|
|
|
|
this.pageNum = pagination.current;
|
|
|
|
|
this.pageSize = pagination.pageSize;
|
|
|
|
|
}
|
|
|
|
|
this.request();
|
|
|
|
|
},
|
|
|
|
|
request(){
|
|
|
|
|
this.$api.httpApi.getStreetList({
|
|
|
|
|
data: {
|
|
|
|
|
pageNum:this.pageNum,
|
|
|
|
|
pageSize:this.pageSize,
|
|
|
|
|
}
|
|
|
|
|
}).then(res => {
|
|
|
|
|
const pagination = { ...this.pagination };
|
|
|
|
|
pagination.total = res.data.total;
|
|
|
|
|
this.data = res.data.list;
|
|
|
|
|
this.pagination = pagination;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
showModel(type,data){
|
|
|
|
|
@ -128,6 +148,18 @@ export default {
|
|
|
|
|
this.visible = visible
|
|
|
|
|
this.modelData=data
|
|
|
|
|
},
|
|
|
|
|
delDosage(data){
|
|
|
|
|
console.log(data.id)
|
|
|
|
|
var id=data.id
|
|
|
|
|
this.$axios.delete('/street/'+id, {
|
|
|
|
|
data: {}
|
|
|
|
|
}).then(res => {
|
|
|
|
|
if(res.code==200){
|
|
|
|
|
this.$message.success('删除巷道成功');
|
|
|
|
|
this.handleGetStreetList()
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
components:{
|
|
|
|
|
Model
|
|
|
|
|
|