adtec-core-package 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +36 -36
- package/package.json +59 -59
- package/src/api/BasicApi.ts +17 -17
- package/src/api/DocumentApi.ts +27 -27
- package/src/api/SysDictCacheApi.ts +26 -26
- package/src/api/SysUserApi.ts +35 -35
- package/src/api/framework.ts +12 -12
- package/src/assets/style/ant.scss +19 -19
- package/src/assets/style/index.less +180 -180
- package/src/components/ElFlex/ElFlex.vue +297 -297
- package/src/components/OperationAuth/operationAuth.vue +26 -26
- package/src/components/Search/ElIconSearch.vue +260 -260
- package/src/components/Search/ElSearch.vue +154 -154
- package/src/components/Table/ElTableColumnEdit.vue +218 -218
- package/src/components/Title/ElTitle.vue +49 -49
- package/src/components/autoToolTip/ElAutoToolTip.vue +61 -61
- package/src/components/baseEcharts/index.vue +48 -48
- package/src/components/business/userSelect.vue +412 -412
- package/src/components/upload/ElUploads.vue +286 -286
- package/src/components/upload/FileView.vue +158 -158
- package/src/components/upload/FileViewComponents.vue +57 -57
- package/src/config/ElementPlusConfig.ts +95 -95
- package/src/css/elementUI/autocomplete.scss +89 -89
- package/src/css/elementUI/common/var.scss +1549 -1549
- package/src/css/elementUI/date-picker/picker.scss +219 -219
- package/src/css/elementUI/drawer.scss +164 -164
- package/src/css/elementUI/table.scss +694 -694
- package/src/css/elementUI/tabs.scss +659 -659
- package/src/directives/vKeydown.ts +93 -93
- package/src/hooks/useDictHooks.ts +78 -79
- package/src/hooks/useEcharts.ts +58 -58
- package/src/hooks/useFileView.ts +34 -34
- package/src/hooks/useMessageHooks.ts +132 -132
- package/src/hooks/useResetRefHooks.ts +18 -18
- package/src/interface/BaseEntity.ts +28 -28
- package/src/interface/IMdmDept.ts +82 -82
- package/src/interface/IOrgDeptInfo.ts +12 -12
- package/src/interface/ISysDictDataCacheVo.ts +46 -46
- package/src/interface/ISysDictType.ts +37 -37
- package/src/interface/ISysMenuDataVo.ts +22 -22
- package/src/interface/ISysMenuInfoVo.ts +83 -83
- package/src/interface/ISysMenuOperationVo.ts +21 -21
- package/src/interface/ISysUploadFiles.ts +16 -16
- package/src/interface/ISysUserInfo.ts +70 -70
- package/src/interface/IUserPermissionVo.ts +34 -34
- package/src/interface/Message.ts +69 -69
- package/src/interface/PageData.ts +17 -17
- package/src/interface/ResponseData.ts +16 -16
- package/src/interface/dictMapType.ts +11 -11
- package/src/interface/enum/MessageEnum.ts +41 -41
- package/src/mixin/globalMixin.ts +37 -37
- package/src/packages/index.ts +18 -18
- package/src/packages/text.vue +13 -13
- package/src/plugins/echartsConfig.ts +73 -73
- package/src/plugins/plugins.ts +12 -12
- package/src/stores/dictStore.ts +27 -27
- package/src/stores/messageStore.ts +49 -49
- package/src/stores/permissionStore.ts +108 -108
- package/src/stores/storeConfig.ts +23 -23
- package/src/stores/userInfoStore.ts +31 -31
- package/src/utils/AxiosConfig.ts +216 -216
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
<!--创建人 胡啸东-->
|
|
2
|
-
<!--说明: index-->
|
|
3
|
-
<!--创建时间: 2024/11/4 下午4:52-->
|
|
4
|
-
<!--修改时间: 2024/11/4 下午4:52-->
|
|
5
|
-
<template>
|
|
6
|
-
<div
|
|
7
|
-
ref="echartsRef"
|
|
8
|
-
:style="{
|
|
9
|
-
width: width,
|
|
10
|
-
height: height,
|
|
11
|
-
}"
|
|
12
|
-
/>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script lang="ts" setup>
|
|
16
|
-
import { onMounted, type PropType, ref, watch } from 'vue'
|
|
17
|
-
import { type EChartsCoreOption, useEcharts } from '../../hooks/useEcharts.ts' // 引入hooks
|
|
18
|
-
const props = defineProps({
|
|
19
|
-
options: { type: Object as PropType<EChartsCoreOption>, required: true },
|
|
20
|
-
height: { type: String, default: '100%' },
|
|
21
|
-
width: { type: String, default: '100%' },
|
|
22
|
-
themeColors: { type: Array as PropType<string[]>, default: () => [] },
|
|
23
|
-
})
|
|
24
|
-
|
|
25
|
-
const echartsRef = ref()
|
|
26
|
-
|
|
27
|
-
const { setOptions, initCharts } = useEcharts(echartsRef, props.options)
|
|
28
|
-
|
|
29
|
-
watch(
|
|
30
|
-
() => props.options,
|
|
31
|
-
(nVal) => {
|
|
32
|
-
let targetOptions: EChartsCoreOption = {}
|
|
33
|
-
if (props.themeColors && props.themeColors.length > 0) {
|
|
34
|
-
targetOptions = { ...nVal }
|
|
35
|
-
targetOptions.color = props.themeColors
|
|
36
|
-
} else {
|
|
37
|
-
targetOptions = { ...nVal }
|
|
38
|
-
}
|
|
39
|
-
setOptions(targetOptions)
|
|
40
|
-
},
|
|
41
|
-
{ deep: true },
|
|
42
|
-
)
|
|
43
|
-
|
|
44
|
-
onMounted(() => {
|
|
45
|
-
initCharts()
|
|
46
|
-
})
|
|
47
|
-
defineExpose({ setOptions, initCharts })
|
|
48
|
-
</script>
|
|
1
|
+
<!--创建人 胡啸东-->
|
|
2
|
+
<!--说明: index-->
|
|
3
|
+
<!--创建时间: 2024/11/4 下午4:52-->
|
|
4
|
+
<!--修改时间: 2024/11/4 下午4:52-->
|
|
5
|
+
<template>
|
|
6
|
+
<div
|
|
7
|
+
ref="echartsRef"
|
|
8
|
+
:style="{
|
|
9
|
+
width: width,
|
|
10
|
+
height: height,
|
|
11
|
+
}"
|
|
12
|
+
/>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script lang="ts" setup>
|
|
16
|
+
import { onMounted, type PropType, ref, watch } from 'vue'
|
|
17
|
+
import { type EChartsCoreOption, useEcharts } from '../../hooks/useEcharts.ts' // 引入hooks
|
|
18
|
+
const props = defineProps({
|
|
19
|
+
options: { type: Object as PropType<EChartsCoreOption>, required: true },
|
|
20
|
+
height: { type: String, default: '100%' },
|
|
21
|
+
width: { type: String, default: '100%' },
|
|
22
|
+
themeColors: { type: Array as PropType<string[]>, default: () => [] },
|
|
23
|
+
})
|
|
24
|
+
|
|
25
|
+
const echartsRef = ref()
|
|
26
|
+
|
|
27
|
+
const { setOptions, initCharts } = useEcharts(echartsRef, props.options)
|
|
28
|
+
|
|
29
|
+
watch(
|
|
30
|
+
() => props.options,
|
|
31
|
+
(nVal) => {
|
|
32
|
+
let targetOptions: EChartsCoreOption = {}
|
|
33
|
+
if (props.themeColors && props.themeColors.length > 0) {
|
|
34
|
+
targetOptions = { ...nVal }
|
|
35
|
+
targetOptions.color = props.themeColors
|
|
36
|
+
} else {
|
|
37
|
+
targetOptions = { ...nVal }
|
|
38
|
+
}
|
|
39
|
+
setOptions(targetOptions)
|
|
40
|
+
},
|
|
41
|
+
{ deep: true },
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
onMounted(() => {
|
|
45
|
+
initCharts()
|
|
46
|
+
})
|
|
47
|
+
defineExpose({ setOptions, initCharts })
|
|
48
|
+
</script>
|