|
|
@@ -1,5 +1,5 @@
|
|
|
import { BtnListType } from "@/common/components/btnList/interface"
|
|
|
-import { TradeMode } from "@/common/constants/enumCommon"
|
|
|
+import { TradeMode, UserType } from "@/common/constants/enumCommon"
|
|
|
import { initData } from "@/common/methods"
|
|
|
import { queryTableList } from "@/common/setup/table"
|
|
|
import { getMarketIdsByTradeMode } from "@/services/bus/market"
|
|
|
@@ -92,10 +92,10 @@ export const columnsList = [
|
|
|
|
|
|
// 获取按钮列表
|
|
|
export function getBtnList(isBuyAndSell: boolean) {
|
|
|
- const btnList: BtnListType[] = [
|
|
|
- { lable: '挂牌', code: 'PostBuying', className: 'operBtn' },
|
|
|
- // { lable: '详情', code: 'Detail', className: 'btnDeafault' },
|
|
|
- ];
|
|
|
+ const btnList: BtnListType[] = [];
|
|
|
+ if (getUserAccountType() === UserType.institution) {
|
|
|
+ btnList.push({ lable: '挂牌', code: 'PostBuying', className: 'operBtn' })
|
|
|
+ }
|
|
|
if (isBuyAndSell) {
|
|
|
btnList.push({ lable: '买卖大厅', code: 'BuyAndSell', className: 'btnDeafault' })
|
|
|
}
|