feat: 首页日历功能新增。
This commit is contained in:
@@ -98,7 +98,6 @@ import {
|
||||
addAccountsTransferRecord,
|
||||
updateAccountsTransferRecord
|
||||
} from '@/api/invest/accountsTransferRecord'
|
||||
import { listAccounts } from '@/api/invest/accounts'
|
||||
import { listFutureStocks } from '@/api/invest/futureStocks'
|
||||
import dayjs from 'dayjs'
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
@@ -114,8 +113,6 @@ const ids = ref([])
|
||||
const single = ref(true)
|
||||
const multiple = ref(true)
|
||||
const total = ref(0)
|
||||
const creditCardList = ref([])
|
||||
const debitCardList = ref([])
|
||||
const futruesStocksList = ref([])
|
||||
const title = ref('')
|
||||
const operateList = ref([
|
||||
@@ -136,27 +133,11 @@ const data = reactive({
|
||||
outAccountId: null,
|
||||
dealType: null
|
||||
},
|
||||
queryPosMachineParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 1000
|
||||
},
|
||||
queryFutruesStocksParams: {
|
||||
pageNum: 1,
|
||||
status: '1',
|
||||
pageSize: 1000
|
||||
},
|
||||
queryCreditParams: {
|
||||
pageNum: 1,
|
||||
type: '2',
|
||||
status: '1',
|
||||
pageSize: 1000
|
||||
},
|
||||
queryDebitParams: {
|
||||
pageNum: 1,
|
||||
type: '1',
|
||||
status: '1',
|
||||
pageSize: 1000
|
||||
},
|
||||
rules: {
|
||||
inAccountId: [{ required: true, message: '投资账户不能为空', trigger: 'blur' }],
|
||||
dealType: [{ required: true, message: '交易类型不能为空', trigger: 'blur' }],
|
||||
@@ -181,22 +162,7 @@ const handleOperate = (operate, row) => {
|
||||
}
|
||||
}
|
||||
|
||||
const { queryParams, queryPosMachineParams, queryFutruesStocksParams, queryCreditParams, queryDebitParams, form, rules } = toRefs(data)
|
||||
|
||||
/** 查询信用卡卡管理列表 */
|
||||
function getcreditCardList() {
|
||||
listAccounts(queryCreditParams.value).then((response) => {
|
||||
creditCardList.value = response.rows
|
||||
})
|
||||
}
|
||||
|
||||
/** 查询储蓄卡卡管理列表 */
|
||||
function getDebitList() {
|
||||
listAccounts(queryDebitParams.value).then((response) => {
|
||||
debitCardList.value = response.rows
|
||||
})
|
||||
}
|
||||
|
||||
const { queryParams, queryFutruesStocksParams, form, rules } = toRefs(data)
|
||||
/** 查询投资账户管理列表 */
|
||||
function getFutruesStocksList() {
|
||||
listFutureStocks(queryFutruesStocksParams.value).then((response) => {
|
||||
@@ -315,12 +281,14 @@ function submitForm() {
|
||||
proxy.$modal.msgSuccess('修改成功')
|
||||
open.value = false
|
||||
getList()
|
||||
getFutruesStocksList()
|
||||
})
|
||||
} else {
|
||||
addAccountsTransferRecord(form.value).then((response) => {
|
||||
proxy.$modal.msgSuccess('新增成功')
|
||||
open.value = false
|
||||
getList()
|
||||
getFutruesStocksList()
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -353,7 +321,5 @@ function handleExport() {
|
||||
)
|
||||
}
|
||||
getFutruesStocksList()
|
||||
getDebitList()
|
||||
getcreditCardList()
|
||||
getList()
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user