adtec-core-package 0.3.1 → 0.3.2

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 (53) hide show
  1. package/README.en.md +36 -36
  2. package/package.json +56 -56
  3. package/src/api/BasicApi.ts +17 -17
  4. package/src/api/DocumentApi.ts +18 -18
  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/Search/ElSearch.vue +150 -150
  12. package/src/components/Table/ElTableColumnEdit.vue +218 -218
  13. package/src/components/Title/ElTitle.vue +49 -49
  14. package/src/components/autoToolTip/ElAutoToolTip.vue +61 -61
  15. package/src/components/business/userSelect.vue +412 -412
  16. package/src/components/upload/FileView.vue +158 -158
  17. package/src/components/upload/FileViewComponents.vue +57 -57
  18. package/src/config/ElementPlusConfig.ts +95 -95
  19. package/src/css/elementUI/autocomplete.scss +89 -89
  20. package/src/css/elementUI/common/var.scss +1549 -1549
  21. package/src/css/elementUI/date-picker/picker.scss +219 -219
  22. package/src/css/elementUI/drawer.scss +164 -164
  23. package/src/css/elementUI/table.scss +694 -694
  24. package/src/css/elementUI/tabs.scss +659 -659
  25. package/src/directives/vKeydown.ts +93 -93
  26. package/src/hooks/useDictHooks.ts +76 -77
  27. package/src/hooks/useFileView.ts +34 -34
  28. package/src/hooks/useMessageHooks.ts +132 -132
  29. package/src/hooks/useResetRefHooks.ts +18 -19
  30. package/src/interface/BaseEntity.ts +28 -28
  31. package/src/interface/IMdmDept.ts +82 -82
  32. package/src/interface/IOrgDeptInfo.ts +12 -12
  33. package/src/interface/ISysDictDataCacheVo.ts +46 -46
  34. package/src/interface/ISysDictType.ts +37 -37
  35. package/src/interface/ISysMenuDataVo.ts +22 -22
  36. package/src/interface/ISysMenuInfoVo.ts +83 -83
  37. package/src/interface/ISysMenuOperationVo.ts +21 -21
  38. package/src/interface/ISysUploadFiles.ts +16 -16
  39. package/src/interface/ISysUserInfo.ts +70 -70
  40. package/src/interface/IUserPermissionVo.ts +34 -34
  41. package/src/interface/Message.ts +69 -69
  42. package/src/interface/PageData.ts +17 -17
  43. package/src/interface/ResponseData.ts +16 -16
  44. package/src/interface/dictMapType.ts +11 -11
  45. package/src/interface/enum/MessageEnum.ts +41 -41
  46. package/src/packages/index.ts +18 -18
  47. package/src/packages/text.vue +13 -13
  48. package/src/plugins/plugins.ts +12 -12
  49. package/src/stores/dictStore.ts +20 -27
  50. package/src/stores/messageStore.ts +49 -49
  51. package/src/stores/storeConfig.ts +23 -23
  52. package/src/stores/userInfoStore.ts +31 -31
  53. package/src/utils/AxiosConfig.ts +216 -216
