hd-idevvue3 3.0.2 → 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 +4 -2
  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,42 +1,71 @@
1
1
  <template>
2
- <el-dialog title="单证上传" :visible.sync="visible" width='50%' append-to-body top="2vh">
2
+ <el-dialog
3
+ title="单证上传"
4
+ :visible.sync="visible"
5
+ width="50%"
6
+ append-to-body
7
+ top="2vh"
8
+ >
3
9
  <el-container class="bill_upload_container">
4
10
  <el-aside width="30%">
5
11
  <template v-for="row in rows">
6
- <el-image :src="row.src" @click="doImageItemClick(row)"
7
- :class="{image_list: row.fileId == hdform.fileId}" lazy></el-image>
8
- <div class="image_list_title">{{row.titleTxt}}</div>
12
+ <el-image
13
+ :src="row.src"
14
+ @click="doImageItemClick(row)"
15
+ :class="{ image_list: row.fileId == hdform.fileId }"
16
+ lazy
17
+ ></el-image>
18
+ <div class="image_list_title">{{ row.titleTxt }}</div>
9
19
  </template>
10
20
  <div class="image_list_button">
11
21
  <el-col :span="12">
12
- <el-button class="filter-item" @click="doGoUp" type="">上移
22
+ <el-button class="filter-item" @click="doGoUp" type=""
23
+ >上移
13
24
  </el-button>
14
25
  </el-col>
15
26
  <el-col :span="12">
16
- <el-button class="filter-item" @click="doGoDown" type="">下移
27
+ <el-button class="filter-item" @click="doGoDown" type=""
28
+ >下移
17
29
  </el-button>
18
30
  </el-col>
19
31
  </div>
20
32
  </el-aside>
21
33
  <el-main>
22
34
  <el-row>
23
- <el-image :src="hdform.src||''" :preview-src-list="[hdform.src||'']" class="image_detail" lazy>
35
+ <el-image
36
+ :src="hdform.src || ''"
37
+ :preview-src-list="[hdform.src || '']"
38
+ class="image_detail"
39
+ lazy
40
+ >
24
41
  <div slot="error" class="image-slot">
25
- <i class="el-icon-picture-outline"></i>
42
+ <el-icon><el-icon-picture-outline /></el-icon>
26
43
  </div>
27
44
  </el-image>
28
45
  </el-row>
29
46
  <el-row>
30
- <el-upload action="/webresources/login/com/SysFile/upload" :before-upload="beforeUpload"
31
- :on-remove="handleRemove" :before-remove="beforeRemove" :limit="1" :on-exceed="handleExceed"
32
- :on-success="handleSuccess" :file-list="fileList" :show-file-list="false" accept="image/*"
33
- class="fileUpload">
34
- <el-button class="filter-item" @click="" type="primary">上传
47
+ <el-upload
48
+ action="/webresources/login/com/SysFile/upload"
49
+ :before-upload="beforeUpload"
50
+ :on-remove="handleRemove"
51
+ :before-remove="beforeRemove"
52
+ :limit="1"
53
+ :on-exceed="handleExceed"
54
+ :on-success="handleSuccess"
55
+ :file-list="fileList"
56
+ :show-file-list="false"
57
+ accept="image/*"
58
+ class="fileUpload"
59
+ >
60
+ <el-button class="filter-item" @click="" type="primary"
61
+ >上传
35
62
  </el-button>
36
63
  </el-upload>
37
- <el-button class="filter-item" @click="" type="primary">拍照
64
+ <el-button class="filter-item" @click="" type="primary"
65
+ >拍照
38
66
  </el-button>
39
- <el-button class="filter-item" @click="doRemove" type="danger">删除
67
+ <el-button class="filter-item" @click="doRemove" type="danger"
68
+ >删除
40
69
  </el-button>
41
70
  </el-row>
42
71
 
@@ -48,36 +77,61 @@
48
77
  <el-row>
49
78
  <el-col :span="12" :xs="16">
