社区管理
This commit is contained in:
221
src/project/pingchang/AppCommunityManagement/Add.vue
Normal file
221
src/project/pingchang/AppCommunityManagement/Add.vue
Normal file
@@ -0,0 +1,221 @@
|
|||||||
|
<template>
|
||||||
|
<div class="Add">
|
||||||
|
<div class="item mar-b16">
|
||||||
|
<div class="label">
|
||||||
|
<span class="tips">*</span>区域选择
|
||||||
|
</div>
|
||||||
|
<div class="value">
|
||||||
|
<AiAreaPicker v-model="areaId" :areaId="user.areaId" @select="areaSelect" :name.sync="areaName" style="color: #666" selectRoot>
|
||||||
|
<span style="margin-left: 4px" v-if="areaName">{{ areaName }}</span>
|
||||||
|
<span v-else class="color-999">请选择</span>
|
||||||
|
<u-icon name="arrow-right" color="#999" size="16" style="margin-left: 4px" />
|
||||||
|
</AiAreaPicker>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="info mar-b16">
|
||||||
|
<div class="item solid">
|
||||||
|
<div class="label">
|
||||||
|
<span class="tips">*</span>管控对象
|
||||||
|
</div>
|
||||||
|
<div class="value">自动获取</div>
|
||||||
|
</div>
|
||||||
|
<div class="item solid">
|
||||||
|
<div class="label">
|
||||||
|
<span class="tips">*</span>手机号
|
||||||
|
</div>
|
||||||
|
<div class="value">自动获取</div>
|
||||||
|
</div>
|
||||||
|
<div class="item solid">
|
||||||
|
<div class="label">
|
||||||
|
<span class="tips">*</span>身份证号
|
||||||
|
</div>
|
||||||
|
<div class="value">自动获取</div>
|
||||||
|
</div>
|
||||||
|
<div class="item solid">
|
||||||
|
<div class="label">
|
||||||
|
<span class="tips">*</span>居家状态
|
||||||
|
</div>
|
||||||
|
<div class="value">
|
||||||
|
<span class="color-999">请选择</span>
|
||||||
|
<u-icon name="arrow-right" color="#999" size="16" style="margin-left: 4px" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="item solid">
|
||||||
|
<div class="label">
|
||||||
|
<span class="tips">*</span>隔离时间
|
||||||
|
</div>
|
||||||
|
<div class="value">
|
||||||
|
<span class="color-999">请选择</span>
|
||||||
|
<u-icon name="arrow-right" color="#999" size="16" style="margin-left: 4px" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<div class="label">
|
||||||
|
<span class="tips">*</span>隔离策略
|
||||||
|
</div>
|
||||||
|
<div class="value">
|
||||||
|
<span class="color-999">请选择</span>
|
||||||
|
<u-icon name="arrow-right" color="#999" size="16" style="margin-left: 4px" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="info mar-b16">
|
||||||
|
<div class="item solid">
|
||||||
|
<div class="label">
|
||||||
|
<span class="tips">*</span>管控人
|
||||||
|
</div>
|
||||||
|
<div class="value">自动获取</div>
|
||||||
|
</div>
|
||||||
|
<div class="item solid">
|
||||||
|
<div class="label">
|
||||||
|
<span class="tips">*</span>联系方式
|
||||||
|
</div>
|
||||||
|
<div class="value">自动获取</div>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<div class="label">
|
||||||
|
<span class="tips">*</span>管控内容
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<textarea placeholder="请输入详细描述信息"></textarea>
|
||||||
|
</div>
|
||||||
|
<div class="info" style="padding-bottom: 24px;">
|
||||||
|
<div class="item">
|
||||||
|
<div class="label">
|
||||||
|
<span class="tips">*</span>图片
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<AiUploader :def.sync="files" multiple placeholder="上传图片" :limit="9" action="/admin/file/add2"></AiUploader>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="btn-height"></div>
|
||||||
|
<div class="footer">
|
||||||
|
<div class="cancel">解除管理</div>
|
||||||
|
<div class="confirm">保存</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { mapState } from 'vuex'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
areaId: '',
|
||||||
|
areaName: '',
|
||||||
|
files: []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
...mapState(['user']),
|
||||||
|
},
|
||||||
|
onLoad() {
|
||||||
|
this.areaId = this.user.areaId
|
||||||
|
this.areaName = this.user.areaName
|
||||||
|
},
|
||||||
|
onShow() {
|
||||||
|
document.title = '返乡排查'
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
areaSelect(e) {
|
||||||
|
this.areaId = e
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
.Add {
|
||||||
|
background-color: #F3F6F9;
|
||||||
|
padding-top: 16px;
|
||||||
|
.item {
|
||||||
|
background-color: #fff;
|
||||||
|
display: flex;
|
||||||
|
padding: 40px 0 40px 32px;
|
||||||
|
.label {
|
||||||
|
width: 200px;
|
||||||
|
line-height: 48px;
|
||||||
|
font-family: PingFangSC-Medium;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 34px;
|
||||||
|
color: #666;
|
||||||
|
.tips {
|
||||||
|
display: inline-block;
|
||||||
|
font-family: PingFangSC-Medium;
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 34px;
|
||||||
|
color: #F46;
|
||||||
|
margin-right: 8px;
|
||||||
|
vertical-align: text-top;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.value {
|
||||||
|
width: calc(100% - 200px);
|
||||||
|
padding-right: 32px;
|
||||||
|
text-align: right;
|
||||||
|
font-family: PingFangSC-Regular;
|
||||||
|
font-size: 34px;
|
||||||
|
color: #333;
|
||||||
|
.color-999 {
|
||||||
|
color: #999;
|
||||||
|
font-size: 30px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
textarea {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
::v-deep uni-textarea{
|
||||||
|
width: calc(100% - 32px);
|
||||||
|
}
|
||||||
|
.info {
|
||||||
|
padding-left: 32px;
|
||||||
|
background-color: #fff;
|
||||||
|
.item {
|
||||||
|
padding-left: 0;
|
||||||
|
}
|
||||||
|
.solid {
|
||||||
|
border-bottom: 1px solid #ddd;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.mar-b16 {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
.btn-height{
|
||||||
|
height: 130px;
|
||||||
|
}
|
||||||
|
.footer {
|
||||||
|
width: 100%;
|
||||||
|
height: 128px;
|
||||||
|
background: #FFF;
|
||||||
|
box-shadow: inset 0 0 0 0 #D4D4D4;
|
||||||
|
padding: 24px 32px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
display: flex;
|
||||||
|
div {
|
||||||
|
flex: 1;
|
||||||
|
height: 80px;
|
||||||
|
line-height: 80px;
|
||||||
|
background: #FFF;
|
||||||
|
border-radius: 8px;
|
||||||
|
font-family: PingFangSC-Regular;
|
||||||
|
font-size: 32px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.cancel {
|
||||||
|
color: #f46;
|
||||||
|
line-height: 76px;
|
||||||
|
border: 1px solid #CCCCCC;
|
||||||
|
box-sizing: border-box;
|
||||||
|
margin-right: 32px;
|
||||||
|
}
|
||||||
|
.confirm {
|
||||||
|
background-color: #1365DD;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,275 @@
|
|||||||
|
<template>
|
||||||
|
<div class="AppCommunityManagement">
|
||||||
|
<AiTopFixed>
|
||||||
|
<u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="96" bg-color="#3975C6"
|
||||||
|
inactive-color="#A1C1E8" :bar-style="barStyle" :active-item-style="activeStyle" active-color="#ffffff " @change="change">
|
||||||
|
</u-tabs>
|
||||||
|
<div class="top-search">
|
||||||
|
<u-search v-model="keyword" :clearabled="true" placeholder="请输入名称、类型或电话" :show-action="false" bg-color="#F5F5F5"
|
||||||
|
search-icon-color="#999" color="#999" height="58" @search="handerSearch" @clear="handerClear">
|
||||||
|
</u-search>
|
||||||
|
</div>
|
||||||
|
<div class="top-select">
|
||||||
|
<div class="item">
|
||||||
|
<AiAreaPicker v-model="areaId" :areaId="user.areaId" @select="areaSelect" :name.sync="areaName" style="color: #666" selectRoot>
|
||||||
|
<span style="margin-left: 4px" v-if="areaName">{{ areaName }}</span>
|
||||||
|
<span v-else>地区选择</span>
|
||||||
|
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" />
|
||||||
|
</AiAreaPicker>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<span>数据类型</span>
|
||||||
|
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</AiTopFixed>
|
||||||
|
<div class="data-list">
|
||||||
|
<div class="item">
|
||||||
|
<div class="top">
|
||||||
|
<div class="title">
|
||||||
|
<div class="name">
|
||||||
|
李主任
|
||||||
|
<span class="type">返乡登记</span>
|
||||||
|
</div>
|
||||||
|
<div class="status status0"><span></span>核酸待采样</div>
|
||||||
|
</div>
|
||||||
|
<p>429012********2341</p>
|
||||||
|
<p>1834912340</p>
|
||||||
|
<div class="btn" @click="toAdd()">排查</div>
|
||||||
|
<!-- <img src="./components/img/status-img.png" alt="" class="status-img"> -->
|
||||||
|
</div>
|
||||||
|
<div class="bottom">
|
||||||
|
<div class="text">管控人:<span>李在</span>2023-05-04 09:23</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- <AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty> -->
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { mapState } from 'vuex'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
appName: '社区管理',
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
keyword: '',
|
||||||
|
currentTabs: 0,
|
||||||
|
tabList: [
|
||||||
|
{
|
||||||
|
name: '待管理',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '已管理',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '已解除',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
barStyle: {
|
||||||
|
'width': '24px',
|
||||||
|
'height': '2px',
|
||||||
|
'border-radius': '0',
|
||||||
|
'bottom': '5px'
|
||||||
|
},
|
||||||
|
activeStyle: {
|
||||||
|
'font-weight' : '400',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
...mapState(['user']),
|
||||||
|
},
|
||||||
|
watch: {},
|
||||||
|
onLoad() {
|
||||||
|
this.areaId = this.user.areaId
|
||||||
|
this.areaName = this.user.areaName
|
||||||
|
},
|
||||||
|
onShow() {
|
||||||
|
document.title = '社区管理'
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
getList() {
|
||||||
|
this.$http.post('/app/appepidemicreportmember/list', null, {
|
||||||
|
params: { size: this.size, current: this.current, status: this.currentTabs == 1 ? '0' : '', areaId: this.areaId, name: this.keyword },
|
||||||
|
}).then((res) => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
toAdd() {
|
||||||
|
uni.navigateTo({url: './Add'})
|
||||||
|
},
|
||||||
|
change(index) {
|
||||||
|
this.keyword = ''
|
||||||
|
this.currentTabs = index
|
||||||
|
},
|
||||||
|
areaSelect(e) {
|
||||||
|
this.areaId = e
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
|
||||||
|
handerSearch(e) {
|
||||||
|
this.keyword = e
|
||||||
|
this.current = 1
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
|
||||||
|
handerClear() {
|
||||||
|
this.keyword = ''
|
||||||
|
this.current = 1
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
},
|
||||||
|
onReachBottom() {
|
||||||
|
this.current++
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
.AppCommunityManagement {
|
||||||
|
height: 100%;
|
||||||
|
::v-deep .AiTopFixed {
|
||||||
|
.placeholder {
|
||||||
|
.content {
|
||||||
|
padding: 0 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.fixed {
|
||||||
|
margin: 0 !important;
|
||||||
|
.content {
|
||||||
|
padding: 0 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.top-search {
|
||||||
|
padding: 20px 32px;
|
||||||
|
}
|
||||||
|
.top-select {
|
||||||
|
display: flex;
|
||||||
|
padding: 28px 0;
|
||||||
|
.item {
|
||||||
|
flex: 1;
|
||||||
|
padding: 0 8px;
|
||||||
|
text-align: center;
|
||||||
|
span {
|
||||||
|
display: inline-block;
|
||||||
|
font-family: PingFangSC-Medium;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 28px;
|
||||||
|
color: #666;
|
||||||
|
line-height: 40px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.data-list {
|
||||||
|
padding: 32px 32px 0;
|
||||||
|
.item {
|
||||||
|
width: 100%;
|
||||||
|
background: #FFF;
|
||||||
|
border-radius: 16px;
|
||||||
|
.top {
|
||||||
|
padding: 32px 32px 24px 32px;
|
||||||
|
position: relative;
|
||||||
|
.title {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-bottom: 24px;
|
||||||
|
.name {
|
||||||
|
font-family: PingFangSC-Regular;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 32px;
|
||||||
|
color: #000;
|
||||||
|
.type {
|
||||||
|
line-height: 34px;
|
||||||
|
font-family: PingFangSC-Regular;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24px;
|
||||||
|
color: #3975C6;
|
||||||
|
padding: 2px 4px;
|
||||||
|
background-color: #F6F9F5;
|
||||||
|
margin-left: 24px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.status {
|
||||||
|
line-height: 20px;
|
||||||
|
font-family: PingFangSC-Regular;
|
||||||
|
font-size: 28px;
|
||||||
|
span {
|
||||||
|
display: inline-block;
|
||||||
|
width: 8px;
|
||||||
|
height: 8px;
|
||||||
|
border-radius: 50%;
|
||||||
|
margin-right: 8px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.status0 {
|
||||||
|
color: #FFA938;
|
||||||
|
span {
|
||||||
|
background-color: #FFA938;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.status0 {
|
||||||
|
color: #1CCEB0;
|
||||||
|
span {
|
||||||
|
background-color: #1CCEB0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
p {
|
||||||
|
line-height: 40px;
|
||||||
|
font-family: PingFangSC-Regular;
|
||||||
|
font-size: 28px;
|
||||||
|
color: #666;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
.btn {
|
||||||
|
width: 160px;
|
||||||
|
height: 56px;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 54px;
|
||||||
|
background: #FFF;
|
||||||
|
border: 1px solid #1365DD;
|
||||||
|
border-radius: 4px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
position: absolute;
|
||||||
|
bottom: 32px;
|
||||||
|
right: 32px;
|
||||||
|
font-family: PingFangSC-Regular;
|
||||||
|
font-size: 28px;
|
||||||
|
color: #1365DD;
|
||||||
|
}
|
||||||
|
.status-img {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
right: 32px;
|
||||||
|
width: 160px;
|
||||||
|
height: 160px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.bottom {
|
||||||
|
border-top: 2px solid #D8DDE6;
|
||||||
|
padding: 32px;
|
||||||
|
.text {
|
||||||
|
line-height: 40px;
|
||||||
|
font-family: PingFangSC-Regular;
|
||||||
|
font-size: 28px;
|
||||||
|
color: #666;
|
||||||
|
letter-spacing: 0.58px;
|
||||||
|
}
|
||||||
|
span {
|
||||||
|
display: inline-block;
|
||||||
|
color: #3975C6;
|
||||||
|
margin-right: 32px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 7.6 KiB |
Reference in New Issue
Block a user