From 8caa0b3f20295758f5d49b95265d8da9fa5b9ddb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Mon, 8 Apr 2024 14:53:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../manage/components/specialDiseaseRoute.vue | 15 +++++++++++++++ src/views/manage/continueSigning/index.vue | 10 +++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/src/views/manage/components/specialDiseaseRoute.vue b/src/views/manage/components/specialDiseaseRoute.vue index ee18166..c1cd89a 100644 --- a/src/views/manage/components/specialDiseaseRoute.vue +++ b/src/views/manage/components/specialDiseaseRoute.vue @@ -82,6 +82,7 @@ import { selectDiseaseCount, getDepartmentList, getdiseaseList } from "@/api/system/specialDiseaseRoute"; export default { + props: ['routeId', 'routeName'], name: "SpecialDiseaseRoute", data() { return { @@ -131,10 +132,24 @@ export default { created() { this.getList(); }, + mounted() { + this.handleselectId = this.routeId + this.handleselectName = this.routeName + }, watch: { departmentName(val) { this.infolists(); }, + routeId(newValue, oldValue) { + if (newValue) { + this.handleselectId = newValue; + } + }, + routeName(newValue, oldValue) { + if (newValue) { + this.handleselectName = newValue; + } + } }, methods: { nohandleselect() { diff --git a/src/views/manage/continueSigning/index.vue b/src/views/manage/continueSigning/index.vue index 570051c..2e964c5 100644 --- a/src/views/manage/continueSigning/index.vue +++ b/src/views/manage/continueSigning/index.vue @@ -94,7 +94,9 @@ - + + @@ -142,8 +144,10 @@ import { import { getAge } from "@/utils/age"; import { obtainendtime } from "@/utils/obtainendtime"; import { getToken } from '@/utils/auth' +import specialDiseaseRoute from '../components/specialDiseaseRoute' export default { dicts: ['hardware_type'], + components: { specialDiseaseRoute }, name: "newSigning", data() { return { @@ -204,6 +208,10 @@ export default { this.info(); }, methods: { + ontemplate(item) { + this.signPackage.routeId = item.routeId + this.signPackage.routeName = item.routeName + }, //签约详情 info() { let datetime = new Date();