123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185 |
- <template>
- <view>
- <view class="content">
- <view class="title">
- <view class="icon">
- <image src="./icon/title_icon.png" mode=""></image>
- </view>
- <view class="text">{{section_fullname}}</view>
- </view>
- <view class="list">
- <view class="item" v-for="(item,index) in list" :key="index" @click="go_user_info(item.staff_num)">
- <view class="left">
- <view class="icon">{{item.name.charAt(0)}}</view>
- <view class="text">{{item.name}} {{item.section_fullname}} {{item.position_name}}</view>
- </view>
- <view class="right" @click.stop="phone(item.mobile)">
- <uni-icons type="phone"></uni-icons>
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- search_text: "",
-
- // 部门名称
- section_fullname:"",
- // 人员列表
- list: [
- ],
- };
- },
- onLoad() {
- this.get_info()
- },
- methods: {
- get_info() {
- this.$api.user_getUinfo({
- staff_num : uni.getStorageSync('user').staff_num
- }).then((res)=>{
- console.log(res.data.data)
- this.section_fullname = res.data.data.section_fullname
- // 获取当前部门人员
- uni.showLoading({
- mask:true
- })
- this.$api.user_list({
- id:res.data.data.section_id
- }).then((res)=>{
- uni.hideLoading()
- console.log(res)
- this.list = res.data.data
- })
- })
- },
- go_user_info(staff_num){
- uni.navigateTo({
- url:"../personal_information/personal_information?staff_num=" + staff_num
- })
- },
- phone(mobile){
- if(mobile != null){
- uni.makePhoneCall({
- phoneNumber: mobile
- });
- }
- },
-
- }
- }
- </script>
- <style lang="scss">
- page {
- background-color: #F3F8F7;
- }
- .search {
- margin-bottom: 20rpx;
- background-color: #FFFFFF;
- box-sizing: border-box;
- padding: 25rpx 30rpx;
- .box {
- height: 80rpx;
- background-color: #F4F4F4;
- border-radius: 50rpx;
- display: flex;
- align-items: center;
- box-sizing: border-box;
- padding: 0 25rpx;
- .icon {
- margin-right: 10rpx;
- }
- .text {
- font-size: 30rpx;
- color: #BBBBBB;
- }
- }
- }
- .content {
- background-color: #FFFFFF;
- .title {
- height: 110rpx;
- display: flex;
- align-items: center;
- box-sizing: border-box;
- padding: 0 36rpx;
- border-bottom: 1rpx solid #F3F8F7;
- .icon {
- image {
- width: 48rpx;
- height: 36rpx;
- }
- }
- .text {
- margin-left: 20rpx;
- font-size: 36rpx;
- font-weight: 700;
- }
- }
- .list {
- .item {
- height: 110rpx;
-
- display: flex;
- justify-content: space-between;
- align-items: center;
-
- margin-left: 108rpx;
- border-bottom: 1rpx solid #F3F8F7;
-
- .left{
- width: 500rpx;
-
- display: flex;
- align-items: center;
- .icon {
- width: 35rpx;
- text-align: center;
- height: 35rpx;
- line-height: 35rpx;
- border-radius: 50%;
- border: 1rpx solid #00A1E9;
-
- font-size: 24rpx;
- color: #00A1E9;
- }
-
- .text {
- width: 450rpx;
- margin-left: 18rpx;
- font-size: 30rpx;
-
- }
- }
- .right{
- width: 90rpx;
- text-align: center;
- }
-
- }
- }
- }
- </style>
|