hd-idevvue3 3.0.7 → 3.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/dist/{static/js/index-DbUA6jg0.js → index.js} +1 -1
  2. package/package.json +7 -2
  3. package/.env.development +0 -5
  4. package/.env.production +0 -5
  5. package/.eslintrc.js +0 -151
  6. package/dist/static/js/index-Dl4O91nB.js +0 -73768
  7. package/index.html +0 -18
  8. package/pnpm-lock.yaml +0 -3541
  9. package/src/App.vue +0 -11
  10. package/src/assets/sound/notify.wav +0 -0
  11. package/src/demo/demo.vue +0 -42
  12. package/src/demo/dropdemo.vue +0 -42
  13. package/src/demo/extsets.vue +0 -208
  14. package/src/demo/formedit.vue +0 -157
  15. package/src/demo/hightquery.vue +0 -366
  16. package/src/demo/inlineedit.vue +0 -182
  17. package/src/demo/selfdrop.vue +0 -58
  18. package/src/demo//350/241/214/345/206/205/347/272/247/350/201/224.txt +0 -2
  19. package/src/directive/el-dragDialog/drag.js +0 -124
  20. package/src/directive/el-dragDialog/index.js +0 -13
  21. package/src/errorLog.js +0 -16
  22. package/src/hdcom/BigGrid.js +0 -179
  23. package/src/hdcom/BillShow.vue +0 -111
  24. package/src/hdcom/BillUpload.vue +0 -311
  25. package/src/hdcom/BtnRight.vue +0 -101
  26. package/src/hdcom/ErrHint.vue +0 -42
  27. package/src/hdcom/ExtendColumn.vue +0 -115
  28. package/src/hdcom/ExtendCommon.js +0 -40
  29. package/src/hdcom/ExtendForm.vue +0 -141
  30. package/src/hdcom/FacePicUpload.vue +0 -80
  31. package/src/hdcom/FaceRecTest.vue +0 -114
  32. package/src/hdcom/GridChart.vue +0 -207
  33. package/src/hdcom/GridExField.vue +0 -375
  34. package/src/hdcom/GridShow.vue +0 -288
  35. package/src/hdcom/HdAside.vue +0 -225
  36. package/src/hdcom/HdBtn.vue +0 -125
  37. package/src/hdcom/HdButton.vue +0 -161
  38. package/src/hdcom/HdComFaceRec.vue +0 -106
  39. package/src/hdcom/HdComGrid.vue +0 -876
  40. package/src/hdcom/HdComQuery.vue +0 -362
  41. package/src/hdcom/HdComQueryDetail.vue +0 -205
  42. package/src/hdcom/HdComSortDetail.vue +0 -161
  43. package/src/hdcom/HdDatePicker.vue +0 -94
  44. package/src/hdcom/HdDialog.vue +0 -81
  45. package/src/hdcom/HdDrop.vue +0 -188
  46. package/src/hdcom/HdFileUpload.vue +0 -167
  47. package/src/hdcom/HdFilterBox.vue +0 -90
  48. package/src/hdcom/HdFooter.vue +0 -182
  49. package/src/hdcom/HdForm.vue +0 -351
  50. package/src/hdcom/HdFormBtn.vue +0 -131
  51. package/src/hdcom/HdFormItem.vue +0 -39
  52. package/src/hdcom/HdGctosGrid +0 -0
  53. package/src/hdcom/HdGrid.vue +0 -1022
  54. package/src/hdcom/HdGridEditBtn.vue +0 -58
  55. package/src/hdcom/HdGridExt.js +0 -250
  56. package/src/hdcom/HdGridSel.vue +0 -257
  57. package/src/hdcom/HdHeader.vue +0 -180
  58. package/src/hdcom/HdHotKey.vue +0 -84
  59. package/src/hdcom/HdInputHint.vue +0 -53
  60. package/src/hdcom/HdMain.vue +0 -41
  61. package/src/hdcom/HdMessage.vue +0 -201
  62. package/src/hdcom/HdNum.vue +0 -79
  63. package/src/hdcom/HdPopSel.vue +0 -80
  64. package/src/hdcom/HdRightMenu.vue +0 -63
  65. package/src/hdcom/HdSel/SelGridFieldcod.vue +0 -54
  66. package/src/hdcom/HdTableColumn.vue +0 -381
  67. package/src/hdcom/HdTempSave.vue +0 -162
  68. package/src/hdcom/HdTree.vue +0 -103
  69. package/src/hdcom/HdTreeTable/eval.js +0 -39
  70. package/src/hdcom/HdTreeTable/index.vue +0 -229
  71. package/src/hdcom/ImportExcel.vue +0 -178
  72. package/src/hdcom/index.js +0 -75
  73. package/src/idev.common.js +0 -79
  74. package/src/index.js +0 -11
  75. package/src/utils/HdQuery.js +0 -65
  76. package/src/utils/comutils.js +0 -120
  77. package/src/utils/gogocodeTransfer.js +0 -59
  78. package/src/utils/utils.js +0 -116
  79. package/src/vendor/Blob.js +0 -187
  80. package/src/vendor/Export2Excel.js +0 -231
  81. package/src/vendor/Export2Zip.js +0 -25
  82. package/src/views/layout/AppMain.vue +0 -34
  83. package/src/views/layout/HdLayout.vue +0 -90
  84. package/src/views/layout/header/ElasticSearch.vue +0 -262
  85. package/src/views/layout/header/HZRecorder.js +0 -259
  86. package/src/views/layout/header/HeaderSearch.vue +0 -218
  87. package/src/views/layout/header/Levelbar.vue +0 -55
  88. package/src/views/layout/header/MainHeader.vue +0 -315
  89. package/src/views/layout/header/Navbar.vue +0 -101
  90. package/src/views/layout/header/ScrollPane.vue +0 -103
  91. package/src/views/layout/header/TagsView.vue +0 -215
  92. package/src/views/layout/header/VocRec.vue +0 -105
  93. package/src/views/layout/header/changepswform.vue +0 -130
  94. package/src/views/layout/index.js +0 -10
  95. package/src/views/layout/menu/Hamburger.vue +0 -63
  96. package/src/views/layout/menu/HdMenu.vue +0 -204
  97. package/src/views/layout/menu/css/menu.css +0 -288
  98. package/src/views/layout/menu/index.vue +0 -27
  99. package/src/views/privilege/commsg/commsg.vue +0 -152
  100. package/src/views/privilege/commsg/commsgOrgn.vue +0 -51
  101. package/src/views/privilege/commsg/commsgRole.vue +0 -220
  102. package/src/views/privilege/commsg/commsgform.vue +0 -184
  103. package/src/views/privilege/commsg/commsgiframe.vue +0 -40
  104. package/src/views/privilege/commsg/commsgto.vue +0 -199
  105. package/src/views/privilege/commsg/commsgtoform.vue +0 -114
  106. package/src/views/privilege/commsg/commsgtrans.vue +0 -227
  107. package/src/views/privilege/exfield/comexcolumn.vue +0 -161
  108. package/src/views/privilege/exfield/comexcolumnform.vue +0 -128
  109. package/src/views/privilege/exfield/comexfield.vue +0 -29
  110. package/src/views/privilege/exfield/comexfieldform.vue +0 -112
  111. package/src/views/privilege/exfield/comexfieldsub.vue +0 -163
  112. package/src/views/privilege/index.js +0 -41
  113. package/src/views/privilege/menu/comMenu.vue +0 -49
  114. package/src/views/privilege/menu/menu.vue +0 -250
  115. package/src/views/privilege/menu/menuinfo.vue +0 -63
  116. package/src/views/privilege/menu/rolelist.vue +0 -92
  117. package/src/views/privilege/menu/userlist.vue +0 -92
  118. package/src/views/privilege/mobile/authmobileupdate.vue +0 -145
  119. package/src/views/privilege/mobile/authmobileupdateform.vue +0 -120
  120. package/src/views/privilege/orgDept/authOrgn.vue +0 -188
  121. package/src/views/privilege/orgDept/authorgnform.vue +0 -157
  122. package/src/views/privilege/orgDept/orgDept.vue +0 -38
  123. package/src/views/privilege/orgDept/orgTree.vue +0 -99
  124. package/src/views/privilege/orgDept/orgnselect.vue +0 -155
  125. package/src/views/privilege/personDept/authuser.vue +0 -229
  126. package/src/views/privilege/personDept/authuserform.vue +0 -206
  127. package/src/views/privilege/personDept/facerec.vue +0 -162
  128. package/src/views/privilege/personDept/orgncascader.vue +0 -144
  129. package/src/views/privilege/personDept/personDept.vue +0 -33
  130. package/src/views/privilege/quartz/comquartzjob.vue +0 -150
  131. package/src/views/privilege/quartz/comquartzjobform.vue +0 -115
  132. package/src/views/privilege/quartz/comquartzlog.vue +0 -143
  133. package/src/views/privilege/role/btnRole.vue +0 -173
  134. package/src/views/privilege/role/menuRole.vue +0 -84
  135. package/src/views/privilege/role/orgnRole.vue +0 -78
  136. package/src/views/privilege/role/role.vue +0 -84
  137. package/src/views/privilege/role/rolelist.vue +0 -136
  138. package/src/views/privilege/role/roleselect.vue +0 -74
  139. package/src/views/privilege/search/comsearch.vue +0 -196
  140. package/src/views/privilege/search/menu.vue +0 -68
  141. package/src/views/privilege/syscode/syscode.vue +0 -191
  142. package/src/views/privilege/syscode/sysfield.vue +0 -119
  143. package/src/views/privilege/syscode/sysfieldframe.vue +0 -30
  144. package/src/views/privilege/syslog/menulog.vue +0 -68
  145. package/src/views/privilege/syslog/syslog.vue +0 -182
  146. package/src/views/privilege/syslog/syslogconfig.vue +0 -128
  147. package/src/views/privilege/syslog/syslogform.vue +0 -85
  148. package/src/views/privilege/syslog/syslogframe.vue +0 -26
  149. package/src/views/privilege/userRole/userRole.vue +0 -220
  150. package/vite.config.js +0 -124
  151. /package/dist/{static/css/index-DRHIlcVU.css → index.css} +0 -0
