46b6767c
刘淇
init 提交到库
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
<template>
<tui-list-cell :hover="false" arrow :marginTop="10" unlined v-for="(item, index) in dataList" @click="toDetails(item.userId)">
<view>{{item.nickName}}<block v-if="item.phonenumber">({{item.phonenumber}})</block></view>
</tui-list-cell>
</template>
<script>
import { apiAlStaffListByDeptId } from '@/api/work'
export default {
data() {
return {
dataList: []
}
},
onLoad() {
this.queryList()
},
methods: {
// 获取员工列表
queryList() {
apiAlStaffListByDeptId().then(res => {
this.dataList = res.data
})
},
// 轨迹详情
toDetails(id) {
uni.$tui.href(`/pages/work/data/trajectory?id=${id}`)
}
}
}
</script>
<style lang="scss" scoped>
</style>
|