Merge branch 'test' into fix/newStyleProblem

pull/94/head
wendong551 1 year ago
commit 0741bc71f6

@ -34,7 +34,7 @@ export const useAsideConfigStore = defineStore({
return this.customConfig
},
getAsideValue(): any {
return this.asideValue
return this.asideValue || {}
},
getSearchValue(): any {
return this.searchValue

@ -64,12 +64,12 @@ const columns: DataTableColumns<RowData> = [
title: '任务ID',
key: 'id',
fixed: 'left',
width: 180,
width: 200,
ellipsis: {
tooltip: true,
},
render(row: any) {
return row.fromtaskname
return row.fromtaskid
},
},
{

@ -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)
}

@ -5,9 +5,10 @@ import Content from './content/Content.vue'
import ListContent from './content/ListContent.vue'
const showList = ref(false);
const contentRef = ref(null);
const contentRef:any = ref(null);
const inputChange = (keyword)=>{
contentRef.value.filterTableData(keyword)
}
</script>

@ -54,6 +54,7 @@ function selectHandler(item: SearchEntity) {
//
const searchName = () => {
configStore.setSearchValue(searchKeyword.value);
emit('inputChange',searchKeyword.value);
}
const close = () => {

Loading…
Cancel
Save