@@ -1,136 +0,0 @@
1
- <template>
2
- <hd-com-grid
3
- ref="grid"
4
- :hdQuery="hdQuery"
5
- @row-click="selRow"
6
- url="/webresources/login/privilege/AuthRole/vue"
7
- >
8
- <div class="filter-container" slot="query">
9
- <el-input
10
- @keyup.enter.native="doQuery"
11
- style="width: 120px"
12
- class="filter-item"
13
- :placeholder="$t('名称')"
14
- v-model="hdQuery.query.anyQuery"
15
- >
16
- </el-input>
17
- <orgnselect
18
- style="width: 150px; display: inline-block"
19
- :txtVal.sync="hdQuery.query.orgnName"
20
- :idVal.sync="hdQuery.query.orgnId"
21
- class="filter-item"
22
- :placeholder="$t('选择部门')"
23
- ></orgnselect>
24
- <el-button @click="doQuery" keyType="query" class="filter-item">{{
25
- $t('搜索')
26
- }}</el-button>
27
- <el-button
28
- class="filter-item"
29
- type="primary"
30
- @click="$refs.grid.doEdit('')"
31
- keyType="add"
32
- >{{ $t('增加') }}</el-button
33
- >
34
- </div>
35
- <el-table-column width="90" align="center" label="操作" fixed="right">
36
- <template slot-scope="scope">
37
- <hd-btn
38
- icon="el-icon-edit"
39
- hint="编辑"
40
- @click="$refs.grid.doEdit(scope.row)"
41
- v-if="!scope.row.isEdit"
42
- >{{ $t('编辑') }}</hd-btn
43
- >
44
- <hd-btn
45
- icon="el-icon-delete"
46
- hint="删除"
47
- @click="$refs.grid.doRemove(scope.row)"
48
- v-if="!scope.row.isEdit"
49
- >{{ $t('删除') }}
50
- </hd-btn>
51
- <hd-btn
52
- hint="撤销"
53
- @click.stop="$refs.grid.doCancel(scope.row)"
54
- v-if="scope.row.isEdit"
55
- >
56
- <svg-icon icon-class="undo" />
57
- </hd-btn>
58
- <hd-btn
59
- icon="el-icon-check"
60
- hint="保存"
61
- @click.stop="$refs.grid.doSave(scope.row)"
62
- v-if="scope.row.isEdit"
63
- >
64
- {{ $t('保存') }}
65
- </hd-btn>
66
- </template>
67
- </el-table-column>
68
- <el-table-column
69
- width="120px"
70
- align="left"
71
- header-align="center"
72
- label="名称"
73
- prop="name"
74
- sortable
75
- :rules="$r(1, 0, 50)"
76
- >
77
- </el-table-column>
78
- <el-table-column
79
- width="170px"
80
- align="left"
81
- header-align="center"
82
- label="所属部门"
83
- prop="orgnStr"
84
- noEdit
85
- >
86
- </el-table-column>
87
- <el-table-column
88
- width="150px"
89
- align="left"
90
- header-align="center"
91
- label="描述"
92
- prop="description"
93
- >
94
- </el-table-column>
95
- <el-table-column
96
- width="100px"
97
- align="center"
98
- label="管理员"
99
- prop="isAdmin"
100
- input="el-switch"
101
- v-if="$store.state.user.isAdmin"
102
- :inputProp="{ activeValue: '1', inactiveValue: '0' }"
103
- :inputFormat="$ckFt"
104
- sortable
105
- >
106
- </el-table-column>
107
- </hd-com-grid>
108
- </template>
109
-
110
- <script>
111
- import btnRole from './btnRole'
112
- import orgnselect from '../orgDept/orgnselect'
113
-
114
- export default {
115
- components: {
116
- btnRole,
117
- orgnselect,
118
- },
119
- name: 'rolelist',
120
- data: function () {
121
- return {
122
- hdQuery: new HdQuery(this),
123
- }
124
- },
125
- props: {},
126
- mounted() {},
127
- methods: {
128
- doQuery() {
129
- this.$refs.grid.doQuery()
130
- },
131
- selRow(row) {
132
- this.$emit('selRoleId', row.roleId)
133
- },
134
- },
135
- }
136
- </script>
@@ -1,74 +0,0 @@
1
- <template>
2
- <!--开发示例:pop选择的-->
3
- <div>
4
- <hd-grid-sel
5
- :txtVal="txtVal"
6
- :idVal="idVal"
7
- placeholder="请点击选角色"
8
- height="50vh"
9
- :hdQuery="hdQuery"
10
- url="/webresources/login/privilege/AuthRole/find"
11
- @rowClick="doClick"
12
- :beforeQuery="beforeQuery"
13
- visualScroll
14
- >
15
- <el-table-column
16
- width="130px"
17
- align="left"
18
- header-align="center"
19
- label="角色名称"
20
- prop="name"
21
- sortable
22
- >
23
- </el-table-column>
24
- <el-table-column
25
- width="130px"
26
- align="left"
27
- header-align="center"
28
- label="创建部门"
29
- prop="orgnStr"
30
- sortable
31
- >
32
- </el-table-column>
33
- </hd-grid-sel>
34
- </div>
35
- </template>
36
-
37
- <script>
38
- export default {
39
- name: 'selship',
40
- components: {},
41
- data() {
42
- return {
43
- hdQuery: new HdQuery(this),
44
- }
45
- },
46
- mounted() {},
47
- props: { idVal: String, txtVal: String }, // 设置value为props属性-必须
48
- // watch: {
49
- // popAnyQuery: function () {
50
- // clearTimeout(this.timeout);
51
- // this.timeout = setTimeout(() => {
52
- // //doQuery
53
- // }, 500);
54
- // }
55
- // },
56
- methods: {
57
- beforeQuery(val) {
58
- this.hdQuery.query.anyQuery = val
59
- },
60
- doClick(row) {
61
- this.$emit('update:txtVal', row.name)
62
- this.$emit('update:idVal', row.roleId)
63
- this.$emit('onSelItem', { data: row }) // 主页面调用弹窗时添加
64
- },
65
- },
66
- watch: {},
67
- }
68
- </script>
69
-
70
- <style>
71
- .el-popper {
72
- z-index: 3000 !important;
73
- }
74
- </style>
@@ -1,196 +0,0 @@
1
- <template>
2
- <el-container>
3
- <el-aside style="border-right: 1px solid #eee" width="260px">
4
- <hd-tree
5
- :data="menuData"
6
- @node-click="handleNodeClick"
7
- node-key="id"
8
- ></hd-tree>
9
- </el-aside>
10
- <el-main>
11
- <hd-com-grid
12
- ref="grid"
13
- :hdQuery="hdQuery"
14
- url="/webresources/login/com/ComSearch"
15
- >
16
- <div class="filter-container" slot="query">
17
- <el-input
18
- @keyup.enter.native="$refs.grid.doQuery()"
19
- style="width: 200px"
20
- class="filter-item"
21
- :placeholder="$t('名称')"
22
- v-model="hdQuery.query.name"
23
- >
24
- </el-input>
25
- <el-button
26
- class="filter-item"
27
- @click="$refs.grid.doQuery()"
28
- :icon="ElIconSearch"
29
- type="primary"
30
- ref="q"
31
- keyType="query"
32
- >{{ $t('搜索') }}
33
- </el-button>
34
- <el-button
35
- class="filter-item"
36
- type="primary"
37
- @click="doAdd()"
38
- :icon="ElIconEdit"
39
- ref="a"
40
- keyType="add"
41
- >{{ $t('新增') }}
42
- </el-button>
43
- <el-button
44
- class="filter-item"
45
- @click="$refs.grid.doRemoveAll()"
46
- type="danger"
47
- ref="d"
48
- keyType="del"
49
- >{{ $t('删除') }}
50
- </el-button>
51
- </div>
52
- <el-table-column width="90px" align="center" label="操作" fixed="right">
53
- <template slot-scope="scope">
54
- <HdGridEditBtn
55
- style="display: inline"
56
- :row="scope.row"
57
- gridRef="grid"
58
- ></HdGridEditBtn>
59
- <hd-btn
60
- icon="el-icon-refresh"
61
- hint="刷新"
62
- @click.stop="doRefresh(scope.row)"
63
- v-if="!scope.row.isEdit"
64
- ></hd-btn>
65
- </template>
66
- </el-table-column>
67
-
68
- <el-table-column
69
- width="100px"
70
- align="center"
71
- label="索引名称"
72
- prop="indexName"
73
- sortable
74
- :rules="$r(0, 0, 30)"
75
- noEdit
76
- >
77
- </el-table-column>
78
- <el-table-column
79
- width="120px"
80
- align="center"
81
- label="索引CODE"
82
- prop="searchCode"
83
- sortable
84
- :rules="$r(0, 0, 50)"
85
- >
86
- </el-table-column>
87
- <el-table-column
88
- width="120px"
89
- align="center"
90
- label="索引菜单"
91
- :inputFormat="(v, r) => r.menuName"
92
- prop="menuId"
93
- sortable
94
- noEdit
95
- >
96
- </el-table-column>
97
- <el-table-column
98
- width="330px"
99
- align="center"
100
- label="索引实体"
101
- prop="entityName"
102
- sortable
103
- :rules="$r(0, 0, 255)"
104
- >
105
- </el-table-column>
106
- <el-table-column
107
- width="140px"
108
- align="center"
109
- label="上次刷新时间"
110
- :inputProp="$date"
111
- prop="flushTim"
112
- sortable
113
- noEdit
114
- >
115
- </el-table-column>
116
- </hd-com-grid>
117
- </el-main>
118
- </el-container>
119
- </template>
120
-
121
- <script>
122
- import { Search as ElIconSearch, Edit as ElIconEdit } from '@element-plus/icons-vue'
123
- export default {
124
- data() {
125
- return {
126
- hdQuery: new HdQuery(this),
127
- menuData: [],
128
- selData: {},
129
- ElIconSearch,
130
- ElIconEdit,
131
- }
132
- },
133
- name: 'comsearch',
134
- components: {},
135
- mounted() {
136
- this.doMenuQuery()
137
- },
138
- methods: {
139
- doAdd() {
140
- if (!this.selData.children || this.selData.children.length > 0) {
141
- this.$message({
142
- type: 'error',
143
- message: this.$t('只能添加到节点菜单'),
144
- })
145
- return
146
- }
147
- let rowData = {}
148
- rowData.menuId = this.selData.id
149
- rowData.menuName = this.selData.text
150
- rowData.indexName = 'default'
151
- this.$refs.grid.doEdit('', rowData)
152
- },
153
- doMenuQuery() {
154
- this.$http
155
- .post('/webresources/login/privilege/AuthPrivilege/getAllTree/1/0')
156
- .then((response) => {
157
- console.log('menuData', response.data)
158
- this.menuData = response.data
159
- })
160
- },
161
- handleNodeClick(obj) {
162
- this.selData = obj
163
- this.doListQuery()
164
- },
165
- doListQuery() {
166
- this.hdQuery.query.menuId = this.selData.id
167
- if (this.selData.id === '-1') {
168
- this.hdQuery.query.menuId = null
169
- }
170
- this.$refs.grid.doQuery()
171
- },
172
- doRefresh(obj) {
173
- // 刷新数据
174
- const loading = this.$loading({
175
- text: this.$t('正在生成索引,您可能需要一盏茶的时间请耐心等待...'),
176
- })
177
- this.$http
178
- .post(`/webresources/login/com/ComSearch/flush/${obj.searchId}`)
179
- .then(
180
- (response) => {
181
- loading.close()
182
- this.$message({
183
- type: 'success',
184
- message: this.$t(`刷新完成,共{num}条数据`, {
185
- num: response.data.data,
186
- }),
187
- })
188
- },
189
- (error) => {
190
- loading.close()
191
- }
192
- )
193
- },
194
- },
195
- }
196
- </script>
@@ -1,68 +0,0 @@
1
- <template>
2
- <div style="height: 100%">
3
- <el-button class="filter-item" type="success" @click="save" size="mini">{{
4
- $t('保存')
5
- }}</el-button>
6
- <hd-tree
7
- :data="hdTree"
8
- v-loading="listLoading"
9
- node-key="id"
10
- ref="menuTree"
11
- show-checkbox
12
- style="height: calc(100% - 30px)"
13
- ></hd-tree>
14
- </div>
15
- </template>
16
-
17
- <script>
18
- export default {
19
- components: {},
20
- name: 'menuSearch',
21
- data: function () {
22
- return {
23
- hdTree: [],
24
- listLoading: false,
25
- }
26
- },
27
- mounted() {
28
- // 因为外层通过v-if控制
29
- this.doQuery()
30
- },
31
- methods: {
32
- doQuery() {
33
- this.listLoading = true
34
-
35
- this.$http
36
- .get(`/webresources/login/privilege/SysLogConfigVue/menuConfig`)
37
- .then((response) => {
38
- const data = response.data
39
- this.hdTree = data
40
- this.listLoading = false
41
- })
42
- },
43
- save() {
44
- const os = this.$refs.menuTree.getCheckedNodes()
45
- let privilegeIds = ''
46
- for (let i = 0; i < os.length; i++) {
47
- if (os[i].id == -1) {
48
- // 总根节点不处理
49
- continue
50
- }
51
- privilegeIds = privilegeIds + os[i].id + ','
52
- }
53
- this.$http
54
- .post(`/webresources/login/privilege/SysLogConfigVue/saveMenuConfig`, {
55
- privilegeIds: privilegeIds,
56
- })
57
- .then((response) => {
58
- const data = response.data
59
- this.$message({
60
- type: data.code == '-1' ? 'error' : 'success',
61
- message: data.message,
62
- })
63
- })
64
- },
65
- },
66
- watch: {},
67
- }
68
- </script>
@@ -1,191 +0,0 @@
1
- <template>
2
- <el-container>
3
- <el-main>
4
- <hd-com-grid
5
- :exField="exField"
6
- :hdQuery="hdQuery"
7
- :row-class-name="tableRowClassName"
8
- :stripe="false"
9
- noCopy="codeId"
10
- ref="grid"
11
- url="/webresources/login/privilege/SysCode/vue"
12
- visualScroll
13
- >
14
- <div class="filter-container" slot="query">
15
- <el-input
16
- :placeholder="$t('名称、代码')"
17
- @keyup.enter.native="$refs.grid.doQuery()"
18
- class="filter-item"
19
- style="width: 200px; float: right"
20
- :suffix-icon="ElIconSearch"
21
- v-model="hdQuery.query.anyQuery"
22
- >
23
- </el-input>
24
- <el-button
25
- @click="doAdd"
26
- class="filter-item"
27
- keyType="add"
28
-  type="primary"
29
- >{{ $t('新增') }}
30
- </el-button>
31
- <el-button
32
- @click="$refs.grid.doCopy()"
33
- class="filter-item"
34
- keyType="copy"
35
- type="primary"
36
- >{{ $t('复制') }}
37
- </el-button>
38
- <el-button
39
- @click="$refs.grid.doRemoveAll()"
40
- class="filter-item"
41
- keyType="del"
42
- type="danger"
43
- >{{ $t('删除') }}
44
- </el-button>
45
- <el-button
46
- @click="$refs.grid.doSaveAll()"
47
- class="filter-item"
48
- keyType="save"
49
- type="danger"
50
- >{{ $t('保存') }}
51
- </el-button>
52
- </div>
53
- <el-table-column align="center" fixed="right" label="操作" width="60px">
54
- <template slot-scope="scope">
55
- <HdGridEditBtn :row="scope.row" gridRef="grid"></HdGridEditBtn>
56
- </template>
57
- </el-table-column>
58
- <el-table-column
59
- :rules="$r(1, 0, 36)"
60
- align="left"
61
- header-align="center"
62
- label="代码"
63
- prop="code"
64
- sortable
65
- width="120px"
66
- >
67
- </el-table-column>
68
- <el-table-column
69
- :rules="$r(1, 0, 50)"
70
- align="left"
71
- header-align="center"
72
- label="名称"
73
- prop="name"
74
- sortable
75
- width="120px"
76
- >
77
- </el-table-column>
78
- <el-table-column
79
- align="left"
80
- header-align="center"
81
- label="英文名"
82
- prop="enName"
83
- sortable
84
- width="120px"
85
- >
86
- </el-table-column>
87
- <el-table-column
88
- :rules="$r(0, 0, 100000, 'number')"
89
- align="left"
90
- header-align="center"
91
- input="HdNum"
92
- label="排序号"
93
- prop="sorter"
94
- sortable
95
- >
96
- </el-table-column>
97
- <el-table-column
98
- :inputFormat="$ckFt"
99
- :inputProp="{ activeValue: '1', inactiveValue: '0' }"
100
- align="center"
101
- input="el-switch"
102
- label="系统"
103
- prop="sysMark"
104
- sortable
105
- >
106
- </el-table-column>
107
- <el-table-column
108
- :inputFormat="$ckFt"
109
- :inputProp="{ activeValue: '1', inactiveValue: '0' }"
110
- align="center"
111
- input="el-switch"
112
- label="废弃"
113
- prop="abandonedMark"
114
- sortable
115
- >
116
- </el-table-column>
117
- <el-table-column
118
- align="left"
119
- header-align="center"
120
- label="备注/描述"
121
- prop="description"
122
- sortable
123
- width="150px"
124
- >
125
- </el-table-column>
126
- </hd-com-grid>
127
- </el-main>
128
- </el-container>
129
- </template>
130
-
131
- <script>
132
- import { Search as ElIconSearch } from '@element-plus/icons-vue'
133
- export default {
134
- data() {
135
- return {
136
- hdQuery: new HdQuery(this),
137
- exField: {
138
- open: true,
139
- table: 'SYS_CODE',
140
- columnList: [
141
- 'CUSTOM_EX1',
142
- 'CUSTOM_EX2',
143
- 'CUSTOM_EX3',
144
- 'CUSTOM_EX4',
145
- 'CUSTOM_EX5',
146
- ],
147
- gridCode: 'syscodeGrid',
148
- },
149
- ElIconSearch,
150
- }
151
- },
152
- name: 'syscode',
153
- components: {},
154
- // mounted() {//页面加载后执行
155
- // this.doQuery()
156
- // },
157
- props: {},
158
- methods: {
159
- tableRowClassName({ row, rowIndex }) {
160
- //stripe必须改为false
161
- if (row.abandonedMark == '1') {
162
- return 'gray-row'
163
- }
164
- },
165
- querycode(row) {
166
- this.hdQuery.query.fieldCod = row.fieldCod
167
- this.$refs.grid.doQuery()
168
- },
169
- doAdd() {
170
- if (!this.hdQuery.query.fieldCod) {
171
- this.$message({
172
- type: 'error',
173
- message: this.$t('未选择数据'),
174
- })
175
- return false
176
- }
177
- this.$refs.grid.doEdit('')
178
- },
179
- },
180
- computed: {
181
- // 给外层v-model赋值
182
- },
183
- }
184
- </script>
185
-
186
- <style lang="scss" rel="stylesheet/scss" scoped>
187
- :deep(.gray-row) {
188
- //deep必须有
189
- background: #dcdcdc;
190
- }
191
- </style>