居民群
This commit is contained in:
@@ -247,6 +247,8 @@ export default {
|
|||||||
departId: "",
|
departId: "",
|
||||||
startTime: "",
|
startTime: "",
|
||||||
endTime: "",
|
endTime: "",
|
||||||
|
start: "",
|
||||||
|
end: "",
|
||||||
showStart: false,
|
showStart: false,
|
||||||
showEnd: false,
|
showEnd: false,
|
||||||
resX: [],
|
resX: [],
|
||||||
@@ -282,6 +284,7 @@ export default {
|
|||||||
if (index == 3) {
|
if (index == 3) {
|
||||||
this.timeSelect = index;
|
this.timeSelect = index;
|
||||||
this.customShow = true;
|
this.customShow = true;
|
||||||
|
|
||||||
this.showStart = false;
|
this.showStart = false;
|
||||||
this.showEnd = false;
|
this.showEnd = false;
|
||||||
} else {
|
} else {
|
||||||
@@ -300,18 +303,18 @@ export default {
|
|||||||
this.departId = "";
|
this.departId = "";
|
||||||
},
|
},
|
||||||
|
|
||||||
// selectConfirm() {
|
selectConfirm() {
|
||||||
// if (this.timeSelect == 3) {
|
if (this.timeSelect == 3) {
|
||||||
// this.timeType = this.timeSelect;
|
this.timeType = this.timeSelect;
|
||||||
// this.startTime = this.start;
|
this.start = this.startTime;
|
||||||
// this.endTime = this.end;
|
this.end = this.endTime;
|
||||||
// this.getBrokenDate();
|
this.getBrokenDate();
|
||||||
// } else {
|
} else {
|
||||||
// this.timeType = this.timeSelect;
|
this.timeType = this.timeSelect;
|
||||||
// this.getBrokenDate();
|
this.getBrokenDate();
|
||||||
// }
|
}
|
||||||
// this.filterShow = false;
|
this.filterShow = false;
|
||||||
// },
|
},
|
||||||
|
|
||||||
confirmStart(val) {
|
confirmStart(val) {
|
||||||
this.startTime = val.year + '-' + val.month + '-' + val.day
|
this.startTime = val.year + '-' + val.month + '-' + val.day
|
||||||
@@ -321,8 +324,8 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
handleTime() {
|
handleTime() {
|
||||||
this.startTime = this.start;
|
this.start = this.startTime
|
||||||
this.endTime = this.end;
|
this.end = this.endTime
|
||||||
this.customShow = false;
|
this.customShow = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -352,8 +355,8 @@ export default {
|
|||||||
.post(`/app/appmasssendingtask/statisticsEffect`, null, {
|
.post(`/app/appmasssendingtask/statisticsEffect`, null, {
|
||||||
params: {
|
params: {
|
||||||
type: this.timeSelect,
|
type: this.timeSelect,
|
||||||
startTime: this.startTime,
|
startTime: this.start,
|
||||||
endTime: this.endTime,
|
endTime: this.end,
|
||||||
// departId: this.departId
|
// departId: this.departId
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -3,22 +3,24 @@
|
|||||||
<AiTopFixed>
|
<AiTopFixed>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<div class="searchBox">
|
<div class="searchBox">
|
||||||
<u-search placeholder="请输入任务名称" v-model="name" :show-action="false"></u-search>
|
<u-search placeholder="请输入任务名称" v-model="taskTitle" @search="searchBtn" @clear="taskTitle='',current=1, list=[],getList()" :show-action="false"></u-search>
|
||||||
</div>
|
</div>
|
||||||
<div class="filterBtn" @click="filterShow = true"><img src="./images/shaixuan.png" alt="">筛选</div>
|
<div class="filterBtn" @click="filterShow = true"><img src="./images/shaixuan.png" alt="">筛选</div>
|
||||||
</div>
|
</div>
|
||||||
</AiTopFixed>
|
</AiTopFixed>
|
||||||
<div class="resident_list">
|
<div class="resident_list" v-if="list.length">
|
||||||
<div class="card" @click="toDetail" v-for="(item,index) in list" :key="index">
|
<div class="card" @click="toDetail" v-for="(item,index) in list" :key="index">
|
||||||
<div class="card_title">
|
<div class="card_title">
|
||||||
<div class="card_left">{{ item.content }}</div>
|
<div class="card_left">{{ item.taskTitle }}</div>
|
||||||
<div class="card_right"><span></span>进行中</div>
|
<div class="card_right"><span :class="item.status==0? 'status0': item.status==1? 'status1': item.status==2? 'status2':
|
||||||
|
item.status == 3? 'status3':item.status==4? 'status4': 'status5'"></span>{{ $dict.getLabel('mstStatus', item.status) }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div>创建时间:<span>{{ item.createTime }}</span></div>
|
<div>创建时间:<span>{{ item.createTime }}</span></div>
|
||||||
<div>共需<span class="num">56</span>名成员完成群发,目前已完成<span class="num">65%</span></div>
|
<div>共需<span class="num">56</span>名成员完成群发,目前已完成<span class="num">{{ item.completionRate || 0 }}%</span></div>
|
||||||
<div>创建部门:<span>{{ item.createUserDept }}</span></div>
|
<div>创建部门:<span>{{ item.createUserDept }}</span></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<AiEmpty description="暂无数据" v-if="!list.length"/>
|
||||||
<u-popup v-model="filterShow" mode="bottom" border-radius="14">
|
<u-popup v-model="filterShow" mode="bottom" border-radius="14">
|
||||||
<div class="popup">
|
<div class="popup">
|
||||||
<div class="tips"></div>
|
<div class="tips"></div>
|
||||||
@@ -35,14 +37,7 @@
|
|||||||
<scroll-view class="select-content" scroll-y="true">
|
<scroll-view class="select-content" scroll-y="true">
|
||||||
<div class="type-list">
|
<div class="type-list">
|
||||||
<div class="type-title">创建人</div>
|
<div class="type-title">创建人</div>
|
||||||
<!-- <div
|
<AiPagePicker class="select" type="sysUser" :selected.sync="createUserId">选择人员</AiPagePicker>
|
||||||
class="item"
|
|
||||||
v-for="(item, index) in timeList"
|
|
||||||
:key="index"
|
|
||||||
:class="index == timeSelect ? 'active' : ''"
|
|
||||||
@click.stop="checkTime(index)">
|
|
||||||
{{ item }}
|
|
||||||
</div> -->
|
|
||||||
</div>
|
</div>
|
||||||
<div class="type-list">
|
<div class="type-list">
|
||||||
<div class="type-title">群发时间</div>
|
<div class="type-title">群发时间</div>
|
||||||
@@ -83,18 +78,31 @@ export default {
|
|||||||
filterShow: false,
|
filterShow: false,
|
||||||
startTime: '',
|
startTime: '',
|
||||||
endTime: '',
|
endTime: '',
|
||||||
|
start: "",
|
||||||
|
end: "",
|
||||||
showStart: false,
|
showStart: false,
|
||||||
showEnd: false,
|
showEnd: false,
|
||||||
|
taskTitle: '',
|
||||||
|
createUserId: [],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
toDetail() {
|
toDetail() {
|
||||||
uni.navigateTo({url: `./groupSendDetail`})
|
uni.navigateTo({url: `./groupSendDetail`})
|
||||||
},
|
},
|
||||||
|
searchBtn() {
|
||||||
|
this.current = 1
|
||||||
|
this.list = [],
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
getList() {
|
getList() {
|
||||||
this.$http.post(`/app/appmasssendingtask/list`, null, {
|
this.$http.post(`/app/appmasssendingtask/list`, null, {
|
||||||
params: {
|
params: {
|
||||||
current: this.current,
|
current: this.current,
|
||||||
|
taskTitle: this.taskTitle,
|
||||||
|
createUserId: this.createUserId,
|
||||||
|
startTime: this.start,
|
||||||
|
endTime: this.end,
|
||||||
}
|
}
|
||||||
}).then(res=> {
|
}).then(res=> {
|
||||||
if(res?.data) {
|
if(res?.data) {
|
||||||
@@ -103,12 +111,18 @@ export default {
|
|||||||
console.log(res);
|
console.log(res);
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
filterBtn() {},
|
filterBtn() {},
|
||||||
reset() {
|
reset() {
|
||||||
this.startTime = '',
|
this.startTime = '',
|
||||||
this.endTime = ''
|
this.endTime = ''
|
||||||
},
|
},
|
||||||
selectConfirm() {},
|
selectConfirm() {
|
||||||
|
this.start = this.startTime,
|
||||||
|
this.end = this.endTime
|
||||||
|
this.filterShow = false
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
confirmStart(val) {
|
confirmStart(val) {
|
||||||
this.startTime = val.year + '-' + val.month + '-' + val.day
|
this.startTime = val.year + '-' + val.month + '-' + val.day
|
||||||
},
|
},
|
||||||
@@ -118,8 +132,10 @@ export default {
|
|||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
document.title = '群发居民群'
|
document.title = '群发居民群'
|
||||||
this.current = 1
|
this.$dict.load('mstStatus').then(() => {
|
||||||
this.getList()
|
this.getList()
|
||||||
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
this.current ++
|
this.current ++
|
||||||
@@ -173,10 +189,32 @@ export default {
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
background: #3399FF;
|
// background: #3399FF;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.status0 {
|
||||||
|
background: #3399FF;
|
||||||
|
}
|
||||||
|
.status1 {
|
||||||
|
background: #FFA938;
|
||||||
|
}
|
||||||
|
.status2 {
|
||||||
|
background: #3399FF;
|
||||||
|
}
|
||||||
|
.status3 {
|
||||||
|
background: #1CCEB0;
|
||||||
|
}
|
||||||
|
.status4 {
|
||||||
|
background: #FF6758;
|
||||||
|
}
|
||||||
|
.status5 {
|
||||||
|
background: #FF6758;
|
||||||
|
}
|
||||||
|
.status6 {
|
||||||
|
background: #999999;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -270,5 +308,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user