Pārlūkot izejas kodu

fix: 提交

bug/0816
yinsiyu pirms 2 mēnešiem
vecāks
revīzija
d74e65ffd7
4 mainītis faili ar 19 papildinājumiem un 65 dzēšanām
  1. +17
    -0
      src/api/common/index.js
  2. +0
    -63
      src/components/RemindPreview/index.vue
  3. +1
    -1
      src/layout/components/Navbar.vue
  4. +1
    -1
      src/views/statisticalManage/followupStatistical/listPage/index.vue

+ 17
- 0
src/api/common/index.js Parādīt failu

@@ -29,3 +29,20 @@ export function getArticleSnapshot(id) {
method: "get",
});
}

// 获取所有医生
export function getDoctorAllList(query) {
return request({
url: `/common/doctor/list`,
method: "get",
params: query,
});
}
// 医院二维码
export function hospitalQrcode(query) {
return request({
url: `/hosp/generate-qrcode`,
method: "get",
params: query,
});
}

+ 0
- 63
src/components/RemindPreview/index.vue Parādīt failu

@@ -1,63 +0,0 @@
<template>
<div class="remind-preview" v-loading="loading">
<template v-if="detail">
<el-form>
<el-form-item label="提醒类型:">
{{ detail.categoryName || "--" }}
</el-form-item>
<el-form-item label="提醒名称:">
{{ detail.name || "--" }}
</el-form-item>
<el-form-item label="提醒内容:">
{{ detail.remark || "--" }}
</el-form-item>
</el-form>
</template>
</div>
</template>
<script>
import { getRemindTemplateApi } from '@/api/hospital/remindManage/remindList'
export default {
name: "RemindPreview",
props: {
id: {
type: [String, Number],
},
},
data() {
return {
detail: null,
loading: false,
};
},
watch: {
id(val) {
if (val) {
this.loadDetail();
}
},
},
methods: {
async loadDetail() {
this.loading = true;
try {
const { data } = await getRemindTemplateApi(this.id);
this.detail = data;
} catch (err) {
console.error(err);
} finally {
this.loading = false;
}
},
},
created() {
this.loadDetail()
}
};
</script>
<style lang="scss" scoped>
.remind-preview {
width: 100%;
height: 100%;
}
</style>

+ 1
- 1
src/layout/components/Navbar.vue Parādīt failu

@@ -34,7 +34,7 @@ import TopNav from "@/components/TopNav";
import Hamburger from "@/components/Hamburger";
import Screenfull from "@/components/Screenfull";
import Popup from "@/components/Popup";
import { hospitalQrcode } from "@/api/hospital";
import { hospitalQrcode } from "@/api/common/index";

export default {
components: {


+ 1
- 1
src/views/statisticalManage/followupStatistical/listPage/index.vue Parādīt failu

@@ -274,7 +274,7 @@
</template>

<script>
import { getDoctorAllList } from "@/api/hospital/index";
import { getDoctorAllList } from "@/api/common/index";
import {
statisticalViewData,
statisticalPageList,


Notiek ielāde…
Atcelt
Saglabāt