|
@@ -101,7 +101,7 @@ export default {
|
|
|
}),
|
|
|
created() {},
|
|
|
methods: {
|
|
|
- ...mapActions(['fetch', 'create', 'update', 'status']),
|
|
|
+ ...mapActions({ fetch: 'fetch', create: 'create', update: 'update', changeStatus: 'status' }),
|
|
|
async search() {
|
|
|
const res = await this.fetch(this.id);
|
|
|
if (this.$checkRes(res)) this.$set(this, `info`, res.data);
|
|
@@ -114,7 +114,7 @@ export default {
|
|
|
let msg;
|
|
|
let teachersid = [];
|
|
|
teachersid.push(this.id);
|
|
|
- res = await this.status({ teachersid, ...object });
|
|
|
+ res = await this.changeStatus({ teachersid, ...object });
|
|
|
msg = `${this.keyWord}审核成功`;
|
|
|
if (this.$checkRes(res, msg)) this.$router.push({ path: '/teacher/index' });
|
|
|
},
|