50
79
  <el-form-item prop="billTyp" :rules="hdform.src ? $r(1) : $r(0)">
51
- <hd-drop field="BILL_TYP" v-model="hdform.billTyp" :placeholder="$t('请选择单据类型')"></hd-drop>
80
+ <hd-drop
81
+ field="BILL_TYP"
82
+ v-model="hdform.billTyp"
83
+ :placeholder="$t('请选择单据类型')"
84
+ ></hd-drop>
52
85
  </el-form-item>
53
86
  </el-col>
54
87
  <el-col :span="12" :xs="16">
55
- <el-form-item prop="titleTxt" :rules="hdform.src ? $r(1,0,36) : $r(0,0,36)">
56
- <el-input type="text" v-model="hdform.titleTxt" :placeholder="$t('请输入照片名称')"></el-input>
88
+ <el-form-item
89
+ prop="titleTxt"
90
+ :rules="hdform.src ? $r(1, 0, 36) : $r(0, 0, 36)"
91
+ >
92
+ <el-input
93
+ type="text"
94
+ v-model="hdform.titleTxt"
95
+ :placeholder="$t('请输入照片名称')"
96
+ ></el-input>
57
97
  </el-form-item>
58
98
  </el-col>
59
99
  </el-row>
60
100
  <el-row>
61
- <el-form-item prop="markTxt" :rules="$r(0,0,100)">
62
- <el-input type="textarea" :rows="3" v-model="hdform.markTxt" placeholder="备注内容"></el-input>
101
+ <el-form-item prop="markTxt" :rules="$r(0, 0, 100)">
102
+ <el-input
103
+ type="textarea"
104
+ :rows="3"
105
+ v-model="hdform.markTxt"
106
+ placeholder="备注内容"
107
+ ></el-input>
63
108
  </el-form-item>
64
109
  </el-row>
65
110
  </el-form>
66
-
67
111
  </el-main>
68
112
  </el-container>
69
- <div slot="footer" class="dialog-footer" align="right" style="margin-top:10px;">
70
-
113
+ <div
114
+ slot="footer"
115
+ class="dialog-footer"
116
+ align="right"
117
+ style="margin-top: 10px"
118
+ >
71
119
  <!-- :action="`/webresources/login/com/SysFileRecord/upload?billTyp=${billTyp}&billId=${hdform.billId}&orderFlag=${hdform.orderFlag}&billId=${hdform.titleTxt}&billId=${titleTxt}`"
72
- -->
73
- <el-button class="filter-item" type="primary" @click="doSave">保存</el-button>
120
+ -->
121
+ <el-button class="filter-item" type="primary" @click="doSave"
122
+ >保存</el-button
123
+ >
74
124
  </div>
75
125
  </el-dialog>
76
126
  </template>
77
127
 
78
128
  <script>
