From bb55f090eef87aaeb40a4f317644ae5bab29246a Mon Sep 17 00:00:00 2001
From: Xu Zhimeng <xuzhimeng@qq.com>
Date: Tue, 16 May 2023 10:14:27 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20id=E6=94=B9=E4=B8=BA=E5=89=8D=E7=AB=AF?=
 =?UTF-8?q?=E8=BE=93=E5=85=A5=EF=BC=8C=E4=BC=98=E5=8C=96=E9=83=A8=E5=88=86?=
 =?UTF-8?q?=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/components/layouts/UserLayout.vue | 16 +---------------
 src/components/page/GlobalLayout.vue  | 11 +++++++----
 src/style.less                        | 11 ++++++++++-
 src/views/system/DetectorInfo.vue     |  5 ++++-
 src/views/system/NuclearFacility.vue  | 21 +++++++++++++++++++--
 src/views/system/stationList.vue      |  4 ++++
 src/views/user/Login.vue              | 10 ----------
 7 files changed, 45 insertions(+), 33 deletions(-)

diff --git a/src/components/layouts/UserLayout.vue b/src/components/layouts/UserLayout.vue
index a0281dc..97feae6 100644
--- a/src/components/layouts/UserLayout.vue
+++ b/src/components/layouts/UserLayout.vue
@@ -5,26 +5,12 @@
         <div class="header">
           <a href="/">
             <img src="~@/assets/logo.png" class="logo" alt="logo">
-            <span class="title">Jeecg Boot</span>
+            <span class="title">核素监测数据自动处理与交互分析系统</span>
           </a>
         </div>
-        <div class="desc">
-          Jeecg Boot 是中国最具影响力的 企业级 低代码平台
-        </div>
       </div>
 
       <route-view></route-view>
-
-      <div class="footer">
-        <div class="links">
-          <a href="http://doc.jeecg.com" target="_blank">帮助</a>
-          <a href="https://github.com/zhangdaiscott/jeecg-boot" target="_blank">隐私</a>
-          <a href="https://github.com/zhangdaiscott/jeecg-boot/blob/master/LICENSE" target="_blank">条款</a>
-        </div>
-        <div class="copyright">
-          Copyright &copy; 2019 <a href="http://www.jeecg.com" target="_blank">JEECG开源社区</a> 出品
-        </div>
-      </div>
     </div>
   </div>
 </template>
