update: 修改接口路径,弹窗搬运

This commit is contained in:
项富
2024-09-20 14:30:48 +08:00
parent b871eabb08
commit ed5810611f
12 changed files with 90 additions and 43 deletions
@@ -1,5 +1,5 @@
<template>
<Dialog class="phone-dialog" :openVis="visible" width="60%" :title="title" @close="closeDialog" :maskClosable="false">
<Dialog class="phone-dialog" :openVis="visible" width="60%" :title="dialogTitle" @close="closeDialog" :maskClosable="false">
<template #container>
<div v-if="useForm" class="form-container">
<Form :model="formRecord" :label-width="100" v-bind="formItemLayout">
@@ -95,10 +95,12 @@
phoneType: props.phoneType,
showType: '0',
}));
const { visible, title, closeDialog, openDialog } = useDialog({ title: props.title });
const dialogTitle = ref();
const { visible, closeDialog, openDialog } = useDialog({ title: dialogTitle.value });
const registerTable = ref();
watch(props, () => {
registerTable.value?.getRecords();
dialogTitle.value = props.title;
});
defineExpose({
openDialog,