工作內(nèi)容
- 添加ifish后臺的剩余功能
- 完善類目管理頁面
- 完善地區(qū)管理頁面
- 給基礎(chǔ)信息編輯頁面添加文件上傳功能
- 優(yōu)化部分細(xì)節(jié)
- 優(yōu)化搜索代碼
- 添加loading效果
- 優(yōu)化編輯詳情頁面搜索基礎(chǔ)信息時顯示中文名字段以便區(qū)分
- 修復(fù)部分bug
- fix 保存信息成功后頁面顯示的內(nèi)容和保存修改后的不一致
- fix 編輯類目及地區(qū)功能數(shù)據(jù)不重置導(dǎo)致數(shù)據(jù)顯示錯誤
編輯類目及地區(qū)功能數(shù)據(jù)不重置導(dǎo)致數(shù)據(jù)顯示錯誤代碼
handleOpenDialogEdit(index, row) {
if (typeof row !== 'undefined') {
this.editValues = {
id: row.id,
aquaticRegioncode: row.aquaticRegioncode,
aquaticRegionName: row.aquaticRegionName,
isHomemade: row.isHomemade,
};
}
this.dialogEditVisible = true;
},
handleCloseDialogEdit() {
// 關(guān)閉時清空數(shù)據(jù)
this.editValues = {
aquaticRegioncode: '',
aquaticRegionName: '',
isHomemade: '',
};
},
將路由跳轉(zhuǎn)的代碼放在回調(diào)函數(shù)里修復(fù)保存后顯示數(shù)據(jù)不一致
axios.post(API.ifish_source_save, formData, {headers: {'content-type': 'multipart/form-data'}})
.then((res) => {
this.$router.push('/source/list');
console.log(res);
});
總結(jié)
- 不足
- 存在諸多交互問題待優(yōu)化如:點(diǎn)擊保存發(fā)送ajax數(shù)據(jù)沒有提示,用戶需等到發(fā)送post請求完成后執(zhí)行回調(diào)的時候才跳轉(zhuǎn)路由
- 進(jìn)展
- 完成了ifish后臺的所有功能涡贱,只剩優(yōu)化細(xì)節(jié)和改bug