|
|
@ -12,6 +12,9 @@ |
|
|
|
<el-form-item label="流程名称"> |
|
|
|
<el-input v-model="listQuery.params.proDefName" placeholder="流程名称" clearable></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="发起人"> |
|
|
|
<el-input v-model="listQuery.params.startUserName" placeholder="" clearable></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="申请日期"> |
|
|
|
<el-date-picker v-model="listQuery.params.startDate" type="date" placeholder="选择日期" value-format="yyyy-MM-dd" format="yyyy-MM-dd"></el-date-picker> |
|
|
|
<label>至</label> |
|
|
@ -23,7 +26,7 @@ |
|
|
|
</div> |
|
|
|
<div class="listtop"> |
|
|
|
<div class="tit">已办任务列表</div> |
|
|
|
<pageye v-show="total > 0" :total="total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|
|
|
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|
|
|
</div> |
|
|
|
<div class="listcon"> |
|
|
|
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width:100%" @selection-change="handleSelectionChange"> |
|
|
@ -81,7 +84,7 @@ |
|
|
|
</div> |
|
|
|
<div class="pages"> |
|
|
|
<div class="tit"/> |
|
|
|
<pagination v-show="total > 0" :total="total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|
|
|
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|
|
|
</div> |
|
|
|
<!-- Start查看页面 --> |
|
|
|
<el-dialog |
|
|
@ -164,7 +167,6 @@ export default { |
|
|
|
editDialog: false, |
|
|
|
flowRecordList: [], |
|
|
|
listLoading: false, |
|
|
|
total: 0, |
|
|
|
list: [], |
|
|
|
tableKey: 0, |
|
|
|
taskName_now: '', |
|
|
@ -209,8 +211,10 @@ export default { |
|
|
|
listQuery: { |
|
|
|
current: 1, |
|
|
|
size: 10, |
|
|
|
total: 0, |
|
|
|
params: { |
|
|
|
proDefName: '', |
|
|
|
startUserName: '', |
|
|
|
startDate: '', |
|
|
|
endDate: '', |
|
|
|
userSid: '' |
|
|
@ -418,23 +422,19 @@ export default { |
|
|
|
}, |
|
|
|
getList() { |
|
|
|
this.listLoading = true |
|
|
|
getList({ |
|
|
|
current: this.listQuery.current, |
|
|
|
size: this.listQuery.size, |
|
|
|
params: { |
|
|
|
proDefName: this.listQuery.params.proDefName, |
|
|
|
startDate: this.listQuery.params.startDate, |
|
|
|
endDate: this.listQuery.params.endDate, |
|
|
|
userSid: this.listQuery.params.userSid |
|
|
|
} |
|
|
|
}).then((rep) => { |
|
|
|
getList(this.listQuery).then((rep) => { |
|
|
|
this.listLoading = false |
|
|
|
this.list = rep.data.records |
|
|
|
this.total = rep.data.total |
|
|
|
if (rep.success) { |
|
|
|
this.list = rep.data.records |
|
|
|
this.listQuery.total = rep.data.total |
|
|
|
} else { |
|
|
|
this.list = [] |
|
|
|
this.listQuery.total = 0 |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
handleFilter() { |
|
|
|
this.listQuery.pageNumber = 1 |
|
|
|
this.listQuery.current = 1 |
|
|
|
this.getList() |
|
|
|
}, |
|
|
|
handleSelectionChange() { |
|
|
|