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,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">{{ $t('取 消') }}</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>
|
|
@@ -1,38 +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
|
-
<authOrgn ref="authOrgn" @change="change"></authOrgn>
|
|
8
|
-
</el-main>
|
|
9
|
-
</el-container>
|
|
10
|
-
</template>
|
|
11
|
-
|
|
12
|
-
<script>
|
|
13
|
-
import orgTree from './orgTree'
|
|
14
|
-
import authOrgn from './authOrgn'
|
|
15
|
-
|
|
16
|
-
export default {
|
|
17
|
-
name: 'orgDept',
|
|
18
|
-
components: {
|
|
19
|
-
orgTree,
|
|
20
|
-
authOrgn,
|
|
21
|
-
},
|
|
22
|
-
data() {
|
|
23
|
-
return {
|
|
24
|
-
parentId: '0',
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
methods: {
|
|
28
|
-
query: function (data) {
|
|
29
|
-
this.$refs['authOrgn'].queryOrg(data.id)
|
|
30
|
-
this.parentId = data.id
|
|
31
|
-
},
|
|
32
|
-
change: function (data) {
|
|
33
|
-
// console.log('change', data)
|
|
34
|
-
this.$refs['orgTree'].refresh(data)
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
}
|
|
38
|
-
</script>
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<hd-tree
|
|
3
|
-
ref="tree"
|
|
4
|
-
:show-checkbox="false"
|
|
5
|
-
:highlight-current="true"
|
|
6
|
-
:expand-on-click-node="false"
|
|
7
|
-
:data="hdResult"
|
|
8
|
-
:props="opts"
|
|
9
|
-
@node-click="handleNodeClick"
|
|
10
|
-
node-key="id"
|
|
11
|
-
:filter-node-method="filterNode"
|
|
12
|
-
:default-expanded-keys="defaultExpandedKeys"
|
|
13
|
-
></hd-tree>
|
|
14
|
-
</template>
|
|
15
|
-
|
|
16
|
-
<script>
|
|
17
|
-
export default {
|
|
18
|
-
name: 'orgTree',
|
|
19
|
-
data() {
|
|
20
|
-
return {
|
|
21
|
-
hdQuery: new HdQuery(this),
|
|
22
|
-
hdResult: [],
|
|
23
|
-
listLoading: true,
|
|
24
|
-
visible: false,
|
|
25
|
-
opts: {
|
|
26
|
-
label: 'text',
|
|
27
|
-
},
|
|
28
|
-
currentNodeData: {},
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
props: { idVal: String }, // 设置value为props属性-必须
|
|
32
|
-
mounted() {
|
|
33
|
-
this.doQuery()
|
|
34
|
-
},
|
|
35
|
-
methods: {
|
|
36
|
-
doQuery() {
|
|
37
|
-
// 显示loading框
|
|
38
|
-
this.listLoading = true
|
|
39
|
-
this.$http
|
|
40
|
-
.post('/webresources/login/privilege/AuthOrgn/gentree', this.hdQuery)
|
|
41
|
-
.then((response) => {
|
|
42
|
-
const data = response.data
|
|
43
|
-
this.hdResult = data
|
|
44
|
-
this.listLoading = false
|
|
45
|
-
})
|
|
46
|
-
},
|
|
47
|
-
handleNodeClick(data) {
|
|
48
|
-
this.$emit('org-node-click', data)
|
|
49
|
-
this.currentNodeData = data
|
|
50
|
-
},
|
|
51
|
-
refresh: function (data) {
|
|
52
|
-
const tree = this.$refs.tree.$refs.eltree
|
|
53
|
-
if (data.type === 'add') {
|
|
54
|
-
this.currentNodeData.children.push(data.data)
|
|
55
|
-
} else if (data.type === 'edit') {
|
|
56
|
-
const array = this.currentNodeData.children
|
|
57
|
-
for (let i = 0; i < array.length; i++) {
|
|
58
|
-
const obj = array[i]
|
|
59
|
-
if (obj.id === data.data.id) {
|
|
60
|
-
Object.assign(array[i], data.data)
|
|
61
|
-
break
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
} else if (data.type === 'remove') {
|
|
65
|
-
const array = this.currentNodeData.children
|
|
66
|
-
for (let i = 0; i < array.length; i++) {
|
|
67
|
-
const obj = array[i]
|
|
68
|
-
if (obj.id === data.data.id) {
|
|
69
|
-
array.splice(i, 1)
|
|
70
|
-
break
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
filterNode(value, data) {
|
|
76
|
-
if (!value) return true
|
|
77
|
-
return data.text.indexOf(value) !== -1
|
|
78
|
-
},
|
|
79
|
-
filter(val) {
|
|
80
|
-
this.$refs.tree.$refs.eltree.filter(val)
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
watch: {
|
|
84
|
-
// 都有值才适合查询
|
|
85
|
-
idVal: function (newVal) {
|
|
86
|
-
this.$refs.tree.$refs.eltree.setCurrentKey(this.idVal)
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
computed: {
|
|
90
|
-
// 给外层v-model赋值
|
|
91
|
-
defaultExpandedKeys() {
|
|
92
|
-
if (this.idVal) {
|
|
93
|
-
return [this.idVal]
|
|
94
|
-
}
|
|
95
|
-
return []
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
}
|
|
99
|
-
</script>
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<el-popover
|
|
4
|
-
:disabled="disabled"
|
|
5
|
-
placement="bottom-start"
|
|
6
|
-
ref="popSel"
|
|
7
|
-
v-model="visible"
|
|
8
|
-
>
|
|
9
|
-
<div :style="{ height: height }">
|
|
10
|
-
<orgTree :idVal="idVal" @org-node-click="doSel" ref="orgTree"></orgTree>
|
|
11
|
-
</div>
|
|
12
|
-
</el-popover>
|
|
13
|
-
<div>
|
|
14
|
-
<!--readonly 在选择区隐藏时,不能输入-->
|
|
15
|
-
<el-input
|
|
16
|
-
:clearable="false"
|
|
17
|
-
:disabled="disabled"
|
|
18
|
-
:placeholder="placeholder ? this.$t(placeholder) : this.$t('请选择')"
|
|
19
|
-
:readonly="!visible"
|
|
20
|
-
@focus="focus"
|
|
21
|
-
@mouseenter.native="doMouseEnter"
|
|
22
|
-
@mouseleave.native="doMouseLeave"
|
|
23
|
-
ref="sel"
|
|
24
|
-
v-model="searchVal"
|
|
25
|
-
v-popover:popSel
|
|
26
|
-
>
|
|
27
|
-
<el-icon class="el-input__icon" style="cursor: pointer"
|
|
28
|
-
><el-icon-circle-close
|
|
29
|
-
/></el-icon>
|
|
30
|
-
<el-icon class="el-input__icon" style="cursor: pointer"
|
|
31
|
-
><el-icon-more
|
|
32
|
-
/></el-icon>
|
|
33
|
-
</el-input>
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
</template>
|
|
37
|
-
|
|
38
|
-
<script>
|
|
39
|
-
import {
|
|
40
|
-
CircleClose as ElIconCircleClose,
|
|
41
|
-
More as ElIconMore,
|
|
42
|
-
} from '@element-plus/icons-vue'
|
|
43
|
-
import orgTree from './orgTree'
|
|
44
|
-
|
|
45
|
-
export default {
|
|
46
|
-
components: {
|
|
47
|
-
orgTree,
|
|
48
|
-
ElIconCircleClose,
|
|
49
|
-
ElIconMore,
|
|
50
|
-
},
|
|
51
|
-
name: 'orgnselect',
|
|
52
|
-
data() {
|
|
53
|
-
return {
|
|
54
|
-
threePointShow: true,
|
|
55
|
-
searchVal: this.txtVal,
|
|
56
|
-
// isFocus: false,
|
|
57
|
-
visible: false,
|
|
58
|
-
isFirst: true, // 是否第一次打开
|
|
59
|
-
searchHandler: Object,
|
|
60
|
-
isSoftFocus: false, // 点击弹窗内容时,input重新获得焦点,但是不能触发focus
|
|
61
|
-
// focusTime: 0
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
inheritAttrs: false,
|
|
65
|
-
/**
|
|
66
|
-
* Props 继承hd-com-grid的属性和事件
|
|
67
|
-
* @prop {String} txtVal 双向绑定 这里是为了clear清空用
|
|
68
|
-
* @prop {String} idVal 双向绑定 这里是为了clear清空用
|
|
69
|
-
* @prop {String} placeholder
|
|
70
|
-
* @prop {String} disabled 只读
|
|
71
|
-
* @prop {Object} hdQuery 查询封装类
|
|
72
|
-
* @prop {String} height 默认为40vh
|
|
73
|
-
* @prop {Function} beforeQuery 查询前的事件,通常需要绑定anyQuery
|
|
74
|
-
*/
|
|
75
|
-
// 设置value为props属性-必须
|
|
76
|
-
props: {
|
|
77
|
-
txtVal: String,
|
|
78
|
-
idVal: String,
|
|
79
|
-
placeholder: String,
|
|
80
|
-
disabled: Boolean,
|
|
81
|
-
hdQuery: Object,
|
|
82
|
-
url: String, // 全路径
|
|
83
|
-
height: {
|
|
84
|
-
// 高度
|
|
85
|
-
type: String,
|
|
86
|
-
default: '40vh',
|
|
87
|
-
},
|
|
88
|
-
beforeQuery: Function,
|
|
89
|
-
},
|
|
90
|
-
mounted() {
|
|
91
|
-
$(this.$parent.$el).find('.el-popover__reference').removeAttr('tabIndex') // 焦点用
|
|
92
|
-
},
|
|
93
|
-
methods: {
|
|
94
|
-
focus() {
|
|
95
|
-
// this.focusTime = new Date().getTime()
|
|
96
|
-
this.$emit('focus')
|
|
97
|
-
if (this.isSoftFocus) {
|
|
98
|
-
// click时
|
|
99
|
-
this.isSoftFocus = false // 点击时,防止焦点触发
|
|
100
|
-
return false
|
|
101
|
-
}
|
|
102
|
-
setTimeout(() => {
|
|
103
|
-
// 否则会和默认的冲突
|
|
104
|
-
this.visible = true
|
|
105
|
-
}, 150)
|
|
106
|
-
// this.isFocus = true
|
|
107
|
-
},
|
|
108
|
-
doClear() {
|
|
109
|
-
this.$emit('update:txtVal', '')
|
|
110
|
-
this.$emit('update:idVal', '')
|
|
111
|
-
this.$emit('clear')
|
|
112
|
-
},
|
|
113
|
-
doMouseEnter() {
|
|
114
|
-
if (this.disabled) {
|
|
115
|
-
return false
|
|
116
|
-
}
|
|
117
|
-
if (this.idVal) {
|
|
118
|
-
this.threePointShow = false
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
doMouseLeave() {
|
|
122
|
-
this.threePointShow = true
|
|
123
|
-
},
|
|
124
|
-
doSel(data) {
|
|
125
|
-
this.$emit('update:txtVal', data.text)
|
|
126
|
-
this.$emit('update:idVal', data.id)
|
|
127
|
-
this.visible = false
|
|
128
|
-
},
|
|
129
|
-
},
|
|
130
|
-
watch: {
|
|
131
|
-
// searchVal: function(newVal) {
|
|
132
|
-
// this.$refs.orgTree.filter(newVal)
|
|
133
|
-
// // this.visible = true
|
|
134
|
-
// },
|
|
135
|
-
txtVal: function (newVal) {
|
|
136
|
-
this.searchVal = this.txtVal
|
|
137
|
-
},
|
|
138
|
-
visible: function (newVal) {
|
|
139
|
-
console.log('newVal', newVal)
|
|
140
|
-
console.log(this.$refs.orgTree)
|
|
141
|
-
if (newVal) {
|
|
142
|
-
this.$refs.orgTree.filter('')
|
|
143
|
-
} else {
|
|
144
|
-
this.searchVal = this.txtVal
|
|
145
|
-
}
|
|
146
|
-
},
|
|
147
|
-
},
|
|
148
|
-
}
|
|
149
|
-
</script>
|
|
150
|
-
|
|
151
|
-
<style>
|
|
152
|
-
.lucencyInput .el-input__inner {
|
|
153
|
-
border: 0px;
|
|
154
|
-
}
|
|
155
|
-
</style>
|
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-container>
|
|
3
|
-
<el-main>
|
|
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
|
-
>
|
|
15
|
-
<div class="filter-container" slot="query">
|
|
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
|
-
>
|
|
23
|
-
</el-input>
|
|
24
|
-
<el-button
|
|
25
|
-
@click="$refs.grid.doQuery()"
|
|
26
|
-
class="filter-item"
|
|
27
|
-
keyType="query"
|
|
28
|
-
>
|
|
29
|
-
{{ $t('搜索') }}
|
|
30
|
-
</el-button>
|
|
31
|
-
<el-button
|
|
32
|
-
@click="doEdit('')"
|
|
33
|
-
class="filter-item"
|
|
34
|
-
keyType="add"
|
|
35
|
-
type="primary"
|
|
36
|
-
vid="add"
|
|
37
|
-
>{{ $t('新增') }}
|
|
38
|
-
</el-button>
|
|
39
|
-
<el-button
|
|
40
|
-
@click="$refs.grid.doRemoveAll()"
|
|
41
|
-
class="filter-item"
|
|
42
|
-
keyType="remove"
|
|
43
|
-
type="danger"
|
|
44
|
-
>{{ $t('删除') }}
|
|
45
|
-
</el-button>
|
|
46
|
-
</div>
|
|
47
|
-
<el-table-column
|
|
48
|
-
align="center"
|
|
49
|
-
fixed="right"
|
|
50
|
-
label="操作"
|
|
51
|
-
width="110px"
|
|
52
|
-
>
|
|
53
|
-
<template slot-scope="scope">
|
|
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
|
-
>
|
|
75
|
-
</hd-btn>
|
|
76
|
-
</template>
|
|
77
|
-
</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
|
-
>
|
|
86
|
-
</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
|
-
>
|
|
95
|
-
</el-table-column>
|
|
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
|
-
>
|
|
106
|
-
</el-table-column>
|
|
107
|
-
<el-table-column
|
|
108
|
-
align="center"
|
|
109
|
-
label="账号过期日期"
|
|
110
|
-
prop="accountPassDate"
|
|
111
|
-
sortable
|
|
112
|
-
width="auto"
|
|
113
|
-
>
|
|
114
|
-
</el-table-column>
|
|
115
|
-
<el-table-column
|
|
116
|
-
align="center"
|
|
117
|
-
label="密码修改时间"
|
|
118
|
-
prop="pwModifyTim"
|
|
119
|
-
sortable
|
|
120
|
-
width="auto"
|
|
121
|
-
>
|
|
122
|
-
</el-table-column>
|
|
123
|
-
</hd-com-grid>
|
|
124
|
-
</el-main>
|
|
125
|
-
<authuserform
|
|
126
|
-
@save-ok="$refs.grid.doQuery()"
|
|
127
|
-
ref="authuserform"
|
|
128
|
-
:exFieldCode="exField.gridCode"
|
|
129
|
-
></authuserform>
|
|
130
|
-
<facerec ref="facerec"></facerec>
|
|
131
|
-
</el-container>
|
|
132
|
-
</template>
|
|
133
|
-
|
|
134
|
-
<script>
|
|
135
|
-
import authuserform from './authuserform'
|
|
136
|
-
import facerec from './facerec'
|
|
137
|
-
|
|
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',
|
|
158
|
-
},
|
|
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
|
-
{
|
|
179
|
-
confirmButtonText: this.$t('确定'),
|
|
180
|
-
cancelButtonText: this.$t('取消'),
|
|
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()
|
|
200
|
-
})
|
|
201
|
-
})
|
|
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'],
|
|
223
|
-
}
|
|
224
|
-
console.log(r)
|
|
225
|
-
return r
|
|
226
|
-
},
|
|
227
|
-
},
|
|
228
|
-
}
|
|
229
|
-
</script>
|