li.shaoyi 2 năm trước cách đây
mục cha
commit
a6ac47a0c5

+ 1 - 1
public/config/app.config.json

@@ -1,4 +1,4 @@
 {
-    "apiUrl": "http://192.168.31.204:8080/cfg?key=test_204",
+    "apiUrl": "http://192.168.31.139:8080/cfg?key=test_139",
     "icoTitle": "云融"
 }

+ 5 - 5
src/views/market/spot_trade/spot_trade_order_transaction/spot_trade_order_transaction_swap/setup.ts

@@ -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' })
     }