Commit 5218f169 authored by nick zheng's avatar nick zheng

chore: 数字人对话默认初始值和补充dialog取消事件

parent 7aa80c52
...@@ -11,13 +11,13 @@ function defaultDigitalHumanDialogue(): DigitalHumanDialogueConfig { ...@@ -11,13 +11,13 @@ function defaultDigitalHumanDialogue(): DigitalHumanDialogueConfig {
publishStatus: 'N', publishStatus: 'N',
}, },
humanInfo: { humanInfo: {
figureId: '', figureId: 'A2A_V2-xiaomeng2',
speed: 5, speed: 5,
intonation: 5, intonation: 5,
timebreId: '5132', timebreId: '5132',
}, },
backgroundInfo: { backgroundInfo: {
backgroundUrl: '', backgroundUrl: 'https://digitalpeople-sit.gz.bcebos.com/share/backgroud/%E5%8C%BB%E5%AD%A61.jpg',
}, },
systemInfo: defaultDigitalHumanSystemInfo(), systemInfo: defaultDigitalHumanSystemInfo(),
} }
......
...@@ -120,6 +120,7 @@ function handleDelete(id: number) { ...@@ -120,6 +120,7 @@ function handleDelete(id: number) {
getBackgroundImageList() getBackgroundImageList()
} }
}, },
onNegativeClick: () => {},
}) })
} }
......
...@@ -18,6 +18,7 @@ function handleUpdateSystemInfo() { ...@@ -18,6 +18,7 @@ function handleUpdateSystemInfo() {
onPositiveClick: () => { onPositiveClick: () => {
digitalHumanDialogueStore.resetDigitalHumanSystemInfo() digitalHumanDialogueStore.resetDigitalHumanSystemInfo()
}, },
onNegativeClick: () => {},
}) })
} }
</script> </script>
......
...@@ -87,6 +87,7 @@ async function handleMultiDeleteDiaglogueConfig() { ...@@ -87,6 +87,7 @@ async function handleMultiDeleteDiaglogueConfig() {
await handleGetDiaglogList() await handleGetDiaglogList()
} }
}, },
onNegativeClick: () => {},
}) })
} }
...@@ -139,6 +140,7 @@ async function handleUpdateDialogueOpen(configId: string, diaglogueTableItem: Di ...@@ -139,6 +140,7 @@ async function handleUpdateDialogueOpen(configId: string, diaglogueTableItem: Di
await handleGetDiaglogList() await handleGetDiaglogList()
} }
}, },
onNegativeClick: () => {},
}) })
return return
} }
...@@ -203,6 +205,7 @@ function handleDeleteDiaglogueConfig(configId: string) { ...@@ -203,6 +205,7 @@ function handleDeleteDiaglogueConfig(configId: string) {
await handleGetDiaglogList() await handleGetDiaglogList()
} }
}, },
onNegativeClick: () => {},
}) })
} }
......
...@@ -27,7 +27,7 @@ export function createDarftTableColumns({ ...@@ -27,7 +27,7 @@ export function createDarftTableColumns({
h( h(
'div', 'div',
{ {
style: { width: '64px', height: '36px', marginRight: '10px' }, style: { width: '64px', height: '36px', marginRight: '10px', flexShrink: 0 },
class: 'flex items-center justify-center overflow-hidden relative', class: 'flex items-center justify-center overflow-hidden relative',
}, },
[ [
......
...@@ -72,13 +72,13 @@ const darftTableColumns = createDarftTableColumns({ ...@@ -72,13 +72,13 @@ const darftTableColumns = createDarftTableColumns({
await handleGetDraftList() await handleGetDraftList()
} }
}, },
onNegativeClick: () => {},
}) })
}, },
handleEditDraft(rowData) { handleEditDraft(rowData) {
router.push({ router.push({
name: 'Creation', name: 'Creation',
params: { query: {
templateId: rowData.templateId,
draftId: rowData.id, draftId: rowData.id,
}, },
}) })
...@@ -131,6 +131,7 @@ const handleMultiSelectDelete = () => { ...@@ -131,6 +131,7 @@ const handleMultiSelectDelete = () => {
} }
} }
}, },
onNegativeClick: () => {},
}) })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment