From 2b9bb5068376f1a40ab66e9a763bf067d80c072f Mon Sep 17 00:00:00 2001 From: wyx Date: Fri, 24 Feb 2023 14:17:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=A2=9E=E5=8A=A0=E5=AD=A6=E4=B9=A0?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E5=9B=BE=E6=B7=BB=E5=8A=A0=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E9=A1=B9=E7=9B=AE=E5=88=97=E8=A1=A8-?= =?UTF-8?q?=E6=89=80=E5=B1=9E=E9=A1=B9=E7=9B=AE=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/AddProject.vue | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/components/drawers/AddProject.vue b/src/components/drawers/AddProject.vue index 314bd001..93b5d457 100644 --- a/src/components/drawers/AddProject.vue +++ b/src/components/drawers/AddProject.vue @@ -194,9 +194,26 @@ const columns = ref([ title: "项目名称", dataIndex: "name", key: "projectName", - width: "40%", + width: "20%", ellipsis: true, }, + { + title: "所属项目", + dataIndex: "topName", + key: "topName", + width: "20%", + ellipsis: true, + customRender: ({ record: { gaName, faName, name } }) => ( +
+ { + faName ? gaName !== null + ? (gaName + "/" + faName).length > 16 ? (gaName + "/" + faName).slice(0, 16) + '...' : (gaName + "/" + faName) + : faName.length > 16 ? faName.slice(0, 16) + '...' : faName + : name.length > 16 ? name.slice(0, 16) + '...' : name + } +
+ ), + }, { title: "项目经理", dataIndex: "manager", @@ -240,7 +257,7 @@ const { data, loading, total, fetch } = useRowsPage( total: (res) => res.result.count, } ); - +console.log(data) watch(taskIndex, () => { // if (taskIndex.value >= 0) { // rowSelectKeys.value = [props.taskList[taskIndex.value].courseId]