|
@@ -54,7 +54,7 @@ export default {
|
|
icon: 'el-icon-check',
|
|
icon: 'el-icon-check',
|
|
method: 'share',
|
|
method: 'share',
|
|
display: item => {
|
|
display: item => {
|
|
- return item.schid == null;
|
|
|
|
|
|
+ return item.schid == null && item.status == '0';
|
|
},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -67,7 +67,7 @@ export default {
|
|
icon: 'el-icon-s-order',
|
|
icon: 'el-icon-s-order',
|
|
method: 'select',
|
|
method: 'select',
|
|
display: item => {
|
|
display: item => {
|
|
- return item.status === '2' || item.status === '3';
|
|
|
|
|
|
+ return item.status === '1' || item.status === '2' || item.status === '3';
|
|
},
|
|
},
|
|
},
|
|
},
|
|
],
|
|
],
|
|
@@ -132,7 +132,7 @@ export default {
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
methods: {
|
|
methods: {
|
|
- ...mapActions(['query', 'delete', 'scoreImport', 'update']),
|
|
|
|
|
|
+ ...mapActions(['query', 'delete', 'scoreImport', 'status']),
|
|
async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
const res = await this.query({ skip, limit, ...info });
|
|
const res = await this.query({ skip, limit, ...info });
|
|
if (this.$checkRes(res)) {
|
|
if (this.$checkRes(res)) {
|
|
@@ -142,8 +142,7 @@ export default {
|
|
},
|
|
},
|
|
// 确定按钮
|
|
// 确定按钮
|
|
async share({ data }) {
|
|
async share({ data }) {
|
|
- data.status = '1';
|
|
|
|
- let res = await this.update(data);
|
|
|
|
|
|
+ let res = await this.status({ status: '1', teachersid: [data._id] });
|
|
if (this.$checkRes(res, `确认身份成功`, res.errmsg || '确认身份失败')) this.search();
|
|
if (this.$checkRes(res, `确认身份成功`, res.errmsg || '确认身份失败')) this.search();
|
|
},
|
|
},
|
|
toEdit({ data }) {
|
|
toEdit({ data }) {
|