|
|
|
@ -16,7 +16,6 @@ import SWYPFXCBYPZB from "./comps/sp/SWYPFXCBYPZB.vue"; |
|
|
|
import SWYPBQGZYZBB from "./comps/sp/SWYPBQGZYZBB.vue"; |
|
|
|
import SWYPNBGZYZBB from "./comps/sp/SWYPNBGZYZBB.vue"; |
|
|
|
import Demo from "./comps/sp/Demo.vue"; |
|
|
|
import IndexDBDemo from "./comps/sp/IndexDBDemo.vue"; |
|
|
|
//公用 |
|
|
|
import SYWZPZJHB from "./comps/gy/SYWZPZJHB.vue"; |
|
|
|
import MJYLQSQD from "./comps/gy/MJYLQSQD.vue"; |
|
|
|
@ -25,7 +24,7 @@ export default { |
|
|
|
name: "TemplateTable", |
|
|
|
components: { |
|
|
|
MJYLQSQD, SYWZPZJHB, |
|
|
|
SP001, SWYPFXRYPZB, Demo, SWYPFXCBYPZB, SWYPBQGZYZBB, SWYPNBGZYZBB, IndexDBDemo |
|
|
|
SP001, SWYPFXRYPZB, Demo, SWYPFXCBYPZB, SWYPBQGZYZBB, SWYPNBGZYZBB |
|
|
|
}, |
|
|
|
props: { |
|
|
|
sn: { |
|
|
|
@ -40,6 +39,10 @@ export default { |
|
|
|
type: Object, |
|
|
|
default: () => { }, |
|
|
|
}, |
|
|
|
emitName: { |
|
|
|
type: String, |
|
|
|
default: 'onModifyRecord', |
|
|
|
}, |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
|
|
|
|
@ -52,7 +55,6 @@ export default { |
|
|
|
'SP004': 'SWYPNBGZYZBB', |
|
|
|
'SYWZPZJHB': 'SYWZPZJHB', |
|
|
|
'MJYLQSQD': 'MJYLQSQD', |
|
|
|
// 'SP001': 'IndexDBDemo', |
|
|
|
} |
|
|
|
} |
|
|
|
return this.componentMap || "Demo" |
|
|
|
@ -66,6 +68,12 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
provide() { |
|
|
|
return { |
|
|
|
//分发给子组件的fillType |
|
|
|
templateFillType: this.fillType, |
|
|
|
} |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
info: {}, |
|
|
|
@ -73,7 +81,7 @@ export default { |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
EventBus.$on('onModifyRecord', (data) => { |
|
|
|
this.$emit("onModifyRecord", data) |
|
|
|
this.$emit(this.emitName, data) |
|
|
|
}) |
|
|
|
}, |
|
|
|
beforeDestroy() { |
|
|
|
|