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