This commit is contained in:
shijingjing
2022-09-14 17:46:36 +08:00
parent 16238142f4
commit 7d697c6932
4 changed files with 26 additions and 18 deletions

View File

@@ -147,7 +147,6 @@ export default {
this.$dict.load('mstStatus').then(() => { this.$dict.load('mstStatus').then(() => {
this.getList() this.getList()
}) })
}, },
toDetail(item) { toDetail(item) {
if(this.tabIndex == 0) { if(this.tabIndex == 0) {
@@ -155,7 +154,6 @@ export default {
} else { } else {
uni.navigateTo({url: `./circleDetail??id=${item.id}&time=${item.createTime}&type=${this.sendType}`}) uni.navigateTo({url: `./circleDetail??id=${item.id}&time=${item.createTime}&type=${this.sendType}`})
} }
}, },
searchBtn() { searchBtn() {
this.current = 1 this.current = 1

View File

@@ -95,8 +95,8 @@ export default {
computed: { computed: {
colConfigs() { colConfigs() {
return [ return [
{ prop: "groupOwnerName", label: "成员" }, { prop: "userName", label: "成员" },
{ prop: "groupCount", label: "预计送达居民"}, { prop: "customerCount", label: "预计送达居民"},
]; ];
}, },
}, },
@@ -130,8 +130,8 @@ export default {
}); });
this.currentClickTime = +new Date(); this.currentClickTime = +new Date();
let time = this.currentClickTime - this.firstClickTime; let time = this.currentClickTime - this.firstClickTime;
if (time >= 3600000) { if (time >= 3600000) {
this.$http.post("/app/appmasssendingtask/remindSend", null, { this.$http.post("/app/whchatmomentstask/remindSend", null, {
params: { params: {
id: this.id, id: this.id,
}, },
@@ -176,10 +176,10 @@ export default {
}) })
.then((res) => { .then((res) => {
if (res?.data) { if (res?.data) {
this.info = res.data; this.info = res.data
this.tableData = res.data.executedList.records; this.tableData = res.data.executedList.records
setTimeout(()=>{ setTimeout(()=>{
this.getPieEcharts(); this.getPieEcharts()
}, 1000) }, 1000)
} }
}); });
@@ -217,11 +217,7 @@ export default {
show: true, show: true,
formatter: ({ name, value }) => { formatter: ({ name, value }) => {
let num = value / this.info.planCount * 100 let num = value / this.info.planCount * 100
if (this.tabIndex == 0) { return `{name|任务达成率\n\n}{value|${num}%}`
return num % 1==0? `{name|任务达成率\n\n}{value|${num}%}`: `{name|任务达成率\n\n}{value|${ num.toFixed(1) }%}`;
} else {
return num % 1==0? `{name|群发送达率\n\n}{value|${num}%}`: `{name|群发送达率\n\n}{value|${ num.toFixed(1) }%}`;
}
}, },
textStyle: { textStyle: {
fontSize: 16, fontSize: 16,

View File

@@ -241,8 +241,7 @@ export default {
}, },
// 获取数据 // 获取数据
getStatistics() { getStatistics() {
this.$http this.$http.post(`/app/appmasssendingtask/detailStatistics`, null, {
.post(`/app/appmasssendingtask/detailStatistics`, null, {
params: { params: {
type: this.tabIndex, type: this.tabIndex,
sendStatus: this.tabIndex==0? this.subIndex0: this.subIndex1, sendStatus: this.tabIndex==0? this.subIndex0: this.subIndex1,

View File

@@ -103,17 +103,25 @@ export default {
pictres: [], pictres: [],
options: '', options: '',
approver: [], //审批人 approver: [], //审批人
type: '',
} }
}, },
onLoad(o) { onLoad(o) {
this.id = o.id this.id = o.id
this.type = o.type
}, },
computed: { computed: {
...mapState(['user']) ...mapState(['user'])
}, },
methods: { methods: {
getDetail() { getDetail() {
this.$http.post(`/app/appmasssendingtask/queryDetailById?id=${this.id}`).then(res=> { let url = ''
if(this.type == 'ResidentsGroup') {
url = `/app/appmasssendingtask/queryDetailById?id=${this.id}`
} else {
url = `/app/whchatmomentstask/queryDetailById?id=${this.id}`
}
this.$http.post(url).then(res=> {
if (res?.data) { if (res?.data) {
this.data = res.data this.data = res.data
this.content = res.data.contents.filter(v=> v.msgType == 0)?.[0].content this.content = res.data.contents.filter(v=> v.msgType == 0)?.[0].content
@@ -159,7 +167,14 @@ export default {
}) })
}, },
examine() { examine() {
this.$http.post(`/app/appmasssendingtask/examine`,null,{ // /app/whchatmomentstask/examine
let url = ''
if(this.type == 'ResidentsGroup') {
url = `/app/appmasssendingtask/examine`
} else {
url = `/app/whchatmomentstask/examine`
}
this.$http.post(url,null,{
params: { params: {
pass: this.pass, pass: this.pass,
id: this.id, id: this.id,