|
|
@ -87,101 +87,6 @@ const actionsColumns = {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const columnsRef = ref<DataTableColumns<RowData>>([])
|
|
|
|
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() {
|
|
|
|
async function getColumns() {
|
|
|
|
columnsRef.value = [
|
|
|
|
columnsRef.value = [
|
|
|
@ -238,38 +143,7 @@ async function getColumns() {
|
|
|
|
return v
|
|
|
|
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)
|
|
|
|
columnsRef.value.push(actionsColumns as any)
|
|
|
|
formatColumns()
|
|
|
|
formatColumns()
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1069,19 +943,7 @@ defineExpose({
|
|
|
|
<div class="header_data">
|
|
|
|
<div class="header_data">
|
|
|
|
<DataHeader :has-color="true" />
|
|
|
|
<DataHeader :has-color="true" />
|
|
|
|
</div>
|
|
|
|
</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">
|
|
|
|
<div class="wrapper-settings">
|
|
|
|
<SvgIcon
|
|
|
|
<SvgIcon
|
|
|
|
style="cursor: pointer"
|
|
|
|
style="cursor: pointer"
|
|
|
@ -1090,6 +952,7 @@ defineExpose({
|
|
|
|
@click="showModal(customTabelRef)"
|
|
|
|
@click="showModal(customTabelRef)"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="sltedtext">已选<span style="width:20px;margin-left:10px;margin-right:10px;color:#507AFD">{{checkedRowKeys.length}}</span>项</div>
|
|
|
|
<div class="wrapper-content">
|
|
|
|
<div class="wrapper-content">
|
|
|
|
<NDataTable
|
|
|
|
<NDataTable
|
|
|
|
id="table"
|
|
|
|
id="table"
|
|
|
@ -1170,7 +1033,11 @@ defineExpose({
|
|
|
|
width: 100%;
|
|
|
|
width: 100%;
|
|
|
|
background: #fff;
|
|
|
|
background: #fff;
|
|
|
|
padding: 0px 24px 24px 24px;
|
|
|
|
padding: 0px 24px 24px 24px;
|
|
|
|
|
|
|
|
.sltedtext{
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
top:250px;
|
|
|
|
|
|
|
|
color:#202020
|
|
|
|
|
|
|
|
}
|
|
|
|
&-header {
|
|
|
|
&-header {
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
justify-content: space-between;
|
|
|
|