|
@@ -8,7 +8,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
<cwg-complex-search :fields="filterFields" v-model="searchParams" @search="handleSearch"
|
|
<cwg-complex-search :fields="filterFields" v-model="searchParams" @search="handleSearch"
|
|
|
@reset="handleReset" />
|
|
@reset="handleReset" />
|
|
|
- <cwg-tabel ref="tableRef" :columns="currentColumns" :immediate="true" :queryParams="queryParams" :api="listApi"
|
|
|
|
|
|
|
+ <cwg-tabel ref="tableRef" :columns="currentColumns" :mobilePrimaryFields="mobilePrimaryFields" :immediate="true" :queryParams="queryParams" :api="listApi"
|
|
|
:show-operation="false" @sort-change="handleSortChange">
|
|
:show-operation="false" @sort-change="handleSortChange">
|
|
|
|
|
|
|
|
<!-- TOP/推荐 -->
|
|
<!-- TOP/推荐 -->
|
|
@@ -383,6 +383,17 @@
|
|
|
{ prop: 'recommendReason', label: t('Documentary.tradingCenter.item142'), align: 'center', width: 100 },
|
|
{ prop: 'recommendReason', label: t('Documentary.tradingCenter.item142'), align: 'center', width: 100 },
|
|
|
{ prop: 'subscribe', label: t('Documentary.tradingCenter.item24'), slot: 'subscribe', align: 'center', width: 100 },
|
|
{ prop: 'subscribe', label: t('Documentary.tradingCenter.item24'), slot: 'subscribe', align: 'center', width: 100 },
|
|
|
])
|
|
])
|
|
|
|
|
+ const mobilePrimaryFields = computed(() => [
|
|
|
|
|
+ { prop: 'nickname', label: t('Documentary.tradingCenter.item1'), align: 'center' },
|
|
|
|
|
+ { prop: 'maskLogin', label: t('newLoop.item11'), align: 'center' },
|
|
|
|
|
+ { prop: 'groupType', label: t('Label.AccountType'), slot: 'groupType', align: 'center' },
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'more',
|
|
|
|
|
+ type: 'more',
|
|
|
|
|
+ width: 20,
|
|
|
|
|
+ align: 'right',
|
|
|
|
|
+ },
|
|
|
|
|
+ ])
|
|
|
|
|
|
|
|
const getAccountTypeText = (type: number) => {
|
|
const getAccountTypeText = (type: number) => {
|
|
|
const accountTypeMap: Record<number, string> = {
|
|
const accountTypeMap: Record<number, string> = {
|
|
@@ -457,13 +468,13 @@
|
|
|
uni.showLoading({ title: t('State.InTheProcessing') })
|
|
uni.showLoading({ title: t('State.InTheProcessing') })
|
|
|
try {
|
|
try {
|
|
|
let res = await documentaryApi.followDealSubscribeInfo({ dealId: row.dealId })
|
|
let res = await documentaryApi.followDealSubscribeInfo({ dealId: row.dealId })
|
|
|
- if (res.code === 200 || res.code === 0 || res.code === 10000) {
|
|
|
|
|
|
|
+ if (res.code === 200) {
|
|
|
dialogFllowData1.value = row
|
|
dialogFllowData1.value = row
|
|
|
dialogFllowData.value.protect = 0
|
|
dialogFllowData.value.protect = 0
|
|
|
dialogFllowLoginData.value = res.data || []
|
|
dialogFllowLoginData.value = res.data || []
|
|
|
dialogFllow.value = true
|
|
dialogFllow.value = true
|
|
|
} else {
|
|
} else {
|
|
|
- uni.showToast({ title: res.msg || 'Error', icon: 'none' })
|
|
|
|
|
|
|
+ uni.showToast({ title: res.msg, icon: 'none' })
|
|
|
}
|
|
}
|
|
|
} finally {
|
|
} finally {
|
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
@@ -520,12 +531,12 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
let res = await documentaryApi.followDealSubscriSubscribe(payload)
|
|
let res = await documentaryApi.followDealSubscriSubscribe(payload)
|
|
|
- if (res.code === 200 || res.code === 0 || res.code === 10000) {
|
|
|
|
|
|
|
+ if (res.code === 200) {
|
|
|
uni.showToast({ title: t('Msg.Success'), icon: 'success' })
|
|
uni.showToast({ title: t('Msg.Success'), icon: 'success' })
|
|
|
applyFllowCancel()
|
|
applyFllowCancel()
|
|
|
} else {
|
|
} else {
|
|
|
- const msg = res.msg === 'EMPTY_POSITION_BEFORE_SUBSCRIBE' ? t('Documentary.tradingCenter.item134') : res.msg
|
|
|
|
|
- uni.showToast({ title: msg || 'Error', icon: 'none' })
|
|
|
|
|
|
|
+ const msg = res.msg == 'EMPTY_POSITION_BEFORE_SUBSCRIBE' ? t('Documentary.tradingCenter.item134') : res.msg
|
|
|
|
|
+ uni.showToast({ title: msg , icon: 'none' })
|
|
|
}
|
|
}
|
|
|
} finally {
|
|
} finally {
|
|
|
submitting = false
|
|
submitting = false
|