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