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,73 +1,78 @@
|
|
|
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
|
-
|
|
8
|
-
<el-input type="text" v-model="hdform.msgCode" ></el-input>
|
|
6
|
+
<el-form-item label="CODE" prop="msgCode" :rules="$r(0, 0, 36)">
|
|
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
|
-
|
|
14
|
-
<el-input type="text" v-model="hdform.title" ></el-input>
|
|
11
|
+
<el-form-item label="标题" prop="title" :rules="$r(1, 0, 256)">
|
|
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
|
-
|
|
27
|
-
<el-input type="text" v-model="hdform.url" ></el-input>
|
|
27
|
+
<el-form-item label="打开路径" prop="url" :rules="$r(0, 0, 256)">
|
|
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>
|
|
39
43
|
</el-form>
|
|
40
|
-
<!-- <div slot="footer" class="dialog-footer">
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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>-->
|
|
44
48
|
</el-dialog>
|
|
45
|
-
|
|
46
49
|
</template>
|
|
47
50
|
|
|
48
51
|
<script>
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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()
|
|
60
70
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
this.$refs['hdform'].resetFields()
|
|
67
|
-
}
|
|
68
|
-
this.hdRtData.rows = []
|
|
69
|
-
this.visible = true
|
|
70
|
-
this.$http.get('/webresources/login/com/ComMsg/findone/rec?msgId=' + msgId).then(response => {
|
|
71
|
+
this.hdRtData.rows = []
|
|
72
|
+
this.visible = true
|
|
73
|
+
this.$http
|
|
74
|
+
.get('/webresources/login/com/ComMsg/findone/rec?msgId=' + msgId)
|
|
75
|
+
.then((response) => {
|
|
71
76
|
const data = response.data
|
|
72
77
|
this.hdform = data
|
|
73
78
|
if (this.hdform.userList != null) {
|
|
@@ -75,21 +80,23 @@
|
|
|
75
80
|
this.$refs.commsgtrans.doQuery()
|
|
76
81
|
}
|
|
77
82
|
})
|
|
78
|
-
|
|
83
|
+
},
|
|
79
84
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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) => {
|
|
88
95
|
this.loading = false
|
|
89
96
|
const data = response.data
|
|
90
97
|
this.$message({
|
|
91
98
|
type: data.code == '-1' ? 'error' : 'success',
|
|
92
|
-
message: data.message
|
|
99
|
+
message: data.message,
|
|
93
100
|
})
|
|
94
101
|
if (data.code == '-1') {
|
|
95
102
|
return
|
|
@@ -97,12 +104,11 @@
|
|
|
97
104
|
this.$emit('save-ok') // 主页面调用弹窗时添加
|
|
98
105
|
this.visible = false
|
|
99
106
|
})
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
+
})
|
|
108
|
+
},
|
|
109
|
+
handleChange(value, direction, movedKeys) {
|
|
110
|
+
// console.log(value, direction, movedKeys);
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
}
|
|
107
114
|
</script>
|
|
108
|
-
|
|
@@ -1,155 +1,227 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<el-container direction="vertical" style="height: 60vh;padding: 0">
|
|
2
|
+
<el-container direction="vertical" style="height: 60vh; padding: 0">
|
|
3
3
|
<ex-header height="50px">
|
|
4
4
|
<div class="filter-container" style="padding: 5px">
|
|
5
|
-
{{$t('用户查询')}}
|
|
6
|
-
<el-input
|
|
7
|
-
|
|
8
|
-
|
|
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
|
+
>
|
|
9
13
|
</el-input>
|
|
10
|
-
<orgnselect
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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>
|
|
17
27
|
</div>
|
|
18
28
|
</ex-header>
|
|
19
29
|
<el-main>
|
|
20
|
-
<div style="width:100%;height:100
|
|
21
|
-
<el-container style="width:100%;height:100
|
|
30
|
+
<div style="width: 100%; height: 100%">
|
|
31
|
+
<el-container style="width: 100%; height: 100%">
|
|
22
32
|
<ex-aside width="45%">
|
|
23
|
-
<hd-grid
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
+
>
|
|
27
51
|
</el-table-column>
|
|
28
|
-
<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
|
+
>
|
|
29
60
|
</el-table-column>
|
|
30
|
-
<el-table-column
|
|
61
|
+
<el-table-column
|
|
62
|
+
align="left"
|
|
63
|
+
header-align="center"
|
|
64
|
+
label="账号"
|
|
65
|
+
prop="account"
|
|
66
|
+
sortable
|
|
67
|
+
>
|
|
31
68
|
</el-table-column>
|
|
32
69
|
</hd-grid>
|
|
33
70
|
</ex-aside>
|
|
34
71
|
<ex-aside :arrowShow="false" width="80px">
|
|
35
|
-
<el-row
|
|
72
|
+
<el-row
|
|
73
|
+
align="middle"
|
|
74
|
+
justify="center"
|
|
75
|
+
style="height: 100%"
|
|
76
|
+
type="flex"
|
|
77
|
+
>
|
|
36
78
|
<el-col :span="20">
|
|
37
|
-
<el-button @click="addSel()" style="width: 100%">{{
|
|
38
|
-
|
|
39
|
-
|
|
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>
|
|
40
86
|
</el-col>
|
|
41
87
|
</el-row>
|
|
42
88
|
</ex-aside>
|
|
43
89
|
<el-main :arrowShow="false" width="50%">
|
|
44
|
-
<hd-grid
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
+
>
|
|
49
107
|
</el-table-column>
|
|
50
|
-
<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
|
+
>
|
|
51
116
|
</el-table-column>
|
|
52
|
-
<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
|
+
>
|
|
53
125
|
</el-table-column>
|
|
54
126
|
</hd-grid>
|
|
55
127
|
</el-main>
|
|
56
128
|
</el-container>
|
|
57
129
|
</div>
|
|
58
130
|
</el-main>
|
|
59
|
-
|
|
60
131
|
</el-container>
|
|
61
132
|
</template>
|
|
62
133
|
|
|
63
134
|
<script>
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
135
|
+
import roleselect from '../role/roleselect'
|
|
136
|
+
import orgnselect from '../orgDept/orgnselect'
|
|
67
137
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
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()
|
|
83
162
|
},
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
orgnIds
|
|
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
|
+
})
|
|
88
173
|
},
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
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 + ','
|
|
92
179
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
this.$http.get(`/webresources/login/com/ComMsg/findUserByMsgId/${this.msgId}`).then(response => {
|
|
98
|
-
this.hdResultRightSel.rows = response.data == null ? [] : response.data
|
|
99
|
-
})
|
|
100
|
-
},
|
|
101
|
-
doQuery() {
|
|
102
|
-
let excIds = ''
|
|
103
|
-
this.listLoading1 = true
|
|
104
|
-
for (let i = 0; i < this.hdResultRightSel.rows.length; i++) {
|
|
105
|
-
excIds += this.hdResultRightSel.rows[i].userId + ','
|
|
106
|
-
}
|
|
107
|
-
this.hdQuery.query.excIds = excIds
|
|
108
|
-
this.$http.post(`/webresources/login/com/ComMsg/find/user`, this.hdQuery).then(response => {
|
|
180
|
+
this.hdQuery.query.excIds = excIds
|
|
181
|
+
this.$http
|
|
182
|
+
.post(`/webresources/login/com/ComMsg/find/user`, this.hdQuery)
|
|
183
|
+
.then((response) => {
|
|
109
184
|
this.listLoading1 = false
|
|
110
185
|
this.hdResultLeftSel = response.data
|
|
111
186
|
})
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
}
|
|
148
|
-
return excIds;
|
|
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 + ','
|
|
149
222
|
}
|
|
150
|
-
|
|
151
|
-
|
|
223
|
+
return excIds
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
}
|
|
152
227
|
</script>
|
|
153
|
-
<style rel="stylesheet/scss" lang="scss">
|
|
154
|
-
|
|
155
|
-
</style>
|