|
@@ -1736,22 +1736,22 @@ const onContextMenu = async (e: MouseEvent, group: any, item: any) => {
|
|
}
|
|
}
|
|
|
|
|
|
if(!(moveGroups['模板']&&moveGroups['模板'].length)){
|
|
if(!(moveGroups['模板']&&moveGroups['模板'].length)){
|
|
- let ret: { list: any[] } = await axios.post('/api/directory/list', {
|
|
|
|
|
|
+ let ret: any[] = await axios.post('/api/directory/list', {
|
|
fullpath:"/大屏/模板",
|
|
fullpath:"/大屏/模板",
|
|
});
|
|
});
|
|
moveGroups['模板'] = [];
|
|
moveGroups['模板'] = [];
|
|
- ret.list.forEach((item)=>{
|
|
|
|
|
|
+ ret.forEach((item)=>{
|
|
if(item.fullpath!=='/大屏/模板/默认'){
|
|
if(item.fullpath!=='/大屏/模板/默认'){
|
|
moveGroups['模板'].push({name:item.fullpath.split('/')[3]})
|
|
moveGroups['模板'].push({name:item.fullpath.split('/')[3]})
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
if(!(moveGroups['方案']&&moveGroups['方案'].length)){
|
|
if(!(moveGroups['方案']&&moveGroups['方案'].length)){
|
|
- let ret: { list: any[] } = await axios.post('/api/directory/list', {
|
|
|
|
|
|
+ let ret: any[] = await axios.post('/api/directory/list', {
|
|
fullpath:"/大屏/方案",
|
|
fullpath:"/大屏/方案",
|
|
});
|
|
});
|
|
moveGroups['方案'] = [];
|
|
moveGroups['方案'] = [];
|
|
- ret.list.forEach((item)=>{
|
|
|
|
|
|
+ ret.forEach((item)=>{
|
|
if(item.fullpath!=='/大屏/方案/默认'){
|
|
if(item.fullpath!=='/大屏/方案/默认'){
|
|
moveGroups['方案'].push({name:item.fullpath.split('/')[3]})
|
|
moveGroups['方案'].push({name:item.fullpath.split('/')[3]})
|
|
}
|
|
}
|
|
@@ -1975,10 +1975,10 @@ const onMenu = async (val: string) => {
|
|
} else if(!path.startsWith('/api/file')) {
|
|
} else if(!path.startsWith('/api/file')) {
|
|
path = '/api/file' + path;
|
|
path = '/api/file' + path;
|
|
}
|
|
}
|
|
- await axios.patch(`${path}`, {
|
|
|
|
- // filenames: [filename],
|
|
|
|
- directory: `/大屏/${activedGroup.value}/${val || '默认'}`,
|
|
|
|
- });
|
|
|
|
|
|
+ // await axios.patch(`${path}`, {
|
|
|
|
+ // // filenames: [filename],
|
|
|
|
+ // directory: `/大屏/${activedGroup.value}/${val || '默认'}`,
|
|
|
|
+ // });
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
contextmenu.activeValue = 0;
|
|
contextmenu.activeValue = 0;
|
|
@@ -2044,7 +2044,7 @@ const _delComponent = async () => {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
);
|
|
);
|
|
- await axios.post(`/api/files/delete`, {
|
|
|
|
|
|
+ await axios.post(`/api/file/delete`, {
|
|
fullnames: [delDialog.contextmenuObj.component.filename],
|
|
fullnames: [delDialog.contextmenuObj.component.filename],
|
|
physically: true,
|
|
physically: true,
|
|
});
|
|
});
|
|
@@ -2123,7 +2123,7 @@ const delComponent = async () => {
|
|
if(fullname.startsWith('/api/file/')) {
|
|
if(fullname.startsWith('/api/file/')) {
|
|
fullname = fullname.slice('/api/file/'.length);
|
|
fullname = fullname.slice('/api/file/'.length);
|
|
}
|
|
}
|
|
- await axios.post(`/api/files/delete`, {
|
|
|
|
|
|
+ await axios.post(`/api/file/delete`, {
|
|
fullnames: [fullname],
|
|
fullnames: [fullname],
|
|
physically: true,
|
|
physically: true,
|
|
});
|
|
});
|