|
|
|
@ -5,9 +5,9 @@ |
|
|
|
<div class="flex-between mb24"> |
|
|
|
<div class="flex filter-area"> |
|
|
|
<label for="">收录申请</label> |
|
|
|
<GuipSelect width="180px" clearable label="状态" :options="['麻辣烫','提拉米苏']" v-model="review_status" /> |
|
|
|
<GuipSelect width="180px" clearable label="学历" :options="['麻辣烫','提拉米苏']" v-model="degree" /> |
|
|
|
<GuipInput ref="GuipInput" width="280px" label="学校" placeholder="输入学校名称" v-model="school" /> |
|
|
|
<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"/> |
|
|
|
<GuipInput ref="GuipInput" width="280px" label="学校" placeholder="输入学校名称" @blur="getList" v-model="school" /> |
|
|
|
</div> |
|
|
|
<GuipButton type="primary" :btnstyle="{ width: '120px' }">收录成功通知 |
|
|
|
</GuipButton> |
|
|
|
@ -33,17 +33,17 @@ |
|
|
|
<el-table-column prop="review_status_desc" label="上传时间" min-width="200"></el-table-column> |
|
|
|
<el-table-column prop="status" label="状态" min-width="200"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span :class="['status','status'+[scope.row.status]]">{{ scope.row.status_desc }}</span> |
|
|
|
<span :class="['status','status'+[scope.row.review_status]]">{{ scope.row.review_status_desc }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column fixed="right" prop="tid" label="操作" min-width="100"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div class="flex"> |
|
|
|
<GuipButton v-if="scope.row.status == 0" type="text" @click="handleConfirm(scope.row.id)">收录</GuipButton> |
|
|
|
<GuipButton v-if="scope.row.status == 3" type="text" @click="handleConfirm(scope.row.id)">恢复代收录</GuipButton> |
|
|
|
<GuipButton v-if="scope.row.status==1" type="text" @click="handleConfirm(scope.row.id)">修改</GuipButton> |
|
|
|
<GuipButton v-if="scope.row.status == 0" type="warn" @click="handleRefuse(scope.row)">拒绝</GuipButton> |
|
|
|
<GuipButton v-if="scope.row.status == 2" type="warn" @click="handleRefuse(scope.row)">取消</GuipButton> |
|
|
|
<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="warn" @click="handleRefuse(scope.row)">拒绝</GuipButton> |
|
|
|
<GuipButton v-if="scope.row.review_status == 2" type="warn" @click="handleRefuse(scope.row)">取消</GuipButton> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
@ -101,8 +101,8 @@ export default { |
|
|
|
return { |
|
|
|
tableLoading:false, |
|
|
|
tableKey: '', |
|
|
|
school:'0', |
|
|
|
degree:'0', |
|
|
|
school:'', |
|
|
|
degree:'', |
|
|
|
review_status: -1, |
|
|
|
|
|
|
|
tableList:[], |
|
|
|
@ -113,7 +113,8 @@ export default { |
|
|
|
isShowDialog:false, |
|
|
|
refuse_id:0, |
|
|
|
tpl_name:'', |
|
|
|
refuse_reason:'' |
|
|
|
refuse_reason:'', |
|
|
|
statusList:[] |
|
|
|
} |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
@ -129,17 +130,18 @@ export default { |
|
|
|
this.currentPage = 1 |
|
|
|
this.pageSize = 20 |
|
|
|
this.getList() |
|
|
|
this.getStatusList() |
|
|
|
}, |
|
|
|
getList() { |
|
|
|
try { |
|
|
|
this.$http('POST', '/supernew/ajax_get_paiban_review_list', {//ok |
|
|
|
school: this.school, |
|
|
|
degree: this.degree, |
|
|
|
review_status: this.review_status, |
|
|
|
school: this.school || '0', |
|
|
|
degree: this.degree || '0', |
|
|
|
review_status: String(this.review_status), |
|
|
|
page: this.currentPage, |
|
|
|
}).then(response => { |
|
|
|
this.$nextTick(() => { |
|
|
|
// this.tableList = response.data.list |
|
|
|
this.tableList = response.data.list |
|
|
|
this.total = response.data.count |
|
|
|
}) |
|
|
|
}).catch(error => { |
|
|
|
@ -149,6 +151,20 @@ export default { |
|
|
|
console.error('数据加载失败:', error) |
|
|
|
} |
|
|
|
}, |
|
|
|
getStatusList() { |
|
|
|
try { |
|
|
|
this.$http('POST', '/supernew/ajax_get_review_status', { |
|
|
|
}).then(response => { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.statusList = response.data |
|
|
|
}) |
|
|
|
}).catch(error => { |
|
|
|
console.error(error, 'error') |
|
|
|
}) |
|
|
|
} catch (error) { |
|
|
|
console.error('数据加载失败:', error) |
|
|
|
} |
|
|
|
}, |
|
|
|
handleSizeChange(val) { |
|
|
|
this.pageSize = val |
|
|
|
this.getList() |
|
|
|
@ -157,13 +173,13 @@ export default { |
|
|
|
this.currentPage = val |
|
|
|
this.getList() |
|
|
|
}, |
|
|
|
handleConfirm(id){ |
|
|
|
console.log(id) |
|
|
|
handleConfirm(row){ |
|
|
|
this.isShowDialog = false |
|
|
|
try { |
|
|
|
this.$http('POST', '/supernew/ajax_update_paiban_template_review_status', { |
|
|
|
template_id: id, |
|
|
|
template_id: row.id, |
|
|
|
review_status: 1, |
|
|
|
refuse_reason:this.refuse_reason |
|
|
|
}).then(response => { |
|
|
|
this.$nextTick(() => { |
|
|
|
if (response.status) { |
|
|
|
@ -180,6 +196,14 @@ export default { |
|
|
|
console.error('数据加载失败:', error) |
|
|
|
} |
|
|
|
}, |
|
|
|
handleUpdate(row){ |
|
|
|
// 修改 会到编辑页面 |
|
|
|
localStorage.setItem('curtplInfo', JSON.stringify(row)) |
|
|
|
this.$router.push({ |
|
|
|
path: '/super/clientSet/coverInfoPage', |
|
|
|
query: { id:row.id } |
|
|
|
}) |
|
|
|
}, |
|
|
|
handleLunwen(row){ |
|
|
|
this.refuse_id = row.id |
|
|
|
}, |
|
|
|
@ -243,12 +267,12 @@ export default { |
|
|
|
background: #F2F7FF; |
|
|
|
color: #006AFF; |
|
|
|
} |
|
|
|
.status1{ |
|
|
|
.status2{ |
|
|
|
border: 1px solid #DFE2E6; |
|
|
|
background: #F6F7FA; |
|
|
|
color: #626573; |
|
|
|
} |
|
|
|
.status2{ |
|
|
|
.status1{ |
|
|
|
background: #FFFBF2; |
|
|
|
border: 1px solid rgba(251, 131, 45, 0.38); |
|
|
|
color: #FB832D; |
|
|
|
|