diff --git a/src/components/page/GlobalLayout.vue b/src/components/page/GlobalLayout.vue
index 268413e..df90da5 100644
--- a/src/components/page/GlobalLayout.vue
+++ b/src/components/page/GlobalLayout.vue
@@ -663,14 +663,17 @@
   }
 
   .sub-menus {
+    border-top: 1px solid rgba(12, 235, 201, .3);
+    border-bottom: 1px solid rgba(12, 235, 201, .3);
     margin-bottom: 16px;
+    padding: 5px 10px;
+    background-color: rgba(12, 235, 201, .05);
+    overflow: auto;
     .ant-menu {
-      font-size: 16px;
-      background: rgba(12, 235, 201, .05);
       border-bottom: none;
-      height: 40px;
+      font-size: 16px;
       line-height: normal;
-      padding-top: 5px;
+      background-color: transparent;
       .ant-menu-item {
         background: rgba(58, 236, 240, .22) !important;
         border-bottom: none !important;
diff --git a/src/style.less b/src/style.less
index 2dd5fdd..4edc2c1 100644
--- a/src/style.less
+++ b/src/style.less
@@ -71,7 +71,7 @@ body {
     }
   }
   &-placeholder {
-    background-color: transparent;
+    background-color: @modalBg;
     border-top: none;
     border-bottom: none;
   }
@@ -582,6 +582,15 @@ body {
   background-color: #15494c !important;
 }
 
+#userLayout {
+  .container {
+    background-color: @modalBg !important;
+    .title {
+      color: #fff !important;
+    }
+  }
+}
+
 ::-webkit-scrollbar-track {
   background-color: #15494c !important;
 }
diff --git a/src/views/system/DetectorInfo.vue b/src/views/system/DetectorInfo.vue
index d86d07a..a33b468 100644
--- a/src/views/system/DetectorInfo.vue
+++ b/src/views/system/DetectorInfo.vue
@@ -52,8 +52,10 @@
         :colon="false"
         :labelCol="{ style: { width: '115px' } }"
         :wrapperCol="{ style: { width: '300px' } }"
-        autocomplete="off"
       >
+        <a-form-model-item label="Detector Id" prop="detectorId">
+          <a-input v-model="model.detectorId" type="number"></a-input>
+        </a-form-model-item>
         <a-form-model-item label="Detector Code" prop="detectorCode">
           <a-input v-model="model.detectorCode"></a-input>
         </a-form-model-item>
@@ -193,6 +195,7 @@ export default {
     return {
       queryParam: {},
       rules: {
+        detectorId: [{ required: true, message: 'Please Enter Detector Id' }],
         detectorCode: [{ required: true, validator: validateDetectorCode }],
         moddate: [{ required: true, message: 'Please Select Moddate' }]
       },
diff --git a/src/views/system/NuclearFacility.vue b/src/views/system/NuclearFacility.vue
index 616b55e..bb3aeb0 100644
--- a/src/views/system/NuclearFacility.vue
+++ b/src/views/system/NuclearFacility.vue
@@ -53,6 +53,9 @@
         :labelCol="{ style: { width: '105px' } }"
         :wrapperCol="{ style: { width: '300px' } }"
       >
+        <a-form-model-item label="Facility Id" prop="facilityId">
+          <a-input v-model="model.facilityId" type="number"></a-input>
+        </a-form-model-item>
         <a-form-model-item label="Facility Name" prop="facilityName">
           <a-input v-model="model.facilityName"></a-input>
         </a-form-model-item>
@@ -145,6 +148,7 @@ export default {
     return {
       queryParam: {},
       rules: {
+        facilityId: [{ required: true, message: 'Please Enter Facility Id' }],
         facilityName: [{ required: true, message: 'Please Enter Facility Name' }]
       },
       url: {
@@ -165,13 +169,26 @@ export default {
       if (this.selectedRowKeys && this.selectedRowKeys.length) {
         this.isAdd = false
         this.visible = true
-        const find = this.dataSource.find(item => item.id === this.selectedRowKeys[0])
+        const find = this.dataSource.find(item => item.facilityId === this.selectedRowKeys[0])
         this.model = cloneDeep(find)
       } else {
         this.$message.warn('Please Select An Item To Edit')
       }
     },
-    onDel() {}
+    onDel() {
+      if (this.selectedRowKeys && this.selectedRowKeys.length) {
+        this.$confirm({
+          title: 'Do You Want To Delete This Item?',
+          okText: 'OK',
+          cancelText: 'Cancel',
+          onOk: () => {
+            this.handleDelete(this.selectedRowKeys[0])
+          }
+        })
+      } else {
+        this.$message.warn('Please Select An Item To Delete')
+      }
+    }
   }
 }
 </script>
diff --git a/src/views/system/stationList.vue b/src/views/system/stationList.vue
index e84b300..ccbec42 100644
--- a/src/views/system/stationList.vue
+++ b/src/views/system/stationList.vue
@@ -54,6 +54,9 @@
         :wrapperCol="{ style: { width: '300px' } }"
         autocomplete="off"
       >
+        <a-form-model-item label="Station Id" prop="stationId">
+          <a-input v-model="model.stationId" type="number"></a-input>
+        </a-form-model-item>
         <a-form-model-item label="Station Code" prop="stationCode">
           <a-input v-model="model.stationCode"></a-input>
         </a-form-model-item>
@@ -181,6 +184,7 @@ export default {
     return {
       queryParam: {},
       rules: {
+        stationId: [{ required: true, message: 'Please Enter Station Id' }],
         stationCode: [{ required: true, validator: validateStationCode }],
         countryCode: [{ validator: validateCountryCode }]
       },
diff --git a/src/views/user/Login.vue b/src/views/user/Login.vue
index 150bdb9..e9b7be4 100644
--- a/src/views/user/Login.vue
+++ b/src/views/user/Login.vue
@@ -13,12 +13,6 @@
 
       <a-form-model-item>
         <a-checkbox @change="handleRememberMeChange" default-checked>自动登录</a-checkbox>
-        <router-link :to="{ name: 'alteration'}" class="forge-password" style="float: right;">
-          忘记密码
-        </router-link>
-        <router-link :to="{ name: 'register'}" class="forge-password" style="float: right;margin-right: 10px" >
-          注册账户
-        </router-link>
       </a-form-model-item>
 
       <a-form-item style="margin-top:24px">
@@ -27,10 +21,6 @@
       </a-form-item>
 
     </a-form-model>
-
-    <two-step-captcha v-if="requiredTwoStepCaptcha" :visible="stepCaptchaVisible" @success="stepCaptchaSuccess" @cancel="stepCaptchaCancel"></two-step-captcha>
-    <login-select-tenant ref="loginSelect" @success="loginSelectOk"></login-select-tenant>
-    <third-login ref="thirdLogin"></third-login>
   </div>
 </template>