Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
aixianling
2021-12-23 17:01:09 +08:00
18 changed files with 48 additions and 20 deletions

View File

@@ -60,6 +60,7 @@ export default {
console.log(this.params) console.log(this.params)
this.getList() this.getList()
this.getStatistic() this.getStatistic()
uni.setNavigationBarTitle({title: '乡村相册'})
}, },
methods: { methods: {

View File

@@ -38,6 +38,7 @@ export default {
this.areaId = this.user.areaId this.areaId = this.user.areaId
this.areaName = this.user.areaName this.areaName = this.user.areaName
this.getList() this.getList()
uni.setNavigationBarTitle({title: '乡村相册'})
}, },
methods: { methods: {

View File

@@ -78,6 +78,7 @@ export default {
this.getDetail() this.getDetail()
} }
}) })
uni.setNavigationBarTitle({title: '新增'})
}, },
methods: { methods: {

View File

@@ -43,6 +43,7 @@ export default {
computed: { ...mapState(['user']) }, computed: { ...mapState(['user']) },
mounted() { mounted() {
this.getList() this.getList()
uni.setNavigationBarTitle({title: '便民通讯录'})
}, },
methods: { methods: {

View File

@@ -33,8 +33,8 @@ export default {
}, },
computed: { ...mapState(['user']) }, computed: { ...mapState(['user']) },
mounted() { mounted() {
console.log(this.user)
this.getList() this.getList()
uni.setNavigationBarTitle({title: '便民通讯录'})
}, },
methods: { methods: {

View File

@@ -2,12 +2,12 @@
<div class="AppResidentDocument"> <div class="AppResidentDocument">
<u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="96" bg-color="#3975C6" inactive-color="#fff" active-color="#fff" @change="change"></u-tabs> <u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="96" bg-color="#3975C6" inactive-color="#fff" active-color="#fff" @change="change"></u-tabs>
<!-- <AiAreaPicker v-model="areaId" :areaId="areaId" @select="areaSelect"></AiAreaPicker> --> <AiAreaPicker v-model="areaId" :areaId="user.areaId" @select="current=1,getList"></AiAreaPicker>
<div class="line"></div> <div class="line"></div>
<div class="seachObj"> <div class="seachObj">
<u-search v-model="keyword" :clearabled="true" placeholder="搜索" :show-action="false" bg-color="#F5F5F5" search-icon-color="#E2E8F1" color="#666" height="58" @search="handerSearch" @clear="handerClear"></u-search> <u-search v-model="keyword" :clearabled="true" placeholder="姓名/联系方式/身份证后6位" :show-action="false" bg-color="#F5F5F5" search-icon-color="#E2E8F1" color="#666" height="58" @search="handerSearch" @clear="handerClear"></u-search>
</div> </div>
<div class="datas" v-if="datas.length > 0"> <div class="datas" v-if="datas.length > 0">
@@ -72,6 +72,7 @@ export default {
}, },
], ],
currentTabs: 0, currentTabs: 0,
areaId: ''
} }
}, },
computed: { computed: {
@@ -79,6 +80,7 @@ export default {
}, },
watch: {}, watch: {},
onLoad() { onLoad() {
this.areaId = this.user.areaId
this.getList() this.getList()
}, },
onShow() {}, onShow() {},

View File

@@ -7,27 +7,27 @@
<div class="areaHint"> <div class="areaHint">
<u-icon name="map-fill" color="#73ABFF"></u-icon> <u-icon name="map-fill" color="#73ABFF"></u-icon>
<span>{{ currentAreaName }}</span> <span>{{ currentAddress }}</span>
</div> </div>
</div> </div>
<div class="bottom"> <div class="bottom">
<div class="hints">家庭成员</div> <div class="hints">家庭成员{{data.family.length}}</div>
<div v-if="data.family && data.family.length > 0"> <div v-if="data.family && data.family.length > 0">
<div class="card" v-for="(item, i) in data.family" :key="i" @click="toDetailPeople(item)"> <div class="card" v-for="(item, i) in data.family" :key="i" @click="toDetailPeople(item)">
<div class="photos"> <div class="photos">
<img :src="item.photo" alt="" v-if="item.photo" /> <img :src="item.photo" alt="" v-if="item.photo" />
<img src="./components/img/2.png" alt="" v-else /> <img src="./components/img/44.png" alt="" v-else />
</div> </div>
<div class="right"> <div class="right">
<div class="rightTop"> <div class="rightTop">
<div class="rightTop-lefts"> <div class="rightTop-lefts">
<span class="names">{{ item.name }}</span> <span class="names">{{ item.name }}</span>
<span class="householdNames" v-if="item.householdName == 1">户主</span> <span class="householdNames" v-if="item.householdRelation == 1">户主</span>
<span class="householdNames" v-else> <span class="householdNames" v-else>
{{ $dict.getLabel('householdRelation', item.householdName) }} {{ $dict.getLabel('householdRelation', item.householdRelation) }}
</span> </span>
</div> </div>
@@ -38,7 +38,7 @@
<div class="rightBottom"> <div class="rightBottom">
<span>身份证号</span> <span>身份证号</span>
<span>{{ item.idNumber.replace(/^(\w{6})\w{8}(.*)$/, '$1****$2') }}</span> <span>{{ item.idNumber.replace(/^(\w{6})\w{8}(.*)$/, '$1******$2') }}</span>
</div> </div>
</div> </div>
</div> </div>
@@ -58,7 +58,7 @@ export default {
return { return {
id: '', id: '',
data: [], data: [],
currentAreaName: '', currentAddress: '',
} }
}, },
computed: {}, computed: {},
@@ -76,7 +76,7 @@ export default {
if (res.code == 0) { if (res.code == 0) {
this.data = res.data this.data = res.data
this.$nextTick(() => { this.$nextTick(() => {
this.currentAreaName = res.data.resident.currentAreaName this.currentAddress = res.data.resident.currentAddress
}) })
} }
}) })

