From 81f89c635f2a69f77e3d00eb886a85609ace0d80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Wed, 2 Mar 2022 01:45:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=A4=BA=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/styles/mdp.scss | 11 +++-------- .../XmIterationForProjectComplex.vue | 18 ++++++++++++++---- .../xmProduct/XmProductForProjectComplex.vue | 17 +++++++++++++---- .../xm/core/xmProduct/XmProductSelect.vue | 4 ++-- .../xm/core/xmProject/XmProjectComplex.vue | 16 +++++++++++----- 5 files changed, 43 insertions(+), 23 deletions(-) diff --git a/src/styles/mdp.scss b/src/styles/mdp.scss index 580623f5..5f7707e0 100644 --- a/src/styles/mdp.scss +++ b/src/styles/mdp.scss @@ -194,16 +194,11 @@ max-width: 100%; object-fit: scale-down; } - -.el-table .warning-row { - background: oldlace; -} - -.el-table .success-row { - background: #f0f9eb; + +.el-table .current-row > td { + background: #a9d6f0 !important; } - /*此处根据不同屏幕分配率显示不同的样式*/ /*手机端*/ @media only screen and (min-width: 0px) and (max-width: 768px) { diff --git a/src/views/xm/core/xmIteration/XmIterationForProjectComplex.vue b/src/views/xm/core/xmIteration/XmIterationForProjectComplex.vue index 9a946c97..b74e1992 100644 --- a/src/views/xm/core/xmIteration/XmIterationForProjectComplex.vue +++ b/src/views/xm/core/xmIteration/XmIterationForProjectComplex.vue @@ -4,12 +4,12 @@ - + - 隐藏左边 - 展开左边 + 隐藏左边迭代列表 + 展开左边迭代列表 @@ -138,9 +138,14 @@ }, onIterationClearSelect(){ - this.iteration=null; + this.xmIteration=null; }, tabClick(tab){ + if(this.xmIteration==null || !this.xmIteration.id){ + this.iterationVisible=true; + this.$notify({showClose: true, message:"请先选中左边迭代", type: 'warning', position: 'top-left' }); + } + return false; this.showPanel=tab.name }, doDelXmIterationProductLink(){ @@ -167,6 +172,11 @@ XmProjectForLink, }, mounted() { + + if(this.xmIteration==null || !this.xmIteration.id){ + this.iterationVisible=true; + this.$notify({showClose: true, message:"请先选中左边迭代", type: 'warning', position: 'top-left' }); + } this.$nextTick(() => { }); diff --git a/src/views/xm/core/xmProduct/XmProductForProjectComplex.vue b/src/views/xm/core/xmProduct/XmProductForProjectComplex.vue index 11508005..f46c08c4 100644 --- a/src/views/xm/core/xmProduct/XmProductForProjectComplex.vue +++ b/src/views/xm/core/xmProduct/XmProductForProjectComplex.vue @@ -4,11 +4,11 @@ - + - 隐藏左边 - 展开左边 + 隐藏左边产品列表 + 展开左边产品列表 @@ -140,9 +140,13 @@ import XmProductOverview from "./XmProductOverview"; }, onProductClearSelect(){ - this.iteration=null; + this.xmProduct=null; }, tabClick(tab){ + if(this.xmProduct==null || !this.xmProduct.id){ + this.productVisible=true; + this.$notify({showClose: true, message:"请先选中左边产品", type: 'warning', position: 'top-left'}); + } this.showPanel=tab.name } },//end methods @@ -161,6 +165,11 @@ XmProductProjectForLink, XmProductOverview, }, mounted() { + + if(this.xmProduct==null || !this.xmProduct.id){ + this.productVisible=true; + this.$notify({showClose: true, message:"请先选中左边产品", type: 'warning', position: 'top-left'}); + } this.$nextTick(() => { }); diff --git a/src/views/xm/core/xmProduct/XmProductSelect.vue b/src/views/xm/core/xmProduct/XmProductSelect.vue index b3ecc94c..dc1a60d5 100644 --- a/src/views/xm/core/xmProduct/XmProductSelect.vue +++ b/src/views/xm/core/xmProduct/XmProductSelect.vue @@ -319,10 +319,10 @@ } } - - +