Commit 806c6208 authored by zhang's avatar zhang

style: 填写车型实验表时未通过条目状态样式更新

parent a8355697
...@@ -41,7 +41,6 @@ ...@@ -41,7 +41,6 @@
v-for="(childItem, childIndex) in item.userPhotoStorageList" v-for="(childItem, childIndex) in item.userPhotoStorageList"
:key="childIndex" :key="childIndex"
class="image" class="image"
> >
<div class="img-card" @click="selectImage(index, childIndex, childItem.name,childItem.path, childItem.id)" :class="childItem.selected ? 'selected' : ''"> <div class="img-card" @click="selectImage(index, childIndex, childItem.name,childItem.path, childItem.id)" :class="childItem.selected ? 'selected' : ''">
<el-image <el-image
......
...@@ -97,16 +97,23 @@ ...@@ -97,16 +97,23 @@
:class="{ :class="{
'select-circle': index === activeModel, 'select-circle': index === activeModel,
'exclamation-point': item.warn 'exclamation-point': item.warn
}" }"
@click="changeStep(index)" @click="changeStep(index)"
> >
<svg-icon <svg-icon
v-show="item.result && item.result.passed !== null" v-show="item.result && item.result.passed !== 0"
width="20px" width="20px"
height="20px" height="20px"
class="tick-class" class="tick-class"
icon-class="tag_xuanzhong" icon-class="tag_xuanzhong"
></svg-icon> ></svg-icon>
<svg-icon
v-show="item.result && item.result.passed == 0"
width="19px"
height="19px"
class="tick-class"
icon-class="tag_weixuanzhong"
></svg-icon>
<span class="inner-text">{{ item.order }}</span> <span class="inner-text">{{ item.order }}</span>
</div> </div>
...@@ -692,7 +699,8 @@ export default { ...@@ -692,7 +699,8 @@ export default {
!this.allPropertiesCheck(this.form.fileList, 'isFileUpdate') !this.allPropertiesCheck(this.form.fileList, 'isFileUpdate')
) { ) {
this.handleCircle(index) this.handleCircle(index)
} else { }
else {
this.$message.error('您有未保存内容,请点击保存按钮') this.$message.error('您有未保存内容,请点击保存按钮')
} }
}, },
...@@ -895,6 +903,6 @@ export default { ...@@ -895,6 +903,6 @@ export default {
listEl.style.left = '-' + (leftMove + 180) + 'px' listEl.style.left = '-' + (leftMove + 180) + 'px'
} }
} }
} },
} }
</script> </script>
...@@ -123,7 +123,6 @@ ...@@ -123,7 +123,6 @@
</div> </div>
</div> </div>
</div> </div>
<!--审查表单概要--> <!--审查表单概要-->
<div> <div>
<div class="form-review-questionnaire"> <div class="form-review-questionnaire">
...@@ -184,7 +183,7 @@ ...@@ -184,7 +183,7 @@
<th class="written-by">填写人</th> <th class="written-by">填写人</th>
</tr> </tr>
<template v-for="(keyPoint, keyPointKey) in item.keyPointList"> <template v-for="(keyPoint, keyPointKey) in item.keyPointList">
<tr :key="keyPointKey"> <tr>
<td :rowspan="keyPoint.reviewDetailsList.length + 1"> <td :rowspan="keyPoint.reviewDetailsList.length + 1">
{{ keyPoint.text }} {{ keyPoint.text }}
</td> </td>
...@@ -194,8 +193,10 @@ ...@@ -194,8 +193,10 @@
reviewDetail, reviewDetailKey reviewDetail, reviewDetailKey
) in keyPoint.reviewDetailsList" ) in keyPoint.reviewDetailsList"
> >
<tr :key="reviewDetailKey"> <tr>
<td align="center">{{ reviewDetail.text }}</td> <td align="center">
<span style="white-space: pre-wrap;">{{ reviewDetail.text | ellipsis }}</span>
</td>
<td align="center" class="investigate-result"> <td align="center" class="investigate-result">
<div v-if="reviewDetail.result"> <div v-if="reviewDetail.result">
<div v-if="reviewDetail.result"> <div v-if="reviewDetail.result">
...@@ -383,6 +384,16 @@ export default { ...@@ -383,6 +384,16 @@ export default {
await this.getTask() await this.getTask()
this.openAll() this.openAll()
}, },
filters: {
// 过滤器:当字符串超过64位时,之后的字符用...代替
ellipsis(value) {
if (!value) return ''
if (value.length > 12) {
return value.slice(0, 12) + '\n' + value.slice(12)
}
return value
}
},
methods: { methods: {
/** /**
* 获取子任务详情 * 获取子任务详情
...@@ -398,12 +409,8 @@ export default { ...@@ -398,12 +409,8 @@ export default {
this.model = res.data this.model = res.data
if (this.model.systemReviewTask.imagesUrl) { if (this.model.systemReviewTask.imagesUrl) {
const imgs = this.model.systemReviewTask.imagesUrl.split(',') const imgs = this.model.systemReviewTask.imagesUrl.split(',')
this.ruleForm.enterpriseLeader = imgs[0] this.ruleForm.enterpriseLeader = process.env.VUE_APP_IMAGE_API + imgs[0] || ''
? process.env.VUE_APP_IMAGE_API + imgs[0] this.ruleForm.inspectionLeader = process.env.VUE_APP_IMAGE_API + imgs[1] || ''
: ''
this.ruleForm.inspectionLeader = imgs[1]
? process.env.VUE_APP_IMAGE_API + imgs[1]
: ''
} }
} else { } else {
this.$modal.msgError(res.msg) this.$modal.msgError(res.msg)
...@@ -436,3 +443,8 @@ export default { ...@@ -436,3 +443,8 @@ export default {
} }
} }
</script> </script>
<style>
td {
word-wrap: break-word;
}
</style>
...@@ -232,7 +232,7 @@ ...@@ -232,7 +232,7 @@
<span v-else-if="$index === 0">{{ <span v-else-if="$index === 0">{{
row.dept.deptName || '-' row.dept.deptName || '-'
}}</span> }}</span>
<span v-else-if="$index >= 1">{{ row.dept || '-' }}</span> <span v-else-if="$index >= 1">{{ row.dept.deptName || '-' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column <!-- <el-table-column
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment