|
@@ -46,7 +46,7 @@
|
|
|
</el-tabs>
|
|
|
<el-row type="flex" justify="center" :gutter="20">
|
|
|
<el-col :span="7">
|
|
|
- <el-form-item :label="info.status === '2' ? '资料评分' : '面试评分'">
|
|
|
+ <el-form-item :label="info.status === '2' || info.status === '1' ? '资料评分' : '面试评分'">
|
|
|
<el-input
|
|
|
v-if="info.status === '2' || info.status === '1'"
|
|
|
type="number"
|
|
@@ -68,8 +68,8 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="5">
|
|
|
- <el-button v-if="info.status === '2' || info.status === '1'" size="mini" type="primary" plain @click="handleSave">通知面试</el-button>
|
|
|
- <el-button v-if="info.status === '3'" size="mini" type="primary" plain @click="handleSave">确认入库</el-button>
|
|
|
+ <el-button v-if="info.status === '2' || info.status === '1'" size="mini" type="primary" plain @click="handleSave(3)">通知面试</el-button>
|
|
|
+ <el-button v-if="info.status === '3'" size="mini" type="primary" plain @click="handleSave(4)">确认入库</el-button>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
@@ -109,9 +109,11 @@ export default {
|
|
|
if (this.$checkRes(res)) this.$set(this, `info`, res.data);
|
|
|
this.loading = false;
|
|
|
},
|
|
|
- async handleSave() {
|
|
|
- let object = { status: this.info.status * 1 + 1 };
|
|
|
- this.info.status === '2' ? (object.zlscore = this.info.zlscore || 0) : (object.msscore = this.info.msscore || 0);
|
|
|
+ async handleSave(status) {
|
|
|
+ let object = { status: status };
|
|
|
+ if (status == '3') object.zlscore = this.info.zlscore || 0;
|
|
|
+ else if (status == '4') object.msscore = this.info.msscore || 0;
|
|
|
+ // this.info.status === '2' ? (object.zlscore = this.info.zlscore || 0) : this.info.status === '3' ? (object.msscore = this.info.msscore || 0) : '';
|
|
|
let res;
|
|
|
let msg;
|
|
|
let teachersid = [];
|