|
@@ -134,6 +134,10 @@
|
|
/>
|
|
/>
|
|
<!-- ETA表格 -->
|
|
<!-- ETA表格 -->
|
|
<ETASheet v-if="rightType==='etaSheet'"/>
|
|
<ETASheet v-if="rightType==='etaSheet'"/>
|
|
|
|
+ <!-- 统计分析 -->
|
|
|
|
+ <StatisticAnalysis v-if="rightType==='statisticAnalysis'"/>
|
|
|
|
+ <!-- 商品价格曲线 -->
|
|
|
|
+ <ETAPriceChart v-if="rightType==='etaPriceChart'"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -147,6 +151,7 @@ import draggable from 'vuedraggable'
|
|
import TextComp from './components/TextComp.vue'
|
|
import TextComp from './components/TextComp.vue'
|
|
import ChartComp from './components/ChartComp.vue'
|
|
import ChartComp from './components/ChartComp.vue'
|
|
import ImgComp from './components/ImgComp.vue'
|
|
import ImgComp from './components/ImgComp.vue'
|
|
|
|
+import SheetComp from './components/SheetComp.vue'
|
|
import _ from 'lodash'
|
|
import _ from 'lodash'
|
|
import TextEdit from './components/TextEdit.vue'
|
|
import TextEdit from './components/TextEdit.vue'
|
|
import ImgEdit from './components/ImgEdit.vue'
|
|
import ImgEdit from './components/ImgEdit.vue'
|
|
@@ -155,6 +160,8 @@ import ETASheet from './components/ETASheet.vue'
|
|
import { getPublicSettingsApi } from '@/api/modules/oldApi';
|
|
import { getPublicSettingsApi } from '@/api/modules/oldApi';
|
|
import {apiSmartReport} from '@/api/modules/smartReport'
|
|
import {apiSmartReport} from '@/api/modules/smartReport'
|
|
import BaseInfo from './components/BaseInfo.vue'
|
|
import BaseInfo from './components/BaseInfo.vue'
|
|
|
|
+import StatisticAnalysis from './components/StatisticAnalysis.vue'
|
|
|
|
+import ETAPriceChart from './components/ETAPriceChart.vue'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name:"smartReportEdit",
|
|
name:"smartReportEdit",
|
|
@@ -164,10 +171,13 @@ export default {
|
|
TextComp,
|
|
TextComp,
|
|
ChartComp,
|
|
ChartComp,
|
|
ImgComp,
|
|
ImgComp,
|
|
|
|
+ SheetComp,
|
|
TextEdit,
|
|
TextEdit,
|
|
ImgEdit,
|
|
ImgEdit,
|
|
ETAChart,
|
|
ETAChart,
|
|
- ETASheet
|
|
|
|
|
|
+ ETASheet,
|
|
|
|
+ StatisticAnalysis,
|
|
|
|
+ ETAPriceChart
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -273,6 +283,17 @@ export default {
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ // 设置sheet iframe 样式
|
|
|
|
+ setSheetIframeStyle(e){
|
|
|
|
+ const { height, code } = e.data;
|
|
|
|
+ // console.log(e.data);
|
|
|
|
+ let iframeDom = document.getElementsByClassName(`iframe${code}`);
|
|
|
|
+ // console.log(iframeDom);
|
|
|
|
+ iframeDom.forEach((ele) => {
|
|
|
|
+ ele.height = `${height + 45}px`;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+
|
|
handleParentAdd(e){
|
|
handleParentAdd(e){
|
|
console.log('container-onAdd操作------------------->');
|
|
console.log('container-onAdd操作------------------->');
|
|
|
|
|
|
@@ -309,7 +330,7 @@ export default {
|
|
|
|
|
|
const compData=JSON.parse(item.getAttribute('comp-data'))
|
|
const compData=JSON.parse(item.getAttribute('comp-data'))
|
|
|
|
|
|
- // console.log(compData,newDraggableIndex);
|
|
|
|
|
|
+ console.log(compData,newDraggableIndex);
|
|
|
|
|
|
const index=this.conList.findIndex(_e=>_e.id===parent.id)
|
|
const index=this.conList.findIndex(_e=>_e.id===parent.id)
|
|
if(index>-1){
|
|
if(index>-1){
|
|
@@ -452,7 +473,8 @@ export default {
|
|
const temMap=new Map([
|
|
const temMap=new Map([
|
|
['text',TextComp],
|
|
['text',TextComp],
|
|
['chart',ChartComp],
|
|
['chart',ChartComp],
|
|
- ['img',ImgComp]
|
|
|
|
|
|
+ ['img',ImgComp],
|
|
|
|
+ ['sheet',SheetComp]
|
|
])
|
|
])
|
|
return temMap.get(item.compType)
|
|
return temMap.get(item.compType)
|
|
},
|
|
},
|
|
@@ -506,6 +528,12 @@ export default {
|
|
this.getPublicSettings()
|
|
this.getPublicSettings()
|
|
this.getReportDetail()
|
|
this.getReportDetail()
|
|
},
|
|
},
|
|
|
|
+ mounted () {
|
|
|
|
+ window.addEventListener('message',this.setSheetIframeStyle)
|
|
|
|
+ },
|
|
|
|
+ destroyed() {
|
|
|
|
+ window.removeEventListener('message',this.setSheetIframeStyle)
|
|
|
|
+ },
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
<style lang='scss' scoped>
|
|
<style lang='scss' scoped>
|