129
+ import { PictureOutline as ElIconPictureOutline } from '@element-plus/icons'
79
130
  export default {
80
- name: "BillUpload",
131
+ components: {
132
+ ElIconPictureOutline,
133
+ },
134
+ name: 'BillUpload',
81
135
  props: {},
82
136
  data() {
83
137
  return {
@@ -89,61 +143,61 @@ export default {
89
143
  rows: [],
90
144
  fileList: [],
91
145
  }
92
- }
93
- ,
146
+ },
94
147
  methods: {
95
148
  show(billTyp, billId) {
96
- this.visible = true;
97
- this.billTyp = billTyp;
149
+ this.visible = true
150
+ this.billTyp = billTyp
98
151
 
99
- this.billId = billId;
152
+ this.billId = billId
100
153
 
101
- let hdQuery = new HdQuery();
102
- hdQuery.rows = 1000;
154
+ let hdQuery = new HdQuery()
155
+ hdQuery.rows = 1000
103
156
  // hdQuery.query.billTyp = billTyp;
104
- hdQuery.query.billId = billId;
105
- hdQuery.sort = "orderFlag"
106
- hdQuery.order = "asc"
157
+ hdQuery.query.billId = billId
158
+ hdQuery.sort = 'orderFlag'
159
+ hdQuery.order = 'asc'
107
160
  this.visible = true
108
- this.$http.post('/webresources/login/com/SysFileRecord/detail/find', hdQuery).then(response => {
109
- const data = response.data
110
- this.rows = response.data.rows
111
- // this.$set(this.hdform, "src", 'https://fuss10.elemecdn.com/8/27/f01c15bb73e1ef3793e64e6b7bbccjpeg.jpeg')
112
- this.hdform = this.rows[0] || { src: null }
113
- })
114
- }
115
- ,
161
+ this.$http
162
+ .post('/webresources/login/com/SysFileRecord/detail/find', hdQuery)
163
+ .then((response) => {
164
+ const data = response.data
165
+ this.rows = response.data.rows
166
+ // this.$set(this.hdform, "src", 'https://fuss10.elemecdn.com/8/27/f01c15bb73e1ef3793e64e6b7bbccjpeg.jpeg')
167
+ this.hdform = this.rows[0] || { src: null }
168
+ })
169
+ },
116
170
  doImageItemClick(row) {
117
171
  this.$refs['hdform'].validate((valid) => {
118
172
  if (!valid) {
119
- return false;
173
+ return false
120
174
  }
121
- this.hdform = row;
175
+ this.hdform = row
122
176
  })
123
- }
124
- ,
177
+ },
125
178
  handleRemove(file, fileList) {
126
- console.log(file, fileList);
127
- }
128
- ,
179
+ console.log(file, fileList)
180
+ },
129
181
  beforeUpload(file) {
130
182
  if (this.rows.length < 1) {
131
- return true;
183
+ return true
132
184
  }
133
- let flag = true;
185
+ let flag = true
134
186
  this.$refs['hdform'].validate((valid) => {
135
187
  if (!valid) {
136
- flag = false;
137
- return false;
188
+ flag = false
189
+ return false
138
190
  }
139
191
  })
140
192
  return flag
141
- }
142
- ,
193
+ },
143
194
  handleExceed(files, fileList) {
144
- console.warn(`当前限制选择 1 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`);
145
- }
146
- ,
195
+ console.warn(
196
+ `当前限制选择 1 个文件,本次选择了 ${files.length} 个文件,共选择了 ${
197
+ files.length + fileList.length
198
+ } 个文件`
199
+ )
200
+ },
147
201
  handleSuccess(response) {
148
202
  this.hdform = {
149
203
  billTyp: this.hdform.billTyp || this.billTyp,
@@ -151,68 +205,72 @@ export default {
151
205
  titleTxt: response.data.fileName || this.hdform.titleTxt,
152
206
  fileId: response.data.sefileId,
153
207
  src: `data:image/${response.data.fileType};base64,${response.data.fileData}`,
154
- cancelFlag: '0'
208
+ cancelFlag: '0',
155
209
  }
156
- this.rows.push(this.hdform);
157
- this.fileList = [];
158
- }
159
- ,
210
+ this.rows.push(this.hdform)
211
+ this.fileList = []
212
+ },
160
213
  beforeRemove(file, fileList) {
161
214
  // return this.$confirm(`确定移除 ${file.name}?`);
162
- }
163
- ,
215
+ },
164
216
  doSave() {
165
217
  this.$refs['hdform'].validate((valid) => {
166
218
  if (!valid) {
167
- return false;
219
+ return false
168
220
  }
169
221
  this.rows.forEach((v, i) => {
170
- v.orderFlag = i;
222
+ v.orderFlag = i
171
223
  })
172
224
 
173
- this.$http.post(`/webresources/login/com/SysFileRecord/saveAll?billId=${encodeURIComponent(this.billId)}`, this.rows).then(response => {
174
- this.rows = response.data.data
175
- this.$emit('save-ok', this.rows)
176
- this.visible = false
177
- })
225
+ this.$http
226
+ .post(
227
+ `/webresources/login/com/SysFileRecord/saveAll?billId=${encodeURIComponent(
228
+ this.billId
229
+ )}`,
230
+ this.rows
231
+ )
232
+ .then((response) => {
233
+ this.rows = response.data.data
234
+ this.$emit('save-ok', this.rows)
235
+ this.visible = false
236
+ })
178
237
  })
179
-
180
238
  },
