驼峰命名修改,getTreeselect->getTreeSelect
This commit is contained in:
liyang 2024-12-16 18:29:32 +08:00
parent 85e5d7aec6
commit c362efece4

View File

@ -146,7 +146,7 @@ const getList = async () => {
}; };
/** 查询流程分类下拉树结构 */ /** 查询流程分类下拉树结构 */
const getTreeselect = async () => { const getTreeSelect = async () => {
const res = await listCategory(); const res = await listCategory();
categoryOptions.value = []; categoryOptions.value = [];
const data: CategoryOption = { categoryId: 0, categoryName: '顶级节点', parentId: 0, children: [] }; const data: CategoryOption = { categoryId: 0, categoryName: '顶级节点', parentId: 0, children: [] };
@ -184,7 +184,7 @@ const handleAdd = (row?: CategoryVO) => {
dialog.title = '添加流程分类'; dialog.title = '添加流程分类';
nextTick(() => { nextTick(() => {
reset(); reset();
getTreeselect(); getTreeSelect();
if (row != null && row.categoryId) { if (row != null && row.categoryId) {
form.value.parentId = row.categoryId; form.value.parentId = row.categoryId;
} else { } else {
@ -214,7 +214,7 @@ const handleUpdate = (row: CategoryVO) => {
dialog.title = '修改流程分类'; dialog.title = '修改流程分类';
nextTick(async () => { nextTick(async () => {
reset(); reset();
await getTreeselect(); await getTreeSelect();
if (row != null) { if (row != null) {
form.value.parentId = row.categoryId; form.value.parentId = row.categoryId;
} }