Commit 1426785a authored by peco's avatar peco

Merge branch 'develop' of http://106.15.103.105/lihuizhen/ec-report-refactor into develop

parents 0027e935 226a4000
<template> <template>
<view class="normal-image"> <view class="normal-image">
<BasicText :elementInfo="elementInfo.option.title"></BasicText> <BasicText :elementInfo="elementInfo"></BasicText>
<u-empty <u-empty
v-if="!elementInfo.option.images.list.length"></u-empty> v-if="!elementInfo.option.images.list.length"></u-empty>
<u-image class="uimage" <u-image class="uimage"
......
<template> <template>
<view> <view>
<div class="timer">
<div
:style="{
'font-size':`${elementInfo.option.title.textStyle.fontSize}px`,
'color': elementInfo.option.title.textStyle.color,
'font-weight': elementInfo.option.title.textStyle.fontWeight,
'text-align': elementInfo.option.title.left,
}"
>
{{ realTime }}
</div>
</div>
</view> </view>
</template> </template>
<script> <script>
export default { import uniEcCanvas from '@/components/uni-ec-canvas/uni-ec-canvas'
name:"RealTime", import * as echarts from '@/components/uni-ec-canvas/echarts'
import echartElementData from '@/mixins/echartElementData.js'
let chart = null
export default {
name:"BasicText",
mixins: [echartElementData],
data() { data() {
return { return {
}; };
},
onReady () {
},
components: {
uniEcCanvas
},
methods: {
initChart() {
const refreshTime = () => {
timer.value = setInterval(() => {
realTime.value = dateFormat(new Date(), props.elementInfo.option.dateFormart)
}, 1000)
} }
onMounted(() => {
refreshTime()
})
onUnmounted(() => {
clearInterval(timer.value)
timer.value = null
})
return {
realTime,
} }
}
}
}
</script> </script>
<style> <style lang="less" scoped>
.timer {
display: flex;
flex-flow: column;
justify-content: center;
width: 100%;
color: #fff;
}
</style> </style>
<template> <template>
<view class="remoteView"> <view class="remoteView">
<BasicText :elementInfo="elementInfo"></BasicText>
<u-image <u-image
class="remoteImage" class="remoteImage"
:src="imageUrl" :src="imageUrl"
...@@ -10,18 +11,27 @@ ...@@ -10,18 +11,27 @@
</template> </template>
<script> <script>
import uniEcCanvas from '@/components/uni-ec-canvas/uni-ec-canvas'
import * as echarts from '@/components/uni-ec-canvas/echarts'
import echartElementData from '@/mixins/echartElementData.js' import echartElementData from '@/mixins/echartElementData.js'
let chart = null
export default { export default {
name:"RemoteImage", name:"RemoteImage",
mixins: [echartElementData], mixins: [echartElementData],
data() { data() {
return { return {
ec: {
lazyLoad: true
},
imageUrl:"", imageUrl:"",
windowWidth: 0, //屏幕宽度 windowWidth: 0, //屏幕宽度
imageHeight:0 //图片高度 imageHeight:0 //图片高度
}; };
}, },
components: {
uniEcCanvas
},
computed:{ computed:{
}, },
methods:{ methods:{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment