Skip to content

Commit

Permalink
更新版本
Browse files Browse the repository at this point in the history
  • Loading branch information
SmallRuralDog committed Apr 15, 2020
1 parent b235773 commit 634b85e
Show file tree
Hide file tree
Showing 15 changed files with 25 additions and 85,932 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ storage/*.key
Homestead.yaml
Homestead.json
/.vagrant
/.vscode
.phpunit.result.cache
11 changes: 9 additions & 2 deletions public/1.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ __webpack_require__.r(__webpack_exports__);
ItemIf: _ItemIf__WEBPACK_IMPORTED_MODULE_1__["default"]
},
props: {
attrs: Object
attrs: Object,
keys: String
},
data: function data() {
return {
Expand All @@ -124,6 +125,12 @@ __webpack_require__.r(__webpack_exports__);
mounted: function mounted() {
this.formData = this._.cloneDeep(this.attrs.formItemsValue);
},
computed: {
actionUrl: function actionUrl() {
var keys = this.$store.getters.thisPage.grids.selectionKeys;
return this._.replace(this.attrs.action, "selectionKeys", keys);
}
},
methods: {
submitForm: function submitForm(formName) {
var _this = this;
Expand All @@ -132,7 +139,7 @@ __webpack_require__.r(__webpack_exports__);
if (valid) {
_this.loading = true;

_this.$http.post(_this.attrs.action, _this.formData).then(function (_ref) {
_this.$http.post(_this.actionUrl, _this.formData).then(function (_ref) {
var data = _ref.data,
code = _ref.code,
message = _ref.message;
Expand Down
Loading

0 comments on commit 634b85e

Please sign in to comment.