|
|
|
@ -3,10 +3,10 @@
|
|
|
|
|
<div>
|
|
|
|
|
<div class="course_body">
|
|
|
|
|
<div class="search_top">
|
|
|
|
|
<div class="btn">
|
|
|
|
|
<!-- <div class="btn">
|
|
|
|
|
<el-button @click="search_data">搜索</el-button>
|
|
|
|
|
<el-button @click="reset">重置</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</div> -->
|
|
|
|
|
<el-form :model="search" class="search_top_form">
|
|
|
|
|
<el-form-item label="流程状态">
|
|
|
|
|
<el-select v-model="search.course_status" @change="change_course">
|
|
|
|
@ -36,6 +36,10 @@
|
|
|
|
|
placeholder="请选择关键词"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button @click="search_data">搜索</el-button>
|
|
|
|
|
<el-button @click="reset">重置</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="search_table">
|
|
|
|
@ -176,10 +180,12 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
get_my_course(param).then((res) => {
|
|
|
|
|
// 根据返回码值判断流程状态
|
|
|
|
|
for( let i = 0; i<res.rows.length;i++) {
|
|
|
|
|
res.rows[i].process_status = this.process_change(res.rows[i].alarmStatus)
|
|
|
|
|
for (let i = 0; i < res.rows.length; i++) {
|
|
|
|
|
res.rows[i].process_status = this.process_change(
|
|
|
|
|
res.rows[i].alarmStatus
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
console.log('res.rows',res.rows);
|
|
|
|
|
console.log("res.rows", res.rows);
|
|
|
|
|
this.table_data = res.rows;
|
|
|
|
|
this.total = res.total;
|
|
|
|
|
});
|
|
|
|
@ -194,7 +200,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
// 详情点击跳转
|
|
|
|
|
check_details(val) {
|
|
|
|
|
console.log('12344',val);
|
|
|
|
|
console.log("12344", val);
|
|
|
|
|
this.$emit("change_to_detail", val); // 通知跳转
|
|
|
|
|
},
|
|
|
|
|
// 转换时间格式
|
|
|
|
@ -257,31 +263,31 @@ export default {
|
|
|
|
|
// return "#FDA722";
|
|
|
|
|
case "审核完成":
|
|
|
|
|
return "#2eb9ef";
|
|
|
|
|
case "驳回完成":
|
|
|
|
|
case "驳回":
|
|
|
|
|
return "#e55b5b";
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 根据返回码值判断流程状态
|
|
|
|
|
process_change(val) {
|
|
|
|
|
switch(val) {
|
|
|
|
|
case 1 :
|
|
|
|
|
switch (val) {
|
|
|
|
|
case 1:
|
|
|
|
|
return "审核中";
|
|
|
|
|
case 2 :
|
|
|
|
|
case 2:
|
|
|
|
|
return "审核完成";
|
|
|
|
|
case 3 :
|
|
|
|
|
return "驳回完成";
|
|
|
|
|
case 3:
|
|
|
|
|
return "驳回";
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
handleSizeChange(val) {
|
|
|
|
|
console.log(`每页 ${val} 条`);
|
|
|
|
|
this.pageNum = 1;
|
|
|
|
|
this.pageSize = val;
|
|
|
|
|
this.search_data()
|
|
|
|
|
this.search_data();
|
|
|
|
|
},
|
|
|
|
|
handleCurrentChange(val) {
|
|
|
|
|
console.log(`当前页: ${val}`);
|
|
|
|
|
this.pageNum = val;
|
|
|
|
|
this.search_data()
|
|
|
|
|
this.search_data();
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
@ -371,7 +377,6 @@ export default {
|
|
|
|
|
border-radius: 0px;
|
|
|
|
|
height: 3.7vh;
|
|
|
|
|
border: 1px solid #3d505e;
|
|
|
|
|
// border: 0.5px dashed;
|
|
|
|
|
background: #283436;
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
@ -386,6 +391,21 @@ export default {
|
|
|
|
|
background: #283436;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.el-button {
|
|
|
|
|
width: 70px;
|
|
|
|
|
height: 3.7vh !important;
|
|
|
|
|
border: 1px solid #4a6072;
|
|
|
|
|
color: #fff;
|
|
|
|
|
border-radius: 0px !important;
|
|
|
|
|
background: #323f43;
|
|
|
|
|
}
|
|
|
|
|
.el-button:focus,
|
|
|
|
|
.el-button:hover {
|
|
|
|
|
color: #34e1b3;
|
|
|
|
|
border: 2px solid #137868;
|
|
|
|
|
background: url("~@/assets/companyFile/2121.png") no-repeat !important;
|
|
|
|
|
background-size: 100% 100% !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/deep/.el-range-separator {
|
|
|
|
|
color: #fff;
|
|
|
|
|