This commit is contained in:
changjinpeng
2022-03-10 15:34:11 +08:00
parent f61a5d5e12
commit 22c0bda07b
2 changed files with 15 additions and 16 deletions

View File

@@ -27,7 +27,7 @@
</div>
<div class="cards-bottom">
<span>走访人<AiOpenData v-if="item.createUserName" type="userName" :openid="item.createUserName" style="display:inline-block;" /></span>
<span>走访人<AiOpenData v-if="item.createUserName" type="userName" :openid="item.createUserName" style="display: inline-block" /></span>
<span style="margin-left: 8px">{{ item.createTime }}</span>
</div>
</template>
@@ -49,7 +49,7 @@
</div>
</div> -->
<div class="empty" v-else>
<img src="https://cdn.cunwuyun.cn/dvcp/h5/no-data.png" alt="">
<img src="https://cdn.cunwuyun.cn/dvcp/h5/no-data.png" alt="" />
<p>您还未添加过走访慰问<br />点击<span @click="toAdd()">新增按钮</span>试试吧</p>
</div>
</div>
@@ -364,7 +364,7 @@ uni-page-body {
color: #999;
line-height: 44px;
span {
color: #467DFE;
color: #467dfe;
}
}
}

View File

@@ -56,7 +56,6 @@
<div class="addBtn iconfont iconfont-iconfangda" @tap="toAdd()" />
</AiFixedBtn>
<!-- <AiBck /> -->
</div>
</template>
@@ -76,19 +75,19 @@ export default {
applicationName: '',
applicationId: '',
selectUser: {},
type: ''
type: '',
}
},
onLoad() {
this.$dict.load('appSpecialTypeFive').then(() => {
this.typeList = this.$dict.getDict('appSpecialTypeFive')
console.log(this.typeList)
})
},
methods: {
toAdd() {
uni.navigateTo({ url: '../AppSpecialPeople/add' })
},
userClick(row, index) {
if (this.userList[index].isChecked) {
this.userList[index].isChecked = false //取消
@@ -110,7 +109,7 @@ export default {
getUsers() {
this.$http.post(`/app/appspecialadjustment/allList?size=20&current=${this.current}`, { type: this.type, name: this.keyword }).then((res) => {
if (res.code == 0) {
if(this.current > res.data.total) {
if (this.current > res.data.pages) {
return
}
res.data.records.map((item) => {
@@ -165,7 +164,7 @@ export default {
onReachBottom() {
this.current++
this.getUsers()
}
},
}
</script>