Skip to content

Commit 634b85e

Browse files
committed
更新版本
1 parent b235773 commit 634b85e

File tree

15 files changed

+25
-85932
lines changed

15 files changed

+25
-85932
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ storage/*.key
2020
Homestead.yaml
2121
Homestead.json
2222
/.vagrant
23+
/.vscode
2324
.phpunit.result.cache

public/1.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ __webpack_require__.r(__webpack_exports__);
112112
ItemIf: _ItemIf__WEBPACK_IMPORTED_MODULE_1__["default"]
113113
},
114114
props: {
115-
attrs: Object
115+
attrs: Object,
116+
keys: String
116117
},
117118
data: function data() {
118119
return {
@@ -124,6 +125,12 @@ __webpack_require__.r(__webpack_exports__);
124125
mounted: function mounted() {
125126
this.formData = this._.cloneDeep(this.attrs.formItemsValue);
126127
},
128+
computed: {
129+
actionUrl: function actionUrl() {
130+
var keys = this.$store.getters.thisPage.grids.selectionKeys;
131+
return this._.replace(this.attrs.action, "selectionKeys", keys);
132+
}
133+
},
127134
methods: {
128135
submitForm: function submitForm(formName) {
129136
var _this = this;
@@ -132,7 +139,7 @@ __webpack_require__.r(__webpack_exports__);
132139
if (valid) {
133140
_this.loading = true;
134141

135-
_this.$http.post(_this.attrs.action, _this.formData).then(function (_ref) {
142+
_this.$http.post(_this.actionUrl, _this.formData).then(function (_ref) {
136143
var data = _ref.data,
137144
code = _ref.code,
138145
message = _ref.message;

0 commit comments

Comments
 (0)