|
@@ -24,8 +24,8 @@
|
|
|
</div>
|
|
|
<div class="test_panel" v-for="(item, index) in worksArray" :key="index">
|
|
|
<div class="test_panel_title">
|
|
|
- <div class="title">
|
|
|
- <span class="open" :class="{active: item.open}" @click="openWork(index)" v-if="item.array.length > 0 || item.carray.length > 0"></span>
|
|
|
+ <div class="title" :style="{paddingLeft: (item.array.length > 0 || item.carray.length > 0) ? '0' : '30px'}" @click="openWork(index)">
|
|
|
+ <span class="open" :class="{active: item.open}" v-if="item.array.length > 0 || item.carray.length > 0"></span>
|
|
|
<el-tooltip :content="item.username" placement="top" effect="dark">
|
|
|
<span class="titleN">{{ item.title }}</span>
|
|
|
</el-tooltip>
|
|
@@ -37,7 +37,7 @@
|
|
|
<span v-if="item.overtime" :class="{isDead: isDeadlinePassed(item.overtime)}">截止时间:{{ item.overtime }}</span>
|
|
|
<span v-else>-</span>
|
|
|
</div>
|
|
|
- <div class="creator" :style="{paddingRight:(!item.carray.length > 0) ? '0' : '81px'}">
|
|
|
+ <div class="creator" :style="{paddingRight:(!item.carray.length > 0) ? '0' : '78px'}">
|
|
|
<el-tooltip :content="item.username" placement="top" effect="dark">
|
|
|
<span>创建者:{{ item.username }}</span>
|
|
|
</el-tooltip>
|
|
@@ -374,6 +374,9 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
openWork(index){
|
|
|
+ if(this.worksArray[index].array.length === 0 && this.worksArray[index].carray.length === 0){
|
|
|
+ return
|
|
|
+ }
|
|
|
this.worksArray[index].open = !this.worksArray[index].open
|
|
|
this.$forceUpdate()
|
|
|
},
|
|
@@ -753,6 +756,7 @@ export default {
|
|
|
align-items: center;
|
|
|
width: 300px;
|
|
|
margin-left: 20px;
|
|
|
+ cursor: pointer;
|
|
|
}
|
|
|
|
|
|
.test_panel_title>.title>.open{
|