|
@@ -24,7 +24,7 @@
|
|
|
<span>{{ row.userid }}/{{ row.username }}</span>
|
|
<span>{{ row.userid }}/{{ row.username }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
<template #operate="{ row }">
|
|
<template #operate="{ row }">
|
|
|
- <Button size="small" type="primary" :disabled="status(row) === 2 || status(row) === 3 " round @click="onDelisting(row)">
|
|
|
|
|
|
|
+ <Button size="small" type="primary" :disabled="isDisable(row)">
|
|
|
{{ getDelistingButtonTitles(tabIndex, row) }}
|
|
{{ getDelistingButtonTitles(tabIndex, row) }}
|
|
|
</Button>
|
|
</Button>
|
|
|
</template>
|
|
</template>
|
|
@@ -81,6 +81,10 @@ const { dataList: protocolList} = useRequest(queryMdUserSwapProtocol, {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
|
|
+const isDisable = (row: Model.TjmdTradeOrderDetailRsp) => {
|
|
|
|
|
+ return row.userid === getUserId() || (status(row) === 2 || status(row) === 3)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
const status = (row: Model.TjmdTradeOrderDetailRsp) => {
|
|
const status = (row: Model.TjmdTradeOrderDetailRsp) => {
|
|
|
return protocolList.value.find((e) => e.areauserid === row.userid)?.protocolstatus ?? 1
|
|
return protocolList.value.find((e) => e.areauserid === row.userid)?.protocolstatus ?? 1
|
|
|
}
|
|
}
|