add Quill Editor Component

This commit is contained in:
lb
2023-01-31 16:39:27 +08:00
parent e6fe05ae17
commit d834082538
8 changed files with 484 additions and 271 deletions

View File

@@ -129,10 +129,17 @@ export default {
// page 场景:
if ("list" in res.data) {
// real env:
this.dataList = res.data.list.map((item) => ({
...item,
id: item._id ?? item.id,
}));
this.dataList = res.data.list.map((item) => {
// if (item.parentId || item.parendName) { /** && 也行 */
// // 如果需要树形结构的列表
// return this.reConstructDataList(res.data.list)
// } else {
return {
...item,
id: item._id ?? item.id,
};
// }
});
// this.dataList = res.data.records;
this.totalPage = res.data.total;
} else if ("records" in res.data) {
@@ -151,6 +158,11 @@ export default {
});
},
/** 针对树形结构的列表,进行服务器端返回的数据重排 */
reConstructDataList(list) {
// const parentIndex = list.forEach()
},
/** 处理 HeadForm 的操作 */
handleHeadformOperate(payload) {
// 查询,导出,导入,等等