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.
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 +3 -1
  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,25 +1,27 @@
1
1
  <template>
2
-
3
- <el-menu :collapse="isCollapse" :default-active="$route.name" active-text-color="#ffffff" background-color="#ffffff"
4
- mode="vertical" text-color="#fff">
5
- <HdMenu :routes="hdMenu"></HdMenu>
6
- </el-menu>
2
+ <el-menu
3
+ :collapse="isCollapse"
4
+ :default-active="$route.name"
5
+ active-text-color="#ffffff"
6
+ background-color="#ffffff"
7
+ mode="vertical"
8
+ text-color="#fff"
9
+ >
10
+ <HdMenu :routes="hdMenu"></HdMenu>
11
+ </el-menu>
7
12
  </template>
8
13
 
9
14
  <script>
10
- import {mapGetters} from 'vuex'
11
- import HdMenu from './HdMenu'
15
+ import { mapGetters } from 'vuex'
16
+ import HdMenu from './HdMenu'
12
17
 
13
- export default {
14
- components: {HdMenu},
15
- computed: {
16
- ...mapGetters([
17
- 'hdMenu',
18
- 'sidebar'
19
- ]),
20
- isCollapse() {
21
- return !this.sidebar.opened
22
- }
23
- }
24
- }
18
+ export default {
19
+ components: { HdMenu },
20
+ computed: {
21
+ ...mapGetters(['hdMenu', 'sidebar']),
22
+ isCollapse() {
23
+ return !this.sidebar.opened
24
+ },
25
+ },
26
+ }
25
27
  </script>
@@ -1,78 +1,152 @@
1
1
  <template>
2
2
  <el-container>
3
3
  <el-main>
4
-
5
- <hd-com-grid :hdQuery="hdQuery" ref="grid" url="/webresources/login/com/ComMsg" visualScroll>
4
+ <hd-com-grid
5
+ :hdQuery="hdQuery"
6
+ ref="grid"
7
+ url="/webresources/login/com/ComMsg"
8
+ visualScroll
9
+ >
6
10
  <div class="filter-container" slot="query">
7
- <el-input @keyup.enter.native="$refs.grid.doQuery()" class="filter-item" :placeholder="$t('名称')"
8
- style="width: 200px;"
9
- v-model="hdQuery.query.anyQuery">
11
+ <el-input
12
+ @keyup.enter.native="$refs.grid.doQuery()"
13
+ class="filter-item"
14
+ :placeholder="$t('名称')"
15
+ style="width: 200px"
16
+ v-model="hdQuery.query.anyQuery"
17
+ >
10
18
  </el-input>
11
- <el-button @click="$refs.grid.doQuery()" class="filter-item" icon="search" ref="q" type="primary">{{$t('搜索')}}
19
+ <el-button
20
+ @click="$refs.grid.doQuery()"
21
+ class="filter-item"
22
+ :icon="ElIconSearch"
23
+ ref="q"
24
+ type="primary"
25
+ >{{ $t('搜索') }}
12
26
  </el-button>
13
- <el-button @click="doEdit('')" class="filter-item" icon="edit" ref="a" type="primary">{{$t('新增')}}
27
+ <el-button
28
+ @click="doEdit('')"
29
+ class="filter-item"
30
+ :icon="ElIconEdit"
31
+ ref="a"
32
+ type="primary"
33
+ >{{ $t('新增') }}
14
34
  </el-button>
15
- <el-button @click="$refs.grid.doRemoveAll()" class="filter-item" ref="d" type="danger">{{$t('删除')}}
35
+ <el-button
36
+ @click="$refs.grid.doRemoveAll()"
37
+ class="filter-item"
38
+ ref="d"
39
+ type="danger"
40
+ >{{ $t('删除') }}
16
41
  </el-button>
17
42
  </div>
18
- <el-table-column align="center" fixed="right" label="操作" width="100px">
43
+ <el-table-column
44
+ align="center"
45
+ fixed="right"
46
+ label="操作"
47
+ width="100px"
48
+ >
19
49
  <template slot-scope="scope">
