yuanyiming пре 2 година
родитељ
комит
df9bbbb6cf

+ 4 - 3
src/App.vue

@@ -3,7 +3,7 @@
       <el-header v-if="$route.meta.isAuth">
         <img src="./assets/img/sclogo3.png" alt="">
         <div class="homeExitContent">
-          <div>袁一鸣</div>
+          <div>{{ $store.state.userInfo.tname }}</div>
           <div class="homeExit" @click="homeExit">退出</div>
         </div>
       </el-header>
@@ -57,12 +57,13 @@
         .homeExitContent{
           color: #fff;
           display: flex;
-          justify-content: space-between;
-          width: 150px;
+          justify-content:flex-end;
+          width: 300px;
           .homeExit{
             background: #ffffff;
             color: #000;
             cursor: pointer;
+            margin-left: 15px;
             width: 90px;
           }
         }

+ 2 - 0
src/api/userApi.js

@@ -7,6 +7,8 @@ axios.defaults.headers.post["Content-Type"]=
    
     
 // axios.defaults.baseURL='http://10.3.16.76:2004'  //接口地址
+// axios.defaults.baseURL='http://localhost:5005'  //接口地址
+
 
 // 请求拦截
 axios.interceptors.request.use(

+ 11 - 1
src/config/config.js

@@ -8,13 +8,23 @@ const store = new Vuex.Store({
     state: {
         isLogin: false,
         luyou: 1,
-        userInfo: {},
+        userInfo: {
+                userid:"55f791b7-be42-11ed-b8f7-509a4c5b67cf",
+                username:"test@qq.com",
+                sessionid:null,
+                type:1,
+                tname:"测试账号",
+                classid:"",
+                state:0,
+        },
         nCount: 0,
         report: "",
         // api: 'https://pbl.cocorobo.cn/api/pbl/',
         // socket: "https://poll.cocorobo.cn",
         // socket: "http://localhost:1473",
         api: 'http://10.3.16.226:7003/api/',
+        // api: 'http://localhost:5005',
+
     },
 
     mutations: {

+ 28 - 16
src/views/messageNotification.vue

@@ -78,7 +78,7 @@
       <div class="addDialogMid">
         <div class="addDialogTit">
           <span>通知标题</span>
-          <el-input v-model="input" placeholder="请输入内容"></el-input>
+          <el-input v-model="addMess.tit" placeholder="请输入内容"></el-input>
         </div>
         <div class="addDialogTit addDialogCon">
           <span>通知内容</span>
@@ -87,12 +87,12 @@
             :rows="10"
             resize="none"
             placeholder="请输入内容"
-            v-model="textarea">
+            v-model="addMess.con">
           </el-input>
         </div>
       </div>
       <span slot="footer" class="dialog-footer">
-        <el-button type="primary" @click="init" class="btn5">确认添加</el-button>
+        <el-button type="primary" @click="confirmAdd" class="btn5">确认添加</el-button>
         <el-button @click="init" class="btn5">取 消</el-button>
       </span>
     </el-dialog>
@@ -156,16 +156,12 @@
           dialogVisible1:false,
           dialogVisible2:false,
           input:'',
-          options:[],
-          options1:[],
-          options2:[],
-          options3:[],
-          options4:[],
+         
           tableData:[{
           projectName:'创业孵化基地企业情况信息表',
           date:'2022-11-12 10:18',
           size:'50k',
-          founder:'黄猿'
+          founder:'黄猿',
         },
         {
           projectName:'创业孵化基地企业情况信息表',
@@ -175,14 +171,13 @@
 
         }
         ],
-          pavalues:{
-            value:'',
-            value1:'',
-            value2:'',
-            value3:'',
-            value4:'',
+         
+          addMess:{
+            tit:'',
+            con:''
           }
         }
+        
       },
       methods:{
         del(){
@@ -191,7 +186,7 @@
         },
         init(){
           //重置
-       
+          
           console.log(this.textarea)
           console.log(this.input)
           if(this.textarea==''||this.input=='')return;
@@ -210,6 +205,23 @@
         addMessage(){
           this.dialogVisible=true;
         },
+        confirmAdd(){
+            let param ={
+              uid:this.$store.state.userInfo.userid,
+              title:this.addMess.tit,
+              brief:this.addMess.con,
+            }
+            console.log(param)
+            this.ajax
+                .post(this.$store.state.api+"/CreateNewNotification",param)
+                .then(res=>{
+                    console.log(res);
+                    // this.init()
+                },err=>{
+                  console.log(err);
+                })
+
+        },
         lookIntro(){
           this.dialogVisible2=true;
         }

+ 15 - 3
src/views/projectApply/projectApplication.vue

@@ -80,12 +80,12 @@
         class="fontSize"
         :header-cell-style="{ background: '#f2f2f2',color:'#000' }"
         @selection-change="handleSelectionChange">
-
+<!-- 
         <el-table-column
           type="selection"
           width="25"
           >
-        </el-table-column>
+        </el-table-column> -->
         <el-table-column
           prop="projectName"
           label="项目名称"
@@ -269,6 +269,8 @@
 </template>
 
 <script>
+import axios from 'axios';
+
     export default {
       data() {
         return {
@@ -305,7 +307,17 @@
       },
       methods:{
         getAccountListByPage(){
-               
+
+              //  axios.post(this.$store.state.api+"/a",{}).then(res=>{
+              //   console.log(res)
+              //  })
+               this.ajax
+                    .get()
+                    .then(res=>{
+
+                    },err=>{
+                      console.log(err);
+                    })
         },          
         init(){
           this.dialogVisible=false;