Commit 5d984e7c authored by jingnan's avatar jingnan 👀

单个签审待办增加过滤

parent e6900c23
<template> <template>
<div class="home-my-task"> <div class="home-my-task">
<div class="task-header"> <div class="task-header">
<el-input
v-model.trim="searchText"
placeholder="任务名称检索"
size="mini"
clearable
>
<i slot="prefix" class="el-input__icon el-icon-search" />
</el-input>
<div class="refresh"> <div class="refresh">
<i class="el-icon-refresh" style="margin-right:10px" title="刷新" @click="refresh" /> <i class="el-icon-refresh" style="margin-right:10px" title="刷新" @click="refresh" />
<span @click="jumpList">更多<i class="el-icon-arrow-right" title="更多" /></span> <span @click="jumpList">更多<i class="el-icon-arrow-right" title="更多" /></span>
...@@ -40,6 +48,7 @@ export default { ...@@ -40,6 +48,7 @@ export default {
name: 'MyTask', name: 'MyTask',
data() { data() {
return { return {
searchText: '',
statusColor: { statusColor: {
'审批中': '#C3A146', '审批中': '#C3A146',
'签审中': '#C3A146', '签审中': '#C3A146',
...@@ -136,7 +145,8 @@ export default { ...@@ -136,7 +145,8 @@ export default {
computed: { computed: {
resLists() { resLists() {
const validAccessList = this.quickAccessList.filter(item => item.taskCount) const validAccessList = this.quickAccessList.filter(item => item.taskCount)
return [...this.taskList, ...validAccessList] const allLists = [...this.taskList, ...validAccessList]
return allLists.filter(list => list.taskType.includes(this.searchText))
} }
}, },
watch: { watch: {
...@@ -352,9 +362,13 @@ export default { ...@@ -352,9 +362,13 @@ export default {
// border: 1px solid #D9D9D9; // border: 1px solid #D9D9D9;
position: relative; position: relative;
.task-header{ .task-header{
// display: flex; display: flex;
height:20px ; height:32px ;
// justify-content: flex-start; align-items: center;
justify-content: flex-end;
.el-input{
width: 50%;
}
.dee-form2{ .dee-form2{
.el-form-item{ .el-form-item{
margin-bottom:10px; margin-bottom:10px;
...@@ -362,10 +376,10 @@ export default { ...@@ -362,10 +376,10 @@ export default {
} }
} }
.refresh{ .refresh{
position: absolute; // position: absolute;
right: 9px; // right: 9px;
top: 10px; // top: 10px;
z-index: 10; // z-index: 10;
span{ span{
font-size:12px; font-size:12px;
color: #999999; color: #999999;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment