From 41a066f7b63469f509f31778bf18805bcbf6f299 Mon Sep 17 00:00:00 2001 From: "zyx.net" Date: Thu, 22 Dec 2022 10:18:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E6=B8=85=E5=8D=95;=E6=B3=95?= =?UTF-8?q?=E8=A7=84=E6=B8=85=E5=8D=95;=E8=AE=A4=E8=AF=81=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E5=88=97=E8=A1=A8=20=E8=A1=A8=E6=A0=BC=E6=8E=92?= =?UTF-8?q?=E5=BA=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../projectManagement/components/TaskList.vue | 18 ++++++++++++- .../components/TaskParameterCollection.vue | 25 ++++++++++++++++--- 2 files changed, 39 insertions(+), 4 deletions(-) diff --git a/jero-web/src/views/projectManagement/components/TaskList.vue b/jero-web/src/views/projectManagement/components/TaskList.vue index 20406cdaf..bcb95b0a8 100644 --- a/jero-web/src/views/projectManagement/components/TaskList.vue +++ b/jero-web/src/views/projectManagement/components/TaskList.vue @@ -547,7 +547,23 @@ }, tableOnChange(pagination, filters, sorter) { this.orderBy = sorter.order == 'ascend' ? '1' : '2' - this.orderByField = sorter.columnKey + if(sorter.columnKey == 'standard'){ + this.orderByField = 'serialNumber' + } else if(sorter.columnKey == 'areaOfResponsibility') { + this.orderByField = 'dutyTerritory' + } else if(sorter.columnKey == 'confirmationOfDesignConformity') { + this.orderByField = 'designFlowTaskStatus' + } else if(sorter.columnKey == 'PrehomoConfirmation') { + this.orderByField = 'prehomoFlowTaskStatus' + } else if(sorter.columnKey == 'verificationAndConformityconfirmation') { + this.orderByField = 'verifyFlowTaskStatus' + } else if(sorter.columnKey == 'CertificationProgress') { + this.orderByField = 'certificationProgressName' + } else if(sorter.columnKey == 'CurrentProjectStatusEvaluation') { + this.orderByField = 'projectStatusAssess' + } else{ + this.orderByField = sorter.columnKey + } this.getList() }, getList() { diff --git a/jero-web/src/views/projectManagement/components/TaskParameterCollection.vue b/jero-web/src/views/projectManagement/components/TaskParameterCollection.vue index cc4d87d93..6a6c566d8 100644 --- a/jero-web/src/views/projectManagement/components/TaskParameterCollection.vue +++ b/jero-web/src/views/projectManagement/components/TaskParameterCollection.vue @@ -163,6 +163,7 @@ align: 'center', width: 80, ellipsis: true, + sorter:true, dataIndex: 'state' }, { @@ -177,6 +178,7 @@ align: 'center', width: 120, ellipsis: true, + sorter:true, dataIndex: 'projectVersion' }, { @@ -185,6 +187,7 @@ dataIndex: 'finishTime', width: 180, ellipsis: true, + sorter:true, scopedSlots: { customRender: 'collectionCompletionTime' } }, { @@ -192,6 +195,7 @@ align: 'center', width: 80, ellipsis: true, + sorter:true, dataIndex: 'version' }, { @@ -206,6 +210,7 @@ align: 'center', width: 160, ellipsis: true, + sorter:true, dataIndex: 'createTime' }, { @@ -219,6 +224,8 @@ token: Vue.ls.get(ACCESS_TOKEN), selectedRowKeys: [], queryParam: {}, + orderBy: '1', + orderByField: '', url: { list: 'params/manifest/page', add: 'params/manifest/add', @@ -312,9 +319,6 @@ } else { this.$message.warning(this.$t('thisbuttonCompleted')) } - }, - handleTableChange() { - }, // 历史版本 historicalVersion(historicalRow) { @@ -431,11 +435,26 @@ this.pageSize = pageSize this.getlist() }, + handleTableChange(pagination, filters, sorter) { + this.orderBy = sorter.order == 'ascend' ? '1' : '2' + if(sorter.columnKey == 'projectVersion'){ + this.orderByField = 'project_version' + } else if(sorter.columnKey == 'finishTime') { + this.orderByField = 'finish_time' + } else if(sorter.columnKey == 'createTime') { + this.orderByField = 'create_time' + } else{ + this.orderByField = sorter.columnKey + } + this.getlist() + }, getlist() { let query = { projectId: this.$route.query.parentId ? this.$route.query.parentId : this.$route.query.id, pageSize: this.pageSize, pageNo: this.pageNo, + orderBy: this.orderBy, + orderByField: this.orderByField, ...this.queryParam } this.loading = true