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.
Files changed (61) hide show
  1. package/README.en.md +36 -36
  2. package/package.json +59 -59
  3. package/src/api/BasicApi.ts +17 -17
  4. package/src/api/DocumentApi.ts +27 -27
  5. package/src/api/SysDictCacheApi.ts +26 -26
  6. package/src/api/SysUserApi.ts +35 -35
  7. package/src/api/framework.ts +12 -12
  8. package/src/assets/style/ant.scss +19 -19
  9. package/src/assets/style/index.less +180 -180
  10. package/src/components/ElFlex/ElFlex.vue +297 -297
  11. package/src/components/OperationAuth/operationAuth.vue +26 -26
  12. package/src/components/Search/ElIconSearch.vue +260 -260
  13. package/src/components/Search/ElSearch.vue +154 -154
  14. package/src/components/Table/ElTableColumnEdit.vue +218 -218
  15. package/src/components/Title/ElTitle.vue +49 -49
  16. package/src/components/autoToolTip/ElAutoToolTip.vue +61 -61
  17. package/src/components/baseEcharts/index.vue +48 -48
  18. package/src/components/business/userSelect.vue +412 -412
  19. package/src/components/upload/ElUploads.vue +286 -286
  20. package/src/components/upload/FileView.vue +158 -158
  21. package/src/components/upload/FileViewComponents.vue +57 -57
  22. package/src/config/ElementPlusConfig.ts +95 -95
  23. package/src/css/elementUI/autocomplete.scss +89 -89
  24. package/src/css/elementUI/common/var.scss +1549 -1549
  25. package/src/css/elementUI/date-picker/picker.scss +219 -219
  26. package/src/css/elementUI/drawer.scss +164 -164
  27. package/src/css/elementUI/table.scss +694 -694
  28. package/src/css/elementUI/tabs.scss +659 -659
  29. package/src/directives/vKeydown.ts +93 -93
  30. package/src/hooks/useDictHooks.ts +78 -79
  31. package/src/hooks/useEcharts.ts +58 -58
  32. package/src/hooks/useFileView.ts +34 -34
  33. package/src/hooks/useMessageHooks.ts +132 -132
  34. package/src/hooks/useResetRefHooks.ts +18 -18
  35. package/src/interface/BaseEntity.ts +28 -28
  36. package/src/interface/IMdmDept.ts +82 -82
  37. package/src/interface/IOrgDeptInfo.ts +12 -12
  38. package/src/interface/ISysDictDataCacheVo.ts +46 -46
  39. package/src/interface/ISysDictType.ts +37 -37
  40. package/src/interface/ISysMenuDataVo.ts +22 -22
  41. package/src/interface/ISysMenuInfoVo.ts +83 -83
  42. package/src/interface/ISysMenuOperationVo.ts +21 -21
  43. package/src/interface/ISysUploadFiles.ts +16 -16
  44. package/src/interface/ISysUserInfo.ts +70 -70
  45. package/src/interface/IUserPermissionVo.ts +34 -34
  46. package/src/interface/Message.ts +69 -69
  47. package/src/interface/PageData.ts +17 -17
  48. package/src/interface/ResponseData.ts +16 -16
  49. package/src/interface/dictMapType.ts +11 -11
  50. package/src/interface/enum/MessageEnum.ts +41 -41
  51. package/src/mixin/globalMixin.ts +37 -37
  52. package/src/packages/index.ts +18 -18
  53. package/src/packages/text.vue +13 -13
  54. package/src/plugins/echartsConfig.ts +73 -73
  55. package/src/plugins/plugins.ts +12 -12
  56. package/src/stores/dictStore.ts +27 -27
  57. package/src/stores/messageStore.ts +49 -49
  58. package/src/stores/permissionStore.ts +108 -108
  59. package/src/stores/storeConfig.ts +23 -23
  60. package/src/stores/userInfoStore.ts +31 -31
  61. package/src/utils/AxiosConfig.ts +216 -216
