mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 08:13:44 +08:00 
			
		
		
		
	Merge branch 'master' of https://gitee.com/y_project/RuoYi-Vue into dev
Conflicts: ruoyi-ui/src/main.js ruoyi-ui/src/views/system/dict/data.vue ruoyi-ui/src/views/system/dict/index.vue ruoyi-ui/src/views/system/user/index.vue ruoyi-ui/src/views/system/user/profile/userInfo.vue
This commit is contained in:
		@@ -18,9 +18,11 @@ import { getDicts } from "@/api/system/dict/data";
 | 
			
		||||
import { getConfigKey } from "@/api/system/config";
 | 
			
		||||
import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, download, handleTree } from "@/utils/ruoyi";
 | 
			
		||||
import Pagination from "@/components/Pagination";
 | 
			
		||||
// 自定义表格工具扩展
 | 
			
		||||
// 自定义表格工具组件
 | 
			
		||||
import RightToolbar from "@/components/RightToolbar"
 | 
			
		||||
// 头部标签插件
 | 
			
		||||
// 字典标签组件
 | 
			
		||||
import DictTag from '@/components/DictTag'
 | 
			
		||||
// 头部标签组件
 | 
			
		||||
import VueMeta from 'vue-meta'
 | 
			
		||||
 | 
			
		||||
// 全局方法挂载
 | 
			
		||||
@@ -47,6 +49,7 @@ Vue.prototype.msgInfo = function (msg) {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// 全局组件挂载
 | 
			
		||||
Vue.component('DictTag', DictTag)
 | 
			
		||||
Vue.component('Pagination', Pagination)
 | 
			
		||||
Vue.component('RightToolbar', RightToolbar)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -185,14 +185,9 @@
 | 
			
		||||
<script>
 | 
			
		||||
import { listData, getData, delData, addData, updateData, exportData } from "@/api/system/dict/data";
 | 
			
		||||
import { listType, getType } from "@/api/system/dict/type";
 | 
			
		||||
// 字典标签组件(使用频繁可在全局挂载)
 | 
			
		||||
import DictTag from '@/components/DictTag'
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
  name: "Data",
 | 
			
		||||
  components: {
 | 
			
		||||
    DictTag
 | 
			
		||||
  },
 | 
			
		||||
  data() {
 | 
			
		||||
    return {
 | 
			
		||||
      // 遮罩层
 | 
			
		||||
 
 | 
			
		||||
@@ -194,14 +194,9 @@
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
import { listType, getType, delType, addType, updateType, exportType, refreshCache } from "@/api/system/dict/type";
 | 
			
		||||
// 字典标签组件(使用频繁可在全局挂载)
 | 
			
		||||
import DictTag from '@/components/DictTag'
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
  name: "Dict",
 | 
			
		||||
  components: {
 | 
			
		||||
    DictTag
 | 
			
		||||
  },
 | 
			
		||||
  data() {
 | 
			
		||||
    return {
 | 
			
		||||
      // 遮罩层
 | 
			
		||||
 
 | 
			
		||||
@@ -210,7 +210,7 @@
 | 
			
		||||
        <el-row>
 | 
			
		||||
          <el-col :span="12">
 | 
			
		||||
            <el-form-item label="用户昵称" prop="nickName">
 | 
			
		||||
              <el-input v-model="form.nickName" placeholder="请输入用户昵称" />
 | 
			
		||||
              <el-input v-model="form.nickName" placeholder="请输入用户昵称" maxlength="30" />
 | 
			
		||||
            </el-form-item>
 | 
			
		||||
          </el-col>
 | 
			
		||||
          <el-col :span="12">
 | 
			
		||||
@@ -234,12 +234,12 @@
 | 
			
		||||
        <el-row>
 | 
			
		||||
          <el-col :span="12">
 | 
			
		||||
            <el-form-item v-if="form.userId == undefined" label="用户名称" prop="userName">
 | 
			
		||||
              <el-input v-model="form.userName" placeholder="请输入用户名称" />
 | 
			
		||||
              <el-input v-model="form.userName" placeholder="请输入用户名称" maxlength="30" />
 | 
			
		||||
            </el-form-item>
 | 
			
		||||
          </el-col>
 | 
			
		||||
          <el-col :span="12">
 | 
			
		||||
            <el-form-item v-if="form.userId == undefined" label="用户密码" prop="password">
 | 
			
		||||
              <el-input v-model="form.password" placeholder="请输入用户密码" type="password" />
 | 
			
		||||
              <el-input v-model="form.password" placeholder="请输入用户密码" type="password" maxlength="20" />
 | 
			
		||||
            </el-form-item>
 | 
			
		||||
          </el-col>
 | 
			
		||||
        </el-row>
 | 
			
		||||
@@ -440,7 +440,8 @@ export default {
 | 
			
		||||
          { required: true, message: "用户昵称不能为空", trigger: "blur" }
 | 
			
		||||
        ],
 | 
			
		||||
        password: [
 | 
			
		||||
          { required: true, message: "用户密码不能为空", trigger: "blur" }
 | 
			
		||||
          { required: true, message: "用户密码不能为空", trigger: "blur" },
 | 
			
		||||
          { min: 5, max: 20, message: '用户密码长度必须介于 5 和 20 之间', trigger: 'blur' }
 | 
			
		||||
        ],
 | 
			
		||||
        email: [
 | 
			
		||||
          {
 | 
			
		||||
@@ -592,7 +593,10 @@ export default {
 | 
			
		||||
    handleResetPwd(row) {
 | 
			
		||||
      this.$prompt('请输入"' + row.userName + '"的新密码', "提示", {
 | 
			
		||||
        confirmButtonText: "确定",
 | 
			
		||||
        cancelButtonText: "取消"
 | 
			
		||||
        cancelButtonText: "取消",
 | 
			
		||||
        closeOnClickModal: false,
 | 
			
		||||
        inputPattern: /^.{5,20}$/,
 | 
			
		||||
        inputErrorMessage: "用户密码长度必须介于 5 和 20 之间",
 | 
			
		||||
      }).then(({ value }) => {
 | 
			
		||||
          resetUserPwd(row.userId, value).then(response => {
 | 
			
		||||
            this.msgSuccess("修改成功,新密码是:" + value);
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <el-form ref="form" :model="user" :rules="rules" label-width="80px">
 | 
			
		||||
    <el-form-item label="用户昵称" prop="nickName">
 | 
			
		||||
      <el-input v-model="user.nickName" />
 | 
			
		||||
      <el-input v-model="user.nickName" maxlength="30" />
 | 
			
		||||
    </el-form-item>
 | 
			
		||||
    <el-form-item label="手机号码" prop="phonenumber">
 | 
			
		||||
      <el-input v-model="user.phonenumber" maxlength="11" />
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user