Skip to content

Commit 2f88a70

Browse files
Merge pull request #68 from ginnerpeace/master
Form selectionKeys 修复,Grid filter label 优化
2 parents c6080b7 + 5fec1ad commit 2f88a70

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

public/0.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/app.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/mix-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"/app.js": "/app.js?id=3320bf1e803e19ba9913",
2+
"/app.js": "/app.js?id=fd530fefb4beb8954c2d",
33
"/manifest.js": "/manifest.js?id=8991394a854ee5cdffc3",
44
"/vendor.js": "/vendor.js?id=df0be4950fcb717193ba"
55
}

resources/js/components/form/Form.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ export default {
131131
isEdit() {
132132
return this.attrs.mode === "edit";
133133
},
134+
actionUrl() {
135+
const keys = this.$store.getters.thisPage.grids.selectionKeys;
136+
return this._.replace(this.attrs.action, "selectionKeys", keys);
137+
},
134138
},
135139
data() {
136140
return {
@@ -193,7 +197,7 @@ export default {
193197
194198
if (this.isEdit) {
195199
this.$http
196-
.put(this.attrs.action, formatData)
200+
.put(this.actionUrl, formatData)
197201
.then(({data, code, message}) => {
198202
if (code === 200) {
199203
if (this.attrs.attrs.isDialog) {
@@ -209,7 +213,7 @@ export default {
209213
});
210214
} else {
211215
this.$http
212-
.post(this.attrs.action, formatData)
216+
.post(this.actionUrl, formatData)
213217
.then(({data, code, message}) => {
214218
if (code === 200) {
215219
if (this.attrs.attrs.isDialog) {

resources/js/components/grid/Table.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ export default {
537537
margin-bottom: 10px;
538538
539539
.el-form-item__label {
540-
padding: 0;
540+
padding: 0 5px;
541541
}
542542
}
543543
}

0 commit comments

Comments
 (0)