Commit d2053a29 authored by songrui's avatar songrui

简易筛查结果页修改

parent 061101a2
...@@ -116,7 +116,8 @@ export default { ...@@ -116,7 +116,8 @@ export default {
this.resultInfo = { this.resultInfo = {
species: result.species, species: result.species,
details: result.details, details: result.details,
unitName: res.data unitName: res.data,
recordId: this.recordId
} }
this.setp = 3 this.setp = 3
}) })
......
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
{{ item.remark }} {{ item.remark }}
</div> </div>
</div> </div>
<div class="text-center px-5">
<van-button round block type="primary" @click="toRecord()">当年筛查记录</van-button>
</div>
</div> </div>
</template> </template>
...@@ -46,6 +49,17 @@ export default { ...@@ -46,6 +49,17 @@ export default {
unitName unitName
}) })
}) })
},
methods: {
toRecord() {
this.$router.push({
name: 'tumour-screening-simple-list',
query: {
recordId: this.info.recordId
}
})
}
} }
} }
</script> </script>
......
...@@ -337,7 +337,7 @@ export default { ...@@ -337,7 +337,7 @@ export default {
console.log(this.form) console.log(this.form)
const idCard = this.form.idCard const idCard = this.form.idCard
if (!idCard || idCardRule.validator(idCard)) return if (!idCard || idCardRule.validator(idCard)) return
getSimpleScreenYears(idCard).then(res => { getSimpleScreenYears(idCard, false).then(res => {
const result = res.data || [] const result = res.data || []
if (!result.length) { if (!result.length) {
this.$emit('checked', -1) this.$emit('checked', -1)
......
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
<script> <script>
import DocNavBar from '@/components/docNavBar/DocNavBar.vue' import DocNavBar from '@/components/docNavBar/DocNavBar.vue'
import { getSimpleScreenYears } from '@/tumour/api/screening.js' import { getSimpleScreenYears } from '@/tumour/api/screening.js'
import { showNotify, closeNotify } from 'vant'
export default { export default {
components: { components: {
...@@ -108,6 +109,9 @@ export default { ...@@ -108,6 +109,9 @@ export default {
} }
}) })
} }
},
beforeUnmount() {
closeNotify()
} }
} }
</script> </script>
......
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