|
|
@@ -50,6 +50,7 @@ export default defineComponent({
|
|
|
},
|
|
|
setup() {
|
|
|
const isBottom = getShowBottomValue();
|
|
|
+ let cacheID: number | null = null;
|
|
|
// 表格列表数据
|
|
|
const { loading, tableList, queryTable } = queryTableList<WrOrderQuote>();
|
|
|
const cacheList = ref<WrOrderQuote[]>([]);
|
|
|
@@ -92,10 +93,16 @@ export default defineComponent({
|
|
|
haswr: 0,
|
|
|
};
|
|
|
Object.assign(param, value);
|
|
|
- queryTable(queryOrderQuote, param);
|
|
|
+ queryTable(queryOrderQuote, param).then((res) => {
|
|
|
+ cacheList.value = res;
|
|
|
+ if (cacheID) {
|
|
|
+ filterGoods(cacheID);
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
// 过滤期货合约商品
|
|
|
function filterGoods(id: number) {
|
|
|
+ cacheID = id;
|
|
|
tableList.value = cacheList.value.filter((el) => el.goodsid === id);
|
|
|
}
|
|
|
function buyOpen(value: any, goods: Goods) {
|