Browse Source

auto commit

gcz 3 years ago
parent
commit
55a8707cf5
5 changed files with 17 additions and 4 deletions
  1. 1 1
      .env.production
  2. 7 0
      src/components/applys.vue
  3. 2 1
      src/store/index.js
  4. 1 0
      src/views/Home.vue
  5. 6 2
      src/views/applicant.vue

+ 1 - 1
.env.production

@@ -2,4 +2,4 @@
 NODE_ENV = production
 
 # 生产环境
-VUE_APP_BASE_API = '/company-api'
+VUE_APP_BASE_API = 'http://172.16.90.64:7200/company/'

+ 7 - 0
src/components/applys.vue

@@ -59,6 +59,7 @@
                 item.interviewTime &&
                 item.status < 60
               "
+              @click.stop="sendvideo(item)"
               >发起视频面试</span
             >
             <span
@@ -328,6 +329,12 @@ export default {
         });
       }
     },
+    sendvideo(item) {
+      let url = `http://172.16.90.25:8081/#/?veteMemberId=${item.veteMemberId}&inviterId=${this.$store.state.vuex_company_id}`;
+      console.log("url", url);
+      window.open(url, "_blank");
+      console.log("sendvideo", item);
+    },
   },
 };
 </script>

+ 2 - 1
src/store/index.js

@@ -14,7 +14,7 @@ try {
 }
 
 // 需要永久存储,且下次APP启动需要取出的,在state中的变量名
-let saveStateKeys = ['vuex_user', 'vuex_token', 'vuex_name'];
+let saveStateKeys = ['vuex_user', 'vuex_token', 'vuex_name', 'vuex_company_id'];
 
 // 保存变量到本地存储中
 const saveLifeData = function (key, value) {
@@ -38,6 +38,7 @@ const store = new Vuex.Store({
     // 如果vuex_version无需保存到本地永久存储,无需lifeData.vuex_version方式
     vuex_version: '1.0.1',
     vuex_name: '',
+    vuex_company_id: '',
     vuex_token: '',
   },
   mutations: {

+ 1 - 0
src/views/Home.vue

@@ -266,6 +266,7 @@ export default {
           this.companyInfo = res.data;
           console.log("getCompanyInfo", res);
           this.$mc.vuex("vuex_name", res.data.userName);
+          this.$mc.vuex("vuex_company_id", res.data.id);
           this.companyLogo = res.data.logoFileList[0]?.filesUrl;
           this.companyImg = res.data.companyfileList;
         })

+ 6 - 2
src/views/applicant.vue

@@ -317,7 +317,9 @@ export default {
               message: res.msg,
               type: "success",
               duration: 1000,
-              onClose: function () {},
+              onClose: function () {
+                this.dialogVisible = false;
+              },
             });
             // console.log("updateStatus", res);
           });
@@ -351,7 +353,9 @@ export default {
             message: res.msg,
             type: "success",
             duration: 1000,
-            onClose: function () {},
+            onClose: function () {
+              this.dialogVisible = false;
+            },
           });
           // console.log("updateStatus", res);
         })