柱状图

This commit is contained in:
shijingjing
2022-07-22 17:40:34 +08:00
parent 048fc9ed24
commit 01db21cd73
4 changed files with 58 additions and 37 deletions

View File

@@ -130,7 +130,16 @@ export default {
// uni.clearStorageSync('selected')
},
selectConfirm() {
this.userId = this.userIdList?.[0].userId,
if(this.userIdList.length) {
this.userId = this.userIdList[0].userId
}
// let arr = this.userIdList
// console.log(arr[0],222);
// console.log(this.userIdList,111);
this.start = this.startTime,
this.end = this.endTime
let startTmp = this.start.split("-");
@@ -153,8 +162,8 @@ export default {
},
},
onShow() {
this.getList()
document.title = '群发居民群'
this.getList()
this.$dict.load('mstStatus').then(() => {
this.getList()
})

View File

@@ -55,7 +55,7 @@
</div>
</div>
</div>
<div v-if="info.status == 4" class="btn" @click="remindSend">提醒成员发送</div>
<div v-if="detail.status == 4" class="btn" @click="remindSend">提醒成员发送</div>
</div>
</div>
@@ -116,6 +116,7 @@ export default {
firstClickTime: "",
currentClickTime: "",
flag: true,
detail: {}
};
},
computed: {
@@ -143,6 +144,14 @@ export default {
this.getStatistics()
},
getDetail() {
this.$http.post(`/app/appmasssendingtask/queryDetailById?id=${this.id}`).then(res=> {
if (res?.data) {
this.detail = res.data
}
})
},
toDetail() {
uni.navigateTo({ url: `./detail?id=${this.id}` });
},
@@ -164,8 +173,7 @@ export default {
this.flag = false;
}
})
.catch((err) => {
console.log(err);
.catch(() => {
});
} else {
time = 60 * 60 * 1000 - time;
@@ -255,6 +263,7 @@ export default {
onShow() {
document.title = "群发居民群统计";
this.getStatistics();
this.getDetail()
},
mounted() {
this.getPieEcharts();

View File

@@ -16,8 +16,8 @@
<div class="item">
<span>所在部门</span>
<span>
<span v-if="data.createUserDept">/<AiOpenData type="userName" :openId="data.createUserDept" style="display: inline-block"></AiOpenData></span>
<span v-if="data.createUserSecondDept">/<AiOpenData type="userName" :openId="data.createUserSecondDept" style="display: inline-block"></AiOpenData></span>
<span v-if="data.createUserDept">/<AiOpenData type="departmentName" :openId="data.createUserDept" style="display: inline-block"></AiOpenData></span>
<span v-if="data.createUserSecondDept">/<AiOpenData type="departmentName" :openId="data.createUserSecondDept" style="display: inline-block"></AiOpenData></span>
</span>
</div>
<div class="item">
@@ -95,6 +95,7 @@ export default {
webpage: [],
miniapp: [],
pictres: [],
options: ''
}
},
onLoad(o) {
@@ -122,7 +123,7 @@ export default {
},
...mapActions(['previewFile']),
prevFile(file) {
this.previewFile(file)
this.previewFile({ ...file })
},
// 拒绝
refuseBtn() {
@@ -150,8 +151,7 @@ export default {
this.$u.toast('审批成功')
this.getDetail()
}
}).catch(err=> {
console.log(err);
}).catch(()=> {
})
},
},
@@ -164,7 +164,7 @@ export default {
<style lang="scss" scoped>
.detail {
padding: 32px 32px 120px 32px;
padding: 32px 32px 140px 32px;
box-sizing: border-box;
.task {
position: relative;
@@ -276,6 +276,7 @@ export default {
line-height: 112px;
border: 1px solid #DDDDDD;
font-size: 32px;
z-index: 9;
.refuse {
width: 40%;
background: #FFF;