@@ -127,7 +127,7 @@ const accountType = ref(0)
|
||||
const accountList = ref([])
|
||||
const operateList = ref([
|
||||
//{ id: 'view', icon: 'View', title: '查看', hasPermi: ['invest:accountDealRecord:query'] },
|
||||
//{ id: 'edit', icon: 'Edit', title: '修改', hasPermi: ['invest:accountDealRecord:edit'] },
|
||||
{ id: 'edit', icon: 'Edit', title: '修改', hasPermi: ['invest:accountDealRecord:edit'] },
|
||||
{ id: 'delete', icon: 'Delete', title: '删除', hasPermi: ['invest:accountDealRecord:remove'] }
|
||||
])
|
||||
const data = reactive({
|
||||
@@ -294,6 +294,21 @@ function handleUpdate(row) {
|
||||
const _id = row.id || ids.value
|
||||
getAccountDealRecord(_id).then((response) => {
|
||||
form.value = response.data
|
||||
if (form.value.accountId != null && form.value.accountId != '') {
|
||||
getFutureStocks(form.value.accountId).then((response) => {
|
||||
const account = response.data
|
||||
accountType.value = account.type
|
||||
if (account.type == '1') {
|
||||
futuresShow.value = true
|
||||
form.value.closedPosition = null
|
||||
form.value.commission = null
|
||||
} else {
|
||||
futuresShow.value = false
|
||||
form.value.closedPosition = 0
|
||||
form.value.commission = 0
|
||||
}
|
||||
})
|
||||
}
|
||||
open.value = true
|
||||
title.value = '修改投资交易记录'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user