|
|
@@ -29,10 +29,10 @@ import { queryWrAverageTradePrice } from '@/services/go/wrtrade';
|
|
|
import { TempWrOrderQuoteDetail } from '../post_buying/interface';
|
|
|
import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
|
import { WrAverageTradePriceQsq } from '@/services/go/wrtrade/interface';
|
|
|
-import { handleIs } from '../buy-sell-market/setup';
|
|
|
-import { BuyOrSell } from '@/common/constants/enumCommon';
|
|
|
import { _closeModal } from '@/common/setup/modal/modal';
|
|
|
import Drawer from '@/common/components/drawer/index.vue';
|
|
|
+import { getAuctionwrType, getListingMode } from '@/views/market/market-spot/setup'
|
|
|
+import { BuyOrSell, ListingMode, AuctionwrType } from '@/common/constants/enumCommon';
|
|
|
|
|
|
// 通过 ComposeOption 来组合出一个只有必须组件和图表的 Option 类型
|
|
|
type ECOption = echarts.ComposeOption<BarSeriesOption | LineSeriesOption | TitleComponentOption | GridComponentOption>;
|
|
|
@@ -71,12 +71,11 @@ export default defineComponent({
|
|
|
},
|
|
|
],
|
|
|
};
|
|
|
- const { isWR } = handleIs(props.enumName, BuyOrSell.buy);
|
|
|
const chartRef = ref();
|
|
|
const chartInstance = ref<echarts.ECharts>();
|
|
|
function queryHistoryData() {
|
|
|
const param: WrAverageTradePriceQsq = {
|
|
|
- haswr: isWR(),
|
|
|
+ haswr: getAuctionwrType(AuctionwrType.hasWr) ? 1 : 0,
|
|
|
wrfactortypeid: props.selectedRow.wrfactortypeid,
|
|
|
};
|
|
|
queryWrAverageTradePrice(param).then((res) => {
|