Commit dc89e827 by 李伟康

refactor(StrategyDetail): 完善组件传参,动态绑定业务类型

修改src/views/earlyWarningManager/strategyCentre/storeSignboard/components/StrategyDetail/index.vue和StudyView.vue:
为StudyView组件新增currentBiz属性,将搜索表单的businessType从硬编码1改为动态绑定父组件传入的参数
1 parent c035a71b
......@@ -265,10 +265,10 @@ import {
getStrategyRecordStaticByCondition,
} from "@api/earlyWarningManager";
import dayjs from "dayjs";
import { deepClone } from "@/common/util";
const decline = require('@/assets/strategy/decline.png')
const just01 = require('@/assets/strategy/just01.png')
const rise = require('@/assets/strategy/rise.png')
export default {
name: "StrategyDetail",
......@@ -282,6 +282,7 @@ export default {
default: () => ({}),
},
propMerchantId: null,
currentBiz: null,
},
data() {
return {
......@@ -332,7 +333,7 @@ export default {
leftFormSearch: {},
secondSearchFormSearch: {
analysisPeriodDays: 1,
businessType: 1,
businessType: this.currentBiz,
},
secondTableParams: {
listName: "list",
......
......@@ -41,7 +41,8 @@
</template>
</div>
<template v-if="[0, 1].includes(detailInfo.strategyType)">
<StudyView :info="detailInfo"
<StudyView :current-biz="currentBiz"
:info="detailInfo"
:prop-merchant-id="item.merchantId"
@openReceptionDialog="$emit('openReceptionDialog', $event)">
</StudyView>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!