|
@@ -26,7 +26,9 @@
|
|
|
'priority_color6': item.priority === 6
|
|
|
}"
|
|
|
>{{ item.priorityName }}</span>
|
|
|
- <span class="Requirement">{{ item.name | ellipsis }}</span>
|
|
|
+ <el-tooltip class="item" effect="dark" :content="item.name" placement="top">
|
|
|
+ <span class="Requirement">{{ item.name }}</span>
|
|
|
+ </el-tooltip>
|
|
|
<span class="RequirementId">{{ item.requirementDisplayId }}</span>
|
|
|
<span class="RequirementName">{{ item.pm.name }}</span>
|
|
|
</el-checkbox>
|
|
@@ -76,7 +78,9 @@
|
|
|
'priority_color6': item.priority === 6
|
|
|
}"
|
|
|
>{{ item.priorityName }}</span>
|
|
|
- <span class="Requirement">{{ item.name | ellipsis }}</span>
|
|
|
+ <el-tooltip class="item" effect="dark" :content="item.name" placement="top">
|
|
|
+ <span class="Requirement">{{ item.name }}</span>
|
|
|
+ </el-tooltip>
|
|
|
<span class="RequirementId">{{ item.requirementDisplayId }}</span>
|
|
|
<span class="RequirementName">{{ item.pm.name }}</span>
|
|
|
</el-checkbox>
|
|
@@ -107,15 +111,6 @@
|
|
|
import { mapGetters } from 'vuex'
|
|
|
import { iterationRequire, iterationUpdateBelongingIteration, requirementQueryRequirementInfoList, iterationList } from '@/api/iteration.js'
|
|
|
export default {
|
|
|
- filters: {
|
|
|
- ellipsis(value) {
|
|
|
- if (!value) return ''
|
|
|
- if (value.length > 10) {
|
|
|
- return value.slice(0, 10) + '...'
|
|
|
- }
|
|
|
- return value
|
|
|
- }
|
|
|
- },
|
|
|
props: {
|
|
|
show: { type: Boolean, default: false },
|
|
|
iterationId: { type: Number, default: null },
|
|
@@ -216,6 +211,11 @@ export default {
|
|
|
torightLeft(e) { // 添加删除需求
|
|
|
if (e === 1) {
|
|
|
this.cities = this.leftArray.concat(this.cities)
|
|
|
+ const hash = {}
|
|
|
+ this.cities = this.cities.reduce((preVal, curVal) => {
|
|
|
+ hash[curVal.id] ? '' : hash[curVal.id] = true && preVal.push(curVal)
|
|
|
+ return preVal
|
|
|
+ }, [])
|
|
|
this.leftArray.map(val => {
|
|
|
this.citiesLeft = this.citiesLeft.filter(item => {
|
|
|
return item.id !== val.id
|
|
@@ -405,6 +405,9 @@ export default {
|
|
|
line-height:17px;
|
|
|
color:rgba(51,51,51,1);
|
|
|
opacity:1;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow:ellipsis;
|
|
|
+ white-space: nowrap;
|
|
|
}
|
|
|
|
|
|
.RequirementId {
|