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,123 +1,229 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-container>
|
|
3
3
|
<el-main>
|
|
4
|
-
<hd-com-grid
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
<hd-com-grid
|
|
5
|
+
:hdQuery="hdQuery"
|
|
6
|
+
:removeUrl="removeUrl"
|
|
7
|
+
imExcel
|
|
8
|
+
notInit
|
|
9
|
+
ref="grid"
|
|
10
|
+
url="/webresources/login/privilege/AuthUser"
|
|
11
|
+
visualScroll
|
|
12
|
+
:exField="exField"
|
|
13
|
+
:excelFormatter="doExcelFormatter"
|
|
14
|
+
>
|
|
7
15
|
<div class="filter-container" slot="query">
|
|
8
|
-
<el-input
|
|
9
|
-
|
|
10
|
-
|
|
16
|
+
<el-input
|
|
17
|
+
@keyup.enter.native="$refs.grid.doQuery()"
|
|
18
|
+
class="filter-item"
|
|
19
|
+
:placeholder="$t('姓名、账号')"
|
|
20
|
+
style="width: 200px"
|
|
21
|
+
v-model="hdQuery.query.name"
|
|
22
|
+
>
|
|
11
23
|
</el-input>
|
|
12
|
-
<el-button
|
|
13
|
-
|
|
24
|
+
<el-button
|
|
25
|
+
@click="$refs.grid.doQuery()"
|
|
26
|
+
class="filter-item"
|
|
27
|
+
keyType="query"
|
|
28
|
+
>
|
|
29
|
+
{{ $t('搜索') }}
|
|
14
30
|
</el-button>
|
|
15
|
-
<el-button
|
|
31
|
+
<el-button
|
|
32
|
+
@click="doEdit('')"
|
|
33
|
+
class="filter-item"
|
|
34
|
+
keyType="add"
|
|
35
|
+
type="primary"
|
|
36
|
+
vid="add"
|
|
37
|
+
>{{ $t('新增') }}
|
|
16
38
|
</el-button>
|
|
17
|
-
<el-button
|
|
39
|
+
<el-button
|
|
40
|
+
@click="$refs.grid.doRemoveAll()"
|
|
41
|
+
class="filter-item"
|
|
42
|
+
keyType="remove"
|
|
43
|
+
type="danger"
|
|
44
|
+
>{{ $t('删除') }}
|
|
18
45
|
</el-button>
|
|
19
46
|
</div>
|
|
20
|
-
<el-table-column
|
|
47
|
+
<el-table-column
|
|
48
|
+
align="center"
|
|
49
|
+
fixed="right"
|
|
50
|
+
label="操作"
|
|
51
|
+
width="110px"
|
|
52
|
+
>
|
|
21
53
|
<template slot-scope="scope">
|
|
22
|
-
<hd-btn
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
54
|
+
<hd-btn
|
|
55
|
+
@click.stop="doResetPsw(scope.row)"
|
|
56
|
+
class="fa fa-asterisk"
|
|
57
|
+
hint="重置密码"
|
|
58
|
+
vid="resetpassword"
|
|
59
|
+
></hd-btn>
|
|
60
|
+
<hd-btn
|
|
61
|
+
@click.stop="doEdit(scope.row.userId)"
|
|
62
|
+
hint="编辑"
|
|
63
|
+
icon="el-icon-edit"
|
|
64
|
+
></hd-btn>
|
|
65
|
+
<hd-btn
|
|
66
|
+
@click.stop="doRemove(scope.row)"
|
|
67
|
+
hint="删除"
|
|
68
|
+
icon="el-icon-delete"
|
|
69
|
+
></hd-btn>
|
|
70
|
+
<hd-btn
|
|
71
|
+
@click.stop="doFaceRec(scope.row)"
|
|
72
|
+
class="fa fa-vcard-o"
|
|
73
|
+
hint="人脸识别"
|
|
74
|
+
>
|
|
26
75
|
</hd-btn>
|
|
27
76
|
</template>
|
|
28
77
|
</el-table-column>
|
|
29
|
-
<el-table-column
|
|
78
|
+
<el-table-column
|
|
79
|
+
align="left"
|
|
80
|
+
header-align="center"
|
|
81
|
+
label="姓名"
|
|
82
|
+
prop="name"
|
|
83
|
+
sortable
|
|
84
|
+
width="100px"
|
|
85
|
+
>
|
|
30
86
|
</el-table-column>
|
|
31
|
-
<el-table-column
|
|
87
|
+
<el-table-column
|
|
88
|
+
align="left"
|
|
89
|
+
header-align="center"
|
|
90
|
+
label="账号"
|
|
91
|
+
prop="account"
|
|
92
|
+
sortable
|
|
93
|
+
width="100px"
|
|
94
|
+
>
|
|
32
95
|
</el-table-column>
|
|
33
|
-
<el-table-column
|
|
34
|
-
|
|
35
|
-
|
|
96
|
+
<el-table-column
|
|
97
|
+
:input="require('../orgDept/orgnselect').default"
|
|
98
|
+
:inputFormat="(result, row) => row.orgnName"
|
|
99
|
+
align="left"
|
|
100
|
+
header-align="center"
|
|
101
|
+
label="部门"
|
|
102
|
+
prop="orgnId"
|
|
103
|
+
sortable
|
|
104
|
+
width="180px"
|
|
105
|
+
>
|
|
36
106
|
</el-table-column>
|
|
37
|
-
<el-table-column
|
|
107
|
+
<el-table-column
|
|
108
|
+
align="center"
|
|
109
|
+
label="账号过期日期"
|
|
110
|
+
prop="accountPassDate"
|
|
111
|
+
sortable
|
|
112
|
+
width="auto"
|
|
113
|
+
>
|
|
38
114
|
</el-table-column>
|
|
39
|
-
<el-table-column
|
|
115
|
+
<el-table-column
|
|
116
|
+
align="center"
|
|
117
|
+
label="密码修改时间"
|
|
118
|
+
prop="pwModifyTim"
|
|
119
|
+
sortable
|
|
120
|
+
width="auto"
|
|
121
|
+
>
|
|
40
122
|
</el-table-column>
|
|
41
123
|
</hd-com-grid>
|
|
42
124
|
</el-main>
|
|
43
|
-
<authuserform
|
|
125
|
+
<authuserform
|
|
126
|
+
@save-ok="$refs.grid.doQuery()"
|
|
127
|
+
ref="authuserform"
|
|
128
|
+
:exFieldCode="exField.gridCode"
|
|
129
|
+
></authuserform>
|
|
44
130
|
<facerec ref="facerec"></facerec>
|
|
45
131
|
</el-container>
|
|
46
132
|
</template>
|
|
133
|
+
|
|
47
134
|
<script>
|
|
48
|
-
|
|
49
|
-
|
|
135
|
+
import authuserform from './authuserform'
|
|
136
|
+
import facerec from './facerec'
|
|
50
137
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
methods: {
|
|
74
|
-
queryUser(orgnId, orgnName) {
|
|
75
|
-
this.orgnId = orgnId
|
|
76
|
-
this.hdQuery.query.orgnId = orgnId
|
|
77
|
-
this.orgnName = orgnName
|
|
78
|
-
this.$refs.grid.doQuery()
|
|
138
|
+
export default {
|
|
139
|
+
name: 'authuser',
|
|
140
|
+
components: { authuserform, facerec },
|
|
141
|
+
data() {
|
|
142
|
+
return {
|
|
143
|
+
removeUrl: '',
|
|
144
|
+
hdQuery: new HdQuery(this),
|
|
145
|
+
orgnName: '',
|
|
146
|
+
orgnId: '',
|
|
147
|
+
exField: {
|
|
148
|
+
open: true,
|
|
149
|
+
table: 'AUTH_USER',
|
|
150
|
+
columnList: [
|
|
151
|
+
'EX_FIELD1',
|
|
152
|
+
'EX_FIELD2',
|
|
153
|
+
'EX_FIELD3',
|
|
154
|
+
'EX_FIELD4',
|
|
155
|
+
'EX_FIELD5',
|
|
156
|
+
],
|
|
157
|
+
gridCode: 'authUserGrid',
|
|
79
158
|
},
|
|
80
|
-
|
|
81
|
-
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
mounted() {
|
|
162
|
+
if (this.$route.query.q) {
|
|
163
|
+
this.$set(this.hdQuery.query, 'name', this.$route.query.q)
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
methods: {
|
|
167
|
+
queryUser(orgnId, orgnName) {
|
|
168
|
+
this.orgnId = orgnId
|
|
169
|
+
this.hdQuery.query.orgnId = orgnId
|
|
170
|
+
this.orgnName = orgnName
|
|
171
|
+
this.$refs.grid.doQuery()
|
|
172
|
+
},
|
|
173
|
+
doResetPsw(row) {
|
|
174
|
+
// 增加或编辑
|
|
175
|
+
this.$confirm(
|
|
176
|
+
this.$t('此操作将重置密码为888888, 是否继续?'),
|
|
177
|
+
this.$t('提示'),
|
|
178
|
+
{
|
|
82
179
|
confirmButtonText: this.$t('确定'),
|
|
83
180
|
cancelButtonText: this.$t('取消'),
|
|
84
|
-
type: 'warning'
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
181
|
+
type: 'warning',
|
|
182
|
+
}
|
|
183
|
+
)
|
|
184
|
+
.then(() => {
|
|
185
|
+
this.$http
|
|
186
|
+
.post(
|
|
187
|
+
'/webresources/login/privilege/AuthUser/resetPassword?userId=' +
|
|
188
|
+
row.userId
|
|
189
|
+
)
|
|
190
|
+
.then((response) => {
|
|
191
|
+
const data = response.data
|
|
192
|
+
this.$message({
|
|
193
|
+
type: data.code === '-1' ? 'error' : 'success',
|
|
194
|
+
message: data.message,
|
|
195
|
+
})
|
|
196
|
+
if (data.code === '-1') {
|
|
197
|
+
return
|
|
198
|
+
}
|
|
199
|
+
this.$refs.grid.doQuery()
|
|
91
200
|
})
|
|
92
|
-
if (data.code === '-1') {
|
|
93
|
-
return
|
|
94
|
-
}
|
|
95
|
-
this.$refs.grid.doQuery()
|
|
96
|
-
})
|
|
97
|
-
}).catch(() => {
|
|
98
201
|
})
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
202
|
+
.catch(() => {})
|
|
203
|
+
},
|
|
204
|
+
doEdit(userId) {
|
|
205
|
+
// 增加或编辑
|
|
206
|
+
this.$refs['authuserform'].show(userId, this.orgnId, this.orgnName)
|
|
207
|
+
},
|
|
208
|
+
doRemove(row) {
|
|
209
|
+
this.removeUrl =
|
|
210
|
+
'/webresources/login/privilege/AuthUser/remove?userId=' + row.userId
|
|
211
|
+
this.$refs.grid.doRemove(row)
|
|
212
|
+
},
|
|
213
|
+
doFaceRec(row) {
|
|
214
|
+
this.$refs.facerec.show(row)
|
|
215
|
+
},
|
|
216
|
+
doExcelFormatter(excelData) {
|
|
217
|
+
let r = {
|
|
218
|
+
multiHeader: [['用户管理', '', '', '', '', '', '', '', '']],
|
|
219
|
+
header: excelData.merdata[0],
|
|
220
|
+
data: excelData.merdata.slice(1),
|
|
221
|
+
filename: excelData.title,
|
|
222
|
+
merges: ['A1:I1'],
|
|
120
223
|
}
|
|
121
|
-
|
|
122
|
-
|
|
224
|
+
console.log(r)
|
|
225
|
+
return r
|
|
226
|
+
},
|
|
227
|
+
},
|
|
228
|
+
}
|
|
123
229
|
</script>
|
|
@@ -1,36 +1,52 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<el-dialog :visible.sync="visible" title="编辑" width=
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
<el-dialog :visible.sync="visible" title="编辑" width="90%">
|
|
3
|
+
<hd-form
|
|
4
|
+
:model="hdform"
|
|
5
|
+
label-width="100px"
|
|
6
|
+
ref="hdform"
|
|
7
|
+
:exFieldCode="exFieldCode"
|
|
8
|
+
>
|
|
5
9
|
<el-row>
|
|
6
10
|
<el-col :span="24">
|
|
7
|
-
<HdTempSave
|
|
8
|
-
|
|
11
|
+
<HdTempSave
|
|
12
|
+
:auto="true"
|
|
13
|
+
:saveFun="saveFunTemp"
|
|
14
|
+
@reload="loadFromTemp"
|
|
15
|
+
ref="hdTempSave"
|
|
16
|
+
style="float: right"
|
|
17
|
+
v-if="visible"
|
|
18
|
+
></HdTempSave>
|
|
9
19
|
</el-col>
|
|
10
20
|
<el-col :span="24" :xs="16">
|
|
11
|
-
<el-form-item :rules="$r(1,2,20)" label="姓名" prop="name">
|
|
21
|
+
<el-form-item :rules="$r(1, 2, 20)" label="姓名" prop="name">
|
|
12
22
|
<el-input type="text" v-model="hdform.name"></el-input>
|
|
13
23
|
</el-form-item>
|
|
14
24
|
</el-col>
|
|
15
25
|
<el-col :span="12" :xs="16">
|
|
16
|
-
<el-form-item :rules="$r(1,3,20)" label="账户" prop="account">
|
|
26
|
+
<el-form-item :rules="$r(1, 3, 20)" label="账户" prop="account">
|
|
17
27
|
<el-input type="text" v-model="hdform.account"></el-input>
|
|
18
28
|
</el-form-item>
|
|
19
29
|
</el-col>
|
|
20
30
|
<el-col :span="24" :xs="16">
|
|
21
31
|
<el-form-item :rules="$r(1)" label="部门" prop="orgnName">
|
|
22
32
|
<!--<el-input type="text" v-model="hdform.orgnId" ></el-input>-->
|
|
23
|
-
<orgncascader
|
|
24
|
-
|
|
33
|
+
<orgncascader
|
|
34
|
+
:idVal.sync="hdform.orgnId"
|
|
35
|
+
:txtVal.sync="hdform.orgnName"
|
|
36
|
+
style="width: 100%"
|
|
37
|
+
></orgncascader>
|
|
25
38
|
</el-form-item>
|
|
26
39
|
</el-col>
|
|
27
40
|
<el-col :span="12" :xs="16">
|
|
28
41
|
<el-form-item label="账号过期日期" prop="accountPassDate">
|
|
29
|
-
<el-date-picker
|
|
42
|
+
<el-date-picker
|
|
43
|
+
v-bind="$date"
|
|
44
|
+
v-model="hdform.accountPassDate"
|
|
45
|
+
></el-date-picker>
|
|
30
46
|
</el-form-item>
|
|
31
47
|
</el-col>
|
|
32
48
|
<el-col :span="12" :xs="16">
|
|
33
|
-
<el-form-item :rules="$r(0,0,255)" label="描述" prop="description">
|
|
49
|
+
<el-form-item :rules="$r(0, 0, 255)" label="描述" prop="description">
|
|
34
50
|
<el-input type="text" v-model="hdform.description"></el-input>
|
|
35
51
|
</el-form-item>
|
|
36
52
|
</el-col>
|
|
@@ -38,117 +54,153 @@
|
|
|
38
54
|
<el-row>
|
|
39
55
|
<el-col :span="8" :xs="16">
|
|
40
56
|
<el-form-item label="账户锁定标志">
|
|
41
|
-
<el-switch
|
|
57
|
+
<el-switch
|
|
58
|
+
active-value="1"
|
|
59
|
+
inactive-value="0"
|
|
60
|
+
v-model="hdform.lockId"
|
|
61
|
+
></el-switch>
|
|
42
62
|
</el-form-item>
|
|
43
63
|
</el-col>
|
|
44
64
|
<el-col :span="8" :xs="16">
|
|
45
65
|
<el-form-item label="账户停用标志">
|
|
46
|
-
<el-switch
|
|
66
|
+
<el-switch
|
|
67
|
+
active-value="1"
|
|
68
|
+
inactive-value="0"
|
|
69
|
+
v-model="hdform.stopId"
|
|
70
|
+
></el-switch>
|
|
47
71
|
</el-form-item>
|
|
48
72
|
</el-col>
|
|
49
73
|
|
|
50
74
|
<el-col :span="8" :xs="16">
|
|
51
75
|
<el-form-item label="密码永不过期">
|
|
52
|
-
<el-switch
|
|
76
|
+
<el-switch
|
|
77
|
+
active-value="1"
|
|
78
|
+
inactive-value="0"
|
|
79
|
+
v-model="hdform.pwNeverPassId"
|
|
80
|
+
></el-switch>
|
|
53
81
|
</el-form-item>
|
|
54
82
|
</el-col>
|
|
55
83
|
|
|
56
84
|
<el-col :span="8" :xs="16">
|
|
57
85
|
<el-form-item label="个人不可改密">
|
|
58
|
-
<el-switch
|
|
86
|
+
<el-switch
|
|
87
|
+
active-value="1"
|
|
88
|
+
inactive-value="0"
|
|
89
|
+
v-model="hdform.donotChgId"
|
|
90
|
+
></el-switch>
|
|
59
91
|
</el-form-item>
|
|
60
92
|
</el-col>
|
|
61
93
|
<el-col :span="8" :xs="16">
|
|
62
94
|
<el-form-item label="登录先改密">
|
|
63
|
-
<el-switch
|
|
95
|
+
<el-switch
|
|
96
|
+
active-value="1"
|
|
97
|
+
inactive-value="0"
|
|
98
|
+
v-model="hdform.nextChgId"
|
|
99
|
+
></el-switch>
|
|
64
100
|
</el-form-item>
|
|
65
101
|
</el-col>
|
|
66
102
|
</el-row>
|
|
67
103
|
</hd-form>
|
|
68
104
|
<div class="dialog-footer" slot="footer">
|
|
69
|
-
<el-button @click="visible = false">{{$t('取 消')}}</el-button>
|
|
70
|
-
<el-button
|
|
71
|
-
|
|
105
|
+
<el-button @click="visible = false">{{ $t('取 消') }}</el-button>
|
|
106
|
+
<el-button
|
|
107
|
+
:hotKeyRange="$options.name"
|
|
108
|
+
:loading="loading"
|
|
109
|
+
@click="submit"
|
|
110
|
+
keyType="save"
|
|
111
|
+
type="primary"
|
|
112
|
+
>
|
|
113
|
+
{{ $t('确 定') }}
|
|
72
114
|
</el-button>
|
|
73
115
|
</div>
|
|
74
116
|
</el-dialog>
|
|
75
|
-
|
|
76
117
|
</template>
|
|
77
118
|
|
|
78
119
|
<script>
|
|
79
|
-
|
|
80
|
-
|
|
120
|
+
import orgncascader from './orgncascader'
|
|
121
|
+
import ExtendForm from '../../../hdcom/ExtendForm'
|
|
81
122
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
123
|
+
export default {
|
|
124
|
+
name: 'authuserform',
|
|
125
|
+
components: {
|
|
126
|
+
ExtendForm,
|
|
127
|
+
orgncascader,
|
|
128
|
+
},
|
|
129
|
+
data() {
|
|
130
|
+
return {
|
|
131
|
+
hdform: {},
|
|
132
|
+
visible: false,
|
|
133
|
+
tsLoading: false,
|
|
134
|
+
loading: false,
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
props: {
|
|
138
|
+
orgnId: String,
|
|
139
|
+
orgnName: String,
|
|
140
|
+
exFieldCode: String,
|
|
141
|
+
},
|
|
142
|
+
methods: {
|
|
143
|
+
show(userId, orgnId, orgnName) {
|
|
144
|
+
// 换为本表主键
|
|
103
145
|
|
|
104
|
-
|
|
105
|
-
|
|
146
|
+
this.visible = true
|
|
147
|
+
this.$http
|
|
148
|
+
.post(
|
|
149
|
+
'/webresources/login/privilege/AuthUser/findone?userId=' +
|
|
150
|
+
userId +
|
|
151
|
+
'&orgnId=' +
|
|
152
|
+
orgnId
|
|
153
|
+
)
|
|
154
|
+
.then((response) => {
|
|
106
155
|
const data = response.data
|
|
107
156
|
this.hdform = data
|
|
108
|
-
if (!userId) {
|
|
157
|
+
if (!userId) {
|
|
158
|
+
//这块代码已经没用,后端已经赋值,而且推荐后端写
|
|
109
159
|
this.hdform.orgnId = orgnId
|
|
110
160
|
this.hdform.orgnName = orgnName
|
|
111
161
|
}
|
|
112
162
|
// 弹窗重复使用时,清除校验项目
|
|
113
163
|
if (this.$refs['hdform']) {
|
|
114
|
-
|
|
164
|
+
this.$refs['hdform'].$refs.hdform.resetFields()
|
|
115
165
|
}
|
|
116
166
|
})
|
|
167
|
+
},
|
|
117
168
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
169
|
+
submit() {
|
|
170
|
+
// console.debug(this.hdform)
|
|
171
|
+
this.$refs['hdform'].$refs.hdform.validate((valid) => {
|
|
172
|
+
if (!valid) {
|
|
173
|
+
return false
|
|
174
|
+
}
|
|
175
|
+
this.loading = true
|
|
176
|
+
// this.hdform.orgnId = this.parentId
|
|
177
|
+
this.$http
|
|
178
|
+
.post('/webresources/login/privilege/AuthUser/save', this.hdform)
|
|
179
|
+
.then((response) => {
|
|
129
180
|
this.loading = false
|
|
130
181
|
const data = response.data
|
|
131
182
|
this.$message({
|
|
132
183
|
type: data.code === '-1' ? 'error' : 'success',
|
|
133
|
-
message: data.message
|
|
184
|
+
message: data.message,
|
|
134
185
|
})
|
|
135
186
|
if (data.code === '-1') {
|
|
136
187
|
return
|
|
137
188
|
}
|
|
138
189
|
this.$emit('save-ok') // 主页面调用弹窗时添加
|
|
139
190
|
this.visible = false
|
|
140
|
-
})
|
|
191
|
+
})
|
|
192
|
+
.catch(() => {
|
|
193
|
+
//数据同步的校验,时,会从这里触发
|
|
141
194
|
this.loading = false
|
|
142
195
|
})
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
196
|
+
})
|
|
197
|
+
},
|
|
198
|
+
saveFunTemp() {
|
|
199
|
+
return this.hdform
|
|
200
|
+
},
|
|
201
|
+
loadFromTemp(storeFrom) {
|
|
202
|
+
Object.assign(this.hdform, storeFrom)
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
}
|
|
153
206
|
</script>
|
|
154
|
-
|