Commit d6a0a70a authored by gengchunlei's avatar gengchunlei

慢综 医生端 fetch修改

parent bd8fc152
...@@ -206,21 +206,22 @@ export default { ...@@ -206,21 +206,22 @@ export default {
}) })
this.imgList = this.imgList.concat(newFile) this.imgList = this.imgList.concat(newFile)
}, },
//图片预览
toPreview(index) { toPreview(index) {
let list = [] // let list = []
this.imgList.forEach(item => { // this.imgList.forEach(item => {
list.push(item.src) // list.push(item.src)
}) // })
showImagePreview({ // showImagePreview({
images: list, // images: list,
className: 'custom-image-preview', // className: 'custom-image-preview',
startPosition: index, // startPosition: index,
loop: false // loop: false
}) // })
}, },
//pdf预览
toPdf(item) { toPdf(item) {
window.open(item.src) // window.open(item.src)
}, },
delImg(index) { delImg(index) {
this.imgList = this.imgList.filter(item => item.indexF != index) this.imgList = this.imgList.filter(item => item.indexF != index)
......
<template> <template>
<div> <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'> <div class='p-4 h-overflow'>
<base-info :info="info" v-show='step == 1' ref='baseInfo'></base-info> <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> <general-f-u-form :info='info' v-show='step == 2' ref='generalFUForm'></general-f-u-form>
...@@ -77,6 +77,13 @@ export default { ...@@ -77,6 +77,13 @@ export default {
}, },
onsubmit() { 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