index.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <template>
  2. <div style="height: 100%" v-loading="loading">
  3. <editor-zl
  4. ref="editor1"
  5. :htmlData="htmlData"
  6. :editMode="editMode"
  7. :imageData="imageDatas"
  8. :docJson="docJson"
  9. :projectId="projectId"
  10. @readyAnalysis="readyAnalysis"
  11. @imageData="imageData"
  12. >
  13. <div slot="analysisData">
  14. <Data :isEdit="isEdit"></Data>
  15. </div>
  16. </editor-zl>
  17. <div v-if="loading" style="opacity: 0">
  18. <div v-for="(item, index) in imageList" :key="index">
  19. <Chart
  20. :key="index"
  21. :myId="'chartDom' + index"
  22. :ref="'chartDom' + index"
  23. :formCount="item.count"
  24. :formData="item.form"
  25. :selectedData="item.selected"
  26. :width="item.form.setting.width + item.form.setting.widthUnit"
  27. :height="item.form.setting.height + item.form.setting.heightUnit"
  28. ></Chart>
  29. </div>
  30. </div>
  31. </div>
  32. </template>
  33. <script>
  34. import dataComponent from './mixins/dataComponent'
  35. import ready from './mixins/ready'
  36. export default {
  37. components: {
  38. },
  39. props: {},
  40. mixins:[dataComponent,ready],
  41. data() {
  42. return {
  43. editMode: "edit", //编辑模式 "edit"编辑,"clean"清洁,"readonly"只读, "form","print"打印
  44. };
  45. },
  46. watch: {},
  47. computed: {},
  48. created() {},
  49. mounted() {
  50. },
  51. methods: {
  52. showCharts(data){
  53. this.$refs.editor1.showCharts(data);
  54. },
  55. },
  56. };
  57. </script>
  58. <style lang="scss" scoped>
  59. </style>