hd-idevvue3 3.0.2 → 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.
Files changed (147) hide show
  1. package/dist/assets/index.9c127719.css +1 -0
  2. package/dist/hd-idevvue3.mjs +3521 -3305
  3. package/dist/hd-idevvue3.umd.js +29 -29
  4. package/npminstall-debug.log +2 -10
  5. package/package.json +4 -2
  6. package/pnpm-lock.yaml +37 -4
  7. package/src/App.vue +11 -15
  8. package/src/assets/sound/notify.wav +0 -0
  9. package/src/demo/demo.vue +9 -10
  10. package/src/demo/dropdemo.vue +42 -43
  11. package/src/demo/extsets.vue +140 -39
  12. package/src/demo/formedit.vue +157 -145
  13. package/src/demo/hightquery.vue +263 -66
  14. package/src/demo/inlineedit.vue +129 -35
  15. package/src/demo/selfdrop.vue +32 -15
  16. package/src/directive/el-dragDialog/drag.js +13 -13
  17. package/src/directive/el-dragDialog/index.js +13 -13
  18. package/src/errorLog.js +3 -3
  19. package/src/hdcom/BigGrid.js +54 -48
  20. package/src/hdcom/BillShow.vue +84 -63
  21. package/src/hdcom/BillUpload.vue +144 -86
  22. package/src/hdcom/BtnRight.vue +26 -23
  23. package/src/hdcom/ErrHint.vue +36 -24
  24. package/src/hdcom/ExtendColumn.vue +97 -90
  25. package/src/hdcom/ExtendCommon.js +24 -13
  26. package/src/hdcom/ExtendForm.vue +107 -80
  27. package/src/hdcom/FacePicUpload.vue +59 -50
  28. package/src/hdcom/FaceRecTest.vue +87 -77
  29. package/src/hdcom/GridChart.vue +175 -162
  30. package/src/hdcom/GridExField.vue +328 -234
  31. package/src/hdcom/GridShow.vue +89 -39
  32. package/src/hdcom/HdAside.vue +192 -145
  33. package/src/hdcom/HdBtn.vue +44 -32
  34. package/src/hdcom/HdButton.vue +141 -117
  35. package/src/hdcom/HdComFaceRec.vue +80 -32
  36. package/src/hdcom/HdComGrid.vue +329 -229
  37. package/src/hdcom/HdComQuery.vue +179 -90
  38. package/src/hdcom/HdComQueryDetail.vue +159 -115
  39. package/src/hdcom/HdComSortDetail.vue +136 -130
  40. package/src/hdcom/HdDatePicker.vue +32 -16
  41. package/src/hdcom/HdDialog.vue +62 -44
  42. package/src/hdcom/HdDrop.vue +163 -138
  43. package/src/hdcom/HdFileUpload.vue +138 -119
  44. package/src/hdcom/HdFilterBox.vue +62 -62
  45. package/src/hdcom/HdFooter.vue +152 -119
  46. package/src/hdcom/HdForm.vue +276 -203
  47. package/src/hdcom/HdFormBtn.vue +81 -39
  48. package/src/hdcom/HdFormItem.vue +14 -10
  49. package/src/hdcom/HdGrid.vue +353 -156
  50. package/src/hdcom/HdGridEditBtn.vue +34 -20
  51. package/src/hdcom/HdGridExt.js +78 -47
  52. package/src/hdcom/HdGridSel.vue +227 -193
  53. package/src/hdcom/HdHeader.vue +149 -117
  54. package/src/hdcom/HdHotKey.vue +70 -67
  55. package/src/hdcom/HdInputHint.vue +40 -36
  56. package/src/hdcom/HdMain.vue +25 -27
  57. package/src/hdcom/HdMessage.vue +180 -171
  58. package/src/hdcom/HdNum.vue +67 -57
  59. package/src/hdcom/HdPopSel.vue +46 -24
  60. package/src/hdcom/HdRightMenu.vue +63 -61
  61. package/src/hdcom/HdSel/SelGridFieldcod.vue +46 -28
  62. package/src/hdcom/HdTableColumn.vue +156 -109
  63. package/src/hdcom/HdTempSave.vue +138 -116
  64. package/src/hdcom/HdTree.vue +89 -72
  65. package/src/hdcom/HdTreeTable/eval.js +8 -3
  66. package/src/hdcom/HdTreeTable/index.vue +229 -174
  67. package/src/hdcom/ImportExcel.vue +69 -34
  68. package/src/hdcom/index.js +39 -44
  69. package/src/idev.common.js +54 -47
  70. package/src/index.js +3 -6
  71. package/src/utils/HdQuery.js +25 -14
  72. package/src/utils/comutils.js +50 -28
  73. package/src/utils/gogocodeTransfer.js +59 -0
  74. package/src/utils/utils.js +30 -19
  75. package/src/vendor/Blob.js +187 -179
  76. package/src/vendor/Export2Excel.js +231 -220
  77. package/src/vendor/Export2Zip.js +25 -22
  78. package/src/views/layout/AppMain.vue +34 -32
  79. package/src/views/layout/HdLayout.vue +64 -52
  80. package/src/views/layout/header/ElasticSearch.vue +196 -159
  81. package/src/views/layout/header/HZRecorder.js +163 -135
  82. package/src/views/layout/header/HeaderSearch.vue +165 -145
  83. package/src/views/layout/header/Levelbar.vue +55 -49
  84. package/src/views/layout/header/MainHeader.vue +233 -189
  85. package/src/views/layout/header/Navbar.vue +74 -78
  86. package/src/views/layout/header/ScrollPane.vue +103 -81
  87. package/src/views/layout/header/TagsView.vue +169 -164
  88. package/src/views/layout/header/VocRec.vue +86 -78
  89. package/src/views/layout/header/changepswform.vue +98 -64
  90. package/src/views/layout/index.js +5 -7
  91. package/src/views/layout/menu/Hamburger.vue +63 -45
  92. package/src/views/layout/menu/HdMenu.vue +155 -118
  93. package/src/views/layout/menu/index.vue +21 -19
  94. package/src/views/privilege/commsg/commsg.vue +115 -41
  95. package/src/views/privilege/commsg/commsgOrgn.vue +40 -31
  96. package/src/views/privilege/commsg/commsgRole.vue +180 -109
  97. package/src/views/privilege/commsg/commsgform.vue +125 -101
  98. package/src/views/privilege/commsg/commsgiframe.vue +30 -23
  99. package/src/views/privilege/commsg/commsgto.vue +163 -84
  100. package/src/views/privilege/commsg/commsgtoform.vue +64 -58
  101. package/src/views/privilege/commsg/commsgtrans.vue +187 -115
  102. package/src/views/privilege/exfield/comexcolumn.vue +133 -43
  103. package/src/views/privilege/exfield/comexcolumnform.vue +85 -58
  104. package/src/views/privilege/exfield/comexfield.vue +15 -17
  105. package/src/views/privilege/exfield/comexfieldform.vue +71 -53
  106. package/src/views/privilege/exfield/comexfieldsub.vue +137 -46
  107. package/src/views/privilege/index.js +19 -20
  108. package/src/views/privilege/menu/comMenu.vue +49 -41
  109. package/src/views/privilege/menu/menu.vue +166 -49
  110. package/src/views/privilege/menu/menuinfo.vue +41 -34
  111. package/src/views/privilege/menu/rolelist.vue +78 -33
  112. package/src/views/privilege/menu/userlist.vue +76 -33
  113. package/src/views/privilege/mobile/authmobileupdate.vue +119 -43
  114. package/src/views/privilege/mobile/authmobileupdateform.vue +76 -46
  115. package/src/views/privilege/orgDept/authOrgn.vue +157 -65
  116. package/src/views/privilege/orgDept/authorgnform.vue +50 -38
  117. package/src/views/privilege/orgDept/orgDept.vue +38 -37
  118. package/src/views/privilege/orgDept/orgTree.vue +99 -88
  119. package/src/views/privilege/orgDept/orgnselect.vue +132 -111
  120. package/src/views/privilege/personDept/authuser.vue +197 -91
  121. package/src/views/privilege/personDept/authuserform.vue +123 -71
  122. package/src/views/privilege/personDept/facerec.vue +128 -83
  123. package/src/views/privilege/personDept/orgncascader.vue +134 -115
  124. package/src/views/privilege/personDept/personDept.vue +9 -7
  125. package/src/views/privilege/quartz/comquartzjob.vue +123 -38
  126. package/src/views/privilege/quartz/comquartzjobform.vue +67 -51
  127. package/src/views/privilege/quartz/comquartzlog.vue +116 -32
  128. package/src/views/privilege/role/btnRole.vue +123 -67
  129. package/src/views/privilege/role/menuRole.vue +65 -45
  130. package/src/views/privilege/role/orgnRole.vue +63 -41
  131. package/src/views/privilege/role/role.vue +26 -9
  132. package/src/views/privilege/role/rolelist.vue +114 -45
  133. package/src/views/privilege/role/roleselect.vue +34 -17
  134. package/src/views/privilege/search/comsearch.vue +164 -73
  135. package/src/views/privilege/search/menu.vue +38 -22
  136. package/src/views/privilege/syscode/syscode.vue +157 -69
  137. package/src/views/privilege/syscode/sysfield.vue +96 -43
  138. package/src/views/privilege/syscode/sysfieldframe.vue +30 -30
  139. package/src/views/privilege/syslog/menulog.vue +38 -22
  140. package/src/views/privilege/syslog/syslog.vue +145 -78
  141. package/src/views/privilege/syslog/syslogconfig.vue +91 -24
  142. package/src/views/privilege/syslog/syslogform.vue +45 -43
  143. package/src/views/privilege/syslog/syslogframe.vue +26 -26
  144. package/src/views/privilege/userRole/userRole.vue +187 -89
  145. package/vite.config.js +7 -0
  146. package/dist/assets/index.774ef40e.css +0 -1
  147. package/src/views/privilege.zip +0 -0
