Element 可以統(tǒng)一修改主題顏色
http://www.reibang.com/p/aea7b55aa897
時(shí)間的驗(yàn)證方法
Moment 時(shí)間戳轉(zhuǎn)換為日期格式
moment.unix(data).format('YYYY-MM-DD HH:mm:ss');
//刪除按鈕
handleDelete(row) {
this.$confirm(
"刪除用戶后蟹腾,角色信息將被清除,參賽隊(duì)伍將做保留酝碳,請確認(rèn)是否刪除嘶窄?",
"提示",
{
confirmButtonText: "確定",
cancelButtonText: "取消",
type: "warning"
}
)
.then(() => {
//當(dāng)前頁面總頁數(shù)除以頁條數(shù)余數(shù)為1時(shí),當(dāng)前頁面-1page
if (this.page.total % this.page.pageSize == 1) {
this.page.page--;
}
getUserDel({
uid: row.uid
})
.then(res => {
this.getUserProfileStudent(); //獲取列表數(shù)據(jù)
this.$message({
type: "success",
message: "刪除成功!"
});
})
.catch(error => {
this.$message.error(error.msg);
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消刪除"
});
});
},
路由的跳轉(zhuǎn) 同時(shí)攜帶參數(shù)需要在router中配置
// 路由跳轉(zhuǎn)
this.$router.push({
name: "user-profile-edit-student",
params: {
uid: row.uid
},
});