hd-idevvue3 3.0.3 → 3.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index.9c127719.css +1 -0
- package/dist/hd-idevvue3.mjs +3521 -3305
- package/dist/hd-idevvue3.umd.js +29 -29
- package/npminstall-debug.log +2 -10
- package/package.json +3 -1
- package/pnpm-lock.yaml +37 -4
- package/src/App.vue +11 -15
- package/src/assets/sound/notify.wav +0 -0
- package/src/demo/demo.vue +9 -10
- package/src/demo/dropdemo.vue +42 -43
- package/src/demo/extsets.vue +140 -39
- package/src/demo/formedit.vue +157 -145
- package/src/demo/hightquery.vue +263 -66
- package/src/demo/inlineedit.vue +129 -35
- package/src/demo/selfdrop.vue +32 -15
- package/src/directive/el-dragDialog/drag.js +13 -13
- package/src/directive/el-dragDialog/index.js +13 -13
- package/src/errorLog.js +3 -3
- package/src/hdcom/BigGrid.js +54 -48
- package/src/hdcom/BillShow.vue +84 -63
- package/src/hdcom/BillUpload.vue +144 -86
- package/src/hdcom/BtnRight.vue +26 -23
- package/src/hdcom/ErrHint.vue +36 -24
- package/src/hdcom/ExtendColumn.vue +97 -90
- package/src/hdcom/ExtendCommon.js +24 -13
- package/src/hdcom/ExtendForm.vue +107 -80
- package/src/hdcom/FacePicUpload.vue +59 -50
- package/src/hdcom/FaceRecTest.vue +87 -77
- package/src/hdcom/GridChart.vue +175 -162
- package/src/hdcom/GridExField.vue +328 -234
- package/src/hdcom/GridShow.vue +89 -39
- package/src/hdcom/HdAside.vue +192 -145
- package/src/hdcom/HdBtn.vue +44 -32
- package/src/hdcom/HdButton.vue +141 -117
- package/src/hdcom/HdComFaceRec.vue +80 -32
- package/src/hdcom/HdComGrid.vue +329 -229
- package/src/hdcom/HdComQuery.vue +179 -90
- package/src/hdcom/HdComQueryDetail.vue +159 -115
- package/src/hdcom/HdComSortDetail.vue +136 -130
- package/src/hdcom/HdDatePicker.vue +32 -16
- package/src/hdcom/HdDialog.vue +62 -44
- package/src/hdcom/HdDrop.vue +163 -138
- package/src/hdcom/HdFileUpload.vue +138 -119
- package/src/hdcom/HdFilterBox.vue +62 -62
- package/src/hdcom/HdFooter.vue +152 -119
- package/src/hdcom/HdForm.vue +276 -203
- package/src/hdcom/HdFormBtn.vue +81 -39
- package/src/hdcom/HdFormItem.vue +14 -10
- package/src/hdcom/HdGrid.vue +353 -156
- package/src/hdcom/HdGridEditBtn.vue +34 -20
- package/src/hdcom/HdGridExt.js +78 -47
- package/src/hdcom/HdGridSel.vue +227 -193
- package/src/hdcom/HdHeader.vue +149 -117
- package/src/hdcom/HdHotKey.vue +70 -67
- package/src/hdcom/HdInputHint.vue +40 -36
- package/src/hdcom/HdMain.vue +25 -27
- package/src/hdcom/HdMessage.vue +180 -171
- package/src/hdcom/HdNum.vue +67 -57
- package/src/hdcom/HdPopSel.vue +46 -24
- package/src/hdcom/HdRightMenu.vue +63 -61
- package/src/hdcom/HdSel/SelGridFieldcod.vue +46 -28
- package/src/hdcom/HdTableColumn.vue +156 -109
- package/src/hdcom/HdTempSave.vue +138 -116
- package/src/hdcom/HdTree.vue +89 -72
- package/src/hdcom/HdTreeTable/eval.js +8 -3
- package/src/hdcom/HdTreeTable/index.vue +229 -174
- package/src/hdcom/ImportExcel.vue +69 -34
- package/src/hdcom/index.js +39 -44
- package/src/idev.common.js +54 -47
- package/src/index.js +3 -6
- package/src/utils/HdQuery.js +25 -14
- package/src/utils/comutils.js +50 -28
- package/src/utils/gogocodeTransfer.js +59 -0
- package/src/utils/utils.js +30 -19
- package/src/vendor/Blob.js +187 -179
- package/src/vendor/Export2Excel.js +231 -220
- package/src/vendor/Export2Zip.js +25 -22
- package/src/views/layout/AppMain.vue +34 -32
- package/src/views/layout/HdLayout.vue +64 -52
- package/src/views/layout/header/ElasticSearch.vue +196 -159
- package/src/views/layout/header/HZRecorder.js +163 -135
- package/src/views/layout/header/HeaderSearch.vue +165 -145
- package/src/views/layout/header/Levelbar.vue +55 -49
- package/src/views/layout/header/MainHeader.vue +233 -189
- package/src/views/layout/header/Navbar.vue +74 -78
- package/src/views/layout/header/ScrollPane.vue +103 -81
- package/src/views/layout/header/TagsView.vue +169 -164
- package/src/views/layout/header/VocRec.vue +86 -78
- package/src/views/layout/header/changepswform.vue +98 -64
- package/src/views/layout/index.js +5 -7
- package/src/views/layout/menu/Hamburger.vue +63 -45
- package/src/views/layout/menu/HdMenu.vue +155 -118
- package/src/views/layout/menu/index.vue +21 -19
- package/src/views/privilege/commsg/commsg.vue +115 -41
- package/src/views/privilege/commsg/commsgOrgn.vue +40 -31
- package/src/views/privilege/commsg/commsgRole.vue +180 -109
- package/src/views/privilege/commsg/commsgform.vue +125 -101
- package/src/views/privilege/commsg/commsgiframe.vue +30 -23
- package/src/views/privilege/commsg/commsgto.vue +163 -84
- package/src/views/privilege/commsg/commsgtoform.vue +64 -58
- package/src/views/privilege/commsg/commsgtrans.vue +187 -115
- package/src/views/privilege/exfield/comexcolumn.vue +133 -43
- package/src/views/privilege/exfield/comexcolumnform.vue +85 -58
- package/src/views/privilege/exfield/comexfield.vue +15 -17
- package/src/views/privilege/exfield/comexfieldform.vue +71 -53
- package/src/views/privilege/exfield/comexfieldsub.vue +137 -46
- package/src/views/privilege/index.js +19 -20
- package/src/views/privilege/menu/comMenu.vue +49 -41
- package/src/views/privilege/menu/menu.vue +166 -49
- package/src/views/privilege/menu/menuinfo.vue +41 -34
- package/src/views/privilege/menu/rolelist.vue +78 -33
- package/src/views/privilege/menu/userlist.vue +76 -33
- package/src/views/privilege/mobile/authmobileupdate.vue +119 -43
- package/src/views/privilege/mobile/authmobileupdateform.vue +76 -46
- package/src/views/privilege/orgDept/authOrgn.vue +157 -65
- package/src/views/privilege/orgDept/authorgnform.vue +50 -38
- package/src/views/privilege/orgDept/orgDept.vue +38 -37
- package/src/views/privilege/orgDept/orgTree.vue +99 -88
- package/src/views/privilege/orgDept/orgnselect.vue +132 -111
- package/src/views/privilege/personDept/authuser.vue +197 -91
- package/src/views/privilege/personDept/authuserform.vue +123 -71
- package/src/views/privilege/personDept/facerec.vue +128 -83
- package/src/views/privilege/personDept/orgncascader.vue +134 -115
- package/src/views/privilege/personDept/personDept.vue +9 -7
- package/src/views/privilege/quartz/comquartzjob.vue +123 -38
- package/src/views/privilege/quartz/comquartzjobform.vue +67 -51
- package/src/views/privilege/quartz/comquartzlog.vue +116 -32
- package/src/views/privilege/role/btnRole.vue +123 -67
- package/src/views/privilege/role/menuRole.vue +65 -45
- package/src/views/privilege/role/orgnRole.vue +63 -41
- package/src/views/privilege/role/role.vue +26 -9
- package/src/views/privilege/role/rolelist.vue +114 -45
- package/src/views/privilege/role/roleselect.vue +34 -17
- package/src/views/privilege/search/comsearch.vue +164 -73
- package/src/views/privilege/search/menu.vue +38 -22
- package/src/views/privilege/syscode/syscode.vue +157 -69
- package/src/views/privilege/syscode/sysfield.vue +96 -43
- package/src/views/privilege/syscode/sysfieldframe.vue +30 -30
- package/src/views/privilege/syslog/menulog.vue +38 -22
- package/src/views/privilege/syslog/syslog.vue +145 -78
- package/src/views/privilege/syslog/syslogconfig.vue +91 -24
- package/src/views/privilege/syslog/syslogform.vue +45 -43
- package/src/views/privilege/syslog/syslogframe.vue +26 -26
- package/src/views/privilege/userRole/userRole.vue +187 -89
- package/vite.config.js +7 -0
- package/dist/assets/index.774ef40e.css +0 -1
- package/src/views/privilege.zip +0 -0
|
@@ -1,38 +1,42 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<el-dialog title="编辑" :visible.sync="visible" width=
|
|
2
|
+
<el-dialog title="编辑" :visible.sync="visible" width="80%" top="5vh">
|
|
3
3
|
<el-form label-width="100px" :model="hdform" ref="hdform">
|
|
4
4
|
<el-row>
|
|
5
5
|
<el-col :span="8" :xs="16">
|
|
6
|
-
<el-form-item label="CODE" prop="msgCode"
|
|
7
|
-
:rules="$r(0,0,36)">
|
|
6
|
+
<el-form-item label="CODE" prop="msgCode" :rules="$r(0, 0, 36)">
|
|
8
7
|
<el-input type="text" v-model="hdform.msgCode"></el-input>
|
|
9
8
|
</el-form-item>
|
|
10
9
|
</el-col>
|
|
11
10
|
<el-col :span="8" :xs="16">
|
|
12
|
-
<el-form-item label="标题" prop="title"
|
|
13
|
-
:rules="$r(1,0,256)">
|
|
11
|
+
<el-form-item label="标题" prop="title" :rules="$r(1, 0, 256)">
|
|
14
12
|
<el-input type="text" v-model="hdform.title"></el-input>
|
|
15
13
|
</el-form-item>
|
|
16
14
|
</el-col>
|
|
17
15
|
<el-col :span="8" :xs="16">
|
|
18
16
|
<el-form-item label="类型" prop="msgTypeCode" :rules="$r(1)">
|
|
19
|
-
<hd-drop
|
|
17
|
+
<hd-drop
|
|
18
|
+
field="MSG_TYPE"
|
|
19
|
+
v-model="hdform.msgTypeCode"
|
|
20
|
+
style="width: 100%"
|
|
21
|
+
></hd-drop>
|
|
20
22
|
</el-form-item>
|
|
21
23
|
</el-col>
|
|
22
24
|
</el-row>
|
|
23
25
|
<el-row>
|
|
24
26
|
<el-col :span="24" :xs="16">
|
|
25
|
-
<el-form-item label="打开路径" prop="url"
|
|
26
|
-
:rules="$r(0,0,256)">
|
|
27
|
+
<el-form-item label="打开路径" prop="url" :rules="$r(0, 0, 256)">
|
|
27
28
|
<el-input type="text" v-model="hdform.url"></el-input>
|
|
28
29
|
</el-form-item>
|
|
29
30
|
</el-col>
|
|
30
31
|
</el-row>
|
|
31
32
|
<el-row>
|
|
32
33
|
<el-col :span="24" :xs="16">
|
|
33
|
-
<el-form-item label="内容" prop="content" :rules="$r(0,0,4000)">
|
|
34
|
-
<el-input
|
|
35
|
-
|
|
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>
|
|
36
40
|
</el-form-item>
|
|
37
41
|
</el-col>
|
|
38
42
|
</el-row>
|
|
@@ -40,121 +44,141 @@
|
|
|
40
44
|
<el-col :span="24">
|
|
41
45
|
<el-tabs type="border-card" v-model="hdform.msgWayCode">
|
|
42
46
|
<el-tab-pane :label="$t('按用户')" name="BY_USER">
|
|
43
|
-
<commsgtrans
|
|
47
|
+
<commsgtrans
|
|
48
|
+
:orgnIds="hdform.sendIds"
|
|
49
|
+
:msgId="hdform.msgId"
|
|
50
|
+
ref="commsgtrans"
|
|
51
|
+
></commsgtrans>
|
|
44
52
|
</el-tab-pane>
|
|
45
53
|
<el-tab-pane :label="$t('按角色')" name="BY_ROLE">
|
|
46
|
-
<commsgRole
|
|
54
|
+
<commsgRole
|
|
55
|
+
:orgnIds="hdform.sendIds"
|
|
56
|
+
:msgId="hdform.msgId"
|
|
57
|
+
ref="commsgRole"
|
|
58
|
+
></commsgRole>
|
|
47
59
|
</el-tab-pane>
|
|
48
60
|
<el-tab-pane :label="$t('按组织')" name="BY_ORGN">
|
|
49
|
-
<commsgOrgn
|
|
61
|
+
<commsgOrgn
|
|
62
|
+
:orgnIds="hdform.sendIds"
|
|
63
|
+
:msgId="hdform.msgId"
|
|
64
|
+
ref="commsgOrgn"
|
|
65
|
+
></commsgOrgn>
|
|
50
66
|
</el-tab-pane>
|
|
51
67
|
</el-tabs>
|
|
52
68
|
</el-col>
|
|
53
69
|
</el-row>
|
|
54
70
|
</el-form>
|
|
55
71
|
<div slot="footer" class="dialog-footer">
|
|
56
|
-
<el-button @click="visible = false">{{$t('取 消')}}</el-button>
|
|
57
|
-
<el-button type="primary" @click="submit" :loading="loading">
|
|
72
|
+
<el-button @click="visible = false">{{ $t('取 消') }}</el-button>
|
|
73
|
+
<el-button type="primary" @click="submit" :loading="loading">
|
|
74
|
+
{{ $t('确 定') }}</el-button
|
|
75
|
+
>
|
|
58
76
|
</div>
|
|
59
77
|
</el-dialog>
|
|
60
|
-
|
|
61
78
|
</template>
|
|
62
79
|
|
|
63
80
|
<script>
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
81
|
+
import commsgtrans from './commsgtrans'
|
|
82
|
+
import commsgOrgn from './commsgOrgn'
|
|
83
|
+
import commsgRole from './commsgRole'
|
|
84
|
+
export default {
|
|
85
|
+
components: { commsgtrans, commsgOrgn, commsgRole },
|
|
86
|
+
name: 'commsgform',
|
|
87
|
+
data() {
|
|
88
|
+
return {
|
|
89
|
+
hdform: {
|
|
90
|
+
msgWayCode: 'BY_USER',
|
|
91
|
+
},
|
|
92
|
+
visible: false,
|
|
93
|
+
loading: false,
|
|
94
|
+
findUrl: '',
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
methods: {
|
|
98
|
+
show(msgId) {
|
|
99
|
+
// 换为本表主键
|
|
100
|
+
// 弹窗重复使用时,清除校验项目
|
|
101
|
+
if (this.$refs['hdform']) {
|
|
102
|
+
this.$refs['hdform'].resetFields()
|
|
78
103
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
this.$refs['hdform'].resetFields()
|
|
85
|
-
}
|
|
86
|
-
this.visible = true;
|
|
87
|
-
this.$http.get('/webresources/login/com/ComMsg/findone?msgId=' + msgId).then(response => {
|
|
88
|
-
console.log('show', this.hdform.msgWayCode);
|
|
104
|
+
this.visible = true
|
|
105
|
+
this.$http
|
|
106
|
+
.get('/webresources/login/com/ComMsg/findone?msgId=' + msgId)
|
|
107
|
+
.then((response) => {
|
|
108
|
+
console.log('show', this.hdform.msgWayCode)
|
|
89
109
|
const data = response.data
|
|
90
110
|
this.hdform = data
|
|
91
|
-
console.log('show', this.hdform.msgWayCode)
|
|
111
|
+
console.log('show', this.hdform.msgWayCode)
|
|
92
112
|
if (this.hdform.msgWayCode == null) {
|
|
93
|
-
this.hdform.msgWayCode = 'BY_USER'
|
|
113
|
+
this.hdform.msgWayCode = 'BY_USER'
|
|
94
114
|
}
|
|
95
|
-
this.$nextTick(()=>{
|
|
96
|
-
this.initFormContent(this.hdform.msgWayCode)
|
|
115
|
+
this.$nextTick(() => {
|
|
116
|
+
this.initFormContent(this.hdform.msgWayCode)
|
|
97
117
|
})
|
|
98
118
|
})
|
|
99
|
-
|
|
119
|
+
},
|
|
100
120
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
106
|
-
this.loading = true
|
|
107
|
-
this.hdform.sendIds = this.getOrgIds();
|
|
108
|
-
this.$http.post('/webresources/login/com/ComMsg/saveone', this.hdform).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
|
-
}, error => {
|
|
121
|
-
this.visible = false
|
|
122
|
-
})
|
|
123
|
-
})
|
|
124
|
-
},
|
|
125
|
-
handleChange(value, direction, movedKeys) {
|
|
126
|
-
// console.log(value, direction, movedKeys);
|
|
127
|
-
},
|
|
128
|
-
initFormContent(val) {
|
|
129
|
-
if(val === 'BY_USER') {
|
|
130
|
-
this.$refs.commsgtrans.initQuery();
|
|
131
|
-
}
|
|
132
|
-
if(val === 'BY_ROLE') {
|
|
133
|
-
this.$refs.commsgRole.initQuery();
|
|
134
|
-
}
|
|
135
|
-
if(val === 'BY_ORGN') {
|
|
136
|
-
this.$refs.commsgOrgn.doQuery();
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
getOrgIds() {
|
|
140
|
-
const val = this.hdform.msgWayCode
|
|
141
|
-
if(val === 'BY_USER') {
|
|
142
|
-
return this.$refs.commsgtrans.getOrgIds();
|
|
143
|
-
}
|
|
144
|
-
if(val === 'BY_ROLE') {
|
|
145
|
-
return this.$refs.commsgRole.getOrgIds();
|
|
146
|
-
}
|
|
147
|
-
if(val === 'BY_ORGN') {
|
|
148
|
-
return this.$refs.commsgOrgn.getOrgIds();
|
|
121
|
+
submit() {
|
|
122
|
+
this.$refs['hdform'].validate((valid) => {
|
|
123
|
+
if (!valid) {
|
|
124
|
+
return false
|
|
149
125
|
}
|
|
126
|
+
this.loading = true
|
|
127
|
+
this.hdform.sendIds = this.getOrgIds()
|
|
128
|
+
this.$http
|
|
129
|
+
.post('/webresources/login/com/ComMsg/saveone', this.hdform)
|
|
130
|
+
.then(
|
|
131
|
+
(response) => {
|
|
132
|
+
this.loading = false
|
|
133
|
+
const data = response.data
|
|
134
|
+
this.$message({
|
|
135
|
+
type: data.code == '-1' ? 'error' : 'success',
|
|
136
|
+
message: data.message,
|
|
137
|
+
})
|
|
138
|
+
if (data.code == '-1') {
|
|
139
|
+
return
|
|
140
|
+
}
|
|
141
|
+
this.$emit('save-ok') // 主页面调用弹窗时添加
|
|
142
|
+
this.visible = false
|
|
143
|
+
},
|
|
144
|
+
(error) => {
|
|
145
|
+
this.visible = false
|
|
146
|
+
}
|
|
147
|
+
)
|
|
148
|
+
})
|
|
149
|
+
},
|
|
150
|
+
handleChange(value, direction, movedKeys) {
|
|
151
|
+
// console.log(value, direction, movedKeys);
|
|
152
|
+
},
|
|
153
|
+
initFormContent(val) {
|
|
154
|
+
if (val === 'BY_USER') {
|
|
155
|
+
this.$refs.commsgtrans.initQuery()
|
|
156
|
+
}
|
|
157
|
+
if (val === 'BY_ROLE') {
|
|
158
|
+
this.$refs.commsgRole.initQuery()
|
|
159
|
+
}
|
|
160
|
+
if (val === 'BY_ORGN') {
|
|
161
|
+
this.$refs.commsgOrgn.doQuery()
|
|
150
162
|
}
|
|
151
163
|
},
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
this.
|
|
164
|
+
getOrgIds() {
|
|
165
|
+
const val = this.hdform.msgWayCode
|
|
166
|
+
if (val === 'BY_USER') {
|
|
167
|
+
return this.$refs.commsgtrans.getOrgIds()
|
|
156
168
|
}
|
|
157
|
-
|
|
158
|
-
|
|
169
|
+
if (val === 'BY_ROLE') {
|
|
170
|
+
return this.$refs.commsgRole.getOrgIds()
|
|
171
|
+
}
|
|
172
|
+
if (val === 'BY_ORGN') {
|
|
173
|
+
return this.$refs.commsgOrgn.getOrgIds()
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
watch: {
|
|
178
|
+
'hdform.msgWayCode': function (val) {
|
|
179
|
+
console.log('msgWayCode changed')
|
|
180
|
+
this.initFormContent(val)
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
}
|
|
159
184
|
</script>
|
|
160
|
-
|
|
@@ -1,33 +1,40 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<el-dialog
|
|
2
|
+
<el-dialog
|
|
3
|
+
title="查看"
|
|
4
|
+
:fullscreen="true"
|
|
5
|
+
:visible.sync="visible"
|
|
6
|
+
width="100%"
|
|
7
|
+
custom-class="dialog"
|
|
8
|
+
>
|
|
3
9
|
<iframe :src="iframeUrl" width="100%" :height="height"></iframe>
|
|
4
10
|
</el-dialog>
|
|
5
11
|
</template>
|
|
6
12
|
|
|
7
13
|
<script>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
mounted() {
|
|
17
|
-
this.height = document.body.clientHeight-100
|
|
18
|
-
},
|
|
19
|
-
methods: {
|
|
20
|
-
show(url) { // 换为本表主键
|
|
21
|
-
console.log(this)
|
|
22
|
-
this.iframeUrl = url
|
|
23
|
-
this.visible = true;
|
|
24
|
-
},
|
|
14
|
+
export default {
|
|
15
|
+
data() {
|
|
16
|
+
return {
|
|
17
|
+
visible: false,
|
|
18
|
+
iframeUrl: '',
|
|
19
|
+
height: 0,
|
|
25
20
|
}
|
|
26
|
-
}
|
|
21
|
+
},
|
|
22
|
+
mounted() {
|
|
23
|
+
this.height = document.body.clientHeight - 100
|
|
24
|
+
},
|
|
25
|
+
methods: {
|
|
26
|
+
show(url) {
|
|
27
|
+
// 换为本表主键
|
|
28
|
+
console.log(this)
|
|
29
|
+
this.iframeUrl = url
|
|
30
|
+
this.visible = true
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
}
|
|
27
34
|
</script>
|
|
28
35
|
|
|
29
|
-
<style
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
36
|
+
<style lang="scss" rel="stylesheet/scss" scoped>
|
|
37
|
+
.el-dialog {
|
|
38
|
+
height: 100%;
|
|
39
|
+
}
|
|
33
40
|
</style>
|
|
@@ -1,120 +1,199 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-container>
|
|
3
3
|
<el-main>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
<hd-com-grid
|
|
5
|
+
:hdQuery="hdQuery"
|
|
6
|
+
:pageSizes="[100, 500, 1000, 5000, 10000]"
|
|
7
|
+
@cell-click="cellClick"
|
|
8
|
+
@row-dblclick="showMsg"
|
|
9
|
+
findUrl="/webresources/login/com/ComMsg/find/rec"
|
|
10
|
+
notInit
|
|
11
|
+
recHide
|
|
12
|
+
ref="grid"
|
|
13
|
+
visualScroll
|
|
14
|
+
>
|
|
9
15
|
<div class="filter-container" slot="query">
|
|
10
|
-
<el-input
|
|
11
|
-
|
|
12
|
-
|
|
16
|
+
<el-input
|
|
17
|
+
:placeholder="$t('名称')"
|
|
18
|
+
@keyup.enter.native="$refs.grid.doQuery()"
|
|
19
|
+
class="filter-item"
|
|
20
|
+
style="width: 200px"
|
|
21
|
+
v-model="hdQuery.query.anyQuery"
|
|
22
|
+
>
|
|
13
23
|
</el-input>
|
|
14
|
-
<el-radio-group
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
24
|
+
<el-radio-group
|
|
25
|
+
@change="$refs.grid.doQuery()"
|
|
26
|
+
size="mini"
|
|
27
|
+
v-model="hdQuery.query.readFlg"
|
|
28
|
+
>
|
|
29
|
+
<el-radio-button label="">{{ $t('全部') }}</el-radio-button>
|
|
30
|
+
<el-radio-button label="0">{{ $t('未读') }}</el-radio-button>
|
|
31
|
+
<el-radio-button label="1">{{ $t('已读') }}</el-radio-button>
|
|
18
32
|
</el-radio-group>
|
|
19
|
-
<hd-drop
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
<el-
|
|
33
|
+
<hd-drop
|
|
34
|
+
class="filter-item"
|
|
35
|
+
field="MSG_TYPE"
|
|
36
|
+
style="width: 180px"
|
|
37
|
+
v-model="hdQuery.query.msgType"
|
|
38
|
+
></hd-drop>
|
|
39
|
+
<el-date-picker
|
|
40
|
+
:end-placeholder="$t('结束日期')"
|
|
41
|
+
:start-placeholder="$t('开始日期')"
|
|
42
|
+
class="filter-item"
|
|
43
|
+
format="yyyy-MM-dd HH:mm"
|
|
44
|
+
range-separator="-"
|
|
45
|
+
style="width: 350px"
|
|
46
|
+
type="datetimerange"
|
|
47
|
+
v-model="hdQuery.query.recTime"
|
|
48
|
+
value-format="yyyy-MM-dd HH:mm"
|
|
49
|
+
></el-date-picker>
|
|
50
|
+
<el-button
|
|
51
|
+
@click="$refs.grid.doQuery()"
|
|
52
|
+
class="filter-item"
|
|
53
|
+
:icon="ElIconSearch"
|
|
54
|
+
type="primary"
|
|
55
|
+
>{{ $t('搜索') }}
|
|
26
56
|
</el-button>
|
|
27
|
-
<el-button @click="readMessage()" class="filter-item" type="success"
|
|
57
|
+
<el-button @click="readMessage()" class="filter-item" type="success"
|
|
58
|
+
>{{ $t('读取') }}
|
|
28
59
|
</el-button>
|
|
29
60
|
</div>
|
|
30
|
-
<el-table-column
|
|
61
|
+
<el-table-column
|
|
62
|
+
align="center"
|
|
63
|
+
label="标题"
|
|
64
|
+
prop="title"
|
|
65
|
+
sortable
|
|
66
|
+
width="150px"
|
|
67
|
+
>
|
|
31
68
|
</el-table-column>
|
|
32
|
-
<el-table-column
|
|
69
|
+
<el-table-column
|
|
70
|
+
align="center"
|
|
71
|
+
label="类型"
|
|
72
|
+
prop="msgTypeName"
|
|
73
|
+
width="150px"
|
|
74
|
+
>
|
|
33
75
|
</el-table-column>
|
|
34
|
-
<el-table-column
|
|
76
|
+
<el-table-column
|
|
77
|
+
align="center"
|
|
78
|
+
label="内容"
|
|
79
|
+
prop="content"
|
|
80
|
+
sortable
|
|
81
|
+
width="600px"
|
|
82
|
+
>
|
|
35
83
|
</el-table-column>
|
|
36
|
-
<el-table-column
|
|
84
|
+
<el-table-column
|
|
85
|
+
align="center"
|
|
86
|
+
label="打开路径"
|
|
87
|
+
prop="url"
|
|
88
|
+
sortable
|
|
89
|
+
width="150px"
|
|
90
|
+
>
|
|
37
91
|
</el-table-column>
|
|
38
|
-
<el-table-column
|
|
92
|
+
<el-table-column
|
|
93
|
+
align="center"
|
|
94
|
+
label="发送人"
|
|
95
|
+
prop="sendNam"
|
|
96
|
+
sortable
|
|
97
|
+
width="100px"
|
|
98
|
+
>
|
|
39
99
|
</el-table-column>
|
|
40
|
-
<el-table-column
|
|
41
|
-
|
|
42
|
-
|
|
100
|
+
<el-table-column
|
|
101
|
+
:inputProp="$date"
|
|
102
|
+
align="center"
|
|
103
|
+
input="el-date-picker"
|
|
104
|
+
label="发送时间"
|
|
105
|
+
noEdit
|
|
106
|
+
prop="sendTim"
|
|
107
|
+
sortable
|
|
108
|
+
width="130px"
|
|
109
|
+
>
|
|
43
110
|
</el-table-column>
|
|
44
|
-
<el-table-column
|
|
45
|
-
|
|
46
|
-
|
|
111
|
+
<el-table-column
|
|
112
|
+
:inputProp="$date"
|
|
113
|
+
align="center"
|
|
114
|
+
input="el-date-picker"
|
|
115
|
+
label="读取时间"
|
|
116
|
+
noEdit
|
|
117
|
+
prop="redTim"
|
|
118
|
+
sortable
|
|
119
|
+
width="130px"
|
|
120
|
+
>
|
|
47
121
|
</el-table-column>
|
|
48
122
|
</hd-com-grid>
|
|
49
123
|
</el-main>
|
|
50
|
-
<commsgtoform
|
|
124
|
+
<commsgtoform
|
|
125
|
+
@save-ok="$refs.grid.doQuery()"
|
|
126
|
+
ref="commsgtoform"
|
|
127
|
+
></commsgtoform>
|
|
51
128
|
<commsgiframe ref="commsgiframe"></commsgiframe>
|
|
52
129
|
</el-container>
|
|
53
130
|
</template>
|
|
54
|
-
<script>
|
|
55
|
-
import commsgtoform from './commsgtoform'
|
|
56
|
-
import commsgiframe from './commsgiframe'
|
|
57
131
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
return {
|
|
63
|
-
hdQuery: new HdQuery(this)
|
|
64
|
-
}
|
|
65
|
-
},
|
|
132
|
+
<script>
|
|
133
|
+
import { Search as ElIconSearch } from '@element-plus/icons'
|
|
134
|
+
import commsgtoform from './commsgtoform'
|
|
135
|
+
import commsgiframe from './commsgiframe'
|
|
66
136
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
137
|
+
export default {
|
|
138
|
+
data() {
|
|
139
|
+
return {
|
|
140
|
+
hdQuery: new HdQuery(this),
|
|
141
|
+
ElIconSearch,
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
components: { commsgtoform, commsgiframe },
|
|
145
|
+
mounted() {
|
|
146
|
+
this.hdQuery.sort = 'sendTim'
|
|
147
|
+
this.$refs.grid.doQuery()
|
|
148
|
+
this.$set(this.hdQuery.query, 'readFlg', '0')
|
|
149
|
+
},
|
|
150
|
+
methods: {
|
|
151
|
+
showMsg(row) {
|
|
152
|
+
this.$refs['commsgtoform'].show(row.recId)
|
|
71
153
|
},
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
this.$http.post('/webresources/login/com/ComMsg/batch/read', checkRows).then(response => {
|
|
83
|
-
var data = response.data;
|
|
154
|
+
readMessage() {
|
|
155
|
+
const checkRows = this.$refs.grid.$refs.hdgrid.getCkRows()
|
|
156
|
+
if (checkRows.length < 1) {
|
|
157
|
+
this.$message({ type: 'error', message: this.$t('请先选择消息!') })
|
|
158
|
+
return
|
|
159
|
+
}
|
|
160
|
+
this.$http
|
|
161
|
+
.post('/webresources/login/com/ComMsg/batch/read', checkRows)
|
|
162
|
+
.then((response) => {
|
|
163
|
+
var data = response.data
|
|
84
164
|
if (data.code == '1') {
|
|
85
165
|
this.$message({
|
|
86
166
|
type: 'success',
|
|
87
|
-
message: data.message
|
|
167
|
+
message: data.message,
|
|
88
168
|
})
|
|
89
|
-
this.$store.state.user.messageNum = response.data.data
|
|
90
|
-
this.$refs.grid.doQuery()
|
|
169
|
+
this.$store.state.user.messageNum = response.data.data
|
|
170
|
+
this.$refs.grid.doQuery()
|
|
91
171
|
} else {
|
|
92
172
|
this.$message({
|
|
93
173
|
type: 'error',
|
|
94
|
-
message: data.message
|
|
174
|
+
message: data.message,
|
|
95
175
|
})
|
|
96
176
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
177
|
})
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
openUrl(path) {//这里必须是全局的
|
|
107
|
-
if (path.indexOf('http://') == 0 || path.indexOf('https://') == 0) {//http开头的在新窗口打开
|
|
108
|
-
window.open(path);
|
|
109
|
-
} else if (path.indexOf('iframe://') == 0) {
|
|
110
|
-
this.$refs['commsgiframe'].show(path.substring(9));
|
|
111
|
-
} else {
|
|
112
|
-
this.$router.push({
|
|
113
|
-
path: path,
|
|
114
|
-
});
|
|
115
|
-
}
|
|
178
|
+
},
|
|
179
|
+
cellClick(row, column) {
|
|
180
|
+
if (column.property == 'url') {
|
|
181
|
+
this.openUrl(row.url)
|
|
116
182
|
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
|
|
183
|
+
},
|
|
184
|
+
openUrl(path) {
|
|
185
|
+
//这里必须是全局的
|
|
186
|
+
if (path.indexOf('http://') == 0 || path.indexOf('https://') == 0) {
|
|
187
|
+
//http开头的在新窗口打开
|
|
188
|
+
window.open(path)
|
|
189
|
+
} else if (path.indexOf('iframe://') == 0) {
|
|
190
|
+
this.$refs['commsgiframe'].show(path.substring(9))
|
|
191
|
+
} else {
|
|
192
|
+
this.$router.push({
|
|
193
|
+
path: path,
|
|
194
|
+
})
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
},
|
|
198
|
+
}
|
|
120
199
|
</script>
|