Browse Source

新主线关卡

cm 2 months ago
parent
commit
8555fcb054
3 changed files with 11 additions and 4 deletions
  1. 2 2
      src/api/request.ts
  2. 6 1
      src/components/player/playerInfo/index.vue
  3. 3 1
      src/views/player/index.vue

+ 2 - 2
src/api/request.ts

@@ -69,8 +69,8 @@ service.interceptors.request.use((config: AxiosRequestConfig) => {
     const userStore = useUserStore();
     const token: string = userStore.token;
 
-    console.log(userStore.username);
-
+    console.log(token);
+    
 
     // 自定义请求头
     config.headers['userName'] = userStore.username

+ 6 - 1
src/components/player/playerInfo/index.vue

@@ -70,6 +70,10 @@
                 <el-form-item label="最近登出" prop="luTm">
                     <el-input v-model="ruleForm.luTm" :disabled="true" />
                 </el-form-item>
+
+                <el-form-item label="新主线" prop="lps">
+                    <el-input v-model="ruleForm.lps"  />
+                </el-form-item>
             </el-form-item>
 
             <el-form-item>
@@ -97,7 +101,8 @@ const submitForm = () => {
         playerId: props.ruleForm.id,
         name: props.ruleForm.nm,
         playerLv: props.ruleForm.lv,
-        srvId:props.ruleForm.gId
+        srvId:props.ruleForm.gId,
+        newStage:props.ruleForm.lps
     }
     playerApi.editPlayerInfo(data).then((resp) => {
         let result = resp.data.result;

+ 3 - 1
src/views/player/index.vue

@@ -107,7 +107,8 @@ const ruleForm = reactive({
   aby: '',
   ctm: '',
   llTm: '',
-  luTm: ''
+  luTm: '',
+  lps:''
 });
 
 const its = reactive([]);
@@ -149,6 +150,7 @@ const onSubmit = async () => {
     ruleForm.aby = jsonData.aby == null ? 0 : jsonData.aby;
     ruleForm.ctm = jsonData.ctm == null ? '无' : formatDate(new Date(jsonData.ctm * 1000), 'yyyy-MM-dd hh:mm:ss');
     ruleForm.llTm = jsonData.llTm == null ? '无' : formatDate(new Date(jsonData.llTm * 1000), 'yyyy-MM-dd hh:mm:ss');
+    ruleForm.lps = jsonData.lps;
     if (jsonData.luTm == 0) {
       ruleForm.luTm = '在线'
     } else {