style:修改用户弹窗样式
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="p-2 editInfo">
|
<div class="p-2 editInfo">
|
||||||
<el-form label-position="top" ref="userFormRef" :model="form" :rules="rules" label-width="80px">
|
<el-form label-position="top" ref="userFormRef" :model="form" :rules="rules" label-width="80px" size="large">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="10">
|
<el-col :span="10">
|
||||||
<el-form-item label="用户昵称" prop="nickName">
|
<el-form-item label="用户昵称" prop="nickName">
|
||||||
@ -70,15 +70,15 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-form-item label="备注">
|
<el-form-item label="备注">
|
||||||
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容"></el-input>
|
<el-input v-model="form.remark" type="textarea" :autosize="{ minRows: 3, maxRows: 3 }" placeholder="请输入内容"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
<!-- <div class="box_submit">
|
<div class="box_submit">
|
||||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
<el-button size="large" @click="cancel()">取 消</el-button>
|
||||||
<el-button @click="cancel()">取 消</el-button>
|
<el-button size="large" type="primary" @click="submitForm">确 定</el-button>
|
||||||
</div> -->
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -247,12 +247,12 @@ defineExpose({ open, getInfoForm });
|
|||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.editInfo {
|
.editInfo {
|
||||||
position: relative;
|
display: flex;
|
||||||
height: 100%;
|
flex-direction: column;
|
||||||
.box_submit {
|
.box_submit {
|
||||||
position: absolute;
|
align-self: flex-end;
|
||||||
right: 10px;
|
display: flex;
|
||||||
bottom: 10px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="title_detail" style="margin-top: 20px">
|
<div class="title_detail" style="margin-top: 10px">
|
||||||
<span>选择或修改当前角色信息</span>
|
<span>选择或修改当前角色信息</span>
|
||||||
<div style="margin-top: 10px" class="box_detail">
|
<div style="margin-top: 10px" class="box_detail">
|
||||||
<!-- 项目列表选择区 -->
|
<!-- 项目列表选择区 -->
|
||||||
@ -34,7 +34,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 角色分配区 -->
|
<!-- 角色分配区 -->
|
||||||
<div class="post_list">
|
<div class="post_list">
|
||||||
<span>关联项目角色分配</span>
|
<div class="list_title">关联项目角色分配</div>
|
||||||
<div v-if="selectedProjects.length === 0" class="no-selection">请从左侧选择项目进行角色分配</div>
|
<div v-if="selectedProjects.length === 0" class="no-selection">请从左侧选择项目进行角色分配</div>
|
||||||
<div v-for="(project, index) in selectedProjects" :key="project.id" class="project-role-container">
|
<div v-for="(project, index) in selectedProjects" :key="project.id" class="project-role-container">
|
||||||
<div class="project-header">
|
<div class="project-header">
|
||||||
@ -64,8 +64,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="box_submit">
|
<div class="box_submit">
|
||||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
<el-button size="large" @click="cancel()">取 消</el-button>
|
||||||
<el-button @click="cancel()">取 消</el-button>
|
<el-button size="large" type="primary" @click="submitForm">保存角色信息</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -328,10 +328,12 @@ defineExpose({ open });
|
|||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.roleInfo {
|
.roleInfo {
|
||||||
position: relative;
|
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding-bottom: 60px;
|
padding-bottom: 60px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 12px;
|
||||||
|
|
||||||
.title_detail {
|
.title_detail {
|
||||||
> span {
|
> span {
|
||||||
@ -359,7 +361,7 @@ defineExpose({ open });
|
|||||||
|
|
||||||
.project_list {
|
.project_list {
|
||||||
width: 320px;
|
width: 320px;
|
||||||
background-color: #fff;
|
border: 1px solid #eee;
|
||||||
|
|
||||||
.project-items {
|
.project-items {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
@ -374,8 +376,7 @@ defineExpose({ open });
|
|||||||
border: 1px solid #eee;
|
border: 1px solid #eee;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: #f5f7fa;
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||||
border-color: #e4e7ed;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.project-item-content {
|
.project-item-content {
|
||||||
@ -403,7 +404,11 @@ defineExpose({ open });
|
|||||||
|
|
||||||
.post_list {
|
.post_list {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
background-color: #fff;
|
border: 1px solid #eee;
|
||||||
|
|
||||||
|
.list_title {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
.no-selection {
|
.no-selection {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@ -417,9 +422,9 @@ defineExpose({ open });
|
|||||||
.project-role-container {
|
.project-role-container {
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
background-color: #f9f9f9;
|
// background-color: #f9f9f9;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
border: 1px solid #f0f0f0;
|
border: 1px solid rgb(229 231 235);
|
||||||
|
|
||||||
.project-header {
|
.project-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -445,7 +450,9 @@ defineExpose({ open });
|
|||||||
|
|
||||||
.role-assignment {
|
.role-assignment {
|
||||||
.role-group {
|
.role-group {
|
||||||
margin-bottom: 15px;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
|
||||||
.role-label {
|
.role-label {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@ -471,9 +478,7 @@ defineExpose({ open });
|
|||||||
}
|
}
|
||||||
|
|
||||||
.box_submit {
|
.box_submit {
|
||||||
position: absolute;
|
align-self: flex-end;
|
||||||
right: 20px;
|
|
||||||
bottom: 0px;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
|
@ -154,11 +154,17 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<!-- 添加或修改用户配置对话框 -->
|
<!-- 添加或修改用户配置对话框 -->
|
||||||
<el-dialog draggable ref="formDialogRef" v-model="dialog.visible" :title="dialog.title" width="1300px" append-to-body @close="closeDialog">
|
<el-dialog draggable ref="formDialogRef" style="background: rgb(249,250,251);" v-model="dialog.visible" :title="dialog.title" width="1300px" append-to-body @close="closeDialog">
|
||||||
<div class="boxDetial">
|
<div class="boxDetial">
|
||||||
<div class="tab_info">
|
<div class="tab_info">
|
||||||
<span @click="onTab(1)" :class="{ active: type == 1 }">基本资料</span>
|
<div class="tab_item" @click="onTab(1)" :class="{ active: type == 1 }">
|
||||||
<span @click="onTab(2)" :class="{ active: type == 2 }">角色信息</span>
|
<Avatar style="width: 1em; height: 1em; margin-right: 8px" :style="{color: type == 1 ? '#1890ff' : '#000'}" />
|
||||||
|
<span>基本资料</span>
|
||||||
|
</div>
|
||||||
|
<div class="tab_item" @click="onTab(2)" :class="{ active: type == 2 }">
|
||||||
|
<Key style="width: 1em; height: 1em; margin-right: 8px" :style="{color: type == 2 ? '#1890ff' : '#000'}" />
|
||||||
|
<span>角色信息</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab_content" v-show="type == 1">
|
<div class="tab_content" v-show="type == 1">
|
||||||
<editInfo ref="editInfoRef" @close="dialog.visible = false" @submit="getList" @setDeptId="setDeptId"></editInfo>
|
<editInfo ref="editInfoRef" @close="dialog.visible = false" @submit="getList" @setDeptId="setDeptId"></editInfo>
|
||||||
@ -232,6 +238,7 @@ import ShuttleFrame from '../../project/projectRelevancy/component/ShuttleFrame.
|
|||||||
import { listProject } from '@/api/project/project';
|
import { listProject } from '@/api/project/project';
|
||||||
import editInfo from './comm/editInfo.vue';
|
import editInfo from './comm/editInfo.vue';
|
||||||
import roleInfo from './comm/roleInfo.vue';
|
import roleInfo from './comm/roleInfo.vue';
|
||||||
|
import { color } from 'echarts';
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
||||||
const { sys_normal_disable, sys_user_sex } = toRefs<any>(proxy?.useDict('sys_normal_disable', 'sys_user_sex'));
|
const { sys_normal_disable, sys_user_sex } = toRefs<any>(proxy?.useDict('sys_normal_disable', 'sys_user_sex'));
|
||||||
@ -690,7 +697,7 @@ const uploadCert = async () => {
|
|||||||
certDialog.value = false;
|
certDialog.value = false;
|
||||||
proxy?.$modal.msgSuccess('上传证书目录成功');
|
proxy?.$modal.msgSuccess('上传证书目录成功');
|
||||||
};
|
};
|
||||||
const onTab = (val) => {
|
const onTab = (val: number) => {
|
||||||
type.value = val;
|
type.value = val;
|
||||||
if (val == 2) {
|
if (val == 2) {
|
||||||
let obj = editInfoRef.value?.getInfoForm();
|
let obj = editInfoRef.value?.getInfoForm();
|
||||||
@ -706,21 +713,32 @@ const onTab = (val) => {
|
|||||||
.boxDetial {
|
.boxDetial {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: start;
|
||||||
height: 680px;
|
height: 680px;
|
||||||
|
gap: 20px;
|
||||||
|
|
||||||
.tab_info {
|
.tab_info {
|
||||||
height: 100%;
|
height: 40%;
|
||||||
width: 200px;
|
width: 200px;
|
||||||
background: #f0f2f5;
|
background: #fff;
|
||||||
padding: 10px;
|
padding: 30px 10px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
border-radius: 0.5rem;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
> span {
|
.tab_item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 5px;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
|
padding: 5px 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
.tab_item:hover {
|
||||||
|
background-color: rgb(249, 250, 251);
|
||||||
|
}
|
||||||
.active {
|
.active {
|
||||||
color: #1890ff;
|
color: #1890ff;
|
||||||
}
|
}
|
||||||
@ -729,7 +747,8 @@ const onTab = (val) => {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
width: calc(100% - 200px);
|
width: calc(100% - 200px);
|
||||||
padding: 20px 10px;
|
padding: 20px 10px;
|
||||||
background: #ccc;
|
background: #fff;
|
||||||
|
border-radius: 0.5rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Reference in New Issue
Block a user