|
@@ -44,11 +44,31 @@
|
|
</el-tabs>
|
|
</el-tabs>
|
|
<el-row type="flex" justify="center" :gutter="20">
|
|
<el-row type="flex" justify="center" :gutter="20">
|
|
<el-col :span="4">
|
|
<el-col :span="4">
|
|
- <el-form-item label="资料评分">
|
|
|
|
- <el-input type="number" size="small" v-model="info.zlscore" placeholder="请填写资料评分" :min="0" :max="100"></el-input>
|
|
|
|
|
|
+ <el-form-item :label="info.status === '2' ? '资料评分' : '面试评分'">
|
|
|
|
+ <el-input
|
|
|
|
+ v-if="info.status === '2'"
|
|
|
|
+ type="number"
|
|
|
|
+ size="small"
|
|
|
|
+ v-model="info.zlscore"
|
|
|
|
+ placeholder="请填写资料评分"
|
|
|
|
+ :min="0"
|
|
|
|
+ :max="100"
|
|
|
|
+ ></el-input>
|
|
|
|
+ <el-input
|
|
|
|
+ v-if="info.status === '3'"
|
|
|
|
+ type="number"
|
|
|
|
+ size="small"
|
|
|
|
+ v-model="info.msscore"
|
|
|
|
+ placeholder="请填写面试评分"
|
|
|
|
+ :min="0"
|
|
|
|
+ :max="100"
|
|
|
|
+ ></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="5"><el-button size="mini" type="primary" plain @click="handleSave">通知面试</el-button></el-col>
|
|
|
|
|
|
+ <el-col :span="5">
|
|
|
|
+ <el-button v-if="info.status === '2'" 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-col>
|
|
</el-row>
|
|
</el-row>
|
|
</el-form>
|
|
</el-form>
|
|
</el-card>
|
|
</el-card>
|
|
@@ -75,9 +95,7 @@ export default {
|
|
},
|
|
},
|
|
data: () => ({
|
|
data: () => ({
|
|
tabs: '1',
|
|
tabs: '1',
|
|
- info: {
|
|
|
|
- zlscore: 0,
|
|
|
|
- },
|
|
|
|
|
|
+ info: {},
|
|
fields: [{ label: '状态', required: true, model: 'status', custom: true }],
|
|
fields: [{ label: '状态', required: true, model: 'status', custom: true }],
|
|
rules: {},
|
|
rules: {},
|
|
}),
|
|
}),
|
|
@@ -90,9 +108,11 @@ export default {
|
|
this.loading = false;
|
|
this.loading = false;
|
|
},
|
|
},
|
|
async handleSave() {
|
|
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);
|
|
let res;
|
|
let res;
|
|
let msg;
|
|
let msg;
|
|
- res = await this.update({ status: '3', id: this.id, zlscore: this.info.zlscore || 0 });
|
|
|
|
|
|
+ res = await this.update({ id: this.id, ...object });
|
|
msg = `${this.keyWord}审核成功`;
|
|
msg = `${this.keyWord}审核成功`;
|
|
if (this.$checkRes(res, msg)) this.$router.push({ path: '/teacher/index' });
|
|
if (this.$checkRes(res, msg)) this.$router.push({ path: '/teacher/index' });
|
|
},
|
|
},
|