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.
- 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 +3 -1
- 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/src/hdcom/HdFormBtn.vue
CHANGED
|
@@ -1,40 +1,75 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<span style="height: 100
|
|
3
|
-
<span style="width:110px; display:inline-block
|
|
4
|
-
{{pageMessage}}
|
|
2
|
+
<span style="height: 100%">
|
|
3
|
+
<span style="width: 110px; display: inline-block">
|
|
4
|
+
{{ pageMessage }}
|
|
5
5
|
</span>
|
|
6
6
|
<span>
|
|
7
7
|
<!--<el-button type="" icon="fa fa-fast-backward" @click="goStart()"></el-button>-->
|
|
8
|
-
<ExButton
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
<ExButton
|
|
9
|
+
type="default"
|
|
10
|
+
icon="fa fa-step-backward"
|
|
11
|
+
@click="pageBack"
|
|
12
|
+
></ExButton>
|
|
13
|
+
<ExButton
|
|
14
|
+
type="default"
|
|
15
|
+
icon="fa fa-caret-left"
|
|
16
|
+
@click="hdForm.goBack()"
|
|
17
|
+
></ExButton>
|
|
18
|
+
<ExButton
|
|
19
|
+
type="default"
|
|
20
|
+
icon="fa fa-caret-right"
|
|
21
|
+
@click="hdForm.goNext()"
|
|
22
|
+
></ExButton>
|
|
23
|
+
<ExButton
|
|
24
|
+
type="default"
|
|
25
|
+
icon="fa fa-step-forward"
|
|
26
|
+
@click="hdForm.pageNext()"
|
|
27
|
+
></ExButton>
|
|
12
28
|
<!--<el-button type="" icon="fa fa-fast-forward" @click="goEnd()"></el-button>-->
|
|
13
29
|
</span>
|
|
14
30
|
<span v-if="!hdForm.readForm">
|
|
15
|
-
<el-button
|
|
16
|
-
|
|
31
|
+
<el-button
|
|
32
|
+
type="primary"
|
|
33
|
+
@click="hdForm.doCopy()"
|
|
34
|
+
keyType="copy"
|
|
35
|
+
:hotKeyRange="$vnode.context.$options._componentTag"
|
|
36
|
+
>{{ $t('复制') }}
|
|
17
37
|
</el-button>
|
|
18
|
-
<el-button
|
|
19
|
-
|
|
38
|
+
<el-button
|
|
39
|
+
type="primary"
|
|
40
|
+
@click="hdForm.doAdd()"
|
|
41
|
+
keyType="add"
|
|
42
|
+
:hotKeyRange="$vnode.context.$options._componentTag"
|
|
43
|
+
v-if="!hdForm.readForm"
|
|
44
|
+
>{{ $t('增加') }}
|
|
20
45
|
</el-button>
|
|
21
|
-
<el-button
|
|
22
|
-
|
|
46
|
+
<el-button
|
|
47
|
+
type="danger"
|
|
48
|
+
@click="doDel()"
|
|
49
|
+
keyType="del"
|
|
50
|
+
:disabled="delLoading"
|
|
51
|
+
:hotKeyRange="$vnode.context.$options._componentTag"
|
|
52
|
+
>{{ $t('删除') }}
|
|
23
53
|
</el-button>
|
|
24
|
-
<el-button
|
|
25
|
-
|
|
54
|
+
<el-button
|
|
55
|
+
type="primary"
|
|
56
|
+
@click="doSave()"
|
|
57
|
+
keyType="save"
|
|
58
|
+
:disabled="saveLoading"
|
|
59
|
+
:hotKeyRange="$vnode.context.$options._componentTag"
|
|
60
|
+
>{{ $t('保存') }}
|
|
26
61
|
</el-button>
|
|
27
62
|
</span>
|
|
28
63
|
<!-- <el-button @click="visible = false">取 消</el-button>
|
|
29
|
-
|
|
64
|
+
<el-button type="primary" @click="submit" :loading="loading"> 确 定</el-button>-->
|
|
30
65
|
</span>
|
|
31
66
|
</template>
|
|
32
67
|
|
|
33
68
|
<script>
|
|
34
69
|
/**
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
70
|
+
* form按钮组,必须与HdForm联合使用,使用参照AuthOrgnForm.vue
|
|
71
|
+
* @module HdFormBtn
|
|
72
|
+
*/
|
|
38
73
|
export default {
|
|
39
74
|
name: 'HdFormBtn',
|
|
40
75
|
inheritAttrs: false,
|
|
@@ -45,14 +80,13 @@ export default {
|
|
|
45
80
|
hdResult: {},
|
|
46
81
|
index: 0, // 当前位置
|
|
47
82
|
hdForm: {}, // 外层form
|
|
48
|
-
gridThis: { hdQuery: {}, hdResult: {}}, // hdcomgrid对应的列表
|
|
83
|
+
gridThis: { hdQuery: {}, hdResult: {} }, // hdcomgrid对应的列表
|
|
49
84
|
saveLoading: false,
|
|
50
|
-
delLoading: false
|
|
85
|
+
delLoading: false,
|
|
51
86
|
}
|
|
52
87
|
},
|
|
53
88
|
props: {},
|
|
54
|
-
mounted() {
|
|
55
|
-
},
|
|
89
|
+
mounted() {},
|
|
56
90
|
methods: {
|
|
57
91
|
pageBack() {
|
|
58
92
|
// console.log(this.gridThis.hdQuery.page);
|
|
@@ -64,26 +98,34 @@ export default {
|
|
|
64
98
|
},
|
|
65
99
|
doSave() {
|
|
66
100
|
this.saveLoading = true
|
|
67
|
-
this.hdForm
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
101
|
+
this.hdForm
|
|
102
|
+
.doSave()
|
|
103
|
+
.then(() => {
|
|
104
|
+
this.saveLoading = false
|
|
105
|
+
})
|
|
106
|
+
.catch(() => {
|
|
107
|
+
this.saveLoading = false
|
|
108
|
+
})
|
|
72
109
|
},
|
|
73
110
|
doDel() {
|
|
74
111
|
this.delLoading = true
|
|
75
|
-
this.hdForm
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
112
|
+
this.hdForm
|
|
113
|
+
.doDel()
|
|
114
|
+
.then(() => {
|
|
115
|
+
this.delLoading = false
|
|
116
|
+
})
|
|
117
|
+
.catch(() => {
|
|
118
|
+
this.delLoading = false
|
|
119
|
+
})
|
|
120
|
+
},
|
|
81
121
|
},
|
|
82
|
-
computed:{
|
|
122
|
+
computed: {
|
|
83
123
|
pageMessage() {
|
|
84
|
-
return this.$t(`第{page}页,第{index}条`, {
|
|
85
|
-
|
|
86
|
-
|
|
124
|
+
return this.$t(`第{page}页,第{index}条`, {
|
|
125
|
+
page: this.gridThis.hdQuery.page,
|
|
126
|
+
index: this.hdForm.index + 1,
|
|
127
|
+
})
|
|
128
|
+
},
|
|
129
|
+
},
|
|
87
130
|
}
|
|
88
131
|
</script>
|
|
89
|
-
|
package/src/hdcom/HdFormItem.vue
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<ExFormItem
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
<ExFormItem
|
|
3
|
+
ref="elformitem"
|
|
4
|
+
v-bind="$attrs"
|
|
5
|
+
v-on="$listeners"
|
|
6
|
+
:label="$t($attrs.label)"
|
|
7
|
+
>
|
|
8
|
+
<!-- <slot name="label">-->
|
|
9
|
+
<!-- {{ $t($attrs.label) }}-->
|
|
10
|
+
<!-- </slot>-->
|
|
11
|
+
<ErrHint :err-msg="getVaildMessage()" />
|
|
12
|
+
<slot />
|
|
8
13
|
</ExFormItem>
|
|
9
14
|
</template>
|
|
10
|
-
<script>
|
|
11
15
|
|
|
16
|
+
<script>
|
|
12
17
|
/**
|
|
13
18
|
* 覆写ElFormItem,校验有下方文字改为图标+pop
|
|
14
19
|
* @module HdFormItem
|
|
@@ -28,8 +33,7 @@ export default {
|
|
|
28
33
|
return this.$refs.elformitem.validateMessage
|
|
29
34
|
}
|
|
30
35
|
return ''
|
|
31
|
-
}
|
|
32
|
-
}
|
|
36
|
+
},
|
|
37
|
+
},
|
|
33
38
|
}
|
|
34
39
|
</script>
|
|
35
|
-
|