Commit f3ede892 by yuanfeng

Merge branch 'yuanfeng' into '20210819'

Yuanfeng

See merge request vue-project/liangXing/frontEnd!21
parents f21ad4b8 6b1085ad
...@@ -99,15 +99,20 @@ ...@@ -99,15 +99,20 @@
</vue-seamless-scroll> </vue-seamless-scroll>
</div> </div>
</div> </div>
<!-- 弹框 -->
<popup-frame :visible="visible" :layout="{width: '960px', height: '543px'}" @beforeClose="closePopup">
<img src="../../../static/images/index/studentDemeanor.jpg" alt="弹框">
</popup-frame>
</div> </div>
</template> </template>
<script> <script>
import TitleLine from '@/components/TitleLine' import TitleLine from 'components/TitleLine'
import BarChart from '@/components/echarts/BarChart.vue' import BarChart from 'components/echarts/BarChart.vue'
import PieChart from '@/components/echarts/PieChart.vue' import PieChart from 'components/echarts/PieChart.vue'
import LineChart from '@/components/echarts/LineChart.vue' import LineChart from 'components/echarts/LineChart.vue'
import Swiper from '@/components/Swiper' import Swiper from 'components/Swiper'
import PopupFrame from 'components/PopupFrame.vue'
import { swiperSlide } from 'vue-awesome-swiper' import { swiperSlide } from 'vue-awesome-swiper'
import utils from 'utils' import utils from 'utils'
export default { export default {
...@@ -119,7 +124,8 @@ export default { ...@@ -119,7 +124,8 @@ export default {
PieChart, PieChart,
LineChart, LineChart,
Swiper, Swiper,
swiperSlide swiperSlide,
PopupFrame
}, },
filters: { filters: {
...@@ -185,7 +191,9 @@ export default { ...@@ -185,7 +191,9 @@ export default {
step: 0.35, step: 0.35,
singleHeight: 50 singleHeight: 50
}, },
greatKey: 0 greatKey: 0,
// 弹框是否显示
visible: false
} }
}, },
...@@ -385,6 +393,11 @@ export default { ...@@ -385,6 +393,11 @@ export default {
// 打开学员风采弹框 // 打开学员风采弹框
openStudent (index) { openStudent (index) {
console.log(index) console.log(index)
this.visible = true
},
// 关闭弹框
closePopup (data) {
this.visible = data
}, },
// 把数组中的key转成name // 把数组中的key转成name
formatArr (arr) { formatArr (arr) {
......
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