|
@@ -120,7 +120,7 @@
|
|
<script>
|
|
<script>
|
|
const _ = require('lodash');
|
|
const _ = require('lodash');
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
-// const { mapActions: maM } = createNamespacedHelpers('menus');
|
|
|
|
|
|
+const { mapActions: maM } = createNamespacedHelpers('menus');
|
|
// const { mapActions: sysdictdata } = createNamespacedHelpers('dictData');
|
|
// const { mapActions: sysdictdata } = createNamespacedHelpers('dictData');
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -149,12 +149,13 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
// ...sysdictdata({ sQuery: 'query' }),
|
|
// ...sysdictdata({ sQuery: 'query' }),
|
|
- // ...maM(['query', 'create', 'update', 'delete']),
|
|
|
|
|
|
+ ...maM(['query', 'create', 'update', 'delete']),
|
|
async search() {
|
|
async search() {
|
|
- // let res = await this.query();
|
|
|
|
- // if (this.$checkRes(res)) {
|
|
|
|
- // this.$set(this, `list`, res.data);
|
|
|
|
- // }
|
|
|
|
|
|
+ let res = await this.query();
|
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
|
+ console.log(res.data);
|
|
|
|
+ this.$set(this, `list`, res.data);
|
|
|
|
+ }
|
|
},
|
|
},
|
|
toAdd() {
|
|
toAdd() {
|
|
this.dialog = true;
|
|
this.dialog = true;
|