fix: 增加账户状态功能优化完善。

This commit is contained in:
tianyongbao
2024-07-18 19:26:22 +08:00
parent 0ad573e209
commit 6cff60c160
46 changed files with 360 additions and 36 deletions

View File

@@ -16,7 +16,10 @@
<u--text suffixIcon="arrow-right" lines="1" iconStyle="font-size: 18px; color: #333333; font-weight:bold"
:text="item.name+'-'+item.code " size="30rpx" color="#333333" :bold="true"></u--text>
</view>
<view class="item-row">
<text class="row-label">账户状态</text>
<text class="row-value">{{ dictStr(item.status, statusList) }}</text>
</view>
<view class="item-row">
<text class="row-label">期货交易中心账号</text>
<text class="row-value">{{ item.tradingCenterCode }}</text>
@@ -60,6 +63,7 @@
<script setup>
import { listFutureStocks, delFutureStocks} from '@/api/invest/futureStocks'
import {onLoad,onShow} from "@dcloudio/uni-app";
import { getDicts } from '@/api/system/dict/data.js'
// 计算属性与监听属性是在vue中而非uniap中 需要注意!!!
import {reactive ,toRefs,ref,computed }from "vue";
const pageNum = ref(1)
@@ -68,6 +72,7 @@ const isShow = ref(false)
const status = ref('loadmore')
const settingPickShow = ref(false)
const settingColumns = ref([])
const statusList = ref([])
const data = reactive({
queryParams: {
name: null,
@@ -79,6 +84,10 @@ const windowHeight = computed(() => {
uni.getSystemInfoSync().windowHeight - 50
})
onLoad(() => {
// 账户状态
getDicts('account_status').then(res => {
statusList.value = res.data
})
getList()
});