|
@@ -247,7 +247,15 @@ const getPrivilegeItem = async () => {
|
|
|
queryInfo.value.maxPrice = props.EquitiesInfo.insFeeOrders.availableAmount;
|
|
queryInfo.value.maxPrice = props.EquitiesInfo.insFeeOrders.availableAmount;
|
|
|
try {
|
|
try {
|
|
|
const response = await api.additionalApi.rightsList(queryInfo.value);
|
|
const response = await api.additionalApi.rightsList(queryInfo.value);
|
|
|
- privilegeItem.value = response.data.records || [];
|
|
|
|
|
|
|
+ if (response.code == '200') {
|
|
|
|
|
+ privilegeItem.value = response.data.records || [];
|
|
|
|
|
+ } else {
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ type: 'error',
|
|
|
|
|
+ message: '暂无权益单品',
|
|
|
|
|
+ plain: true,
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
|
console.error('获取权益单品列表失败:', error);
|
|
console.error('获取权益单品列表失败:', error);
|
|
|
}
|
|
}
|