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/demo/formedit.vue
CHANGED
|
@@ -1,145 +1,157 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-dialog title="编辑" :visible.sync="visible" width=
|
|
3
|
-
<!--:hdform.sync 对应的form对象 formRef对应的是el-form的 ref="hdform"-->
|
|
4
|
-
<hd-form
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<el-col :span="8" :xs="16">
|
|
17
|
-
<el-form-item label="
|
|
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
|
-
|
|
43
|
-
<orgnselect
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
</
|
|
87
|
-
|
|
88
|
-
<
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
this
|
|
123
|
-
|
|
124
|
-
parentId
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<el-dialog title="编辑" :visible.sync="visible" width="65%" top="10vh">
|
|
3
|
+
<!--:hdform.sync 对应的form对象 formRef对应的是el-form的 ref="hdform"-->
|
|
4
|
+
<hd-form
|
|
5
|
+
saveoneUrl="webresources/login/privilege/AuthOrgn/save"
|
|
6
|
+
removeUrl="webresources/login/privilege/AuthOrgn/entity/remove"
|
|
7
|
+
:findoneUrl="findoneUrl"
|
|
8
|
+
noCopy="orgnId"
|
|
9
|
+
@saveCall="saveCall"
|
|
10
|
+
@delCall="delCall"
|
|
11
|
+
label-width="100px"
|
|
12
|
+
:model.sync="hdform"
|
|
13
|
+
ref="hdform"
|
|
14
|
+
>
|
|
15
|
+
<el-row>
|
|
16
|
+
<el-col :span="8" :xs="16">
|
|
17
|
+
<el-form-item label="组织名称" prop="name" :rules="$r(1, 0, 200)">
|
|
18
|
+
<el-input type="text" v-model="hdform.name"></el-input>
|
|
19
|
+
</el-form-item>
|
|
20
|
+
</el-col>
|
|
21
|
+
<el-col :span="8" :xs="16">
|
|
22
|
+
<el-form-item label="组织编码" prop="orgnCod" :rules="$r(0, 0, 300)">
|
|
23
|
+
<el-input type="text" v-model="hdform.orgnCod"></el-input>
|
|
24
|
+
</el-form-item>
|
|
25
|
+
</el-col>
|
|
26
|
+
<el-col :span="8" :xs="16">
|
|
27
|
+
<el-form-item label="英文名" prop="enName" :rules="$r(0, 0, 200)">
|
|
28
|
+
<el-input type="text" v-model="hdform.enName"></el-input>
|
|
29
|
+
</el-form-item>
|
|
30
|
+
</el-col>
|
|
31
|
+
<el-col :span="8" :xs="16">
|
|
32
|
+
<el-form-item label="组织简称" prop="shortNam" :rules="$r(0, 0, 100)">
|
|
33
|
+
<el-input type="text" v-model="hdform.shortNam"></el-input>
|
|
34
|
+
</el-form-item>
|
|
35
|
+
</el-col>
|
|
36
|
+
<el-col :span="8" :xs="16">
|
|
37
|
+
<el-form-item label="组织类型" prop="orgnTyp" :rules="$r(1)">
|
|
38
|
+
<hd-drop field="ORGN_TYP" v-model="hdform.orgnTyp"></hd-drop>
|
|
39
|
+
</el-form-item>
|
|
40
|
+
</el-col>
|
|
41
|
+
<el-col :span="8" :xs="16">
|
|
42
|
+
<el-form-item label="上级部门" prop="parentId" :rules="$r(1)">
|
|
43
|
+
<orgnselect
|
|
44
|
+
style="width: 100%"
|
|
45
|
+
:txtVal.sync="hdform.parentName"
|
|
46
|
+
:idVal.sync="hdform.parentId"
|
|
47
|
+
></orgnselect>
|
|
48
|
+
</el-form-item>
|
|
49
|
+
</el-col>
|
|
50
|
+
<el-col :span="8" :xs="16">
|
|
51
|
+
<el-form-item label="描述" prop="description" :rules="$r(0, 0, 255)">
|
|
52
|
+
<el-input type="text" v-model="hdform.description"></el-input>
|
|
53
|
+
</el-form-item>
|
|
54
|
+
</el-col>
|
|
55
|
+
|
|
56
|
+
<el-col :span="8" :xs="16">
|
|
57
|
+
<el-form-item
|
|
58
|
+
label="排序"
|
|
59
|
+
prop="sorter"
|
|
60
|
+
:rules="$r(0, 0, 99999, 'number', 0)"
|
|
61
|
+
>
|
|
62
|
+
<hd-num v-model="hdform.sorter"></hd-num>
|
|
63
|
+
</el-form-item>
|
|
64
|
+
</el-col>
|
|
65
|
+
<el-col :span="8" :xs="16">
|
|
66
|
+
<el-form-item label="创建人" prop="recNam">
|
|
67
|
+
<el-input type="text" v-model="hdform.recNam" disabled></el-input>
|
|
68
|
+
</el-form-item>
|
|
69
|
+
</el-col>
|
|
70
|
+
<el-col :span="8" :xs="16">
|
|
71
|
+
<el-form-item label="创建时间" prop="recTim">
|
|
72
|
+
<el-input type="text" v-model="hdform.recTim" disabled></el-input>
|
|
73
|
+
</el-form-item>
|
|
74
|
+
</el-col>
|
|
75
|
+
<el-col :span="8" :xs="16">
|
|
76
|
+
<el-form-item label="更新人" prop="updNam">
|
|
77
|
+
<el-input type="text" v-model="hdform.updNam" disabled></el-input>
|
|
78
|
+
</el-form-item>
|
|
79
|
+
</el-col>
|
|
80
|
+
<el-col :span="8" :xs="16">
|
|
81
|
+
<el-form-item label="更新时间" prop="updTim">
|
|
82
|
+
<el-input type="text" v-model="hdform.updTim" disabled></el-input>
|
|
83
|
+
</el-form-item>
|
|
84
|
+
</el-col>
|
|
85
|
+
</el-row>
|
|
86
|
+
</hd-form>
|
|
87
|
+
<div slot="footer" class="dialog-footer">
|
|
88
|
+
<hd-form-btn ref="hdformbtn" style="float: left"></hd-form-btn>
|
|
89
|
+
<el-button @click="visible = false">取 消</el-button>
|
|
90
|
+
</div>
|
|
91
|
+
</el-dialog>
|
|
92
|
+
</template>
|
|
93
|
+
|
|
94
|
+
<script>
|
|
95
|
+
import orgnselect from './orgnselect'
|
|
96
|
+
import orgTree from '../orgDept/orgTree'
|
|
97
|
+
import HdFormBtn from '../../../hdcom/HdFormBtn.vue'
|
|
98
|
+
|
|
99
|
+
export default {
|
|
100
|
+
name: 'authorgnform',
|
|
101
|
+
components: {
|
|
102
|
+
HdFormBtn,
|
|
103
|
+
orgnselect,
|
|
104
|
+
orgTree,
|
|
105
|
+
},
|
|
106
|
+
data: function () {
|
|
107
|
+
return {
|
|
108
|
+
hdform: {},
|
|
109
|
+
parentId: '',
|
|
110
|
+
findoneUrl: '',
|
|
111
|
+
visible: false,
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
props: {
|
|
115
|
+
hdQuery: Object,
|
|
116
|
+
},
|
|
117
|
+
methods: {
|
|
118
|
+
show(row, parentId) {
|
|
119
|
+
// 换为本表主键
|
|
120
|
+
this.parentId = parentId
|
|
121
|
+
this.hdform.parentId = parentId
|
|
122
|
+
this.visible = true
|
|
123
|
+
this.findoneUrl =
|
|
124
|
+
'webresources/login/privilege/AuthOrgn/findone?parentId=' + parentId
|
|
125
|
+
this.$nextTick(() => {
|
|
126
|
+
this.$refs.hdform.show(row, this.$vnode.context.$refs.grid) // form
|
|
127
|
+
this.$refs.hdformbtn.show(
|
|
128
|
+
this.$vnode.context.$refs.grid,
|
|
129
|
+
this.$refs.hdform
|
|
130
|
+
) // 按钮
|
|
131
|
+
})
|
|
132
|
+
},
|
|
133
|
+
saveCall(row, isAdd) {
|
|
134
|
+
this.$emit('change', {
|
|
135
|
+
type: isAdd ? 'add' : 'edit',
|
|
136
|
+
parentId: row.parentId,
|
|
137
|
+
data: { id: row.orgnId, text: row.name },
|
|
138
|
+
})
|
|
139
|
+
},
|
|
140
|
+
delCall(row) {
|
|
141
|
+
if (!row.orgnId) {
|
|
142
|
+
// 新增就删除
|
|
143
|
+
return false
|
|
144
|
+
}
|
|
145
|
+
this.$emit('change', {
|
|
146
|
+
type: 'remove',
|
|
147
|
+
parentId: this.parentId,
|
|
148
|
+
data: { id: row.orgnId },
|
|
149
|
+
})
|
|
150
|
+
},
|
|
151
|
+
handleNodeClick(data) {
|
|
152
|
+
// this.$emit('org-node-click', data)
|
|
153
|
+
// this.currentNodeData = data
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
}
|
|
157
|
+
</script>
|