hd-idevvue3 3.0.3 → 3.0.4

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 (147) hide show
  1. package/dist/assets/index.9c127719.css +1 -0
  2. package/dist/hd-idevvue3.mjs +3521 -3305
  3. package/dist/hd-idevvue3.umd.js +29 -29
  4. package/npminstall-debug.log +2 -10
  5. package/package.json +3 -1
  6. package/pnpm-lock.yaml +37 -4
  7. package/src/App.vue +11 -15
  8. package/src/assets/sound/notify.wav +0 -0
  9. package/src/demo/demo.vue +9 -10
  10. package/src/demo/dropdemo.vue +42 -43
  11. package/src/demo/extsets.vue +140 -39
  12. package/src/demo/formedit.vue +157 -145
  13. package/src/demo/hightquery.vue +263 -66
  14. package/src/demo/inlineedit.vue +129 -35
  15. package/src/demo/selfdrop.vue +32 -15
  16. package/src/directive/el-dragDialog/drag.js +13 -13
  17. package/src/directive/el-dragDialog/index.js +13 -13
  18. package/src/errorLog.js +3 -3
  19. package/src/hdcom/BigGrid.js +54 -48
  20. package/src/hdcom/BillShow.vue +84 -63
  21. package/src/hdcom/BillUpload.vue +144 -86
  22. package/src/hdcom/BtnRight.vue +26 -23
  23. package/src/hdcom/ErrHint.vue +36 -24
  24. package/src/hdcom/ExtendColumn.vue +97 -90
  25. package/src/hdcom/ExtendCommon.js +24 -13
  26. package/src/hdcom/ExtendForm.vue +107 -80
  27. package/src/hdcom/FacePicUpload.vue +59 -50
  28. package/src/hdcom/FaceRecTest.vue +87 -77
  29. package/src/hdcom/GridChart.vue +175 -162
  30. package/src/hdcom/GridExField.vue +328 -234
  31. package/src/hdcom/GridShow.vue +89 -39
  32. package/src/hdcom/HdAside.vue +192 -145
  33. package/src/hdcom/HdBtn.vue +44 -32
  34. package/src/hdcom/HdButton.vue +141 -117
  35. package/src/hdcom/HdComFaceRec.vue +80 -32
  36. package/src/hdcom/HdComGrid.vue +329 -229
  37. package/src/hdcom/HdComQuery.vue +179 -90
  38. package/src/hdcom/HdComQueryDetail.vue +159 -115
  39. package/src/hdcom/HdComSortDetail.vue +136 -130
  40. package/src/hdcom/HdDatePicker.vue +32 -16
  41. package/src/hdcom/HdDialog.vue +62 -44
  42. package/src/hdcom/HdDrop.vue +163 -138
  43. package/src/hdcom/HdFileUpload.vue +138 -119
  44. package/src/hdcom/HdFilterBox.vue +62 -62
  45. package/src/hdcom/HdFooter.vue +152 -119
  46. package/src/hdcom/HdForm.vue +276 -203
  47. package/src/hdcom/HdFormBtn.vue +81 -39
  48. package/src/hdcom/HdFormItem.vue +14 -10
  49. package/src/hdcom/HdGrid.vue +353 -156
  50. package/src/hdcom/HdGridEditBtn.vue +34 -20
  51. package/src/hdcom/HdGridExt.js +78 -47
  52. package/src/hdcom/HdGridSel.vue +227 -193
  53. package/src/hdcom/HdHeader.vue +149 -117
  54. package/src/hdcom/HdHotKey.vue +70 -67
  55. package/src/hdcom/HdInputHint.vue +40 -36
  56. package/src/hdcom/HdMain.vue +25 -27
  57. package/src/hdcom/HdMessage.vue +180 -171
  58. package/src/hdcom/HdNum.vue +67 -57
  59. package/src/hdcom/HdPopSel.vue +46 -24
  60. package/src/hdcom/HdRightMenu.vue +63 -61
  61. package/src/hdcom/HdSel/SelGridFieldcod.vue +46 -28
  62. package/src/hdcom/HdTableColumn.vue +156 -109
  63. package/src/hdcom/HdTempSave.vue +138 -116
  64. package/src/hdcom/HdTree.vue +89 -72
  65. package/src/hdcom/HdTreeTable/eval.js +8 -3
  66. package/src/hdcom/HdTreeTable/index.vue +229 -174
  67. package/src/hdcom/ImportExcel.vue +69 -34
  68. package/src/hdcom/index.js +39 -44
  69. package/src/idev.common.js +54 -47
  70. package/src/index.js +3 -6
  71. package/src/utils/HdQuery.js +25 -14
  72. package/src/utils/comutils.js +50 -28
  73. package/src/utils/gogocodeTransfer.js +59 -0
  74. package/src/utils/utils.js +30 -19
  75. package/src/vendor/Blob.js +187 -179
  76. package/src/vendor/Export2Excel.js +231 -220
  77. package/src/vendor/Export2Zip.js +25 -22
  78. package/src/views/layout/AppMain.vue +34 -32
  79. package/src/views/layout/HdLayout.vue +64 -52
  80. package/src/views/layout/header/ElasticSearch.vue +196 -159
  81. package/src/views/layout/header/HZRecorder.js +163 -135
  82. package/src/views/layout/header/HeaderSearch.vue +165 -145
  83. package/src/views/layout/header/Levelbar.vue +55 -49
  84. package/src/views/layout/header/MainHeader.vue +233 -189
  85. package/src/views/layout/header/Navbar.vue +74 -78
  86. package/src/views/layout/header/ScrollPane.vue +103 -81
  87. package/src/views/layout/header/TagsView.vue +169 -164
  88. package/src/views/layout/header/VocRec.vue +86 -78
  89. package/src/views/layout/header/changepswform.vue +98 -64
  90. package/src/views/layout/index.js +5 -7
  91. package/src/views/layout/menu/Hamburger.vue +63 -45
  92. package/src/views/layout/menu/HdMenu.vue +155 -118
  93. package/src/views/layout/menu/index.vue +21 -19
  94. package/src/views/privilege/commsg/commsg.vue +115 -41
  95. package/src/views/privilege/commsg/commsgOrgn.vue +40 -31
  96. package/src/views/privilege/commsg/commsgRole.vue +180 -109
  97. package/src/views/privilege/commsg/commsgform.vue +125 -101
  98. package/src/views/privilege/commsg/commsgiframe.vue +30 -23
  99. package/src/views/privilege/commsg/commsgto.vue +163 -84
  100. package/src/views/privilege/commsg/commsgtoform.vue +64 -58
  101. package/src/views/privilege/commsg/commsgtrans.vue +187 -115
  102. package/src/views/privilege/exfield/comexcolumn.vue +133 -43
  103. package/src/views/privilege/exfield/comexcolumnform.vue +85 -58
  104. package/src/views/privilege/exfield/comexfield.vue +15 -17
  105. package/src/views/privilege/exfield/comexfieldform.vue +71 -53
  106. package/src/views/privilege/exfield/comexfieldsub.vue +137 -46
  107. package/src/views/privilege/index.js +19 -20
  108. package/src/views/privilege/menu/comMenu.vue +49 -41
  109. package/src/views/privilege/menu/menu.vue +166 -49
  110. package/src/views/privilege/menu/menuinfo.vue +41 -34
  111. package/src/views/privilege/menu/rolelist.vue +78 -33
  112. package/src/views/privilege/menu/userlist.vue +76 -33
  113. package/src/views/privilege/mobile/authmobileupdate.vue +119 -43
  114. package/src/views/privilege/mobile/authmobileupdateform.vue +76 -46
  115. package/src/views/privilege/orgDept/authOrgn.vue +157 -65
  116. package/src/views/privilege/orgDept/authorgnform.vue +50 -38
  117. package/src/views/privilege/orgDept/orgDept.vue +38 -37
  118. package/src/views/privilege/orgDept/orgTree.vue +99 -88
  119. package/src/views/privilege/orgDept/orgnselect.vue +132 -111
  120. package/src/views/privilege/personDept/authuser.vue +197 -91
  121. package/src/views/privilege/personDept/authuserform.vue +123 -71
  122. package/src/views/privilege/personDept/facerec.vue +128 -83
  123. package/src/views/privilege/personDept/orgncascader.vue +134 -115
  124. package/src/views/privilege/personDept/personDept.vue +9 -7
  125. package/src/views/privilege/quartz/comquartzjob.vue +123 -38
  126. package/src/views/privilege/quartz/comquartzjobform.vue +67 -51
  127. package/src/views/privilege/quartz/comquartzlog.vue +116 -32
  128. package/src/views/privilege/role/btnRole.vue +123 -67
  129. package/src/views/privilege/role/menuRole.vue +65 -45
  130. package/src/views/privilege/role/orgnRole.vue +63 -41
  131. package/src/views/privilege/role/role.vue +26 -9
  132. package/src/views/privilege/role/rolelist.vue +114 -45
  133. package/src/views/privilege/role/roleselect.vue +34 -17
  134. package/src/views/privilege/search/comsearch.vue +164 -73
  135. package/src/views/privilege/search/menu.vue +38 -22
  136. package/src/views/privilege/syscode/syscode.vue +157 -69
  137. package/src/views/privilege/syscode/sysfield.vue +96 -43
  138. package/src/views/privilege/syscode/sysfieldframe.vue +30 -30
  139. package/src/views/privilege/syslog/menulog.vue +38 -22
  140. package/src/views/privilege/syslog/syslog.vue +145 -78
  141. package/src/views/privilege/syslog/syslogconfig.vue +91 -24
  142. package/src/views/privilege/syslog/syslogform.vue +45 -43
  143. package/src/views/privilege/syslog/syslogframe.vue +26 -26
  144. package/src/views/privilege/userRole/userRole.vue +187 -89
  145. package/vite.config.js +7 -0
  146. package/dist/assets/index.774ef40e.css +0 -1
  147. package/src/views/privilege.zip +0 -0
