snow 2 years ago
parent
commit
2a102e9b47

File diff suppressed because it is too large
+ 0 - 0
dist/static/js/0.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.js


+ 1 - 1
src/layout/components/Navbar.vue

@@ -74,7 +74,7 @@
           <router-link to="/person/change-phone">
             <el-dropdown-item>更换手机号</el-dropdown-item>
           </router-link> -->
-          <el-dropdown-item @click.native="visible = true">
+          <el-dropdown-item @click.native="$router.push('/person/change-password')">
             <span style="display: block">修改密码</span>
           </el-dropdown-item>
           <el-dropdown-item @click.native="logout">

+ 17 - 18
src/views/goodStore/goodsOnline/components/online-form.vue

@@ -274,22 +274,6 @@
 import asyncRequest from "@/apis/service/goodStore/goodsOnline";
 import showVoucherModel from "@/components/show-voucher-model";
 import { isAlphanumeric, isnumber, validAlphabets } from "@/utils/validate";
-
-const validate_plat_code = (rule, value, callback) => {
-      if (value === "") {
-        callback(new Error("平台商品编号不能为空!"));
-      } else {
-        if (isnumber(value)) {
-          callback();
-        } else if (validAlphabets(value)) {
-          callback();
-        } else if (isAlphanumeric(value)) {
-          callback();
-        } else {
-          callback("平台商品编号仅支持数字和字母!");
-        }
-      }
- };
     
 export default {
   name: "exam-form",
@@ -346,6 +330,23 @@ export default {
         callback();
       }
     };
+
+    const validate_plat_code = (rule, value, callback) => {
+      if (value === "") {
+        callback(new Error("平台商品编号不能为空!"));
+      } else {
+        if (isnumber(value)) {
+          callback();
+        } else if (validAlphabets(value)) {
+          callback();
+        } else if (isAlphanumeric(value)) {
+          callback();
+        } else {
+          callback("平台商品编号仅支持数字和字母!");
+        }
+      }
+  };
+
     return {
       loading: false,
       companyNo: "",
@@ -440,9 +441,7 @@ export default {
         plat_code: [
           {
             required: true,
-            message: "请输入平台商品编号",
             validator:validate_plat_code
-            // trigger: "blur",
           },
         ],
         remark: [

Some files were not shown because too many files changed in this diff