协同宣发
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="groupSendResident">
|
<div class="AppCooperationPropaganda">
|
||||||
<AiTopFixed>
|
<AiTopFixed>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<div class="searchBox">
|
<div class="searchBox">
|
||||||
@@ -70,6 +70,8 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
|
name: 'AppCooperationPropaganda',
|
||||||
|
appName: '协同宣发',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
current: 1,
|
current: 1,
|
||||||
@@ -88,7 +90,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
toDetail(item) {
|
toDetail(item) {
|
||||||
uni.navigateTo({url: `./groupSendDetail?id=${item.id}&time=${item.createTime}`})
|
uni.navigateTo({url: `./cooperationDetail?id=${item.id}&time=${item.createTime}`})
|
||||||
},
|
},
|
||||||
searchBtn() {
|
searchBtn() {
|
||||||
this.current = 1
|
this.current = 1
|
||||||
@@ -108,7 +110,7 @@ export default {
|
|||||||
if(res?.data) {
|
if(res?.data) {
|
||||||
this.list = this.current == 1? res.data.records : [...res.data.records, ...this.list]
|
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>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.groupSendResident {
|
.AppCooperationPropaganda {
|
||||||
.search {
|
.search {
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 80px;
|
height: 80px;
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="groupSendDetail">
|
<div class="cooperationDetail">
|
||||||
<AiTopFixed>
|
<AiTopFixed>
|
||||||
<div class="tab-select">
|
<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>
|
<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="pieEcharts">
|
||||||
<div class="pie_info">
|
<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 class="pie_card">
|
||||||
<div id="pieEcharts"></div>
|
<div id="pieEcharts"></div>
|
||||||
<div class="pie_right">
|
<div class="pie_right">
|
||||||
<div>计划送达居民群: <span>10</span></div>
|
<div>计划送达居民群: <span>{{ info.planCount || 0 }}</span></div>
|
||||||
<div>未送达居民群: <span>10</span></div>
|
<div>未送达居民群: <span>{{ info.unExecutedCount || 0 }}</span></div>
|
||||||
<div>已送达居民群: <span>10</span></div>
|
<div>已送达居民群: <span>{{ info.executedCount || 0 }}</span></div>
|
||||||
<div>无法送达居民群: <span>10</span></div>
|
<div>无法送达居民群: <span>{{ info.cannotExecuteCount || 0 }}</span></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn" :disabled="flag" @click="remindSend">提醒成员发送</div>
|
<div class="btn" @click="remindSend">提醒成员发送</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -64,8 +64,6 @@ export default {
|
|||||||
createTime: '',
|
createTime: '',
|
||||||
id: '',
|
id: '',
|
||||||
info: {},
|
info: {},
|
||||||
flag: false,
|
|
||||||
timer: null,
|
|
||||||
current: 1,
|
current: 1,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -95,23 +93,30 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
toDetail() {
|
toDetail() {
|
||||||
uni.navigateTo({url: `./detail`})
|
uni.navigateTo({url: `./detail?id=${this.id}`})
|
||||||
},
|
},
|
||||||
// 提醒发送
|
// 提醒发送
|
||||||
remindSend() {
|
remindSend() {
|
||||||
if(this.flag) return
|
var timer = null
|
||||||
var n = 60 * 60 * 1000
|
var num = 60 * 60 * 1000
|
||||||
setTimeout(()=> {
|
|
||||||
|
|
||||||
})
|
|
||||||
this.$http.post('/app/appmasssendingtask/remindSend',null,{
|
this.$http.post('/app/appmasssendingtask/remindSend',null,{
|
||||||
params: {
|
params: {
|
||||||
id: this.id
|
id: this.id
|
||||||
}
|
}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log(res);
|
if(res?.code==0) {
|
||||||
}).catch(err => {
|
this.$u.toast('已提醒成员发送')
|
||||||
console.log(err);
|
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() {
|
getPieEcharts() {
|
||||||
this.pieEcharts = echarts.init(document.getElementById('pieEcharts'))
|
this.pieEcharts = echarts.init(document.getElementById('pieEcharts'))
|
||||||
this.pieEcharts.setOption( {
|
this.pieEcharts.setOption( {
|
||||||
// legend: {
|
|
||||||
// selectedMode:false
|
|
||||||
// },
|
|
||||||
tooltip: {
|
tooltip: {
|
||||||
trigger: 'item',
|
trigger: 'item',
|
||||||
formatter: '{a} <br/>{b}: {c} ({d}%)'
|
formatter: '{a} <br/>{b}: {c} ({d}%)'
|
||||||
@@ -185,7 +187,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.groupSendDetail {
|
.cooperationDetail {
|
||||||
::v-deep .AiTopFixed .content {
|
::v-deep .AiTopFixed .content {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
@@ -5,43 +5,73 @@
|
|||||||
<div class="task_content">
|
<div class="task_content">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<span>任务名称</span>
|
<span>任务名称</span>
|
||||||
<span>居民社保最新政策</span>
|
<span>{{ data.taskTitle }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<span>创建人</span>
|
<span>创建人</span>
|
||||||
<span>居民社保最新政策</span>
|
<span>{{ data.createUserId }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<span>所在部门</span>
|
<span>所在部门</span>
|
||||||
<span>居民社保最新政策</span>
|
<span>{{ data.createUserDept }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<span>群发时间</span>
|
<span>群发时间</span>
|
||||||
<span>居民社保最新政策</span>
|
<span>{{ data.choiceTime }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<div class="scope">
|
<div class="scope">
|
||||||
<span>群发范围</span>
|
<span>群发范围</span>
|
||||||
<span>按条件筛选的全部X个客户群</span>
|
<span>按条件筛选的全部{{ data.receiveGroupCount || 0}}个客户群</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>群发内容</p>
|
<p>群发内容</p>
|
||||||
|
<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>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="btn">
|
||||||
|
<div class="refuse" @click="refuseBtn">拒绝通过</div>
|
||||||
|
<div class="pass" @click="passBtn">审核通过</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
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() {
|
onShow() {
|
||||||
document.title = "群发审批"
|
document.title = "群发审批"
|
||||||
}
|
}
|
||||||
@@ -50,7 +80,7 @@ export default {
|
|||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.detail {
|
.detail {
|
||||||
padding: 32px;
|
padding: 32px 32px 120px 32px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
.task {
|
.task {
|
||||||
margin-bottom: 24px;
|
margin-bottom: 24px;
|
||||||
@@ -99,7 +129,38 @@ export default {
|
|||||||
.content {
|
.content {
|
||||||
p {
|
p {
|
||||||
color: #999;
|
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