181
239
  doRemove() {
182
240
  // this.rows = this.rows.filter(v => v.fileId != this.hdform.fileId)
183
- this.rows.remove(this.hdform);
241
+ this.rows.remove(this.hdform)
184
242
  this.hdform = this.rows[0] || { src: null }
185
243
  },
186
244
  doGoUp() {
187
- const index = this.rows.findIndex(v => v.fileId == this.hdform.fileId);
245
+ const index = this.rows.findIndex((v) => v.fileId == this.hdform.fileId)
188
246
  console.log(index)
189
247
  if (index > 0) {
190
- this.swapArray(this.rows, index, index - 1);
248
+ this.swapArray(this.rows, index, index - 1)
191
249
  } else {
192
250
  this.$message({
193
251
  type: 'info',
194
- message: this.$t('已经处于置顶,无法上移')
252
+ message: this.$t('已经处于置顶,无法上移'),
195
253
  })
196
254
  }
197
255
  },
198
256
  doGoDown() {
199
- const index = this.rows.findIndex(v => v.fileId == this.hdform.fileId);
257
+ const index = this.rows.findIndex((v) => v.fileId == this.hdform.fileId)
200
258
  console.log(index)
201
259
  if (index < this.rows.length - 1) {
202
- this.swapArray(this.rows, index + 1, index);
260
+ this.swapArray(this.rows, index + 1, index)
203
261
  } else {
204
262
  this.$message({
205
263
  type: 'info',
206
- message: this.$t('已经处于置底,无法下移')
264
+ message: this.$t('已经处于置底,无法下移'),
207
265
  })
208
266
  }
209
267
  },
210
268
  swapArray(arr, index1, index2) {
211
- arr[index1] = arr.splice(index2, 1, arr[index1])[0];
269
+ arr[index1] = arr.splice(index2, 1, arr[index1])[0]
212
270
  console.log(arr)
213
- return arr;
214
- }
215
- }
271
+ return arr
272
+ },
273
+ },
216
274
  }
217
275
  </script>
218
276
 
