<template>
	<!-- 成员列表 -->
	<view class="page">
		<navbar title="成员列表" leftClick @leftClick="$utils.navigateBack" />
		<view class="search">
			<uv-search
			placeholder="输入员工姓名进行搜索" 
			bgColor="#fff"
			@search="getData"
			@custom="getData"
			@clear="getData"
			height="80"
			v-model="queryParams.name"></uv-search>
		</view>

		<view class="Memberinformation" >
			<view class="box" 
			v-for="(item, index) in list" 
			:key="index">
				<view class="Top">
					<view class="userName">
						{{item.name}}
					</view>
					<view class="modify"
					v-if="isPermission('修改')"
					@click="$utils.navigateTo('/pages_order/order/ModifyMembers?id=' + item.id)">
						修改
					</view>
				</view>
				<view class="AccountPassword">
					<!-- <view class="Account">
						账号：{{item.name}}
					</view> -->
					<!-- <view class="password">
						密码：{{item.password}}
					</view> -->
					<view class="password">
						角色：{{item.roleId_dictText}}
					</view>
				</view>
				<view class="item">
					<view class="itemm">
						创建时间：{{item.createTime}}
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import mixinsList from '@/mixins/list.js'
	import { mapGetters } from 'vuex'
	export default {
		mixins: [mixinsList],
		data() {
			return {
				mixinsListApi : 'queryUserList',
			}
		},
		onLoad() {
		},
		methods: {
		}
	}
</script>

<style scoped lang="scss">
	.page {
		padding-bottom: 100rpx;
		.search {
			margin: 20rpx;
		}

		.Memberinformation {
			margin: 0 30rpx;
			.box {
				margin: 30rpx 0;
				border-radius: 25rpx;
				padding: 15rpx;
				background-color: #fff;
				box-shadow: 0 0 10rpx 10rpx #00000009;
				font-size: 28rpx;
				.Top {
					margin-top: 20rpx;
					display: flex;
					justify-content: space-between;

					.userName {
					}

					.modify {
						color: rgb(99, 187, 211);
						margin-right: 30rpx;
					}
				}

				.AccountPassword {
					margin-top: 40rpx;

					.password {
						margin-top: 20rpx;
					}
				}

				.item {
					display: flex;
					justify-content: flex-end;
					font-size: 24rpx;
					padding: 0rpx 15rpx;

					margin-top: 15rpx;

					.itemm {
						margin-left: 40rpx;
					}
				}
			}
		}
	}
</style>