@lambo-design/schema-paging-table 1.0.0-beta.12 → 1.0.0-beta.14
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/package.json +5 -5
- package/src/index.vue +18 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lambo-design/schema-paging-table",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.14",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "lambo",
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
"registry": "https://registry.npmjs.org/"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@lambo-design/
|
|
14
|
-
"@lambo-design/
|
|
15
|
-
"@lambo-design/
|
|
16
|
-
"@lambo-design/
|
|
13
|
+
"@lambo-design/schema-form": "^1.0.0-beta.40",
|
|
14
|
+
"@lambo-design/shared": "^1.0.0-beta.100",
|
|
15
|
+
"@lambo-design/paging-table": "^1.0.0-beta.72",
|
|
16
|
+
"@lambo-design/core": "^4.7.1-beta.113"
|
|
17
17
|
},
|
|
18
18
|
"scripts": {}
|
|
19
19
|
}
|
package/src/index.vue
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
:columns="tableColumn"
|
|
6
6
|
:searchParams="tableSearchParams"
|
|
7
7
|
:transformResponse="transformResponse"
|
|
8
|
+
:showTableOption="showTableOption"
|
|
8
9
|
@on-row-click="onRowClick"
|
|
9
10
|
@on-selection-change="onSelectionChange"
|
|
10
11
|
@on-select="onSelect"
|
|
@@ -97,6 +98,10 @@ export default {
|
|
|
97
98
|
return []
|
|
98
99
|
}
|
|
99
100
|
},
|
|
101
|
+
showTableOption: {
|
|
102
|
+
type: Boolean,
|
|
103
|
+
default: true
|
|
104
|
+
},
|
|
100
105
|
rowKey: {
|
|
101
106
|
type: String,
|
|
102
107
|
require: false,
|
|
@@ -157,7 +162,7 @@ export default {
|
|
|
157
162
|
let query = item.clickEvent?.route?.keys?.reduce((acc,sourceItem)=>{
|
|
158
163
|
return Object.assign(acc,{[sourceItem]:currentRow[sourceItem]})
|
|
159
164
|
},{})
|
|
160
|
-
|
|
165
|
+
self.$router.push({
|
|
161
166
|
path: item.clickEvent?.route?.path,
|
|
162
167
|
query
|
|
163
168
|
})
|
|
@@ -172,7 +177,18 @@ export default {
|
|
|
172
177
|
param:data,
|
|
173
178
|
}
|
|
174
179
|
let response = item.clickEvent.response
|
|
175
|
-
|
|
180
|
+
if(item.clickEvent.tips){
|
|
181
|
+
let tips = item.clickEvent.tips
|
|
182
|
+
this.$Modal.confirm({
|
|
183
|
+
title: tips.title,
|
|
184
|
+
content: '<p>${tips.content}</p>',
|
|
185
|
+
onOk: () => {
|
|
186
|
+
self.fetch(request,response)
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
}else{
|
|
190
|
+
self.fetch(request,response)
|
|
191
|
+
}
|
|
176
192
|
}else if(item.clickEvent?.type==="method"){
|
|
177
193
|
let args = item.clickEvent?.method?.keys?.reduce((total,current)=>{
|
|
178
194
|
return Object.assign(total,{[current]:currentRow[current]})
|
|
@@ -256,8 +272,6 @@ export default {
|
|
|
256
272
|
self.$emit(item.clickEvent?.method?.name,param)
|
|
257
273
|
}
|
|
258
274
|
}
|
|
259
|
-
}else if(item.clickEvent?.type==="modal"){
|
|
260
|
-
self.$Message.info(item.clickEvent.name)
|
|
261
275
|
}
|
|
262
276
|
},
|
|
263
277
|
doSearch: function () {
|