Commit d6a0a70a authored by gengchunlei's avatar gengchunlei

慢综 医生端 fetch修改

parent bd8fc152
......@@ -206,21 +206,22 @@ export default {
})
this.imgList = this.imgList.concat(newFile)
},
//图片预览
toPreview(index) {
let list = []
this.imgList.forEach(item => {
list.push(item.src)
})
showImagePreview({
images: list,
className: 'custom-image-preview',
startPosition: index,
loop: false
})
// let list = []
// this.imgList.forEach(item => {
// list.push(item.src)
// })
// showImagePreview({
// images: list,
// className: 'custom-image-preview',
// startPosition: index,
// loop: false
// })
},
//pdf预览
toPdf(item) {
window.open(item.src)
// window.open(item.src)
},
delImg(index) {
this.imgList = this.imgList.filter(item => item.indexF != index)
......
<template>
<div>
<van-nav-bar title='新增通用随访' left-text='' left-arrow></van-nav-bar>
<van-nav-bar title='新增通用随访' left-text='' left-arrow @click-left='toBack'></van-nav-bar>
<div class='p-4 h-overflow'>
<base-info :info="info" v-show='step == 1' ref='baseInfo'></base-info>
<general-f-u-form :info='info' v-show='step == 2' ref='generalFUForm'></general-f-u-form>
......@@ -77,6 +77,13 @@ export default {
},
onsubmit() {
},
toBack() {
if (this.step != 1) {
this.step--
} else {
this.$router.back()
}
}
}
}
......
<template>
</template>
<script>
export default {
name: 'Index'
}
</script>
<style scoped>
</style>
\ No newline at end of file
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