@@ -530,32 +530,21 @@ __webpack_require__.r(__webpack_exports__);
530
530
};
531
531
},
532
532
mounted: function mounted() {
533
- var _this = this;
534
-
535
- this.$Loading.start();
536
- this.$nextTick(function () {
537
- _this.$Loading.finish();
538
- });
533
+ this.$nextTick(function () {});
539
534
},
540
535
methods: {
541
536
onForgetPassword: function onForgetPassword() {
542
537
this.$Message.info("忘记密码请联系管理员");
543
538
},
544
539
handleSubmit: function handleSubmit(name) {
545
- var _this2 = this;
540
+ var _this = this;
546
541
547
542
this.$refs[name].validate(function (valid) {
548
543
if (valid) {
549
- _this2.loading = true;
550
-
551
- _this2.$Loading.start();
552
-
553
- _this2.$http.post(_this2.page_data.url.postLogin, _this2.form).then(function () {})["catch"](function () {
554
- _this2.$Loading.error();
555
- })["finally"](function () {
556
- _this2.loading = false;
544
+ _this.loading = true;
557
545
558
- _this2.$Loading.finish();
546
+ _this.$http.post(_this.page_data.url.postLogin, _this.form).then(function () {})["catch"](function () {})["finally"](function () {
547
+ _this.loading = false;
559
548
});
560
549
}
561
550
});
@@ -1722,7 +1711,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
1722
1711
data: function data() {
1723
1712
return {
1724
1713
loading: false,
1725
- page: 1,
1726
1714
sort: {},
1727
1715
tableData: [],
1728
1716
pageData: {
@@ -1733,8 +1721,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
1733
1721
},
1734
1722
selectionRows: [],
1735
1723
quickSearch: null,
1736
- filterFormData: null,
1737
- path: "/"
1724
+ filterFormData: null
1738
1725
};
1739
1726
},
1740
1727
mounted: function mounted() {
@@ -1745,7 +1732,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
1745
1732
this.$bus.on("tableReload", function () {
1746
1733
_this.getData();
1747
1734
});
1748
- this.path = this.$route.path;
1749
1735
},
1750
1736
destroyed: function destroyed() {
1751
1737
try {
@@ -1757,7 +1743,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
1757
1743
this.getData();
1758
1744
},
1759
1745
onFilterReset: function onFilterReset() {
1760
- console.log(this.attrs.filter.filterFormData);
1761
1746
this.filterFormData = this._.cloneDeep(this.attrs.filter.filterFormData);
1762
1747
this.getData();
1763
1748
},
@@ -1820,6 +1805,9 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
1820
1805
}
1821
1806
},
1822
1807
computed: {
1808
+ path: function path() {
1809
+ return this.$route.path;
1810
+ },
1823
1811
columns: function columns() {
1824
1812
return this.column_attributes.map(function (attributes) {
1825
1813
return attributes;
@@ -1835,6 +1823,18 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
1835
1823
var q_search = new Object();
1836
1824
this.attrs.quickSearch && (q_search[this.attrs.quickSearch.searchKey] = this.quickSearch);
1837
1825
return q_search;
1826
+ },
1827
+ page: {
1828
+ get: function get() {
1829
+ return this._.get(this.$store.state.grids[this.$route.path], "page", 1);
1830
+ },
1831
+ set: function set(value) {
1832
+ this.$store.commit("setGrids", {
1833
+ key: "page",
1834
+ path: this.$route.path,
1835
+ data: value
1836
+ });
1837
+ }
1838
1838
}
1839
1839
}
1840
1840
});
@@ -6285,7 +6285,7 @@ exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-
6285
6285
6286
6286
6287
6287
// module
6288
- exports.push([module.i, ".upload-component {\n display: flex;\n flex-wrap: wrap;\n}\n.upload-component .upload-images {\n display: flex;\n flex-wrap: wrap;\n}\n.upload-component .upload-images .upload-images-item + .upload-images-item {\n margin-left: 10px;\n}\n.upload-component .upload-images .upload-images-item {\n position: relative;\n line-height: 1;\n}\n.upload-component .upload-images .upload-images-item img {\n line-height: 1;\n vertical-align: middle;\n}\n.upload-component .upload-images .upload-images-item .el-image {\n cursor: zoom-in;\n}\n.upload-component .upload-images .upload-images-item .el-icon-document-checked {\n font-size: 30px;\n}\n.upload-component .upload-images .upload-images-item .mask {\n position: absolute;\n transition: all 0.3s ease-in-out;\n opacity: 0;\n background: rgba(0, 0, 0, 0.3);\n color: white;\n font-size: 20px;\n padding: 5px;\n top: 50%;\n left: 50%;\n cursor: pointer;\n transform: translate(-50%, -50%);\n}\n.upload-component .upload-images .upload-images-item:hover .mask {\n opacity: 1;\n}\n.upload-component .upload-images .upload-show-image {\n border: 1px solid #dcdfe6;\n padding: 2px;\n}\n.upload-component .upload-block .el-upload-dragger {\n width: unset;\n height: unset;\n border: none;\n border-radius: 0;\n}\n.upload-component .upload-block .avatar {\n border-radius: 50%;\n}\n.upload-component .upload-block .image,\n.upload-component .upload-block .file {\n border-radius: 0;\n}", ""]);
6288
+ exports.push([module.i, ".upload-component {\n display: flex;\n flex-wrap: wrap;\n}\n.upload-component .upload-images {\n display: flex;\n flex-wrap: wrap;\n}\n.upload-component .upload-images .upload-images-item + .upload-images-item {\n margin-left: 10px;\n}\n.upload-component .upload-images .upload-images-item {\n position: relative;\n line-height: 1;\n}\n.upload-component .upload-images .upload-images-item img {\n line-height: 1;\n vertical-align: middle;\n}\n.upload-component .upload-images .upload-images-item .el-image {\n cursor: zoom-in;\n}\n.upload-component .upload-images .upload-images-item .el-icon-document-checked {\n font-size: 30px;\n}\n.upload-component .upload-images .upload-images-item .mask {\n position: absolute;\n transition: all 0.3s ease-in-out;\n opacity: 0;\n background: rgba(0, 0, 0, 0.3);\n color: white;\n font-size: 20px;\n padding: 5px;\n top: 50%;\n left: 50%;\n cursor: pointer;\n transform: translate(-50%, -50%);\n}\n.upload-component .upload-images .upload-images-item:hover .mask {\n opacity: 1;\n}\n.upload-component .upload-images .upload-show-image {\n border: 1px solid #dcdfe6;\n padding: 2px;\n box-sizing: border-box;\n border-radius: 3px;\n}\n.upload-component .upload-block .el-upload-dragger {\n width: unset;\n height: unset;\n border: none;\n border-radius: 0;\n}\n.upload-component .upload-block .avatar {\n border-radius: 50%;\n}", ""]);
6289
6289
6290
6290
// exports
6291
6291
@@ -28165,7 +28165,7 @@ var render = function() {
28165
28165
}
28166
28166
],
28167
28167
staticClass: "form-card",
28168
- attrs: { shadow: "never" }
28168
+ attrs: { shadow: "never", title: "创建" }
28169
28169
},
28170
28170
[
28171
28171
_vm.formData
@@ -31133,7 +31133,7 @@ var render = function() {
31133
31133
"div",
31134
31134
{
31135
31135
staticClass: "upload-block",
31136
- class: { "ml-10": _vm.attrs.multiple }
31136
+ class: { "ml-10": _vm.list.length > 0 }
31137
31137
},
31138
31138
[
31139
31139
_c(
@@ -41172,7 +41172,8 @@ vue__WEBPACK_IMPORTED_MODULE_0___default.a.use(vuex__WEBPACK_IMPORTED_MODULE_1__
41172
41172
41173
41173
var store = new vuex__WEBPACK_IMPORTED_MODULE_1__["default"].Store({
41174
41174
state: {
41175
- contents: {}
41175
+ contents: {},
41176
+ grids: {}
41176
41177
},
41177
41178
mutations: {
41178
41179
registerCentent: function registerCentent(state, path) {
@@ -41182,13 +41183,20 @@ var store = new vuex__WEBPACK_IMPORTED_MODULE_1__["default"].Store({
41182
41183
var data = _ref.data,
41183
41184
path = _ref.path;
41184
41185
state.contents[path] = data;
41186
+ },
41187
+ setGrids: function setGrids(state, _ref2) {
41188
+ var key = _ref2.key,
41189
+ path = _ref2.path,
41190
+ data = _ref2.data;
41191
+
41192
+ window._.set(state.grids, path + '.' + key, data);
41185
41193
}
41186
41194
},
41187
41195
actions: {
41188
- getCenten: function getCenten(context, _ref2 ) {
41189
- var path = _ref2 .path,
41190
- contentUrl = _ref2 .contentUrl,
41191
- params = _ref2 .params;
41196
+ getCenten: function getCenten(context, _ref3 ) {
41197
+ var path = _ref3 .path,
41198
+ contentUrl = _ref3 .contentUrl,
41199
+ params = _ref3 .params;
41192
41200
return _util_axios__WEBPACK_IMPORTED_MODULE_2__["default"].get(contentUrl, {
41193
41201
params: params
41194
41202
}).then(function (data) {
0 commit comments