View File

@@ -3,16 +3,16 @@
<div class="top"> <div class="top">
<div class="photos"> <div class="photos">
<img :src="data.resident.photo" alt="" v-if="data.resident.photo" /> <img :src="data.resident.photo" alt="" v-if="data.resident.photo" />
<img src="./components/img/2.png" alt="" v-else /> <img src="./components/img/44.png" alt="" v-else />
</div> </div>
<div class="right"> <div class="right">
<div class="rightTop"> <div class="rightTop">
<span class="names">{{ data.resident.name }}</span> <span class="names">{{ data.resident.name }}</span>
<span class="householdNames" v-if="data.resident.name == 1">户主</span> <span class="householdNames" v-if="data.resident.householdRelation == 1">户主</span>
<span class="householdNames" v-else> <span class="householdNames" v-else>
{{ $dict.getLabel('householdRelation', data.resident.householdName) }} {{ $dict.getLabel('householdRelation', data.resident.householdRelation) }}
</span> </span>
</div> </div>
@@ -27,7 +27,7 @@
<div class="contents"> <div class="contents">
<div class="item"> <div class="item">
<span>家庭地址</span> <span>籍贯</span>
<span>{{ data.resident.birthplaceAreaName }}</span> <span>{{ data.resident.birthplaceAreaName }}</span>
</div> </div>
@@ -81,7 +81,7 @@
<div class="contents"> <div class="contents">
<div class="item"> <div class="item">
<span>联系方式</span> <span>联系方式</span>
<span class="phones">{{ data.resident.phone }}</span> <span class="phones" @click="callPhone(data.resident.phone)">{{ data.resident.phone }}</span>
</div> </div>
<div class="item"> <div class="item">
@@ -139,6 +139,9 @@ export default {
} }
}) })
}, },
callPhone(phone) {
uni.makePhoneCall({ phoneNumber: phone })
},
}, },
} }
</script> </script>

View File

@@ -72,6 +72,7 @@ export default {
this.forms.areaId = this.user.areaId this.forms.areaId = this.user.areaId
this.listName = o.listName this.listName = o.listName
this.getType() this.getType()
uni.setNavigationBarTitle({title: this.listName})
}, },
mounted() {}, mounted() {},

View File

