提交 c1fa07c8 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 9b53a9e6
<script setup> <script setup>
import { SemiSelect } from '@element-plus/icons-vue' import { SemiSelect } from '@element-plus/icons-vue'
import { ElMessage } from 'element-plus'
import { useEvent } from '../composables/useEvent' import { useEvent } from '../composables/useEvent'
import { getEventFunnel, saveEventFunnel } from '../api' import { getEventFunnel, saveEventFunnel } from '../api'
const emit = defineEmits(['update:modelValue'])
const { eventList } = useEvent() const { eventList } = useEvent()
const rules = ref([]) const rules = ref([])
...@@ -27,11 +29,13 @@ async function handelSubmit() { ...@@ -27,11 +29,13 @@ async function handelSubmit() {
return { ...item, sort: index + 1 } return { ...item, sort: index + 1 }
}) })
await saveEventFunnel({ rules: paramsRules }) await saveEventFunnel({ rules: paramsRules })
ElMessage.success('保存成功')
emit('update:modelValue', false)
} }
</script> </script>
<template> <template>
<el-dialog title="创建营销漏斗分析" width="600"> <el-dialog title="创建营销漏斗分析" width="600" @update:modelValue="$emit('update:modelValue')">
<el-button type="primary" @click="handleAdd">添加漏斗步数</el-button> <el-button type="primary" @click="handleAdd">添加漏斗步数</el-button>
<div class="rule-item" v-for="(item, index) in rules" :key="index"> <div class="rule-item" v-for="(item, index) in rules" :key="index">
<el-button type="primary">{{ index + 1 }}</el-button> <el-button type="primary">{{ index + 1 }}</el-button>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论