houzhongjian
2024-07-23 8501060c4f921d1e744c477e4dc08eb47b52693c
提交 | 用户 | 时间
850106 1 <template>
H 2   <el-card shadow="never" class="aui-card--fill">
3     <el-image
4         style="width: 100%; height: 100%"
5         :src="src"
6         @click="changeImage()"
7     >
8     </el-image>
9   </el-card>
10 </template>
11
12 <script>
13 export default {
14   data() {
15     return {
16       src: require('./img/煤质趋势分析.png'),
17       flag: '1'
18     };
19   },
20   methods: {
21     changeImage() {
22       if(this.flag == 1){
23         this.src = require('./img/煤质趋势分析_可选性曲线.png')
24         this.flag = 2
25       }else if(this.flag == 2){
26         this.src = require('./img/煤质趋势分析.png')
27         this.flag = 1
28       }
29
30     }
31   }
32 };
33 </script>