|
@@ -6,12 +6,18 @@ import html2canvas from 'html2canvas'
|
|
|
|
|
|
export const customPage = {
|
|
export const customPage = {
|
|
props:{
|
|
props:{
|
|
|
|
+ formCount:{},
|
|
|
|
+ formData:{},
|
|
|
|
+ selectedData:{},
|
|
editorForm:{},
|
|
editorForm:{},
|
|
- editorSelected:{}
|
|
|
|
|
|
+ editorSelected:{},
|
|
|
|
+ myId:{
|
|
|
|
+ type:String
|
|
|
|
+ }
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
form() {
|
|
form() {
|
|
- return this.editorForm||this.$store.state.chart.form
|
|
|
|
|
|
+ return this.editorForm || this.formData || this.$store.state.chart.form
|
|
},
|
|
},
|
|
changeNum() {
|
|
changeNum() {
|
|
return this.$store.state.chart.changeNum
|
|
return this.$store.state.chart.changeNum
|
|
@@ -26,13 +32,13 @@ export const customPage = {
|
|
return this.$store.state.chart.treeKey
|
|
return this.$store.state.chart.treeKey
|
|
},
|
|
},
|
|
selected() {
|
|
selected() {
|
|
- return this.editorSelected || this.$store.state.chart.selected
|
|
|
|
|
|
+ return this.editorSelected || this.selectedData || this.$store.state.chart.selected
|
|
},
|
|
},
|
|
selectedLoad() {
|
|
selectedLoad() {
|
|
return this.$store.state.chart.selectedLoad
|
|
return this.$store.state.chart.selectedLoad
|
|
},
|
|
},
|
|
count() {
|
|
count() {
|
|
- return this.$store.state.chart.count
|
|
|
|
|
|
+ return this.formCount || this.$store.state.chart.count
|
|
},
|
|
},
|
|
matrix() {
|
|
matrix() {
|
|
return this.$store.state.chart.matrix
|
|
return this.$store.state.chart.matrix
|
|
@@ -496,6 +502,9 @@ export const chartOption = {
|
|
export const chartOptionMixins = {
|
|
export const chartOptionMixins = {
|
|
mixins: [chartOption],
|
|
mixins: [chartOption],
|
|
mounted() {
|
|
mounted() {
|
|
|
|
+ if(this.myId){
|
|
|
|
+ this.id = this.myId + '_' + this.id
|
|
|
|
+ }
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.initChart(this.id, this.getOption())
|
|
this.initChart(this.id, this.getOption())
|
|
})
|
|
})
|