Browse Source

修改项目进展样式

master
lihenian 6 years ago
parent
commit
33ae85e98c
  1. 8
      src/views/modules/events/item-close-detail-view.vue

8
src/views/modules/events/item-close-detail-view.vue

@ -74,9 +74,9 @@
</div> -->
<div :id="`content${index}`" style="line-height:25px; ">
<div
:style="{ marginBottom: '10px', width: '35px', height: '20px', fontSize: '12px', borderRadius: '4px', background: item.type === 'project' ? '#009688': item.type === 'issue' ? '#ffa546' : '', color: '#fff', textAlign: 'center', lineHeight: '20px'}"
:style="{ marginBottom: '10px', width: '35px', height: '20px', fontSize: '12px', borderRadius: '4px', background: item.type === 'project' ? '#009688': item.type === 'issue' || item.type === 'issue-project' ? '#ffa546' : '', color: '#fff', textAlign: 'center', lineHeight: '20px'}"
v-if="item.type !== 'init'">
{{item.type === 'project' ? '项目': item.type === 'issue' ? '议题' : ''}}
{{item.type === 'project' ? '项目': item.type === 'issue' || item.type === 'issue-project' ? '议题' : ''}}
</div>
<div><span style="font-weight: bold; color: rgb(96, 98, 102);">[{{item | formatState}}]</span> {{item.createdTime}}</div>
<div><span style="font-weight: bold; color: rgb(96, 98, 102);">处理部门</span>{{item.handlerDept}}</div>
@ -164,7 +164,7 @@ export default {
filters: {
formatState (item) {
console.log(item)
if (item.type === 'project') {
if (item.type === 'project' || item.type === 'issue-project') {
if (item.state === '0' && item.itemDeptDTOS.length > 0) {
return '吹哨'
} else if (item.state === '0' && item.itemDeptDTOS.length === 0) {
@ -236,7 +236,7 @@ export default {
}
this.dataForm.handleProgressResultDTOS.forEach((item, index, arr) => {
if (index === arr.length - 1) {
item.type = 'issue'
item.type = 'issue-project'
} else {
item.type = 'project'
}

Loading…
Cancel
Save