hd-idevvue3 3.0.7 → 3.0.9
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/{static/js/index-DbUA6jg0.js → index.js} +1 -1
- package/package.json +7 -2
- package/.env.development +0 -5
- package/.env.production +0 -5
- package/.eslintrc.js +0 -151
- package/dist/static/js/index-Dl4O91nB.js +0 -73768
- package/index.html +0 -18
- package/pnpm-lock.yaml +0 -3541
- package/src/App.vue +0 -11
- package/src/assets/sound/notify.wav +0 -0
- package/src/demo/demo.vue +0 -42
- package/src/demo/dropdemo.vue +0 -42
- package/src/demo/extsets.vue +0 -208
- package/src/demo/formedit.vue +0 -157
- package/src/demo/hightquery.vue +0 -366
- package/src/demo/inlineedit.vue +0 -182
- package/src/demo/selfdrop.vue +0 -58
- package/src/demo//350/241/214/345/206/205/347/272/247/350/201/224.txt +0 -2
- package/src/directive/el-dragDialog/drag.js +0 -124
- package/src/directive/el-dragDialog/index.js +0 -13
- package/src/errorLog.js +0 -16
- package/src/hdcom/BigGrid.js +0 -179
- package/src/hdcom/BillShow.vue +0 -111
- package/src/hdcom/BillUpload.vue +0 -311
- package/src/hdcom/BtnRight.vue +0 -101
- package/src/hdcom/ErrHint.vue +0 -42
- package/src/hdcom/ExtendColumn.vue +0 -115
- package/src/hdcom/ExtendCommon.js +0 -40
- package/src/hdcom/ExtendForm.vue +0 -141
- package/src/hdcom/FacePicUpload.vue +0 -80
- package/src/hdcom/FaceRecTest.vue +0 -114
- package/src/hdcom/GridChart.vue +0 -207
- package/src/hdcom/GridExField.vue +0 -375
- package/src/hdcom/GridShow.vue +0 -288
- package/src/hdcom/HdAside.vue +0 -225
- package/src/hdcom/HdBtn.vue +0 -125
- package/src/hdcom/HdButton.vue +0 -161
- package/src/hdcom/HdComFaceRec.vue +0 -106
- package/src/hdcom/HdComGrid.vue +0 -876
- package/src/hdcom/HdComQuery.vue +0 -362
- package/src/hdcom/HdComQueryDetail.vue +0 -205
- package/src/hdcom/HdComSortDetail.vue +0 -161
- package/src/hdcom/HdDatePicker.vue +0 -94
- package/src/hdcom/HdDialog.vue +0 -81
- package/src/hdcom/HdDrop.vue +0 -188
- package/src/hdcom/HdFileUpload.vue +0 -167
- package/src/hdcom/HdFilterBox.vue +0 -90
- package/src/hdcom/HdFooter.vue +0 -182
- package/src/hdcom/HdForm.vue +0 -351
- package/src/hdcom/HdFormBtn.vue +0 -131
- package/src/hdcom/HdFormItem.vue +0 -39
- package/src/hdcom/HdGctosGrid +0 -0
- package/src/hdcom/HdGrid.vue +0 -1022
- package/src/hdcom/HdGridEditBtn.vue +0 -58
- package/src/hdcom/HdGridExt.js +0 -250
- package/src/hdcom/HdGridSel.vue +0 -257
- package/src/hdcom/HdHeader.vue +0 -180
- package/src/hdcom/HdHotKey.vue +0 -84
- package/src/hdcom/HdInputHint.vue +0 -53
- package/src/hdcom/HdMain.vue +0 -41
- package/src/hdcom/HdMessage.vue +0 -201
- package/src/hdcom/HdNum.vue +0 -79
- package/src/hdcom/HdPopSel.vue +0 -80
- package/src/hdcom/HdRightMenu.vue +0 -63
- package/src/hdcom/HdSel/SelGridFieldcod.vue +0 -54
- package/src/hdcom/HdTableColumn.vue +0 -381
- package/src/hdcom/HdTempSave.vue +0 -162
- package/src/hdcom/HdTree.vue +0 -103
- package/src/hdcom/HdTreeTable/eval.js +0 -39
- package/src/hdcom/HdTreeTable/index.vue +0 -229
- package/src/hdcom/ImportExcel.vue +0 -178
- package/src/hdcom/index.js +0 -75
- package/src/idev.common.js +0 -79
- package/src/index.js +0 -11
- package/src/utils/HdQuery.js +0 -65
- package/src/utils/comutils.js +0 -120
- package/src/utils/gogocodeTransfer.js +0 -59
- package/src/utils/utils.js +0 -116
- package/src/vendor/Blob.js +0 -187
- package/src/vendor/Export2Excel.js +0 -231
- package/src/vendor/Export2Zip.js +0 -25
- package/src/views/layout/AppMain.vue +0 -34
- package/src/views/layout/HdLayout.vue +0 -90
- package/src/views/layout/header/ElasticSearch.vue +0 -262
- package/src/views/layout/header/HZRecorder.js +0 -259
- package/src/views/layout/header/HeaderSearch.vue +0 -218
- package/src/views/layout/header/Levelbar.vue +0 -55
- package/src/views/layout/header/MainHeader.vue +0 -315
- package/src/views/layout/header/Navbar.vue +0 -101
- package/src/views/layout/header/ScrollPane.vue +0 -103
- package/src/views/layout/header/TagsView.vue +0 -215
- package/src/views/layout/header/VocRec.vue +0 -105
- package/src/views/layout/header/changepswform.vue +0 -130
- package/src/views/layout/index.js +0 -10
- package/src/views/layout/menu/Hamburger.vue +0 -63
- package/src/views/layout/menu/HdMenu.vue +0 -204
- package/src/views/layout/menu/css/menu.css +0 -288
- package/src/views/layout/menu/index.vue +0 -27
- package/src/views/privilege/commsg/commsg.vue +0 -152
- package/src/views/privilege/commsg/commsgOrgn.vue +0 -51
- package/src/views/privilege/commsg/commsgRole.vue +0 -220
- package/src/views/privilege/commsg/commsgform.vue +0 -184
- package/src/views/privilege/commsg/commsgiframe.vue +0 -40
- package/src/views/privilege/commsg/commsgto.vue +0 -199
- package/src/views/privilege/commsg/commsgtoform.vue +0 -114
- package/src/views/privilege/commsg/commsgtrans.vue +0 -227
- package/src/views/privilege/exfield/comexcolumn.vue +0 -161
- package/src/views/privilege/exfield/comexcolumnform.vue +0 -128
- package/src/views/privilege/exfield/comexfield.vue +0 -29
- package/src/views/privilege/exfield/comexfieldform.vue +0 -112
- package/src/views/privilege/exfield/comexfieldsub.vue +0 -163
- package/src/views/privilege/index.js +0 -41
- package/src/views/privilege/menu/comMenu.vue +0 -49
- package/src/views/privilege/menu/menu.vue +0 -250
- package/src/views/privilege/menu/menuinfo.vue +0 -63
- package/src/views/privilege/menu/rolelist.vue +0 -92
- package/src/views/privilege/menu/userlist.vue +0 -92
- package/src/views/privilege/mobile/authmobileupdate.vue +0 -145
- package/src/views/privilege/mobile/authmobileupdateform.vue +0 -120
- package/src/views/privilege/orgDept/authOrgn.vue +0 -188
- package/src/views/privilege/orgDept/authorgnform.vue +0 -157
- package/src/views/privilege/orgDept/orgDept.vue +0 -38
- package/src/views/privilege/orgDept/orgTree.vue +0 -99
- package/src/views/privilege/orgDept/orgnselect.vue +0 -155
- package/src/views/privilege/personDept/authuser.vue +0 -229
- package/src/views/privilege/personDept/authuserform.vue +0 -206
- package/src/views/privilege/personDept/facerec.vue +0 -162
- package/src/views/privilege/personDept/orgncascader.vue +0 -144
- package/src/views/privilege/personDept/personDept.vue +0 -33
- package/src/views/privilege/quartz/comquartzjob.vue +0 -150
- package/src/views/privilege/quartz/comquartzjobform.vue +0 -115
- package/src/views/privilege/quartz/comquartzlog.vue +0 -143
- package/src/views/privilege/role/btnRole.vue +0 -173
- package/src/views/privilege/role/menuRole.vue +0 -84
- package/src/views/privilege/role/orgnRole.vue +0 -78
- package/src/views/privilege/role/role.vue +0 -84
- package/src/views/privilege/role/rolelist.vue +0 -136
- package/src/views/privilege/role/roleselect.vue +0 -74
- package/src/views/privilege/search/comsearch.vue +0 -196
- package/src/views/privilege/search/menu.vue +0 -68
- package/src/views/privilege/syscode/syscode.vue +0 -191
- package/src/views/privilege/syscode/sysfield.vue +0 -119
- package/src/views/privilege/syscode/sysfieldframe.vue +0 -30
- package/src/views/privilege/syslog/menulog.vue +0 -68
- package/src/views/privilege/syslog/syslog.vue +0 -182
- package/src/views/privilege/syslog/syslogconfig.vue +0 -128
- package/src/views/privilege/syslog/syslogform.vue +0 -85
- package/src/views/privilege/syslog/syslogframe.vue +0 -26
- package/src/views/privilege/userRole/userRole.vue +0 -220
- package/vite.config.js +0 -124
- /package/dist/{static/css/index-DRHIlcVU.css → index.css} +0 -0
package/src/App.vue
DELETED
|
Binary file
|
package/src/demo/demo.vue
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
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">{{ $t('使用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/dropdemo.vue
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-container>
|
|
3
|
-
<el-main>
|
|
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>
|
|
17
|
-
<div class="filter-container" slot="query">
|
|
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
|
-
>
|
|
26
|
-
</el-input>
|
|
27
|
-
<el-button class="filter-item" @click="doAdd" type="primary"
|
|
28
|
-
>新增
|
|
29
|
-
</el-button>
|
|
30
|
-
<el-button
|
|
31
|
-
class="filter-item"
|
|
32
|
-
@click="$refs.grid.doCopy()"
|
|
33
|
-
type="primary"
|
|
34
|
-
>复制
|
|
35
|
-
</el-button>
|
|
36
|
-
<el-button
|
|
37
|
-
class="filter-item"
|
|
38
|
-
@click="$refs.grid.doRemoveAll()"
|
|
39
|
-
type="danger"
|
|
40
|
-
>删除
|
|
41
|
-
</el-button>
|
|
42
|
-
<el-button
|
|
43
|
-
class="filter-item"
|
|
44
|
-
@click="$refs.grid.doSaveAll()"
|
|
45
|
-
type="danger"
|
|
46
|
-
>保存
|
|
47
|
-
</el-button>
|
|
48
|
-
</div>
|
|
49
|
-
<el-table-column width="60px" align="center" label="操作" fixed="right">
|
|
50
|
-
<template slot-scope="scope">
|
|
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
|
-
>编辑
|
|
57
|
-
</hd-btn>
|
|
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" />
|
|
64
|
-
</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
|
-
>保存
|
|
71
|
-
</hd-btn>
|
|
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
|
-
>
|
|
78
|
-
删除
|
|
79
|
-
</hd-btn>
|
|
80
|
-
</template>
|
|
81
|
-
</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
|
-
>
|
|
90
|
-
</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
|
-
>
|
|
99
|
-
</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
|
-
>
|
|
108
|
-
</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
|
-
>
|
|
117
|
-
</el-table-column>
|
|
118
|
-
<el-table-column align="center" label="系统" prop="sysMark" sortable>
|
|
119
|
-
<template slot-scope="scope">
|
|
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>
|
|
127
|
-
</template>
|
|
128
|
-
</el-table-column>
|
|
129
|
-
<el-table-column
|
|
130
|
-
align="center"
|
|
131
|
-
label="废弃"
|
|
132
|
-
prop="abandonedMark"
|
|
133
|
-
sortable
|
|
134
|
-
>
|
|
135
|
-
<template slot-scope="scope">
|
|
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>
|
|
143
|
-
</template>
|
|
144
|
-
</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
|
-
>
|
|
153
|
-
</el-table-column>
|
|
154
|
-
</hd-com-grid>
|
|
155
|
-
</el-main>
|
|
156
|
-
</el-container>
|
|
157
|
-
</template>
|
|
158
|
-
|
|
159
|
-
<script>
|
|
160
|
-
import { Search as ElIconSearch } from '@element-plus/icons-vue'
|
|
161
|
-
export default {
|
|
162
|
-
data() {
|
|
163
|
-
return {
|
|
164
|
-
hdQuery: new HdQuery(this),
|
|
165
|
-
showTs: 'tssss',
|
|
166
|
-
ElIconSearch,
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
mounted() {
|
|
170
|
-
this.$refs.grid.$on('extSets', (command) => {
|
|
171
|
-
console.info(command)
|
|
172
|
-
this.showTs = 'change'
|
|
173
|
-
})
|
|
174
|
-
},
|
|
175
|
-
props: {},
|
|
176
|
-
methods: {
|
|
177
|
-
querycode(row) {
|
|
178
|
-
this.hdQuery.query.fieldCod = row.fieldCod
|
|
179
|
-
this.$refs.grid.doQuery()
|
|
180
|
-
},
|
|
181
|
-
doAdd() {
|
|
182
|
-
if (!this.hdQuery.query.fieldCod) {
|
|
183
|
-
this.$message({
|
|
184
|
-
type: 'error',
|
|
185
|
-
message: '未选择数据',
|
|
186
|
-
})
|
|
187
|
-
return false
|
|
188
|
-
}
|
|
189
|
-
this.$refs.grid.doEdit('')
|
|
190
|
-
},
|
|
191
|
-
},
|
|
192
|
-
computed: {
|
|
193
|
-
// 给外层v-model赋值
|
|
194
|
-
validate() {
|
|
195
|
-
return {
|
|
196
|
-
name: [
|
|
197
|
-
{ message: '名称必填', required: true },
|
|
198
|
-
{ max: 50, message: '名称长度不能超过50个字符' },
|
|
199
|
-
],
|
|
200
|
-
code: [
|
|
201
|
-
{ required: true, message: '代码必填' },
|
|
202
|
-
{ max: 36, message: '代码长度不能超过36个字符' },
|
|
203
|
-
],
|
|
204
|
-
}
|
|
205
|
-
},
|
|
206
|
-
},
|
|
207
|
-
}
|
|
208
|
-
</script>
|
package/src/demo/formedit.vue
DELETED
|
@@ -1,157 +0,0 @@
|
|
|
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>
|