@@ -95,6 +95,7 @@ export default {
uni.$on('update' , () => { uni.$on('update' , () => {
this.getList() this.getList()
}) })
uni.setNavigationBarTitle({title: this.listName})
}, },
methods: { methods: {
getType() { getType() {

View File

@@ -40,6 +40,7 @@ export default {
this.id = o.id this.id = o.id
this.listName = o.listName this.listName = o.listName
this.getType() this.getType()
uni.setNavigationBarTitle({title: this.listName})
}, },
mounted() {}, mounted() {},
methods: { methods: {

View File

@@ -155,6 +155,7 @@ export default {
computed: { ...mapState(['user']) }, computed: { ...mapState(['user']) },
created() { created() {
this.getType() this.getType()
uni.setNavigationBarTitle({title: '新增人员'})
}, },
methods: { methods: {

View File

@@ -89,12 +89,12 @@ export default {
}, },
computed: { ...mapState(['user']) }, computed: { ...mapState(['user']) },
created() { created() {
console.log(1111)
this.areaId = this.user.areaId this.areaId = this.user.areaId
this.areaName = this.user.areaName this.areaName = this.user.areaName
this.getStatistic() this.getStatistic()
this.getStatisticMon() this.getStatisticMon()
this.getUserList() this.getUserList()
uni.setNavigationBarTitle({title: '特殊人群管理'})
}, },
methods: { methods: {

View File

@@ -13,7 +13,7 @@
<span class="contsnts">{{ data.content }}</span> <span class="contsnts">{{ data.content }}</span>
<div class="imgs"> <div class="imgs">
<img :src="item.url" alt="" v-for="(item, i) in data.images" :key="i" /> <img :src="item.url" alt="" v-for="(item, i) in data.images" :key="i" @click="previewImage(data.images, item.url)" />
</div> </div>
</div> </div>
</div> </div>
@@ -48,6 +48,12 @@ export default {
} }
}) })
}, },
previewImage (images, img) {
uni.previewImage({
urls: images.map(v => v.url),
current: img
})
},
}, },
} }
</script> </script>

View File

@@ -177,6 +177,7 @@ export default {
this.areaId = this.user.areaId this.areaId = this.user.areaId
this.areaName = this.user.areaName this.areaName = this.user.areaName
this.getList() this.getList()
uni.setNavigationBarTitle({title: '视频监控'})
// this.getMonitors() // this.getMonitors()
}, },
mounted() { mounted() {

View File

@@ -22,6 +22,7 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.detectOrient() this.detectOrient()
}) })
uni.setNavigationBarTitle({title: '视频监控'})
}, },
methods: { methods: {

View File

@@ -150,6 +150,9 @@ export default {
} }
.u-card { .u-card {
::v-deep .u-card__head {
padding: 0 !important;
}
::v-deep .u-card__body { ::v-deep .u-card__body {
.body { .body {
position: relative; position: relative;
@@ -158,6 +161,10 @@ export default {
font-size: 32px; font-size: 32px;
font-weight: 500; font-weight: 500;
margin-bottom: 16px; margin-bottom: 16px;
width: 80%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
} }
.plan, .plan,
.modetpye, .modetpye,

View File

@@ -56,7 +56,7 @@
<!-- 单个文件最大10MB.zip.rar.doc.docx.xls.xlsx.ppt.pptx.pdf.txt.jpg.png格式 --> <!-- 单个文件最大10MB.zip.rar.doc.docx.xls.xlsx.ppt.pptx.pdf.txt.jpg.png格式 -->
<div class="upload"> <div class="upload">
<div class="info"> <div class="info">
<ai-uploader multiple @list="(v) => (annex = v)" :limit="9" action="/admin/file/add2" type="file" placeholder="添加文件" preview /> <AiUploader multiple @list="(v) => (annex = v)" :limit="9" action="/admin/file/add2" type="file" placeholder="添加文件" preview />
</div> </div>
</div> </div>
</div> </div>
@@ -67,7 +67,7 @@
<text class="img_text">(最多9张)</text> <text class="img_text">(最多9张)</text>
<div class="upload"> <div class="upload">
<div class="info"> <div class="info">
<ai-uploader multiple @list="(v) => (picture = v)" :limit="9" :size="2097152" preview /> <AiUploader multiple @list="(v) => (picture = v)" :limit="9" :size="2097152" preview />
</div> </div>
</div> </div>
</div> </div>