|
|
@ -9,7 +9,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<el-form :model="search" class="search_top_form">
|
|
|
|
<el-form :model="search" class="search_top_form">
|
|
|
|
<el-form-item label="流程状态">
|
|
|
|
<el-form-item label="流程状态">
|
|
|
|
<el-select v-model="search.course_select" @change="change_course">
|
|
|
|
<el-select v-model="search.course_status" @change="change_course">
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="item in course_list"
|
|
|
|
v-for="item in course_list"
|
|
|
|
:key="item.value"
|
|
|
|
:key="item.value"
|
|
|
@ -44,9 +44,9 @@
|
|
|
|
:header-cell-style="table_header"
|
|
|
|
:header-cell-style="table_header"
|
|
|
|
:cell-style="{ background: 'revert', 'text-align': 'center' }"
|
|
|
|
:cell-style="{ background: 'revert', 'text-align': 'center' }"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-table-column prop="course_name" label="流程名称" width="420">
|
|
|
|
<el-table-column prop="procDefName" label="流程名称" width="420">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="create_time" label="创建时间" width="280">
|
|
|
|
<el-table-column prop="createTime" label="创建时间" width="280">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="course_type" label="流程类型" width="280">
|
|
|
|
<el-table-column prop="course_type" label="流程类型" width="280">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
@ -57,9 +57,9 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="tips" label="当前节点" width="220">
|
|
|
|
<el-table-column prop="taskName" label="当前节点" width="220">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="person" label="未操作者" width="280">
|
|
|
|
<el-table-column prop="nextNodeUsers" label="未操作者" width="280">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="operation" label="操作">
|
|
|
|
<el-table-column prop="operation" label="操作">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
@ -92,21 +92,22 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
|
|
|
|
import { get_my_course } from "@/api/closeLoopDispose";
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "MyCourse",
|
|
|
|
name: "MyCourse",
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
search: {
|
|
|
|
search: {
|
|
|
|
course_select: "待审核",
|
|
|
|
course_status: "",
|
|
|
|
course_num: "1", // 表格查询待定入参
|
|
|
|
procStatus: "0", // 表格查询待定入参
|
|
|
|
course_time: [this.get_today(), this.get_tomorrow()],
|
|
|
|
course_time: [this.get_today(), this.get_tomorrow()],
|
|
|
|
word: "",
|
|
|
|
word: "",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
course_list: [
|
|
|
|
course_list: [
|
|
|
|
{ label: "待审核", value: "1" },
|
|
|
|
{ label: "进行中", value: "1" },
|
|
|
|
{ label: "通过", value: "2" },
|
|
|
|
{ label: "审核通过", value: "2" },
|
|
|
|
{ label: "驳回", value: "3" },
|
|
|
|
{ label: "驳回", value: "3" },
|
|
|
|
{ label: "处置中", value: "4" },
|
|
|
|
// { label: "处置中", value: "4" },
|
|
|
|
],
|
|
|
|
],
|
|
|
|
pickerOptions: {
|
|
|
|
pickerOptions: {
|
|
|
|
shortcuts: [
|
|
|
|
shortcuts: [
|
|
|
@ -139,63 +140,43 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
table_data: [
|
|
|
|
table_data: [],
|
|
|
|
{
|
|
|
|
|
|
|
|
course_name: "宁波市北越石化有限公司-核酸检测率-异常处置",
|
|
|
|
|
|
|
|
create_time: "2023-06-06 12:53:30",
|
|
|
|
|
|
|
|
course_type: "防疫安全",
|
|
|
|
|
|
|
|
course_status: "进行中",
|
|
|
|
|
|
|
|
tips: "治安大队",
|
|
|
|
|
|
|
|
person: "王伟、李勋勋",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
course_name: "宁波市北越石化有限公司-核酸检测率-异常处置",
|
|
|
|
|
|
|
|
create_time: "2023-06-06 12:53:30",
|
|
|
|
|
|
|
|
course_type: "防疫安全",
|
|
|
|
|
|
|
|
course_status: "处置成功",
|
|
|
|
|
|
|
|
tips: "治安大队",
|
|
|
|
|
|
|
|
person: "王伟、李勋勋",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
course_name: "宁波市北越石化有限公司-核酸检测率-异常处置",
|
|
|
|
|
|
|
|
create_time: "2023-06-06 12:53:30",
|
|
|
|
|
|
|
|
course_type: "防疫安全",
|
|
|
|
|
|
|
|
course_status: "处置失败",
|
|
|
|
|
|
|
|
tips: "治安大队",
|
|
|
|
|
|
|
|
person: "王伟、李勋勋",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
pageSize: 10,
|
|
|
|
pageSize: 10,
|
|
|
|
pageNum: 1,
|
|
|
|
pageNum: 1,
|
|
|
|
total: 0,
|
|
|
|
total: 0,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {},
|
|
|
|
created() {
|
|
|
|
|
|
|
|
this.search_data();
|
|
|
|
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
change_course(val) {
|
|
|
|
change_course(val) {
|
|
|
|
this.search.course_num = this.course_list.find((item) => {
|
|
|
|
this.search.procStatus = this.course_list.find(
|
|
|
|
item.label === val;
|
|
|
|
(item) => item.label === val
|
|
|
|
}).value;
|
|
|
|
).value;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 查询
|
|
|
|
// 查询
|
|
|
|
search_data() {
|
|
|
|
search_data() {
|
|
|
|
console.log("this.search.course_time", this.search.course_time);
|
|
|
|
|
|
|
|
let param = {
|
|
|
|
let param = {
|
|
|
|
startTime:
|
|
|
|
pageSize: this.pageSize,
|
|
|
|
this.search.course_time == null
|
|
|
|
page: this.pageNum,
|
|
|
|
? ""
|
|
|
|
// isAsc: "desc",
|
|
|
|
: this.dateConversion(this.search.course_time[0]),
|
|
|
|
// orderByColumn: "id",
|
|
|
|
endTime:
|
|
|
|
startTime: this.dateConversion(this.search.course_time[0]),
|
|
|
|
this.search.course_time == null
|
|
|
|
endTime: this.dateConversion(this.search.course_time[1]),
|
|
|
|
? ""
|
|
|
|
searchKey: this.search.word,
|
|
|
|
: this.dateConversion(this.search.course_time[1]),
|
|
|
|
procStatus: this.search.procStatus,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
console.log("param", param);
|
|
|
|
get_my_course(param).then((res) => {
|
|
|
|
|
|
|
|
console.log("get_data", res);
|
|
|
|
|
|
|
|
this.table_data = res.rows;
|
|
|
|
|
|
|
|
this.total = res.total;
|
|
|
|
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 重置查询
|
|
|
|
// 重置查询
|
|
|
|
reset() {
|
|
|
|
reset() {
|
|
|
|
this.search.course_select = "待审核";
|
|
|
|
this.search.procStatus = "0";
|
|
|
|
this.search.course_num = "1";
|
|
|
|
this.search.course_status = "";
|
|
|
|
this.search.course_time = [this.get_today(), this.get_tomorrow()];
|
|
|
|
this.search.course_time = [this.get_today(), this.get_tomorrow()];
|
|
|
|
this.search.word = "";
|
|
|
|
this.search.word = "";
|
|
|
|
this.search_data();
|
|
|
|
this.search_data();
|
|
|
@ -203,7 +184,7 @@ export default {
|
|
|
|
// 详情点击跳转
|
|
|
|
// 详情点击跳转
|
|
|
|
check_details(val) {
|
|
|
|
check_details(val) {
|
|
|
|
console.log(val);
|
|
|
|
console.log(val);
|
|
|
|
this.$emit("change_to_detail");
|
|
|
|
this.$emit("change_to_detail" ,val); // 通知跳转
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 转换时间格式
|
|
|
|
// 转换时间格式
|
|
|
|
dateConversion(value) {
|
|
|
|
dateConversion(value) {
|
|
|
@ -297,11 +278,9 @@ export default {
|
|
|
|
#2f6363 5%,
|
|
|
|
#2f6363 5%,
|
|
|
|
#233b38 80%
|
|
|
|
#233b38 80%
|
|
|
|
) !important;
|
|
|
|
) !important;
|
|
|
|
|
|
|
|
|
|
|
|
& th {
|
|
|
|
& th {
|
|
|
|
background-color: transparent;
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
& tr {
|
|
|
|
& tr {
|
|
|
|
background-color: transparent;
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -311,6 +290,19 @@ export default {
|
|
|
|
background: rgba(0, 0, 0, 0);
|
|
|
|
background: rgba(0, 0, 0, 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/deep/.el-table__body-wrapper::-webkit-scrollbar {
|
|
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
width: 6px;
|
|
|
|
|
|
|
|
background-color: #5e666a;
|
|
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/deep/.el-table__body-wrapper::-webkit-scrollbar-thumb {
|
|
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
width: 5px;
|
|
|
|
|
|
|
|
background-color: #3c4b4a;
|
|
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
|
|
}
|
|
|
|
/deep/ .el-table td.el-table__cell,
|
|
|
|
/deep/ .el-table td.el-table__cell,
|
|
|
|
.el-table th.el-table__cell.is-leaf {
|
|
|
|
.el-table th.el-table__cell.is-leaf {
|
|
|
|
border: 0.1px solid #3f5564;
|
|
|
|
border: 0.1px solid #3f5564;
|
|
|
|