From b6837f097e9cdb2645368aed4ddb03f580c331e4 Mon Sep 17 00:00:00 2001 From: z8018 <1282578289@qq.com> Date: 星期一, 05 五月 2025 17:29:07 +0800 Subject: [PATCH] 1 --- 项目代码/WCS/WIDESEAWCS_Client/src/views/temppage.vue | 40 ++++++++++++++++++++++++++++++++-------- 1 files changed, 32 insertions(+), 8 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Client/src/views/temppage.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Client/src/views/temppage.vue" index 62d432b..fb97967 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Client/src/views/temppage.vue" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Client/src/views/temppage.vue" @@ -1,7 +1,8 @@ <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> @@ -9,12 +10,35 @@ 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> \ No newline at end of file +</style> \ No newline at end of file -- Gitblit v1.9.3