|
@@ -5,16 +5,7 @@
|
|
|
<div style="margin-left: 45%">
|
|
|
<span style="background: #3a83f7; width: 18px; height: 10px; margin-top: 8px; display: inline-block; border-radius: 3px"></span>
|
|
|
<TextSelector v-model="barModelValue1" :options="computedBarOptions1" @change="changeBarOne" style="margin-top: 5px; margin-left: 8px" />
|
|
|
- <span
|
|
|
- style="
|
|
|
- background: #f19a37;
|
|
|
- width: 18px;
|
|
|
- height: 10px;
|
|
|
- margin-top: 8px;
|
|
|
- margin-left: 20px;
|
|
|
- display: inline-block;
|
|
|
- border-radius: 3px;
|
|
|
- "></span>
|
|
|
+ <span style="background: #f19a37; width: 18px; height: 10px; margin-top: 8px; margin-left: 20px; display: inline-block; border-radius: 3px"></span>
|
|
|
<TextSelector v-model="barModelValue2" :options="computedBarOptions2" @change="changeBarTwo" style="margin-top: 5px; margin-left: 8px" />
|
|
|
</div>
|
|
|
<div ref="bar" style="height: 400px"></div>
|
|
@@ -24,13 +15,13 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { onMounted, ref, inject, computed, watch } from 'vue'
|
|
|
import * as echarts from 'echarts'
|
|
|
+import { computed, inject, onMounted, ref, watch } from 'vue'
|
|
|
+import { createDisabledOptions } from '../../../utils/dropdowndisable'
|
|
|
import TextSelector from '/@/components/TextSelector/index.vue'
|
|
|
+import { useShopInfo } from '/@/stores/shopInfo'
|
|
|
import { getAdStructureData } from '/@/views/adManage/sd/targets/api'
|
|
|
-import { createDisabledOptions } from '../../../utils/dropdowndisable'
|
|
|
import { barOptions1, barOptions2, barOptionsMap } from '/@/views/adManage/utils/enum'
|
|
|
-import { useShopInfo } from '/@/stores/shopInfo'
|
|
|
|
|
|
const shopInfo = useShopInfo()
|
|
|
let barChart = ref()
|
|
@@ -60,7 +51,12 @@ onMounted(async () => {
|
|
|
let allData = null
|
|
|
|
|
|
async function setAdStructureData() {
|
|
|
- allData = await getAdStructureData({ startDate: dateRange.value[0], endDate: dateRange.value[1], profileId: shopInfo.profile.profile_id })
|
|
|
+ allData = await getAdStructureData({
|
|
|
+ profileId: shopInfo.profile.profile_id,
|
|
|
+ startDate: dateRange.value[0],
|
|
|
+ endDate: dateRange.value[1],
|
|
|
+ tactic: 'T00020',
|
|
|
+ })
|
|
|
return allData.data
|
|
|
}
|
|
|
|