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/setting/SetConfiguration.vue |  137 ++++++++++++++++++++++++++++++---------------
 1 files changed, 91 insertions(+), 46 deletions(-)

diff --git a/src/views/setting/SetConfiguration.vue b/src/views/setting/SetConfiguration.vue
index dcf7ae3..138de34 100644
--- a/src/views/setting/SetConfiguration.vue
+++ b/src/views/setting/SetConfiguration.vue
@@ -1,62 +1,107 @@
 <script>
-import DustRadarChart from '../../sfc/DustRadarChart.vue';
-import TimeSelectWithShortCuts from '../../sfc/TimeSelectWithShortCuts.vue'
-import dayjs from 'dayjs';
-  export default {
-    components :{
-    // DustRadarChart,
-    // TimeSelectWithShortCuts
+import TimeSelectWithShortCuts from '@/sfc/TimeSelectWithShortCuts.vue'
+import settingApi from '@/api/data_access_setting/settingApi.js'
+import dayjs from 'dayjs'
+import { ElMessage } from 'element-plus'
+// import exceptionApi from '@/api/exceptionApi.js'
+
+export default {
+  components: {
+    TimeSelectWithShortCuts
   },
-    data() {
-      return{
+  data() {
+    return {
+      // 鍖哄煙
+      radio: 0,
+      // 瀹氭椂
+      radio1: '',
+      beginTime: '',
+      endTime: '',
 
-      }
+      // a :[],
+      // exception: {
+      //   // 鏂數鎴栨柇缃�
+      //   exception0: [],
+      //   // 鏁版嵁瓒呬綆
+      //   exception1: [],
+      //   // 瓒呮爣
+      //   exception2: [],
+      //   // 鏁版嵁闀挎椂娈垫棤娉㈠姩
+      //   exception3: [],
+      //   // 閲忕骇绐佸彉寮傚父
+      //   exception4: [],
+      // }
+    }
+  },
+  mounted() {
+    // this.get()
+    // this.getAll()
+    console.log('鏃堕棿',new Date().getMilliseconds()); 
+  },
+  methods: {
+    giveTime(val) {
+      //灏嗕腑鍥芥爣鍑嗘椂闂磋浆涓烘寚瀹氭牸寮�(璇ョ粍浠惰繑鍥炵殑鏍囧噯鏃堕棿鐨勬牸寮忥紝鎵�浠ュ繀椤荤殑鍔犺繖涓嚱鏁�)
+      this.beginTime = dayjs(val[0]).format('YYYY-MM-DD HH:mm:ss')
+      this.endTime = dayjs(val[1]).format('YYYY-MM-DD HH:mm:ss')
     },
-    mounted() {
-
+    set() {
+      const params = {}
+      params.user = 'admin'
+      params.beginTime = this.beginTime
+      params.endTime = this.endTime
+      params.region = '閲戝北'
+      params.isRegularTime = this.radio1
+      settingApi.submitSetting(params).then((res) => {
+        if (res.data.code == 1) {
+          ElMessage.success('璁剧疆鎴愬姛')
+        } else {
+          ElMessage('璁剧疆澶辫触')
+        }
+      })
     },
-    methods: {
- 
-     }
+  
+  }
 }
 </script>
 
 <template>
-  <div>
-    <DustRadarChart></DustRadarChart>
-  </div>
+  <el-card> 
+  <el-form>
+    <div>鐢熸垚閰嶇疆鏂囦欢</div>
+    <el-form-item label="鍖哄煙锛�">
+      <el-radio-group v-model="radio">
+        <el-radio :label="0">閲戝北</el-radio>
+      </el-radio-group>
+    </el-form-item>
+    <el-form-item>
+      <TimeSelectWithShortCuts @submit-time="giveTime"></TimeSelectWithShortCuts>
+    </el-form-item>
 
-  <!-- <div class="container">
-    <el-space wrap :size="20" >
-      <el-card v-for="i in 6" :key="i">
-        111
-      </el-card>
-    </el-space>
-    <el-card v-for="i in 5" :key="i">
-        111
-    </el-card>
-    <el-card>
-      22
-    </el-card>
+    <el-form-item label="鏄惁瀹氭椂锛�">
+      <el-radio-group v-model="radio1">
+        <el-radio label="1" size="large">鏄�</el-radio>
+        <el-radio label="2" size="large">鍚�</el-radio>
+      </el-radio-group>
+    </el-form-item>
 
-  </div> -->
+    <el-form-item> <el-button type="success" @click="set">璁剧疆</el-button></el-form-item>
+  </el-form>
+  <correct theme="outline" size="24" fill="#333"/>
 
+</el-card>
 </template>
 
-<style  scoped>
-
-.container {
-  margin: 20px 20px;
-  display: flex;
-  flex-flow: row wrap;
-  gap: 20px;
-  height: 100%;
-}
+<style scoped>
 .el-card {
- min-width: 500px;
-  min-height: 400px;
-  flex: 1 200px;
-  /* flex: 1; */
- 
+  margin: 10px;
 }
-</style>
\ No newline at end of file
+div {
+  margin-bottom: 10px;
+  color: #333333;
+}
+:deep(.el-form-item__label) {
+  font-weight: bold;
+  font-size: 16px;
+  color: #333333;
+}
+</style>

--
Gitblit v1.9.3