修改 技术监督 查询流程问题

This commit is contained in:
GGJ
2024-08-22 15:59:15 +08:00
parent 439310e971
commit c0bd772b61
14 changed files with 179 additions and 59 deletions

View File

@@ -10,7 +10,9 @@
></el-input>
</el-form-item>
<el-form-item label="流程状态">
<el-select v-model="tableStore.table.params.status" clearable placeholder="请选择流程状态">
<el-select v-model="tableStore.table.params.status" multiple
collapse-tags
@change="changeStatus" placeholder="请选择流程状态">
<el-option
v-for="item in statusSelect"
:key="item.id"
@@ -214,12 +216,16 @@ const tableStore = new TableStore({
// tableStore.table.params.relationUserName = tableStore.table.params.userName
}
})
tableStore.table.params.status = ''
tableStore.table.params.status = statusSelect.map(item => item.id) //[]
tableStore.table.params.state = ''
tableStore.table.params.searchValue = ''
provide('tableStore', tableStore)
const changeStatus = e => {
if (e.length == 0) {
tableStore.table.params.status = statusSelect.map(item => item.id)
}
}
onMounted(() => {
tableStore.index()
})

View File

@@ -10,7 +10,13 @@
></el-input>
</el-form-item>
<el-form-item label="流程状态">
<el-select v-model="tableStore.table.params.status" clearable placeholder="请选择流程状态">
<el-select
v-model="tableStore.table.params.status"
multiple
collapse-tags
@change="changeStatus"
placeholder="请选择流程状态"
>
<el-option
v-for="item in statusSelect"
:key="item.id"
@@ -50,7 +56,7 @@ const flag = ref(false)
const TableHeaderRef = ref()
const tableRef = ref()
const statusSelect = dictData.statusSelect()
statusSelect.push({ name: '同步台账成功', id: 5 })
const tableStore = new TableStore({
url: '/supervision-boot/tempLinedebug/list',
publicHeight: 65,
@@ -216,14 +222,18 @@ const tableStore = new TableStore({
// tableStore.table.params.relationUserName = tableStore.table.params.userName
}
})
tableStore.table.params.status = ''
tableStore.table.params.status = statusSelect.map(item => item.id) //[]
tableStore.table.params.searchValue = ''
// tableStore.table.params.loadType = ''
// tableStore.table.params.userName = ''
// tableStore.table.params.fileUploadflag = ''
provide('tableStore', tableStore)
const changeStatus = e => {
if (e.length == 0) {
tableStore.table.params.status = statusSelect.map(item => item.id)
}
}
const exportEvent = () => {
let form = JSON.parse(JSON.stringify(tableStore.table.params))
form.pageNum = 1

View File

@@ -10,7 +10,13 @@
></el-input>
</el-form-item>
<el-form-item label="流程状态">
<el-select v-model="tableStore.table.params.status" clearable placeholder="请选择流程状态">
<el-select
v-model="tableStore.table.params.status"
multiple
collapse-tags
@change="changeStatus"
placeholder="请选择流程状态"
>
<el-option
v-for="item in statusSelect"
:key="item.id"
@@ -132,7 +138,7 @@ const tableStore = new TableStore({
showDisabled: row => {
return row.createBy != adminInfo.$state.id || !(row.status == 0)
},
disabled: row => {
return !(row.status == 0)
},
@@ -181,11 +187,13 @@ const tableStore = new TableStore({
// tableStore.table.params.relationUserName = tableStore.table.params.userName
}
})
tableStore.table.params.status = ''
tableStore.table.params.status = statusSelect.map(item => item.id) //[]
tableStore.table.params.searchValue = ''
// tableStore.table.params.loadType = ''
// tableStore.table.params.userName = ''
// tableStore.table.params.fileUploadflag = ''
const changeStatus = e => {
if (e.length == 0) {
tableStore.table.params.status = statusSelect.map(item => item.id)
}
}
provide('tableStore', tableStore)

View File

@@ -9,7 +9,13 @@
></el-input>
</el-form-item>
<el-form-item label="流程状态">
<el-select v-model="tableStore.table.params.status" clearable placeholder="请选择流程状态">
<el-select
v-model="tableStore.table.params.status"
multiple
@change="changeStatus"
collapse-tags
placeholder="请选择流程状态"
>
<el-option
v-for="item in statusSelect"
:key="item.id"
@@ -215,7 +221,7 @@ const tableStore = new TableStore({
// tableStore.table.params.relationUserName = tableStore.table.params.userName
}
})
tableStore.table.params.status = ''
tableStore.table.params.status = statusSelect.map(item => item.id)
tableStore.table.params.searchValue = ''
// tableStore.table.params.loadType = ''
// tableStore.table.params.userName = ''
@@ -252,7 +258,11 @@ const cancelLeave = async (row: any) => {
// 加载数据
tableStore.index()
}
const changeStatus = e => {
if (e.length == 0) {
tableStore.table.params.status = statusSelect.map(item => item.id)
}
}
//导出模板
const exportExcelTemplate = () => {
downloadDevTemplate().then((res: any) => {