hd-idevvue3 3.0.5 → 3.0.8
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/css/index-DRHIlcVU.css +1 -0
- package/dist/static/js/index-DbUA6jg0.js +184 -0
- package/dist/static/js/index-Dl4O91nB.js +73768 -0
- package/package.json +16 -16
- package/.env.development +0 -5
- package/.env.production +0 -5
- package/.eslintrc.js +0 -151
- package/dist/assets/index.431f21ca.css +0 -1
- package/dist/hd-idevvue3.mjs +0 -45878
- package/dist/hd-idevvue3.umd.js +0 -153
- package/index.html +0 -18
- package/npminstall-debug.log +0 -200
- package/pnpm-lock.yaml +0 -2813
- 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 -103
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
<template>
|
|
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
|
-
>
|
|
9
|
-
<el-row>
|
|
10
|
-
<el-col :span="24">
|
|
11
|
-
<HdTempSave
|
|
12
|
-
:auto="true"
|
|
13
|
-
:saveFun="saveFunTemp"
|
|
14
|
-
@reload="loadFromTemp"
|
|
15
|
-
ref="hdTempSave"
|
|
16
|
-
style="float: right"
|
|
17
|
-
v-if="visible"
|
|
18
|
-
></HdTempSave>
|
|
19
|
-
</el-col>
|
|
20
|
-
<el-col :span="24" :xs="16">
|
|
21
|
-
<el-form-item :rules="$r(1, 2, 20)" label="姓名" prop="name">
|
|
22
|
-
<el-input type="text" v-model="hdform.name"></el-input>
|
|
23
|
-
</el-form-item>
|
|
24
|
-
</el-col>
|
|
25
|
-
<el-col :span="12" :xs="16">
|
|
26
|
-
<el-form-item :rules="$r(1, 3, 20)" label="账户" prop="account">
|
|
27
|
-
<el-input type="text" v-model="hdform.account"></el-input>
|
|
28
|
-
</el-form-item>
|
|
29
|
-
</el-col>
|
|
30
|
-
<el-col :span="24" :xs="16">
|
|
31
|
-
<el-form-item :rules="$r(1)" label="部门" prop="orgnName">
|
|
32
|
-
<!--<el-input type="text" v-model="hdform.orgnId" ></el-input>-->
|
|
33
|
-
<orgncascader
|
|
34
|
-
:idVal.sync="hdform.orgnId"
|
|
35
|
-
:txtVal.sync="hdform.orgnName"
|
|
36
|
-
style="width: 100%"
|
|
37
|
-
></orgncascader>
|
|
38
|
-
</el-form-item>
|
|
39
|
-
</el-col>
|
|
40
|
-
<el-col :span="12" :xs="16">
|
|
41
|
-
<el-form-item label="账号过期日期" prop="accountPassDate">
|
|
42
|
-
<el-date-picker
|
|
43
|
-
v-bind="$date"
|
|
44
|
-
v-model="hdform.accountPassDate"
|
|
45
|
-
></el-date-picker>
|
|
46
|
-
</el-form-item>
|
|
47
|
-
</el-col>
|
|
48
|
-
<el-col :span="12" :xs="16">
|
|
49
|
-
<el-form-item :rules="$r(0, 0, 255)" label="描述" prop="description">
|
|
50
|
-
<el-input type="text" v-model="hdform.description"></el-input>
|
|
51
|
-
</el-form-item>
|
|
52
|
-
</el-col>
|
|
53
|
-
</el-row>
|
|
54
|
-
<el-row>
|
|
55
|
-
<el-col :span="8" :xs="16">
|
|
56
|
-
<el-form-item label="账户锁定标志">
|
|
57
|
-
<el-switch
|
|
58
|
-
active-value="1"
|
|
59
|
-
inactive-value="0"
|
|
60
|
-
v-model="hdform.lockId"
|
|
61
|
-
></el-switch>
|
|
62
|
-
</el-form-item>
|
|
63
|
-
</el-col>
|
|
64
|
-
<el-col :span="8" :xs="16">
|
|
65
|
-
<el-form-item label="账户停用标志">
|
|
66
|
-
<el-switch
|
|
67
|
-
active-value="1"
|
|
68
|
-
inactive-value="0"
|
|
69
|
-
v-model="hdform.stopId"
|
|
70
|
-
></el-switch>
|
|
71
|
-
</el-form-item>
|
|
72
|
-
</el-col>
|
|
73
|
-
|
|
74
|
-
<el-col :span="8" :xs="16">
|
|
75
|
-
<el-form-item label="密码永不过期">
|
|
76
|
-
<el-switch
|
|
77
|
-
active-value="1"
|
|
78
|
-
inactive-value="0"
|
|
79
|
-
v-model="hdform.pwNeverPassId"
|
|
80
|
-
></el-switch>
|
|
81
|
-
</el-form-item>
|
|
82
|
-
</el-col>
|
|
83
|
-
|
|
84
|
-
<el-col :span="8" :xs="16">
|
|
85
|
-
<el-form-item label="个人不可改密">
|
|
86
|
-
<el-switch
|
|
87
|
-
active-value="1"
|
|
88
|
-
inactive-value="0"
|
|
89
|
-
v-model="hdform.donotChgId"
|
|
90
|
-
></el-switch>
|
|
91
|
-
</el-form-item>
|
|
92
|
-
</el-col>
|
|
93
|
-
<el-col :span="8" :xs="16">
|
|
94
|
-
<el-form-item label="登录先改密">
|
|
95
|
-
<el-switch
|
|
96
|
-
active-value="1"
|
|
97
|
-
inactive-value="0"
|
|
98
|
-
v-model="hdform.nextChgId"
|
|
99
|
-
></el-switch>
|
|
100
|
-
</el-form-item>
|
|
101
|
-
</el-col>
|
|
102
|
-
</el-row>
|
|
103
|
-
</hd-form>
|
|
104
|
-
<div class="dialog-footer" slot="footer">
|
|
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('确 定') }}
|
|
114
|
-
</el-button>
|
|
115
|
-
</div>
|
|
116
|
-
</el-dialog>
|
|
117
|
-
</template>
|
|
118
|
-
|
|
119
|
-
<script>
|
|
120
|
-
import orgncascader from './orgncascader'
|
|
121
|
-
import ExtendForm from '../../../hdcom/ExtendForm'
|
|
122
|
-
|
|
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
|
-
// 换为本表主键
|
|
145
|
-
|
|
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) => {
|
|
155
|
-
const data = response.data
|
|
156
|
-
this.hdform = data
|
|
157
|
-
if (!userId) {
|
|
158
|
-
//这块代码已经没用,后端已经赋值,而且推荐后端写
|
|
159
|
-
this.hdform.orgnId = orgnId
|
|
160
|
-
this.hdform.orgnName = orgnName
|
|
161
|
-
}
|
|
162
|
-
// 弹窗重复使用时,清除校验项目
|
|
163
|
-
if (this.$refs['hdform']) {
|
|
164
|
-
this.$refs['hdform'].$refs.hdform.resetFields()
|
|
165
|
-
}
|
|
166
|
-
})
|
|
167
|
-
},
|
|
168
|
-
|
|
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) => {
|
|
180
|
-
this.loading = false
|
|
181
|
-
const data = response.data
|
|
182
|
-
this.$message({
|
|
183
|
-
type: data.code === '-1' ? 'error' : 'success',
|
|
184
|
-
message: data.message,
|
|
185
|
-
})
|
|
186
|
-
if (data.code === '-1') {
|
|
187
|
-
return
|
|
188
|
-
}
|
|
189
|
-
this.$emit('save-ok') // 主页面调用弹窗时添加
|
|
190
|
-
this.visible = false
|
|
191
|
-
})
|
|
192
|
-
.catch(() => {
|
|
193
|
-
//数据同步的校验,时,会从这里触发
|
|
194
|
-
this.loading = false
|
|
195
|
-
})
|
|
196
|
-
})
|
|
197
|
-
},
|
|
198
|
-
saveFunTemp() {
|
|
199
|
-
return this.hdform
|
|
200
|
-
},
|
|
201
|
-
loadFromTemp(storeFrom) {
|
|
202
|
-
Object.assign(this.hdform, storeFrom)
|
|
203
|
-
},
|
|
204
|
-
},
|
|
205
|
-
}
|
|
206
|
-
</script>
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-dialog
|
|
3
|
-
title="人脸设置"
|
|
4
|
-
:visible.sync="visible"
|
|
5
|
-
append-to-body
|
|
6
|
-
width="900px"
|
|
7
|
-
top="2vh"
|
|
8
|
-
>
|
|
9
|
-
<el-container style="height: 500px">
|
|
10
|
-
<el-aside width="410px">
|
|
11
|
-
<div>{{ $t('摄像头') }}</div>
|
|
12
|
-
<video
|
|
13
|
-
ref="video"
|
|
14
|
-
width="400px"
|
|
15
|
-
height="225px"
|
|
16
|
-
autoplay
|
|
17
|
-
style="border: solid"
|
|
18
|
-
></video>
|
|
19
|
-
</el-aside>
|
|
20
|
-
<el-main>
|
|
21
|
-
<div>{{ $t('拍照') }}</div>
|
|
22
|
-
<canvas
|
|
23
|
-
ref="canvas"
|
|
24
|
-
width="400px"
|
|
25
|
-
height="225px"
|
|
26
|
-
style="border: solid"
|
|
27
|
-
></canvas>
|
|
28
|
-
</el-main>
|
|
29
|
-
</el-container>
|
|
30
|
-
<div slot="footer" class="dialog-footer">
|
|
31
|
-
<el-button @click="faceRemove">{{ $t('删除特征') }}</el-button>
|
|
32
|
-
<el-button @click="faceTest">{{ $t('人脸测试') }}</el-button>
|
|
33
|
-
<el-button type="primary" @click="capAndSave" keyType="save">
|
|
34
|
-
{{ $t('拍照并上传') }}
|
|
35
|
-
</el-button>
|
|
36
|
-
<el-upload
|
|
37
|
-
style="display: inline"
|
|
38
|
-
:action="
|
|
39
|
-
'/webresources/login/com/ComFaceRec/uploadFace?userId=' + userId
|
|
40
|
-
"
|
|
41
|
-
:show-file-list="false"
|
|
42
|
-
:on-success="uploadSuccess"
|
|
43
|
-
>
|
|
44
|
-
<el-button>{{ $t('上传图片') }}</el-button>
|
|
45
|
-
</el-upload>
|
|
46
|
-
</div>
|
|
47
|
-
</el-dialog>
|
|
48
|
-
</template>
|
|
49
|
-
|
|
50
|
-
<script>
|
|
51
|
-
export default {
|
|
52
|
-
components: {},
|
|
53
|
-
data() {
|
|
54
|
-
return {
|
|
55
|
-
visible: false,
|
|
56
|
-
userId: null,
|
|
57
|
-
account: null,
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
mounted() {},
|
|
62
|
-
methods: {
|
|
63
|
-
show(row) {
|
|
64
|
-
this.userId = row.userId
|
|
65
|
-
this.account = row.account
|
|
66
|
-
this.visible = true
|
|
67
|
-
},
|
|
68
|
-
init() {
|
|
69
|
-
navigator.webkitGetUserMedia(
|
|
70
|
-
{
|
|
71
|
-
video: { width: 1280, height: 720 },
|
|
72
|
-
},
|
|
73
|
-
this.success,
|
|
74
|
-
this.error
|
|
75
|
-
)
|
|
76
|
-
},
|
|
77
|
-
success(stream) {
|
|
78
|
-
this.$refs.video.src = window.URL.createObjectURL(stream)
|
|
79
|
-
this.$refs.video.play()
|
|
80
|
-
},
|
|
81
|
-
error(err) {
|
|
82
|
-
alert('video error: ' + err)
|
|
83
|
-
},
|
|
84
|
-
faceTest() {
|
|
85
|
-
this.$refs.canvas
|
|
86
|
-
.getContext('2d')
|
|
87
|
-
.drawImage(this.$refs.video, 0, 0, 400, 225)
|
|
88
|
-
let pic = this.$refs.canvas.toDataURL('image/jpg')
|
|
89
|
-
//对其进行base64编 之后的字符串
|
|
90
|
-
pic = pic.replace(/^data:image\/(png|jpg);base64,/, '')
|
|
91
|
-
this.$http
|
|
92
|
-
.post(
|
|
93
|
-
'/webresources/login/com/ComFaceRec/faceUserTest?account=' +
|
|
94
|
-
this.account,
|
|
95
|
-
{
|
|
96
|
-
imageData: pic,
|
|
97
|
-
}
|
|
98
|
-
)
|
|
99
|
-
.then((response) => {
|
|
100
|
-
const data = response.data
|
|
101
|
-
this.$message({
|
|
102
|
-
type: data.code === '-1' ? 'error' : 'success',
|
|
103
|
-
message: data.message,
|
|
104
|
-
})
|
|
105
|
-
})
|
|
106
|
-
},
|
|
107
|
-
capAndSave() {
|
|
108
|
-
this.$refs.canvas
|
|
109
|
-
.getContext('2d')
|
|
110
|
-
.drawImage(this.$refs.video, 0, 0, 400, 225)
|
|
111
|
-
let pic = this.$refs.canvas.toDataURL('image/jpg')
|
|
112
|
-
//对其进行base64编 之后的字符串
|
|
113
|
-
pic = pic.replace(/^data:image\/(png|jpg);base64,/, '')
|
|
114
|
-
this.$http
|
|
115
|
-
.post(
|
|
116
|
-
'/webresources/login/com/ComFaceRec/faceUserSave?userId=' +
|
|
117
|
-
this.userId,
|
|
118
|
-
{
|
|
119
|
-
imageData: pic,
|
|
120
|
-
}
|
|
121
|
-
)
|
|
122
|
-
.then((response) => {
|
|
123
|
-
const data = response.data
|
|
124
|
-
this.$message({
|
|
125
|
-
type: data.code === '-1' ? 'error' : 'success',
|
|
126
|
-
message: data.message,
|
|
127
|
-
})
|
|
128
|
-
})
|
|
129
|
-
},
|
|
130
|
-
uploadSuccess(response) {
|
|
131
|
-
console.info(response)
|
|
132
|
-
const data = response
|
|
133
|
-
this.$message({
|
|
134
|
-
type: data.code === '-1' ? 'error' : 'success',
|
|
135
|
-
message: data.message,
|
|
136
|
-
})
|
|
137
|
-
},
|
|
138
|
-
faceRemove() {
|
|
139
|
-
this.$http
|
|
140
|
-
.post(
|
|
141
|
-
'/webresources/login/com/ComFaceRec/faceUserRemove?userId=' +
|
|
142
|
-
this.userId
|
|
143
|
-
)
|
|
144
|
-
.then((response) => {
|
|
145
|
-
const data = response.data
|
|
146
|
-
this.$message({
|
|
147
|
-
type: data.code === '-1' ? 'error' : 'success',
|
|
148
|
-
message: data.message,
|
|
149
|
-
})
|
|
150
|
-
})
|
|
151
|
-
},
|
|
152
|
-
},
|
|
153
|
-
watch: {
|
|
154
|
-
visible(nowVal) {
|
|
155
|
-
if (nowVal) {
|
|
156
|
-
this.init()
|
|
157
|
-
} else {
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
},
|
|
161
|
-
}
|
|
162
|
-
</script>
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div>
|
|
4
|
-
<el-cascader
|
|
5
|
-
:model-value="searchVal"
|
|
6
|
-
:placeholder="placeholder ? this.$(placeholder) : this.$t('请选择')"
|
|
7
|
-
:options="options"
|
|
8
|
-
filterable
|
|
9
|
-
:props="{
|
|
10
|
-
expandTrigger: 'hover',
|
|
11
|
-
checkStrictly: true,
|
|
12
|
-
value: 'id',
|
|
13
|
-
label: 'text',
|
|
14
|
-
}"
|
|
15
|
-
:disabled="disabled"
|
|
16
|
-
ref="sel"
|
|
17
|
-
@change="doSel"
|
|
18
|
-
>
|
|
19
|
-
<template slot-scope="{ node, data }">
|
|
20
|
-
<span>{{ data.text }}</span>
|
|
21
|
-
<span v-if="!node.isLeaf"> ({{ data.children.length }}) </span>
|
|
22
|
-
</template>
|
|
23
|
-
</el-cascader>
|
|
24
|
-
</div>
|
|
25
|
-
</div>
|
|
26
|
-
</template>
|
|
27
|
-
|
|
28
|
-
<script>
|
|
29
|
-
/**
|
|
30
|
-
* 自定义列表下拉
|
|
31
|
-
* @module orgnselect
|
|
32
|
-
*/
|
|
33
|
-
export default {
|
|
34
|
-
name: 'orgnselect',
|
|
35
|
-
data() {
|
|
36
|
-
return {
|
|
37
|
-
options: [],
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
inheritAttrs: false,
|
|
41
|
-
/**
|
|
42
|
-
* Props 继承hd-com-grid的属性和事件
|
|
43
|
-
* @prop {String} txtVal 双向绑定 这里是为了clear清空用
|
|
44
|
-
* @prop {String} idVal 双向绑定 这里是为了clear清空用
|
|
45
|
-
* @prop {String} placeholder
|
|
46
|
-
* @prop {String} disabled 只读
|
|
47
|
-
* @prop {Object} hdQuery 查询封装类
|
|
48
|
-
* @prop {String} height 默认为40vh
|
|
49
|
-
* @prop {Function} beforeQuery 查询前的事件,通常需要绑定anyQuery
|
|
50
|
-
*/
|
|
51
|
-
props: {
|
|
52
|
-
txtVal: String,
|
|
53
|
-
idVal: String,
|
|
54
|
-
placeholder: String,
|
|
55
|
-
disabled: Boolean,
|
|
56
|
-
hdQuery: Object,
|
|
57
|
-
url: String, // 全路径
|
|
58
|
-
height: {
|
|
59
|
-
// 高度
|
|
60
|
-
type: String,
|
|
61
|
-
default: '40vh',
|
|
62
|
-
},
|
|
63
|
-
beforeQuery: Function,
|
|
64
|
-
}, // 设置value为props属性-必须
|
|
65
|
-
mounted() {
|
|
66
|
-
this.doQuery()
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
methods: {
|
|
70
|
-
doQuery() {
|
|
71
|
-
this.$http
|
|
72
|
-
.post('/webresources/login/privilege/AuthOrgn/gentree', this.hdQuery)
|
|
73
|
-
.then((response) => {
|
|
74
|
-
this.options = response.data
|
|
75
|
-
this.initOption(this.options)
|
|
76
|
-
})
|
|
77
|
-
},
|
|
78
|
-
doClear() {
|
|
79
|
-
this.$emit('update:txtVal', '')
|
|
80
|
-
this.$emit('update:idVal', '')
|
|
81
|
-
this.$emit('clear')
|
|
82
|
-
},
|
|
83
|
-
doSel(val) {
|
|
84
|
-
if (
|
|
85
|
-
!this.$refs.sel.getCheckedNodes() ||
|
|
86
|
-
this.$refs.sel.getCheckedNodes().length < 1
|
|
87
|
-
) {
|
|
88
|
-
this.$emit('update:txtVal', '')
|
|
89
|
-
this.$emit('update:idVal', '')
|
|
90
|
-
this.$refs.sel.toggleDropDownVisible(false)
|
|
91
|
-
return
|
|
92
|
-
}
|
|
93
|
-
const data = this.$refs.sel.getCheckedNodes()[0].data
|
|
94
|
-
this.$emit('update:txtVal', data.text)
|
|
95
|
-
this.$emit('update:idVal', data.id)
|
|
96
|
-
this.$emit('change', val)
|
|
97
|
-
this.$refs.sel.toggleDropDownVisible(false)
|
|
98
|
-
},
|
|
99
|
-
getSearchIdList(list, id) {
|
|
100
|
-
let rtn = []
|
|
101
|
-
list.forEach((v) => {
|
|
102
|
-
if (v.id == id) {
|
|
103
|
-
rtn = [v.id]
|
|
104
|
-
return
|
|
105
|
-
} else {
|
|
106
|
-
let idList = this.getSearchIdList(
|
|
107
|
-
v.children == null ? [] : v.children,
|
|
108
|
-
id
|
|
109
|
-
)
|
|
110
|
-
if (idList.length > 0) {
|
|
111
|
-
rtn = [v.id, ...idList]
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
})
|
|
115
|
-
return rtn
|
|
116
|
-
},
|
|
117
|
-
initOption(list) {
|
|
118
|
-
list.forEach((v) => {
|
|
119
|
-
if (!v.children || v.children.length === 0) {
|
|
120
|
-
v.children = null
|
|
121
|
-
} else {
|
|
122
|
-
this.initOption(v.children)
|
|
123
|
-
}
|
|
124
|
-
})
|
|
125
|
-
},
|
|
126
|
-
},
|
|
127
|
-
computed: {
|
|
128
|
-
searchVal() {
|
|
129
|
-
let searchVal = this.getSearchIdList(this.options, this.idVal)
|
|
130
|
-
console.log('searchVal', this.options, searchVal, this.idVal)
|
|
131
|
-
return this.getSearchIdList(this.options, this.idVal)
|
|
132
|
-
},
|
|
133
|
-
},
|
|
134
|
-
}
|
|
135
|
-
</script>
|
|
136
|
-
|
|
137
|
-
<style scoped>
|
|
138
|
-
.lucencyInput .el-input__inner {
|
|
139
|
-
border: 0px;
|
|
140
|
-
}
|
|
141
|
-
.el-cascader {
|
|
142
|
-
width: 100%;
|
|
143
|
-
}
|
|
144
|
-
</style>
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-container>
|
|
3
|
-
<el-aside>
|
|
4
|
-
<orgTree ref="orgTree" @org-node-click="query"></orgTree>
|
|
5
|
-
</el-aside>
|
|
6
|
-
<el-main>
|
|
7
|
-
<authUser ref="authUser"></authUser>
|
|
8
|
-
</el-main>
|
|
9
|
-
</el-container>
|
|
10
|
-
</template>
|
|
11
|
-
|
|
12
|
-
<script>
|
|
13
|
-
import orgTree from '../orgDept/orgTree'
|
|
14
|
-
import authUser from './authuser'
|
|
15
|
-
|
|
16
|
-
export default {
|
|
17
|
-
components: {
|
|
18
|
-
orgTree,
|
|
19
|
-
authUser,
|
|
20
|
-
},
|
|
21
|
-
data() {
|
|
22
|
-
return {
|
|
23
|
-
orgnId: '0',
|
|
24
|
-
orgnName: '',
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
methods: {
|
|
28
|
-
query: function (data) {
|
|
29
|
-
this.$refs['authUser'].queryUser(data.id, data.text)
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
}
|
|
33
|
-
</script>
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-container>
|
|
3
|
-
<el-main>
|
|
4
|
-
<hd-com-grid
|
|
5
|
-
ref="grid"
|
|
6
|
-
:hdQuery="hdQuery"
|
|
7
|
-
url="/webresources/login/com/ComQuartzJob"
|
|
8
|
-
>
|
|
9
|
-
<div class="filter-container" slot="query">
|
|
10
|
-
<el-input
|
|
11
|
-
@keyup.enter.native="$refs.grid.doQuery()"
|
|
12
|
-
style="width: 200px"
|
|
13
|
-
class="filter-item"
|
|
14
|
-
:placeholder="$t('实体名称,任务名称')"
|
|
15
|
-
v-model="hdQuery.query.anyQuery"
|
|
16
|
-
>
|
|
17
|
-
</el-input>
|
|
18
|
-
<el-button
|
|
19
|
-
class="filter-item"
|
|
20
|
-
type="primary"
|
|
21
|
-
:icon="ElIconSearch"
|
|
22
|
-
@click="$refs.grid.doQuery()"
|
|
23
|
-
:keyMap="['alt', 'q']"
|
|
24
|
-
>{{ $t('搜索') }}</el-button
|
|
25
|
-
>
|
|
26
|
-
<el-button
|
|
27
|
-
class="filter-item"
|
|
28
|
-
@click="doEdit('')"
|
|
29
|
-
type="primary"
|
|
30
|
-
:icon="ElIconEdit"
|
|
31
|
-
:keyMap="['alt', 'a']"
|
|
32
|
-
>{{ $t('新增') }}
|
|
33
|
-
</el-button>
|
|
34
|
-
<el-button
|
|
35
|
-
class="filter-item"
|
|
36
|
-
@click="$refs.grid.doRemoveAll()"
|
|
37
|
-
type="danger"
|
|
38
|
-
:keyMap="['alt', 'd']"
|
|
39
|
-
>{{ $t('删除') }}
|
|
40
|
-
</el-button>
|
|
41
|
-
</div>
|
|
42
|
-
<el-table-column
|
|
43
|
-
width="100px"
|
|
44
|
-
align="center"
|
|
45
|
-
label="操作"
|
|
46
|
-
fixed="right"
|
|
47
|
-
>
|
|
48
|
-
<template slot-scope="scope">
|
|
49
|
-
<hd-btn
|
|
50
|
-
icon="el-icon-edit"
|
|
51
|
-
hint="编辑"
|
|
52
|
-
@click.stop="doEdit(scope.row.qjId)"
|
|
53
|
-
></hd-btn>
|
|
54
|
-
<hd-btn
|
|
55
|
-
icon="el-icon-delete"
|
|
56
|
-
hint="删除"
|
|
57
|
-
@click.stop="$refs.grid.doRemove(scope.row.qjId)"
|
|
58
|
-
></hd-btn>
|
|
59
|
-
</template>
|
|
60
|
-
</el-table-column>
|
|
61
|
-
<el-table-column
|
|
62
|
-
width="100px"
|
|
63
|
-
align="center"
|
|
64
|
-
label="实体名"
|
|
65
|
-
prop="beanName"
|
|
66
|
-
sortable
|
|
67
|
-
>
|
|
68
|
-
</el-table-column>
|
|
69
|
-
<el-table-column
|
|
70
|
-
width="100px"
|
|
71
|
-
align="center"
|
|
72
|
-
label="cron表达式"
|
|
73
|
-
prop="cronExpression"
|
|
74
|
-
sortable
|
|
75
|
-
>
|
|
76
|
-
</el-table-column>
|
|
77
|
-
<el-table-column
|
|
78
|
-
width="100px"
|
|
79
|
-
align="center"
|
|
80
|
-
label="是否使用"
|
|
81
|
-
prop="isPause"
|
|
82
|
-
sortable
|
|
83
|
-
>
|
|
84
|
-
<template slot-scope="scope">
|
|
85
|
-
<span>{{ scope.row.isPause == '0' ? '√' : '×' }}</span>
|
|
86
|
-
</template>
|
|
87
|
-
</el-table-column>
|
|
88
|
-
<el-table-column
|
|
89
|
-
width="100px"
|
|
90
|
-
align="center"
|
|
91
|
-
label="任务名称"
|
|
92
|
-
prop="jobName"
|
|
93
|
-
sortable
|
|
94
|
-
>
|
|
95
|
-
</el-table-column>
|
|
96
|
-
<el-table-column
|
|
97
|
-
width="100px"
|
|
98
|
-
align="center"
|
|
99
|
-
label="执行方法"
|
|
100
|
-
prop="methodName"
|
|
101
|
-
sortable
|
|
102
|
-
>
|
|
103
|
-
</el-table-column>
|
|
104
|
-
<el-table-column
|
|
105
|
-
width="100px"
|
|
106
|
-
align="center"
|
|
107
|
-
label="参数名称"
|
|
108
|
-
prop="params"
|
|
109
|
-
sortable
|
|
110
|
-
>
|
|
111
|
-
</el-table-column>
|
|
112
|
-
<el-table-column
|
|
113
|
-
width="100px"
|
|
114
|
-
align="center"
|
|
115
|
-
label="备注"
|
|
116
|
-
prop="remark"
|
|
117
|
-
sortable
|
|
118
|
-
>
|
|
119
|
-
</el-table-column>
|
|
120
|
-
</hd-com-grid>
|
|
121
|
-
</el-main>
|
|
122
|
-
<comquartzjobform
|
|
123
|
-
ref="comquartzjobform"
|
|
124
|
-
@save-ok="$refs.grid.doQuery()"
|
|
125
|
-
></comquartzjobform>
|
|
126
|
-
</el-container>
|
|
127
|
-
</template>
|
|
128
|
-
|
|
129
|
-
<script>
|
|
130
|
-
import { Search as ElIconSearch, Edit as ElIconEdit } from '@element-plus/icons-vue'
|
|
131
|
-
import comquartzjobform from './comquartzjobform'
|
|
132
|
-
export default {
|
|
133
|
-
data() {
|
|
134
|
-
return {
|
|
135
|
-
hdQuery: new HdQuery(this),
|
|
136
|
-
ElIconSearch,
|
|
137
|
-
ElIconEdit,
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
name: 'comquartzjob',
|
|
141
|
-
components: { comquartzjobform },
|
|
142
|
-
mounted() {},
|
|
143
|
-
methods: {
|
|
144
|
-
doEdit(qjId) {
|
|
145
|
-
// 增加或编辑
|
|
146
|
-
this.$refs['comquartzjobform'].show(qjId)
|
|
147
|
-
},
|
|
148
|
-
},
|
|
149
|
-
}
|
|
150
|
-
</script>
|