更新日程删除提示
This commit is contained in:
parent
9cd0ce6647
commit
d0c6fb5b72
@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
<script lang="ts" setup name="editSchedule">
|
<script lang="ts" setup name="editSchedule">
|
||||||
import { onMounted, reactive, ref } from 'vue';
|
import { onMounted, reactive, ref } from 'vue';
|
||||||
import { dayjs, ElMessageBox, ElNotification } from 'element-plus';
|
import { dayjs, ElMessageBox, ElMessage, ElNotification } from 'element-plus';
|
||||||
|
|
||||||
import { getAPI } from '/@/utils/axios-utils';
|
import { getAPI } from '/@/utils/axios-utils';
|
||||||
import { SysScheduleApi } from '/@/api-services/api';
|
import { SysScheduleApi } from '/@/api-services/api';
|
||||||
@ -93,13 +93,17 @@ const submit = () => {
|
|||||||
|
|
||||||
// 删除
|
// 删除
|
||||||
const remove = () => {
|
const remove = () => {
|
||||||
console.log(JSON.stringify(state.ruleForm));
|
ElMessageBox.confirm(`确定删除吗?`, '提示', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
ruleFormRef.value.validate(async (valid: boolean) => {
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning',
|
||||||
|
})
|
||||||
|
.then(async () => {
|
||||||
await getAPI(SysScheduleApi).apiSysScheduleDeletePost(state.ruleForm);
|
await getAPI(SysScheduleApi).apiSysScheduleDeletePost(state.ruleForm);
|
||||||
|
|
||||||
closeDialog();
|
closeDialog();
|
||||||
});
|
ElMessage.success('操作成功');
|
||||||
|
})
|
||||||
|
.catch(() => {});
|
||||||
};
|
};
|
||||||
|
|
||||||
// 导出对象
|
// 导出对象
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user