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

+ 1 - 1
src/views/activityManage/makerActvityDetails.vue

@@ -86,7 +86,7 @@
             </div>
             <div style="width: 85%" v-loading="loading" element-loading-text="文件正在上传中">
               <div style="display: flex;width: 100%;flex-direction: column;">
-                  <div class="download" v-for="item in tableData.reportFile">
+                  <div class="download" v-for="item in tableData.reportFile" :key="item.fid">
                       <span>{{ item.fileName }}</span>
                       <div class="downloadBtn">
                         <el-button type="primary" size="mini" @click="download(item)">下载文件</el-button>

+ 13 - 14
src/views/projectManage/ProjectManagement3_1.vue

@@ -135,7 +135,6 @@
       </div>
       <div class="textArea">
         <vue-editor  :editorToolbar="customToolbar" v-model="textareaS[0]"></vue-editor>
-
       </div>
       <div class="tabTit">
             <div><p>预期目标</p></div>
@@ -263,7 +262,7 @@
                 }).then(res=>{
                   if(!res.data[0][0])return this.$message.error("错误")
                   let data = res.data[0][0];
-                  // console.log(data);
+                  console.log(data);
                   this.selects.projectName=data.title;
                   this.selects.fund=data.money;
                   this.selects.leader=data.pro_leader;
@@ -336,18 +335,18 @@
 
                     const param = {
                       uid:this.$store.state.userInfo.userid,
-                      aid:data.acId,
-                      tit:data.title,
-                      con:data.brief,
-                      leader:data.pro_leader,
-                      mon:data.money,
-                      stu:data.students,
-                      teacher:JSON.stringify(data.course_teacher),
-                      chap:JSON.stringify(data.chapters),
-                      pid:data.pid,
-                      cid:data.classid,
-                      ph:data.phone,
-                      beginTime:JSON.stringify(data.begin_at)
+                      aid:this.$route.query["Id"],
+                      tit:this.selects.projectName,
+                      con:this.selects.department,
+                      leader:this.selects.leader,
+                      mon:this.selects.fund,
+                      stu:this.selects.studentNum,
+                      teacher:JSON.stringify(this.tableData),
+                      chap:JSON.stringify(this.textareaS),
+                      pid:JSON.parse(localStorage.getItem('pid')),
+                      cid:'',
+                      ph:this.selects.tel,
+                      beginTime:JSON.stringify(this.selects.beginDate)
                     }
                     // console.log(param)
                     // return;