feat: 首页日历功能新增。

This commit is contained in:
tianyongbao
2024-08-01 19:04:36 +08:00
parent fa4b71ecac
commit fa651a32f5
9 changed files with 308 additions and 127 deletions

View File

@@ -113,9 +113,7 @@ 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([
{ id: 'view', icon: 'View', title: '查看', hasPermi: ['invest:accountsTransferRecord:query'] },
@@ -135,22 +133,6 @@ const data = reactive({
outAccountId: null,
dealType: null
},
queryPosMachineParams: {
pageNum: 1,
pageSize: 1000
},
queryFutruesStocksParams: {
pageNum: 1,
type: '5',
status: '1',
pageSize: 1000
},
queryCreditParams: {
pageNum: 1,
type: '2',
status: '1',
pageSize: 1000
},
queryDebitParams: {
pageNum: 1,
type: '1',
@@ -181,14 +163,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
})
}
const { queryParams, queryDebitParams, form, rules } = toRefs(data)
/** 查询储蓄账户卡管理列表 */
function getDebitList() {
@@ -197,13 +172,6 @@ function getDebitList() {
})
}
/** 查询投资账户管理列表 */
function getFutruesStocksList() {
listAccounts(queryFutruesStocksParams.value).then((response) => {
futruesStocksList.value = response.rows
})
}
/** 查询储蓄账户转账列表 */
function getList() {
loading.value = true
@@ -315,12 +283,14 @@ function submitForm() {
proxy.$modal.msgSuccess('修改成功')
open.value = false
getList()
getDebitList()
})
} else {
addAccountsTransferRecord(form.value).then((response) => {
proxy.$modal.msgSuccess('新增成功')
open.value = false
getList()
getDebitList()
})
}
}
@@ -352,8 +322,6 @@ function handleExport() {
`accountsTransferRecord_${new Date().getTime()}.xlsx`
)
}
getFutruesStocksList()
getDebitList()
getcreditCardList()
getList()
</script>