<template>
|
<!-- <el-card shadow="hover"> -->
|
<div class="wrapper">
|
<div>
|
<el-text>{{ item.realname }}</el-text>
|
<el-divider direction="vertical" />
|
<el-text>账号:{{ item.acountname }}</el-text>
|
</div>
|
<!-- <div>
|
<el-text>地址:{{ item.location }}</el-text>
|
</div> -->
|
<el-row justify="space-between" style="margin-top: 4px">
|
<el-space>
|
<el-tag type="primary" effect="plain" size="small">
|
{{ item.district }}
|
</el-tag>
|
<!-- <el-tag type="primary" effect="plain" size="small">
|
{{ item.usertype }}
|
</el-tag> -->
|
</el-space>
|
<el-button size="small" type="success" @click="add">添加</el-button>
|
</el-row>
|
</div>
|
<!-- </el-card> -->
|
</template>
|
<script setup>
|
const props = defineProps({
|
item: {
|
type: Object,
|
default: () => {}
|
}
|
});
|
|
const emit = defineEmits(['add']);
|
|
function add() {
|
emit('add', props.item);
|
}
|
</script>
|
<style scoped>
|
.wrapper {
|
border: 1px solid var(--el-border-color);
|
border-radius: var(--el-border-radius-base);
|
padding: 4px 8px;
|
}
|
</style>
|