mirror of
				https://gitee.com/hhyykk/ipms-sjy-ui.git
				synced 2025-11-04 20:28:45 +08:00 
			
		
		
		
	Merge branch 'master' of https://gitee.com/yudaocode/yudao-ui-admin-vue3 into dev
Conflicts: src/router/modules/remaining.ts
This commit is contained in:
		@@ -40,13 +40,13 @@
 | 
				
			|||||||
|----------------------------------------------------------------------|------------------|--------|
 | 
					|----------------------------------------------------------------------|------------------|--------|
 | 
				
			||||||
| [Vue](https://staging-cn.vuejs.org/)                                 | Vue 框架           | 3.3.4 |
 | 
					| [Vue](https://staging-cn.vuejs.org/)                                 | Vue 框架           | 3.3.4 |
 | 
				
			||||||
| [Vite](https://cn.vitejs.dev//)                                      | 开发与构建工具          | 4.4.9  |
 | 
					| [Vite](https://cn.vitejs.dev//)                                      | 开发与构建工具          | 4.4.9  |
 | 
				
			||||||
| [Element Plus](https://element-plus.org/zh-CN/)                      | Element Plus     | 2.3.9 |
 | 
					| [Element Plus](https://element-plus.org/zh-CN/)                      | Element Plus     | 2.3.12 |
 | 
				
			||||||
| [TypeScript](https://www.typescriptlang.org/docs/)                   | JavaScript 的超集   | 5.1.6  |
 | 
					| [TypeScript](https://www.typescriptlang.org/docs/)                   | JavaScript 的超集   | 5.1.6  |
 | 
				
			||||||
| [pinia](https://pinia.vuejs.org/)                                    | Vue 存储库 替代 vuex5 | 2.1.6 |
 | 
					| [pinia](https://pinia.vuejs.org/)                                    | Vue 存储库 替代 vuex5 | 2.1.6 |
 | 
				
			||||||
| [vueuse](https://vueuse.org/)                                        | 常用工具集            | 10.3.0 |
 | 
					| [vueuse](https://vueuse.org/)                                        | 常用工具集            | 10.4.1 |
 | 
				
			||||||
| [vue-i18n](https://kazupon.github.io/vue-i18n/zh/introduction.html/) | 国际化              | 9.2.2  |
 | 
					| [vue-i18n](https://kazupon.github.io/vue-i18n/zh/introduction.html/) | 国际化              | 9.2.2  |
 | 
				
			||||||
| [vue-router](https://router.vuejs.org/)                              | Vue 路由           | 4.2.4  |
 | 
					| [vue-router](https://router.vuejs.org/)                              | Vue 路由           | 4.2.4  |
 | 
				
			||||||
| [unocss](https://uno.antfu.me/)                                      | 原子 css          | 0.55.2  |
 | 
					| [unocss](https://uno.antfu.me/)                                      | 原子 css          | 0.55.3  |
 | 
				
			||||||
| [iconify](https://icon-sets.iconify.design/)                         | 在线图标库            | 3.1.1  |
 | 
					| [iconify](https://icon-sets.iconify.design/)                         | 在线图标库            | 3.1.1  |
 | 
				
			||||||
| [wangeditor](https://www.wangeditor.com/)                            | 富文本编辑器           | 5.1.23 |
 | 
					| [wangeditor](https://www.wangeditor.com/)                            | 富文本编辑器           | 5.1.23 |
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -31,6 +31,8 @@ const include = [
 | 
				
			|||||||
  'element-plus/es',
 | 
					  'element-plus/es',
 | 
				
			||||||
  'element-plus/es/locale/lang/zh-cn',
 | 
					  'element-plus/es/locale/lang/zh-cn',
 | 
				
			||||||
  'element-plus/es/locale/lang/en',
 | 
					  'element-plus/es/locale/lang/en',
 | 
				
			||||||
 | 
					  'element-plus/es/components/avatar/style/css',
 | 
				
			||||||
 | 
					  'element-plus/es/components/space/style/css',
 | 
				
			||||||
  'element-plus/es/components/backtop/style/css',
 | 
					  'element-plus/es/components/backtop/style/css',
 | 
				
			||||||
  'element-plus/es/components/form/style/css',
 | 
					  'element-plus/es/components/form/style/css',
 | 
				
			||||||
  'element-plus/es/components/radio-group/style/css',
 | 
					  'element-plus/es/components/radio-group/style/css',
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										20
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								package.json
									
									
									
									
									
								
							@@ -31,22 +31,22 @@
 | 
				
			|||||||
    "@form-create/element-ui": "^3.1.17",
 | 
					    "@form-create/element-ui": "^3.1.17",
 | 
				
			||||||
    "@iconify/iconify": "^3.1.1",
 | 
					    "@iconify/iconify": "^3.1.1",
 | 
				
			||||||
    "@videojs-player/vue": "^1.0.0",
 | 
					    "@videojs-player/vue": "^1.0.0",
 | 
				
			||||||
    "@vueuse/core": "^10.3.0",
 | 
					    "@vueuse/core": "^10.4.1",
 | 
				
			||||||
    "@wangeditor/editor": "^5.1.23",
 | 
					    "@wangeditor/editor": "^5.1.23",
 | 
				
			||||||
    "@wangeditor/editor-for-vue": "^5.1.10",
 | 
					    "@wangeditor/editor-for-vue": "^5.1.10",
 | 
				
			||||||
    "@zxcvbn-ts/core": "^3.0.3",
 | 
					    "@zxcvbn-ts/core": "^3.0.3",
 | 
				
			||||||
    "animate.css": "^4.1.1",
 | 
					    "animate.css": "^4.1.1",
 | 
				
			||||||
    "axios": "^1.4.0",
 | 
					    "axios": "^1.5.0",
 | 
				
			||||||
    "benz-amr-recorder": "^1.1.5",
 | 
					    "benz-amr-recorder": "^1.1.5",
 | 
				
			||||||
    "bpmn-js-token-simulation": "^0.10.0",
 | 
					    "bpmn-js-token-simulation": "^0.10.0",
 | 
				
			||||||
    "camunda-bpmn-moddle": "^7.0.1",
 | 
					    "camunda-bpmn-moddle": "^7.0.1",
 | 
				
			||||||
    "cropperjs": "^1.5.13",
 | 
					    "cropperjs": "^1.6.0",
 | 
				
			||||||
    "crypto-js": "^4.1.1",
 | 
					    "crypto-js": "^4.1.1",
 | 
				
			||||||
    "dayjs": "^1.11.9",
 | 
					    "dayjs": "^1.11.9",
 | 
				
			||||||
    "diagram-js": "^11.6.0",
 | 
					    "diagram-js": "^12.3.0",
 | 
				
			||||||
    "echarts": "^5.4.3",
 | 
					    "echarts": "^5.4.3",
 | 
				
			||||||
    "echarts-wordcloud": "^2.1.0",
 | 
					    "echarts-wordcloud": "^2.1.0",
 | 
				
			||||||
    "element-plus": "2.3.9",
 | 
					    "element-plus": "2.3.12",
 | 
				
			||||||
    "fast-xml-parser": "^4.2.7",
 | 
					    "fast-xml-parser": "^4.2.7",
 | 
				
			||||||
    "highlight.js": "^11.8.0",
 | 
					    "highlight.js": "^11.8.0",
 | 
				
			||||||
    "intro.js": "^7.2.0",
 | 
					    "intro.js": "^7.2.0",
 | 
				
			||||||
@@ -73,7 +73,7 @@
 | 
				
			|||||||
  "devDependencies": {
 | 
					  "devDependencies": {
 | 
				
			||||||
    "@commitlint/cli": "^17.7.1",
 | 
					    "@commitlint/cli": "^17.7.1",
 | 
				
			||||||
    "@commitlint/config-conventional": "^17.7.0",
 | 
					    "@commitlint/config-conventional": "^17.7.0",
 | 
				
			||||||
    "@iconify/json": "^2.2.103",
 | 
					    "@iconify/json": "^2.2.107",
 | 
				
			||||||
    "@intlify/unplugin-vue-i18n": "^0.12.3",
 | 
					    "@intlify/unplugin-vue-i18n": "^0.12.3",
 | 
				
			||||||
    "@purge-icons/generated": "^0.9.0",
 | 
					    "@purge-icons/generated": "^0.9.0",
 | 
				
			||||||
    "@types/intro.js": "^5.1.1",
 | 
					    "@types/intro.js": "^5.1.1",
 | 
				
			||||||
@@ -84,16 +84,16 @@
 | 
				
			|||||||
    "@types/qs": "^6.9.7",
 | 
					    "@types/qs": "^6.9.7",
 | 
				
			||||||
    "@typescript-eslint/eslint-plugin": "^6.4.1",
 | 
					    "@typescript-eslint/eslint-plugin": "^6.4.1",
 | 
				
			||||||
    "@typescript-eslint/parser": "^6.4.1",
 | 
					    "@typescript-eslint/parser": "^6.4.1",
 | 
				
			||||||
    "@unocss/transformer-variant-group": "^0.55.2",
 | 
					    "@unocss/transformer-variant-group": "^0.55.3",
 | 
				
			||||||
    "@vitejs/plugin-legacy": "^4.1.1",
 | 
					    "@vitejs/plugin-legacy": "^4.1.1",
 | 
				
			||||||
    "@vitejs/plugin-vue": "^4.3.3",
 | 
					    "@vitejs/plugin-vue": "^4.3.3",
 | 
				
			||||||
    "@vitejs/plugin-vue-jsx": "^3.0.2",
 | 
					    "@vitejs/plugin-vue-jsx": "^3.0.2",
 | 
				
			||||||
    "@vue-macros/volar": "^0.13.7",
 | 
					    "@vue-macros/volar": "^0.14.2",
 | 
				
			||||||
    "autoprefixer": "^10.4.15",
 | 
					    "autoprefixer": "^10.4.15",
 | 
				
			||||||
    "bpmn-js": "^8.9.0",
 | 
					    "bpmn-js": "^8.9.0",
 | 
				
			||||||
    "bpmn-js-properties-panel": "^0.46.0",
 | 
					    "bpmn-js-properties-panel": "^0.46.0",
 | 
				
			||||||
    "consola": "^3.2.3",
 | 
					    "consola": "^3.2.3",
 | 
				
			||||||
    "eslint": "^8.47.0",
 | 
					    "eslint": "^8.48.0",
 | 
				
			||||||
    "eslint-config-prettier": "^9.0.0",
 | 
					    "eslint-config-prettier": "^9.0.0",
 | 
				
			||||||
    "eslint-define-config": "^1.23.0",
 | 
					    "eslint-define-config": "^1.23.0",
 | 
				
			||||||
    "eslint-plugin-prettier": "^5.0.0",
 | 
					    "eslint-plugin-prettier": "^5.0.0",
 | 
				
			||||||
@@ -113,7 +113,7 @@
 | 
				
			|||||||
    "stylelint-order": "^6.0.3",
 | 
					    "stylelint-order": "^6.0.3",
 | 
				
			||||||
    "terser": "^5.19.2",
 | 
					    "terser": "^5.19.2",
 | 
				
			||||||
    "typescript": "5.1.6",
 | 
					    "typescript": "5.1.6",
 | 
				
			||||||
    "unocss": "^0.55.2",
 | 
					    "unocss": "^0.55.3",
 | 
				
			||||||
    "unplugin-auto-import": "^0.16.6",
 | 
					    "unplugin-auto-import": "^0.16.6",
 | 
				
			||||||
    "unplugin-element-plus": "^0.8.0",
 | 
					    "unplugin-element-plus": "^0.8.0",
 | 
				
			||||||
    "unplugin-vue-components": "^0.25.1",
 | 
					    "unplugin-vue-components": "^0.25.1",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,7 @@
 | 
				
			|||||||
<template>
 | 
					<template>
 | 
				
			||||||
  <div class="user-info-head" @click="open()">
 | 
					  <div class="user-info-head" @click="open()">
 | 
				
			||||||
    <img v-if="sourceValue" :src="sourceValue" alt="avatar" class="img-circle img-lg" />
 | 
					    <img v-if="sourceValue" :src="sourceValue" alt="avatar" class="img-circle img-lg" />
 | 
				
			||||||
 | 
					    <img v-if="!sourceValue" :src="avatar" alt="avatar" class="img-circle img-lg" />
 | 
				
			||||||
    <el-button v-if="showBtn" :class="`${prefixCls}-upload-btn`" @click="open()">
 | 
					    <el-button v-if="showBtn" :class="`${prefixCls}-upload-btn`" @click="open()">
 | 
				
			||||||
      {{ btnText ? btnText : t('cropper.selectImage') }}
 | 
					      {{ btnText ? btnText : t('cropper.selectImage') }}
 | 
				
			||||||
    </el-button>
 | 
					    </el-button>
 | 
				
			||||||
@@ -17,6 +18,7 @@ import { useDesign } from '@/hooks/web/useDesign'
 | 
				
			|||||||
import { propTypes } from '@/utils/propTypes'
 | 
					import { propTypes } from '@/utils/propTypes'
 | 
				
			||||||
import { useI18n } from 'vue-i18n'
 | 
					import { useI18n } from 'vue-i18n'
 | 
				
			||||||
import CopperModal from './CopperModal.vue'
 | 
					import CopperModal from './CopperModal.vue'
 | 
				
			||||||
 | 
					import avatar from '@/assets/imgs/avatar.jpg'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
defineOptions({ name: 'CropperAvatar' })
 | 
					defineOptions({ name: 'CropperAvatar' })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,7 +4,7 @@
 | 
				
			|||||||
      ref="cropperRef"
 | 
					      ref="cropperRef"
 | 
				
			||||||
      :btnProps="{ preIcon: 'ant-design:cloud-upload-outlined' }"
 | 
					      :btnProps="{ preIcon: 'ant-design:cloud-upload-outlined' }"
 | 
				
			||||||
      :showBtn="false"
 | 
					      :showBtn="false"
 | 
				
			||||||
      :value="avatar"
 | 
					      :value="img"
 | 
				
			||||||
      width="120px"
 | 
					      width="120px"
 | 
				
			||||||
      @change="handelUpload"
 | 
					      @change="handelUpload"
 | 
				
			||||||
    />
 | 
					    />
 | 
				
			||||||
@@ -13,15 +13,13 @@
 | 
				
			|||||||
<script lang="ts" setup>
 | 
					<script lang="ts" setup>
 | 
				
			||||||
import { propTypes } from '@/utils/propTypes'
 | 
					import { propTypes } from '@/utils/propTypes'
 | 
				
			||||||
import { uploadAvatar } from '@/api/system/user/profile'
 | 
					import { uploadAvatar } from '@/api/system/user/profile'
 | 
				
			||||||
 | 
					import { CropperAvatar } from '@/components/Cropper'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
defineOptions({ name: 'UserAvatar' })
 | 
					defineOptions({ name: 'UserAvatar' })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const props = defineProps({
 | 
					defineProps({
 | 
				
			||||||
  img: propTypes.string.def('')
 | 
					  img: propTypes.string.def('')
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
const avatar = computed(() => {
 | 
					 | 
				
			||||||
  return props.img
 | 
					 | 
				
			||||||
})
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
const cropperRef = ref()
 | 
					const cropperRef = ref()
 | 
				
			||||||
const handelUpload = async ({ data }) => {
 | 
					const handelUpload = async ({ data }) => {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user