vue2-client 1.8.73 → 1.8.74
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/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,20 +1,27 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
v-model="
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
<div>
|
|
3
|
+
<template v-if="loaded">
|
|
4
|
+
<!-- 树形选择框 -->
|
|
5
|
+
<a-form-model-item v-if="loaded" :ref="model" :label="name" :prop="model">
|
|
6
|
+
<a-tree-select
|
|
7
|
+
v-model="value"
|
|
8
|
+
:disabled="disabled"
|
|
9
|
+
:tree-data="getTreeData()"
|
|
10
|
+
:tree-checkable="mode === '查询' && queryType !== 'RIGHT_LIKE'"
|
|
11
|
+
:placeholder="'请选择' + name"
|
|
12
|
+
:dropdown-style="{ maxHeight: '400px' }"
|
|
13
|
+
tree-node-filter-prop="label"
|
|
14
|
+
:show-checked-strategy="queryType === 'RIGHT_LIKE' ? 'SHOW_ALL' : undefined"
|
|
15
|
+
allow-clear
|
|
16
|
+
class="tree-select"
|
|
17
|
+
@change="onTreeSelectChange">
|
|
18
|
+
</a-tree-select>
|
|
19
|
+
</a-form-model-item>
|
|
20
|
+
</template>
|
|
21
|
+
<template v-else>
|
|
22
|
+
<a-skeleton active />
|
|
23
|
+
</template>
|
|
24
|
+
</div>
|
|
18
25
|
</template>
|
|
19
26
|
<script>
|
|
20
27
|
import XFormCol from '@vue2-client/base-client/components/common/XFormCol'
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
ref="xAddForm"
|
|
8
8
|
@afterSubmit="onAddOrEditSubmitAfterSubmit"
|
|
9
9
|
/>
|
|
10
|
-
<div v-if="
|
|
11
|
-
{{
|
|
10
|
+
<div v-if="crudTitle" class="crud_title">
|
|
11
|
+
{{ crudTitle }}
|
|
12
12
|
</div>
|
|
13
13
|
<x-form
|
|
14
14
|
ref="xForm"
|
|
@@ -96,6 +96,11 @@ export default {
|
|
|
96
96
|
type: String,
|
|
97
97
|
default: ''
|
|
98
98
|
},
|
|
99
|
+
// 卡片标题
|
|
100
|
+
crudTitle: {
|
|
101
|
+
type: String,
|
|
102
|
+
default: null
|
|
103
|
+
},
|
|
99
104
|
// 查询配置文件名
|
|
100
105
|
queryParamsName: {
|
|
101
106
|
type: String,
|
|
@@ -251,13 +251,14 @@ export default {
|
|
|
251
251
|
this.env = env
|
|
252
252
|
this.rowKey = this.tableColumns[0].dataIndex
|
|
253
253
|
let totalWidth = 0
|
|
254
|
-
// 设置表格宽度
|
|
255
254
|
for (let i = 0; i < this.tableColumns.length; i++) {
|
|
256
255
|
const item = this.tableColumns[i]
|
|
256
|
+
// 设置操作列
|
|
257
257
|
if (item.slotType === 'action') {
|
|
258
258
|
item.fixed = 'right'
|
|
259
259
|
item.width = 70
|
|
260
260
|
}
|
|
261
|
+
// 设置表格宽度
|
|
261
262
|
if (item.width) {
|
|
262
263
|
totalWidth = totalWidth + item.width
|
|
263
264
|
} else {
|
|
@@ -512,8 +513,12 @@ export default {
|
|
|
512
513
|
:deep(.ant-table-thead > tr > th) {
|
|
513
514
|
font-weight: 600;
|
|
514
515
|
}
|
|
515
|
-
|
|
516
|
+
|
|
517
|
+
:deep(.ant-table-pagination.ant-pagination) {
|
|
516
518
|
margin-bottom: 0;
|
|
517
519
|
}
|
|
518
|
-
|
|
520
|
+
|
|
521
|
+
:deep(.ant-table td) {
|
|
522
|
+
white-space: nowrap;
|
|
523
|
+
}
|
|
519
524
|
</style>
|