Browse Source

待办、已办列表查询条件增加发起人

master
yunuo970428 2 years ago
parent
commit
4ced59c6d6
  1. 32
      anrui-system-ui/src/views/flow/doneList.vue
  2. 8
      anrui-system-ui/src/views/flow/todoList.vue

32
anrui-system-ui/src/views/flow/doneList.vue

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

8
anrui-system-ui/src/views/flow/todoList.vue

@ -12,6 +12,9 @@
<el-form-item label="流程名称"> <el-form-item label="流程名称">
<el-input v-model="listQuery.params.proDefName" placeholder="流程名称" clearable></el-input> <el-input v-model="listQuery.params.proDefName" placeholder="流程名称" clearable></el-input>
</el-form-item> </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-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> <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> <label></label>
@ -195,7 +198,8 @@ export default {
proDefName: '', proDefName: '',
startDate: '', startDate: '',
endDate: '', endDate: '',
userSid: '' userSid: '',
startUserName: ''
} }
} }
} }
@ -511,7 +515,7 @@ export default {
}) })
}, },
handleFilter() { handleFilter() {
this.listQuery.pageNumber = 1 this.listQuery.current = 1
this.getList() this.getList()
}, },
handleSelectionChange() { handleSelectionChange() {

Loading…
Cancel
Save