fix:评估图片显示

This commit is contained in:
wyx
2023-03-08 08:41:44 +08:00
parent 49dc8a552e
commit bd32f48399

View File

@@ -52,7 +52,7 @@
{{itteems.singleOptionName}} {{itteems.singleOptionName}}
</div> </div>
</div> </div>
<img v-if="itteems?.singleOptionPictureAddress" :src="itteems?.singleOptionPictureAddress" alt="" srcset="" style="width: 140px;height:140px;margin-top:5px;"> <img v-if="itteems?.singleOptionPictureAddress" :src="VUE_APP_FILE_PATH + itteems?.singleOptionPictureAddress" alt="" srcset="" style="width: 140px;height:140px;margin-top:5px;">
<div v-else-if="isExistImg(values.assessmentSingleChoiceVoList, 1)" style="width: 140px;height:140px;margin-top:5px;"></div> <div v-else-if="isExistImg(values.assessmentSingleChoiceVoList, 1)" style="width: 140px;height:140px;margin-top:5px;"></div>
<!-- <a-radio :value="indexs" defaultValue>{{iitem.singleOptionName}}</a-radio> --> <!-- <a-radio :value="indexs" defaultValue>{{iitem.singleOptionName}}</a-radio> -->
</div> </div>
@@ -84,7 +84,7 @@
{{itteems.multipleOptionName}} {{itteems.multipleOptionName}}
</div> </div>
</div> </div>
<img v-if="itteems?.multipleOptionPictureAddress" :src="itteems?.multipleOptionPictureAddress" alt="" srcset="" style="width: 140px;height:140px;margin-top:5px;"> <img v-if="itteems?.multipleOptionPictureAddress" :src="VUE_APP_FILE_PATH + itteems?.multipleOptionPictureAddress" alt="" srcset="" style="width: 140px;height:140px;margin-top:5px;">
<div v-else-if="isExistImg(values.multipleChoiceVoList, 2)" style="width: 140px;height:140px;margin-top:5px;"></div> <div v-else-if="isExistImg(values.multipleChoiceVoList, 2)" style="width: 140px;height:140px;margin-top:5px;"></div>
<!-- <a-radio :value="indexs" defaultValue>{{iitem.singleOptionName}}</a-radio> --> <!-- <a-radio :value="indexs" defaultValue>{{iitem.singleOptionName}}</a-radio> -->
</div> </div>
@@ -147,7 +147,7 @@
</template> </template>
<script> <script>
import { reactive, toRefs } from "vue"; import { reactive, toRefs, ref } from "vue";
import * as api from "@/api/indexTaskManage"; import * as api from "@/api/indexTaskManage";
export default { export default {
@@ -246,11 +246,14 @@ export default {
return exist; return exist;
} }
const VUE_APP_FILE_PATH = ref(process.env.VUE_APP_FILE_PATH);
return { return {
...toRefs(state), ...toRefs(state),
afterVisibleChange, afterVisibleChange,
closeDrawer, closeDrawer,
isExistImg isExistImg,
VUE_APP_FILE_PATH
// change, // change,
}; };
}, },