|
|
|
@ -6,7 +6,7 @@ |
|
|
|
<div class="flex filter-area"> |
|
|
|
<label for="">收录申请</label> |
|
|
|
<GuipSelect width="180px" clearable label="状态" :options="statusList" :extraItem="{ label: '不限', value: -1 }" v-model="review_status" @change="getList"/> |
|
|
|
<GuipSelect width="180px" clearable label="学历" :options="['麻辣烫','提拉米苏']" v-model="degree" @change="getList"/> |
|
|
|
<GuipSelect width="180px" clearable label="学历" :options="degreesList" v-model="degree" @change="getList"/> |
|
|
|
|
|
|
|
<GuipFormItem label="学校"> |
|
|
|
<SchoolAutoComplete |
|
|
|
@ -50,11 +50,12 @@ |
|
|
|
<el-table-column fixed="right" prop="tid" label="操作" min-width="100"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div class="flex"> |
|
|
|
<GuipButton v-if="scope.row.review_status == 0" type="text" @click="handleConfirm(scope.row)">收录</GuipButton> |
|
|
|
<GuipButton v-if="scope.row.review_status == 3" type="text" @click="handleConfirm(scope.row,'0')">恢复代收录</GuipButton> |
|
|
|
<GuipButton v-if="scope.row.review_status==1" type="text" @click="handleUpdate(scope.row)">修改</GuipButton> |
|
|
|
<GuipButton v-if="scope.row.review_status == 0" type="text" @click="handleConfirm(scope.row.id,'1')">收录</GuipButton> |
|
|
|
<GuipButton v-if="scope.row.review_status == 3" type="text" @click="handleConfirm(scope.row.id,'0')">恢复代收录</GuipButton> |
|
|
|
<GuipButton v-if="scope.row.review_status == 1" type="text" @click="handleUpdate(scope.row.id)">收录</GuipButton> |
|
|
|
<GuipButton v-if="scope.row.review_status==2" type="text" @click="handleUpdate(scope.row)">修改</GuipButton> |
|
|
|
<GuipButton v-if="scope.row.review_status == 0" type="warn" @click="handleRefuse(scope.row)">拒绝</GuipButton> |
|
|
|
<GuipButton v-if="scope.row.review_status == 2" type="warn" @click="handleRefuse(scope.row)">取消</GuipButton> |
|
|
|
<GuipButton v-if="scope.row.review_status == 1" type="warn" @click="handleConfirm(scope.row.id,'0')">取消</GuipButton> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
@ -130,7 +131,8 @@ export default { |
|
|
|
refuse_id:0, |
|
|
|
tpl_name:'', |
|
|
|
refuse_reason:'', |
|
|
|
statusList:[] |
|
|
|
statusList:[], |
|
|
|
degreesList:[] |
|
|
|
} |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
@ -157,6 +159,7 @@ export default { |
|
|
|
this.pageSize = 20 |
|
|
|
this.getList() |
|
|
|
this.getStatusList() |
|
|
|
this.getDegreesList() |
|
|
|
}, |
|
|
|
handleSchoolSelect(item) { |
|
|
|
console.log('选中学校:', item); |
|
|
|
@ -189,6 +192,20 @@ export default { |
|
|
|
console.error('数据加载失败:', error) |
|
|
|
} |
|
|
|
}, |
|
|
|
getDegreesList() { |
|
|
|
try { |
|
|
|
this.$http('POST', '/supernew/ajax_get_paiban_degrees', { |
|
|
|
}).then(response => { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.degreesList = response.data |
|
|
|
}) |
|
|
|
}).catch(error => { |
|
|
|
console.error(error, 'error') |
|
|
|
}) |
|
|
|
} catch (error) { |
|
|
|
console.error('数据加载失败:', error) |
|
|
|
} |
|
|
|
}, |
|
|
|
getStatusList() { |
|
|
|
try { |
|
|
|
this.$http('POST', '/supernew/ajax_get_review_status', { |
|
|
|
@ -211,12 +228,12 @@ export default { |
|
|
|
this.currentPage = val |
|
|
|
this.getList() |
|
|
|
}, |
|
|
|
handleConfirm(row){ |
|
|
|
handleConfirm(id,status){ |
|
|
|
this.isShowDialog = false |
|
|
|
try { |
|
|
|
this.$http('POST', '/supernew/ajax_update_paiban_template_review_status', { |
|
|
|
template_id: row.id, |
|
|
|
review_status: 1, |
|
|
|
template_id: id, |
|
|
|
review_status: status, |
|
|
|
refuse_reason:this.refuse_reason |
|
|
|
}).then(response => { |
|
|
|
this.$nextTick(() => { |
|
|
|
@ -251,32 +268,13 @@ export default { |
|
|
|
this.tpl_name += row.school_name |
|
|
|
if(row.degree_name) this.tpl_name += '-'+row.degree_name |
|
|
|
if(row.college_name) this.tpl_name += '-'+row.college_name |
|
|
|
// this.handleConfirm(row,status) |
|
|
|
}, |
|
|
|
handleCancelRefuse(){ |
|
|
|
this.isShowDialog = false |
|
|
|
}, |
|
|
|
handleConfirmRefuse(){ |
|
|
|
try { |
|
|
|
this.$http('POST', '/supernew/ajax_update_paiban_template_review_status', { |
|
|
|
template_id: this.refuse_id, |
|
|
|
review_status: 3, |
|
|
|
refuse_reason: this.refuse_reason |
|
|
|
}).then(response => { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.isShowDialog = false; |
|
|
|
if (response.status) { |
|
|
|
this.$Message.success(response.info); |
|
|
|
this.getList() |
|
|
|
} else { |
|
|
|
this.$Message.error(response.info); |
|
|
|
} |
|
|
|
}) |
|
|
|
}).catch(error => { |
|
|
|
console.error(error, 'error') |
|
|
|
}) |
|
|
|
} catch (error) { |
|
|
|
console.error('数据加载失败:', error) |
|
|
|
} |
|
|
|
this.handleConfirm(this.refuse_id,'') |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
|