@@ -1,150 +1,150 @@
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|undefined>(false)
49
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
50
- //@ts-expect-error
51
- watch(collapsed, () => {
52
- collapsedSearch.value = collapsed
53
- calculation()
54
- })
55
- watch(collapsedSearch, () => {
56
- calculation()
57
- })
58
- watch(windowContent.width, () => {
59
- calculation()
60
- })
61
- const calculation = () => {
62
- nextTick(()=>{
63
- setTimeout(() => {
64
- if(ref_div.value.children.length>0) {
65
- if (!(ref_div.value.children[0].offsetHeight > 95)) {
66
- if (ref_div.value.children[0].offsetHeight !== 0) {
67
- is_retract.value = false
68
- height.value = ref_div.value.children[0].offsetHeight + 15 + 'px'
69
- retractval.value = '收起'
70
- } else {
71
- calculation()
72
- }
73
- }else if(ref_div.value.children[0].offsetHeight<=95){
74
- is_retract.value = false
75
- }
76
- else {
77
- is_retract.value = true
78
- height.value = '95px'
79
- retractval.value = '展开'
80
- }
81
- }
82
- }, 200)
83
- })
84
- }
85
- watch(windowContent.height, () => {
86
- calculation()
87
- })
88
- const retract = () => {
89
- if (height.value === '95px') {
90
- height.value = ref_content.value.children[0].scrollHeight + 15 + 'px'
91
- retractval.value = '收起'
92
- } else {
93
- height.value = '95px'
94
- retractval.value = '展开'
95
- }
96
- }
97
- const reset = () => {
98
- emit('reset')
99
- }
100
- const search = () => {
101
- emit('search')
102
- }
103
- const keypress = () => {
104
- // if (e.key === 'Enter') {
105
- // emit('search')
106
- // }
107
- }
108
- const emit = defineEmits<{
109
- (event: 'reset'): void
110
- (event: 'search'): void
111
- }>()
112
- onMounted(() => {
113
- collapsedSearch.value = collapsed
114
- //@ts-ignore
115
- window.$wujie?.bus.$on("collapsedChangeBus", (val:boolean) => {
116
- collapsedSearch.value=val
117
- });
118
- nextTick(() => {
119
- if (!(ref_content.value.children[0].scrollHeight > 95)) {
120
- is_retract.value = false
121
- height.value = ref_content.value.children[0].scrollHeight + 15 + 'px'
122
- retractval.value = '收起'
123
- } else {
124
- is_retract.value = true
125
- height.value = '95px'
126
- retractval.value = '展开'
127
- }
128
- })
129
- })
130
- onUnmounted(()=>{
131
- //@ts-ignore
132
- window.$wujie?.bus.$off("collapsedChangeBus")
133
- })
134
- // onKeyStroke(['d', 'D', 'ArrowRight'], () => {
135
- // translateX.value += 10
136
- // }, { dedupe: true })
137
- </script>
138
- <style scoped lang="scss">
139
- .elementSelect {
140
- border: 2px dashed #1a67f8 !important;
141
- }
142
-
143
- .demo-form-inline .el-input {
144
- --el-input-width: 220px;
145
- }
146
-
147
- .demo-form-inline .el-select {
148
- --el-select-width: 220px;
149
- }
150
- </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|undefined>(false)
49
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
50
+ //@ts-expect-error
51
+ watch(collapsed, () => {
52
+ collapsedSearch.value = collapsed
53
+ calculation()
54
+ })
55
+ watch(collapsedSearch, () => {
56
+ calculation()
57
+ })
58
+ watch(windowContent.width, () => {
59
+ calculation()
60
+ })
61
+ const calculation = () => {
62
+ nextTick(()=>{
63
+ setTimeout(() => {
64
+ if(ref_div.value.children.length>0) {
65
+ if (!(ref_div.value.children[0].offsetHeight > 95)) {
66
+ if (ref_div.value.children[0].offsetHeight !== 0) {
67
+ is_retract.value = false
68
+ height.value = ref_div.value.children[0].offsetHeight + 15 + 'px'
69
+ retractval.value = '收起'
70
+ } else {
71
+ calculation()
72
+ }
73
+ }else if(ref_div.value.children[0].offsetHeight<=95){
74
+ is_retract.value = false
75
+ }
76
+ else {
77
+ is_retract.value = true
78
+ height.value = '95px'
79
+ retractval.value = '展开'
80
+ }
81
+ }
82
+ }, 200)
83
+ })
84
+ }
85
+ watch(windowContent.height, () => {
86
+ calculation()
87
+ })
88
+ const retract = () => {
89
+ if (height.value === '95px') {
90
+ height.value = ref_content.value.children[0].scrollHeight + 15 + 'px'
91
+ retractval.value = '收起'
92
+ } else {
93
+ height.value = '95px'
94
+ retractval.value = '展开'
95
+ }
96
+ }
97
+ const reset = () => {
98
+ emit('reset')
99
+ }
100
+ const search = () => {
101
+ emit('search')
102
+ }
103
+ const keypress = () => {
104
+ // if (e.key === 'Enter') {
105
+ // emit('search')
106
+ // }
107
+ }
108
+ const emit = defineEmits<{
109
+ (event: 'reset'): void
110
+ (event: 'search'): void
111
+ }>()
112
+ onMounted(() => {
113
+ collapsedSearch.value = collapsed
114
+ //@ts-ignore
115
+ window.$wujie?.bus.$on("collapsedChangeBus", (val:boolean) => {
116
+ collapsedSearch.value=val
117
+ });
118
+ nextTick(() => {
119
+ if (!(ref_content.value.children[0].scrollHeight > 95)) {
120
+ is_retract.value = false
121
+ height.value = ref_content.value.children[0].scrollHeight + 15 + 'px'
122
+ retractval.value = '收起'
123
+ } else {
124
+ is_retract.value = true
125
+ height.value = '95px'
126
+ retractval.value = '展开'
127
+ }
128
+ })
129
+ })
130
+ onUnmounted(()=>{
131
+ //@ts-ignore
132
+ window.$wujie?.bus.$off("collapsedChangeBus")
133
+ })
134
+ // onKeyStroke(['d', 'D', 'ArrowRight'], () => {
135
+ // translateX.value += 10
136
+ // }, { dedupe: true })
137
+ </script>
138
+ <style scoped lang="scss">
139
+ .elementSelect {
140
+ border: 2px dashed #1a67f8 !important;
141
+ }
142
+
143
+ .demo-form-inline .el-input {
144
+ --el-input-width: 220px;
145
+ }
146
+
147
+ .demo-form-inline .el-select {
148
+ --el-select-width: 220px;
149
+ }
150
+ </style>