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
|
@@ -1,21 +1,53 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-container>
|
|
3
3
|
<el-main>
|
|
4
|
-
<hd-com-grid
|
|
5
|
-
|
|
4
|
+
<hd-com-grid
|
|
5
|
+
:exField="exField"
|
|
6
|
+
:hdQuery="hdQuery"
|
|
7
|
+
:row-class-name="tableRowClassName"
|
|
8
|
+
:stripe="false"
|
|
9
|
+
noCopy="codeId"
|
|
10
|
+
ref="grid"
|
|
11
|
+
url="/webresources/login/privilege/SysCode/vue"
|
|
12
|
+
visualScroll
|
|
13
|
+
>
|
|
6
14
|
<div class="filter-container" slot="query">
|
|
7
|
-
<el-input
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
15
|
+
<el-input
|
|
16
|
+
:placeholder="$t('名称、代码')"
|
|
17
|
+
@keyup.enter.native="$refs.grid.doQuery()"
|
|
18
|
+
class="filter-item"
|
|
19
|
+
style="width: 200px; float: right"
|
|
20
|
+
:suffix-icon="ElIconSearch"
|
|
21
|
+
v-model="hdQuery.query.anyQuery"
|
|
22
|
+
>
|
|
11
23
|
</el-input>
|
|
12
|
-
<el-button
|
|
24
|
+
<el-button
|
|
25
|
+
@click="doAdd"
|
|
26
|
+
class="filter-item"
|
|
27
|
+
keyType="add"
|
|
28
|
+
type="primary"
|
|
29
|
+
>{{ $t('新增') }}
|
|
13
30
|
</el-button>
|
|
14
|
-
<el-button
|
|
31
|
+
<el-button
|
|
32
|
+
@click="$refs.grid.doCopy()"
|
|
33
|
+
class="filter-item"
|
|
34
|
+
keyType="copy"
|
|
35
|
+
type="primary"
|
|
36
|
+
>{{ $t('复制') }}
|
|
15
37
|
</el-button>
|
|
16
|
-
<el-button
|
|
38
|
+
<el-button
|
|
39
|
+
@click="$refs.grid.doRemoveAll()"
|
|
40
|
+
class="filter-item"
|
|
41
|
+
keyType="del"
|
|
42
|
+
type="danger"
|
|
43
|
+
>{{ $t('删除') }}
|
|
17
44
|
</el-button>
|
|
18
|
-
<el-button
|
|
45
|
+
<el-button
|
|
46
|
+
@click="$refs.grid.doSaveAll()"
|
|
47
|
+
class="filter-item"
|
|
48
|
+
keyType="save"
|
|
49
|
+
type="danger"
|
|
50
|
+
>{{ $t('保存') }}
|
|
19
51
|
</el-button>
|
|
20
52
|
</div>
|
|
21
53
|
<el-table-column align="center" fixed="right" label="操作" width="60px">
|
|
@@ -23,81 +55,137 @@
|
|
|
23
55
|
<HdGridEditBtn :row="scope.row" gridRef="grid"></HdGridEditBtn>
|
|
24
56
|
</template>
|
|
25
57
|
</el-table-column>
|
|
26
|
-
<el-table-column
|
|
27
|
-
|
|
58
|
+
<el-table-column
|
|
59
|
+
:rules="$r(1, 0, 36)"
|
|
60
|
+
align="left"
|
|
61
|
+
header-align="center"
|
|
62
|
+
label="代码"
|
|
63
|
+
prop="code"
|
|
64
|
+
sortable
|
|
65
|
+
width="120px"
|
|
66
|
+
>
|
|
28
67
|
</el-table-column>
|
|
29
|
-
<el-table-column
|
|
30
|
-
|
|
68
|
+
<el-table-column
|
|
69
|
+
:rules="$r(1, 0, 50)"
|
|
70
|
+
align="left"
|
|
71
|
+
header-align="center"
|
|
72
|
+
label="名称"
|
|
73
|
+
prop="name"
|
|
74
|
+
sortable
|
|
75
|
+
width="120px"
|
|
76
|
+
>
|
|
31
77
|
</el-table-column>
|
|
32
|
-
<el-table-column
|
|
78
|
+
<el-table-column
|
|
79
|
+
align="left"
|
|
80
|
+
header-align="center"
|
|
81
|
+
label="英文名"
|
|
82
|
+
prop="enName"
|
|
83
|
+
sortable
|
|
84
|
+
width="120px"
|
|
85
|
+
>
|
|
33
86
|
</el-table-column>
|
|
34
|
-
<el-table-column
|
|
35
|
-
|
|
36
|
-
|
|
87
|
+
<el-table-column
|
|
88
|
+
:rules="$r(0, 0, 100000, 'number')"
|
|
89
|
+
align="left"
|
|
90
|
+
header-align="center"
|
|
91
|
+
input="HdNum"
|
|
92
|
+
label="排序号"
|
|
93
|
+
prop="sorter"
|
|
94
|
+
sortable
|
|
95
|
+
>
|
|
37
96
|
</el-table-column>
|
|
38
|
-
<el-table-column
|
|
39
|
-
|
|
40
|
-
|
|
97
|
+
<el-table-column
|
|
98
|
+
:inputFormat="$ckFt"
|
|
99
|
+
:inputProp="{ activeValue: '1', inactiveValue: '0' }"
|
|
100
|
+
align="center"
|
|
101
|
+
input="el-switch"
|
|
102
|
+
label="系统"
|
|
103
|
+
prop="sysMark"
|
|
104
|
+
sortable
|
|
105
|
+
>
|
|
41
106
|
</el-table-column>
|
|
42
|
-
<el-table-column
|
|
43
|
-
|
|
44
|
-
|
|
107
|
+
<el-table-column
|
|
108
|
+
:inputFormat="$ckFt"
|
|
109
|
+
:inputProp="{ activeValue: '1', inactiveValue: '0' }"
|
|
110
|
+
align="center"
|
|
111
|
+
input="el-switch"
|
|
112
|
+
label="废弃"
|
|
113
|
+
prop="abandonedMark"
|
|
114
|
+
sortable
|
|
115
|
+
>
|
|
45
116
|
</el-table-column>
|
|
46
|
-
<el-table-column
|
|
117
|
+
<el-table-column
|
|
118
|
+
align="left"
|
|
119
|
+
header-align="center"
|
|
120
|
+
label="备注/描述"
|
|
121
|
+
prop="description"
|
|
122
|
+
sortable
|
|
123
|
+
width="150px"
|
|
124
|
+
>
|
|
47
125
|
</el-table-column>
|
|
48
126
|
</hd-com-grid>
|
|
49
127
|
</el-main>
|
|
50
128
|
</el-container>
|
|
51
129
|
</template>
|
|
52
|
-
<script>
|
|
53
|
-
|
|
54
130
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
131
|
+
<script>
|
|
132
|
+
import { Search as ElIconSearch } from '@element-plus/icons'
|
|
133
|
+
export default {
|
|
134
|
+
data() {
|
|
135
|
+
return {
|
|
136
|
+
hdQuery: new HdQuery(this),
|
|
137
|
+
exField: {
|
|
138
|
+
open: true,
|
|
139
|
+
table: 'SYS_CODE',
|
|
140
|
+
columnList: [
|
|
141
|
+
'CUSTOM_EX1',
|
|
142
|
+
'CUSTOM_EX2',
|
|
143
|
+
'CUSTOM_EX3',
|
|
144
|
+
'CUSTOM_EX4',
|
|
145
|
+
'CUSTOM_EX5',
|
|
146
|
+
],
|
|
147
|
+
gridCode: 'syscodeGrid',
|
|
148
|
+
},
|
|
149
|
+
ElIconSearch,
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
name: 'syscode',
|
|
153
|
+
components: {},
|
|
154
|
+
// mounted() {//页面加载后执行
|
|
155
|
+
// this.doQuery()
|
|
156
|
+
// },
|
|
157
|
+
props: {},
|
|
158
|
+
methods: {
|
|
159
|
+
tableRowClassName({ row, rowIndex }) {
|
|
160
|
+
//stripe必须改为false
|
|
161
|
+
if (row.abandonedMark == '1') {
|
|
162
|
+
return 'gray-row'
|
|
67
163
|
}
|
|
68
164
|
},
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
this.hdQuery.query.fieldCod = row.fieldCod
|
|
81
|
-
this.$refs.grid.doQuery()
|
|
82
|
-
},
|
|
83
|
-
doAdd() {
|
|
84
|
-
if (!this.hdQuery.query.fieldCod) {
|
|
85
|
-
this.$message({
|
|
86
|
-
type: 'error',
|
|
87
|
-
message: this.$t('未选择数据')
|
|
88
|
-
})
|
|
89
|
-
return false
|
|
90
|
-
}
|
|
91
|
-
this.$refs.grid.doEdit('')
|
|
165
|
+
querycode(row) {
|
|
166
|
+
this.hdQuery.query.fieldCod = row.fieldCod
|
|
167
|
+
this.$refs.grid.doQuery()
|
|
168
|
+
},
|
|
169
|
+
doAdd() {
|
|
170
|
+
if (!this.hdQuery.query.fieldCod) {
|
|
171
|
+
this.$message({
|
|
172
|
+
type: 'error',
|
|
173
|
+
message: this.$t('未选择数据'),
|
|
174
|
+
})
|
|
175
|
+
return false
|
|
92
176
|
}
|
|
177
|
+
this.$refs.grid.doEdit('')
|
|
93
178
|
},
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
179
|
+
},
|
|
180
|
+
computed: {
|
|
181
|
+
// 给外层v-model赋值
|
|
182
|
+
},
|
|
183
|
+
}
|
|
97
184
|
</script>
|
|
98
|
-
<style rel="stylesheet/scss" lang="scss" scoped>
|
|
99
|
-
:deep(.gray-row) { //deep必须有
|
|
100
|
-
background: #DCDCDC;
|
|
101
|
-
}
|
|
102
185
|
|
|
186
|
+
<style lang="scss" rel="stylesheet/scss" scoped>
|
|
187
|
+
:deep(.gray-row) {
|
|
188
|
+
//deep必须有
|
|
189
|
+
background: #dcdcdc;
|
|
190
|
+
}
|
|
103
191
|
</style>
|
|
@@ -1,66 +1,119 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-container>
|
|
3
3
|
<el-main>
|
|
4
|
-
<hd-com-grid
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
<hd-com-grid
|
|
5
|
+
ref="grid"
|
|
6
|
+
:hdQuery="hdQuery"
|
|
7
|
+
url="/webresources/login/privilege/SysField/vue"
|
|
8
|
+
@row-click="rowClick"
|
|
9
|
+
recHide
|
|
10
|
+
:defaultSort="{}"
|
|
11
|
+
>
|
|
7
12
|
<div class="filter-container" slot="query">
|
|
8
|
-
<el-input
|
|
9
|
-
|
|
10
|
-
|
|
13
|
+
<el-input
|
|
14
|
+
@keyup.enter.native="$refs.grid.doQuery()"
|
|
15
|
+
:suffix-icon="ElIconSearch"
|
|
16
|
+
style="width: 200px; float: right"
|
|
17
|
+
class="filter-item"
|
|
18
|
+
:placeholder="$t('名称、代码')"
|
|
19
|
+
v-model="hdQuery.query.anyQuery"
|
|
20
|
+
>
|
|
11
21
|
</el-input>
|
|
12
|
-
<el-button
|
|
13
|
-
|
|
22
|
+
<el-button
|
|
23
|
+
class="filter-item"
|
|
24
|
+
@click="$refs.grid.doEdit('')"
|
|
25
|
+
type="primary"
|
|
26
|
+
keyType="add"
|
|
27
|
+
>{{ $t('新增') }}</el-button
|
|
28
|
+
>
|
|
29
|
+
<el-button
|
|
30
|
+
class="filter-item"
|
|
31
|
+
@click="$refs.grid.doRemoveAll()"
|
|
32
|
+
type="danger"
|
|
33
|
+
keyType="del"
|
|
34
|
+
>{{ $t('删除') }}</el-button
|
|
35
|
+
>
|
|
14
36
|
</div>
|
|
15
37
|
<el-table-column width="60px" align="center" label="操作" fixed="right">
|
|
16
38
|
<template slot-scope="scope">
|
|
17
|
-
<hd-btn
|
|
18
|
-
|
|
39
|
+
<hd-btn
|
|
40
|
+
icon="el-icon-edit"
|
|
41
|
+
hint="编辑"
|
|
42
|
+
@click.stop="$refs.grid.doEdit(scope.row)"
|
|
43
|
+
v-if="!scope.row.isEdit"
|
|
44
|
+
>
|
|
45
|
+
{{ $t('编辑') }}
|
|
19
46
|
</hd-btn>
|
|
20
|
-
<hd-btn
|
|
21
|
-
|
|
47
|
+
<hd-btn
|
|
48
|
+
hint="撤销"
|
|
49
|
+
@click.stop="$refs.grid.doCancel(scope.row, scope.$index)"
|
|
50
|
+
v-if="scope.row.isEdit"
|
|
51
|
+
>
|
|
52
|
+
<svg-icon icon-class="undo" />
|
|
22
53
|
</hd-btn>
|
|
23
|
-
<hd-btn
|
|
24
|
-
|
|
54
|
+
<hd-btn
|
|
55
|
+
icon="el-icon-check"
|
|
56
|
+
hint="保存"
|
|
57
|
+
@click.stop="$refs.grid.doSave(scope.row)"
|
|
58
|
+
v-if="scope.row.isEdit"
|
|
59
|
+
>
|
|
60
|
+
{{ $t('保存') }}
|
|
25
61
|
</hd-btn>
|
|
26
|
-
<hd-btn
|
|
27
|
-
|
|
28
|
-
|
|
62
|
+
<hd-btn
|
|
63
|
+
icon="el-icon-delete"
|
|
64
|
+
hint="删除"
|
|
65
|
+
@click.stop="$refs.grid.doRemove(scope.row)"
|
|
66
|
+
v-if="!scope.row.isEdit"
|
|
67
|
+
>
|
|
68
|
+
{{ $t('删除') }}
|
|
29
69
|
</hd-btn>
|
|
30
70
|
</template>
|
|
31
71
|
</el-table-column>
|
|
32
|
-
<el-table-column
|
|
33
|
-
|
|
72
|
+
<el-table-column
|
|
73
|
+
width="120px"
|
|
74
|
+
align="left"
|
|
75
|
+
header-align="center"
|
|
76
|
+
label="名称"
|
|
77
|
+
prop="fieldName"
|
|
78
|
+
sortable
|
|
79
|
+
:rules="$r(1, 0, 36)"
|
|
80
|
+
>
|
|
34
81
|
</el-table-column>
|
|
35
|
-
<el-table-column
|
|
36
|
-
|
|
82
|
+
<el-table-column
|
|
83
|
+
width="150px"
|
|
84
|
+
align="left"
|
|
85
|
+
header-align="center"
|
|
86
|
+
label="代码"
|
|
87
|
+
prop="fieldCod"
|
|
88
|
+
sortable
|
|
89
|
+
:rules="$r(1, 0, 50)"
|
|
90
|
+
>
|
|
37
91
|
</el-table-column>
|
|
38
|
-
|
|
39
92
|
</hd-com-grid>
|
|
40
93
|
</el-main>
|
|
41
94
|
</el-container>
|
|
42
95
|
</template>
|
|
43
|
-
<script>
|
|
44
|
-
|
|
45
|
-
export default {
|
|
46
|
-
name:'sysfield',
|
|
47
|
-
components: {},
|
|
48
|
-
data() {
|
|
49
|
-
return {
|
|
50
|
-
hdQuery: new HdQuery(this)
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
props: {},
|
|
54
|
-
mounted() {
|
|
55
|
-
|
|
56
|
-
},
|
|
57
|
-
methods: {
|
|
58
|
-
rowClick(row) {
|
|
59
|
-
this.$emit('row-click', row)
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
computed: {// 给外层v-model赋值
|
|
63
96
|
|
|
97
|
+
<script>
|
|
98
|
+
import { Search as ElIconSearch } from '@element-plus/icons'
|
|
99
|
+
export default {
|
|
100
|
+
data() {
|
|
101
|
+
return {
|
|
102
|
+
hdQuery: new HdQuery(this),
|
|
103
|
+
ElIconSearch,
|
|
64
104
|
}
|
|
65
|
-
}
|
|
105
|
+
},
|
|
106
|
+
name: 'sysfield',
|
|
107
|
+
components: {},
|
|
108
|
+
props: {},
|
|
109
|
+
mounted() {},
|
|
110
|
+
methods: {
|
|
111
|
+
rowClick(row) {
|
|
112
|
+
this.$emit('row-click', row)
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
computed: {
|
|
116
|
+
// 给外层v-model赋值
|
|
117
|
+
},
|
|
118
|
+
}
|
|
66
119
|
</script>
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-container>
|
|
3
|
-
<el-aside width="460px">
|
|
4
|
-
<sysfield ref="sysfield" @row-click="rowClick"></sysfield>
|
|
5
|
-
</el-aside>
|
|
6
|
-
<el-main>
|
|
7
|
-
<syscode ref="syscode"></syscode>
|
|
8
|
-
</el-main>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
<script>
|
|
13
|
-
import syscode from './syscode'
|
|
14
|
-
import sysfield from './sysfield'
|
|
15
|
-
|
|
16
|
-
export default {
|
|
17
|
-
components: {
|
|
18
|
-
syscode,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<el-container>
|
|
3
|
+
<el-aside width="460px">
|
|
4
|
+
<sysfield ref="sysfield" @row-click="rowClick"></sysfield>
|
|
5
|
+
</el-aside>
|
|
6
|
+
<el-main>
|
|
7
|
+
<syscode ref="syscode"></syscode>
|
|
8
|
+
</el-main>
|
|
9
|
+
</el-container>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script>
|
|
13
|
+
import syscode from './syscode'
|
|
14
|
+
import sysfield from './sysfield'
|
|
15
|
+
|
|
16
|
+
export default {
|
|
17
|
+
components: {
|
|
18
|
+
syscode,
|
|
19
|
+
sysfield,
|
|
20
|
+
},
|
|
21
|
+
data() {
|
|
22
|
+
return {}
|
|
23
|
+
},
|
|
24
|
+
methods: {
|
|
25
|
+
rowClick(row) {
|
|
26
|
+
this.$refs['syscode'].querycode(row)
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
}
|
|
30
|
+
</script>
|
|
@@ -1,52 +1,68 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div style="height: 100
|
|
3
|
-
<el-button class="filter-item" type="success" @click="save" size="mini">{{
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
<div style="height: 100%">
|
|
3
|
+
<el-button class="filter-item" type="success" @click="save" size="mini">{{
|
|
4
|
+
$t('保存')
|
|
5
|
+
}}</el-button>
|
|
6
|
+
<hd-tree
|
|
7
|
+
:data="hdTree"
|
|
8
|
+
v-loading="listLoading"
|
|
9
|
+
node-key="id"
|
|
10
|
+
ref="menuTree"
|
|
11
|
+
show-checkbox
|
|
12
|
+
style="height: calc(100% - 30px)"
|
|
13
|
+
></hd-tree>
|
|
6
14
|
</div>
|
|
7
15
|
</template>
|
|
8
|
-
<script>
|
|
9
16
|
|
|
17
|
+
<script>
|
|
10
18
|
export default {
|
|
11
19
|
components: {},
|
|
12
20
|
name: 'menuRole',
|
|
13
|
-
data: function() {
|
|
21
|
+
data: function () {
|
|
14
22
|
return {
|
|
15
23
|
hdTree: [],
|
|
16
|
-
listLoading: false
|
|
24
|
+
listLoading: false,
|
|
17
25
|
}
|
|
18
26
|
},
|
|
19
|
-
mounted() {
|
|
27
|
+
mounted() {
|
|
28
|
+
// 因为外层通过v-if控制
|
|
20
29
|
this.doQuery()
|
|
21
30
|
},
|
|
22
31
|
methods: {
|
|
23
32
|
doQuery() {
|
|
24
33
|
this.listLoading = true
|
|
25
34
|
|
|
26
|
-
this.$http
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
35
|
+
this.$http
|
|
36
|
+
.get(`/webresources/login/privilege/SysLogConfigVue/menuConfig`)
|
|
37
|
+
.then((response) => {
|
|
38
|
+
const data = response.data
|
|
39
|
+
this.hdTree = data
|
|
40
|
+
this.listLoading = false
|
|
41
|
+
})
|
|
31
42
|
},
|
|
32
43
|
save() {
|
|
33
44
|
const os = this.$refs.menuTree.getCheckedNodes()
|
|
34
45
|
let privilegeIds = ''
|
|
35
46
|
for (let i = 0; i < os.length; i++) {
|
|
36
|
-
if (os[i].id == -1) {
|
|
47
|
+
if (os[i].id == -1) {
|
|
48
|
+
// 总根节点不处理
|
|
37
49
|
continue
|
|
38
50
|
}
|
|
39
51
|
privilegeIds = privilegeIds + os[i].id + ','
|
|
40
52
|
}
|
|
41
|
-
this.$http
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
type: data.code == '-1' ? 'error' : 'success',
|
|
45
|
-
message: data.message
|
|
53
|
+
this.$http
|
|
54
|
+
.post(`/webresources/login/privilege/SysLogConfigVue/saveMenuConfig`, {
|
|
55
|
+
privilegeIds: privilegeIds,
|
|
46
56
|
})
|
|
47
|
-
|
|
48
|
-
|
|
57
|
+
.then((response) => {
|
|
58
|
+
const data = response.data
|
|
59
|
+
this.$message({
|
|
60
|
+
type: data.code == '-1' ? 'error' : 'success',
|
|
61
|
+
message: data.message,
|
|
62
|
+
})
|
|
63
|
+
})
|
|
64
|
+
},
|
|
49
65
|
},
|
|
50
|
-
watch: {}
|
|
66
|
+
watch: {},
|
|
51
67
|
}
|
|
52
68
|
</script>
|