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

View File

@ -43,7 +43,9 @@
:onReset="true" :onReset="true"
> >
<template #investmentPaymentId="scope"> <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>
<template #applyStartTime="{ row }"> <template #applyStartTime="{ row }">
<span v-if="row.applyStartTime">{{ row.applyStartTime + "~" + row.applyEndTime }}</span> <span v-if="row.applyStartTime">{{ row.applyStartTime + "~" + row.applyEndTime }}</span>

View File

@ -40,7 +40,9 @@
<el-button class="btnStyle" @click="handleAddItem">新增</el-button> <el-button class="btnStyle" @click="handleAddItem">新增</el-button>
</template> </template>
<template #investmentPaymentId="scope"> <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>
<template #operation="{ row }"> <template #operation="{ row }">
<el-button type="primary" link @click="handleItemDetail(2, row)"> <el-button type="primary" link @click="handleItemDetail(2, row)">

View File

@ -16,7 +16,9 @@
<el-button class="btnStyle" @click="handleAddItem">新增</el-button> <el-button class="btnStyle" @click="handleAddItem">新增</el-button>
</template> </template>
<template #investmentPaymentId="scope"> <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>
<template #applyStartTime="{ row }"> <template #applyStartTime="{ row }">
<span v-if="row.applyStartTime">{{ row.applyStartTime + "~" + row.applyEndTime }}</span> <span v-if="row.applyStartTime">{{ row.applyStartTime + "~" + row.applyEndTime }}</span>