|
@@ -4,7 +4,37 @@
|
|
|
<div class="repair-list">
|
|
|
<div v-for="(item, index) in chartData" :key="'time'+index" class="repair-item" :class="[Number(item.relativeRatio)<0?'repair-slow':'repair-rise']">
|
|
|
<div class="repair-item-point" :class="['point'+index]" />
|
|
|
- <span>{{ item.label }}</span>
|
|
|
+ <span>
|
|
|
+ {{ item.label }}
|
|
|
+ <template v-if="type === 'require'">
|
|
|
+ <el-tooltip v-if="index === 0" class="item" effect="dark" content="研发交付周期定义:需求排期里开发、联调、上线类型排期的总周期" placement="top-start">
|
|
|
+ <i class="el-icon-info" />
|
|
|
+ </el-tooltip>
|
|
|
+ <el-tooltip v-if="index === 1" class="item" effect="dark" content="研发周期定义:需求排期里开发、联调类型排期的总周期" placement="top-start">
|
|
|
+ <i class="el-icon-info" />
|
|
|
+ </el-tooltip>
|
|
|
+ <el-tooltip v-if="index === 2" class="item" effect="dark" content="测试周期定义:需求排期里测试类型排期的总周期" placement="top-start">
|
|
|
+ <i class="el-icon-info" />
|
|
|
+ </el-tooltip>
|
|
|
+ <el-tooltip v-if="index === 3" class="item" effect="dark" content="提测等待测试时长定义:需求排期里提测排期结束日期距离测试排期开始日期的天数" placement="top-start">
|
|
|
+ <i class="el-icon-info" />
|
|
|
+ </el-tooltip>
|
|
|
+ </template>
|
|
|
+ <template v-if="type === 'task'">
|
|
|
+ <el-tooltip v-if="index === 0" class="item" effect="dark" content="研发交付周期定义:任务排期里开发、联调、上线类型排期的总周期" placement="top-start">
|
|
|
+ <i class="el-icon-info" />
|
|
|
+ </el-tooltip>
|
|
|
+ <el-tooltip v-if="index === 1" class="item" effect="dark" content="研发周期定义:任务排期里开发、联调类型排期的总周期" placement="top-start">
|
|
|
+ <i class="el-icon-info" />
|
|
|
+ </el-tooltip>
|
|
|
+ <el-tooltip v-if="index === 2" class="item" effect="dark" content="测试周期定义:任务排期里测试类型排期的总周期" placement="top-start">
|
|
|
+ <i class="el-icon-info" />
|
|
|
+ </el-tooltip>
|
|
|
+ <el-tooltip v-if="index === 3" class="item" effect="dark" content="提测等待测试时长定义:任务排期里提测排期结束日期距离测试排期开始日期的天数" placement="top-start">
|
|
|
+ <i class="el-icon-info" />
|
|
|
+ </el-tooltip>
|
|
|
+ </template>
|
|
|
+ </span>
|
|
|
<div v-if="item.countStr" class="repair-time">{{ item.countStr }}天</div>
|
|
|
<div v-if="item.total || item.total === 0" class="repair-time">{{ item.total }}个</div>
|
|
|
<div v-show="Number(item[childData])>=0" class="repair-up">环比:<i class="el-icon-caret-top" /><span>{{ item[childData] }}%</span></div>
|
|
@@ -27,6 +57,11 @@ export default {
|
|
|
type: String,
|
|
|
default: 'chainRatio',
|
|
|
required: false
|
|
|
+ },
|
|
|
+ type: {
|
|
|
+ type: String,
|
|
|
+ default: 'require',
|
|
|
+ required: false
|
|
|
}
|
|
|
},
|
|
|
watch: {
|