|
@@ -3,6 +3,7 @@
|
|
|
<!-- <div v-for="(item,index) in datas"> -->
|
|
|
<div v-for="(item,index) in checkDatas.questionMapping">
|
|
|
<p class="quest">{{index + 1 +'.' + (item.description || item.name)}}</p>
|
|
|
+ <img class="questionImg" :src="item.url.replace('{imageUrlPrefix}',imgUrl)" v-if="item.url">
|
|
|
<Radio v-if="item.controlType==1"
|
|
|
:item="item"
|
|
|
:key="item.id"
|
|
@@ -40,14 +41,15 @@ import CheckBox from '../common/CheckBox.vue';
|
|
|
import Input from '../common/Input.vue';
|
|
|
import ComTextArea from '../common/ComTextArea.vue';
|
|
|
import MultiLineInput from '../common/MultiLineInput.vue';
|
|
|
-import {patt,trimDots} from '@utils/tools.js'
|
|
|
+import {patt,trimDots,imageUrlPrefix} from '@utils/tools.js'
|
|
|
// 将获取到的数据源转换成私有数据,处理选择事件。点击完成后统一存到store中,便于回读
|
|
|
export default {
|
|
|
name:'Detail',
|
|
|
data(){
|
|
|
return{
|
|
|
checkDatas:{},
|
|
|
- finished:false
|
|
|
+ finished:false,
|
|
|
+ imgUrl:imageUrlPrefix,
|
|
|
}
|
|
|
},
|
|
|
props:['datas','type','ppId'],
|
|
@@ -187,5 +189,8 @@ import {patt,trimDots} from '@utils/tools.js'
|
|
|
color:#000;
|
|
|
margin-bottom: .2rem;
|
|
|
}
|
|
|
+ .questionImg {
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|