|
@@ -60,7 +60,7 @@ const dataCallback = (res: any) => {
|
|
|
const menu: any = { menuId: 0, menuName: '主类目', children: [] }
|
|
|
menu.children = data
|
|
|
menuOptions.value.push(menu)
|
|
|
- setFieldList()
|
|
|
+ setItemsOptions()
|
|
|
return data
|
|
|
}
|
|
|
|
|
@@ -91,7 +91,6 @@ const openDialog = async (type: number, title: string, row?: any) => {
|
|
|
|
|
|
// 表格配置项
|
|
|
const columns = reactive<ColumnProps<any>[]>([
|
|
|
- { type: 'selection', fixed: 'left', width: 70 },
|
|
|
{
|
|
|
prop: 'menuName',
|
|
|
label: '菜单名称',
|
|
@@ -155,7 +154,7 @@ const columns = reactive<ColumnProps<any>[]>([
|
|
|
{ prop: 'operation', label: '操作', width: 230, fixed: 'right' }
|
|
|
])
|
|
|
let itemsOptions: ProForm.ItemsOptions[] = []
|
|
|
-const setFieldList = () => {
|
|
|
+const setItemsOptions = () => {
|
|
|
itemsOptions = [
|
|
|
{
|
|
|
label: '菜单类型',
|