Browse Source

修改迭代下需求状态颜色

qinzhipeng_v 5 years ago
parent
commit
5dfd425bf6

+ 15 - 14
src/styles/PublicStyle/index.scss

@@ -46,6 +46,7 @@
   color: #6AB4FF;
 }
 
+
 .status_color { // 迭代状态样式修改(颜色)
   /deep/ input {
     color: #6AB4FF !important;
@@ -62,20 +63,20 @@
   }
 }
 
-  .status_color1 { // 迭代状态样式修改(颜色)
-    /deep/ input {
-      color: #FF8952;
-       border: 1px solid #FF8952;
-       border-color: #FF8952 !important;
-           font-weight: 900;
-    }
-     /deep/ .el-input__suffix {
-      color: #FF8952 !important;
-      right: 1px;
-    }
-    /deep/ .el-select__caret {
-      color: #FF8952 !important;
-    }
+.status_color1 { // 迭代状态样式修改(颜色)
+      /deep/ input {
+        color: #FF8952 !important;
+        border: 1px solid #FF8952 !important;
+        border-color: #FF8952 !important;
+        font-weight: 900 !important;
+      }
+      /deep/ .el-input__suffix {
+        color: #FF8952 !important;
+        right: 1px !important;
+      }
+      /deep/ .el-select__caret {
+        color: #FF8952 !important;
+      }
   }
 
   .status_color2 { // 迭代状态样式修改(颜色)

+ 3 - 7
src/views/projectManage/iteration/components/requiredTable.vue

@@ -113,10 +113,8 @@
             v-model="scope.row.status"
             :class="{
               'status_color': scope.row.status === 0,
-              'status_color1': scope.row.status === 1,
-              'status_color3': scope.row.status === 3,
-              'status_color4': scope.row.status === 5,
-              'status_color2': scope.row.status === 9
+              'status_color1': scope.row.status === 10 || scope.row.status === 20 || scope.row.status === 30 || scope.row.status === 40,
+              'status_color2': scope.row.status === 50
             }"
             class="public_botton"
             size="mini"
@@ -215,7 +213,7 @@ export default {
       const listRes = await list
       const listRequire = await requiredList
       const requiredstatus = await requirementEnum
-      this.iterationData = listRes.data.list[0] //
+      this.iterationData = listRes.data.list[0]
       this.RequirementSet = listRequire.data.right.list
       this.requiredArray = requiredstatus.data.requirementStatus
       this.checkAll = this.RequirementSet
@@ -322,7 +320,6 @@ export default {
           _this.RequirementSet.map(item => {
             obj.id.push(item.id)
           })
-          console.log(_this.iterationId, 'cdcscdsc')
           iterationOrder(obj.id, _this.iterationId).then(res => {
             if (res.code === 200) {
               _this.$message.success(res.msg)
@@ -421,5 +418,4 @@ export default {
     font-size: 10px;
   }
 }
-
 </style>