20
- <hd-btn @click.stop="doEdit(scope.row.msgId)" hint="编辑" icon="el-icon-edit"></hd-btn>
21
- <hd-btn @click.stop="$refs.grid.doRemove(scope.row)" hint="删除" icon="el-icon-delete"></hd-btn>
22
- <hd-btn @click.stop="send(scope.row.msgId)" hint="发送" icon="el-icon-phone"></hd-btn>
50
+ <hd-btn
51
+ @click.stop="doEdit(scope.row.msgId)"
52
+ hint="编辑"
53
+ icon="el-icon-edit"
54
+ ></hd-btn>
55
+ <hd-btn
56
+ @click.stop="$refs.grid.doRemove(scope.row)"
57
+ hint="删除"
58
+ icon="el-icon-delete"
59
+ ></hd-btn>
60
+ <hd-btn
61
+ @click.stop="send(scope.row.msgId)"
62
+ hint="发送"
63
+ icon="el-icon-phone"
64
+ ></hd-btn>
23
65
  </template>
24
66
  </el-table-column>
25
- <el-table-column align="center" label="CODE" prop="msgCode" sortable width="100px">
67
+ <el-table-column
68
+ align="center"
69
+ label="CODE"
70
+ prop="msgCode"
71
+ sortable
72
+ width="100px"
73
+ >
26
74
  </el-table-column>
27
- <el-table-column align="center" label="标题" prop="title" sortable width="100px">
75
+ <el-table-column
76
+ align="center"
77
+ label="标题"
78
+ prop="title"
79
+ sortable
80
+ width="100px"
81
+ >
28
82
  </el-table-column>
29
- <el-table-column align="center" label="类型" prop="msgTypeName" width="150px">
83
+ <el-table-column
84
+ align="center"
85
+ label="类型"
86
+ prop="msgTypeName"
87
+ width="150px"
88
+ >
30
89
  </el-table-column>
31
- <el-table-column align="center" label="内容" prop="content" sortable width="300px">
90
+ <el-table-column
91
+ align="center"
92
+ label="内容"
93
+ prop="content"
94
+ sortable
95
+ width="300px"
96
+ >
32
97
  </el-table-column>
33
- <el-table-column align="center" label="打开路径" prop="url" sortable width="100px">
98
+ <el-table-column
99
+ align="center"
100
+ label="打开路径"
101
+ prop="url"
102
+ sortable
103
+ width="100px"
104
+ >
34
105
  </el-table-column>
35
-
36
106
  </hd-com-grid>
37
107
  </el-main>
38
108
  <commsgform @save-ok="$refs.grid.doQuery()" ref="commsgform"></commsgform>
39
109
  </el-container>
40
110
  </template>
