<template>
  <ConfigForms form-type="1" @addMethods="addMethods"></ConfigForms>
</template>

<script>
import ConfigForms from "./components/ConfigForms.vue"
export default {
  name: "ScreeningAdd",
  components: {
    ConfigForms,
  },
  provide() {
    const showIndex = true
    return {
      showIndex,
    }
  },
  data() {
    return {}
  },
  created() {},
  methods: {
    // 处理部分逻辑
    addMethods(v) {
      console.log(v)
      if (v.activeName == "index0") {
        let data = {
          birthday: v.form.birthday,
        }
        sessionStorage.setItem("index1Data", JSON.stringify(data))
      }
    },
  },
}
</script>

<style lang="scss" scoped></style>
