解决 组织介绍的文本框长度不够,无法显示200个字 问题

https://gitcode.com/hk_openRepo/OpenRepo_Portal/issues/28
This commit is contained in:
LovableCat
2025-03-18 17:19:32 +08:00
parent b42ee530e2
commit 91001eaaab

View File

@@ -18,7 +18,7 @@
<div v-else>{{ organizationInfo.organizationName }}</div>
</d-form-item>
<d-form-item field="organizationProfile" label="组织简介">
<d-textarea v-if="isEdit" v-model="createFormData.organizationProfile" show-count maxlength="200" />
<d-textarea v-if="isEdit" v-model="createFormData.organizationProfile" show-count maxlength="200" :rows="5" />
<div v-else>{{ organizationInfo.organizationProfile }}</div>
</d-form-item>
</d-form>
@@ -35,10 +35,9 @@
<d-search icon-position="left" class="w-[296px]" placeholder="请输入搜索内容" />
</div>
<d-table
v-if="memberTableData.length"
:data="memberTableData"
class="w-full mb-[20px]"
fix-header
class="w-full mb-[20px] organ-table"
:fix-header="memberTableData.length > 0"
header-bg
max-height="500px"
>
@@ -52,11 +51,13 @@
<d-column field="joinDate" header="加入时间" />
<d-column header="操作">
<template #default="{ row }">
<d-button variant="text" color="primary" @click="openDeleteModal(row)">删除</d-button>
<d-button size="sm" variant="text" color="primary" class="p-0 justify-start" @click="openDeleteModal(row)">删除</d-button>
</template>
</d-column>
<template #empty>
<NoData />
</template>
</d-table>
<NoData v-else />
<d-pagination
class="flex justify-end"
:total="pager.total"
@@ -83,7 +84,7 @@
<d-input v-model="createFormData.organizationName" />
</d-form-item>
<d-form-item field="organizationProfile" label="组织简介" required>
<d-textarea v-model="createFormData.organizationProfile" show-count maxlength="200" />
<d-textarea v-model="createFormData.organizationProfile" show-count maxlength="200" :rows="6" />
</d-form-item>
</d-form>
@@ -112,7 +113,7 @@
</d-modal>
<d-modal v-model="deleteMemberModalCtrl" title="删除成员" class="w-[600px]">
<div>即将删除成员{{ deleteRow.userName }}请确认是否继续</div>
<div class="mb-[20px]">即将删除成员‘{{ deleteRow.userName }}’,请确认是否继续?</div>
<div class="flex justify-center">
<d-button variant="solid" class="mr-[8px]" @click="deleteMember">确定</d-button>
<d-button @click="closeDeleteMemberModal">取消</d-button>
@@ -363,7 +364,7 @@ function closeDeleteMemberModal() {
</script>
<style scoped lang="scss">
:deep(.devui-table__row td) {
.organ-table :deep(.devui-table__row td) {
padding: 10px 16px;
}
</style>