diff --git a/src/apps/AppPeopleList/Add.vue b/src/apps/AppPeopleList/Add.vue
index f322e22f..951d1684 100644
--- a/src/apps/AppPeopleList/Add.vue
+++ b/src/apps/AppPeopleList/Add.vue
@@ -122,7 +122,7 @@
户籍地址
-
+
{{ form.householdAreaName }}
请选择
diff --git a/src/apps/AppPeopleList/PeopleList.vue b/src/apps/AppPeopleList/PeopleList.vue
index dc09fe33..594ff7d1 100644
--- a/src/apps/AppPeopleList/PeopleList.vue
+++ b/src/apps/AppPeopleList/PeopleList.vue
@@ -28,7 +28,13 @@
-
{{ item.name }}
+
+
{{ item.name }}
+
+
+
+
+
{{ item.idNumber.replace(/^(\w{6})\w{8}(.*)$/, '$1********$2') }}
@@ -37,10 +43,13 @@
-
-
+
+

+
暂无居民信息
点击新增按钮新增居民信息,也可在管理系统批量导入
+
+
- 新增居民
+ 新增居民
@@ -139,9 +148,22 @@ export default {
this.current = 1
this.getList()
},
- toAdd() {
+ edit(id) {
var residentType = ['', 0, 1][this.currentTabs]
- uni.navigateTo({url:`./Add?type=${residentType}`})
+ uni.navigateTo({url: `./Add?id=${id}&type=${residentType}`})
+ },
+ del(id) {
+ this.$confirm('确定删除该数据?').then(() => {
+ uni.showLoading()
+ this.$http.post(`/app/appresident/delete?ids=${id}`).then((res) => {
+ if (res.code == 0) {
+ this.$u.toast('删除成功!')
+ this.current = 1
+ this.getList()
+ }
+ uni.hideLoading()
+ })
+ }).catch(() => {})
}
},
onReachBottom() {
@@ -225,6 +247,15 @@ uni-page-body {
font-size: 32px;
font-weight: 500;
color: #333333;
+ display: flex;
+ justify-content: space-between;
+ .btn{
+ img{
+ width: 48px;
+ height: 48px;
+ margin-left: 40px;
+ }
+ }
}
.rightBottom {
display: flex;
@@ -250,5 +281,23 @@ uni-page-body {
position: fixed;
bottom: 0;
}
+ .empty{
+ height: 100%;
+ img{
+ width: 282px;
+ height: 306px;
+ margin: 168px 0 0 234px;
+ }
+ p{
+ text-align: center;
+ font-size: 28px;
+ font-family: PingFangSC-Regular, PingFang SC;
+ color: #999;
+ line-height: 44px;
+ span{
+ color: #467DFE;
+ }
+ }
+ }
}
diff --git a/src/apps/AppPeopleList/components/img/del-icon.png b/src/apps/AppPeopleList/components/img/del-icon.png
new file mode 100644
index 00000000..b3424dac
Binary files /dev/null and b/src/apps/AppPeopleList/components/img/del-icon.png differ
diff --git a/src/apps/AppPeopleList/components/img/edit-icon.png b/src/apps/AppPeopleList/components/img/edit-icon.png
new file mode 100644
index 00000000..30a07533
Binary files /dev/null and b/src/apps/AppPeopleList/components/img/edit-icon.png differ