wangziqian 4 жил өмнө
parent
commit
37d8e13d21

+ 19 - 2
src/views/quality/components/changeRequireChart.vue

@@ -6,10 +6,12 @@
         border
         max-height="400px"
         :header-cell-style="{background: 'rgba(232,232,232,0.6)',color:'#333333'}"
+        :row-style="{ cursor: 'pointer'}"
         style="width: 100%"
+        @cell-click="link_to"
       >
         <el-table-column
-          prop="id"
+          prop="idString"
           :label="typeName+'id'"
           width="180"
           align="center"
@@ -19,7 +21,11 @@
           :label="typeName + '名称'"
           align="center"
           min-width="200"
-        />
+        >
+          <template slot-scope="scope">
+            <div class="reason">{{ scope.row.name }}</div>
+          </template>
+        </el-table-column>
         <el-table-column
           prop="count"
           label="排期解锁次数"
@@ -61,6 +67,17 @@ export default {
       immediate: true,
       deep: true
     }
+  },
+  methods: {
+    link_to(row) {
+      if (this.typeName === '需求') {
+        const newTab = this.$router.resolve({ name: '需求详情', query: { id: row.id }})
+        window.open(newTab.href, '_blank')
+      } else if (this.typeName === '任务') {
+        const newTab = this.$router.resolve({ name: '任务详情', query: { id: row.id }})
+        window.open(newTab.href, '_blank')
+      }
+    }
   }
 }
 </script>

+ 1 - 1
src/views/workbench/components/statisticsSection.vue

@@ -173,7 +173,7 @@ export default {
     setChart(chartData) { // 设置图表options
       const childArr = chartData.xaxis.map((item, index) => {
         return {
-          value: chartData.yaxis[0] && chartData.yaxis[0].data[index] || null,
+          value: chartData.yaxis[0] && chartData.yaxis[0].data[index] || 0,
           idList: chartData.yaxis[0] && chartData.yaxis[0].idList[index] || []
         }
       })

+ 2 - 2
src/views/workbench/person/index.vue

@@ -274,10 +274,10 @@ export default {
       visibleSchedule: false, // 排期任务弹框
       detailXY: [0, 0], // 详情弹框位置
       colorList: [
-        'rgba(64,127,232,1)', 'rgba(11,160,188,1)', 'rgba(28,188,126,1)', 'rgba(235,172,0 ,1)', 'rgba(132,100,247 ,1)',
+        'rgba(64,127,232,1)', 'rgba(11,160,188,1)', 'rgba(28,188,126,1)', 'rgba(235,172,0,1)', 'rgba(132,100,247,1)',
         'rgba(73,92,197,1)', 'rgba(193,67,96,1)', 'rgba(211,87,35,1)', 'rgba(40,28,149,1)', 'rgba(85,138,43,1)',
         'rgba(67,17,59,1)', 'rgba(221,57,222,1)', 'rgba(149,114,109,1)', 'rgba(202,50,31,1)', 'rgba(226,119,141,1)',
-        'rgba(91,160,239,1)', 'rgba(59,64,72,1)', 'rgba(115,159,158,1)', 'rgba(122,209,67,1)', 'rgba(152,40,49,1)'
+        'rgba(240,164,126,1)', 'rgba(59,64,72,1)', 'rgba(115,159,158,1)', 'rgba(122,209,67,1)', 'rgba(152,40,49,1)'
       ],
       tabTips: { // 顶部tab红点提示
         require: true,

+ 2 - 2
src/views/workbench/team/index.vue

@@ -268,10 +268,10 @@ export default {
       isDelete: false, // 删除排期操作
       visibleSchedule: false, // 排期任务弹框
       colorList: [
-        'rgba(64,127,232,1)', 'rgba(11,160,188,1)', 'rgba(28,188,126,1)', 'rgba(235,172,0 ,1)', 'rgba(132,100,247 ,1)',
+        'rgba(64,127,232,1)', 'rgba(11,160,188,1)', 'rgba(28,188,126,1)', 'rgba(235,172,0,1)', 'rgba(132,100,247,1)',
         'rgba(73,92,197,1)', 'rgba(193,67,96,1)', 'rgba(211,87,35,1)', 'rgba(40,28,149,1)', 'rgba(85,138,43,1)',
         'rgba(67,17,59,1)', 'rgba(221,57,222,1)', 'rgba(149,114,109,1)', 'rgba(202,50,31,1)', 'rgba(226,119,141,1)',
-        'rgba(91,160,239,1)', 'rgba(59,64,72,1)', 'rgba(115,159,158,1)', 'rgba(122,209,67,1)', 'rgba(152,40,49,1)'
+        'rgba(240,164,126,1)', 'rgba(59,64,72,1)', 'rgba(115,159,158,1)', 'rgba(122,209,67,1)', 'rgba(152,40,49,1)'
       ],
       mapMemberColor: new Map(), // 人员对应颜色表
       tabTips: { // 顶部tab红点提示