feat:终审列表加个N值

pull/277/head
lihui_ocr 1 year ago
parent 6e930822a0
commit 8c60ebacf3

@ -87,101 +87,6 @@ const actionsColumns = {
}
const columnsRef = ref<DataTableColumns<RowData>>([])
// const columns: DataTableColumns<RowData> = [
// {
// 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({
<div class="header_data">
<DataHeader :has-color="true" />
</div>
<!-- <div class="wrapper-statistic">
<div v-for="i in 7" :key="i" class="item">
<div class="icon" />
<div class="content">
<span class="num">6399</span>
<span class="label">任务总数</span>
</div>
<div v-if="i === 7" style="display: flex;align-items: center;">
<div class="divider" />
<SvgIcon size="18" name="setting" />
</div>
</div>
</div> -->
<div class="wrapper-settings">
<SvgIcon
style="cursor: pointer"
@ -1090,6 +952,7 @@ defineExpose({
@click="showModal(customTabelRef)"
/>
</div>
<div class="sltedtext">已选<span style="width:20px;margin-left:10px;margin-right:10px;color:#507AFD">{{checkedRowKeys.length}}</span></div>
<div class="wrapper-content">
<NDataTable
id="table"
@ -1170,7 +1033,11 @@ defineExpose({
width: 100%;
background: #fff;
padding: 0px 24px 24px 24px;
.sltedtext{
position: absolute;
top:250px;
color:#202020
}
&-header {
display: flex;
justify-content: space-between;

Loading…
Cancel
Save