@@ -1,149 +1,182 @@
1
1
  <template>
2
- <ExFooter :height="nowHeight" ref="footer" style="display: flex; flex-direction: column;">
3
- <div class="asideDrag" @mousedown="mousedown($event)" v-if="!noDrag" :class="{dragShowCls:dragShow}"
4
- @mouseover="dragShow=true" @mouseout="dragShow=false"></div>
5
- <div ref="moveline" class="moveline" v-show="dragFrom!=null"></div>
2
+ <ExFooter
3
+ :height="nowHeight"
4
+ ref="footer"
5
+ style="display: flex; flex-direction: column"
6
+ >
7
+ <div
8
+ class="asideDrag"
9
+ @mousedown="mousedown($event)"
10
+ v-if="!noDrag"
11
+ :class="{ dragShowCls: dragShow }"
12
+ @mouseover="dragShow = true"
13
+ @mouseout="dragShow = false"
14
+ ></div>
15
+ <div ref="moveline" class="moveline" v-show="dragFrom != null"></div>
6
16
  <div class="hdFooter">
7
17
  <template v-if="title">
8
18
  <div class="hd-title">
9
- <div align="left" style="float:left">{{$t(title)}}</div>
19
+ <div align="left" style="float: left">{{ $t(title) }}</div>
10
20
  <slot name="title"></slot>
