From b34535a0b4579da937cee8188f8f3fd249a028c3 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期二, 27 九月 2022 16:25:57 +0800
Subject: [PATCH] up
---
src/views/paiban/index.vue | 12 +++++++++---
src/views/report/item/index.vue | 11 +++++------
src/views/record/index.vue | 6 ++++++
src/views/report/index.vue | 6 +++++-
src/views/prescriptionDrug/index.vue | 6 ++++++
5 files changed, 31 insertions(+), 10 deletions(-)
diff --git a/src/views/paiban/index.vue b/src/views/paiban/index.vue
index fbc6eb0..e186445 100644
--- a/src/views/paiban/index.vue
+++ b/src/views/paiban/index.vue
@@ -4,10 +4,8 @@
title=""
left-text="返回"
left-arrow
+ @click="fanhui"
/>
- <!-- <div class="fanhui">
- 返回上一页
- </div> -->
<div>
<van-calendar
color="#769AFF"
@@ -76,6 +74,11 @@
<script lang="ts" setup>
// import {ref,reactive,watchEffect,watch} from 'vue'
import { Calendar as vanCalendar } from 'vant'
+ import {useRouter} from 'vue-router'
+ const router=useRouter()
+ const fanhui=()=>{
+ router.go(-1)
+ }
const selectData=(data:any)=>{
console.log(data)
}
@@ -126,8 +129,11 @@
.sqtb{
color: #4696F9;
// background: #4696F9;
+ height:18px;
+ line-height:18px;
border: #4696F9 1px solid;
width: 60px;
+ text-align: center;
border-radius: 4px;
font-size: 12px;
}
diff --git a/src/views/prescriptionDrug/index.vue b/src/views/prescriptionDrug/index.vue
index 020791d..2135fd8 100644
--- a/src/views/prescriptionDrug/index.vue
+++ b/src/views/prescriptionDrug/index.vue
@@ -4,6 +4,7 @@
title=""
left-text="返回"
left-arrow
+ @click="fanhui"
/>
<div class="inputdiv">
<van-field left-icon="search" class="input" v-model="inputValue" placeholder="模糊匹配项目、日期检索" />
@@ -44,7 +45,12 @@
</template>
<script lang="ts" setup>
import {ref,reactive,watchEffect,watch} from 'vue'
+ import {useRouter} from 'vue-router'
+ const router=useRouter()
const inputValue=ref('')
+ const fanhui=()=>{
+ router.go(-1)
+ }
</script>
<style lang="scss">
.report{
diff --git a/src/views/record/index.vue b/src/views/record/index.vue
index 35d4d8e..3b88dc4 100644
--- a/src/views/record/index.vue
+++ b/src/views/record/index.vue
@@ -4,6 +4,7 @@
title=""
left-text="返回"
left-arrow
+ @click="fanhui"
/>
<div>
<van-calendar
@@ -73,9 +74,14 @@
<script lang="ts" setup>
// import {ref,reactive,watchEffect,watch} from 'vue'
import { Calendar as vanCalendar } from 'vant'
+ import {useRouter} from 'vue-router'
+ const router=useRouter()
const selectData=(data:any)=>{
console.log(data)
}
+ const fanhui=()=>{
+ router.go(-1)
+ }
const formatter=(day:any)=>{
const month = day.date.getMonth() + 1
const date = day.date.getDate()
diff --git a/src/views/report/index.vue b/src/views/report/index.vue
index 9f9b563..8189866 100644
--- a/src/views/report/index.vue
+++ b/src/views/report/index.vue
@@ -4,6 +4,7 @@
title=""
left-text="返回"
left-arrow
+ @click="fanhui"
/>
<div class="inputdiv">
<van-field left-icon="search" class="input" v-model="inputValue" placeholder="模糊匹配项目、日期检索" />
@@ -38,6 +39,9 @@
console.log('sss')
router.push(url)
}
+ const fanhui=()=>{
+ router.go(-1)
+ }
</script>
<style scoped lang="scss">
.report{
@@ -46,7 +50,7 @@
.inputdiv{
width: 94%;
margin-left: 3%;
- margin-top: 10px;
+ margin-top: 5px;
.input{
width: 100%;
// height: 33px;
diff --git a/src/views/report/item/index.vue b/src/views/report/item/index.vue
index 4f65d15..6f322a2 100644
--- a/src/views/report/item/index.vue
+++ b/src/views/report/item/index.vue
@@ -4,6 +4,7 @@
title=""
left-text="返回"
left-arrow
+ @click="fanhui"
/>
<div class="tou">
<van-row>
@@ -75,10 +76,8 @@
import {ref,reactive,watchEffect,watch} from 'vue'
import {useRouter} from 'vue-router'
const router=useRouter()
- const inputValue=ref('')
- const topath=(url:string)=>{
- console.log('sss')
- router.push(url)
+ const fanhui=()=>{
+ router.go(-1)
}
</script>
<style scoped lang="scss">
@@ -86,9 +85,9 @@
background-color: #F6FAFF;
padding: 0 0 10 0;
.tou{
- padding-top: 20px;
+ padding-top: 10px;
padding-left: 20px;
- height: 86px;
+ height: 66px;
box-shadow: 0px 2px 4px 0px rgba(70,150,249,0.1);
border-radius: 8px;
background: #FFFFFF;
--
Gitblit v1.8.0