Blame view

pages/work/data/personnel.vue 621 Bytes
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
  <template>
  	<view class="container">
  		<tui-list-cell :marginTop="10" :hover="false" :arrow="false" unlined v-for="(item, index) in dataList">
  			<view>{{item.nickName}}<block v-if="item.deptName">({{item.deptName}})</block></view>
  		</tui-list-cell>
  	</view>
  </template>
  
  <script>
  import { apiAlStaffListByDeptId } from '@/api/work'
  export default {
  	data() {
  		return {
  			dataList: []
  		}
  	},
  	onLoad() {
  		this.queryList()
  	},
  	methods: {
  		// 获取员工列表
  		queryList() {
  			apiAlStaffListByDeptId().then(res => {
  				this.dataList = res.data
  			})
  		}
  	}
  }
  </script>
  
  <style lang="scss" scoped>
  
  </style>