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.
- package/dist/assets/index.9c127719.css +1 -0
- package/dist/hd-idevvue3.mjs +3521 -3305
- package/dist/hd-idevvue3.umd.js +29 -29
- package/npminstall-debug.log +2 -10
- package/package.json +4 -2
- package/pnpm-lock.yaml +37 -4
- package/src/App.vue +11 -15
- package/src/assets/sound/notify.wav +0 -0
- package/src/demo/demo.vue +9 -10
- package/src/demo/dropdemo.vue +42 -43
- package/src/demo/extsets.vue +140 -39
- package/src/demo/formedit.vue +157 -145
- package/src/demo/hightquery.vue +263 -66
- package/src/demo/inlineedit.vue +129 -35
- package/src/demo/selfdrop.vue +32 -15
- package/src/directive/el-dragDialog/drag.js +13 -13
- package/src/directive/el-dragDialog/index.js +13 -13
- package/src/errorLog.js +3 -3
- package/src/hdcom/BigGrid.js +54 -48
- package/src/hdcom/BillShow.vue +84 -63
- package/src/hdcom/BillUpload.vue +144 -86
- package/src/hdcom/BtnRight.vue +26 -23
- package/src/hdcom/ErrHint.vue +36 -24
- package/src/hdcom/ExtendColumn.vue +97 -90
- package/src/hdcom/ExtendCommon.js +24 -13
- package/src/hdcom/ExtendForm.vue +107 -80
- package/src/hdcom/FacePicUpload.vue +59 -50
- package/src/hdcom/FaceRecTest.vue +87 -77
- package/src/hdcom/GridChart.vue +175 -162
- package/src/hdcom/GridExField.vue +328 -234
- package/src/hdcom/GridShow.vue +89 -39
- package/src/hdcom/HdAside.vue +192 -145
- package/src/hdcom/HdBtn.vue +44 -32
- package/src/hdcom/HdButton.vue +141 -117
- package/src/hdcom/HdComFaceRec.vue +80 -32
- package/src/hdcom/HdComGrid.vue +329 -229
- package/src/hdcom/HdComQuery.vue +179 -90
- package/src/hdcom/HdComQueryDetail.vue +159 -115
- package/src/hdcom/HdComSortDetail.vue +136 -130
- package/src/hdcom/HdDatePicker.vue +32 -16
- package/src/hdcom/HdDialog.vue +62 -44
- package/src/hdcom/HdDrop.vue +163 -138
- package/src/hdcom/HdFileUpload.vue +138 -119
- package/src/hdcom/HdFilterBox.vue +62 -62
- package/src/hdcom/HdFooter.vue +152 -119
- package/src/hdcom/HdForm.vue +276 -203
- package/src/hdcom/HdFormBtn.vue +81 -39
- package/src/hdcom/HdFormItem.vue +14 -10
- package/src/hdcom/HdGrid.vue +353 -156
- package/src/hdcom/HdGridEditBtn.vue +34 -20
- package/src/hdcom/HdGridExt.js +78 -47
- package/src/hdcom/HdGridSel.vue +227 -193
- package/src/hdcom/HdHeader.vue +149 -117
- package/src/hdcom/HdHotKey.vue +70 -67
- package/src/hdcom/HdInputHint.vue +40 -36
- package/src/hdcom/HdMain.vue +25 -27
- package/src/hdcom/HdMessage.vue +180 -171
- package/src/hdcom/HdNum.vue +67 -57
- package/src/hdcom/HdPopSel.vue +46 -24
- package/src/hdcom/HdRightMenu.vue +63 -61
- package/src/hdcom/HdSel/SelGridFieldcod.vue +46 -28
- package/src/hdcom/HdTableColumn.vue +156 -109
- package/src/hdcom/HdTempSave.vue +138 -116
- package/src/hdcom/HdTree.vue +89 -72
- package/src/hdcom/HdTreeTable/eval.js +8 -3
- package/src/hdcom/HdTreeTable/index.vue +229 -174
- package/src/hdcom/ImportExcel.vue +69 -34
- package/src/hdcom/index.js +39 -44
- package/src/idev.common.js +54 -47
- package/src/index.js +3 -6
- package/src/utils/HdQuery.js +25 -14
- package/src/utils/comutils.js +50 -28
- package/src/utils/gogocodeTransfer.js +59 -0
- package/src/utils/utils.js +30 -19
- package/src/vendor/Blob.js +187 -179
- package/src/vendor/Export2Excel.js +231 -220
- package/src/vendor/Export2Zip.js +25 -22
- package/src/views/layout/AppMain.vue +34 -32
- package/src/views/layout/HdLayout.vue +64 -52
- package/src/views/layout/header/ElasticSearch.vue +196 -159
- package/src/views/layout/header/HZRecorder.js +163 -135
- package/src/views/layout/header/HeaderSearch.vue +165 -145
- package/src/views/layout/header/Levelbar.vue +55 -49
- package/src/views/layout/header/MainHeader.vue +233 -189
- package/src/views/layout/header/Navbar.vue +74 -78
- package/src/views/layout/header/ScrollPane.vue +103 -81
- package/src/views/layout/header/TagsView.vue +169 -164
- package/src/views/layout/header/VocRec.vue +86 -78
- package/src/views/layout/header/changepswform.vue +98 -64
- package/src/views/layout/index.js +5 -7
- package/src/views/layout/menu/Hamburger.vue +63 -45
- package/src/views/layout/menu/HdMenu.vue +155 -118
- package/src/views/layout/menu/index.vue +21 -19
- package/src/views/privilege/commsg/commsg.vue +115 -41
- package/src/views/privilege/commsg/commsgOrgn.vue +40 -31
- package/src/views/privilege/commsg/commsgRole.vue +180 -109
- package/src/views/privilege/commsg/commsgform.vue +125 -101
- package/src/views/privilege/commsg/commsgiframe.vue +30 -23
- package/src/views/privilege/commsg/commsgto.vue +163 -84
- package/src/views/privilege/commsg/commsgtoform.vue +64 -58
- package/src/views/privilege/commsg/commsgtrans.vue +187 -115
- package/src/views/privilege/exfield/comexcolumn.vue +133 -43
- package/src/views/privilege/exfield/comexcolumnform.vue +85 -58
- package/src/views/privilege/exfield/comexfield.vue +15 -17
- package/src/views/privilege/exfield/comexfieldform.vue +71 -53
- package/src/views/privilege/exfield/comexfieldsub.vue +137 -46
- package/src/views/privilege/index.js +19 -20
- package/src/views/privilege/menu/comMenu.vue +49 -41
- package/src/views/privilege/menu/menu.vue +166 -49
- package/src/views/privilege/menu/menuinfo.vue +41 -34
- package/src/views/privilege/menu/rolelist.vue +78 -33
- package/src/views/privilege/menu/userlist.vue +76 -33
- package/src/views/privilege/mobile/authmobileupdate.vue +119 -43
- package/src/views/privilege/mobile/authmobileupdateform.vue +76 -46
- package/src/views/privilege/orgDept/authOrgn.vue +157 -65
- package/src/views/privilege/orgDept/authorgnform.vue +50 -38
- package/src/views/privilege/orgDept/orgDept.vue +38 -37
- package/src/views/privilege/orgDept/orgTree.vue +99 -88
- package/src/views/privilege/orgDept/orgnselect.vue +132 -111
- package/src/views/privilege/personDept/authuser.vue +197 -91
- package/src/views/privilege/personDept/authuserform.vue +123 -71
- package/src/views/privilege/personDept/facerec.vue +128 -83
- package/src/views/privilege/personDept/orgncascader.vue +134 -115
- package/src/views/privilege/personDept/personDept.vue +9 -7
- package/src/views/privilege/quartz/comquartzjob.vue +123 -38
- package/src/views/privilege/quartz/comquartzjobform.vue +67 -51
- package/src/views/privilege/quartz/comquartzlog.vue +116 -32
- package/src/views/privilege/role/btnRole.vue +123 -67
- package/src/views/privilege/role/menuRole.vue +65 -45
- package/src/views/privilege/role/orgnRole.vue +63 -41
- package/src/views/privilege/role/role.vue +26 -9
- package/src/views/privilege/role/rolelist.vue +114 -45
- package/src/views/privilege/role/roleselect.vue +34 -17
- package/src/views/privilege/search/comsearch.vue +164 -73
- package/src/views/privilege/search/menu.vue +38 -22
- package/src/views/privilege/syscode/syscode.vue +157 -69
- package/src/views/privilege/syscode/sysfield.vue +96 -43
- package/src/views/privilege/syscode/sysfieldframe.vue +30 -30
- package/src/views/privilege/syslog/menulog.vue +38 -22
- package/src/views/privilege/syslog/syslog.vue +145 -78
- package/src/views/privilege/syslog/syslogconfig.vue +91 -24
- package/src/views/privilege/syslog/syslogform.vue +45 -43
- package/src/views/privilege/syslog/syslogframe.vue +26 -26
- package/src/views/privilege/userRole/userRole.vue +187 -89
- package/vite.config.js +7 -0
- package/dist/assets/index.774ef40e.css +0 -1
- package/src/views/privilege.zip +0 -0
package/npminstall-debug.log
CHANGED
|
@@ -1,21 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
root: 'D:\\A-Work\\AA-SVN\\HD_IDEV9\\trunk\\04_SRC\\HD_IDEV_VUE_FRAME3',
|
|
3
3
|
registry: 'https://registry.npmmirror.com',
|
|
4
|
-
pkgs: [
|
|
5
|
-
{
|
|
6
|
-
name: '@vue/cli-plugin-migration',
|
|
7
|
-
version: 'latest',
|
|
8
|
-
type: 'tag',
|
|
9
|
-
alias: undefined,
|
|
10
|
-
arg: [Result]
|
|
11
|
-
}
|
|
12
|
-
],
|
|
4
|
+
pkgs: [],
|
|
13
5
|
production: false,
|
|
14
6
|
cacheStrict: false,
|
|
15
7
|
cacheDir: 'C:\\Users\\qitia\\.npminstall_tarball',
|
|
16
8
|
env: {
|
|
17
9
|
npm_config_registry: 'https://registry.npmmirror.com',
|
|
18
|
-
npm_config_argv: '{"remain":[],"cooked":["--fix-bug-versions","--china","--userconfig=C:\\\\Users\\\\qitia\\\\.cnpmrc","--disturl=https://cdn.npmmirror.com/binaries/node","--registry=https://registry.npmmirror.com"
|
|
10
|
+
npm_config_argv: '{"remain":[],"cooked":["--fix-bug-versions","--china","--userconfig=C:\\\\Users\\\\qitia\\\\.cnpmrc","--disturl=https://cdn.npmmirror.com/binaries/node","--registry=https://registry.npmmirror.com"],"original":["--fix-bug-versions","--china","--userconfig=C:\\\\Users\\\\qitia\\\\.cnpmrc","--disturl=https://cdn.npmmirror.com/binaries/node","--registry=https://registry.npmmirror.com"]}',
|
|
19
11
|
npm_config_user_agent: 'npminstall/7.12.0 npm/? node/v16.18.0 win32 x64',
|
|
20
12
|
npm_config_cache: 'C:\\Users\\qitia\\.npminstall_tarball',
|
|
21
13
|
NODE: 'C:\\Program Files\\nodejs\\node.exe',
|
package/package.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hd-idevvue3",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "hd-idevvue3",
|
|
6
6
|
"author": "huadong",
|
|
7
|
-
"main": "dist/
|
|
7
|
+
"main": "dist/hd-idevvue3.mjs",
|
|
8
8
|
"dependencies": {
|
|
9
|
+
"@element-plus/icons": "^0.0.11",
|
|
10
|
+
"@rollup/plugin-commonjs": "^28.0.3",
|
|
9
11
|
"async-validator": "^4.2.5",
|
|
10
12
|
"autoprefixer": "^10.4.21",
|
|
11
13
|
"axios": "^1.8.4",
|
package/pnpm-lock.yaml
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
lockfileVersion: 5.3
|
|
2
2
|
|
|
3
3
|
specifiers:
|
|
4
|
+
'@element-plus/icons': ^0.0.11
|
|
5
|
+
'@rollup/plugin-commonjs': ^28.0.3
|
|
4
6
|
'@vitejs/plugin-vue': ^3.2.0
|
|
5
7
|
async-validator: ^4.2.5
|
|
6
8
|
autoprefixer: ^10.4.21
|
|
@@ -32,6 +34,8 @@ specifiers:
|
|
|
32
34
|
xlsx: ^0.18.5
|
|
33
35
|
|
|
34
36
|
dependencies:
|
|
37
|
+
'@element-plus/icons': 0.0.11
|
|
38
|
+
'@rollup/plugin-commonjs': 28.0.3
|
|
35
39
|
async-validator: 4.2.5
|
|
36
40
|
autoprefixer: 10.4.21_postcss@8.5.3
|
|
37
41
|
axios: 1.8.4
|
|
@@ -149,6 +153,11 @@ packages:
|
|
|
149
153
|
vue: 3.5.13
|
|
150
154
|
dev: false
|
|
151
155
|
|
|
156
|
+
/@element-plus/icons/0.0.11:
|
|
157
|
+
resolution: {integrity: sha512-iKQXSxXu131Ai+I9Ymtcof9WId7kaXvB1+WRfAfpQCW7UiAMYgdNDqb/u0hgTo2Yq3MwC4MWJnNuTBEpG8r7+A==}
|
|
158
|
+
deprecated: Please use @element-plus/icons-vue instead.
|
|
159
|
+
dev: false
|
|
160
|
+
|
|
152
161
|
/@esbuild/android-arm/0.15.18:
|
|
153
162
|
resolution: {integrity: sha512-5GT+kcs2WVGjVs7+boataCkO5Fg0y4kCjzkB5bAip7H4jfnOS3dA6KPiww9W1OEKTKeAcUVhdZGvgI65OXmUnw==}
|
|
154
163
|
engines: {node: '>=12'}
|
|
@@ -529,6 +538,24 @@ packages:
|
|
|
529
538
|
dev: true
|
|
530
539
|
optional: true
|
|
531
540
|
|
|
541
|
+
/@rollup/plugin-commonjs/28.0.3:
|
|
542
|
+
resolution: {integrity: sha512-pyltgilam1QPdn+Zd9gaCfOLcnjMEJ9gV+bTw6/r73INdvzf1ah9zLIJBm+kW7R6IUFIQ1YO+VqZtYxZNWFPEQ==}
|
|
543
|
+
engines: {node: '>=16.0.0 || 14 >= 14.17'}
|
|
544
|
+
peerDependencies:
|
|
545
|
+
rollup: ^2.68.0||^3.0.0||^4.0.0
|
|
546
|
+
peerDependenciesMeta:
|
|
547
|
+
rollup:
|
|
548
|
+
optional: true
|
|
549
|
+
dependencies:
|
|
550
|
+
'@rollup/pluginutils': 5.1.4
|
|
551
|
+
commondir: 1.0.1
|
|
552
|
+
estree-walker: 2.0.2
|
|
553
|
+
fdir: 6.4.3_picomatch@4.0.2
|
|
554
|
+
is-reference: 1.2.1
|
|
555
|
+
magic-string: 0.30.17
|
|
556
|
+
picomatch: 4.0.2
|
|
557
|
+
dev: false
|
|
558
|
+
|
|
532
559
|
/@rollup/pluginutils/5.1.4:
|
|
533
560
|
resolution: {integrity: sha512-USm05zrsFxYLPdWWq+K3STlWiT/3ELn3RcV5hJMghpeAIhxfsUIg6mt12CBJBInWMV4VneoV7SfGv8xIwo2qNQ==}
|
|
534
561
|
engines: {node: '>=14.0.0'}
|
|
@@ -541,7 +568,6 @@ packages:
|
|
|
541
568
|
'@types/estree': 1.0.6
|
|
542
569
|
estree-walker: 2.0.2
|
|
543
570
|
picomatch: 4.0.2
|
|
544
|
-
dev: true
|
|
545
571
|
|
|
546
572
|
/@sindresorhus/merge-streams/2.3.0:
|
|
547
573
|
resolution: {integrity: sha512-LtoMMhxAlorcGhmFYI+LhPgbPZCkgP6ra1YL604EeF6U98pLlQ3iWIGMdWSC+vWmPBWBNgmDBAhnAobLROJmwg==}
|
|
@@ -554,7 +580,6 @@ packages:
|
|
|
554
580
|
|
|
555
581
|
/@types/estree/1.0.6:
|
|
556
582
|
resolution: {integrity: sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==}
|
|
557
|
-
dev: true
|
|
558
583
|
|
|
559
584
|
/@types/json-schema/7.0.15:
|
|
560
585
|
resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==}
|
|
@@ -886,6 +911,10 @@ packages:
|
|
|
886
911
|
delayed-stream: 1.0.0
|
|
887
912
|
dev: false
|
|
888
913
|
|
|
914
|
+
/commondir/1.0.1:
|
|
915
|
+
resolution: {integrity: sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==}
|
|
916
|
+
dev: false
|
|
917
|
+
|
|
889
918
|
/concat-map/0.0.1:
|
|
890
919
|
resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
|
|
891
920
|
dev: true
|
|
@@ -1482,7 +1511,6 @@ packages:
|
|
|
1482
1511
|
optional: true
|
|
1483
1512
|
dependencies:
|
|
1484
1513
|
picomatch: 4.0.2
|
|
1485
|
-
dev: true
|
|
1486
1514
|
|
|
1487
1515
|
/file-entry-cache/8.0.0:
|
|
1488
1516
|
resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==}
|
|
@@ -1724,6 +1752,12 @@ packages:
|
|
|
1724
1752
|
engines: {node: '>=0.12.0'}
|
|
1725
1753
|
dev: true
|
|
1726
1754
|
|
|
1755
|
+
/is-reference/1.2.1:
|
|
1756
|
+
resolution: {integrity: sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==}
|
|
1757
|
+
dependencies:
|
|
1758
|
+
'@types/estree': 1.0.6
|
|
1759
|
+
dev: false
|
|
1760
|
+
|
|
1727
1761
|
/isexe/2.0.0:
|
|
1728
1762
|
resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
|
|
1729
1763
|
dev: true
|
|
@@ -2052,7 +2086,6 @@ packages:
|
|
|
2052
2086
|
/picomatch/4.0.2:
|
|
2053
2087
|
resolution: {integrity: sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==}
|
|
2054
2088
|
engines: {node: '>=12'}
|
|
2055
|
-
dev: true
|
|
2056
2089
|
|
|
2057
2090
|
/pify/2.3.0:
|
|
2058
2091
|
resolution: {integrity: sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==}
|
package/src/App.vue
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script>
|
|
8
|
-
export default{
|
|
9
|
-
name: 'APP'
|
|
10
|
-
}
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<style lang="scss">
|
|
14
|
-
|
|
15
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div id="app">
|
|
3
|
+
<router-view></router-view>
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script>
|
|
8
|
+
export default {
|
|
9
|
+
name: 'APP',
|
|
10
|
+
}
|
|
11
|
+
</script>
|
|
Binary file
|
package/src/demo/demo.vue
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<el-dialog title="下拉测试" :
|
|
3
|
-
|
|
2
|
+
<el-dialog title="下拉测试" :model-value="true" top="5vh" width="80%">
|
|
4
3
|
<hd-drop :field="myts" v-model="clientType" :url="url"></hd-drop>
|
|
5
4
|
|
|
6
5
|
<div slot="footer" class="dialog-footer">
|
|
7
|
-
<el-button @click="useUrl">{{$t('使用url')}}</el-button>
|
|
6
|
+
<el-button @click="useUrl">{{ $t('使用url') }}</el-button>
|
|
8
7
|
<el-button type="primary" @click="submit"> 动态改变fieldCode</el-button>
|
|
9
8
|
</div>
|
|
10
9
|
</el-dialog>
|
|
11
|
-
|
|
12
10
|
</template>
|
|
13
11
|
|
|
14
12
|
<script>
|
|
@@ -20,11 +18,12 @@ export default {
|
|
|
20
18
|
return {
|
|
21
19
|
myts: 'CLIENT_TYPE',
|
|
22
20
|
url: '',
|
|
23
|
-
clientType: '1'
|
|
21
|
+
clientType: '1',
|
|
24
22
|
}
|
|
25
23
|
},
|
|
26
24
|
methods: {
|
|
27
|
-
show(sclientId) {
|
|
25
|
+
show(sclientId) {
|
|
26
|
+
// 换为本表主键
|
|
28
27
|
// 弹窗重复使用时,清除校验项目
|
|
29
28
|
|
|
30
29
|
this.visible = true
|
|
@@ -35,9 +34,9 @@ export default {
|
|
|
35
34
|
this.myts = 'ENTERPRISE_NATURE'
|
|
36
35
|
},
|
|
37
36
|
useUrl() {
|
|
38
|
-
this.url =
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
this.url =
|
|
38
|
+
'/webresources/login/privilege/SysCode/findAll?fieldCod=ENTERPRISE_NATURE'
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
41
|
}
|
|
42
42
|
</script>
|
|
43
|
-
|
package/src/demo/dropdemo.vue
CHANGED
|
@@ -1,43 +1,42 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-dialog title="下拉测试" :
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
<el-button @click="
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
</script>
|
|
43
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<el-dialog title="下拉测试" :model-value="true" top="5vh" width="80%">
|
|
3
|
+
<hd-drop :field="myts" v-model="clientType" :url="url"></hd-drop>
|
|
4
|
+
|
|
5
|
+
<div slot="footer" class="dialog-footer">
|
|
6
|
+
<el-button @click="useUrl">使用url</el-button>
|
|
7
|
+
<el-button type="primary" @click="submit"> 动态改变fieldCode</el-button>
|
|
8
|
+
</div>
|
|
9
|
+
</el-dialog>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script>
|
|
13
|
+
// 下拉例子,动态修改field走syscode,或者更改url,后台应该用List<DropBean>对象
|
|
14
|
+
export default {
|
|
15
|
+
components: {},
|
|
16
|
+
name: 'tsDrop',
|
|
17
|
+
data() {
|
|
18
|
+
return {
|
|
19
|
+
myts: 'CLIENT_TYPE',
|
|
20
|
+
url: '',
|
|
21
|
+
clientType: '1',
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
methods: {
|
|
25
|
+
show(sclientId) {
|
|
26
|
+
// 换为本表主键
|
|
27
|
+
// 弹窗重复使用时,清除校验项目
|
|
28
|
+
|
|
29
|
+
this.visible = true
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
submit() {
|
|
33
|
+
// console.debug(this.hdform)
|
|
34
|
+
this.myts = 'ENTERPRISE_NATURE'
|
|
35
|
+
},
|
|
36
|
+
useUrl() {
|
|
37
|
+
this.url =
|
|
38
|
+
'/webresources/login/privilege/SysCode/findAll?fieldCod=ENTERPRISE_NATURE'
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
}
|
|
42
|
+
</script>
|
package/src/demo/extsets.vue
CHANGED
|
@@ -1,75 +1,169 @@
|
|
|
1
|
-
<!--列表右上角设置按钮可以单独扩展示例-->
|
|
2
1
|
<template>
|
|
3
2
|
<el-container>
|
|
4
3
|
<el-main>
|
|
5
|
-
<hd-com-grid
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
<hd-com-grid
|
|
5
|
+
ref="grid"
|
|
6
|
+
:hdQuery="hdQuery"
|
|
7
|
+
url="/webresources/login/privilege/SysCode/vue"
|
|
8
|
+
:validate="validate"
|
|
9
|
+
noCopy="codeId"
|
|
10
|
+
>
|
|
11
|
+
<el-dropdown-item command="myts" slot="extSets"
|
|
12
|
+
>扩展测试2</el-dropdown-item
|
|
13
|
+
>
|
|
14
|
+
<el-dropdown-item command="myts3" slot="extSets">{{
|
|
15
|
+
showTs
|
|
16
|
+
}}</el-dropdown-item>
|
|
9
17
|
<div class="filter-container" slot="query">
|
|
10
|
-
<el-input
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
18
|
+
<el-input
|
|
19
|
+
@keyup.enter.native="$refs.grid.doQuery()"
|
|
20
|
+
:suffix-icon="ElIconSearch"
|
|
21
|
+
style="width: 200px; float: right"
|
|
22
|
+
class="filter-item"
|
|
23
|
+
placeholder="名称"
|
|
24
|
+
v-model="hdQuery.query.anyQuery"
|
|
25
|
+
>
|
|
14
26
|
</el-input>
|
|
15
|
-
<el-button class="filter-item" @click="doAdd" type="primary"
|
|
27
|
+
<el-button class="filter-item" @click="doAdd" type="primary"
|
|
28
|
+
>新增
|
|
16
29
|
</el-button>
|
|
17
|
-
<el-button
|
|
30
|
+
<el-button
|
|
31
|
+
class="filter-item"
|
|
32
|
+
@click="$refs.grid.doCopy()"
|
|
33
|
+
type="primary"
|
|
34
|
+
>复制
|
|
18
35
|
</el-button>
|
|
19
|
-
<el-button
|
|
36
|
+
<el-button
|
|
37
|
+
class="filter-item"
|
|
38
|
+
@click="$refs.grid.doRemoveAll()"
|
|
39
|
+
type="danger"
|
|
40
|
+
>删除
|
|
20
41
|
</el-button>
|
|
21
|
-
<el-button
|
|
42
|
+
<el-button
|
|
43
|
+
class="filter-item"
|
|
44
|
+
@click="$refs.grid.doSaveAll()"
|
|
45
|
+
type="danger"
|
|
46
|
+
>保存
|
|
22
47
|
</el-button>
|
|
23
48
|
</div>
|
|
24
49
|
<el-table-column width="60px" align="center" label="操作" fixed="right">
|
|
25
50
|
<template slot-scope="scope">
|
|
26
|
-
<hd-btn
|
|
51
|
+
<hd-btn
|
|
52
|
+
icon="el-icon-edit"
|
|
53
|
+
hint="编辑"
|
|
54
|
+
@click.stop="$refs.grid.doEdit(scope.row)"
|
|
55
|
+
v-if="!scope.row.isEdit"
|
|
56
|
+
>编辑
|
|
27
57
|
</hd-btn>
|
|
28
|
-
<hd-btn
|
|
29
|
-
|
|
58
|
+
<hd-btn
|
|
59
|
+
hint="撤销"
|
|
60
|
+
@click.stop="$refs.grid.doCancel(scope.row, scope.$index)"
|
|
61
|
+
v-if="scope.row.isEdit"
|
|
62
|
+
>
|
|
63
|
+
<svg-icon icon-class="undo" />
|
|
30
64
|
</hd-btn>
|
|
31
|
-
<hd-btn
|
|
65
|
+
<hd-btn
|
|
66
|
+
icon="el-icon-check"
|
|
67
|
+
hint="保存"
|
|
68
|
+
@click.stop="$refs.grid.doSave(scope.row)"
|
|
69
|
+
v-if="scope.row.isEdit"
|
|
70
|
+
>保存
|
|
32
71
|
</hd-btn>
|
|
33
|
-
<hd-btn
|
|
34
|
-
|
|
72
|
+
<hd-btn
|
|
73
|
+
icon="el-icon-delete"
|
|
74
|
+
hint="删除"
|
|
75
|
+
@click.stop="$refs.grid.doRemove(scope.row)"
|
|
76
|
+
v-if="!scope.row.isEdit"
|
|
77
|
+
>
|
|
35
78
|
删除
|
|
36
79
|
</hd-btn>
|
|
37
80
|
</template>
|
|
38
81
|
</el-table-column>
|
|
39
|
-
<el-table-column
|
|
82
|
+
<el-table-column
|
|
83
|
+
width="80px"
|
|
84
|
+
align="left"
|
|
85
|
+
header-align="center"
|
|
86
|
+
label="代码"
|
|
87
|
+
prop="code"
|
|
88
|
+
sortable
|
|
89
|
+
>
|
|
40
90
|
</el-table-column>
|
|
41
|
-
<el-table-column
|
|
91
|
+
<el-table-column
|
|
92
|
+
width="100px"
|
|
93
|
+
align="left"
|
|
94
|
+
header-align="center"
|
|
95
|
+
label="名称"
|
|
96
|
+
prop="name"
|
|
97
|
+
sortable
|
|
98
|
+
>
|
|
42
99
|
</el-table-column>
|
|
43
|
-
<el-table-column
|
|
100
|
+
<el-table-column
|
|
101
|
+
width="100px"
|
|
102
|
+
align="left"
|
|
103
|
+
header-align="center"
|
|
104
|
+
label="英文名"
|
|
105
|
+
prop="enName"
|
|
106
|
+
sortable
|
|
107
|
+
>
|
|
44
108
|
</el-table-column>
|
|
45
|
-
<el-table-column
|
|
109
|
+
<el-table-column
|
|
110
|
+
width="80px"
|
|
111
|
+
align="left"
|
|
112
|
+
header-align="center"
|
|
113
|
+
label="排序号"
|
|
114
|
+
prop="sorter"
|
|
115
|
+
sortable
|
|
116
|
+
>
|
|
46
117
|
</el-table-column>
|
|
47
118
|
<el-table-column align="center" label="系统" prop="sysMark" sortable>
|
|
48
119
|
<template slot-scope="scope">
|
|
49
|
-
<el-switch
|
|
50
|
-
|
|
51
|
-
|
|
120
|
+
<el-switch
|
|
121
|
+
v-model="scope.row.sysMark"
|
|
122
|
+
v-if="scope.row.isEdit"
|
|
123
|
+
active-value="1"
|
|
124
|
+
inactive-value="0"
|
|
125
|
+
></el-switch>
|
|
126
|
+
<span v-else>{{ scope.row.sysMark == '1' ? '√' : '×' }}</span>
|
|
52
127
|
</template>
|
|
53
128
|
</el-table-column>
|
|
54
|
-
<el-table-column
|
|
129
|
+
<el-table-column
|
|
130
|
+
align="center"
|
|
131
|
+
label="废弃"
|
|
132
|
+
prop="abandonedMark"
|
|
133
|
+
sortable
|
|
134
|
+
>
|
|
55
135
|
<template slot-scope="scope">
|
|
56
|
-
<el-switch
|
|
57
|
-
|
|
58
|
-
|
|
136
|
+
<el-switch
|
|
137
|
+
v-model="scope.row.abandonedMark"
|
|
138
|
+
v-if="scope.row.isEdit"
|
|
139
|
+
active-value="1"
|
|
140
|
+
inactive-value="0"
|
|
141
|
+
></el-switch>
|
|
142
|
+
<span v-else>{{ scope.row.abandonedMark == '1' ? '√' : '×' }}</span>
|
|
59
143
|
</template>
|
|
60
144
|
</el-table-column>
|
|
61
|
-
<el-table-column
|
|
145
|
+
<el-table-column
|
|
146
|
+
width="150px"
|
|
147
|
+
align="left"
|
|
148
|
+
header-align="center"
|
|
149
|
+
label="备注/描述"
|
|
150
|
+
prop="description"
|
|
151
|
+
sortable
|
|
152
|
+
>
|
|
62
153
|
</el-table-column>
|
|
63
154
|
</hd-com-grid>
|
|
64
155
|
</el-main>
|
|
65
156
|
</el-container>
|
|
66
157
|
</template>
|
|
158
|
+
|
|
67
159
|
<script>
|
|
160
|
+
import { Search as ElIconSearch } from '@element-plus/icons'
|
|
68
161
|
export default {
|
|
69
162
|
data() {
|
|
70
163
|
return {
|
|
71
164
|
hdQuery: new HdQuery(this),
|
|
72
|
-
showTs: 'tssss'
|
|
165
|
+
showTs: 'tssss',
|
|
166
|
+
ElIconSearch,
|
|
73
167
|
}
|
|
74
168
|
},
|
|
75
169
|
mounted() {
|
|
@@ -88,20 +182,27 @@ export default {
|
|
|
88
182
|
if (!this.hdQuery.query.fieldCod) {
|
|
89
183
|
this.$message({
|
|
90
184
|
type: 'error',
|
|
91
|
-
message: '未选择数据'
|
|
185
|
+
message: '未选择数据',
|
|
92
186
|
})
|
|
93
187
|
return false
|
|
94
188
|
}
|
|
95
189
|
this.$refs.grid.doEdit('')
|
|
96
|
-
}
|
|
190
|
+
},
|
|
97
191
|
},
|
|
98
|
-
computed: {
|
|
192
|
+
computed: {
|
|
193
|
+
// 给外层v-model赋值
|
|
99
194
|
validate() {
|
|
100
195
|
return {
|
|
101
|
-
name: [
|
|
102
|
-
|
|
196
|
+
name: [
|
|
197
|
+
{ message: '名称必填', required: true },
|
|
198
|
+
{ max: 50, message: '名称长度不能超过50个字符' },
|
|
199
|
+
],
|
|
200
|
+
code: [
|
|
201
|
+
{ required: true, message: '代码必填' },
|
|
202
|
+
{ max: 36, message: '代码长度不能超过36个字符' },
|
|
203
|
+
],
|
|
103
204
|
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
205
|
+
},
|
|
206
|
+
},
|
|
106
207
|
}
|
|
107
208
|
</script>
|