hd-idevvue3 3.0.5 → 3.0.8

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 (155) hide show
  1. package/dist/static/css/index-DRHIlcVU.css +1 -0
  2. package/dist/static/js/index-DbUA6jg0.js +184 -0
  3. package/dist/static/js/index-Dl4O91nB.js +73768 -0
  4. package/package.json +16 -16
  5. package/.env.development +0 -5
  6. package/.env.production +0 -5
  7. package/.eslintrc.js +0 -151
  8. package/dist/assets/index.431f21ca.css +0 -1
  9. package/dist/hd-idevvue3.mjs +0 -45878
  10. package/dist/hd-idevvue3.umd.js +0 -153
  11. package/index.html +0 -18
  12. package/npminstall-debug.log +0 -200
  13. package/pnpm-lock.yaml +0 -2813
  14. package/src/App.vue +0 -11
  15. package/src/assets/sound/notify.wav +0 -0
  16. package/src/demo/demo.vue +0 -42
  17. package/src/demo/dropdemo.vue +0 -42
  18. package/src/demo/extsets.vue +0 -208
  19. package/src/demo/formedit.vue +0 -157
  20. package/src/demo/hightquery.vue +0 -366
  21. package/src/demo/inlineedit.vue +0 -182
  22. package/src/demo/selfdrop.vue +0 -58
  23. package/src/demo//350/241/214/345/206/205/347/272/247/350/201/224.txt +0 -2
  24. package/src/directive/el-dragDialog/drag.js +0 -124
  25. package/src/directive/el-dragDialog/index.js +0 -13
  26. package/src/errorLog.js +0 -16
  27. package/src/hdcom/BigGrid.js +0 -179
  28. package/src/hdcom/BillShow.vue +0 -111
  29. package/src/hdcom/BillUpload.vue +0 -311
  30. package/src/hdcom/BtnRight.vue +0 -101
  31. package/src/hdcom/ErrHint.vue +0 -42
  32. package/src/hdcom/ExtendColumn.vue +0 -115
  33. package/src/hdcom/ExtendCommon.js +0 -40
  34. package/src/hdcom/ExtendForm.vue +0 -141
  35. package/src/hdcom/FacePicUpload.vue +0 -80
  36. package/src/hdcom/FaceRecTest.vue +0 -114
  37. package/src/hdcom/GridChart.vue +0 -207
  38. package/src/hdcom/GridExField.vue +0 -375
  39. package/src/hdcom/GridShow.vue +0 -288
  40. package/src/hdcom/HdAside.vue +0 -225
  41. package/src/hdcom/HdBtn.vue +0 -125
  42. package/src/hdcom/HdButton.vue +0 -161
  43. package/src/hdcom/HdComFaceRec.vue +0 -106
  44. package/src/hdcom/HdComGrid.vue +0 -876
  45. package/src/hdcom/HdComQuery.vue +0 -362
  46. package/src/hdcom/HdComQueryDetail.vue +0 -205
  47. package/src/hdcom/HdComSortDetail.vue +0 -161
  48. package/src/hdcom/HdDatePicker.vue +0 -94
  49. package/src/hdcom/HdDialog.vue +0 -81
  50. package/src/hdcom/HdDrop.vue +0 -188
  51. package/src/hdcom/HdFileUpload.vue +0 -167
  52. package/src/hdcom/HdFilterBox.vue +0 -90
  53. package/src/hdcom/HdFooter.vue +0 -182
  54. package/src/hdcom/HdForm.vue +0 -351
  55. package/src/hdcom/HdFormBtn.vue +0 -131
  56. package/src/hdcom/HdFormItem.vue +0 -39
  57. package/src/hdcom/HdGctosGrid +0 -0
  58. package/src/hdcom/HdGrid.vue +0 -1022
  59. package/src/hdcom/HdGridEditBtn.vue +0 -58
  60. package/src/hdcom/HdGridExt.js +0 -250
  61. package/src/hdcom/HdGridSel.vue +0 -257
  62. package/src/hdcom/HdHeader.vue +0 -180
  63. package/src/hdcom/HdHotKey.vue +0 -84
  64. package/src/hdcom/HdInputHint.vue +0 -53
  65. package/src/hdcom/HdMain.vue +0 -41
  66. package/src/hdcom/HdMessage.vue +0 -201
  67. package/src/hdcom/HdNum.vue +0 -79
  68. package/src/hdcom/HdPopSel.vue +0 -80
  69. package/src/hdcom/HdRightMenu.vue +0 -63
  70. package/src/hdcom/HdSel/SelGridFieldcod.vue +0 -54
  71. package/src/hdcom/HdTableColumn.vue +0 -381
  72. package/src/hdcom/HdTempSave.vue +0 -162
  73. package/src/hdcom/HdTree.vue +0 -103
  74. package/src/hdcom/HdTreeTable/eval.js +0 -39
  75. package/src/hdcom/HdTreeTable/index.vue +0 -229
  76. package/src/hdcom/ImportExcel.vue +0 -178
  77. package/src/hdcom/index.js +0 -75
  78. package/src/idev.common.js +0 -79
  79. package/src/index.js +0 -11
  80. package/src/utils/HdQuery.js +0 -65
  81. package/src/utils/comutils.js +0 -120
  82. package/src/utils/gogocodeTransfer.js +0 -59
  83. package/src/utils/utils.js +0 -116
  84. package/src/vendor/Blob.js +0 -187
  85. package/src/vendor/Export2Excel.js +0 -231
  86. package/src/vendor/Export2Zip.js +0 -25
  87. package/src/views/layout/AppMain.vue +0 -34
  88. package/src/views/layout/HdLayout.vue +0 -90
  89. package/src/views/layout/header/ElasticSearch.vue +0 -262
  90. package/src/views/layout/header/HZRecorder.js +0 -259
  91. package/src/views/layout/header/HeaderSearch.vue +0 -218
  92. package/src/views/layout/header/Levelbar.vue +0 -55
  93. package/src/views/layout/header/MainHeader.vue +0 -315
  94. package/src/views/layout/header/Navbar.vue +0 -101
  95. package/src/views/layout/header/ScrollPane.vue +0 -103
  96. package/src/views/layout/header/TagsView.vue +0 -215
  97. package/src/views/layout/header/VocRec.vue +0 -105
  98. package/src/views/layout/header/changepswform.vue +0 -130
  99. package/src/views/layout/index.js +0 -10
  100. package/src/views/layout/menu/Hamburger.vue +0 -63
  101. package/src/views/layout/menu/HdMenu.vue +0 -204
  102. package/src/views/layout/menu/css/menu.css +0 -288
  103. package/src/views/layout/menu/index.vue +0 -27
  104. package/src/views/privilege/commsg/commsg.vue +0 -152
  105. package/src/views/privilege/commsg/commsgOrgn.vue +0 -51
  106. package/src/views/privilege/commsg/commsgRole.vue +0 -220
  107. package/src/views/privilege/commsg/commsgform.vue +0 -184
  108. package/src/views/privilege/commsg/commsgiframe.vue +0 -40
  109. package/src/views/privilege/commsg/commsgto.vue +0 -199
  110. package/src/views/privilege/commsg/commsgtoform.vue +0 -114
  111. package/src/views/privilege/commsg/commsgtrans.vue +0 -227
  112. package/src/views/privilege/exfield/comexcolumn.vue +0 -161
  113. package/src/views/privilege/exfield/comexcolumnform.vue +0 -128
  114. package/src/views/privilege/exfield/comexfield.vue +0 -29
  115. package/src/views/privilege/exfield/comexfieldform.vue +0 -112
  116. package/src/views/privilege/exfield/comexfieldsub.vue +0 -163
  117. package/src/views/privilege/index.js +0 -41
  118. package/src/views/privilege/menu/comMenu.vue +0 -49
  119. package/src/views/privilege/menu/menu.vue +0 -250
  120. package/src/views/privilege/menu/menuinfo.vue +0 -63
  121. package/src/views/privilege/menu/rolelist.vue +0 -92
  122. package/src/views/privilege/menu/userlist.vue +0 -92
  123. package/src/views/privilege/mobile/authmobileupdate.vue +0 -145
  124. package/src/views/privilege/mobile/authmobileupdateform.vue +0 -120
  125. package/src/views/privilege/orgDept/authOrgn.vue +0 -188
  126. package/src/views/privilege/orgDept/authorgnform.vue +0 -157
  127. package/src/views/privilege/orgDept/orgDept.vue +0 -38
  128. package/src/views/privilege/orgDept/orgTree.vue +0 -99
  129. package/src/views/privilege/orgDept/orgnselect.vue +0 -155
  130. package/src/views/privilege/personDept/authuser.vue +0 -229
  131. package/src/views/privilege/personDept/authuserform.vue +0 -206
  132. package/src/views/privilege/personDept/facerec.vue +0 -162
  133. package/src/views/privilege/personDept/orgncascader.vue +0 -144
  134. package/src/views/privilege/personDept/personDept.vue +0 -33
  135. package/src/views/privilege/quartz/comquartzjob.vue +0 -150
  136. package/src/views/privilege/quartz/comquartzjobform.vue +0 -115
  137. package/src/views/privilege/quartz/comquartzlog.vue +0 -143
  138. package/src/views/privilege/role/btnRole.vue +0 -173
  139. package/src/views/privilege/role/menuRole.vue +0 -84
  140. package/src/views/privilege/role/orgnRole.vue +0 -78
  141. package/src/views/privilege/role/role.vue +0 -84
  142. package/src/views/privilege/role/rolelist.vue +0 -136
  143. package/src/views/privilege/role/roleselect.vue +0 -74
  144. package/src/views/privilege/search/comsearch.vue +0 -196
  145. package/src/views/privilege/search/menu.vue +0 -68
  146. package/src/views/privilege/syscode/syscode.vue +0 -191
  147. package/src/views/privilege/syscode/sysfield.vue +0 -119
  148. package/src/views/privilege/syscode/sysfieldframe.vue +0 -30
  149. package/src/views/privilege/syslog/menulog.vue +0 -68
  150. package/src/views/privilege/syslog/syslog.vue +0 -182
  151. package/src/views/privilege/syslog/syslogconfig.vue +0 -128
  152. package/src/views/privilege/syslog/syslogform.vue +0 -85
  153. package/src/views/privilege/syslog/syslogframe.vue +0 -26
  154. package/src/views/privilege/userRole/userRole.vue +0 -220
  155. package/vite.config.js +0 -103