11
21
  <div align="right" v-if="arrowShow">
12
- <i v-bind:class="[fa, arrowClass]" @click="isShrink?doShrink(false):doShrink(true)" style="cursor:pointer;">
22
+ <i
23
+ v-bind:class="[fa, arrowClass]"
24
+ @click="isShrink ? doShrink(false) : doShrink(true)"
25
+ style="cursor: pointer"
26
+ >
13
27
  </i>
14
28
  </div>
15
29
  </div>
16
30
  </template>
17
- <div style="flex:1;height: 100%;position: relative; ">
18
- <div style="position: absolute; width: 100%;height: 100%;" v-show="!isShrink">
31
+ <div style="flex: 1; height: 100%; position: relative">
32
+ <div
33
+ style="position: absolute; width: 100%; height: 100%"
34
+ v-show="!isShrink"
35
+ >
19
36
  <slot></slot>
20
37
  </div>
21
38
  </div>
22
39
  </div>
23
-
24
40
  </ExFooter>
25
41
  </template>
26
42
 
27
43
  <script>
28
-
44
+ /**
45
+ * 覆写ElFooter,增加拖动和title
46
+ * 插槽:<slot name="title"></slot> title进行额外扩展如增加按钮等
47
+ * @module HdFooter
48
+ */
49
+ export default {
50
+ name: 'HdFooter',
51
+ component: {},
29
52
  /**
30
- * 覆写ElFooter,增加拖动和title
31
- * 插槽:<slot name="title"></slot> title进行额外扩展如增加按钮等
32
- * @module HdFooter
53
+ * Props 继承ElFooter属性和事件,,如果仅需要elementui的ElFooter请使用ExFooter
54
+ * @prop {String} title 标题
55
+ * @prop {Boolen} arrowShow 是否显示一键收缩
56
+ * @prop {Boolen} noDrag 是否可拖动,默认否
33
57
  */
34
- export default {
35
- name: 'HdFooter',
36
- component: {},
37
- /**
38
- * Props 继承ElFooter属性和事件,,如果仅需要elementui的ElFooter请使用ExFooter
39
- * @prop {String} title 标题
40
- * @prop {Boolen} arrowShow 是否显示一键收缩
41
- * @prop {Boolen} noDrag 是否可拖动,默认否
42
- */
43
- props: {
44
- height: String,
45
- title: String,
46
- arrowShow: {type: Boolean, default: true},
47
- noDrag: {type: Boolean, default: false}
48
- },
49
- inheritAttrs: false,
50
- data() {
51
- return {
52
- isShrink: false, // 收缩还是展开
53
- dragFrom: null,
54
- iconCls: 'el-icon-d-caret',
55
- arrowClass: 'fa-chevron-down',
56
- fa: 'fa',
57
- inputHeight: 0,
58
- nowHeight: '100px',
59
- dragShow: false
60
- }
61
- },
62
- mounted() {
63
- if (this.height) {
64
- this.nowHeight = this.height
65
- }
66
- this.inputHeight = this.nowHeight
67
- },
68
- methods: {
69
- doShrink(isShrink) {
70
- if (isShrink) {
71
- if (this.title) {
72
- this.nowHeight = "30px"
73
- } else {
74
- this.nowHeight = "15px"
75
- }
76
- this.arrowClass = 'fa-chevron-up'
58
+ props: {
59
+ height: String,
60
+ title: String,
61
+ arrowShow: { type: Boolean, default: true },
62
+ noDrag: { type: Boolean, default: false },
63
+ },
64
+ inheritAttrs: false,
65
+ data() {
66
+ return {
67
+ isShrink: false, // 收缩还是展开
68
+ dragFrom: null,
69
+ iconCls: 'el-icon-d-caret',
70
+ arrowClass: 'fa-chevron-down',
71
+ fa: 'fa',
72
+ inputHeight: 0,
73
+ nowHeight: '100px',
74
+ dragShow: false,
75
+ }
76
+ },
77
+ mounted() {
78
+ if (this.height) {
79
+ this.nowHeight = this.height
80
+ }
81
+ this.inputHeight = this.nowHeight
82
+ },
83
+ methods: {
84
+ doShrink(isShrink) {
85
+ if (isShrink) {
86
+ if (this.title) {
87
+ this.nowHeight = '30px'
77
88
  } else {
78
- this.nowHeight = this.inputHeight
79
- this.arrowClass = 'fa-chevron-down'
80
- }
81
- this.isShrink = isShrink
82
- },
83
- mousedown: function (event) {
84
- this.$set(this.$store.state, 'hotKey', "-1") //避免热键样式影响体验
85
- this.dragFrom = event.y
86
- this.$refs.moveline.style.top = this.dragFrom + "px"
87
- document.documentElement.addEventListener('mousemove', this.handleMove, true)
88
- document.documentElement.addEventListener('mouseup', this.handleMouseup, true)
89
- },
90
- handleMove: function (event) {
91
- this.$refs.moveline.style.top = event.y + "px"
92
- },
93
- handleMouseup: function (event) {
94
- document.documentElement.removeEventListener('mousemove', this.handleMove, true)
95
- document.documentElement.removeEventListener('mouseup', this.handleMouseup, true)
96
- let newHeight = this.$refs.footer.$el.offsetHeight - event.y + this.dragFrom
97
- this.nowHeight = newHeight + 'px';
98
- this.dragFrom = null
99
- this.$set(this.$store.state, 'hotKey', null) //避免热键样式影响体验
100
- if (newHeight <= 70) { // 少于一定宽度自动收缩
101
- this.doShrink(true)
102
- }
103
- if (newHeight >= 100) { // 少于一定宽度自动收缩
104
- this.isShrink = false
89
+ this.nowHeight = '15px'
105
90
  }
91
+ this.arrowClass = 'fa-chevron-up'
92
+ } else {
93
+ this.nowHeight = this.inputHeight
94
+ this.arrowClass = 'fa-chevron-down'
106
95
  }
96
+ this.isShrink = isShrink
107
97
  },
108
- watch: {
109
- nowHeight(val) {
110
-
111
- this.$emit('update:height', val);
112
- },
113
- width(val) {
114
- this.nowHeight = val
98
+ mousedown: function (event) {
99
+ this.$set(this.$store.state, 'hotKey', '-1') //避免热键样式影响体验
100
+ this.dragFrom = event.y
101
+ this.$refs.moveline.style.top = this.dragFrom + 'px'
102
+ document.documentElement.addEventListener(
103
+ 'mousemove',
104
+ this.handleMove,
105
+ true
106
+ )
107
+ document.documentElement.addEventListener(
108
+ 'mouseup',
109
+ this.handleMouseup,
110
+ true
111
+ )
112
+ },
113
+ handleMove: function (event) {
114
+ this.$refs.moveline.style.top = event.y + 'px'
115
+ },
116
+ handleMouseup: function (event) {
117
+ document.documentElement.removeEventListener(
118
+ 'mousemove',
119
+ this.handleMove,
120
+ true
121
+ )
122
+ document.documentElement.removeEventListener(
123
+ 'mouseup',
124
+ this.handleMouseup,
125
+ true
126
+ )
127
+ let newHeight =
128
+ this.$refs.footer.$el.offsetHeight - event.y + this.dragFrom
129
+ this.nowHeight = newHeight + 'px'
130
+ this.dragFrom = null
131
+ this.$set(this.$store.state, 'hotKey', null) //避免热键样式影响体验
132
+ if (newHeight <= 70) {
133
+ // 少于一定宽度自动收缩
134
+ this.doShrink(true)
115
135
  }
116
- }
117
- }
118
-
136
+ if (newHeight >= 100) {
137
+ // 少于一定宽度自动收缩
138
+ this.isShrink = false
139
+ }
140
+ },
141
+ },
142
+ watch: {
143
+ nowHeight(val) {
144
+ this.$emit('update:height', val)
145
+ },
146
+ width(val) {
147
+ this.nowHeight = val
148
+ },
149
+ },
150
+ }
119
151
  </script>
120
- <style rel="stylesheet/scss" lang="scss" scoped>
121
- .hdFooter {
122
- display: flex;
123
- flex-direction: column;
124
- flex: 1;
125
- }
126
152
 
127
- .asideDrag {
128
- width: 100%;
129
- height: 5px;
130
- overflow: hidden;
131
- cursor: ns-resize;
132
- user-select: none;
133
- }
153
+ <style lang="scss" rel="stylesheet/scss" scoped>
154
+ .hdFooter {
155
+ display: flex;
156
+ flex-direction: column;
157
+ flex: 1;
158
+ }
159
+
160
+ .asideDrag {
161
+ width: 100%;
162
+ height: 5px;
163
+ overflow: hidden;
164
+ cursor: ns-resize;
165
+ user-select: none;
166
+ }
134
167
 
135
- .moveline {
136
- width: 100%;
137
- height: 5px;
138
- overflow: hidden;
139
- position: fixed;
140
- cursor: ns-resize;
141
- background-color: red;
142
- z-index: 9999;
143
- user-select: none;
144
- }
168
+ .moveline {
169
+ width: 100%;
170
+ height: 5px;
171
+ overflow: hidden;
172
+ position: fixed;
173
+ cursor: ns-resize;
174
+ background-color: red;
175
+ z-index: 9999;
176
+ user-select: none;
177
+ }
145
178
 
146
- .dragShowCls {
147
- background-color: #409EFF;
148
- }
179
+ .dragShowCls {
180
+ background-color: #409eff;
181
+ }
149
182
  </style>