前端小小的细节优化

This commit is contained in:
冷冷 2018-07-10 14:25:31 +08:00
parent 93734b716e
commit 0e6ec19de2
4 changed files with 28 additions and 22 deletions

View File

@ -27,7 +27,7 @@ export default {
' 是一个基于vue+vuex+vue-router快速后台管理系统采用token交互验证方式。',
'最大程度上帮助企业节省时间成本和费用开支。 ',
'QQ群23754102',
'当前版本v1.1.3'
'当前版本v1.1.4'
]
},
wel: {
@ -37,7 +37,7 @@ export default {
' 是一个基于vue+vuex+vue-router快速后台管理系统采用token交互验证方式。',
'最大程度上帮助企业节省时间成本和费用开支。 ',
'QQ群23754102',
'当前版本v1.1.3'
'当前版本v1.1.4'
]
}
}

View File

@ -103,6 +103,7 @@ export default {
})
.then(data => {
_this.tableData.splice(index, 1)
this.getList()
_this.$message({
showClose: true,
message: '删除成功',
@ -127,6 +128,7 @@ export default {
type: 'success'
})
done()
this.getList()
})
},
/**
@ -144,6 +146,7 @@ export default {
type: 'success'
})
done()
this.getList()
})
}
}

View File

@ -141,40 +141,40 @@ export default {
},
getList() {
this.listLoading = true;
this.listQuery.orderByField = "create_time";
this.listQuery.isAsc = false;
this.listQuery.orderByField = 'create_time'
this.listQuery.isAsc = false
fetchList(this.listQuery).then(response => {
this.list = response.data.records;
this.total = response.data.total;
this.listLoading = false;
});
this.list = response.data.records
this.total = response.data.total
this.listLoading = false
})
},
handleSizeChange(val) {
this.listQuery.limit = val;
this.getList();
this.listQuery.limit = val
this.getList()
},
handleCurrentChange(val) {
this.listQuery.page = val;
this.getList();
this.listQuery.page = val
this.getList()
},
handleDelete(row) {
delObj(row.id).then(response => {
this.dialogFormVisible = false;
this.getList();
this.dialogFormVisible = false
this.getList()
this.$notify({
title: "成功",
message: "删除成功",
type: "success",
title: '成功',
message: '删除成功',
type: 'success',
duration: 2000
});
});
})
})
},
handleFilter() {
this.listQuery.page = 1;
this.getList();
this.listQuery.page = 1
this.getList()
}
}
};
}
</script>
<style lang="scss" scoped>

View File

@ -131,6 +131,7 @@ export default {
message: '删除成功',
type: 'success'
})
this.getList()
})
.catch(function(err) {})
},
@ -150,6 +151,7 @@ export default {
type: 'success'
})
done()
this.getList()
})
},
/**
@ -167,6 +169,7 @@ export default {
type: 'success'
})
done()
this.getList()
})
}
}