|
@@ -16,7 +16,7 @@
|
|
<script>
|
|
<script>
|
|
import { order_type } from '@common/src/layout/site';
|
|
import { order_type } from '@common/src/layout/site';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
-// const { mapActions } = createNamespacedHelpers('program');
|
|
|
|
|
|
+const { mapActions } = createNamespacedHelpers('program');
|
|
export default {
|
|
export default {
|
|
name: 'index',
|
|
name: 'index',
|
|
props: {},
|
|
props: {},
|
|
@@ -60,13 +60,13 @@ export default {
|
|
},
|
|
},
|
|
mounted() {},
|
|
mounted() {},
|
|
methods: {
|
|
methods: {
|
|
- // ...mapActions(['query', 'fetch', 'delete']),
|
|
|
|
|
|
+ ...mapActions(['query', 'fetch', 'delete']),
|
|
async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
- // let res = await this.query({ skip, limit, ...info, ...this.searchInfo });
|
|
|
|
- // if (this.$checkRes(res)) {
|
|
|
|
- // this.$set(this, `list`, res.data);
|
|
|
|
- // this.$set(this, `total`, res.total);
|
|
|
|
- // }
|
|
|
|
|
|
+ let res = await this.query({ skip, limit, ...info, ...this.searchInfo });
|
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
|
+ // this.$set(this, `list`, res.data);
|
|
|
|
+ // this.$set(this, `total`, res.total);
|
|
|
|
+ }
|
|
},
|
|
},
|
|
btSearch(query) {
|
|
btSearch(query) {
|
|
this.$set(this, `searchInfo`, query);
|
|
this.$set(this, `searchInfo`, query);
|