预计发送朋友圈、环状图bug
This commit is contained in:
@@ -44,15 +44,6 @@
|
|||||||
|
|
||||||
<div class="list_content">
|
<div class="list_content">
|
||||||
<div class="list_card">
|
<div class="list_card">
|
||||||
<!-- <div class="tab" v-show="update">
|
|
||||||
<u-subsection
|
|
||||||
:list="subsection"
|
|
||||||
mode="button"
|
|
||||||
activeColor="#3c9cff"
|
|
||||||
:current="subIndex"
|
|
||||||
@change="changeSub"
|
|
||||||
></u-subsection>
|
|
||||||
</div> -->
|
|
||||||
<div class="tab" v-show="update">
|
<div class="tab" v-show="update">
|
||||||
<div class="item" :class="subIndex == index? 'bgactive': ''" v-for="(item,index) in subsection" :key="index" @click="changeSub(index)">
|
<div class="item" :class="subIndex == index? 'bgactive': ''" v-for="(item,index) in subsection" :key="index" @click="changeSub(index)">
|
||||||
{{ item }}
|
{{ item }}
|
||||||
@@ -61,7 +52,7 @@
|
|||||||
|
|
||||||
<AiTable
|
<AiTable
|
||||||
:data="tableData"
|
:data="tableData"
|
||||||
:colConfigs="colConfigs"
|
:colConfigs="type =='CircleOfFriends'? colConfigs1: colConfigs0"
|
||||||
v-if="tableData.length"/>
|
v-if="tableData.length"/>
|
||||||
<AiEmpty v-if="!tableData.length" description="暂无数据"></AiEmpty>
|
<AiEmpty v-if="!tableData.length" description="暂无数据"></AiEmpty>
|
||||||
</div>
|
</div>
|
||||||
@@ -86,23 +77,25 @@ export default {
|
|||||||
currentClickTime: "",
|
currentClickTime: "",
|
||||||
detail: {},
|
detail: {},
|
||||||
|
|
||||||
subsection: [
|
subsection: [],
|
||||||
// { name: "未执行" },
|
|
||||||
// { name: "已执行" },
|
|
||||||
// { name: "无法执行" },
|
|
||||||
],
|
|
||||||
update: true,
|
update: true,
|
||||||
type: "",
|
type: "",
|
||||||
percent: 0,
|
percent: 0,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
colConfigs() {
|
colConfigs0() {
|
||||||
return [
|
return [
|
||||||
{ prop: "userName", label: "成员" },
|
{ prop: "userName", label: "成员" },
|
||||||
{ prop: "customerCount", label: "预计送达居民"},
|
{ prop: "customerCount", label: "预计送达居民"},
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
|
colConfigs1() {
|
||||||
|
return [
|
||||||
|
{ prop: "userName", label: "成员" },
|
||||||
|
{ prop: "customerCount", label: "预计发送朋友圈"},
|
||||||
|
];
|
||||||
|
},
|
||||||
},
|
},
|
||||||
onLoad(o) {
|
onLoad(o) {
|
||||||
this.id = o.id;
|
this.id = o.id;
|
||||||
@@ -232,6 +225,7 @@ export default {
|
|||||||
show: true,
|
show: true,
|
||||||
formatter: ({ name, value }) => {
|
formatter: ({ name, value }) => {
|
||||||
this.percent = value / this.info.planCount * 100 || 0
|
this.percent = value / this.info.planCount * 100 || 0
|
||||||
|
// console.log(this.percent)
|
||||||
return `{name|任务达成率\n\n}{value|${ this.percent }%}`
|
return `{name|任务达成率\n\n}{value|${ this.percent }%}`
|
||||||
},
|
},
|
||||||
textStyle: {
|
textStyle: {
|
||||||
@@ -251,7 +245,7 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: 100 - this.percent,
|
value: this.info.planCount - this.info.executedCount,
|
||||||
name: "未执行成员"
|
name: "未执行成员"
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user