|
@@ -66,7 +66,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="look" width="150" label="表单状态">
|
|
|
+ <el-table-column prop="look" width="150" label="表单状态" :filters="statusFilterList" :filter-method="statusFilterFn">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ getLook(scope.row) }}</span>
|
|
|
</template>
|
|
@@ -204,11 +204,13 @@
|
|
|
prop="worksCount"
|
|
|
width="200"
|
|
|
label="已提交数量"
|
|
|
+ sortable
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
|
prop="testCount"
|
|
|
width="200"
|
|
|
label="已完成表单"
|
|
|
+ sortable
|
|
|
></el-table-column>
|
|
|
|
|
|
<el-table-column fixed="right" label="操作" min-width="100">
|
|
@@ -271,6 +273,22 @@ export default {
|
|
|
text:"所有人",
|
|
|
value:4
|
|
|
}],
|
|
|
+ statusFilterList:[{
|
|
|
+ text:"未发布",
|
|
|
+ value:"未发布"
|
|
|
+ },{
|
|
|
+ text:"逾期",
|
|
|
+ value:"逾期"
|
|
|
+ },{
|
|
|
+ text:"进行中",
|
|
|
+ value:"进行中"
|
|
|
+ },{
|
|
|
+ text:"未进行",
|
|
|
+ value:"未进行"
|
|
|
+ },{
|
|
|
+ text:"已完成",
|
|
|
+ value:"已完成"
|
|
|
+ }],
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -477,6 +495,9 @@ export default {
|
|
|
typeFilterFn(value,row){
|
|
|
return row.typeid && value.indexOf(row.typeid)!=-1;
|
|
|
},
|
|
|
+ statusFilterFn(value,row){
|
|
|
+ return this.getLook(row) == value;
|
|
|
+ },
|
|
|
creatorFilterFn(value){
|
|
|
this.displayRange = value;
|
|
|
this.getData();
|