|
@@ -50,8 +50,8 @@ export default {
|
|
|
],
|
|
|
opera: [
|
|
|
{
|
|
|
- label: '确定',
|
|
|
- icon: 'el-icon-view',
|
|
|
+ label: '确认身份',
|
|
|
+ icon: 'el-icon-check',
|
|
|
method: 'share',
|
|
|
display: item => {
|
|
|
return item.schid == null;
|
|
@@ -132,7 +132,7 @@ export default {
|
|
|
},
|
|
|
computed: {},
|
|
|
methods: {
|
|
|
- ...mapActions(['query', 'delete', 'scoreImport']),
|
|
|
+ ...mapActions(['query', 'delete', 'scoreImport', 'update']),
|
|
|
async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
|
const res = await this.query({ skip, limit, ...info });
|
|
|
if (this.$checkRes(res)) {
|
|
@@ -141,8 +141,10 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
// 确定按钮
|
|
|
- share({ data }) {
|
|
|
- console.log(data);
|
|
|
+ async share({ data }) {
|
|
|
+ data.status = '1';
|
|
|
+ let res = await this.update(data);
|
|
|
+ if (this.$checkRes(res, `确认身份成功`, res.errmsg || '确认身份失败')) this.search();
|
|
|
},
|
|
|
toEdit({ data }) {
|
|
|
this.$router.push({ path: '/teacher/detail', query: { id: data.id } });
|