three-trees-ui 1.0.47 → 1.0.48
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/lib/three-trees-ui.common.js +44 -38
- package/lib/three-trees-ui.css +1 -1
- package/lib/three-trees-ui.umd.js +44 -38
- package/lib/three-trees-ui.umd.min.js +1 -1
- package/package.json +1 -1
- package/packages/CustomDialog/src/customDialog.js +17 -8
- package/packages/CustomDialog/src/customDialog.vue +8 -7
package/package.json
CHANGED
|
@@ -11,12 +11,13 @@ export default {
|
|
|
11
11
|
total: 0,
|
|
12
12
|
form: {},
|
|
13
13
|
itemSavestate: {},
|
|
14
|
+
loadingInstance: null,
|
|
14
15
|
}
|
|
15
16
|
},
|
|
16
17
|
methods: {
|
|
17
18
|
//更新对话框数据
|
|
18
19
|
setDialogData(data) {
|
|
19
|
-
data.forEach(item => {
|
|
20
|
+
data.forEach((item) => {
|
|
20
21
|
delete item.row_id
|
|
21
22
|
})
|
|
22
23
|
if (this.isMobile && this.pagination && this.pagination.page > 1) {
|
|
@@ -25,12 +26,19 @@ export default {
|
|
|
25
26
|
this.dialogData = data
|
|
26
27
|
}
|
|
27
28
|
},
|
|
29
|
+
closeLoadingInstance() {
|
|
30
|
+
if (this.loadingInstance) {
|
|
31
|
+
this.loadingInstance.close()
|
|
32
|
+
}
|
|
33
|
+
},
|
|
28
34
|
getDialoglistJson(pagination) {
|
|
29
|
-
let loadingInstance
|
|
30
35
|
if (this.isMobile) {
|
|
31
36
|
this.$showLoading()
|
|
32
37
|
} else {
|
|
33
|
-
loadingInstance = Loading.service({
|
|
38
|
+
this.loadingInstance = Loading.service({
|
|
39
|
+
fullscreen: true,
|
|
40
|
+
text: '查询中...',
|
|
41
|
+
})
|
|
34
42
|
}
|
|
35
43
|
return this.$requestConfig
|
|
36
44
|
.request({
|
|
@@ -42,13 +50,13 @@ export default {
|
|
|
42
50
|
if (this.isMobile) {
|
|
43
51
|
this.$cancelLoading()
|
|
44
52
|
} else {
|
|
45
|
-
loadingInstance.close()
|
|
53
|
+
this.loadingInstance.close()
|
|
46
54
|
}
|
|
47
55
|
const listKey = pagination.listKey
|
|
48
56
|
? pagination.listKey
|
|
49
57
|
: pagination.dsType && pagination.dsType == 'dataSource'
|
|
50
|
-
|
|
51
|
-
|
|
58
|
+
? 'rows'
|
|
59
|
+
: ''
|
|
52
60
|
if (!listKey) {
|
|
53
61
|
console.warn(
|
|
54
62
|
'自定义对话框未获取到数据返回的listKey,数据加载可能产生异常。'
|
|
@@ -78,11 +86,12 @@ export default {
|
|
|
78
86
|
}
|
|
79
87
|
this.setPagination(pageBean)
|
|
80
88
|
this.setTodoRows(rows) //列表数据
|
|
81
|
-
})
|
|
89
|
+
})
|
|
90
|
+
.catch(() => {
|
|
82
91
|
if (this.isMobile) {
|
|
83
92
|
this.$cancelLoading()
|
|
84
93
|
} else {
|
|
85
|
-
loadingInstance.close()
|
|
94
|
+
this.loadingInstance.close()
|
|
86
95
|
}
|
|
87
96
|
})
|
|
88
97
|
},
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
</div>
|
|
78
78
|
<!-- 下拉框 -->
|
|
79
79
|
<div
|
|
80
|
-
class="search-item_main"
|
|
81
80
|
v-if="condition.controllerType == '3'"
|
|
81
|
+
class="search-item_main"
|
|
82
82
|
>
|
|
83
83
|
<!-- 静态选项 -->
|
|
84
84
|
<ht-select
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
? 'yyyy-MM-dd HH:mm:ss'
|
|
127
127
|
: condition.config.inputFormat
|
|
128
128
|
"
|
|
129
|
-
:
|
|
129
|
+
:value-format="
|
|
130
130
|
condition.config.inputFormat.includes('mm:ss')
|
|
131
131
|
? 'yyyy-MM-dd HH:mm:ss'
|
|
132
132
|
: condition.config.inputFormat
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
? 'yyyy-MM-dd HH:mm:ss'
|
|
141
141
|
: condition.config.inputFormat
|
|
142
142
|
"
|
|
143
|
-
:
|
|
143
|
+
:value-format="
|
|
144
144
|
condition.config.inputFormat.includes('mm:ss')
|
|
145
145
|
? 'yyyy-MM-dd HH:mm:ss'
|
|
146
146
|
: condition.config.inputFormat
|
|
@@ -148,14 +148,14 @@
|
|
|
148
148
|
></ht-date>
|
|
149
149
|
</div>
|
|
150
150
|
<ht-date
|
|
151
|
-
v-model="queryParams[index][condition.field]"
|
|
152
151
|
v-else
|
|
152
|
+
v-model="queryParams[index][condition.field]"
|
|
153
153
|
:format="
|
|
154
154
|
condition.config.inputFormat.includes('mm:ss')
|
|
155
155
|
? 'yyyy-MM-dd HH:mm:ss'
|
|
156
156
|
: condition.config.inputFormat
|
|
157
157
|
"
|
|
158
|
-
:
|
|
158
|
+
:value-format="
|
|
159
159
|
condition.config.inputFormat.includes('mm:ss')
|
|
160
160
|
? 'yyyy-MM-dd HH:mm:ss'
|
|
161
161
|
: condition.config.inputFormat
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
<ht-custom-dialog
|
|
231
231
|
v-model="queryParams[index][condition.field]"
|
|
232
232
|
:model-name="condition.config.valueBind"
|
|
233
|
-
|
|
233
|
+
dialog-type="search"
|
|
234
234
|
:custdialog="{
|
|
235
235
|
name: '请选择',
|
|
236
236
|
icon: '',
|
|
@@ -264,7 +264,7 @@
|
|
|
264
264
|
</el-button>
|
|
265
265
|
</div>
|
|
266
266
|
</el-header>
|
|
267
|
-
<el-main class="custom-dialog_main"
|
|
267
|
+
<el-main ref="customTableRef" class="custom-dialog_main">
|
|
268
268
|
<el-table
|
|
269
269
|
ref="orgTable"
|
|
270
270
|
:data="dialogData"
|
|
@@ -1571,6 +1571,7 @@
|
|
|
1571
1571
|
const this_ = this
|
|
1572
1572
|
this_.queryParam = ''
|
|
1573
1573
|
this.setDialogData([])
|
|
1574
|
+
this.closeLoadingInstance()
|
|
1574
1575
|
this_.customDialogShowList = false
|
|
1575
1576
|
//判断是否是点击了确认再点击取消的 inputVal没有值则表示直接点击的取消
|
|
1576
1577
|
if (!this_.inputVal) {
|