@@ -5,28 +5,23 @@ export default {
5
5
  name: 'BtnRight',
6
6
  data() {
7
7
  return {
8
- btnRight: true
8
+ btnRight: true,
9
9
  }
10
10
  },
11
- created() {
12
- },
11
+ created() {},
13
12
  methods: {
14
- getName() {
15
-
16
- },
17
- getClass() {
18
-
19
- },
20
- getType(){
21
-
22
- },
13
+ getName() {},
14
+ getClass() {},
15
+ getType() {},
23
16
  checkRight() {
24
- if (!this.$store) { // 确认提示的没有store
17
+ if (!this.$store) {
18
+ // 确认提示的没有store
25
19
  return true
26
20
  }
27
21
  const allBtnRight = this.$store.state.user.hidBtns
28
22
  const permissions = this.findNameCombine()
29
- if (!permissions) { // 不需要控制权限的
23
+ if (!permissions) {
24
+ // 不需要控制权限的
30
25
  return true
31
26
  }
32
27
  const menuId = this.$route.name // 这里就是menuId
@@ -47,7 +42,12 @@ export default {
47
42
  if (!permissions) {
48
43
  return false
49
44
  }
50
- const btn = { name: this.getName(), permissions: permissions , buttonStyle: this.getClass(), buttonType: this.getType() }
45
+ const btn = {
46
+ name: this.getName(),
47
+ permissions: permissions,
48
+ buttonStyle: this.getClass(),
49
+ buttonType: this.getType(),
50
+ }
51
51
  if (!this.checkIsSame(btn)) {
52
52
  this.$route.meta.btnRole.push(btn)
53
53
  }
@@ -63,21 +63,24 @@ export default {
63
63
  return false
64
64
  },
65
65
  findNameCombine() {
66
- if (this.vid) { // 指定id的直接用id
66
+ if (this.vid) {
67
+ // 指定id的直接用id
67
68
  return this.vid
68
69
  }
69
70
  const result = ''
70
- const par = this.$vnode.context// 非常有用
71
+ const par = this.$vnode.context // 非常有用
71
72
  let parentName = par.$options.name // 使用name
72
73
  if (parentName == 'HdFormDialog') {
73
74
  parentName = this.findNameFromFile(par.$vnode.context.$options.name)
74
75
  }
75
- if (!parentName) { // 非页面按钮,没有_file不需要管理
76
+ if (!parentName) {
77
+ // 非页面按钮,没有_file不需要管理
76
78
  parentName = 'noname'
77
79
  }
78
80
  return parentName + '_' + this.getName()
79
81
  },
80
- findNameFromFile(fileName) { // 根据文件名获取 组件名
82
+ findNameFromFile(fileName) {
83
+ // 根据文件名获取 组件名
81
84
  if (!fileName) {
82
85
  return false
83
86
  }
@@ -85,14 +88,14 @@ export default {
85
88
  const one = arr[arr.length - 1].split('.')
86
89
  return one[0]
87
90
  },
88
- findRoleSetParent() { // roleset界面时,需要设置按钮,注册
91
+ findRoleSetParent() {
92
+ // roleset界面时,需要设置按钮,注册
89
93
  let parent = this.$parent.$parent
90
94
  while (parent && !parent.$options.name == 'btnRole') {
91
95
  parent = parent.$parent
92
96
  }
93
97
  return parent
94
- }
95
- }
98
+ },
99
+ },
96
100
  }
97
-
98
101
  </script>
@@ -1,30 +1,42 @@
1
1
  <template>
2
- <ElTooltip effect="light" :content="errMsg" placement="bottom" v-if="errMsg" :open-delay="1"
3
- transition="" ref="errhint">
4
- <i class="el-icon-warning"
5
- style="color: #ff5c5c;
6
- right: 10px;
7
- top: 8px;
8
- position: absolute;
9
- z-index: 999;" tabindex="-1"></i>
2
+ <ElTooltip
3
+ effect="light"
4
+ :content="errMsg"
5
+ placement="bottom"
6
+ v-if="errMsg"
7
+ :open-delay="1"
8
+ transition=""
9
+ ref="errhint"
10
+ >
11
+ <el-icon
12
+ style="
13
+ color: #ff5c5c;
14
+ right: 10px;
15
+ top: 8px;
16
+ position: absolute;
17
+ z-index: 999;
18
+ "
19
+ ><el-icon-warning
20
+ /></el-icon>
10
21
  </ElTooltip>
11
22
  </template>
23
+
12
24
  <script>
13
- export default {
14
- name: 'ErrHint',
15
- props: [
16
- 'errMsg',
17
- 'value' // 修改为内容变更即触发
18
- ],
19
- mounted() {
25
+ import { Warning as ElIconWarning } from '@element-plus/icons'
26
+ export default {
27
+ components: {
28
+ ElIconWarning,
29
+ },
30
+ name: 'ErrHint',
31
+ props: [
32
+ 'errMsg',
33
+ 'value', // 修改为内容变更即触发
34
+ ],
35
+ mounted() {},
36
+ watch: {
37
+ value: function (newVal, oldVal) {
38
+ this.$emit('checkErr', newVal)
20
39
  },
21
- watch: {
22
-
23
- value: function (newVal, oldVal) {
24
- this.$emit('checkErr', newVal)
25
- }
26
-
27
- }
28
- }
40
+ },
41
+ }
29
42
  </script>
30
-