qianduan 3 月之前
父節點
當前提交
19e1ccc4d5
共有 5 個文件被更改,包括 32 次插入3 次删除
  1. 二進制
      dist.zip
  2. 2 2
      src/utils/request.js
  3. 8 0
      src/views/system/client.js
  4. 14 1
      src/views/system/corporateGovernance.vue
  5. 8 0
      src/views/system/userTable.js

二進制
dist.zip


+ 2 - 2
src/utils/request.js

@@ -9,8 +9,8 @@ import {
   refreshToken
 } from '@/api/login'
 // 创建 axios 实例
-// const Url = "https://coldlogistics.coldbaozhida.com/Cold_Logistic"
-const Url = "http://coldlogisticstest.coldbaozhida.com/Cold_Logistic" //测试
+const Url = "https://coldlogistics.coldbaozhida.com/Cold_Logistic"
+// const Url = "http://coldlogisticstest.coldbaozhida.com/Cold_Logistic" //测试
 const request = axios.create({
   // API 请求的默认前缀
   baseURL: process.env.NODE_ENV === 'production' ? Url : '/api',

+ 8 - 0
src/views/system/client.js

@@ -75,6 +75,10 @@ export const formRules = () => {
       required: true,
       message: '请输入手机号',
       trigger: 'blur'
+    }, {
+      pattern: /^((0\d{2,3}-\d{7,8})|(1[34578]\d{9}))$/,
+      message: '请输入正确手机号',
+      trigger: "blur"
     }]
   }, {
     field: 'newPassword',
@@ -131,6 +135,10 @@ export const formRulesil = () => {
       required: true,
       message: '请输入手机号',
       trigger: 'blur'
+    }, {
+      pattern: /^((0\d{2,3}-\d{7,8})|(1[34578]\d{9}))$/,
+      message: '请输入正确手机号',
+      trigger: "blur"
     }]
   }, ]
 }

+ 14 - 1
src/views/system/corporateGovernance.vue

@@ -20,7 +20,7 @@
           </el-switch>
         </div>
         <div style="margin-top: 30px;">
-          <el-button type="primary" :loading="saveFlag" @click="saveSettings">保存设置</el-button>
+          <el-button type="primary" :disabled="modifyFlag" :loading="saveFlag" @click="saveSettings">保存设置</el-button>
         </div>
       </div>
     </el-card>
@@ -46,6 +46,15 @@
         saveFlag: false,
       }
     },
+    computed: {
+      modifyFlag() {
+        if (this.dialogImageUrl != this.goverList.logo || this.printIntercept != this.goverList.printIntercept) {
+          return false
+        } else {
+          return true
+        }
+      }
+    },
     mounted() {
       this.getList()
     },
@@ -96,6 +105,10 @@
           }).then(res => {
             if (res.code == 200) {
               this.getList()
+              this.$message({
+                message: '操作成功',
+                type: 'success'
+              });
             }
             this.saveFlag = false
           }).catch(() => {

+ 8 - 0
src/views/system/userTable.js

@@ -93,6 +93,10 @@ export const formRules = () => {
       required: true,
       message: '请输入电话号码',
       trigger: 'blur'
+    }, {
+      pattern: /^((0\d{2,3}-\d{7,8})|(1[34578]\d{9}))$/,
+      message: '请输入正确电话号码',
+      trigger: "blur"
     }]
   }, {
     field: 'newPassword',
@@ -161,6 +165,10 @@ export const formRulesil = () => {
       required: true,
       message: '请输入电话号码',
       trigger: 'blur'
+    }, {
+      pattern: /^((0\d{2,3}-\d{7,8})|(1[34578]\d{9}))$/,
+      message: '请输入正确电话号码',
+      trigger: "blur"
     }]
   }, {
     field: 'type',