huk 3 роки тому
батько
коміт
9dc607e165

+ 2 - 2
src/config/routerBefore.js

@@ -105,9 +105,9 @@ const routerBefore = function (router, constantRouterMap) {
     store.commit('breadcrumb', breadcrumbFn(to, store.state.routes));
     //  标题
     if (to.meta && !to.meta.title) {
-      // document.title = titleFn(to, store.state.routes) + ' ' + document.title.substr(document.title.indexOf('-'));
+      document.title = titleFn(to, store.state.routes) + ' ' + document.title.substr(document.title.indexOf('-'));
     } else {
-      // document.title = to.meta.title + ' ' + document.title.substr(document.title.indexOf('-'));
+      document.title = to.meta.title + ' ' + document.title.substr(document.title.indexOf('-'));
     }
     if (to.query.ticket) {
       setCookie('ticket', to.query.ticket, '', '/');

+ 1 - 1
src/views/configManager/app.html

@@ -6,7 +6,7 @@
     <meta name="renderer" content="webkit">
     <meta content="智慧物流平台" name="keywords">
     <meta content="智慧物流平台" name="description">
-    <title>首页1 - 智慧物流平台</title>
+    <title>首页 - 智慧物流平台</title>
     <link href="../static/css/common.css" rel="stylesheet"/>
     <link href="../static/img/favicon.ico" rel="shortcut icon"/>
     <script src="../static/lib/jquery/jquery.min.js" type="text/javascript"></script>

+ 74 - 5
src/views/homepage/components/homepage.vue

@@ -1,15 +1,84 @@
 <template>
-  <div>首页
-      
+  <div>
+    首页
+    <el-button @click="onClick">ces1</el-button>
   </div>
 </template>
 
 <script>
 export default {
-
-}
+  methods: {
+    onClick() {
+      let data = {
+        userId: "",
+        userCode: "A12345",
+        userName: "A12345",
+        qrCode: "",
+        sex: "",
+        age: "",
+        cardNo: "",
+        birthDate: "",
+        nativePlace: "",
+        orgCode: "yunli",
+        orgName: "运力",
+        dep: "",
+        workTeam: "",
+        profilePhoto: "",
+        photo: "",
+        mobile: "13487481520",
+        qq: "",
+        wechat: "",
+        tel: "",
+        email: "213213@qq.com",
+        homeAddr: "",
+        entryDate: "",
+        workDate: "",
+        political: "",
+        title: "",
+        degree: "",
+        major: "",
+        gradSchool: "",
+        ability: "",
+        tranHis: "",
+        certificate: "",
+        special: "",
+        assessment: "",
+        leaveStatus: "",
+        onlineStatus: "",
+        status: "",
+        remark: "",
+        expireDays: "",
+        leave: "",
+        address: "",
+        ip: "",
+        rank: "",
+        responsibility: "",
+        groupData: "",
+        companyData: "",
+        groupId: "506514577756917769",
+        companyId: "713710108567277568",
+        photoType: "",
+        orgId: "922512907093282816",
+      };
+      this.store.dispatch("system/usersManage/addUser", data).then((res) => {
+        console.log(res);
+        if (res.code === "0") {
+          if (this.qrRole.length > 0) {
+            this.addRoleToUser(res.data.userId, res.data.userCode);
+          }
+          if (form.dutys.length > 0) {
+            this.addUserDutys(res.data.userId, form.dutys);
+          }
+          this.$message.success("添加成功");
+          this.$emit("on-then", "success", form);
+        } else {
+          this.$message.error(res.message);
+        }
+      });
+    },
+  },
+};
 </script>
 
 <style>
-
 </style>

+ 1 - 1
src/views/index/app.html

@@ -8,7 +8,7 @@
     <meta content="智慧物流平台" name="description">
     <title>登录 - 智慧物流平台</title>
     <link href="../static/css/common.css" rel="stylesheet"/>
-    <!-- <link href="../static/img/favicon.ico" rel="shortcut icon"/> -->
+    <link href="../static/img/favicon.ico" rel="shortcut icon"/>
     <script src="../static/lib/jquery/jquery.min.js" type="text/javascript"></script>
     <script src="../static/lib/jquery/jquery.PrintArea.js" type="text/javascript"></script>
     <script src="../static/lib/qrcode.min.js" type="text/javascript"></script>

+ 1 - 1
src/views/systemConfig/components/usersAddAndEdit.vue

@@ -616,7 +616,7 @@
                 style="float: right"
                 @click="formSubmit"
                 size="small"
-                >保 存</el-button
+                >保 存1</el-button
               >
               <el-button
                 plain