From 13c6ab8dad4eb607387531ff21d987a09ee03017 Mon Sep 17 00:00:00 2001
From: zhangxiaoxu123 <819527061@qq.com>
Date: 星期三, 26 十月 2022 10:41:03 +0800
Subject: [PATCH] id传不过去问题
---
src/views/padSunmaryProcedure/padWord.vue | 7 ++++---
src/views/padSunmaryProcedure/word_mange/mangeBL.vue | 7 +++++--
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/src/views/padSunmaryProcedure/padWord.vue b/src/views/padSunmaryProcedure/padWord.vue
index e6b1a6f..4dbfdbe 100644
--- a/src/views/padSunmaryProcedure/padWord.vue
+++ b/src/views/padSunmaryProcedure/padWord.vue
@@ -9,13 +9,13 @@
<el-tabs type="border-card" style="margin-top: 10px!important;" v-model="activeName" @tab-click="handleClick"
:stretch="true">
<el-tab-pane label="璋冩煡璇㈤棶绗斿綍" name="first">
- <BiLu :id="id"></BiLu>
+ <BiLu v-if="id" :id="id"></BiLu>
</el-tab-pane>
<el-tab-pane label="璐d护闄愭湡鏀规閫氱煡涔�" name="second">
- <GaiZheng :id="id"></GaiZheng>
+ <GaiZheng v-if="id" :id="id"></GaiZheng>
</el-tab-pane>
<el-tab-pane label="澶勭綒鍐冲畾涔�" name="third">
- <JueDingShu :id="id"></JueDingShu>
+ <JueDingShu v-if="id" :id="id"></JueDingShu>
</el-tab-pane>
</el-tabs>
</div>
@@ -48,6 +48,7 @@
if (this.$route.query) {
this.$nextTick(() => {
this.id = this.$route.query.id
+ console.log(this.id,'id==========')
this.name1 = this.$route.query.name
})
}
diff --git a/src/views/padSunmaryProcedure/word_mange/mangeBL.vue b/src/views/padSunmaryProcedure/word_mange/mangeBL.vue
index 12d130b..ebf2780 100644
--- a/src/views/padSunmaryProcedure/word_mange/mangeBL.vue
+++ b/src/views/padSunmaryProcedure/word_mange/mangeBL.vue
@@ -1,7 +1,7 @@
<template>
<el-main style="width: 100%;font-size: 18px;">
<el-form ref="form" :model="form" label-width="85px" size="24">
- <button>{{id}}</button>
+ <h1>{{id}}</h1>
<el-form-item label="妗堢敱">
<el-input v-model="form.causePoint" placeholder="璇峰~鍐欐鐢�"></el-input>
</el-form-item>
@@ -175,11 +175,14 @@
}
},
created() {
- // this.getDataList()
+ this.getDataList()
window.getSignUrl =this.getSignUrl;
window.getFingerUrl =this.getFingerUrl;
// this.getSignUrl();
},
+ mounted() {
+ console.log(this.id,'id=================')
+ },
methods: {
getDataList() {
--
Gitblit v1.9.1