Commit 806c6208 authored by zhang's avatar zhang

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

parent a8355697
......@@ -41,7 +41,6 @@
v-for="(childItem, childIndex) in item.userPhotoStorageList"
:key="childIndex"
class="image"
>
<div class="img-card" @click="selectImage(index, childIndex, childItem.name,childItem.path, childItem.id)" :class="childItem.selected ? 'selected' : ''">
<el-image
......
......@@ -97,16 +97,23 @@
:class="{
'select-circle': index === activeModel,
'exclamation-point': item.warn
}"
}"
@click="changeStep(index)"
>
<svg-icon
v-show="item.result && item.result.passed !== null"
v-show="item.result && item.result.passed !== 0"
width="20px"
height="20px"
class="tick-class"
icon-class="tag_xuanzhong"
></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>
</div>
......@@ -692,7 +699,8 @@ export default {
!this.allPropertiesCheck(this.form.fileList, 'isFileUpdate')
) {
this.handleCircle(index)
} else {
}
else {
this.$message.error('您有未保存内容,请点击保存按钮')
}
},
......@@ -895,6 +903,6 @@ export default {
listEl.style.left = '-' + (leftMove + 180) + 'px'
}
}
}
},
}
</script>
......@@ -123,7 +123,6 @@
</div>
</div>
</div>
<!--审查表单概要-->
<div>
<div class="form-review-questionnaire">
......@@ -184,7 +183,7 @@
<th class="written-by">填写人</th>
</tr>
<template v-for="(keyPoint, keyPointKey) in item.keyPointList">
<tr :key="keyPointKey">
<tr>
<td :rowspan="keyPoint.reviewDetailsList.length + 1">
{{ keyPoint.text }}
</td>
......@@ -194,8 +193,10 @@
reviewDetail, reviewDetailKey
) in keyPoint.reviewDetailsList"
>
<tr :key="reviewDetailKey">
<td align="center">{{ reviewDetail.text }}</td>
<tr>
<td align="center">
<span style="white-space: pre-wrap;">{{ reviewDetail.text | ellipsis }}</span>
</td>
<td align="center" class="investigate-result">
<div v-if="reviewDetail.result">
<div v-if="reviewDetail.result">
......@@ -383,6 +384,16 @@ export default {
await this.getTask()
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: {
/**
* 获取子任务详情
......@@ -398,12 +409,8 @@ export default {
this.model = res.data
if (this.model.systemReviewTask.imagesUrl) {
const imgs = this.model.systemReviewTask.imagesUrl.split(',')
this.ruleForm.enterpriseLeader = imgs[0]
? process.env.VUE_APP_IMAGE_API + imgs[0]
: ''
this.ruleForm.inspectionLeader = imgs[1]
? process.env.VUE_APP_IMAGE_API + imgs[1]
: ''
this.ruleForm.enterpriseLeader = process.env.VUE_APP_IMAGE_API + imgs[0] || ''
this.ruleForm.inspectionLeader = process.env.VUE_APP_IMAGE_API + imgs[1] || ''
}
} else {
this.$modal.msgError(res.msg)
......@@ -436,3 +443,8 @@ export default {
}
}
</script>
<style>
td {
word-wrap: break-word;
}
</style>
......@@ -232,7 +232,7 @@
<span v-else-if="$index === 0">{{
row.dept.deptName || '-'
}}</span>
<span v-else-if="$index >= 1">{{ row.dept || '-' }}</span>
<span v-else-if="$index >= 1">{{ row.dept.deptName || '-' }}</span>
</template>
</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