@@ -1,103 +0,0 @@
1
- <template>
2
- <div
3
- class="scroll-container"
4
- ref="scrollContainer"
5
- @mousewheel="handleScroll"
6
- @DOMMouseScroll="handleFoxScroll"
7
- >
8
- <div
9
- class="scroll-wrapper"
10
- ref="scrollWrapper"
11
- :style="{ left: left + 'px' }"
12
- >
13
- <slot></slot>
14
- </div>
15
- </div>
16
- </template>
17
-
18
- <script>
19
- export default {
20
- name: 'scrollPane',
21
- data() {
22
- return {
23
- left: 0,
24
- tmpWrapperWidth: 0,
25
- }
26
- },
27
- updated: function () {
28
- if (this.tmpWrapperWidth != this.$refs.scrollWrapper.offsetWidth) {
29
- this.tmpWrapperWidth = this.$refs.scrollWrapper.offsetWidth
30
- if (
31
- this.$refs.scrollContainer.offsetWidth -
32
- this.$refs.scrollWrapper.offsetWidth <
33
- 100
34
- ) {
35
- this.left =
36
- this.$refs.scrollContainer.offsetWidth -
37
- this.$refs.scrollWrapper.offsetWidth -
38
- 100
39
- }
40
- }
41
- },
42
- methods: {
43
- handleScroll(e) {
44
- e.preventDefault()
45
- const $container = this.$refs.scrollContainer
46
- const $containerWidth = $container.offsetWidth
47
- const $wrapper = this.$refs.scrollWrapper
48
- const $wrapperWidth = $wrapper.offsetWidth
49
- if (e.wheelDelta > 0) {
50
- this.left = Math.min(0, this.left + e.wheelDelta)
51
- } else {
52
- if ($containerWidth - 100 < $wrapperWidth) {
53
- if (this.left < -($wrapperWidth - $containerWidth + 100)) {
54
- this.left = this.left
55
- } else {
56
- this.left = Math.max(
57
- this.left + e.wheelDelta,
58
- $containerWidth - $wrapperWidth - 100
59
- )
60
- }
61
- } else {
62
- this.left = 0
63
- }
64
- }
65
- },
66
- handleFoxScroll(e) {
67
- e.preventDefault()
68
- const $container = this.$refs.scrollContainer
69
- const $containerWidth = $container.offsetWidth
70
- const $wrapper = this.$refs.scrollWrapper
71
- const $wrapperWidth = $wrapper.offsetWidth
72
- let pos = e.detail * -10
73
- if (pos > 0) {
74
- this.left = Math.min(0, this.left + pos)
75
- } else {
76
- if ($containerWidth - 100 < $wrapperWidth) {
77
- if (this.left < -($wrapperWidth - $containerWidth + 100)) {
78
- this.left = this.left
79
- } else {
80
- this.left = Math.max(
81
- this.left + pos,
82
- $containerWidth - $wrapperWidth - 100
83
- )
84
- }
85
- } else {
86
- this.left = 0
87
- }
88
- }
89
- },
90
- },
91
- }
92
- </script>
93
-
94
- <style lang="scss" rel="stylesheet/scss" scoped>
95
- .scroll-container {
96
- white-space: nowrap;
97
- position: relative;
98
- overflow: hidden;
99
- .scroll-wrapper {
100
- position: absolute;
101
- }
102
- }
103
- </style>
@@ -1,215 +0,0 @@
1
- <template>
2
- <div class="tags-view-container">
3
- <scroll-pane class="tags-view-container" ref="scrollPane">
4
- <router-link
5
- :class="isActive(tag) ? 'active' : ''"
6
- :key="tag.name"
7
- :to="{ name: tag.name, params: tag.addQuery }"
8
- @click.middle.native="closeSelectedTag(tag)"
9
- @contextmenu.prevent.native="openMenu(tag, $event)"
10
- class="tags-view-item"
11
- ref="tag"
12
- v-for="tag in Array.from(visitedViews)"
13
- >
14
- <!--name是menuId -->
15
- {{ $i18n.locale == 'zh' ? tag.title : tag.enTitle }}
16
- <span @click.stop="closeViewTags(tag, $event)" class="el-icon-close" />
17
- </router-link>
18
- <div @click="headerToggle()" style="position: fixed; right: 20px">
19
- <i :class="showHeaderCls" style="font-size: 20px; color: #4d90fe"></i>
20
- </div>
21
- </scroll-pane>
22
- <ul
23
- :style="{ left: left + 'px', top: top + 'px' }"
24
- class="context-menu"
25
- v-show="visible"
26
- >
27
- <li @click="refreshSelectedTag()">{{ $t('tagsView.refresh') }}</li>
28
- <li @click="closeOthersTags">{{ $t('tagsView.closeOthers') }}</li>
29
- <li @click="closeAllTags">{{ $t('tagsView.closeAll') }}</li>
30
- <li @click="openInNewWin()">{{ $t('tagsView.openNew') }}</li>
31
- </ul>
32
- </div>
33
- </template>
34
-
35
- <script>
36
- import ScrollPane from './ScrollPane'
37
-
38
- export default {
39
- components: { ScrollPane },
40
- data() {
41
- return {
42
- visible: false,
43
- top: 0,
44
- left: 0,
45
- showHeaderCls: 'el-icon-upload2',
46
- }
47
- },
48
- computed: {
49
- visitedViews() {
50
- return this.$store.state.app.visitedViews
51
- },
52
- },
53
- watch: {
54
- $route() {
55
- this.addViewTags()
56
- },
57
- visible(value) {
58
- if (value) {
59
- document.body.addEventListener('click', this.closeMenu)
60
- } else {
61
- document.body.removeEventListener('click', this.closeMenu)
62
- }
63
- },
64
- },
65
- mounted() {
66
- this.addViewTags()
67
- },
68
- methods: {
69
- headerToggle() {
70
- let st = this.$store.state.app.headerShow
71
- if (st === false) {
72
- this.showHeaderCls = 'el-icon-upload2'
73
- this.$set(this.$store.state.app, 'headerShow', true)
74
- } else {
75
- this.showHeaderCls = 'el-icon-download'
76
- this.$set(this.$store.state.app, 'headerShow', false)
77
- }
78
- },
79
- closeViewTags(view, $event) {
80
- this.$store.dispatch('delView', view).then((views) => {
81
- if (this.isActive(view)) {
82
- const latestView = views.slice(-1)[0]
83
- if (latestView) {
84
- this.$router.push(latestView.path)
85
- } else {
86
- this.$router.push('/')
87
- }
88
- }
89
- })
90
- $event.preventDefault()
91
- },
92
- generateRoute() {
93
- if (this.$route.name) {
94
- return this.$route
95
- }
96
- return false
97
- },
98
- addViewTags() {
99
- const route = this.generateRoute()
100
- if (!route) {
101
- return false
102
- }
103
- this.$store.dispatch('addView', route)
104
- },
105
- isActive(route) {
106
- return route.name === this.$route.name
107
- },
108
- refreshSelectedTag() {
109
- this.$store.dispatch('refreshView', this.$store.state.app.selectedView)
110
- },
111
- closeOthersTags() {
112
- this.$router.push(this.$store.state.app.selectedView)
113
- this.$store
114
- .dispatch('delOthersViews', this.$store.state.app.selectedView)
115
- .then(() => {})
116
- },
117
- closeAllTags() {
118
- this.$store.dispatch('delAllViews')
119
- this.$router.push('/')
120
- },
121
- openMenu(tag, e) {
122
- const menuMinWidth = 105
123
- const offsetLeft = this.$el.getBoundingClientRect().left // container margin left
124
- const offsetWidth = this.$el.offsetWidth // container width
125
- const maxLeft = offsetWidth - menuMinWidth // left boundary
126
- const left = e.clientX - offsetLeft + 15 // 15: margin right
127
- if (left > maxLeft) {
128
- this.left = maxLeft
129
- } else {
130
- this.left = left
131
- }
132
- this.top = e.clientY - 40
133
- this.visible = true
134
- this.$store.state.app.selectedView = tag
135
- console.log(this.$store.state.app.selectedView)
136
- },
137
- closeMenu() {
138
- this.visible = false
139
- },
140
- openInNewWin() {
141
- const view = this.$store.state.app.selectedView
142
- const routeData = this.$router.resolve({
143
- name: view.name,
144
- params: view.params,
145
- query: { onlycontent: 1 },
146
- })
147
- window.open(routeData.href, view.name)
148
- },
149
- },
150
- }
151
- </script>
152
-
153
- <style lang="scss" rel="stylesheet/scss" scoped>
154
- .tags-view-container {
155
- .tags-view-item {
156
- display: inline-block;
157
- position: relative;
158
- height: 26px;
159
- line-height: 26px;
160
- border: 1px solid #d8dce5;
161
- color: #495060;
162
- background: #fff;
163
- padding: 0 8px;
164
- font-size: 12px;
165
- margin-left: 5px;
166
- margin-top: 4px;
167
-
168
- &:first-of-type {
169
- margin-left: 15px;
170
- }
171
-
172
- &.active {
173
- background-color: #409eff;
174
- color: #fff;
175
- border-color: #409eff;
176
-
177
- &::before {
178
- content: '';
179
- background: #fff;
180
- display: inline-block;
181
- width: 8px;
182
- height: 8px;
183
- border-radius: 50%;
184
- position: relative;
185
- margin-right: 2px;
186
- }
187
- }
188
- }
189
- }
190
-
191
- .tags-view-container {
192
- .tags-view-item {
193
- .el-icon-close {
194
- width: 16px;
195
- height: 16px;
196
- vertical-align: 2px;
197
- border-radius: 50%;
198
- text-align: center;
199
- transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
200
- transform-origin: 100% 50%;
201
-
202
- &:before {
203
- transform: scale(0.6);
204
- display: inline-block;
205
- vertical-align: -3px;
206
- }
207
-
208
- &:hover {
209
- background-color: #b4bccc;
210
- color: #fff;
211
- }
212
- }
213
- }
214
- }
215
- </style>
@@ -1,105 +0,0 @@
1
- <script>
2
- import './HZRecorder.js'
3
-
4
- export default {
5
- name: 'VocRec',
6
- components: {},
7
- mounted() {
8
- this.vocRec()
9
- },
10
- data() {
11
- return {
12
- vocTimeHandle: null,
13
- vocTime: 0, //录制的毫秒数,低于1秒的丢弃
14
- recorder: null,
15
- hotKeyDown: false,
16
- isRecording: false, //是否正在录音由于录音设备异步问题,需要标志位控制
17
- //log: errLogStore.state.errLog
18
- }
19
- },
20
- methods: {
21
- vocHotKey() {
22
- if (!this.hotKeyDown) {
23
- this.hotKeyDown = true
24
- this.startRecording()
25
- } else {
26
- this.hotKeyDown = false
27
- this.endRecording()
28
- }
29
- },
30
- vocRec() {
31
- $('.mainHeader .mike').mousedown(() => {
32
- console.info('startClick')
33
- this.startRecording()
34
- })
35
-
36
- $('.mainHeader .mike').mouseup(() => {
37
- this.endRecording()
38
- })
39
- },
40
- startRecording() {
41
- this.isRecording = true
42
- HZRecorder.get((rec) => {
43
- this.recorder = rec
44
- if (this.isRecording) {
45
- //还未启动就释放的
46
- this.recorder.start()
47
- } else {
48
- this.recorder.stop()
49
- }
50
- })
51
- this.vocTime = new Date().getTime()
52
- this.$message({
53
- message: this.$t('正在录音...'),
54
- type: 'warn',
55
- duration: 999999,
56
- showClose: true,
57
- })
58
- },
59
- endRecording() {
60
- this.stopRecording()
61
- this.$message.closeAll()
62
- let nowTime = new Date().getTime()
63
- if (nowTime - this.vocTime < 1000) {
64
- //低于一秒的录制不处理
65
- return false
66
- }
67
- this.uploadAudio()
68
- },
69
- uploadAudio() {
70
- //doClose是否关闭录音,repeate是否同时上传
71
- this.recorder.upload(
72
- '/webresources/login/com/comwav/vocRec',
73
- (state, e) => {
74
- switch (state) {
75
- case 'uploading':
76
- //var percentComplete = Math.round(e.loaded * 100 / e.total) + '%';
77
- break
78
- case 'ok':
79
- var genJson = eval('(' + e.target.responseText + ')')
80
- if (genJson.message) {
81
- if (genJson.code == '1') {
82
- //根据id打开菜单
83
- this.$router.push({ name: genJson.message })
84
- } else {
85
- this.$store.state.app.vocRec = genJson.message //识别为拼音名
86
- console.info(genJson.message)
87
- }
88
- }
89
- break
90
- case 'error':
91
- break
92
- case 'cancel':
93
- break
94
- }
95
- }
96
- )
97
- },
98
- stopRecording() {
99
- //停止录音
100
- this.isRecording = false
101
- this.recorder.stop()
102
- },
103
- },
104
- }
105
- </script>
@@ -1,130 +0,0 @@
1
- <template>
2
- <el-dialog title="修改密码" :visible.sync="visiable">
3
- <el-form
4
- label-width="100px"
5
- :model="hdform"
6
- ref="hdform"
7
- :rules="checkRules"
8
- >
9
- <el-row>
10
- <el-col :span="24">
11
- <el-form-item label="旧密码" prop="oldPassword">
12
- <el-input
13
- type="text"
14
- v-model="hdform.oldPassword"
15
- placeholder="请输入旧密码"
16
- >
17
- </el-input>
18
- </el-form-item>
19
- </el-col>
20
- <el-col :span="24">
21
- <el-form-item label="新密码" prop="newPassword">
22
- <el-input
23
- type="password"
24
- v-model="hdform.newPassword"
25
- placeholder="请输入密码"
26
- autocomplete="new-password"
27
- >
28
- </el-input>
29
- </el-form-item>
30
- </el-col>
31
- <el-col :span="24">
32
- <el-form-item label="重复确认" prop="passwordTemp">
33
- <el-input
34
- type="password"
35
- v-model="hdform.passwordTemp"
36
- placeholder="请重复输入密码"
37
- autocomplete="new-password"
38
- >
39
- </el-input>
40
- </el-form-item>
41
- </el-col>
42
- </el-row>
43
- </el-form>
44
- <div slot="footer" class="dialog-footer">
45
- <el-button @click="visiable = false">{{ $t('取 消') }}</el-button>
46
- <el-button type="primary" @click="doRegist" :loading="loading">
47
- {{ $t('确 定') }}</el-button
48
- >
49
- </div>
50
- </el-dialog>
51
- </template>
52
-
53
- <script>
54
- export default {
55
- name: 'registform',
56
- data() {
57
- const validatePassword = (rule, value, callback) => {
58
- if (!value || value.length < 2) {
59
- callback(new Error(this.$t('密码不能小于2位')))
60
- } else {
61
- callback()
62
- }
63
- }
64
- const validatePasswordSame = (rule, value, callback) => {
65
- if (this.hdform.newPassword !== this.hdform.passwordTemp) {
66
- callback(new Error(this.$t('两次输入密码不一致')))
67
- } else {
68
- callback()
69
- }
70
- }
71
- return {
72
- hdform: {},
73
- visiable: false,
74
- tsLoading: false,
75
- loading: false,
76
- checkRules: {
77
- oldPassword: [
78
- { required: true, trigger: 'change', validator: validatePassword },
79
- ],
80
- newPassword: [
81
- { required: true, trigger: 'change', validator: validatePassword },
82
- ],
83
- passwordTemp: [
84
- {
85
- required: true,
86
- trigger: 'change',
87
- validator: validatePasswordSame,
88
- },
89
- ],
90
- },
91
- }
92
- },
93
- methods: {
94
- show() {
95
- this.visiable = true
96
- },
97
- doRegist() {
98
- this.$refs['hdform'].validate((valid) => {
99
- if (!valid) {
100
- return false
101
- }
102
- if (this.hdform.passwordTemp !== this.hdform.newPassword) {
103
- this.$alert(this.$t('两次密码输入不一致'), this.$t('错误'))
104
- return false
105
- }
106
- this.loading = true
107
- this.$http
108
- .post(
109
- '/webresources/login/privilege/AuthUser/modifyPasswordVue?oldPassword=' +
110
- this.hdform.oldPassword +
111
- '&newPassword=' +
112
- this.hdform.newPassword
113
- )
114
- .then((response) => {
115
- this.loading = false
116
- const data = response.data
117
- this.$message({
118
- type: data.code === '-1' ? 'error' : 'success',
119
- message: data.message,
120
- })
121
- if (data.code === '-1') {
122
- return
123
- }
124
- this.visiable = false
125
- })
126
- })
127
- },
128
- },
129
- }
130
- </script>
@@ -1,10 +0,0 @@
1
- import HdLayout from './HdLayout'
2
- import HdSearch from './header/HeaderSearch'
3
-
4
- export default {
5
- install(Vue) {
6
- //布局,包括菜单,多任务tag,用户设置等
7
- window.$vueApp.component('HdLayout', HdLayout)
8
- window.$vueApp.component('HdSearch', HdSearch)
9
- },
10
- }
@@ -1,63 +0,0 @@
1
- <template>
2
- <span>
3
- <svg
4
- t="1492500959545"
5
- @click="toggleClick"
6
- class="wscn-icon hamburger"
7
- :class="{ 'is-active': isActive }"
8
- style=""
9
- viewBox="0 0 1024 1024"
10
- version="1.1"
11
- xmlns="http://www.w3.org/2000/svg"
12
- p-id="1691"
13
- xmlns:xlink="http://www.w3.org/1999/xlink"
14
- width="64"
15
- height="64"
16
- >
17
- <path
18
- d="M966.8023 568.849776 57.196677 568.849776c-31.397081 0-56.850799-25.452695-56.850799-56.850799l0 0c0-31.397081 25.452695-56.849776 56.850799-56.849776l909.605623 0c31.397081 0 56.849776 25.452695 56.849776 56.849776l0 0C1023.653099 543.397081 998.200404 568.849776 966.8023 568.849776z"
19
- p-id="1692"
20
- ></path>
21
- <path
22
- d="M966.8023 881.527125 57.196677 881.527125c-31.397081 0-56.850799-25.452695-56.850799-56.849776l0 0c0-31.397081 25.452695-56.849776 56.850799-56.849776l909.605623 0c31.397081 0 56.849776 25.452695 56.849776 56.849776l0 0C1023.653099 856.07443 998.200404 881.527125 966.8023 881.527125z"
23
- p-id="1693"
24
- ></path>
25
- <path
26
- d="M966.8023 256.17345 57.196677 256.17345c-31.397081 0-56.850799-25.452695-56.850799-56.849776l0 0c0-31.397081 25.452695-56.850799 56.850799-56.850799l909.605623 0c31.397081 0 56.849776 25.452695 56.849776 56.850799l0 0C1023.653099 230.720755 998.200404 256.17345 966.8023 256.17345z"
27
- p-id="1694"
28
- ></path>
29
- </svg>
30
- </span>
31
- </template>
32
-
33
- <script>
34
- export default {
35
- name: 'hamburger',
36
- props: {
37
- isActive: {
38
- type: Boolean,
39
- default: false,
40
- },
41
- toggleClick: {
42
- type: Function,
43
- default: null,
44
- },
45
- },
46
- }
47
- </script>
48
-
49
- <style scoped>
50
- .hamburger {
51
- display: inline-block;
52
- cursor: pointer;
53
- width: 20px;
54
- height: 20px;
55
- transform: rotate(90deg);
56
- transition: 0.38s;
57
- transform-origin: 30% 50%;
58
- }
59
-
60
- .hamburger.is-active {
61
- transform: rotate(0deg);
62
- }
63
- </style>