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,114 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-dialog title="编辑" :visible.sync="visible" width="80%" top="5vh">
|
|
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="CODE" prop="msgCode" :rules="$r(0, 0, 36)">
|
|
7
|
-
<el-input type="text" v-model="hdform.msgCode"></el-input>
|
|
8
|
-
</el-form-item>
|
|
9
|
-
</el-col>
|
|
10
|
-
<el-col :span="8" :xs="16">
|
|
11
|
-
<el-form-item label="标题" prop="title" :rules="$r(1, 0, 256)">
|
|
12
|
-
<el-input type="text" v-model="hdform.title"></el-input>
|
|
13
|
-
</el-form-item>
|
|
14
|
-
</el-col>
|
|
15
|
-
<el-col :span="8" :xs="16">
|
|
16
|
-
<el-form-item label="类型" prop="msgTypeCode" :rules="$r(1)">
|
|
17
|
-
<hd-drop
|
|
18
|
-
field="MSG_TYPE"
|
|
19
|
-
v-model="hdform.msgTypeCode"
|
|
20
|
-
style="width: 100%"
|
|
21
|
-
></hd-drop>
|
|
22
|
-
</el-form-item>
|
|
23
|
-
</el-col>
|
|
24
|
-
</el-row>
|
|
25
|
-
<el-row>
|
|
26
|
-
<el-col :span="24" :xs="16">
|
|
27
|
-
<el-form-item label="打开路径" prop="url" :rules="$r(0, 0, 256)">
|
|
28
|
-
<el-input type="text" v-model="hdform.url"></el-input>
|
|
29
|
-
</el-form-item>
|
|
30
|
-
</el-col>
|
|
31
|
-
</el-row>
|
|
32
|
-
<el-row>
|
|
33
|
-
<el-col :span="24" :xs="16">
|
|
34
|
-
<el-form-item label="内容" prop="content" :rules="$r(0, 0, 4000)">
|
|
35
|
-
<el-input
|
|
36
|
-
v-model="hdform.content"
|
|
37
|
-
type="textarea"
|
|
38
|
-
:rows="3"
|
|
39
|
-
></el-input>
|
|
40
|
-
</el-form-item>
|
|
41
|
-
</el-col>
|
|
42
|
-
</el-row>
|
|
43
|
-
</el-form>
|
|
44
|
-
<!-- <div slot="footer" class="dialog-footer">
|
|
45
|
-
<el-button @click="visible = false">取 消</el-button>
|
|
46
|
-
<el-button type="primary" @click="submit" :loading="loading"> 确 定</el-button>
|
|
47
|
-
</div>-->
|
|
48
|
-
</el-dialog>
|
|
49
|
-
</template>
|
|
50
|
-
|
|
51
|
-
<script>
|
|
52
|
-
export default {
|
|
53
|
-
name: 'commsgtoform',
|
|
54
|
-
data() {
|
|
55
|
-
return {
|
|
56
|
-
hdform: {},
|
|
57
|
-
visible: false,
|
|
58
|
-
tsLoading: false,
|
|
59
|
-
loading: false,
|
|
60
|
-
hdRtData: { rows: [] }, // 已选人员
|
|
61
|
-
findUrl: '',
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
methods: {
|
|
65
|
-
show(msgId) {
|
|
66
|
-
// 换为本表主键
|
|
67
|
-
// 弹窗重复使用时,清除校验项目
|
|
68
|
-
if (this.$refs['hdform']) {
|
|
69
|
-
this.$refs['hdform'].resetFields()
|
|
70
|
-
}
|
|
71
|
-
this.hdRtData.rows = []
|
|
72
|
-
this.visible = true
|
|
73
|
-
this.$http
|
|
74
|
-
.get('/webresources/login/com/ComMsg/findone/rec?msgId=' + msgId)
|
|
75
|
-
.then((response) => {
|
|
76
|
-
const data = response.data
|
|
77
|
-
this.hdform = data
|
|
78
|
-
if (this.hdform.userList != null) {
|
|
79
|
-
this.hdRtData.rows = this.hdform.userList
|
|
80
|
-
this.$refs.commsgtrans.doQuery()
|
|
81
|
-
}
|
|
82
|
-
})
|
|
83
|
-
},
|
|
84
|
-
|
|
85
|
-
submit() {
|
|
86
|
-
this.$refs['hdform'].validate((valid) => {
|
|
87
|
-
if (!valid) {
|
|
88
|
-
return false
|
|
89
|
-
}
|
|
90
|
-
this.hdform.userList = this.hdRtData.rows
|
|
91
|
-
this.loading = true
|
|
92
|
-
this.$http
|
|
93
|
-
.post('/webresources/login/com/ComMsg/saveone', this.hdform)
|
|
94
|
-
.then((response) => {
|
|
95
|
-
this.loading = false
|
|
96
|
-
const data = response.data
|
|
97
|
-
this.$message({
|
|
98
|
-
type: data.code == '-1' ? 'error' : 'success',
|
|
99
|
-
message: data.message,
|
|
100
|
-
})
|
|
101
|
-
if (data.code == '-1') {
|
|
102
|
-
return
|
|
103
|
-
}
|
|
104
|
-
this.$emit('save-ok') // 主页面调用弹窗时添加
|
|
105
|
-
this.visible = false
|
|
106
|
-
})
|
|
107
|
-
})
|
|
108
|
-
},
|
|
109
|
-
handleChange(value, direction, movedKeys) {
|
|
110
|
-
// console.log(value, direction, movedKeys);
|
|
111
|
-
},
|
|
112
|
-
},
|
|
113
|
-
}
|
|
114
|
-
</script>
|
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-container direction="vertical" style="height: 60vh; padding: 0">
|
|
3
|
-
<ex-header height="50px">
|
|
4
|
-
<div class="filter-container" style="padding: 5px">
|
|
5
|
-
{{ $t('用户查询') }}
|
|
6
|
-
<el-input
|
|
7
|
-
:placeholder="$t('姓名、账号')"
|
|
8
|
-
@keyup.enter.native="doQuery()"
|
|
9
|
-
class="filter-item"
|
|
10
|
-
style="width: 200px"
|
|
11
|
-
v-model="hdQuery.query.name"
|
|
12
|
-
>
|
|
13
|
-
</el-input>
|
|
14
|
-
<orgnselect
|
|
15
|
-
:idVal.sync="hdQuery.query.orgnId"
|
|
16
|
-
:placeholder="$t('请选择组织')"
|
|
17
|
-
:txtVal.sync="hdQuery.query.orgnIdStr"
|
|
18
|
-
class="filter-item"
|
|
19
|
-
></orgnselect>
|
|
20
|
-
<roleselect
|
|
21
|
-
:idVal.sync="hdQuery.query.roleId"
|
|
22
|
-
:txtVal.sync="hdQuery.query.roleIdStr"
|
|
23
|
-
class="filter-item"
|
|
24
|
-
></roleselect>
|
|
25
|
-
<el-button @click="doQuery">{{ $t('搜索') }}</el-button>
|
|
26
|
-
<el-button @click="hdQuery.query = {}">{{ $t('清空') }}</el-button>
|
|
27
|
-
</div>
|
|
28
|
-
</ex-header>
|
|
29
|
-
<el-main>
|
|
30
|
-
<div style="width: 100%; height: 100%">
|
|
31
|
-
<el-container style="width: 100%; height: 100%">
|
|
32
|
-
<ex-aside width="45%">
|
|
33
|
-
<hd-grid
|
|
34
|
-
:hdQuery="hdQuery"
|
|
35
|
-
:hdResult="hdResultLeftSel"
|
|
36
|
-
@row-dblclick="leftClick"
|
|
37
|
-
@selection-change="leftSelMe"
|
|
38
|
-
noSets
|
|
39
|
-
recHide
|
|
40
|
-
v-loading="listLoading1"
|
|
41
|
-
>
|
|
42
|
-
<div class="el-line">{{ $t('未选') }}</div>
|
|
43
|
-
<el-table-column
|
|
44
|
-
align="left"
|
|
45
|
-
header-align="center"
|
|
46
|
-
label="姓名"
|
|
47
|
-
prop="name"
|
|
48
|
-
sortable
|
|
49
|
-
width="130px"
|
|
50
|
-
>
|
|
51
|
-
</el-table-column>
|
|
52
|
-
<el-table-column
|
|
53
|
-
align="left"
|
|
54
|
-
header-align="center"
|
|
55
|
-
label="部门"
|
|
56
|
-
prop="orgnName"
|
|
57
|
-
sortable
|
|
58
|
-
width="130px"
|
|
59
|
-
>
|
|
60
|
-
</el-table-column>
|
|
61
|
-
<el-table-column
|
|
62
|
-
align="left"
|
|
63
|
-
header-align="center"
|
|
64
|
-
label="账号"
|
|
65
|
-
prop="account"
|
|
66
|
-
sortable
|
|
67
|
-
>
|
|
68
|
-
</el-table-column>
|
|
69
|
-
</hd-grid>
|
|
70
|
-
</ex-aside>
|
|
71
|
-
<ex-aside :arrowShow="false" width="80px">
|
|
72
|
-
<el-row
|
|
73
|
-
align="middle"
|
|
74
|
-
justify="center"
|
|
75
|
-
style="height: 100%"
|
|
76
|
-
type="flex"
|
|
77
|
-
>
|
|
78
|
-
<el-col :span="20">
|
|
79
|
-
<el-button @click="addSel()" style="width: 100%">{{
|
|
80
|
-
$t('选择')
|
|
81
|
-
}}</el-button>
|
|
82
|
-
<br /><br />
|
|
83
|
-
<el-button @click="removeSel()" style="width: 100%">{{
|
|
84
|
-
$t('移除')
|
|
85
|
-
}}</el-button>
|
|
86
|
-
</el-col>
|
|
87
|
-
</el-row>
|
|
88
|
-
</ex-aside>
|
|
89
|
-
<el-main :arrowShow="false" width="50%">
|
|
90
|
-
<hd-grid
|
|
91
|
-
:hdResult="hdResultRightSel"
|
|
92
|
-
@row-dblclick="rightClick"
|
|
93
|
-
@selection-change="rightSelMe"
|
|
94
|
-
noSets
|
|
95
|
-
pageHide
|
|
96
|
-
recHide
|
|
97
|
-
>
|
|
98
|
-
<div class="el-line">{{ $t('已选') }}</div>
|
|
99
|
-
<el-table-column
|
|
100
|
-
align="left"
|
|
101
|
-
header-align="center"
|
|
102
|
-
label="姓名"
|
|
103
|
-
prop="name"
|
|
104
|
-
sortable
|
|
105
|
-
width="130px"
|
|
106
|
-
>
|
|
107
|
-
</el-table-column>
|
|
108
|
-
<el-table-column
|
|
109
|
-
align="left"
|
|
110
|
-
header-align="center"
|
|
111
|
-
label="部门"
|
|
112
|
-
prop="orgnName"
|
|
113
|
-
sortable
|
|
114
|
-
width="130px"
|
|
115
|
-
>
|
|
116
|
-
</el-table-column>
|
|
117
|
-
<el-table-column
|
|
118
|
-
align="left"
|
|
119
|
-
header-align="center"
|
|
120
|
-
label="账号"
|
|
121
|
-
prop="account"
|
|
122
|
-
sortable
|
|
123
|
-
width="130px"
|
|
124
|
-
>
|
|
125
|
-
</el-table-column>
|
|
126
|
-
</hd-grid>
|
|
127
|
-
</el-main>
|
|
128
|
-
</el-container>
|
|
129
|
-
</div>
|
|
130
|
-
</el-main>
|
|
131
|
-
</el-container>
|
|
132
|
-
</template>
|
|
133
|
-
|
|
134
|
-
<script>
|
|
135
|
-
import roleselect from '../role/roleselect'
|
|
136
|
-
import orgnselect from '../orgDept/orgnselect'
|
|
137
|
-
|
|
138
|
-
export default {
|
|
139
|
-
name: 'MsgTrans',
|
|
140
|
-
components: { orgnselect, roleselect },
|
|
141
|
-
data() {
|
|
142
|
-
return {
|
|
143
|
-
hdQuery: new HdQuery(this),
|
|
144
|
-
hdResultLeftSel: { rows: [] }, //左侧数据
|
|
145
|
-
hdResultRightSel: { rows: [] },
|
|
146
|
-
leftSel: [], // check 左侧
|
|
147
|
-
rightSel: [], //
|
|
148
|
-
leftCheck: Object,
|
|
149
|
-
rightCheck: Object,
|
|
150
|
-
listLoading1: false,
|
|
151
|
-
listLoading2: false,
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
// hdResult展示 hdQuery查询 defaultSort默认排序 pageHide true隐藏分页
|
|
155
|
-
props: {
|
|
156
|
-
msgId: String,
|
|
157
|
-
orgnIds: String,
|
|
158
|
-
},
|
|
159
|
-
watch: {
|
|
160
|
-
msgId: function (newVal) {
|
|
161
|
-
this.initQuery()
|
|
162
|
-
},
|
|
163
|
-
},
|
|
164
|
-
methods: {
|
|
165
|
-
initQuery() {
|
|
166
|
-
console.log('initQuery', this.msgId, this.orgnIds)
|
|
167
|
-
this.$http
|
|
168
|
-
.get(`/webresources/login/com/ComMsg/findUserByMsgId/${this.msgId}`)
|
|
169
|
-
.then((response) => {
|
|
170
|
-
this.hdResultRightSel.rows =
|
|
171
|
-
response.data == null ? [] : response.data
|
|
172
|
-
})
|
|
173
|
-
},
|
|
174
|
-
doQuery() {
|
|
175
|
-
let excIds = ''
|
|
176
|
-
this.listLoading1 = true
|
|
177
|
-
for (let i = 0; i < this.hdResultRightSel.rows.length; i++) {
|
|
178
|
-
excIds += this.hdResultRightSel.rows[i].userId + ','
|
|
179
|
-
}
|
|
180
|
-
this.hdQuery.query.excIds = excIds
|
|
181
|
-
this.$http
|
|
182
|
-
.post(`/webresources/login/com/ComMsg/find/user`, this.hdQuery)
|
|
183
|
-
.then((response) => {
|
|
184
|
-
this.listLoading1 = false
|
|
185
|
-
this.hdResultLeftSel = response.data
|
|
186
|
-
})
|
|
187
|
-
},
|
|
188
|
-
leftSelMe(select) {
|
|
189
|
-
this.leftSel = select
|
|
190
|
-
},
|
|
191
|
-
rightSelMe(select) {
|
|
192
|
-
this.rightSel = select
|
|
193
|
-
},
|
|
194
|
-
leftClick(row) {
|
|
195
|
-
this.hdResultRightSel.rows.push(row)
|
|
196
|
-
this.hdResultLeftSel.rows.remove(row)
|
|
197
|
-
this.leftSel.remove(row)
|
|
198
|
-
},
|
|
199
|
-
rightClick(row) {
|
|
200
|
-
this.hdResultRightSel.rows.remove(row)
|
|
201
|
-
this.hdResultLeftSel.rows.push(row)
|
|
202
|
-
this.rightSel.remove(row)
|
|
203
|
-
},
|
|
204
|
-
addSel() {
|
|
205
|
-
this.leftSel.forEach((value) => {
|
|
206
|
-
this.hdResultRightSel.rows.push(value)
|
|
207
|
-
this.hdResultLeftSel.rows.remove(value)
|
|
208
|
-
})
|
|
209
|
-
this.leftSel = []
|
|
210
|
-
},
|
|
211
|
-
removeSel() {
|
|
212
|
-
this.rightSel.forEach((value) => {
|
|
213
|
-
this.hdResultLeftSel.rows.push(value)
|
|
214
|
-
this.hdResultRightSel.rows.remove(value)
|
|
215
|
-
})
|
|
216
|
-
this.rightSel = []
|
|
217
|
-
},
|
|
218
|
-
getOrgIds() {
|
|
219
|
-
let excIds = ''
|
|
220
|
-
for (let i = 0; i < this.hdResultRightSel.rows.length; i++) {
|
|
221
|
-
excIds += this.hdResultRightSel.rows[i].userId + ','
|
|
222
|
-
}
|
|
223
|
-
return excIds
|
|
224
|
-
},
|
|
225
|
-
},
|
|
226
|
-
}
|
|
227
|
-
</script>
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-container>
|
|
3
|
-
<el-main>
|
|
4
|
-
<hd-com-grid
|
|
5
|
-
ref="grid"
|
|
6
|
-
:hdQuery="hdQuery"
|
|
7
|
-
url="/webresources/login/tech/ComExColumn"
|
|
8
|
-
@row-click="rowClick"
|
|
9
|
-
>
|
|
10
|
-
<div class="filter-container" slot="query">
|
|
11
|
-
<el-input
|
|
12
|
-
@keyup.enter.native="doQuery"
|
|
13
|
-
style="width: 200px"
|
|
14
|
-
class="filter-item"
|
|
15
|
-
placeholder="名称"
|
|
16
|
-
v-model="hdQuery.query.anyQuery"
|
|
17
|
-
>
|
|
18
|
-
</el-input>
|
|
19
|
-
<el-button
|
|
20
|
-
class="filter-item"
|
|
21
|
-
type="primary"
|
|
22
|
-
:icon="ElIconSearch"
|
|
23
|
-
@click="$refs.grid.doQuery()"
|
|
24
|
-
keyType="query"
|
|
25
|
-
>搜索
|
|
26
|
-
</el-button>
|
|
27
|
-
<el-button
|
|
28
|
-
class="filter-item"
|
|
29
|
-
@click="doEdit('')"
|
|
30
|
-
type="primary"
|
|
31
|
-
:icon="ElIconEdit"
|
|
32
|
-
keyType="add"
|
|
33
|
-
>新增
|
|
34
|
-
</el-button>
|
|
35
|
-
<el-button
|
|
36
|
-
class="filter-item"
|
|
37
|
-
@click="$refs.grid.doRemoveAll()"
|
|
38
|
-
type="danger"
|
|
39
|
-
keyType="del"
|
|
40
|
-
>删除
|
|
41
|
-
</el-button>
|
|
42
|
-
</div>
|
|
43
|
-
<el-table-column
|
|
44
|
-
width="100px"
|
|
45
|
-
align="center"
|
|
46
|
-
label="操作"
|
|
47
|
-
fixed="right"
|
|
48
|
-
>
|
|
49
|
-
<template slot-scope="scope">
|
|
50
|
-
<hd-btn
|
|
51
|
-
icon="el-icon-edit"
|
|
52
|
-
hint="编辑"
|
|
53
|
-
@click.stop="doEdit(scope.row.exColumnId)"
|
|
54
|
-
></hd-btn>
|
|
55
|
-
<hd-btn
|
|
56
|
-
icon="el-icon-delete"
|
|
57
|
-
hint="删除"
|
|
58
|
-
@click.stop="$refs.grid.doRemove(scope.row)"
|
|
59
|
-
></hd-btn>
|
|
60
|
-
</template>
|
|
61
|
-
</el-table-column>
|
|
62
|
-
<el-table-column
|
|
63
|
-
width="100px"
|
|
64
|
-
align="center"
|
|
65
|
-
label="表名"
|
|
66
|
-
prop="tableName"
|
|
67
|
-
sortable
|
|
68
|
-
>
|
|
69
|
-
</el-table-column>
|
|
70
|
-
<el-table-column
|
|
71
|
-
width="100px"
|
|
72
|
-
align="center"
|
|
73
|
-
label="字段名"
|
|
74
|
-
prop="columnName"
|
|
75
|
-
sortable
|
|
76
|
-
>
|
|
77
|
-
</el-table-column>
|
|
78
|
-
<el-table-column
|
|
79
|
-
width="100px"
|
|
80
|
-
align="center"
|
|
81
|
-
label="字段注解"
|
|
82
|
-
prop="columnComment"
|
|
83
|
-
sortable
|
|
84
|
-
>
|
|
85
|
-
</el-table-column>
|
|
86
|
-
<el-table-column
|
|
87
|
-
width="100px"
|
|
88
|
-
align="center"
|
|
89
|
-
label="字段类型"
|
|
90
|
-
prop="columnTypeStr"
|
|
91
|
-
sortable
|
|
92
|
-
>
|
|
93
|
-
</el-table-column>
|
|
94
|
-
<el-table-column
|
|
95
|
-
width="100px"
|
|
96
|
-
align="center"
|
|
97
|
-
label="是否必填"
|
|
98
|
-
prop="columnRequire"
|
|
99
|
-
sortable
|
|
100
|
-
:inputFormat="$ckFt"
|
|
101
|
-
>
|
|
102
|
-
</el-table-column>
|
|
103
|
-
<el-table-column
|
|
104
|
-
width="100px"
|
|
105
|
-
align="center"
|
|
106
|
-
label="长度"
|
|
107
|
-
prop="columnLen"
|
|
108
|
-
sortable
|
|
109
|
-
>
|
|
110
|
-
</el-table-column>
|
|
111
|
-
<el-table-column
|
|
112
|
-
width="100px"
|
|
113
|
-
align="center"
|
|
114
|
-
label="比例"
|
|
115
|
-
prop="columnScale"
|
|
116
|
-
sortable
|
|
117
|
-
>
|
|
118
|
-
</el-table-column>
|
|
119
|
-
<el-table-column
|
|
120
|
-
width="100px"
|
|
121
|
-
align="center"
|
|
122
|
-
label="默认值"
|
|
123
|
-
prop="defaultValue"
|
|
124
|
-
sortable
|
|
125
|
-
>
|
|
126
|
-
</el-table-column>
|
|
127
|
-
</hd-com-grid>
|
|
128
|
-
</el-main>
|
|
129
|
-
<comexcolumnform
|
|
130
|
-
ref="comexcolumnform"
|
|
131
|
-
@save-ok="$refs.grid.doQuery()"
|
|
132
|
-
></comexcolumnform>
|
|
133
|
-
</el-container>
|
|
134
|
-
</template>
|
|
135
|
-
|
|
136
|
-
<script>
|
|
137
|
-
import { Search as ElIconSearch, Edit as ElIconEdit } from '@element-plus/icons-vue'
|
|
138
|
-
import comexcolumnform from './comexcolumnform'
|
|
139
|
-
|
|
140
|
-
export default {
|
|
141
|
-
data() {
|
|
142
|
-
return {
|
|
143
|
-
hdQuery: new HdQuery(this),
|
|
144
|
-
ElIconSearch,
|
|
145
|
-
ElIconEdit,
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
name: 'comexcolumn',
|
|
149
|
-
components: { comexcolumnform },
|
|
150
|
-
mounted() {},
|
|
151
|
-
methods: {
|
|
152
|
-
doEdit(exColumnId) {
|
|
153
|
-
// 增加或编辑
|
|
154
|
-
this.$refs['comexcolumnform'].show(exColumnId)
|
|
155
|
-
},
|
|
156
|
-
rowClick(row) {
|
|
157
|
-
this.$emit('rowClick', row)
|
|
158
|
-
},
|
|
159
|
-
},
|
|
160
|
-
}
|
|
161
|
-
</script>
|
|
@@ -1,128 +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="tableName" :rules="$r(0, 0, 36)">
|
|
7
|
-
<el-input type="text" v-model="hdform.tableName"></el-input>
|
|
8
|
-
</el-form-item>
|
|
9
|
-
</el-col>
|
|
10
|
-
<el-col :span="8" :xs="16">
|
|
11
|
-
<el-form-item label="字段名" prop="columnName" :rules="$r(0, 0, 36)">
|
|
12
|
-
<el-input type="text" v-model="hdform.columnName"></el-input>
|
|
13
|
-
</el-form-item>
|
|
14
|
-
</el-col>
|
|
15
|
-
<el-col :span="8" :xs="16">
|
|
16
|
-
<el-form-item
|
|
17
|
-
label="字段注解"
|
|
18
|
-
prop="columnComment"
|
|
19
|
-
:rules="$r(0, 0, 36)"
|
|
20
|
-
>
|
|
21
|
-
<el-input type="text" v-model="hdform.columnComment"></el-input>
|
|
22
|
-
</el-form-item>
|
|
23
|
-
</el-col>
|
|
24
|
-
<el-col :span="8" :xs="16">
|
|
25
|
-
<el-form-item
|
|
26
|
-
label="字段类型"
|
|
27
|
-
prop="columnType"
|
|
28
|
-
:rules="$r(0, 0, 10)"
|
|
29
|
-
>
|
|
30
|
-
<el-input type="text" v-model="hdform.columnType"></el-input>
|
|
31
|
-
</el-form-item>
|
|
32
|
-
</el-col>
|
|
33
|
-
<el-col :span="8" :xs="16">
|
|
34
|
-
<el-form-item
|
|
35
|
-
label="长度"
|
|
36
|
-
prop="columnLen"
|
|
37
|
-
:rules="$r(0, 'number', 0, 99999)"
|
|
38
|
-
>
|
|
39
|
-
<el-input type="number" v-model="hdform.columnLen"></el-input>
|
|
40
|
-
</el-form-item>
|
|
41
|
-
</el-col>
|
|
42
|
-
<el-col :span="8" :xs="16">
|
|
43
|
-
<el-form-item
|
|
44
|
-
label="比例"
|
|
45
|
-
prop="columnScale"
|
|
46
|
-
:rules="$r(0, 'number', 0, 99999)"
|
|
47
|
-
>
|
|
48
|
-
<el-input type="number" v-model="hdform.columnScale"></el-input>
|
|
49
|
-
</el-form-item>
|
|
50
|
-
</el-col>
|
|
51
|
-
<el-col :span="8" :xs="16">
|
|
52
|
-
<el-form-item
|
|
53
|
-
label="默认值"
|
|
54
|
-
prop="defaultValue"
|
|
55
|
-
:rules="$r(0, 0, 255)"
|
|
56
|
-
>
|
|
57
|
-
<el-input type="text" v-model="hdform.defaultValue"></el-input>
|
|
58
|
-
</el-form-item>
|
|
59
|
-
</el-col>
|
|
60
|
-
</el-row>
|
|
61
|
-
</el-form>
|
|
62
|
-
<div slot="footer" class="dialog-footer">
|
|
63
|
-
<el-button @click="visible = false">取 消</el-button>
|
|
64
|
-
<el-button type="primary" @click="submit" :loading="loading">
|
|
65
|
-
确 定</el-button
|
|
66
|
-
>
|
|
67
|
-
</div>
|
|
68
|
-
</el-dialog>
|
|
69
|
-
</template>
|
|
70
|
-
|
|
71
|
-
<script>
|
|
72
|
-
export default {
|
|
73
|
-
name: 'comexcolumnform',
|
|
74
|
-
data() {
|
|
75
|
-
return {
|
|
76
|
-
hdform: {},
|
|
77
|
-
visible: false,
|
|
78
|
-
tsLoading: false,
|
|
79
|
-
loading: false,
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
methods: {
|
|
83
|
-
show(exColumnId) {
|
|
84
|
-
// 换为本表主键
|
|
85
|
-
//弹窗重复使用时,清除校验项目
|
|
86
|
-
if (this.$refs['hdform']) this.$refs['hdform'].resetFields()
|
|
87
|
-
this.visible = true
|
|
88
|
-
this.$http
|
|
89
|
-
.get(
|
|
90
|
-
'/webresources/login/tech/ComExColumn/findone?exColumnId=' +
|
|
91
|
-
exColumnId
|
|
92
|
-
)
|
|
93
|
-
.then((response) => {
|
|
94
|
-
const data = response.data
|
|
95
|
-
this.hdform = data
|
|
96
|
-
})
|
|
97
|
-
},
|
|
98
|
-
|
|
99
|
-
submit() {
|
|
100
|
-
// console.debug(this.hdform)
|
|
101
|
-
this.$refs['hdform'].validate((valid) => {
|
|
102
|
-
if (!valid) {
|
|
103
|
-
return false
|
|
104
|
-
}
|
|
105
|
-
this.loading = true
|
|
106
|
-
this.$http
|
|
107
|
-
.post('/webresources/login/tech/ComExColumn/saveone', this.hdform)
|
|
108
|
-
.then((response) => {
|
|
109
|
-
this.loading = false
|
|
110
|
-
const data = response.data
|
|
111
|
-
this.$message({
|
|
112
|
-
type: data.code == '-1' ? 'error' : 'success',
|
|
113
|
-
message: data.message,
|
|
114
|
-
})
|
|
115
|
-
if (data.code == '-1') {
|
|
116
|
-
return
|
|
117
|
-
}
|
|
118
|
-
this.$emit('save-ok') // 主页面调用弹窗时添加
|
|
119
|
-
this.visible = false
|
|
120
|
-
})
|
|
121
|
-
.catch(() => {
|
|
122
|
-
this.loading = false
|
|
123
|
-
})
|
|
124
|
-
})
|
|
125
|
-
},
|
|
126
|
-
},
|
|
127
|
-
}
|
|
128
|
-
</script>
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-container>
|
|
3
|
-
<el-aside width="50%">
|
|
4
|
-
<comexcolumn @rowClick="rowClick"></comexcolumn>
|
|
5
|
-
</el-aside>
|
|
6
|
-
<el-main>
|
|
7
|
-
<comexfieldsub ref="comexfieldsub"></comexfieldsub>
|
|
8
|
-
</el-main>
|
|
9
|
-
</el-container>
|
|
10
|
-
</template>
|
|
11
|
-
|
|
12
|
-
<script>
|
|
13
|
-
import comexfieldsub from './comexfieldsub'
|
|
14
|
-
import comexcolumn from './comexcolumn'
|
|
15
|
-
export default {
|
|
16
|
-
name: 'comexfield',
|
|
17
|
-
components: { comexcolumn, comexfieldsub },
|
|
18
|
-
data() {
|
|
19
|
-
return {}
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
mounted() {},
|
|
23
|
-
methods: {
|
|
24
|
-
rowClick(row) {
|
|
25
|
-
this.$refs['comexfieldsub'].query(row.exColumnId)
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
}
|
|
29
|
-
</script>
|