走访慰问
This commit is contained in:
@@ -27,7 +27,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="cards-bottom">
|
<div class="cards-bottom">
|
||||||
<span>走访人:{{ item.createUserName }}</span>
|
<span>走访人:<AiOpenData v-if="user.createUserName" type="userName" :openid="user.createUserName" /></span>
|
||||||
<span style="margin-left: 8px">{{ item.createTime }}</span>
|
<span style="margin-left: 8px">{{ item.createTime }}</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
<img src="./img/tx@2x.png" alt="" />
|
<img src="./img/tx@2x.png" alt="" />
|
||||||
|
|
||||||
<div class="rightes">
|
<div class="rightes">
|
||||||
<div class="applicationNames">{{ item.applicationName }}</div>
|
<div class="applicationNames">{{ item.dictName }}</div>
|
||||||
|
|
||||||
<img src="./img/2.png" alt="" class="imgs" />
|
<img src="./img/2.png" alt="" class="imgs" />
|
||||||
</div>
|
</div>
|
||||||
@@ -72,14 +72,15 @@ export default {
|
|||||||
applicationName: '',
|
applicationName: '',
|
||||||
applicationId: '',
|
applicationId: '',
|
||||||
selectUser: {},
|
selectUser: {},
|
||||||
|
type: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {},
|
|
||||||
watch: {},
|
|
||||||
onLoad() {
|
onLoad() {
|
||||||
this.getTypeList()
|
this.$dict.load('appSpecialTypeFive').then(() => {
|
||||||
|
this.typeList = this.$dict.getDict('appSpecialTypeFive')
|
||||||
|
console.log(this.typeList)
|
||||||
|
})
|
||||||
},
|
},
|
||||||
onShow() {},
|
|
||||||
methods: {
|
methods: {
|
||||||
userClick(row, index) {
|
userClick(row, index) {
|
||||||
if (this.userList[index].isChecked) {
|
if (this.userList[index].isChecked) {
|
||||||
@@ -93,16 +94,6 @@ export default {
|
|||||||
this.selectUser = row
|
this.selectUser = row
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
getTypeList() {
|
|
||||||
this.userList = []
|
|
||||||
this.$http.post(`/app/appapplicationinfo/queryApplicationListByType?type=0&status=1`).then((res) => {
|
|
||||||
if (res.code == 0) {
|
|
||||||
this.typeList = res.data
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
// getUser(data) {
|
// getUser(data) {
|
||||||
// this.applicationId = data.id
|
// this.applicationId = data.id
|
||||||
// this.appId = data.id
|
// this.appId = data.id
|
||||||
@@ -110,23 +101,23 @@ export default {
|
|||||||
// },
|
// },
|
||||||
|
|
||||||
getUsers() {
|
getUsers() {
|
||||||
uni.showLoading({
|
this.$http.post(`/app/appspecialadjustment/allList?size=20¤t=${this.current}`, { type: this.type }).then((res) => {
|
||||||
title: '加载中',
|
|
||||||
})
|
|
||||||
this.$http.post(`/app/appapplicationinfo/list?appId=${this.appId}¤t=${this.current}&size=${999}`, { searchParam: this.keyword }).then((res) => {
|
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
if(this.current > res.data.total) {
|
||||||
|
return
|
||||||
|
}
|
||||||
res.data.records.map((item) => {
|
res.data.records.map((item) => {
|
||||||
item.isChecked = false
|
item.isChecked = false
|
||||||
})
|
})
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
this.userList = res.data.records
|
this.userList = this.current > 1 ? [...this.userList, ...res.data.records] : res.data.records
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
submit() {
|
submit() {
|
||||||
if (this.selectUser.id != null) {
|
if (this.selectUser.id != null) {
|
||||||
uni.$emit('goBack', { selectUser: this.selectUser, applicationName: this.applicationName, applicationId: this.applicationId })
|
uni.$emit('goBack', { selectUser: this.selectUser, applicationName: this.applicationName, applicationId: this.type })
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
} else {
|
} else {
|
||||||
return this.$u.toast('请选择人员')
|
return this.$u.toast('请选择人员')
|
||||||
@@ -134,9 +125,8 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
toUserSelect(item) {
|
toUserSelect(item) {
|
||||||
this.applicationName = item.applicationName
|
this.applicationName = item.dictName
|
||||||
this.applicationId = item.id
|
this.type = item.dictValue
|
||||||
this.appId = item.id
|
|
||||||
this.getUsers()
|
this.getUsers()
|
||||||
|
|
||||||
this.showType = false
|
this.showType = false
|
||||||
@@ -144,11 +134,10 @@ export default {
|
|||||||
|
|
||||||
back() {
|
back() {
|
||||||
this.keyword = ''
|
this.keyword = ''
|
||||||
this.typeList = []
|
this.typeList = this.$dict.getDict('appSpecialTypeFive')
|
||||||
this.userList = []
|
this.userList = []
|
||||||
this.applicationName = ''
|
this.applicationName = ''
|
||||||
this.showType = true
|
this.showType = true
|
||||||
this.getTypeList()
|
|
||||||
},
|
},
|
||||||
|
|
||||||
handerSearch(e) {
|
handerSearch(e) {
|
||||||
@@ -166,6 +155,10 @@ export default {
|
|||||||
this.getUsers()
|
this.getUsers()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
onReachBottom() {
|
||||||
|
this.current ++
|
||||||
|
this.getUsers()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user