|
@@ -70,13 +70,12 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
-import { onMounted, reactive, ref, watch, defineEmits } from 'vue'
|
|
|
import type { FormInstance, FormRules } from 'element-plus'
|
|
|
import { ElMessage } from 'element-plus'
|
|
|
import { storeToRefs } from 'pinia'
|
|
|
+import { defineEmits, onMounted, reactive, ref, watch } from 'vue'
|
|
|
+import { getAdMixSelect, postCampaignsData } from '../api/index'
|
|
|
import { useShopInfo } from '/@/stores/shopInfo'
|
|
|
-import { postCampaignsData, getAdMixSelect } from '../api/index'
|
|
|
-import emitter from '/@/utils/emitter'
|
|
|
|
|
|
const shopInfo = useShopInfo()
|
|
|
const { profile } = storeToRefs(shopInfo)
|
|
@@ -183,12 +182,10 @@ watch([respCampaignId, respCampaignName], () => {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
-// function changeTargetType() {
|
|
|
-// emitter.emit('send-targetType', targetType)
|
|
|
-// }
|
|
|
-function changeTargetType(value: string) {
|
|
|
- targetType.value = value // 更新 targetType
|
|
|
- emit('send-targetType', { type: targetType.value }) // 发送新的 targetType 值给父组件
|
|
|
+function changeTargetType(value: string) { // 发送新的 targetType 值给父组件
|
|
|
+ targetType.value = value
|
|
|
+ emit('send-targetType', { type: targetType.value })
|
|
|
+ // emitter.emit('xxx', { type: targetType.value })
|
|
|
}
|
|
|
|
|
|
onMounted(() => {
|