| @@ -1,6 +1,7 @@ | |||||
| <template> | <template> | ||||
| <div class="box"> | <div class="box"> | ||||
| <div class="title">打印模板设计器 {{ currentID }}</div> | |||||
| <div class="title">打印模板设计器</div> | |||||
| <div class="title">ID:{{ currentID }}</div> | |||||
| <section> | <section> | ||||
| <div class="section">模板管理</div> | <div class="section">模板管理</div> | ||||
| <el-table :data="tempList" style="width: 100%" size="mini" border> | <el-table :data="tempList" style="width: 100%" size="mini" border> | ||||
| @@ -152,6 +153,8 @@ export default { | |||||
| Vue.use(TableColumn) | Vue.use(TableColumn) | ||||
| Vue.use(Dialog) | Vue.use(Dialog) | ||||
| this.tempList = JSON.parse(localStorage.getItem('tempList')) || [] | this.tempList = JSON.parse(localStorage.getItem('tempList')) || [] | ||||
| const id = this.$route.query.id | |||||
| if (id) this.currentID = id | |||||
| }, | }, | ||||
| methods: { | methods: { | ||||
| @@ -234,12 +237,6 @@ export default { | |||||
| }) | }) | ||||
| }, | }, | ||||
| }, | }, | ||||
| created() { | |||||
| const id = this.$route.query.id | |||||
| if (id) { | |||||
| this.currentID = id | |||||
| } | |||||
| } | |||||
| } | } | ||||
| </script> | </script> | ||||
| <style scoped> | <style scoped> | ||||