@@ -1,154 +1,154 @@
1
- <template>
2
- <el-flex
3
- @keypress="keypress"
4
- :height="height"
5
- style="background: #ffffff; /*border-radius: 4px;*/ padding: 15px 10px 15px 15px;"
6
- >
7
- <el-flex style="overflow: hidden">
8
- <div ref="ref_content" style="width: 100%; overflow: hidden" :style="{ height: height }">
9
- <div ref="ref_div">
10
- <slot></slot>
11
- </div>
12
- </div>
13
- </el-flex>
14
- <el-flex
15
- width="240px"
16
- justify="flex-end"
17
- align="flex-start"
18
- style="padding-top: 30px"
19
- >
20
- <el-button @click="reset">重置</el-button>
21
- <el-button type="primary" @click="search" :class="getRouteName + '_search'">查询</el-button>
22
- <el-button type="text" @click="retract" v-show="is_retract">
23
- <el-icon
24
- ><ArrowDown v-show="retractval === '展开'" /><ArrowUp
25
- v-show="retractval === '收起'" /></el-icon
26
- >{{ retractval }}</el-button
27
- >
28
- </el-flex>
29
- </el-flex>
30
- </template>
31
- <script setup lang="ts">
32
- import { computed, inject, nextTick, onMounted, onUnmounted, ref, watch } from 'vue'
33
- import { useWindowSize } from '@vueuse/core'
34
- import { useRouter } from 'vue-router'
35
- import { ArrowDown, ArrowUp } from '@element-plus/icons-vue'
36
- import ElFlex from '../ElFlex/ElFlex.vue'
37
- const router = useRouter()
38
- const getRouteName = computed(() => {
39
- return router.currentRoute.value.name as string
40
- })
41
- const ref_content = ref()
42
- const retractval = ref('展开')
43
- const height = ref('95px')
44
- const is_retract = ref(false)
45
- const ref_div = ref()
46
- const windowContent = useWindowSize()
47
- const collapsed = inject<boolean>('collapsed')
48
- const collapsedSearch=ref<boolean>(false)
49
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
50
- //@ts-expect-error
51
- watch(collapsed, () => {
52
- //@ts-ignore
53
- collapsedSearch.value = collapsed?.value
54
- // calculation()
55
- })
56
- watch(collapsedSearch, () => {
57
- console.log("collapsedSearch")
58
- calculation()
59
- })
60
- watch(windowContent.width, () => {
61
- calculation()
62
- })
63
- const calculation = () => {
64
- nextTick(()=>{
65
- setTimeout(() => {
66
- if(ref_div.value?.children.length>0) {
67
- if (!(ref_div.value.children[0].offsetHeight > 95)) {
68
- if (ref_div.value.children[0].offsetHeight !== 0) {
69
- is_retract.value = false
70
- height.value = ref_div.value.children[0].offsetHeight + 15 + 'px'
71
- retractval.value = '收起'
72
- } else {
73
- calculation()
74
- }
75
- }else if(ref_div.value.children[0].offsetHeight<=95){
76
- is_retract.value = false
77
- }
78
- else {
79
- is_retract.value = true
80
- height.value = '95px'
81
- retractval.value = '展开'
82
- }
83
- }
84
- }, 200)
85
- })
86
- }
87
- watch(windowContent.height, () => {
88
- calculation()
89
- })
90
- const retract = () => {
91
- if (height.value === '95px') {
92
- height.value = ref_content.value.children[0].scrollHeight + 15 + 'px'
93
- retractval.value = '收起'
94
- } else {
95
- height.value = '95px'
96
- retractval.value = '展开'
97
- }
98
- }
99
- const reset = () => {
100
- emit('reset')
101
- }
102
- const search = () => {
103
- emit('search')
104
- }
105
- const keypress = () => {
106
- // if (e.key === 'Enter') {
107
- // emit('search')
108
- // }
109
- }
110
- const emit = defineEmits<{
111
- (event: 'reset'): void
112
- (event: 'search'): void
113
- }>()
114
- onMounted(() => {
115
- //ts-ignore
116
- //@ts-expect-error
117
- collapsedSearch.value = collapsed?.value
118
- //@ts-ignore
119
- window.$wujie?.bus.$on("collapsedChangeBus", (val:boolean) => {
120
- collapsedSearch.value=val
121
- });
122
- nextTick(() => {
123
- if (!(ref_content.value.children[0].scrollHeight > 95)) {
124
- is_retract.value = false
125
- height.value = ref_content.value.children[0].scrollHeight + 15 + 'px'
126
- retractval.value = '收起'
127
- } else {
128
- is_retract.value = true
129
- height.value = '95px'
130
- retractval.value = '展开'
131
- }
132
- })
133
- })
134
- onUnmounted(()=>{
135
- //@ts-ignore
136
- window.$wujie?.bus.$off("collapsedChangeBus")
137
- })
138
- // onKeyStroke(['d', 'D', 'ArrowRight'], () => {
139
- // translateX.value += 10
140
- // }, { dedupe: true })
141
- </script>
142
- <style scoped lang="scss">
143
- .elementSelect {
144
- border: 2px dashed #1a67f8 !important;
145
- }
146
-
147
- .demo-form-inline .el-input {
148
- --el-input-width: 220px;
149
- }
150
-
151
- .demo-form-inline .el-select {
152
- --el-select-width: 220px;
153
- }
154
- </style>
1
+ <template>
2
+ <el-flex
3
+ @keypress="keypress"
4
+ :height="height"
5
+ style="background: #ffffff; /*border-radius: 4px;*/ padding: 15px 10px 15px 15px;"
6
+ >
7
+ <el-flex style="overflow: hidden">
8
+ <div ref="ref_content" style="width: 100%; overflow: hidden" :style="{ height: height }">
9
+ <div ref="ref_div">
10
+ <slot></slot>
11
+ </div>
12
+ </div>
13
+ </el-flex>
14
+ <el-flex
15
+ width="240px"
16
+ justify="flex-end"
17
+ align="flex-start"
18
+ style="padding-top: 30px"
19
+ >
20
+ <el-button @click="reset">重置</el-button>
21
+ <el-button type="primary" @click="search" :class="getRouteName + '_search'">查询</el-button>
22
+ <el-button type="text" @click="retract" v-show="is_retract">
23
+ <el-icon
24
+ ><ArrowDown v-show="retractval === '展开'" /><ArrowUp
25
+ v-show="retractval === '收起'" /></el-icon
26
+ >{{ retractval }}</el-button
27
+ >
28
+ </el-flex>
29
+ </el-flex>
30
+ </template>
31
+ <script setup lang="ts">
32
+ import { computed, inject, nextTick, onMounted, onUnmounted, ref, watch } from 'vue'
33
+ import { useWindowSize } from '@vueuse/core'
34
+ import { useRouter } from 'vue-router'
35
+ import { ArrowDown, ArrowUp } from '@element-plus/icons-vue'
36
+ import ElFlex from '../ElFlex/ElFlex.vue'
37
+ const router = useRouter()
38
+ const getRouteName = computed(() => {
39
+ return router.currentRoute.value.name as string
40
+ })
41
+ const ref_content = ref()
42
+ const retractval = ref('展开')
43
+ const height = ref('95px')
44
+ const is_retract = ref(false)
45
+ const ref_div = ref()
46
+ const windowContent = useWindowSize()
47
+ const collapsed = inject<boolean>('collapsed')
48
+ const collapsedSearch=ref<boolean>(false)
49
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
50
+ //@ts-expect-error
51
+ watch(collapsed, () => {
52
+ //@ts-ignore
53
+ collapsedSearch.value = collapsed?.value
54
+ // calculation()
55
+ })
56
+ watch(collapsedSearch, () => {
57
+ console.log("collapsedSearch")
58
+ calculation()
59
+ })
60
+ watch(windowContent.width, () => {
61
+ calculation()
62
+ })
63
+ const calculation = () => {
64
+ nextTick(()=>{
65
+ setTimeout(() => {
66
+ if(ref_div.value?.children.length>0) {
67
+ if (!(ref_div.value.children[0].offsetHeight > 95)) {
68
+ if (ref_div.value.children[0].offsetHeight !== 0) {
69
+ is_retract.value = false
70
+ height.value = ref_div.value.children[0].offsetHeight + 15 + 'px'
71
+ retractval.value = '收起'
72
+ } else {
73
+ calculation()
74
+ }
75
+ }else if(ref_div.value.children[0].offsetHeight<=95){
76
+ is_retract.value = false
77
+ }
78
+ else {
79
+ is_retract.value = true
80
+ height.value = '95px'
81
+ retractval.value = '展开'
82
+ }
83
+ }
84
+ }, 200)
85
+ })
86
+ }
87
+ watch(windowContent.height, () => {
88
+ calculation()
89
+ })
90
+ const retract = () => {
91
+ if (height.value === '95px') {
92
+ height.value = ref_content.value.children[0].scrollHeight + 15 + 'px'
93
+ retractval.value = '收起'
94
+ } else {
95
+ height.value = '95px'
96
+ retractval.value = '展开'
97
+ }
98
+ }
99
+ const reset = () => {
100
+ emit('reset')
101
+ }
102
+ const search = () => {
103
+ emit('search')
104
+ }
105
+ const keypress = () => {
106
+ // if (e.key === 'Enter') {
107
+ // emit('search')
108
+ // }
109
+ }
110
+ const emit = defineEmits<{
111
+ (event: 'reset'): void
112
+ (event: 'search'): void
113
+ }>()
114
+ onMounted(() => {
115
+ //ts-ignore
116
+ //@ts-expect-error
117
+ collapsedSearch.value = collapsed?.value
118
+ //@ts-ignore
119
+ window.$wujie?.bus.$on("collapsedChangeBus", (val:boolean) => {
120
+ collapsedSearch.value=val
121
+ });
122
+ nextTick(() => {
123
+ if (!(ref_content.value.children[0].scrollHeight > 95)) {
124
+ is_retract.value = false
125
+ height.value = ref_content.value.children[0].scrollHeight + 15 + 'px'
126
+ retractval.value = '收起'
127
+ } else {
128
+ is_retract.value = true
129
+ height.value = '95px'
130
+ retractval.value = '展开'
131
+ }
132
+ })
133
+ })
134
+ onUnmounted(()=>{
135
+ //@ts-ignore
136
+ window.$wujie?.bus.$off("collapsedChangeBus")
137
+ })
138
+ // onKeyStroke(['d', 'D', 'ArrowRight'], () => {
139
+ // translateX.value += 10
140
+ // }, { dedupe: true })
141
+ </script>
142
+ <style scoped lang="scss">
143
+ .elementSelect {
144
+ border: 2px dashed #1a67f8 !important;
145
+ }
146
+
147
+ .demo-form-inline .el-input {
148
+ --el-input-width: 220px;
149
+ }
150
+
151
+ .demo-form-inline .el-select {
152
+ --el-select-width: 220px;
153
+ }
154
+ </style>