|
@@ -27,7 +27,17 @@
|
|
|
th{
|
|
th{
|
|
|
background: #eee;
|
|
background: #eee;
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ .el-button--warning {
|
|
|
|
|
+ color: #FFF;
|
|
|
|
|
+ background-color: #FFB800;
|
|
|
|
|
+ border-color: #FFB800;
|
|
|
|
|
+ }
|
|
|
|
|
+ .el-button--info {
|
|
|
|
|
+ color: #FFF;
|
|
|
|
|
+ background-color: #393D49;
|
|
|
|
|
+ border-color: #393D49;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
.checkList{
|
|
.checkList{
|
|
|
padding:0 10px;
|
|
padding:0 10px;
|
|
@@ -51,7 +61,7 @@
|
|
|
<el-form label-width="75px" :inline="true" size="small">
|
|
<el-form label-width="75px" :inline="true" size="small">
|
|
|
<!-- <el-divider></el-divider> -->
|
|
<!-- <el-divider></el-divider> -->
|
|
|
<el-form-item label="培训项目">
|
|
<el-form-item label="培训项目">
|
|
|
- <Subject v-if='subject_id' @subChange='subChange' :subject_id='subject_id' />
|
|
|
|
|
|
|
+ <Subject v-if='subject_id' @subChange='subChange' :key="key" :subject_id='subject_id' />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="姓名" label-width="40px">
|
|
<el-form-item label="姓名" label-width="40px">
|
|
|
<el-input placeholder="姓名" v-model="form.name"></el-input>
|
|
<el-input placeholder="姓名" v-model="form.name"></el-input>
|
|
@@ -133,15 +143,17 @@
|
|
|
<el-button @click="setStatus(1,'审核通过')" size="small" type="success" >审核通过</el-button>
|
|
<el-button @click="setStatus(1,'审核通过')" size="small" type="success" >审核通过</el-button>
|
|
|
<el-button @click="setStatus(-2,'审核不通过')" size="small" type="info" >审核不通过</el-button>
|
|
<el-button @click="setStatus(-2,'审核不通过')" size="small" type="info" >审核不通过</el-button>
|
|
|
<el-button @click="setStatus(2,'已付款')" size="small" type="primary" >已付款</el-button>
|
|
<el-button @click="setStatus(2,'已付款')" size="small" type="primary" >已付款</el-button>
|
|
|
- <el-button @click="setStatus(3,'已培训')" size="small" type="danger" >已培训</el-button>
|
|
|
|
|
|
|
+ <el-button @click="setStatus(3,'已培训')" size="small" type="warning" >已培训</el-button>
|
|
|
<el-button @click="setStatus(4,'考试完成')" size="small" type="success" >考试完成</el-button>
|
|
<el-button @click="setStatus(4,'考试完成')" size="small" type="success" >考试完成</el-button>
|
|
|
<el-button @click="setTime(1)" size="small" type="primary" >设置培训时间</el-button>
|
|
<el-button @click="setTime(1)" size="small" type="primary" >设置培训时间</el-button>
|
|
|
<el-button @click="setTime(2)" size="small" type="primary" >设置考试时间</el-button>
|
|
<el-button @click="setTime(2)" size="small" type="primary" >设置考试时间</el-button>
|
|
|
<el-divider direction="vertical"></el-divider>
|
|
<el-divider direction="vertical"></el-divider>
|
|
|
- <el-button @click="download('exam')" size="small" type="warning" >导出考勤表与申报考试表</el-button>
|
|
|
|
|
- <el-button @click="download('apply')" size="small" type="warning" >导出学员申报资料</el-button>
|
|
|
|
|
- <el-divider direction="vertical"></el-divider>
|
|
|
|
|
- <el-dropdown trigger="click">
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <el-button style="float:right" @click="print" type="primary" size="mini" plain icon="el-icon-printer"></el-button>
|
|
|
|
|
+
|
|
|
|
|
+ <el-dropdown trigger="click" style="float:right;margin-right:10px">
|
|
|
<el-button type="primary" size="mini" plain icon="el-icon-finished">
|
|
<el-button type="primary" size="mini" plain icon="el-icon-finished">
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
<el-dropdown-menu slot="dropdown">
|
|
@@ -153,8 +165,11 @@
|
|
|
</div>
|
|
</div>
|
|
|
</el-dropdown-menu>
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
</el-dropdown>
|
|
|
-
|
|
|
|
|
- <el-button @click="print" type="primary" size="mini" plain icon="el-icon-printer"></el-button>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <el-button style="float:right;margin-right:10px" @click="download('apply')" size="small" type="info" >导出学员申报资料</el-button>
|
|
|
|
|
+
|
|
|
|
|
+ <el-button style="float:right;margin-right:10px" @click="download('exam')" size="small" type="success" >导出考勤表与申报考试表</el-button>
|
|
|
|
|
+
|
|
|
</div>
|
|
</div>
|
|
|
<el-table
|
|
<el-table
|
|
|
class="table"
|
|
class="table"
|
|
@@ -167,7 +182,25 @@
|
|
|
width="40">
|
|
width="40">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<template v-for="(item,index) in itemList" >
|
|
<template v-for="(item,index) in itemList" >
|
|
|
- <el-table-column :key='index' v-if='item.checked' :width='item.width'
|
|
|
|
|
|
|
+ <el-table-column :key='index' v-if='item.checked&&item.name=="状态"' :width='item.width'
|
|
|
|
|
+ :prop="item.value" :label="item.name" :class-name="item.value">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-button size="mini" v-if='scope.row.order_status==-2' type="warning">{{scope.row.order_status_1}}</el-button>
|
|
|
|
|
+ <el-button size="mini" v-if='scope.row.order_status==-1' type="warning">{{scope.row.order_status_1}}</el-button>
|
|
|
|
|
+ <el-button size="mini" v-if='scope.row.order_status==0' type="warning">{{scope.row.order_status_1}}</el-button>
|
|
|
|
|
+ <el-button size="mini" v-if='scope.row.order_status==1' type="danger">{{scope.row.order_status_1}}</el-button>
|
|
|
|
|
+ <el-button size="mini" v-if='scope.row.order_status==2' type="primary">{{scope.row.order_status_1}}</el-button>
|
|
|
|
|
+ <el-button size="mini" v-if='scope.row.order_status==3' type="success">{{scope.row.order_status_1}}</el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column :key='index' v-if='item.checked&&item.name=="支付状态"' :width='item.width'
|
|
|
|
|
+ :prop="item.value" :label="item.name" :class-name="item.value">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-button size="mini" v-if='scope.row.pay_status==0' type="danger">{{scope.row.pay_status_1}}</el-button>
|
|
|
|
|
+ <el-button size="mini" v-if='scope.row.pay_status==1' type="success">{{scope.row.pay_status_1}}</el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column :key='index' v-if='item.checked&&item.name!="状态"&&item.name!="支付状态"' :width='item.width'
|
|
|
:prop="item.value" :label="item.name">
|
|
:prop="item.value" :label="item.name">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</template>
|
|
</template>
|
|
@@ -216,11 +249,12 @@ export default {
|
|
|
},
|
|
},
|
|
|
data(){
|
|
data(){
|
|
|
return{
|
|
return{
|
|
|
|
|
+ key:1,
|
|
|
checkList:[],
|
|
checkList:[],
|
|
|
itemList:[
|
|
itemList:[
|
|
|
{name:'姓名', value:'name',checked:true},
|
|
{name:'姓名', value:'name',checked:true},
|
|
|
{name:'联系电话', value:'phone',checked:true,width:'120px'},
|
|
{name:'联系电话', value:'phone',checked:true,width:'120px'},
|
|
|
- {name:'状态', value:'order_status_1',checked:true},
|
|
|
|
|
|
|
+ {name:'状态', value:'order_status_1',checked:true,width:'120px'},
|
|
|
{name:'管理员备注', value:'remark',checked:true,width:'150px'},
|
|
{name:'管理员备注', value:'remark',checked:true,width:'150px'},
|
|
|
{name:'报名类型', value:'subject_item0',checked:true,width:'120px'},
|
|
{name:'报名类型', value:'subject_item0',checked:true,width:'120px'},
|
|
|
{name:'作业类别', value:'subject_item1',checked:true},
|
|
{name:'作业类别', value:'subject_item1',checked:true},
|
|
@@ -275,7 +309,7 @@ export default {
|
|
|
if(item.order_status == -2)status='审核未通过';
|
|
if(item.order_status == -2)status='审核未通过';
|
|
|
if(item.order_status == -1)status='待提交资料';
|
|
if(item.order_status == -1)status='待提交资料';
|
|
|
if(item.order_status == 0)status='待审核';
|
|
if(item.order_status == 0)status='待审核';
|
|
|
- if(item.order_status == 1)status='已审核立即支付';
|
|
|
|
|
|
|
+ if(item.order_status == 1)status='审核通过待付款';
|
|
|
if(item.order_status == 2)status='学习中';
|
|
if(item.order_status == 2)status='学习中';
|
|
|
if(item.order_status == 3)status='已完成';
|
|
if(item.order_status == 3)status='已完成';
|
|
|
item.order_status_1=status
|
|
item.order_status_1=status
|
|
@@ -460,12 +494,11 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
watch:{
|
|
watch:{
|
|
|
- $route(to){
|
|
|
|
|
|
|
+ $route(to){
|
|
|
this.subject_id=false;
|
|
this.subject_id=false;
|
|
|
this.$nextTick(()=>{
|
|
this.$nextTick(()=>{
|
|
|
this.subject_id=to.path.split('/')[2];
|
|
this.subject_id=to.path.split('/')[2];
|
|
|
})
|
|
})
|
|
|
- this.subject_id=to.path.split('/')[2]
|
|
|
|
|
this.$api.getSubList().then(res=>{
|
|
this.$api.getSubList().then(res=>{
|
|
|
let data=res.data.data;
|
|
let data=res.data.data;
|
|
|
for(let i=0;i<data.length;i++){
|
|
for(let i=0;i<data.length;i++){
|
|
@@ -475,7 +508,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
this.getData()
|
|
this.getData()
|
|
|
- })
|
|
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
created(){
|
|
created(){
|