|
|
|
@ -248,9 +248,7 @@ async function getColumns() {
|
|
|
|
|
// #endregion
|
|
|
|
|
|
|
|
|
|
columnsRef.value.push(actionsColumns as any)
|
|
|
|
|
console.log(columnsRef.value, 'columnsRef111')
|
|
|
|
|
formatColumns()
|
|
|
|
|
console.log(columnsRef.value, 'columnsRef222')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async function formatColumns() {
|
|
|
|
@ -278,7 +276,7 @@ async function formatColumns() {
|
|
|
|
|
'text-color': '#507AFD',
|
|
|
|
|
'onClick': () => goDetail(row),
|
|
|
|
|
},
|
|
|
|
|
{ default: () => row.fromtaskname },
|
|
|
|
|
{ default: () => row.fromtaskid },
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
@ -463,7 +461,7 @@ const dialog = useDialog()
|
|
|
|
|
const message = useMessage()
|
|
|
|
|
const finalStore = useFinal()
|
|
|
|
|
|
|
|
|
|
async function query(page: number, pageSize: number, filterId?: any) {
|
|
|
|
|
async function query(page: number, pageSize: number, filterId?: any,taskName?:string) {
|
|
|
|
|
const asideParmas = unref(finalStore.getAsideValue)
|
|
|
|
|
// 有过滤配置的时候优先使用过滤配置,不要使用左侧参数
|
|
|
|
|
const params = filterId ? { userSearchId: filterId } : asideParmas
|
|
|
|
@ -472,6 +470,7 @@ async function query(page: number, pageSize: number, filterId?: any) {
|
|
|
|
|
pageSize,
|
|
|
|
|
currPage: page,
|
|
|
|
|
sortname: 'states',
|
|
|
|
|
taskName:taskName,
|
|
|
|
|
...params,
|
|
|
|
|
})
|
|
|
|
|
const { data, pageCount, totalCount } = result
|
|
|
|
@ -570,7 +569,7 @@ function exportHandler() {
|
|
|
|
|
'更新时间',
|
|
|
|
|
]
|
|
|
|
|
const filterVal = [
|
|
|
|
|
'id',
|
|
|
|
|
'pictureid',
|
|
|
|
|
'name',
|
|
|
|
|
'approvalnode',
|
|
|
|
|
'approvalstatus',
|
|
|
|
@ -801,8 +800,11 @@ async function refreshHandler(searchId?: any) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function filterTableData(keyword) {
|
|
|
|
|
pagination.page = 1;
|
|
|
|
|
pagination.pageSize = 10;
|
|
|
|
|
if (keyword)
|
|
|
|
|
tableData.value = tableData.value.filter(item => item.id.includes(keyword))
|
|
|
|
|
// tableData.value = tableData.value.filter(item => item.id.includes(keyword))
|
|
|
|
|
query(pagination.page, pagination.pageSize,'',keyword)
|
|
|
|
|
else
|
|
|
|
|
query(pagination.page, pagination.pageSize)
|
|
|
|
|
}
|
|
|
|
|