Commit ca7c6420 by 前端

Merge branch 'xuyl_dev_v2.12.0' into 'v2.12.0'

注册任务类型做处理 以及更改样式

See merge request !27
2 parents 4a18af6c f2a7ce5c
<template>
<div>
<div class='taskDetails' v-for='(item,index) in taskDetails' :key='index'>
<div>
<div class='leftContent'>
<p>{{ item.missonTypeName }}</p>
<p>{{ item.missionName }}</p>
<p>{{ item.missonDesc }}</p>
......@@ -17,7 +17,7 @@
<video class='displayImg' :src='sub.materialContent' />
</template>
<template v-if="sub.materialType == '4'">
<p>{{sub.materialContent}}</p>
<p class='content'>{{sub.materialContent}}</p>
</template>
</div>
</template>
......@@ -33,7 +33,7 @@
</div>
</div>
</div>
<div class='copyLine' id='copy' v-on:click='copy(item.id)'>
<div v-if="item.missonType != '1'" class='copyLine' id='copy' v-on:click='copy(item.id)'>
复制任务提醒链接
</div>
</div>
......@@ -83,7 +83,14 @@ export default {
padding: 20px;
margin-bottom: 20px;
}
.leftContent{
width: 70%;
}
.content{
height: auto;
word-wrap: break-word;
word-break: break-all;
}
.taskAward {
display: flex;
justify-content: space-between;
......@@ -108,4 +115,8 @@ export default {
width: 500px;
height: 300px;
}
.displayContent{
display: inline-block;
width: 800px;
}
</style>
......@@ -51,11 +51,10 @@ export default {
taskInfo:{
handler(newVal,oldVal){
if (!oldVal || newVal !== oldVal) {
this.taskInfoList.map((item,index) => {
this.taskInfoList.map(item => {
Object.keys(newVal).forEach(key => {
if (item.id == key) {
item.value = newVal[key]
this.$set(this.taskInfoList,index,item)
}
})
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!