41
- <script>
42
- import commsgform from './commsgform'
43
-
44
- export default {
45
- components: {commsgform},
46
- data() {
47
- return {
48
- hdQuery: new HdQuery(this)
49
- }
50
- },
51
111
 
52
- mounted() {
112
+ <script>
113
+ import { Search as ElIconSearch, Edit as ElIconEdit } from '@element-plus/icons'
114
+ import commsgform from './commsgform'
53
115
 
116
+ export default {
117
+ data() {
118
+ return {
119
+ hdQuery: new HdQuery(this),
120
+ ElIconSearch,
121
+ ElIconEdit,
122
+ }
123
+ },
124
+ components: { commsgform },
125
+ mounted() {},
126
+ methods: {
127
+ doEdit(msgId) {
128
+ // 增加或编辑
129
+ this.$refs['commsgform'].show(msgId)
54
130
  },
55
- methods: {
56
-
57
- doEdit(msgId) { // 增加或编辑
58
- this.$refs['commsgform'].show(msgId)
59
- },
60
- send(msgId) { // 增加或编辑
61
- this.$http.post(`/webresources/login/com/ComMsg/send?msgId=${msgId}`).then(response => {
131
+ send(msgId) {
132
+ // 增加或编辑
133
+ this.$http
134
+ .post(`/webresources/login/com/ComMsg/send?msgId=${msgId}`)
135
+ .then((response) => {
62
136
  var data = response.data
63
137
  if (data.code != '1') {
64
138
  this.$message({
65
139
  type: 'error',
66
- message: data.message
140
+ message: data.message,
67
141
  })
68
142
  } else {
69
143
  this.$message({
70
144
  type: 'success',
71
- message: this.$t('发送成功')
145
+ message: this.$t('发送成功'),
72
146
  })
73
147
  }
74
148
  })
75
- }
76
- }
77
- }
149
+ },
150
+ },
151
+ }
78
152
  </script>
@@ -1,42 +1,51 @@
1
1
  <template>
2
- <div style="height: 100%;min-height: 400px">
3
- <hd-tree :data="hdTree" v-loading="listLoading" node-key="id" ref="orgnTree" style="height: 100%"
4
- height="100%" show-checkbox></hd-tree>
2
+ <div style="height: 100%; min-height: 400px">
3
+ <hd-tree
4
+ :data="hdTree"
5
+ v-loading="listLoading"
6
+ node-key="id"
7
+ ref="orgnTree"
8
+ style="height: 100%"
9
+ height="100%"
10
+ show-checkbox
11
+ ></hd-tree>
5
12
  </div>
6
13
  </template>
7
- <script>
8
14
 
9
- export default {
10
- name: 'commsgOrgn',
11
- data: function () {
12
- return {
13
- hdTree: [],
14
- listLoading: false
15
- }
16
- },
17
- methods: {
18
- doQuery() {
19
- this.listLoading = true
20
- this.$http.get(`../webresources/login/com/ComMsg/findOrgnByMsgId/${this.msgId}`).then(response => {
15
+ <script>
16
+ export default {
17
+ name: 'commsgOrgn',
18
+ data: function () {
19
+ return {
20
+ hdTree: [],
21
+ listLoading: false,
22
+ }
23
+ },
24
+ methods: {
25
+ doQuery() {
26
+ this.listLoading = true
27
+ this.$http
28
+ .get(`../webresources/login/com/ComMsg/findOrgnByMsgId/${this.msgId}`)
29
+ .then((response) => {
21
30
  const data = response.data
22
31
  this.hdTree = data
23
32
  this.listLoading = false
24
33
  })
25
- },
26
- getOrgIds() {
27
- const os = this.$refs.orgnTree.getCheckedNodes(false)
28
- let orgnIds = ''
29
- for (let i = 0; i < os.length; i++) {
30
- orgnIds = orgnIds + os[i].id + ','
31
- }
32
- return orgnIds;
33
- }
34
34
  },
35
- props: ['orgnIds', 'msgId'],
36
- watch: {
37
- msgId : function (newVal) {
38
- this.doQuery()
35
+ getOrgIds() {
36
+ const os = this.$refs.orgnTree.getCheckedNodes(false)
37
+ let orgnIds = ''
38
+ for (let i = 0; i < os.length; i++) {
39
+ orgnIds = orgnIds + os[i].id + ','
39
40
  }
40
- }
41
- }
41
+ return orgnIds
42
+ },
43
+ },
44
+ props: ['orgnIds', 'msgId'],
45
+ watch: {
46
+ msgId: function (newVal) {
47
+ this.doQuery()
48
+ },
49
+ },
50
+ }
42
51
  </script>
@@ -1,149 +1,220 @@
1
1
  <template>
2
- <el-container style="height: 60vh;padding: 0" direction="vertical">
2
+ <el-container style="height: 60vh; padding: 0" direction="vertical">
3
3
  <ex-header height="50px">
4
4
  <div class="filter-container" style="padding: 5px">
5
- {{$t('角色查询')}}
6
- <el-input @keyup.enter.native="doQuery()" style="width: 200px;" class="filter-item"
7
- :placeholder="$t('角色名')"
8
- v-model="hdQuery.query.name">
5
+ {{ $t('角色查询') }}
6
+ <el-input
7
+ @keyup.enter.native="doQuery()"
8
+ style="width: 200px"
9
+ class="filter-item"
10
+ :placeholder="$t('角色名')"
11
+ v-model="hdQuery.query.name"
12
+ >
9
13
  </el-input>
10
- <orgnselect :txtVal.sync="hdQuery.query.orgnIdStr" :idVal.sync="hdQuery.query.orgnId"
11
- class="filter-item" :placeholder="$t('请选择组织')"></orgnselect>
12
- <el-button @click="doQuery">{{$t('搜索')}}</el-button>
13
- <el-button @click="hdQuery.query={}">{{$t('清空')}}</el-button>
14
+ <orgnselect
15
+ :txtVal.sync="hdQuery.query.orgnIdStr"
16
+ :idVal.sync="hdQuery.query.orgnId"
17
+ class="filter-item"
18
+ :placeholder="$t('请选择组织')"
19
+ ></orgnselect>
20
+ <el-button @click="doQuery">{{ $t('搜索') }}</el-button>
21
+ <el-button @click="hdQuery.query = {}">{{ $t('清空') }}</el-button>
14
22
  </div>
15
23
  </ex-header>
16
24
  <el-main>
17
- <div style="width:100%;height:100%;">
18
- <el-container style="width:100%;height:100%;">
25
+ <div style="width: 100%; height: 100%">
26
+ <el-container style="width: 100%; height: 100%">
19
27
  <ex-aside width="45%">
20
- <hd-grid :hdQuery="hdQuery" :hdResult="hdResultLeftSel"
21
- @selection-change="leftSelMe" recHide noSets v-loading="listLoading1" @row-dblclick="leftClick">
22
- <div class="el-line">{{$t('未选')}}</div>
23
- <el-table-column width="130px" align="left" header-align="center" label="名称" prop="name" sortable>
28
+ <hd-grid
29
+ :hdQuery="hdQuery"
30
+ :hdResult="hdResultLeftSel"
31
+ @selection-change="leftSelMe"
32
+ recHide
33
+ noSets
34
+ v-loading="listLoading1"
35
+ @row-dblclick="leftClick"
36
+ >
37
+ <div class="el-line">{{ $t('未选') }}</div>
38
+ <el-table-column
39
+ width="130px"
40
+ align="left"
41
+ header-align="center"
42
+ label="名称"
43
+ prop="name"
44
+ sortable
45
+ >
24
46
  </el-table-column>
25
- <el-table-column width="130px" align="left" header-align="center" label="部门" prop="orgnName" sortable>
47
+ <el-table-column
48
+ width="130px"
49
+ align="left"
50
+ header-align="center"
51
+ label="部门"
52
+ prop="orgnName"
53
+ sortable
54
+ >
26
55
  </el-table-column>
27
- <el-table-column align="left" header-align="center" label="描述" prop="description" sortable>
56
+ <el-table-column
57
+ align="left"
58
+ header-align="center"
59
+ label="描述"
60
+ prop="description"
61
+ sortable
62
+ >
28
63
  </el-table-column>
29
64
  </hd-grid>
30
65
  </ex-aside>
31
66
  <ex-aside width="80px" :arrowShow="false">
32
- <el-row type="flex" justify="center" align="middle" style="height: 100%">
67
+ <el-row
68
+ type="flex"
69
+ justify="center"
70
+ align="middle"
71
+ style="height: 100%"
72
+ >
33
73
  <el-col :span="20">
34
- <el-button @click="addSel()" style="width: 100%">{{$t('选择')}}</el-button>
35
- <br/><br/>
36
- <el-button @click="removeSel()" style="width: 100%">{{$t('移除')}}</el-button>
74
+ <el-button @click="addSel()" style="width: 100%">{{
75
+ $t('选择')
76
+ }}</el-button>
77
+ <br /><br />
78
+ <el-button @click="removeSel()" style="width: 100%">{{
79
+ $t('移除')
80
+ }}</el-button>
37
81
  </el-col>
38
82
  </el-row>
39
83
  </ex-aside>
40
84
  <el-main width="50%" :arrowShow="false">
41
- <hd-grid :hdResult="hdResultRightSel" pageHide @selection-change="rightSelMe" recHide noSets
42
- @row-dblclick="rightClick">
43
- <div class="el-line">{{$t('已选')}}</div>
44
- <el-table-column width="130px" align="left" header-align="center" label="名称" prop="name" sortable>
85
+ <hd-grid
86
+ :hdResult="hdResultRightSel"
87
+ pageHide
88
+ @selection-change="rightSelMe"
89
+ recHide
90
+ noSets
91
+ @row-dblclick="rightClick"
92
+ >
93
+ <div class="el-line">{{ $t('已选') }}</div>
94
+ <el-table-column
95
+ width="130px"
96
+ align="left"
97
+ header-align="center"
98
+ label="名称"
99
+ prop="name"
100
+ sortable
101
+ >
45
102
  </el-table-column>
46
- <el-table-column width="130px" align="left" header-align="center" label="部门" prop="orgnName" sortable>
103
+ <el-table-column
104
+ width="130px"
105
+ align="left"
106
+ header-align="center"
107
+ label="部门"
108
+ prop="orgnName"
109
+ sortable
110
+ >
47
111
  </el-table-column>
48
- <el-table-column width="130px" align="left" header-align="center" label="描述" prop="description" sortable>
112
+ <el-table-column
113
+ width="130px"
114
+ align="left"
115
+ header-align="center"
116
+ label="描述"
117
+ prop="description"
118
+ sortable
119
+ >
49
120
  </el-table-column>
50
121
  </hd-grid>
51
122
  </el-main>
52
123
  </el-container>
53
124
  </div>
54
125
  </el-main>
55
-
56
126
  </el-container>
57
127
  </template>
58
128
 
59
129
  <script>
60
- import orgnselect from '../orgDept/orgnselect'
61
-
130
+ import orgnselect from '../orgDept/orgnselect'
62
131
 
63
- export default {
64
- name: 'MsgRole',
65
- components: {orgnselect},
66
- data() {
67
- return {
68
- hdQuery: new HdQuery(this),
69
- hdResultLeftSel: {rows: []},//左侧数据
70
- hdResultRightSel: {rows: []},
71
- leftSel: [], // check 左侧
72
- rightSel: [], //
73
- leftCheck: Object,
74
- rightCheck: Object,
75
- listLoading1: false,
76
- listLoading2: false
77
- }
132
+ export default {
133
+ name: 'MsgRole',
134
+ components: { orgnselect },
135
+ data() {
136
+ return {
137
+ hdQuery: new HdQuery(this),
138
+ hdResultLeftSel: { rows: [] }, //左侧数据
139
+ hdResultRightSel: { rows: [] },
140
+ leftSel: [], // check 左侧
141
+ rightSel: [], //
142
+ leftCheck: Object,
143
+ rightCheck: Object,
144
+ listLoading1: false,
145
+ listLoading2: false,
146
+ }
147
+ },
148
+ // hdResult展示 hdQuery查询 defaultSort默认排序 pageHide true隐藏分页
149
+ props: {
150
+ msgId: String,
151
+ orgnIds: String,
152
+ },
153
+ watch: {
154
+ msgId: function (newVal) {
155
+ this.initQuery()
78
156
  },
79
- // hdResult展示 hdQuery查询 defaultSort默认排序 pageHide true隐藏分页
80
- props: {
81
- msgId: String,
82
- orgnIds: String
157
+ },
158
+ methods: {
159
+ initQuery() {
160
+ this.$http
161
+ .get(`/webresources/login/com/ComMsg/findRoleByMsgId/${this.msgId}`)
162
+ .then((response) => {
163
+ this.hdResultRightSel.rows =
164
+ response.data == null ? [] : response.data
165
+ })
83
166
  },
84
- watch: {
85
- msgId : function (newVal) {
86
- this.initQuery()
167
+ doQuery() {
168
+ let excIds = ''
169
+ this.listLoading1 = true
170
+ for (let i = 0; i < this.hdResultRightSel.rows.length; i++) {
171
+ excIds += this.hdResultRightSel.rows[i].roleId + ','
87
172
  }
88
- },
89
- methods: {
90
- initQuery() {
91
- this.$http.get(`/webresources/login/com/ComMsg/findRoleByMsgId/${this.msgId}`).then(response => {
92
- this.hdResultRightSel.rows = response.data == null ? [] : response.data
93
- })
94
- },
95
- doQuery() {
96
- let excIds = ''
97
- this.listLoading1 = true
98
- for (let i = 0; i < this.hdResultRightSel.rows.length; i++) {
99
- excIds += this.hdResultRightSel.rows[i].roleId + ','
100
- }
101
- this.hdQuery.query.excIds = excIds
102
- this.$http.post(`/webresources/login/com/ComMsg/find/role`, this.hdQuery).then(response => {
173
+ this.hdQuery.query.excIds = excIds
174
+ this.$http
175
+ .post(`/webresources/login/com/ComMsg/find/role`, this.hdQuery)
176
+ .then((response) => {
103
177
  this.listLoading1 = false
104
178
  this.hdResultLeftSel = response.data
105
179
  })
106
- },
107
- leftSelMe(select) {
108
- this.leftSel = select
109
- },
110
- rightSelMe(select) {
111
- this.rightSel = select
112
- },
113
- leftClick(row) {
114
- this.hdResultRightSel.rows.push(row)
115
- this.hdResultLeftSel.rows.remove(row)
116
- this.leftSel.remove(row)
117
- },
118
- rightClick(row) {
119
- this.hdResultRightSel.rows.remove(row)
120
- this.hdResultLeftSel.rows.push(row)
121
- this.rightSel.remove(row)
122
- },
123
- addSel() {
124
- this.leftSel.forEach((value) => {
125
- this.hdResultRightSel.rows.push(value)
126
- this.hdResultLeftSel.rows.remove(value)
127
- })
128
- this.leftSel = []
129
- },
130
- removeSel() {
131
- this.rightSel.forEach((value) => {
132
- this.hdResultLeftSel.rows.push(value)
133
- this.hdResultRightSel.rows.remove(value)
134
- })
135
- this.rightSel = []
136
- },
137
- getOrgIds() {
138
- let excIds = ''
139
- for (let i = 0; i < this.hdResultRightSel.rows.length; i++) {
140
- excIds += this.hdResultRightSel.rows[i].roleId + ','
141
- }
142
- return excIds;
180
+ },
181
+ leftSelMe(select) {
182
+ this.leftSel = select
183
+ },
184
+ rightSelMe(select) {
185
+ this.rightSel = select
186
+ },
187
+ leftClick(row) {
188
+ this.hdResultRightSel.rows.push(row)
189
+ this.hdResultLeftSel.rows.remove(row)
190
+ this.leftSel.remove(row)
191
+ },
192
+ rightClick(row) {
193
+ this.hdResultRightSel.rows.remove(row)
194
+ this.hdResultLeftSel.rows.push(row)
195
+ this.rightSel.remove(row)
196
+ },
197
+ addSel() {
198
+ this.leftSel.forEach((value) => {
199
+ this.hdResultRightSel.rows.push(value)
200
+ this.hdResultLeftSel.rows.remove(value)
201
+ })
202
+ this.leftSel = []
203
+ },
204
+ removeSel() {
205
+ this.rightSel.forEach((value) => {
206
+ this.hdResultLeftSel.rows.push(value)
207
+ this.hdResultRightSel.rows.remove(value)
208
+ })
209
+ this.rightSel = []
210
+ },
211
+ getOrgIds() {
212
+ let excIds = ''
213
+ for (let i = 0; i < this.hdResultRightSel.rows.length; i++) {
214
+ excIds += this.hdResultRightSel.rows[i].roleId + ','
143
215
  }
144
- }
145
- }
216
+ return excIds
217
+ },
218
+ },
219
+ }
146
220
  </script>
147
- <style rel="stylesheet/scss" lang="scss">
148
-
149
- </style>