| | |
| | | <template> |
| | | <div> |
| | | |
| | | <el-button type="primary" @click="goBack">ä¸å·é¾é¨æ¶</el-button> |
| | | <div class="container"> |
| | | <el-button type="primary" style="width: 200px;height: 100px;" @click="goBack(1)">ä¸å·é¾é¨æ¶</el-button> |
| | | <el-button type="primary" style="width: 200px;height: 100px;" @click="goBack(2)">äºå·é¾é¨æ¶</el-button> |
| | | <el-button type="primary" style="width: 200px;height: 100px;" @click="goBack(3)">ä¸å·é¾é¨æ¶</el-button> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | export default { |
| | | name: "temppage", |
| | | methods: { |
| | | goBack() { |
| | | goBack(index) { |
| | | // è¿éå¯ä»¥æ ¹æ®éè¦ä¼ éä¸åçåæ° |
| | | // ä¾å¦ï¼ä¼ éä¸ä¸ªè®¾å¤ä»£ç ä½ä¸ºæ¥è¯¢åæ° |
| | | // ä½ å¯ä»¥æ ¹æ®æé®çä¸åï¼ä¼ éä¸åçåæ° |
| | | // è¿éåè®¾ä½ æä¸ä¸ªè®¾å¤ä»£ç çæ°ç» |
| | | const deviceCodes = ["GT01", "GT02", "GT03"]; |
| | | const deviceCode = deviceCodes[index - 1]; // æ ¹æ®æé®çç´¢å¼è·å设å¤ä»£ç |
| | | |
| | | this.$router.push({ |
| | | path: "/bigdata", |
| | | query: { deviceCode: "GT03" }, |
| | | query: { deviceCode: deviceCode } |
| | | }); |
| | | }, |
| | | }, |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .container { |
| | | width: 100%; |
| | | height: 100%; |
| | | display: grid; |
| | | grid-template-columns: repeat(3, 1fr); |
| | | grid-template-rows: repeat(1, 1fr); |
| | | gap: 15px; |
| | | padding: 20px; |
| | | background: #f8f9fa; |
| | | justify-content: center; |
| | | align-items: center; |
| | | justify-items: center; |
| | | } |
| | | </script> |
| | | </style> |