hd-idevvue3 3.0.7 → 3.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{static/js/index-DbUA6jg0.js → index.js} +1 -1
- package/package.json +7 -2
- package/.env.development +0 -5
- package/.env.production +0 -5
- package/.eslintrc.js +0 -151
- package/dist/static/js/index-Dl4O91nB.js +0 -73768
- package/index.html +0 -18
- package/pnpm-lock.yaml +0 -3541
- package/src/App.vue +0 -11
- package/src/assets/sound/notify.wav +0 -0
- package/src/demo/demo.vue +0 -42
- package/src/demo/dropdemo.vue +0 -42
- package/src/demo/extsets.vue +0 -208
- package/src/demo/formedit.vue +0 -157
- package/src/demo/hightquery.vue +0 -366
- package/src/demo/inlineedit.vue +0 -182
- package/src/demo/selfdrop.vue +0 -58
- package/src/demo//350/241/214/345/206/205/347/272/247/350/201/224.txt +0 -2
- package/src/directive/el-dragDialog/drag.js +0 -124
- package/src/directive/el-dragDialog/index.js +0 -13
- package/src/errorLog.js +0 -16
- package/src/hdcom/BigGrid.js +0 -179
- package/src/hdcom/BillShow.vue +0 -111
- package/src/hdcom/BillUpload.vue +0 -311
- package/src/hdcom/BtnRight.vue +0 -101
- package/src/hdcom/ErrHint.vue +0 -42
- package/src/hdcom/ExtendColumn.vue +0 -115
- package/src/hdcom/ExtendCommon.js +0 -40
- package/src/hdcom/ExtendForm.vue +0 -141
- package/src/hdcom/FacePicUpload.vue +0 -80
- package/src/hdcom/FaceRecTest.vue +0 -114
- package/src/hdcom/GridChart.vue +0 -207
- package/src/hdcom/GridExField.vue +0 -375
- package/src/hdcom/GridShow.vue +0 -288
- package/src/hdcom/HdAside.vue +0 -225
- package/src/hdcom/HdBtn.vue +0 -125
- package/src/hdcom/HdButton.vue +0 -161
- package/src/hdcom/HdComFaceRec.vue +0 -106
- package/src/hdcom/HdComGrid.vue +0 -876
- package/src/hdcom/HdComQuery.vue +0 -362
- package/src/hdcom/HdComQueryDetail.vue +0 -205
- package/src/hdcom/HdComSortDetail.vue +0 -161
- package/src/hdcom/HdDatePicker.vue +0 -94
- package/src/hdcom/HdDialog.vue +0 -81
- package/src/hdcom/HdDrop.vue +0 -188
- package/src/hdcom/HdFileUpload.vue +0 -167
- package/src/hdcom/HdFilterBox.vue +0 -90
- package/src/hdcom/HdFooter.vue +0 -182
- package/src/hdcom/HdForm.vue +0 -351
- package/src/hdcom/HdFormBtn.vue +0 -131
- package/src/hdcom/HdFormItem.vue +0 -39
- package/src/hdcom/HdGctosGrid +0 -0
- package/src/hdcom/HdGrid.vue +0 -1022
- package/src/hdcom/HdGridEditBtn.vue +0 -58
- package/src/hdcom/HdGridExt.js +0 -250
- package/src/hdcom/HdGridSel.vue +0 -257
- package/src/hdcom/HdHeader.vue +0 -180
- package/src/hdcom/HdHotKey.vue +0 -84
- package/src/hdcom/HdInputHint.vue +0 -53
- package/src/hdcom/HdMain.vue +0 -41
- package/src/hdcom/HdMessage.vue +0 -201
- package/src/hdcom/HdNum.vue +0 -79
- package/src/hdcom/HdPopSel.vue +0 -80
- package/src/hdcom/HdRightMenu.vue +0 -63
- package/src/hdcom/HdSel/SelGridFieldcod.vue +0 -54
- package/src/hdcom/HdTableColumn.vue +0 -381
- package/src/hdcom/HdTempSave.vue +0 -162
- package/src/hdcom/HdTree.vue +0 -103
- package/src/hdcom/HdTreeTable/eval.js +0 -39
- package/src/hdcom/HdTreeTable/index.vue +0 -229
- package/src/hdcom/ImportExcel.vue +0 -178
- package/src/hdcom/index.js +0 -75
- package/src/idev.common.js +0 -79
- package/src/index.js +0 -11
- package/src/utils/HdQuery.js +0 -65
- package/src/utils/comutils.js +0 -120
- package/src/utils/gogocodeTransfer.js +0 -59
- package/src/utils/utils.js +0 -116
- package/src/vendor/Blob.js +0 -187
- package/src/vendor/Export2Excel.js +0 -231
- package/src/vendor/Export2Zip.js +0 -25
- package/src/views/layout/AppMain.vue +0 -34
- package/src/views/layout/HdLayout.vue +0 -90
- package/src/views/layout/header/ElasticSearch.vue +0 -262
- package/src/views/layout/header/HZRecorder.js +0 -259
- package/src/views/layout/header/HeaderSearch.vue +0 -218
- package/src/views/layout/header/Levelbar.vue +0 -55
- package/src/views/layout/header/MainHeader.vue +0 -315
- package/src/views/layout/header/Navbar.vue +0 -101
- package/src/views/layout/header/ScrollPane.vue +0 -103
- package/src/views/layout/header/TagsView.vue +0 -215
- package/src/views/layout/header/VocRec.vue +0 -105
- package/src/views/layout/header/changepswform.vue +0 -130
- package/src/views/layout/index.js +0 -10
- package/src/views/layout/menu/Hamburger.vue +0 -63
- package/src/views/layout/menu/HdMenu.vue +0 -204
- package/src/views/layout/menu/css/menu.css +0 -288
- package/src/views/layout/menu/index.vue +0 -27
- package/src/views/privilege/commsg/commsg.vue +0 -152
- package/src/views/privilege/commsg/commsgOrgn.vue +0 -51
- package/src/views/privilege/commsg/commsgRole.vue +0 -220
- package/src/views/privilege/commsg/commsgform.vue +0 -184
- package/src/views/privilege/commsg/commsgiframe.vue +0 -40
- package/src/views/privilege/commsg/commsgto.vue +0 -199
- package/src/views/privilege/commsg/commsgtoform.vue +0 -114
- package/src/views/privilege/commsg/commsgtrans.vue +0 -227
- package/src/views/privilege/exfield/comexcolumn.vue +0 -161
- package/src/views/privilege/exfield/comexcolumnform.vue +0 -128
- package/src/views/privilege/exfield/comexfield.vue +0 -29
- package/src/views/privilege/exfield/comexfieldform.vue +0 -112
- package/src/views/privilege/exfield/comexfieldsub.vue +0 -163
- package/src/views/privilege/index.js +0 -41
- package/src/views/privilege/menu/comMenu.vue +0 -49
- package/src/views/privilege/menu/menu.vue +0 -250
- package/src/views/privilege/menu/menuinfo.vue +0 -63
- package/src/views/privilege/menu/rolelist.vue +0 -92
- package/src/views/privilege/menu/userlist.vue +0 -92
- package/src/views/privilege/mobile/authmobileupdate.vue +0 -145
- package/src/views/privilege/mobile/authmobileupdateform.vue +0 -120
- package/src/views/privilege/orgDept/authOrgn.vue +0 -188
- package/src/views/privilege/orgDept/authorgnform.vue +0 -157
- package/src/views/privilege/orgDept/orgDept.vue +0 -38
- package/src/views/privilege/orgDept/orgTree.vue +0 -99
- package/src/views/privilege/orgDept/orgnselect.vue +0 -155
- package/src/views/privilege/personDept/authuser.vue +0 -229
- package/src/views/privilege/personDept/authuserform.vue +0 -206
- package/src/views/privilege/personDept/facerec.vue +0 -162
- package/src/views/privilege/personDept/orgncascader.vue +0 -144
- package/src/views/privilege/personDept/personDept.vue +0 -33
- package/src/views/privilege/quartz/comquartzjob.vue +0 -150
- package/src/views/privilege/quartz/comquartzjobform.vue +0 -115
- package/src/views/privilege/quartz/comquartzlog.vue +0 -143
- package/src/views/privilege/role/btnRole.vue +0 -173
- package/src/views/privilege/role/menuRole.vue +0 -84
- package/src/views/privilege/role/orgnRole.vue +0 -78
- package/src/views/privilege/role/role.vue +0 -84
- package/src/views/privilege/role/rolelist.vue +0 -136
- package/src/views/privilege/role/roleselect.vue +0 -74
- package/src/views/privilege/search/comsearch.vue +0 -196
- package/src/views/privilege/search/menu.vue +0 -68
- package/src/views/privilege/syscode/syscode.vue +0 -191
- package/src/views/privilege/syscode/sysfield.vue +0 -119
- package/src/views/privilege/syscode/sysfieldframe.vue +0 -30
- package/src/views/privilege/syslog/menulog.vue +0 -68
- package/src/views/privilege/syslog/syslog.vue +0 -182
- package/src/views/privilege/syslog/syslogconfig.vue +0 -128
- package/src/views/privilege/syslog/syslogform.vue +0 -85
- package/src/views/privilege/syslog/syslogframe.vue +0 -26
- package/src/views/privilege/userRole/userRole.vue +0 -220
- package/vite.config.js +0 -124
- /package/dist/{static/css/index-DRHIlcVU.css → index.css} +0 -0
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-container>
|
|
3
|
-
<el-main>
|
|
4
|
-
<hd-com-grid
|
|
5
|
-
ref="grid"
|
|
6
|
-
:hdQuery="hdQuery"
|
|
7
|
-
url="/webresources/login/privilege/SysField/vue"
|
|
8
|
-
@row-click="rowClick"
|
|
9
|
-
recHide
|
|
10
|
-
:defaultSort="{}"
|
|
11
|
-
>
|
|
12
|
-
<div class="filter-container" slot="query">
|
|
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
|
-
>
|
|
21
|
-
</el-input>
|
|
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
|
-
>
|
|
36
|
-
</div>
|
|
37
|
-
<el-table-column width="60px" align="center" label="操作" fixed="right">
|
|
38
|
-
<template slot-scope="scope">
|
|
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('编辑') }}
|
|
46
|
-
</hd-btn>
|
|
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" />
|
|
53
|
-
</hd-btn>
|
|
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('保存') }}
|
|
61
|
-
</hd-btn>
|
|
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('删除') }}
|
|
69
|
-
</hd-btn>
|
|
70
|
-
</template>
|
|
71
|
-
</el-table-column>
|
|
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
|
-
>
|
|
81
|
-
</el-table-column>
|
|
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
|
-
>
|
|
91
|
-
</el-table-column>
|
|
92
|
-
</hd-com-grid>
|
|
93
|
-
</el-main>
|
|
94
|
-
</el-container>
|
|
95
|
-
</template>
|
|
96
|
-
|
|
97
|
-
<script>
|
|
98
|
-
import { Search as ElIconSearch } from '@element-plus/icons-vue'
|
|
99
|
-
export default {
|
|
100
|
-
data() {
|
|
101
|
-
return {
|
|
102
|
-
hdQuery: new HdQuery(this),
|
|
103
|
-
ElIconSearch,
|
|
104
|
-
}
|
|
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
|
-
}
|
|
119
|
-
</script>
|
|
@@ -1,30 +0,0 @@
|
|
|
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,68 +0,0 @@
|
|
|
1
|
-
<template>
|
|
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>
|
|
14
|
-
</div>
|
|
15
|
-
</template>
|
|
16
|
-
|
|
17
|
-
<script>
|
|
18
|
-
export default {
|
|
19
|
-
components: {},
|
|
20
|
-
name: 'menuRole',
|
|
21
|
-
data: function () {
|
|
22
|
-
return {
|
|
23
|
-
hdTree: [],
|
|
24
|
-
listLoading: false,
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
mounted() {
|
|
28
|
-
// 因为外层通过v-if控制
|
|
29
|
-
this.doQuery()
|
|
30
|
-
},
|
|
31
|
-
methods: {
|
|
32
|
-
doQuery() {
|
|
33
|
-
this.listLoading = true
|
|
34
|
-
|
|
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
|
-
})
|
|
42
|
-
},
|
|
43
|
-
save() {
|
|
44
|
-
const os = this.$refs.menuTree.getCheckedNodes()
|
|
45
|
-
let privilegeIds = ''
|
|
46
|
-
for (let i = 0; i < os.length; i++) {
|
|
47
|
-
if (os[i].id == -1) {
|
|
48
|
-
// 总根节点不处理
|
|
49
|
-
continue
|
|
50
|
-
}
|
|
51
|
-
privilegeIds = privilegeIds + os[i].id + ','
|
|
52
|
-
}
|
|
53
|
-
this.$http
|
|
54
|
-
.post(`/webresources/login/privilege/SysLogConfigVue/saveMenuConfig`, {
|
|
55
|
-
privilegeIds: privilegeIds,
|
|
56
|
-
})
|
|
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
|
-
},
|
|
65
|
-
},
|
|
66
|
-
watch: {},
|
|
67
|
-
}
|
|
68
|
-
</script>
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-container>
|
|
3
|
-
<el-aside style="border-right: 1px solid #eee" width="260px">
|
|
4
|
-
<hd-tree
|
|
5
|
-
:data="data"
|
|
6
|
-
@node-click="handleNodeClick"
|
|
7
|
-
node-key="id"
|
|
8
|
-
></hd-tree>
|
|
9
|
-
</el-aside>
|
|
10
|
-
<el-main>
|
|
11
|
-
<hd-com-grid
|
|
12
|
-
:hdQuery="hdQuery"
|
|
13
|
-
ref="grid"
|
|
14
|
-
url="/webresources/login/privilege/SysLog/"
|
|
15
|
-
visualScroll
|
|
16
|
-
:pageSizes="[100, 500, 1000, 5000, 10000]"
|
|
17
|
-
@row-dblclick="(row) => this.$refs.syslogform.show(row.logId)"
|
|
18
|
-
>
|
|
19
|
-
<div class="filter-container" slot="query">
|
|
20
|
-
<el-input
|
|
21
|
-
@keyup.enter.native="$refs.grid.doQuery()"
|
|
22
|
-
class="filter-item"
|
|
23
|
-
:placeholder="$t('实体名、修改人')"
|
|
24
|
-
style="width: 200px"
|
|
25
|
-
v-model="hdQuery.query.anyQuery"
|
|
26
|
-
>
|
|
27
|
-
</el-input>
|
|
28
|
-
<el-button
|
|
29
|
-
@click="$refs.grid.doRemoveAll()"
|
|
30
|
-
class="filter-item"
|
|
31
|
-
keyType="del"
|
|
32
|
-
ref="del"
|
|
33
|
-
type="danger"
|
|
34
|
-
>{{ $t('删除') }}
|
|
35
|
-
</el-button>
|
|
36
|
-
</div>
|
|
37
|
-
<el-table-column align="center" fixed="right" label="操作" width="60px">
|
|
38
|
-
<template slot-scope="scope">
|
|
39
|
-
<hd-btn
|
|
40
|
-
@click.stop="$refs.grid.doRemove(scope.row)"
|
|
41
|
-
hint="删除"
|
|
42
|
-
icon="el-icon-delete"
|
|
43
|
-
>
|
|
44
|
-
{{ $t('删除') }}
|
|
45
|
-
</hd-btn>
|
|
46
|
-
<hd-btn
|
|
47
|
-
@click.stop="$refs.syslogform.show(scope.row.logId)"
|
|
48
|
-
hint="查看"
|
|
49
|
-
icon="el-icon-search"
|
|
50
|
-
>
|
|
51
|
-
{{ $t('查看') }}
|
|
52
|
-
</hd-btn>
|
|
53
|
-
</template>
|
|
54
|
-
</el-table-column>
|
|
55
|
-
<!-- <el-table-column label="详细" type="expand">
|
|
56
|
-
<template slot-scope="props">
|
|
57
|
-
|
|
58
|
-
<div style="width: 800px;word-wrap:break-word;">{{ props.row.logContent }}</div>
|
|
59
|
-
|
|
60
|
-
</template>
|
|
61
|
-
</el-table-column>-->
|
|
62
|
-
<el-table-column
|
|
63
|
-
align="left"
|
|
64
|
-
header-align="center"
|
|
65
|
-
label="实体名"
|
|
66
|
-
prop="entityName"
|
|
67
|
-
sortable
|
|
68
|
-
width="350px"
|
|
69
|
-
>
|
|
70
|
-
</el-table-column>
|
|
71
|
-
<el-table-column
|
|
72
|
-
align="left"
|
|
73
|
-
header-align="center"
|
|
74
|
-
label="菜单名"
|
|
75
|
-
prop="menuName"
|
|
76
|
-
sortable
|
|
77
|
-
width="100px"
|
|
78
|
-
>
|
|
79
|
-
</el-table-column>
|
|
80
|
-
<el-table-column
|
|
81
|
-
align="left"
|
|
82
|
-
header-align="center"
|
|
83
|
-
label="修改人"
|
|
84
|
-
prop="recNam"
|
|
85
|
-
sortable
|
|
86
|
-
width="140px"
|
|
87
|
-
>
|
|
88
|
-
</el-table-column>
|
|
89
|
-
<el-table-column
|
|
90
|
-
align="left"
|
|
91
|
-
header-align="center"
|
|
92
|
-
label="日志类型"
|
|
93
|
-
prop="logTypeStr"
|
|
94
|
-
sortable
|
|
95
|
-
width="100px"
|
|
96
|
-
>
|
|
97
|
-
</el-table-column>
|
|
98
|
-
<el-table-column
|
|
99
|
-
align="left"
|
|
100
|
-
header-align="center"
|
|
101
|
-
label="ip及路径"
|
|
102
|
-
prop="userIp"
|
|
103
|
-
sortable
|
|
104
|
-
width="180px"
|
|
105
|
-
>
|
|
106
|
-
</el-table-column>
|
|
107
|
-
</hd-com-grid>
|
|
108
|
-
</el-main>
|
|
109
|
-
<syslogform ref="syslogform"></syslogform>
|
|
110
|
-
</el-container>
|
|
111
|
-
</template>
|
|
112
|
-
|
|
113
|
-
<script>
|
|
114
|
-
import Syslogform from './syslogform'
|
|
115
|
-
|
|
116
|
-
export default {
|
|
117
|
-
components: { Syslogform },
|
|
118
|
-
data() {
|
|
119
|
-
return {
|
|
120
|
-
data: [],
|
|
121
|
-
parentId: '', // 选中的树节点
|
|
122
|
-
hdQuery: new HdQuery(this),
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
mounted() {
|
|
126
|
-
this.doQuery()
|
|
127
|
-
// this.$refs.grid.doEdit = function () { 重写doEdit
|
|
128
|
-
// console.info(this.$options.name)
|
|
129
|
-
// }
|
|
130
|
-
},
|
|
131
|
-
methods: {
|
|
132
|
-
doQuery() {
|
|
133
|
-
this.$http
|
|
134
|
-
.post('/webresources/login/privilege/AuthPrivilege/getAllTree')
|
|
135
|
-
.then((response) => {
|
|
136
|
-
this.data = response.data
|
|
137
|
-
})
|
|
138
|
-
},
|
|
139
|
-
doListQuery() {
|
|
140
|
-
this.hdQuery.query.menuId = this.parentId
|
|
141
|
-
this.$refs.grid.doQuery()
|
|
142
|
-
},
|
|
143
|
-
handleNodeClick(obj) {
|
|
144
|
-
this.parentId = obj.id
|
|
145
|
-
this.doListQuery()
|
|
146
|
-
},
|
|
147
|
-
doEdit(row) {
|
|
148
|
-
if (!row && !this.parentId) {
|
|
149
|
-
// 新增
|
|
150
|
-
this.$message({
|
|
151
|
-
type: 'error',
|
|
152
|
-
message: this.$t('未选择数据'),
|
|
153
|
-
})
|
|
154
|
-
return false
|
|
155
|
-
}
|
|
156
|
-
// 调用父组件的
|
|
157
|
-
this.$refs.grid.doEdit(row)
|
|
158
|
-
},
|
|
159
|
-
},
|
|
160
|
-
computed: {
|
|
161
|
-
// 给外层v-model赋值
|
|
162
|
-
validate() {
|
|
163
|
-
return {
|
|
164
|
-
text: [
|
|
165
|
-
{ message: this.$t('权限名必填'), required: true },
|
|
166
|
-
{ max: 50, message: this.$t('名称长度不能超过50个字符') },
|
|
167
|
-
],
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
findUrl() {
|
|
171
|
-
// 因为查询的路径和默认的不一致,如果代码生成器生成其实不需要写
|
|
172
|
-
return '/webresources/login/privilege/AuthPrivilege/find'
|
|
173
|
-
},
|
|
174
|
-
findoneUrl() {
|
|
175
|
-
// 需要关联节点,所以需要写url,普通列表也不需要写
|
|
176
|
-
return (
|
|
177
|
-
'/webresources/login/privilegeVue/findone?parentId=' + this.parentId
|
|
178
|
-
)
|
|
179
|
-
},
|
|
180
|
-
},
|
|
181
|
-
}
|
|
182
|
-
</script>
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-container>
|
|
3
|
-
<el-main>
|
|
4
|
-
<hd-com-grid
|
|
5
|
-
ref="grid"
|
|
6
|
-
:hdQuery="hdQuery"
|
|
7
|
-
url="/webresources/login/privilege/SysLogConfigVue"
|
|
8
|
-
noCopy="codeId"
|
|
9
|
-
>
|
|
10
|
-
<div class="filter-container" slot="query">
|
|
11
|
-
<el-input
|
|
12
|
-
@keyup.enter.native="$refs.grid.doQuery()"
|
|
13
|
-
:suffix-icon="ElIconSearch"
|
|
14
|
-
style="width: 200px; float: right"
|
|
15
|
-
class="filter-item"
|
|
16
|
-
:placeholder="$t('名称、代码')"
|
|
17
|
-
v-model="hdQuery.query.anyQuery"
|
|
18
|
-
>
|
|
19
|
-
</el-input>
|
|
20
|
-
<el-button
|
|
21
|
-
class="filter-item"
|
|
22
|
-
@click="$refs.grid.doEdit('')"
|
|
23
|
-
type="primary"
|
|
24
|
-
keyType="add"
|
|
25
|
-
>{{ $t('新增') }}
|
|
26
|
-
</el-button>
|
|
27
|
-
<el-button
|
|
28
|
-
class="filter-item"
|
|
29
|
-
@click="$refs.grid.doRemoveAll()"
|
|
30
|
-
type="danger"
|
|
31
|
-
keyType="del"
|
|
32
|
-
>{{ $t('删除') }}
|
|
33
|
-
</el-button>
|
|
34
|
-
<el-button
|
|
35
|
-
class="filter-item"
|
|
36
|
-
@click="$refs.grid.doSaveAll()"
|
|
37
|
-
type="danger"
|
|
38
|
-
keyType="save"
|
|
39
|
-
>{{ $t('保存') }}
|
|
40
|
-
</el-button>
|
|
41
|
-
</div>
|
|
42
|
-
<el-table-column width="60px" align="center" label="操作" fixed="right">
|
|
43
|
-
<template slot-scope="scope">
|
|
44
|
-
<hd-btn
|
|
45
|
-
icon="el-icon-edit"
|
|
46
|
-
hint="编辑"
|
|
47
|
-
@click.stop="$refs.grid.doEdit(scope.row)"
|
|
48
|
-
v-if="!scope.row.isEdit"
|
|
49
|
-
>
|
|
50
|
-
</hd-btn>
|
|
51
|
-
<hd-btn
|
|
52
|
-
hint="撤销"
|
|
53
|
-
@click.stop="$refs.grid.doCancel(scope.row, scope.$index)"
|
|
54
|
-
v-if="scope.row.isEdit"
|
|
55
|
-
>
|
|
56
|
-
<svg-icon icon-class="undo" />
|
|
57
|
-
</hd-btn>
|
|
58
|
-
<hd-btn
|
|
59
|
-
icon="el-icon-check"
|
|
60
|
-
hint="保存"
|
|
61
|
-
@click.stop="$refs.grid.doSave(scope.row)"
|
|
62
|
-
v-if="scope.row.isEdit"
|
|
63
|
-
>
|
|
64
|
-
</hd-btn>
|
|
65
|
-
<hd-btn
|
|
66
|
-
icon="el-icon-delete"
|
|
67
|
-
hint="删除"
|
|
68
|
-
@click.stop="$refs.grid.doRemove(scope.row)"
|
|
69
|
-
v-if="!scope.row.isEdit"
|
|
70
|
-
>
|
|
71
|
-
</hd-btn>
|
|
72
|
-
</template>
|
|
73
|
-
</el-table-column>
|
|
74
|
-
<el-table-column
|
|
75
|
-
width="120px"
|
|
76
|
-
align="left"
|
|
77
|
-
header-align="center"
|
|
78
|
-
label="名称"
|
|
79
|
-
prop="entyName"
|
|
80
|
-
sortable
|
|
81
|
-
:rules="$r(1, 0, 36)"
|
|
82
|
-
>
|
|
83
|
-
</el-table-column>
|
|
84
|
-
<el-table-column
|
|
85
|
-
width="420px"
|
|
86
|
-
align="left"
|
|
87
|
-
header-align="center"
|
|
88
|
-
label="实体Code"
|
|
89
|
-
prop="entyCode"
|
|
90
|
-
sortable
|
|
91
|
-
:rules="$r(1, 0, 150)"
|
|
92
|
-
>
|
|
93
|
-
</el-table-column>
|
|
94
|
-
<el-table-column
|
|
95
|
-
align="center"
|
|
96
|
-
label="开启日志"
|
|
97
|
-
prop="isLog"
|
|
98
|
-
sortable
|
|
99
|
-
input="el-switch"
|
|
100
|
-
width="100px"
|
|
101
|
-
:inputProp="{ activeValue: '1', inactiveValue: '0' }"
|
|
102
|
-
:inputFormat="$ckFt"
|
|
103
|
-
>
|
|
104
|
-
</el-table-column>
|
|
105
|
-
</hd-com-grid>
|
|
106
|
-
</el-main>
|
|
107
|
-
</el-container>
|
|
108
|
-
</template>
|
|
109
|
-
|
|
110
|
-
<script>
|
|
111
|
-
import { Search as ElIconSearch } from '@element-plus/icons-vue'
|
|
112
|
-
export default {
|
|
113
|
-
data() {
|
|
114
|
-
return {
|
|
115
|
-
hdQuery: new HdQuery(this),
|
|
116
|
-
ElIconSearch,
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
// mounted() {
|
|
120
|
-
// this.doQuery()
|
|
121
|
-
// },
|
|
122
|
-
props: {},
|
|
123
|
-
methods: {},
|
|
124
|
-
computed: {
|
|
125
|
-
// 给外层v-model赋值
|
|
126
|
-
},
|
|
127
|
-
}
|
|
128
|
-
</script>
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-dialog title="编辑" :visible.sync="visible" width="60%">
|
|
3
|
-
<el-form label-width="100px" :model="hdform" ref="hdform">
|
|
4
|
-
<el-row>
|
|
5
|
-
<el-col :span="8" :xs="16">
|
|
6
|
-
<el-form-item label="实体名" prop="entityName" :rules="$r(0, 0, 256)">
|
|
7
|
-
<el-input type="text" v-model="hdform.entityName"></el-input>
|
|
8
|
-
</el-form-item>
|
|
9
|
-
</el-col>
|
|
10
|
-
<el-col :span="8" :xs="16">
|
|
11
|
-
<el-form-item label="菜单名" prop="menuName">
|
|
12
|
-
<el-input type="text" v-model="hdform.menuName"></el-input>
|
|
13
|
-
</el-form-item>
|
|
14
|
-
</el-col>
|
|
15
|
-
<el-col :span="8" :xs="16">
|
|
16
|
-
<el-form-item label="日志类型" prop="logTypeStr">
|
|
17
|
-
<el-input type="text" v-model="hdform.logTypeStr"></el-input>
|
|
18
|
-
</el-form-item>
|
|
19
|
-
</el-col>
|
|
20
|
-
<el-col :span="24" :xs="16">
|
|
21
|
-
<el-form-item label="日志内容" prop="logContent">
|
|
22
|
-
<el-input
|
|
23
|
-
type="textarea"
|
|
24
|
-
:rows="10"
|
|
25
|
-
v-model="hdform.logContent"
|
|
26
|
-
></el-input>
|
|
27
|
-
</el-form-item>
|
|
28
|
-
</el-col>
|
|
29
|
-
<el-col :span="16" :xs="16">
|
|
30
|
-
<el-form-item label="ip及路径" prop="userIp">
|
|
31
|
-
<el-input type="text" v-model="hdform.userIp"></el-input>
|
|
32
|
-
</el-form-item>
|
|
33
|
-
</el-col>
|
|
34
|
-
<el-col :span="8" :xs="16">
|
|
35
|
-
<el-form-item label="创建人" prop="recNam">
|
|
36
|
-
<el-input type="text" v-model="hdform.recNam"></el-input>
|
|
37
|
-
</el-form-item>
|
|
38
|
-
</el-col>
|
|
39
|
-
<el-col :span="8" :xs="16">
|
|
40
|
-
<el-form-item label="创建时间" prop="recTim">
|
|
41
|
-
<el-input type="text" v-model="hdform.recTim"></el-input>
|
|
42
|
-
</el-form-item>
|
|
43
|
-
</el-col>
|
|
44
|
-
<el-col :span="8" :xs="16">
|
|
45
|
-
<el-form-item label="修改人" prop="updNam">
|
|
46
|
-
<el-input type="text" v-model="hdform.updNam"></el-input>
|
|
47
|
-
</el-form-item>
|
|
48
|
-
</el-col>
|
|
49
|
-
<el-col :span="8" :xs="16">
|
|
50
|
-
<el-form-item label="修改时间" prop="updTim">
|
|
51
|
-
<el-input type="text" v-model="hdform.updTim"></el-input>
|
|
52
|
-
</el-form-item>
|
|
53
|
-
</el-col>
|
|
54
|
-
</el-row>
|
|
55
|
-
</el-form>
|
|
56
|
-
</el-dialog>
|
|
57
|
-
</template>
|
|
58
|
-
|
|
59
|
-
<script>
|
|
60
|
-
export default {
|
|
61
|
-
name: 'syslogform',
|
|
62
|
-
data() {
|
|
63
|
-
return {
|
|
64
|
-
hdform: {},
|
|
65
|
-
visible: false,
|
|
66
|
-
tsLoading: false,
|
|
67
|
-
loading: false,
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
methods: {
|
|
71
|
-
show(logId) {
|
|
72
|
-
// 换为本表主键
|
|
73
|
-
//弹窗重复使用时,清除校验项目
|
|
74
|
-
if (this.$refs['hdform']) this.$refs['hdform'].resetFields()
|
|
75
|
-
this.visible = true
|
|
76
|
-
this.$http
|
|
77
|
-
.get('/webresources/login/privilege/SysLog/findone?logId=' + logId)
|
|
78
|
-
.then((response) => {
|
|
79
|
-
const data = response.data
|
|
80
|
-
this.hdform = data
|
|
81
|
-
})
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
}
|
|
85
|
-
</script>
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-container>
|
|
3
|
-
<el-aside width="70%" title="实体">
|
|
4
|
-
<syslogconfig></syslogconfig>
|
|
5
|
-
</el-aside>
|
|
6
|
-
<el-main>
|
|
7
|
-
<menulog></menulog>
|
|
8
|
-
</el-main>
|
|
9
|
-
</el-container>
|
|
10
|
-
</template>
|
|
11
|
-
|
|
12
|
-
<script>
|
|
13
|
-
import syslogconfig from './syslogconfig'
|
|
14
|
-
import menulog from './menulog'
|
|
15
|
-
|
|
16
|
-
export default {
|
|
17
|
-
components: {
|
|
18
|
-
syslogconfig,
|
|
19
|
-
menulog,
|
|
20
|
-
},
|
|
21
|
-
data() {
|
|
22
|
-
return {}
|
|
23
|
-
},
|
|
24
|
-
methods: {},
|
|
25
|
-
}
|
|
26
|
-
</script>
|