yuanyiming пре 2 година
родитељ
комит
70f642cb37
4 измењених фајлова са 28 додато и 9 уклоњено
  1. 1 1
      src/api/userApi.js
  2. 4 2
      src/config/config.js
  3. 5 4
      src/views/login.vue
  4. 18 2
      src/views/projectApply/projectApplication.vue

+ 1 - 1
src/api/userApi.js

@@ -6,7 +6,7 @@ axios.defaults.headers.post["Content-Type"]=
          "application/x-www-form-urlencoded";"charset=UTF-8;"
    
     
-axios.defaults.baseURL='http://10.3.16.76:2004'  //接口地址
+// axios.defaults.baseURL='http://10.3.16.76:2004'  //接口地址
 
 // 请求拦截
 axios.interceptors.request.use(

+ 4 - 2
src/config/config.js

@@ -1,5 +1,6 @@
 import Vue from 'vue'
 import Vuex from 'vuex'
+// import createPersistedState from 'vuex-persistedstate'
 
 Vue.use(Vuex)
 
@@ -13,14 +14,15 @@ const store = new Vuex.Store({
         // api: 'https://pbl.cocorobo.cn/api/pbl/',
         // socket: "https://poll.cocorobo.cn",
         // socket: "http://localhost:1473",
-        api: 'http://localhost:7003/api/',
+        api: 'http://10.3.16.226:7003/api/',
     },
 
     mutations: {
         update(state, [key, value]) {
             state[key] = value;
         },
-    }
+    },
+//   plugins:[createPersistedState()]
 })
 
 export default store

+ 5 - 4
src/views/login.vue

@@ -50,22 +50,23 @@
                     </div>
                 </div>
                 <p class="loginTab1ContentText">
-                    <a href="">忘记绑定邮箱、手机号,请点击提示</a>
+                    <a href="#">忘记绑定邮箱、手机号,请点击提示</a>
                 </p>
                 <el-button type="success" class="btn" @click="login">登录</el-button>
                 <p class="loginTab1ContentText">
-                    <a href="">忘记密码?</a>
+                    <a href="#">忘记密码?</a>
                 </p>
                 <el-divider style="color:#999999">社交账号登陆</el-divider>
                 <div class="loginTab1ContentQqWei">
                     <p>
-                        <a href=""><img src="@/assets/img/qq.png" alt=""></a>
-                        <a href=""><img src="@/assets/img/weixin.png" alt=""></a>
+                        <a href="#"><img src="@/assets/img/qq.png" alt=""></a>
+                        <a href="#"><img src="@/assets/img/weixin.png" alt=""></a>
                     </p>
                 </div>
             </div>
             <!-- 账户登录结束 -->
 
+
             <!-- 动态码登录 -->
             <div class="loginTab1wayContent" v-show="isShow==2">
                 <div class="loginTab1wayContentInp">

+ 18 - 2
src/views/projectApply/projectApplication.vue

@@ -146,7 +146,7 @@
                         <el-button type="primary"  size="mini" @click="paApply">查看详情</el-button>
                         <el-button type="primary"  size="mini" @click="audit">{{(status==-1?"审核": status?"撤回":"审核")}}</el-button>
                         <el-button type="primary"  size="mini" @click="edit(scope)" >申请表</el-button>
-                        <el-button type="primary"  size="mini">删除</el-button>
+                        <el-button type="primary"  size="mini" @click="del">删除</el-button>
                       <!-- </el-link> -->
                   <!-- </el-button> -->
               </div>
@@ -348,7 +348,23 @@
         //         console.log(err);
         //       })  
         },
-
+        del() {
+          this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
+            confirmButtonText: '确定',
+            cancelButtonText: '取消',
+            type: 'warning'
+          }).then(() => {
+            this.$message({
+              type: 'success',
+              message: '删除成功!'
+            });
+          }).catch(() => {
+            this.$message({
+              type: 'info',
+              message: '已取消删除'
+            });          
+          });
+        }
       },
       watch:{
           value:{