@@ -1,73 +1,78 @@
1
1
  <template>
2
- <el-dialog title="编辑" :visible.sync="visible" width='80%' top="5vh">
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)">
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
- :rules="$r(1,0,256)">
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 field="MSG_TYPE" v-model="hdform.msgTypeCode" style="width: 100%" ></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-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 v-model="hdform.content" type="textarea"
35
- :rows="3" ></el-input>
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
- <el-button @click="visible = false">取 消</el-button>
42
- <el-button type="primary" @click="submit" :loading="loading"> 确 定</el-button>
43
- </div>-->
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
- export default {
51
- name: 'commsgtoform',
52
- data() {
53
- return {
54
- hdform: {},
55
- visible: false,
56
- tsLoading: false,
57
- loading: false,
58
- hdRtData: {rows: []}, // 已选人员
59
- findUrl: ''
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
- methods: {
63
- show(msgId) { // 换为本表主键
64
- // 弹窗重复使用时,清除校验项目
65
- if (this.$refs['hdform']) {
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
- submit() {
81
- this.$refs['hdform'].validate((valid) => {
82
- if (!valid) {
83
- return false
84
- }
85
- this.hdform.userList = this.hdRtData.rows
86
- this.loading = true
87
- this.$http.post('/webresources/login/com/ComMsg/saveone', this.hdform).then(response => {
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
- handleChange(value, direction, movedKeys) {
103
- // console.log(value, direction, movedKeys);
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 :placeholder="$t('姓名、账号')" @keyup.enter.native="doQuery()" class="filter-item"
7
- style="width: 200px;"
8
- v-model="hdQuery.query.name">
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 :idVal.sync="hdQuery.query.orgnId" :placeholder="$t('请选择组织')"
11
- :txtVal.sync="hdQuery.query.orgnIdStr" class="filter-item"></orgnselect>
12
- <roleselect :idVal.sync="hdQuery.query.roleId" :txtVal.sync="hdQuery.query.roleIdStr"
13
- class="filter-item"></roleselect>
14
- <el-button @click="doQuery">{{$t('搜索')}}</el-button>
15
- <el-button @click="hdQuery.query={}">{{$t('清空')}}</el-button>
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 :hdQuery="hdQuery" :hdResult="hdResultLeftSel"
24
- @row-dblclick="leftClick" @selection-change="leftSelMe" noSets recHide v-loading="listLoading1">
25
- <div class="el-line">{{$t('未选')}}</div>
26
- <el-table-column align="left" header-align="center" label="姓名" prop="name" sortable width="130px">
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 align="left" header-align="center" label="部门" prop="orgnName" sortable width="130px">
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 align="left" header-align="center" label="账号" prop="account" sortable>
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 align="middle" justify="center" style="height: 100%" type="flex">
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%">{{$t('选择')}}</el-button>
38
- <br/><br/>
39
- <el-button @click="removeSel()" style="width: 100%">{{$t('移除')}}</el-button>
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 :hdResult="hdResultRightSel" @row-dblclick="rightClick" @selection-change="rightSelMe" noSets
45
- pageHide
46
- recHide>
47
- <div class="el-line">{{$t('已选')}}</div>
48
- <el-table-column align="left" header-align="center" label="姓名" prop="name" sortable width="130px">
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 align="left" header-align="center" label="部门" prop="orgnName" sortable width="130px">
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 align="left" header-align="center" label="账号" prop="account" sortable width="130px">
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
- import roleselect from '../role/roleselect'
65
- import orgnselect from '../orgDept/orgnselect'
66
-
135
+ import roleselect from '../role/roleselect'
136
+ import orgnselect from '../orgDept/orgnselect'
67
137
 
68
- export default {
69
- name: 'MsgTrans',
70
- components: {orgnselect, roleselect},
71
- data() {
72
- return {
73
- hdQuery: new HdQuery(this),
74
- hdResultLeftSel: {rows: []},//左侧数据
75
- hdResultRightSel: {rows: []},
76
- leftSel: [], // check 左侧
77
- rightSel: [], //
78
- leftCheck: Object,
79
- rightCheck: Object,
80
- listLoading1: false,
81
- listLoading2: false
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
- // hdResult展示 hdQuery查询 defaultSort默认排序 pageHide true隐藏分页
85
- props: {
86
- msgId: String,
87
- orgnIds: String
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
- watch: {
90
- msgId: function (newVal) {
91
- this.initQuery()
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
- methods: {
95
- initQuery() {
96
- console.log('initQuery', this.msgId, this.orgnIds)
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
- leftSelMe(select) {
114
- this.leftSel = select
115
- },
116
- rightSelMe(select) {
117
- this.rightSel = select
118
- },
119
- leftClick(row) {
120
- this.hdResultRightSel.rows.push(row)
121
- this.hdResultLeftSel.rows.remove(row)
122
- this.leftSel.remove(row)
123
- },
124
- rightClick(row) {
125
- this.hdResultRightSel.rows.remove(row)
126
- this.hdResultLeftSel.rows.push(row)
127
- this.rightSel.remove(row)
128
- },
129
- addSel() {
130
- this.leftSel.forEach((value) => {
131
- this.hdResultRightSel.rows.push(value)
132
- this.hdResultLeftSel.rows.remove(value)
133
- })
134
- this.leftSel = []
135
- },
136
- removeSel() {
137
- this.rightSel.forEach((value) => {
138
- this.hdResultLeftSel.rows.push(value)
139
- this.hdResultRightSel.rows.remove(value)
140
- })
141
- this.rightSel = []
142
- },
143
- getOrgIds() {
144
- let excIds = ''
145
- for (let i = 0; i < this.hdResultRightSel.rows.length; i++) {
146
- excIds += this.hdResultRightSel.rows[i].userId + ','
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>