From 0ecf7b3bc6d6a008a804d55c859833bf2cf6473a Mon Sep 17 00:00:00 2001 From: zmc <zmc_li@foxmail.com> Date: 星期三, 22 十一月 2023 10:06:29 +0800 Subject: [PATCH] 1.增加了有效率异常展示页面 2.风险模型的所属场景和运维商的详细信息,以及1个跳转页面链接 3.飞行巡检页面增加增加地址和运维商的筛选条件 4.飞行巡检页面是最新当日日期时,每类异常右上角增加一个“辅助审核” 5.历史数据管理增加 站点总数 --- src/views/pass_login/LoginAndGetData.vue | 51 +++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 49 insertions(+), 2 deletions(-) diff --git a/src/views/pass_login/LoginAndGetData.vue b/src/views/pass_login/LoginAndGetData.vue index e848234..f6297e5 100644 --- a/src/views/pass_login/LoginAndGetData.vue +++ b/src/views/pass_login/LoginAndGetData.vue @@ -1,4 +1,4 @@ -<script> +<!-- <script> export default { data() { return{ @@ -22,4 +22,51 @@ <style scoped> -</style> \ No newline at end of file +</style> --> +<script> export default { + data() { + return { + form: { + name: '', + mnCode:'' +}, + siteData: [] // 淇濆瓨鎵�鏈夌珯鐐瑰悕鍜岃澶囩紪鍙风殑鏁版嵁 }; +}, + + mounted() { + this.loadAllSites(); + + }, + + methods: { + + + loadAllSites() { + this.$http.get('/dust/sitename').then((response) => { + this.siteData = response.data.data; +}); + +}, + + onSiteNameSelected(siteName) { + + const selectedSite = this.siteData.find((site) => site.siteName === siteName); + + if (selectedSite) { + this.form.mnCode = selectedSite.mnCode; + } + // 濡傛灉娌℃湁鎵惧埌瀵瑰簲鐨勮澶囩紪鍙凤紝娓呯┖mnCode + else + { this.form.mnCode = ''; + + +} } +} , + watch: { + 'form.name'(newValue) { + this.onSiteNameSelected(newValue); + } } } + +} +} + -- Gitblit v1.9.3