|
@@ -0,0 +1,513 @@
|
|
|
+<template>
|
|
|
+ <div class="mainBox">
|
|
|
+ <div class="layerBox">
|
|
|
+ <el-form ref="form" :model="form" :rules="loginRules" class="login-form" autocomplete="on" label-position="left" label-width="120px">
|
|
|
+ <div class="formDiv">
|
|
|
+ <!--选择角色 start------------------------------------------>
|
|
|
+ <el-form-item label="所属角色:" :label-width="formLabelWidth" prop="role_id" class="custom-align-right">
|
|
|
+ <div class="formLabelFloatBox">
|
|
|
+ <el-select v-model="form.role_id" placeholder="请选择..">
|
|
|
+ <el-option
|
|
|
+ v-for="item in role_idArr"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ </el-form-item>
|
|
|
+ <!--选择角色 end------------------------------------------>
|
|
|
+ <el-form-item label="登录账号" :label-width="formLabelWidth" prop="user_name" class="custom-align-right">
|
|
|
+ <el-input v-model="form.user_name" autocomplete="off" placeholder="请输入登录账号.."></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <div v-if="editId==''">
|
|
|
+ <!--新密码 start------------------------------------------>
|
|
|
+ <div class="PasswordBox">
|
|
|
+ <el-form-item prop="password" label="登录密码:" class="custom-align-right">
|
|
|
+ <div class="PasswordBody">
|
|
|
+ <el-input
|
|
|
+ :key="passwordType1"
|
|
|
+ ref="password1"
|
|
|
+ v-model="form.password"
|
|
|
+ :type="passwordType1"
|
|
|
+ placeholder="请输入密码"
|
|
|
+ name="password"
|
|
|
+ tabindex="2"
|
|
|
+ autocomplete="off"
|
|
|
+ @blur="capsTooltip2 = false"
|
|
|
+ />
|
|
|
+ <span class="show-pwd" @click="showPwd(1)">
|
|
|
+ <svg-icon :icon-class="passwordType1 === 'password' ? 'eye' : 'eye-open'" />
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </el-form-item>
|
|
|
+ </div>
|
|
|
+ <!--新密码 end------------------------------------------>
|
|
|
+ <!--新密码 start------------------------------------------>
|
|
|
+ <div class="PasswordBox">
|
|
|
+ <el-form-item prop="confirm_password" label="确认密码:" class="custom-align-right">
|
|
|
+ <div class="PasswordBody">
|
|
|
+ <el-input
|
|
|
+ :key="passwordType2"
|
|
|
+ ref="password2"
|
|
|
+ v-model="form.confirm_password"
|
|
|
+ :type="passwordType2"
|
|
|
+ placeholder="请输入密码"
|
|
|
+ name="password"
|
|
|
+ tabindex="2"
|
|
|
+ autocomplete="off"
|
|
|
+ @blur="capsTooltip2 = false"
|
|
|
+ />
|
|
|
+ <span class="show-pwd" @click="showPwd(2)">
|
|
|
+ <svg-icon :icon-class="passwordType2 === 'password' ? 'eye' : 'eye-open'" />
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </el-form-item>
|
|
|
+ </div>
|
|
|
+ <!--新密码 end------------------------------------------>
|
|
|
+ </div>
|
|
|
+ <el-form-item label="调研员编号:" :label-width="formLabelWidth" prop="number" class="custom-align-right">
|
|
|
+ <el-input v-model="form.number" autocomplete="off" placeholder="请输入真实姓名.."></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="真实姓名:" :label-width="formLabelWidth" prop="real_name" class="custom-align-right">
|
|
|
+ <el-input v-model="form.real_name" autocomplete="off" placeholder="请输入真实姓名.."></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="照片:" :label-width="formLabelWidth" prop="user_photo" :class="['custom-form-item']" class="custom-align-right">
|
|
|
+ <div class="uploaderBox">
|
|
|
+ <!--图片上传组件 start ------------------------------------------------------------>
|
|
|
+ <div class="avatar-upload-container" @mouseenter="hovering = true" @mouseleave="hovering = false">
|
|
|
+ <!-- 上传组件 -->
|
|
|
+ <el-upload
|
|
|
+ class="avatar-uploader"
|
|
|
+ action="#"
|
|
|
+ :show-file-list="false"
|
|
|
+ :before-upload="beforeAvatarUpload"
|
|
|
+ >
|
|
|
+ <!-- 预览图片 -->
|
|
|
+ <img v-if="photoUrl" :src="photoUrl" class="avatar">
|
|
|
+ <!-- 上传图标 -->
|
|
|
+ <div v-else class="chooseImgDiv">
|
|
|
+ <div>
|
|
|
+ <img src="@/assets/public/upload/noImage.png">
|
|
|
+ <div>选择图片</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-upload>
|
|
|
+ <!-- 删除按钮,当鼠标悬浮时显示 -->
|
|
|
+ <div v-if="hovering && photoUrl" class="delete-button" @click="handleDelete">
|
|
|
+ <i class="el-icon-delete"></i>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!--图片上传组件 end ------------------------------------------------------------>
|
|
|
+ </div>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="身份证号:" :label-width="formLabelWidth" prop="id_card" class="custom-align-right">
|
|
|
+ <el-input v-model="form.id_card" autocomplete="off" placeholder="请输入身份证号.."></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="出生年月:" :label-width="formLabelWidth" prop="birthday" class="custom-align-right">
|
|
|
+ <el-date-picker
|
|
|
+ v-model="form.birthday"
|
|
|
+ type="date"
|
|
|
+ placeholder="选择日期">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="性别:" :label-width="formLabelWidth" prop="gender" class="custom-align-right">
|
|
|
+ <el-radio v-model="form.gender" label="1">男</el-radio>
|
|
|
+ <el-radio v-model="form.gender" label="2">女</el-radio>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="手机号:" :label-width="formLabelWidth" prop="mobile" class="custom-align-right">
|
|
|
+ <el-input v-model="form.mobile" autocomplete="off" placeholder="请输入手机号.."></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="工作区域:" :label-width="formLabelWidth" prop="city_arr_id" class="custom-align-right">
|
|
|
+ <!-- 级联选择器 -->
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="有效期:" :label-width="formLabelWidth" prop="mobile" class="custom-align-right">
|
|
|
+ <el-date-picker
|
|
|
+ v-model="form.city_arr_id"
|
|
|
+ type="daterange"
|
|
|
+ :disabled="form.long_time === 1"
|
|
|
+ range-separator="至"
|
|
|
+ start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期">
|
|
|
+ </el-date-picker>
|
|
|
+ <el-checkbox v-model="form.long_time" :true-label="1" :false-label="0" class="longTimeCheckbox">无限期</el-checkbox>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="籍贯:" :label-width="formLabelWidth" prop="" class="custom-align-right">
|
|
|
+ <!-- 级联选择器 -->
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="QQ:" :label-width="formLabelWidth" prop="" class="custom-align-right">
|
|
|
+ <el-input v-model="form.qq" autocomplete="off" placeholder="请输入QQ号.."></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="电子邮箱:" :label-width="formLabelWidth" prop="" class="custom-align-right">
|
|
|
+ <el-input v-model="form.email" autocomplete="off" placeholder="请输入电子邮箱.."></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="邮编:" :label-width="formLabelWidth" prop="" class="custom-align-right">
|
|
|
+ <el-input v-model="form.zip_code" autocomplete="off" placeholder="请输入邮编.."></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="详细地址:" :label-width="formLabelWidth" prop="" class="custom-align-right">
|
|
|
+ <!-- 级联选择器 -->
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="相关资料:" :label-width="formLabelWidth" prop="" class="custom-align-right">
|
|
|
+ <!-- <el-input v-model="form.other" autocomplete="off" placeholder=""></el-input> -->
|
|
|
+ <el-upload
|
|
|
+ class="upload-demo"
|
|
|
+ :action="uploadFileUrl"
|
|
|
+ :on-preview="handlePreview"
|
|
|
+ :on-remove="handleRemove"
|
|
|
+ :before-remove="beforeRemove"
|
|
|
+ multiple
|
|
|
+ :limit="30"
|
|
|
+ :on-exceed="handleExceed"
|
|
|
+ :file-list="form.other">
|
|
|
+ <el-button size="small" type="primary">点击上传</el-button>
|
|
|
+ <div slot="tip" class="el-upload__tip">每张图片最大1MB,最多上传30张图片。</div>
|
|
|
+ </el-upload>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="提示词:" :label-width="formLabelWidth" prop="" class="custom-align-right">
|
|
|
+ <el-input type="textarea" v-model="form.remark" class="custom-textarea"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </div>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+ <div class="bottomBtnBox">
|
|
|
+ <el-button type="info" @click="clearData">重置</el-button>
|
|
|
+ <el-button type="primary" @click="addData" v-if="editId==''">提交</el-button>
|
|
|
+ <el-button type="primary" @click="editData" v-else>修改</el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+// 引入公用样式
|
|
|
+import '@/styles/global.less';
|
|
|
+// 引入
|
|
|
+import URL from '@/utils/baseUrl';
|
|
|
+
|
|
|
+export default {
|
|
|
+ data() {
|
|
|
+ // 配置验证规则:用于表单验证
|
|
|
+ const validatePassword = (rule, value, callback) => {
|
|
|
+ if (value.length < 6) {
|
|
|
+ callback(new Error('密码不能低于6位!'))
|
|
|
+ } else {
|
|
|
+ callback()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ const validateEmpty = (rule,value,callback) => {
|
|
|
+ if (!value || value.trim() === "") {
|
|
|
+ callback(new Error('该项不能为空!'));
|
|
|
+ } else {
|
|
|
+ callback();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ const validateArray = (rule,value,callback) => {
|
|
|
+ if (value.length == 0) {
|
|
|
+ callback(new Error('该项不能为空!'))
|
|
|
+ } else {
|
|
|
+ callback()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return {
|
|
|
+ formLabelWidth:"120px",
|
|
|
+ editId:"",
|
|
|
+ uploadFileUrl:URL.testUrl+"/public/uploadFile",//获得上传地址
|
|
|
+ form:{
|
|
|
+ type_id:10000,//10000管理员
|
|
|
+ role_id:"",//角色id
|
|
|
+ user_name:"",//登录账号
|
|
|
+ password:"",//密码
|
|
|
+ confirm_password:"",//确认密码
|
|
|
+ number:"",//调研员编号
|
|
|
+ real_name:"",//真实姓名
|
|
|
+ user_photo:"",//照片
|
|
|
+ id_card:"",//身份证号
|
|
|
+ birthday:"",//出生年月
|
|
|
+ gender:"1",//性别
|
|
|
+ mobile:"",//手机号
|
|
|
+ city_arr_id:"",//工作区域
|
|
|
+ from_time:"",//有效期开始时间
|
|
|
+ to_time:"",//有效期结束时间
|
|
|
+ long_time:0,//是否为长期 //长期1:长期 0:非长期
|
|
|
+ native_place_arr_id:"",//籍贯
|
|
|
+ qq:"",//QQ
|
|
|
+ email:"",//电子邮箱
|
|
|
+ other:[],//相关资料
|
|
|
+ remark:"",//提示词
|
|
|
+ },
|
|
|
+ role_idArr:[],//角色id池
|
|
|
+ //上传照片
|
|
|
+ photoUrl:'',
|
|
|
+ hovering: false, // 鼠标悬浮状态 悬浮时显示删除
|
|
|
+ //密码验证
|
|
|
+ capsTooltip1: false,
|
|
|
+ capsTooltip2: false,
|
|
|
+ passwordType1: 'password',
|
|
|
+ passwordType2: 'password',
|
|
|
+ //配置from表单验证规则
|
|
|
+ loginRules: {
|
|
|
+ //1.角色id
|
|
|
+ role_id: [{ required: true, trigger: 'blur', validator: validateEmpty }],
|
|
|
+ //2.登录账号
|
|
|
+ user_name: [{ required: true, trigger: 'blur', validator: validateEmpty }],
|
|
|
+ //3.密码和确认密码
|
|
|
+ password: [{ required: true, trigger: 'blur', validator: validatePassword }],
|
|
|
+ confirm_password: [{ required: true, trigger: 'blur', validator: validatePassword }],
|
|
|
+ //4.调研员编号
|
|
|
+ number: [{ required: true, trigger: 'blur', validator: validateEmpty }],
|
|
|
+ //5.真实姓名
|
|
|
+ real_name: [{ required: true, trigger: 'blur', validator: validateEmpty }],
|
|
|
+ //6.手机号
|
|
|
+ mobile: [{ required: true, trigger: 'blur', validator: validateEmpty }],
|
|
|
+ //7.身份证号
|
|
|
+ id_card: [{ required: true, trigger: 'blur', validator: validateEmpty }],
|
|
|
+ //8.性别
|
|
|
+ gender: [{ required: true, trigger: 'blur', validator: validateEmpty }],
|
|
|
+ //9.手机号
|
|
|
+ mobile: [{ required: true, trigger: 'blur', validator: validateEmpty }],
|
|
|
+ //10.工作区域
|
|
|
+ city_arr_id: [{ required: true, trigger: 'blur', validator: validateArray }],
|
|
|
+ //11.有效期
|
|
|
+ long_time: [{ required: true, trigger: 'blur', validator: validateEmpty }],
|
|
|
+
|
|
|
+ }
|
|
|
+ };
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ //1.表单收集 start ------------------------------------------------------------>
|
|
|
+ // 切换密码框的显示与隐藏
|
|
|
+ showPwd(num) {
|
|
|
+ const passwordTypeKey = 'passwordType' + num; //动态生成 passwordType 的键
|
|
|
+ const passwordRefKey = 'password' + num; //动态生成 password 的引用
|
|
|
+ // 切换密码类型
|
|
|
+ if (this[passwordTypeKey] === 'password') {
|
|
|
+ this[passwordTypeKey] = ''; //显示密码
|
|
|
+ } else {
|
|
|
+ this[passwordTypeKey] = 'password'; //隐藏密码
|
|
|
+ }
|
|
|
+ // 使用 $nextTick 聚焦到对应的密码输入框
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs[passwordRefKey].focus(); //聚焦到对应的密码输入框
|
|
|
+ });
|
|
|
+ },
|
|
|
+ //获得角色列表池
|
|
|
+ getRoleList(){
|
|
|
+ let data = {
|
|
|
+ page:1,
|
|
|
+ pageSize:100
|
|
|
+ }
|
|
|
+ this.$store.dispatch('userRole/roleList',data).then(res=>{
|
|
|
+ this.role_idArr = res.data.rows.map(item => ({
|
|
|
+ value: item.id,
|
|
|
+ label: item.role_name
|
|
|
+ }));
|
|
|
+ }).catch(error=>{
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '网络错误,请重试!'
|
|
|
+ });
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //重置表单
|
|
|
+ clearData(){
|
|
|
+ this.form.type_id = 10000;
|
|
|
+ this.form.user_name = "";
|
|
|
+ this.form.role_id = "";
|
|
|
+ this.form.password = "";
|
|
|
+ this.form.confirm_password = "";
|
|
|
+ this.form.real_name = "";
|
|
|
+ this.form.mobile = "";
|
|
|
+ this.role_idArr = [];
|
|
|
+ this.capsTooltip1 = false;
|
|
|
+ this.capsTooltip2 = false;
|
|
|
+ this.passwordType1 = 'password';
|
|
|
+ this.passwordType2 = 'password';
|
|
|
+ },
|
|
|
+ //表单收集 end ------------------------------------------------------------>
|
|
|
+ //2.提交表单 start ------------------------------------------------------------>
|
|
|
+ //2.1 上传图片操作
|
|
|
+ beforeAvatarUpload(file) {
|
|
|
+ const isJPG = file.type === 'image/jpeg';
|
|
|
+ const isPNG = file.type === 'image/png';
|
|
|
+ const isLt2M = file.size / 1024 / 1024 < 2;
|
|
|
+
|
|
|
+ if (!isJPG && !isPNG) {
|
|
|
+ this.$message.error('上传头像图片只能是 JPG 或 PNG 格式!');
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (!isLt2M) {
|
|
|
+ this.$message.error('上传头像图片大小不能超过 2MB!');
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ const formData = new FormData();
|
|
|
+ formData.append('file', file);
|
|
|
+
|
|
|
+ this.$store.dispatch('pool/uploadFile',formData).then(res=> {
|
|
|
+ this.photoUrl = res.data.imgUrl;//显示缩略图
|
|
|
+ this.form.logo = res.data.imgUrl;//提供表单地址
|
|
|
+ console.log(res.data.imgUrl)
|
|
|
+ }).catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '网络错误,请重试!'
|
|
|
+ });
|
|
|
+ })
|
|
|
+
|
|
|
+ // 阻止默认的上传行为
|
|
|
+ return false;
|
|
|
+ },
|
|
|
+ //2.2 删除图片
|
|
|
+ handleDelete() {
|
|
|
+ this.photoUrl = ''; // 清空图片 URL
|
|
|
+ },
|
|
|
+ //2.3 多文件上传
|
|
|
+ handleRemove(file, fileList) {
|
|
|
+ console.log(file, fileList);
|
|
|
+ },
|
|
|
+ handlePreview(file) {
|
|
|
+ console.log(file);
|
|
|
+ },
|
|
|
+ handleExceed(files, fileList) {
|
|
|
+ this.$message.warning(`当前限制选择 30 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`);
|
|
|
+ },
|
|
|
+ beforeRemove(file, fileList) {
|
|
|
+ return this.$confirm(`确定移除 ${ file.name }?`);
|
|
|
+ },
|
|
|
+ //提交表单
|
|
|
+ addData(){
|
|
|
+ console.log(this.form);
|
|
|
+ //1.先验证用户是否已经存在
|
|
|
+ this.$store.dispatch('userMember/verifyUserInfo',{user_name:this.form.user_name}).then(res=>{
|
|
|
+ if(res.code==0){
|
|
|
+ //如果code为0表示用户不存在,提交表单
|
|
|
+ this.$store.dispatch('userMember/createUser',this.form).then(res=>{
|
|
|
+ console.log(res);
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '用户添加成功!'
|
|
|
+ });
|
|
|
+ this.goList();
|
|
|
+ })
|
|
|
+ }else if(res.code==200){
|
|
|
+ //如果code==200 表示用户存在,阻止进一步提交
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '该账号已被注册,请更换其他账号!'
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }).catch(error=>{
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '网络错误,请重试!'
|
|
|
+ });
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //提交表单 start ------------------------------------------------------------>
|
|
|
+ //3.编辑表单 start ------------------------------------------------------------>
|
|
|
+ //获得用户信息
|
|
|
+ getUserInfo(){
|
|
|
+ this.$store.dispatch('userMember/getUser',{id:this.editId}).then(res=>{
|
|
|
+ console.log(res);
|
|
|
+ //回显数据
|
|
|
+ this.form.type_id = res.data.type_id;
|
|
|
+ this.form.user_name = res.data.user_name;
|
|
|
+ this.form.role_id = res.data.role_id;
|
|
|
+ this.form.real_name = res.data.real_name;
|
|
|
+ this.form.mobile = res.data.mobile;
|
|
|
+
|
|
|
+ }).catch(error=>{
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '网络错误,请重试!'
|
|
|
+ });
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //修改用户
|
|
|
+ editData(){
|
|
|
+ this.$store.dispatch('userMember/verifyUserInfo',{editId:this.editId,user_name:this.form.user_name}).then(res=>{
|
|
|
+ if(res.code==0){
|
|
|
+ //如果code为0表示用户不存在,提交表单
|
|
|
+ this.$store.dispatch('userMember/createUser',this.form).then(res=>{
|
|
|
+ console.log(res);
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '用户添加成功!'
|
|
|
+ });
|
|
|
+ this.goList();
|
|
|
+ })
|
|
|
+ }else if(res.code==200){
|
|
|
+ //如果code==200 表示用户存在,阻止进一步提交
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '该账号已被注册,请更换其他账号!'
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }).catch(error=>{
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '网络错误,请重试!'
|
|
|
+ });
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //编辑表单 end ------------------------------------------------------------>
|
|
|
+ goList(){
|
|
|
+ this.$router.push({
|
|
|
+ path: '/userList',
|
|
|
+ });
|
|
|
+ },
|
|
|
+ },
|
|
|
+ mounted(){
|
|
|
+ this.getRoleList();
|
|
|
+ //判断是新建还是回显
|
|
|
+ if(this.$route.query.id!=undefined){
|
|
|
+ this.editId = this.$route.query.id;
|
|
|
+ console.log("编辑用户!")
|
|
|
+ this.getUserInfo();
|
|
|
+ }else{
|
|
|
+ console.log("添加用户!")
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped lang="less">
|
|
|
+ .PasswordBox {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ .el-form-item {
|
|
|
+ flex: 1;
|
|
|
+ }
|
|
|
+ .PasswordTitle {
|
|
|
+ width:120px;
|
|
|
+ text-align: right;
|
|
|
+ margin-right: 10px;
|
|
|
+ margin-bottom:22px;
|
|
|
+ }
|
|
|
+ .PasswordBody {
|
|
|
+ flex: 1;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ }
|
|
|
+ .show-pwd {
|
|
|
+ margin-left: 10px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .longTimeCheckbox {
|
|
|
+ margin-left: 10px;
|
|
|
+ }
|
|
|
+ //执行v-deep穿透scope选择器 start------------------------------------------------------------>*/
|
|
|
+ ::v-deep .custom-form-item > .el-form-item__label {
|
|
|
+ line-height: 140px !important;
|
|
|
+ }
|
|
|
+ ::v-deep .custom-textarea .el-textarea__inner {
|
|
|
+ resize: none; /* 禁止用户拖拽调整大小 */
|
|
|
+ }
|
|
|
+ ::v-deep .custom-align-right .el-form-item__label {
|
|
|
+ text-align: right; /* 设置标签文字右对齐 */
|
|
|
+ }
|
|
|
+ ::v-deep .el-select {
|
|
|
+ width: 100%; /* 禁止用户拖拽调整大小 */
|
|
|
+ }
|
|
|
+ //执行v-deep穿透scope选择器 end------------------------------------------------------------>*/
|
|
|
+</style>
|