fix: BUG修改

This commit is contained in:
kun 2023-07-28 19:27:18 +08:00
parent 0e196c9b58
commit effd1877ca
4 changed files with 31 additions and 25 deletions

View File

@ -153,9 +153,9 @@ const getInvestMentData = async () => {
dataObj.value = res.result;
}
};
onMounted(() => {
onMounted(async () => {
console.log(666);
getInvestMentData();
await getInvestMentData();
setjindua();
setjindub();
setjinduc();
@ -185,7 +185,7 @@ const setjindua = () => {
{
top: "40%",
left: "center",
text: "97%",
text: dataObj.value.payRatio + "%",
textStyle: {
color: "#fff",
fontSize: 16
@ -202,7 +202,7 @@ const setjindua = () => {
data: [
{
name: "",
value: 40,
value: dataObj.value.realPayAmountTotal,
labelLine: {
show: false
},
@ -244,7 +244,7 @@ const setjindua = () => {
{
//
name: "",
value: 3,
value: dataObj.value.totalAmount - dataObj.value.realPayAmountTotal,
itemStyle: {
borderColor: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@ -270,7 +270,7 @@ const setjindua = () => {
{
//
name: "",
value: 0.2,
value: 0,
itemStyle: {
color: "rgba(0,0,0,0)"
}
@ -287,7 +287,7 @@ const setjindub = () => {
{
top: "40%",
left: "center",
text: "97%",
text: dataObj.value.payRatio1 + "%",
textStyle: {
color: "#fff",
fontSize: 16
@ -304,7 +304,7 @@ const setjindub = () => {
data: [
{
name: "",
value: 40,
value: dataObj.value.realPayAmountTotal,
labelLine: {
show: false
},
@ -346,7 +346,7 @@ const setjindub = () => {
{
//
name: "",
value: 3,
value: dataObj.value.settlementAmount - dataObj.value.realPayAmountTotal,
itemStyle: {
borderColor: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@ -389,7 +389,7 @@ const setjinduc = () => {
{
top: "40%",
left: "center",
text: "97%",
text: dataObj.value.payRatio2 + "%",
textStyle: {
color: "#fff",
fontSize: 16
@ -407,7 +407,7 @@ const setjinduc = () => {
data: [
{
name: "",
value: 40,
value: dataObj.value.realPayAmountByYear,
labelLine: {
show: false
},
@ -449,7 +449,7 @@ const setjinduc = () => {
{
//
name: "",
value: 3,
value: dataObj.value.totalAmountByYear - dataObj.value.realPayAmountByYear,
itemStyle: {
borderColor: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@ -490,17 +490,17 @@ const setjindud = () => {
let data = [
{
name: "请款报审",
value: 165
value: dataObj.value.paymentTotal
},
{
name: "审定应付",
value: 206
name: "",
value: dataObj.value.totalAmount - dataObj.value.paymentTotal
}
];
myChart.setOption({
title: {
text: "请款情况",
top: "50%",
top: "52%",
left: "center",
textStyle: {
color: "white",
@ -576,17 +576,17 @@ const setjindue = () => {
let data = [
{
name: "实际支付",
value: 200
value: dataObj.value.realPayAmountTotal
},
{
name: "",
value: dataObj.value.totalAmount - dataObj.value.realPayAmountTotal
}
// {
// name: "",
// value: 200
// }
];
myChart.setOption({
title: {
text: "支付情况",
top: "50%",
top: "52%",
left: "center",
textStyle: {
color: "white",

View File

@ -43,7 +43,9 @@
:onReset="true"
>
<template #investmentPaymentId="scope">
<span>{{ scope.row.investmentPaymentId ? "已支付" : "未支付" }}</span>
<span :style="{ color: scope.row.investmentPaymentId ? 'var(--el-menu-text-color)' : '#F80840' }">{{
scope.row.investmentPaymentId ? "已支付" : "未支付"
}}</span>
</template>
<template #applyStartTime="{ row }">
<span v-if="row.applyStartTime">{{ row.applyStartTime + "~" + row.applyEndTime }}</span>

View File

@ -40,7 +40,9 @@
<el-button class="btnStyle" @click="handleAddItem">新增</el-button>
</template>
<template #investmentPaymentId="scope">
<span>{{ scope.row.investmentPaymentId ? "已支付" : "未支付" }}</span>
<span :style="{ color: scope.row.investmentPaymentId ? 'var(--el-menu-text-color)' : '#F80840' }">{{
scope.row.investmentPaymentId ? "已支付" : "未支付"
}}</span>
</template>
<template #operation="{ row }">
<el-button type="primary" link @click="handleItemDetail(2, row)">

View File

@ -16,7 +16,9 @@
<el-button class="btnStyle" @click="handleAddItem">新增</el-button>
</template>
<template #investmentPaymentId="scope">
<span>{{ scope.row.investmentPaymentId ? "已支付" : "未支付" }}</span>
<span :style="{ color: scope.row.investmentPaymentId ? 'var(--el-menu-text-color)' : '#F80840' }">{{
scope.row.investmentPaymentId ? "已支付" : "未支付"
}}</span>
</template>
<template #applyStartTime="{ row }">
<span v-if="row.applyStartTime">{{ row.applyStartTime + "~" + row.applyEndTime }}</span>