diff --git a/src/views/final/content/Content.vue b/src/views/final/content/Content.vue index 77fa885..3f345f4 100644 --- a/src/views/final/content/Content.vue +++ b/src/views/final/content/Content.vue @@ -87,101 +87,6 @@ const actionsColumns = { } const columnsRef = ref>([]) -// const columns: DataTableColumns = [ -// { -// type: "selection", -// fixed: "left", -// width: 50, -// }, -// { -// title: "任务Id", -// key: "id", -// fixed: "left", -// width: 190, -// }, -// { -// title: "任务名称", -// key: "fromtaskname", -// fixed: "left", -// width: 200, -// ellipsis: { -// tooltip: true, -// }, -// }, -// { -// title: "审批节点", -// key: "taskname", -// width: 100, -// }, -// { -// title: "审批状态", -// key: "states", -// width: 100, -// sorter: "default", -// renderSorterIcon: ({ order }) => { -// if (order === false) return h(SvgIcon, { name: "sort-2" }); -// if (order === "ascend") return h(SvgIcon, { name: "sort-1" }); -// if (order === "descend") return h(SvgIcon, { name: "sort-3" }); -// }, -// render(row: any) { -// const item: any = izstatusList.value.find( -// (item: any) => item.value == row.states -// ); -// return item ? item.label : ""; -// }, -// }, -// { -// title: "图片相似度", -// key: "similarityscore", -// width: 150, -// sorter: "default", -// renderSorterIcon: ({ order }) => { -// if (order === false) return h(SvgIcon, { name: "sort-2" }); -// if (order === "ascend") return h(SvgIcon, { name: "sort-1" }); -// if (order === "descend") return h(SvgIcon, { name: "sort-3" }); -// }, -// render(row: any) { -// return row.similarityscore ? `${row.similarityscore}%` : ""; -// }, -// }, -// { -// title: "提报时间", -// key: "createdate", -// width: 200, -// sorter: "default", -// renderSorterIcon: ({ order }) => { -// if (order === false) return h(SvgIcon, { name: "sort-2" }); -// if (order === "ascend") return h(SvgIcon, { name: "sort-1" }); -// if (order === "descend") return h(SvgIcon, { name: "sort-3" }); -// }, -// render(row: any) { -// return formatToDateHMS(row.createdate || 0); -// }, -// }, -// { -// title: "更新时间", -// key: "updatetime", -// width: 200, -// render(row: any) { -// return row.updatetime ? formatToDateHMS(row.updatetime) : ""; -// }, -// }, -// { -// title: "操作", -// key: "actions", -// width: 200, -// fixed: "right", -// render(row) { -// return h(Action, { -// id: row.id, -// status: row.states, -// trigger: (action) => { -// actionHandler(action, row); -// }, -// }); -// }, -// }, -// ]; async function getColumns() { columnsRef.value = [ @@ -238,38 +143,7 @@ async function getColumns() { return v }) } - // TODO: 会导致排序问题 废弃 - // #region - // allList?.map((v) => { - // if (!userFieldFixed?.length && !userFieldUnFixed?.length) { - // if (v.isrequired == 2) { - // columnsRef.value.push({ - // title: v.fieldDesc, - // fixed: "left", - // key: v.name, - // width: 120, - // }); - // } - // } - - // if (userFieldFixed?.find((v2) => v2 == v.name)) { - // columnsRef.value.push({ - // title: v.fieldDesc, - // key: v.name, - // fixed: "left", - // width: 120, - // }); - // } - // if (userFieldUnFixed?.find((v2) => v2 == v.name)) { - // columnsRef.value.push({ - // title: v.fieldDesc, - // key: v.name, - // width: 120, - // }); - // } - // }); - // #endregion - + columnsRef.value.push(actionsColumns as any) formatColumns() } @@ -1069,19 +943,7 @@ defineExpose({
- +
+
已选{{checkedRowKeys.length}}