|
@@ -188,7 +188,7 @@
|
|
<div class="hc-datav-row-line relative">
|
|
<div class="hc-datav-row-line relative">
|
|
<div class="title">项目投资走势</div>
|
|
<div class="title">项目投资走势</div>
|
|
<div class="hc-full relative">
|
|
<div class="hc-full relative">
|
|
- <HcDatavCharts v-if="isDatavCharts" />
|
|
|
|
|
|
+ <HcDatavCharts v-if="isDatavCharts" :datas="chartsData" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -447,12 +447,17 @@ const investStat = ref({
|
|
fourFinished:0,
|
|
fourFinished:0,
|
|
fourUnFinished:0,
|
|
fourUnFinished:0,
|
|
})
|
|
})
|
|
|
|
+const chartsData = ref({})
|
|
const getDataInvestStat = async ()=>{
|
|
const getDataInvestStat = async ()=>{
|
|
const { error, code, data } = await projectApi.dataInvestStat(searchForm.value)
|
|
const { error, code, data } = await projectApi.dataInvestStat(searchForm.value)
|
|
//处理数据
|
|
//处理数据
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
investStat.value = getObjValue(data)
|
|
investStat.value = getObjValue(data)
|
|
tableData1.value = getArrValue(data['list'])
|
|
tableData1.value = getArrValue(data['list'])
|
|
|
|
+ if (tableData1.value.length > 0) {
|
|
|
|
+ chartsData.value = getObjValue(tableData1.value[0]['map'])
|
|
|
|
+ }
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
investStat.value = {
|
|
investStat.value = {
|
|
oneFinished:0,
|
|
oneFinished:0,
|
|
@@ -509,7 +514,7 @@ const tableData1 = ref([])
|
|
//表格被点击
|
|
//表格被点击
|
|
const isDatavCharts = ref(true)
|
|
const isDatavCharts = ref(true)
|
|
const tableRowClick = (row) => {
|
|
const tableRowClick = (row) => {
|
|
- console.log(row)
|
|
|
|
|
|
+ chartsData.value = getObjValue(row.map)
|
|
//模拟改变图表
|
|
//模拟改变图表
|
|
isDatavCharts.value = false
|
|
isDatavCharts.value = false
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|