@lambo-design/schema-paging-table 1.0.0-beta.13 → 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 +4 -4
- package/src/index.vue +13 -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/shared": "^1.0.0-beta.
|
|
13
|
+
"@lambo-design/schema-form": "^1.0.0-beta.40",
|
|
14
|
+
"@lambo-design/shared": "^1.0.0-beta.100",
|
|
15
15
|
"@lambo-design/paging-table": "^1.0.0-beta.72",
|
|
16
|
-
"@lambo-design/
|
|
16
|
+
"@lambo-design/core": "^4.7.1-beta.113"
|
|
17
17
|
},
|
|
18
18
|
"scripts": {}
|
|
19
19
|
}
|
package/src/index.vue
CHANGED
|
@@ -162,7 +162,7 @@ export default {
|
|
|
162
162
|
let query = item.clickEvent?.route?.keys?.reduce((acc,sourceItem)=>{
|
|
163
163
|
return Object.assign(acc,{[sourceItem]:currentRow[sourceItem]})
|
|
164
164
|
},{})
|
|
165
|
-
|
|
165
|
+
self.$router.push({
|
|
166
166
|
path: item.clickEvent?.route?.path,
|
|
167
167
|
query
|
|
168
168
|
})
|
|
@@ -177,7 +177,18 @@ export default {
|
|
|
177
177
|
param:data,
|
|
178
178
|
}
|
|
179
179
|
let response = item.clickEvent.response
|
|
180
|
-
|
|
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
|
+
}
|
|
181
192
|
}else if(item.clickEvent?.type==="method"){
|
|
182
193
|
let args = item.clickEvent?.method?.keys?.reduce((total,current)=>{
|
|
183
194
|
return Object.assign(total,{[current]:currentRow[current]})
|
|
@@ -261,8 +272,6 @@ export default {
|
|
|
261
272
|
self.$emit(item.clickEvent?.method?.name,param)
|
|
262
273
|
}
|
|
263
274
|
}
|
|
264
|
-
}else if(item.clickEvent?.type==="modal"){
|
|
265
|
-
self.$Message.info(item.clickEvent.name)
|
|
266
275
|
}
|
|
267
276
|
},
|
|
268
277
|
doSearch: function () {
|