协同宣发
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="groupSendResident">
|
||||
<div class="AppCooperationPropaganda">
|
||||
<AiTopFixed>
|
||||
<div class="search">
|
||||
<div class="searchBox">
|
||||
@@ -70,6 +70,8 @@
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'AppCooperationPropaganda',
|
||||
appName: '协同宣发',
|
||||
data() {
|
||||
return {
|
||||
current: 1,
|
||||
@@ -88,7 +90,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
toDetail(item) {
|
||||
uni.navigateTo({url: `./groupSendDetail?id=${item.id}&time=${item.createTime}`})
|
||||
uni.navigateTo({url: `./cooperationDetail?id=${item.id}&time=${item.createTime}`})
|
||||
},
|
||||
searchBtn() {
|
||||
this.current = 1
|
||||
@@ -108,7 +110,7 @@ export default {
|
||||
if(res?.data) {
|
||||
this.list = this.current == 1? res.data.records : [...res.data.records, ...this.list]
|
||||
}
|
||||
console.log(res);
|
||||
// console.log(res);
|
||||
})
|
||||
},
|
||||
|
||||
@@ -145,7 +147,7 @@ export default {
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.groupSendResident {
|
||||
.AppCooperationPropaganda {
|
||||
.search {
|
||||
display: flex;
|
||||
height: 80px;
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="groupSendDetail">
|
||||
<div class="cooperationDetail">
|
||||
<AiTopFixed>
|
||||
<div class="tab-select">
|
||||
<div class="item" :class="tabIndex == index ? 'active' : ''" v-for="(item, index) in tabs" :key="index" @click="tabClick(index)">{{ item }}<span></span>
|
||||
@@ -19,17 +19,17 @@
|
||||
|
||||
<div class="pieEcharts">
|
||||
<div class="pie_info">
|
||||
<div class="tips">数据更新于2022-07-06 09:18:56</div>
|
||||
<div class="tips">数据更新于<span>{{ info.remindTime }}</span></div>
|
||||
<div class="pie_card">
|
||||
<div id="pieEcharts"></div>
|
||||
<div class="pie_right">
|
||||
<div>计划送达居民群: <span>10</span></div>
|
||||
<div>未送达居民群: <span>10</span></div>
|
||||
<div>已送达居民群: <span>10</span></div>
|
||||
<div>无法送达居民群: <span>10</span></div>
|
||||
<div>计划送达居民群: <span>{{ info.planCount || 0 }}</span></div>
|
||||
<div>未送达居民群: <span>{{ info.unExecutedCount || 0 }}</span></div>
|
||||
<div>已送达居民群: <span>{{ info.executedCount || 0 }}</span></div>
|
||||
<div>无法送达居民群: <span>{{ info.cannotExecuteCount || 0 }}</span></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btn" :disabled="flag" @click="remindSend">提醒成员发送</div>
|
||||
<div class="btn" @click="remindSend">提醒成员发送</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -64,8 +64,6 @@ export default {
|
||||
createTime: '',
|
||||
id: '',
|
||||
info: {},
|
||||
flag: false,
|
||||
timer: null,
|
||||
current: 1,
|
||||
}
|
||||
},
|
||||
@@ -95,23 +93,30 @@ export default {
|
||||
},
|
||||
|
||||
toDetail() {
|
||||
uni.navigateTo({url: `./detail`})
|
||||
uni.navigateTo({url: `./detail?id=${this.id}`})
|
||||
},
|
||||
// 提醒发送
|
||||
remindSend() {
|
||||
if(this.flag) return
|
||||
var n = 60 * 60 * 1000
|
||||
setTimeout(()=> {
|
||||
|
||||
})
|
||||
var timer = null
|
||||
var num = 60 * 60 * 1000
|
||||
this.$http.post('/app/appmasssendingtask/remindSend',null,{
|
||||
params: {
|
||||
id: this.id
|
||||
}
|
||||
}).then(res => {
|
||||
console.log(res);
|
||||
}).catch(err => {
|
||||
console.log(err);
|
||||
if(res?.code==0) {
|
||||
this.$u.toast('已提醒成员发送')
|
||||
timer = setInterval(()=>{
|
||||
if(this.num == 0) {
|
||||
clearInterval(timer)
|
||||
}
|
||||
num = num - 1
|
||||
}, 60 * 60 * 1000)
|
||||
} else {
|
||||
this.$u.toast(res.msg)
|
||||
}
|
||||
}).catch(() => {
|
||||
this.$u.toast(`${num}s后可再次提醒发送`)
|
||||
})
|
||||
},
|
||||
|
||||
@@ -134,9 +139,6 @@ export default {
|
||||
getPieEcharts() {
|
||||
this.pieEcharts = echarts.init(document.getElementById('pieEcharts'))
|
||||
this.pieEcharts.setOption( {
|
||||
// legend: {
|
||||
// selectedMode:false
|
||||
// },
|
||||
tooltip: {
|
||||
trigger: 'item',
|
||||
formatter: '{a} <br/>{b}: {c} ({d}%)'
|
||||
@@ -185,7 +187,7 @@ export default {
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.groupSendDetail {
|
||||
.cooperationDetail {
|
||||
::v-deep .AiTopFixed .content {
|
||||
padding: 0;
|
||||
}
|
||||
@@ -5,32 +5,43 @@
|
||||
<div class="task_content">
|
||||
<div class="item">
|
||||
<span>任务名称</span>
|
||||
<span>居民社保最新政策</span>
|
||||
<span>{{ data.taskTitle }}</span>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span>创建人</span>
|
||||
<span>居民社保最新政策</span>
|
||||
<span>{{ data.createUserId }}</span>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span>所在部门</span>
|
||||
<span>居民社保最新政策</span>
|
||||
<span>{{ data.createUserDept }}</span>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span>群发时间</span>
|
||||
<span>居民社保最新政策</span>
|
||||
<span>{{ data.choiceTime }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="scope">
|
||||
<span>群发范围</span>
|
||||
<span>按条件筛选的全部X个客户群</span>
|
||||
<span>按条件筛选的全部{{ data.receiveGroupCount || 0}}个客户群</span>
|
||||
</div>
|
||||
<div class="content">
|
||||
<p>群发内容</p>
|
||||
<div></div>
|
||||
<div>
|
||||
<div class="textarea" v-if="content.length">{{ content[0].content }}</div>
|
||||
<div class="pictures">
|
||||
<!-- <image v-for="(item, index) in picList" :key="index" :src="item."/> -->
|
||||
</div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btn">
|
||||
<div class="refuse" @click="refuseBtn">拒绝通过</div>
|
||||
<div class="pass" @click="passBtn">审核通过</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -38,10 +49,29 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
id: "",
|
||||
data: {},
|
||||
content: [],
|
||||
picList: []
|
||||
}
|
||||
},
|
||||
methods: {},
|
||||
onLoad(o) {
|
||||
this.id = o.id
|
||||
},
|
||||
methods: {
|
||||
getDetail() {
|
||||
this.$http.post(`/app/appmasssendingtask/queryDetailById?id=${this.id}`).then(res=> {
|
||||
if (res?.data) {
|
||||
this.data = res.data
|
||||
this.content = res.data.contents.map(v=> v.msgType == 0)
|
||||
this.picList = res.data.contents.map(e=> e.msgType == 1)
|
||||
}
|
||||
})
|
||||
},
|
||||
// 拒绝通过
|
||||
refuseBtn() {},
|
||||
// 审核通过
|
||||
},
|
||||
onShow() {
|
||||
document.title = "群发审批"
|
||||
}
|
||||
@@ -50,7 +80,7 @@ export default {
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.detail {
|
||||
padding: 32px;
|
||||
padding: 32px 32px 120px 32px;
|
||||
box-sizing: border-box;
|
||||
.task {
|
||||
margin-bottom: 24px;
|
||||
@@ -99,7 +129,38 @@ export default {
|
||||
.content {
|
||||
p {
|
||||
color: #999;
|
||||
margin-bottom: 26px;
|
||||
}
|
||||
.textarea {
|
||||
background: #F9F9F9;
|
||||
border-radius: 4px;
|
||||
padding: 20px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.btn {
|
||||
position: fixed;
|
||||
display: flex;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 112px;
|
||||
line-height: 112px;
|
||||
border: 1px solid #DDDDDD;
|
||||
font-size: 32px;
|
||||
.refuse {
|
||||
width: 40%;
|
||||
background: #FFF;
|
||||
color: #FF4466;
|
||||
text-align: center;
|
||||
}
|
||||
.pass {
|
||||
width: 60%;
|
||||
background: #3975C6;
|
||||
color: #FFF;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
src/project/saas/AppCooperationPropaganda/images/shaixuan.png
Normal file
BIN
src/project/saas/AppCooperationPropaganda/images/shaixuan.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 663 B |
Reference in New Issue
Block a user