From 495e39c8028744faa44926b0724d550e516e1fe9 Mon Sep 17 00:00:00 2001 From: clay <20932067@zju.edu.cn> Date: Sat, 1 Jun 2024 22:18:57 +0800 Subject: [PATCH] =?UTF-8?q?feat=20:=20=E8=A1=A8=E5=8D=95=E6=9D=83=E9=99=90?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/project-demand/summary/index.vue | 30 ++++++++++++++-- src/views/project-management/filing/index.vue | 30 ++++++++++++++-- .../implementation/index.vue | 30 ++++++++++++++-- .../project-management/initiation/index.vue | 34 ++++++++++++++++--- 4 files changed, 110 insertions(+), 14 deletions(-) diff --git a/src/views/project-demand/summary/index.vue b/src/views/project-demand/summary/index.vue index b42ed60..f81e0e4 100644 --- a/src/views/project-demand/summary/index.vue +++ b/src/views/project-demand/summary/index.vue @@ -96,17 +96,41 @@ const tableConfig = reactive({ { prop: 'projectType', label: '项目类型', - align: 'center' + align: 'center', + showOverflowTooltip: false, + currentRender: ({row, index}) => { + if (row.state !== null) { + return () + } else { + return '--' + } + } }, { prop: 'rdSubject', label: '研发主体', - align: 'center' + align: 'center', + showOverflowTooltip: false, + currentRender: ({row, index}) => { + if (row.state !== null) { + return () + } else { + return '--' + } + } }, { prop: 'projectImpact', label: '项目影响', - align: 'center' + align: 'center', + showOverflowTooltip: false, + currentRender: ({row, index}) => { + if (row.state !== null) { + return () + } else { + return '--' + } + } }, { prop: 'startTime', diff --git a/src/views/project-management/filing/index.vue b/src/views/project-management/filing/index.vue index 7f86b45..4630052 100644 --- a/src/views/project-management/filing/index.vue +++ b/src/views/project-management/filing/index.vue @@ -153,17 +153,41 @@ const tableConfig = reactive({ { prop: 'projectType', label: '项目类型', - align: 'center' + align: 'center', + showOverflowTooltip: false, + currentRender: ({row, index}) => { + if (row.state !== null) { + return () + } else { + return '--' + } + } }, { prop: 'rdSubject', label: '研发主体', - align: 'center' + align: 'center', + showOverflowTooltip: false, + currentRender: ({row, index}) => { + if (row.state !== null) { + return () + } else { + return '--' + } + } }, { prop: 'projectImpact', label: '项目影响', - align: 'center' + align: 'center', + showOverflowTooltip: false, + currentRender: ({row, index}) => { + if (row.state !== null) { + return () + } else { + return '--' + } + } }, { prop: 'economicEstimate', diff --git a/src/views/project-management/implementation/index.vue b/src/views/project-management/implementation/index.vue index 57d4231..ea7ceb7 100644 --- a/src/views/project-management/implementation/index.vue +++ b/src/views/project-management/implementation/index.vue @@ -158,17 +158,41 @@ const tableConfig = reactive({ { prop: 'projectType', label: '项目类型', - align: 'center' + align: 'center', + showOverflowTooltip: false, + currentRender: ({row, index}) => { + if (row.state !== null) { + return () + } else { + return '--' + } + } }, { prop: 'rdSubject', label: '研发主体', - align: 'center' + align: 'center', + showOverflowTooltip: false, + currentRender: ({row, index}) => { + if (row.state !== null) { + return () + } else { + return '--' + } + } }, { prop: 'projectImpact', label: '项目影响', - align: 'center' + align: 'center', + showOverflowTooltip: false, + currentRender: ({row, index}) => { + if (row.state !== null) { + return () + } else { + return '--' + } + } }, { prop: 'economicEstimate', diff --git a/src/views/project-management/initiation/index.vue b/src/views/project-management/initiation/index.vue index 1e69b71..3e00101 100644 --- a/src/views/project-management/initiation/index.vue +++ b/src/views/project-management/initiation/index.vue @@ -152,17 +152,41 @@ const tableConfig = reactive({ { prop: 'projectType', label: '项目类型', - align: 'center' + align: 'center', + showOverflowTooltip: false, + currentRender: ({row, index}) => { + if (row.state !== null) { + return () + } else { + return '--' + } + } }, { prop: 'rdSubject', label: '研发主体', - align: 'center' + align: 'center', + showOverflowTooltip: false, + currentRender: ({row, index}) => { + if (row.state !== null) { + return () + } else { + return '--' + } + } }, { prop: 'projectImpact', label: '项目影响', - align: 'center' + align: 'center', + showOverflowTooltip: false, + currentRender: ({row, index}) => { + if (row.state !== null) { + return () + } else { + return '--' + } + } }, { prop: 'economicEstimate', @@ -187,7 +211,7 @@ const tableConfig = reactive({ label: '状态', align: 'center', showOverflowTooltip: false, - currentRender: ({row, index}) =>{ + currentRender: ({row, index}) => { if (row.state !== null) { return () } else { @@ -207,7 +231,7 @@ const tableConfig = reactive({ btn.push({label: '详情', prem: ['mosr:requirement:info'], func: () => handleDetail(row), type: 'primary'}) } if (buttons.has("edit")) { - btn.push({label: '编辑',prem: ['mosr:requirement:resubmit'], func: () => handleEdit(row), type: 'primary'}) + btn.push({label: '编辑', prem: ['mosr:requirement:resubmit'], func: () => handleEdit(row), type: 'primary'}) } // if (buttons.has("delete")) { // btn.push({label: '删除',prem: ['mosr:requirement:del'], func: () => handleDelete(row), type: 'primary'})