Commit 7f6eb1c5 by cmosquito

修改了学员详情上传凭证刷新问题

parent 9a8608a9
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<span class="fuck">{{ item.auditSchool }}</span> <span class="fuck">{{ item.auditSchool }}</span>
</div> </div>
<div class="box"> <div class="box">
<el-button size="mini" @click="editCourseTitle(index)" <el-button size="mini" @click="editCourseTitle(index,item.costTagId)"
>编辑</el-button >编辑</el-button
> >
</div> </div>
...@@ -413,7 +413,7 @@ ...@@ -413,7 +413,7 @@
<el-input v-model="courseTitle.teachWay" clearable> </el-input> <el-input v-model="courseTitle.teachWay" clearable> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="审课大学" :label-width="formLabelWidth"> <el-form-item label="审课大学" :label-width="formLabelWidth">
<el-input v-model="courseTitle.auditSchool" clearable> </el-input> <el-input v-model="courseTitle.auditSchool" clearable disabled> </el-input>
</el-form-item> </el-form-item>
</div> </div>
</el-form> </el-form>
...@@ -872,7 +872,9 @@ export default { ...@@ -872,7 +872,9 @@ export default {
courseTitle: { courseTitle: {
auditSchool: "", auditSchool: "",
auditSenior: "", auditSenior: "",
teachWay: "" teachWay: "",
costTagId:"",
userId:""
}, },
editListItem: {}, editListItem: {},
goOnForm: { userCourseList: [] }, goOnForm: { userCourseList: [] },
...@@ -1019,6 +1021,7 @@ export default { ...@@ -1019,6 +1021,7 @@ export default {
}); });
}, },
submitEditCourseTitleForm() { submitEditCourseTitleForm() {
console.log(this.courseTitle,this.courseTitle.userId,this.courseTitle.costTagId,'title');
this.$confirm("是否要提交", "提示", { this.$confirm("是否要提交", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
...@@ -1179,16 +1182,17 @@ export default { ...@@ -1179,16 +1182,17 @@ export default {
}); });
}); });
}, },
editCourseTitle(index) { editCourseTitle(index,costTagId) {
// this.courseTitle = this.courseList[index]; // this.courseTitle = this.courseList[index];
this.courseTitle.costTagId = costTagId;
this.courseTitle.id = this.courseList[index].id; this.courseTitle.id = this.courseList[index].id;
this.courseTitle.auditSenior = this.courseList[index].auditSenior; this.courseTitle.auditSenior = this.courseList[index].auditSenior;
this.courseTitle.teachWay = this.courseList[index].teachWay; this.courseTitle.teachWay = this.courseList[index].teachWay;
this.courseTitle.auditSchool = this.courseList[index].auditSchool; this.courseTitle.auditSchool = this.courseList[index].auditSchool;
this.courseTitle.userId = this.userId
this.editCourseTitleVisible = true; this.editCourseTitleVisible = true;
// courseList[courseTitleIndex] // courseList[courseTitleIndex]
// console.log(this.courseTitle, "6666666666666"); // console.log(this.courseTitle,index,costTagId, "6666666666666");
}, },
goOn(index) { goOn(index) {
this.goOnVisible = true; this.goOnVisible = true;
...@@ -1322,6 +1326,7 @@ export default { ...@@ -1322,6 +1326,7 @@ export default {
margin: 15px; margin: 15px;
} }
.courseList { .courseList {
margin-bottom: 30px;
.costTag { .costTag {
span { span {
border: 3px solid #3498db; border: 3px solid #3498db;
......
...@@ -498,7 +498,7 @@ export default { ...@@ -498,7 +498,7 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 999 pageSize: 999
}).then(res => { }).then(res => {
// console.log(res.data.list, "getAllPayCode"); console.log(res.data.list, "getAllPayCode");
res.data.list.forEach(item => { res.data.list.forEach(item => {
let obj = {}; let obj = {};
obj.label = item.costTag; obj.label = item.costTag;
......
...@@ -228,28 +228,28 @@ export default { ...@@ -228,28 +228,28 @@ export default {
return item.url !== file.url; return item.url !== file.url;
}); });
this.LOPfileList = arr; this.LOPfileList = arr;
console.log(this.LOPfileList, "this.LOPfileList"); // console.log(this.LOPfileList, "this.LOPfileList");
}, },
handleLOPSuccess(res, file, fileList) { handleLOPSuccess(res, file, fileList) {
let arr = {}; let arr = {};
arr.url = res.data.url; arr.url = res.data.url;
this.LOPfileList.push(arr); this.LOPfileList.push(arr);
console.log(this.LOPfileList, "this.LOPfileList"); // console.log(this.LOPfileList, "this.LOPfileList");
}, },
handlecreditRemove(file, fileList) { handlecreditRemove(file, fileList) {
let arr = this.creditfileList.filter(item => { let arr = this.creditfileList.filter(item => {
return item.url !== file.url; return item.url !== file.url;
}); });
this.creditfileList = arr; this.creditfileList = arr;
console.log(this.creditfileList, "this.creditfileList"); // console.log(this.creditfileList, "this.creditfileList");
}, },
handlecreditSuccess(res, file, fileList) { handlecreditSuccess(res, file, fileList) {
let arr = {}; let arr = {};
arr.url = res.data.url; arr.url = res.data.url;
this.creditfileList.push(arr); this.creditfileList.push(arr);
console.log(this.creditfileList, "this.creditfileList"); // console.log(this.creditfileList, "this.creditfileList");
}, },
submitForm() { submitForm() {
// let arr = {}; // let arr = {};
...@@ -291,11 +291,13 @@ export default { ...@@ -291,11 +291,13 @@ export default {
} }
}, },
mounted() { mounted() {
console.log('mounted');
this.userId = this.$route.query.id; this.userId = this.$route.query.id;
this.picUrl.userId = this.$route.query.id; this.picUrl.userId = this.$route.query.id;
this.getData(); this.getData();
this.token = getToken(); this.token = getToken();
} },
}; };
</script> </script>
......
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
<transcripts :stuName="userInfo.nameCn"></transcripts> <transcripts :stuName="userInfo.nameCn"></transcripts>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="上传凭证" name="proof"> <el-tab-pane label="上传凭证" name="proof">
<proof></proof> <proof v-if="activeName === 'proof'"></proof>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<!-- <el-button @click="test">test</el-button> --> <!-- <el-button @click="test">test</el-button> -->
...@@ -333,6 +333,10 @@ export default { ...@@ -333,6 +333,10 @@ export default {
} }
}, },
methods: { methods: {
//proof刷新
// timer(){
// return this.$route.path + Math.random();
// },
handleClick(tab, event) { handleClick(tab, event) {
// console.log(tab, event); // console.log(tab, event);
// console.log(tab.name == 'record'); // console.log(tab.name == 'record');
......
...@@ -40,6 +40,9 @@ ...@@ -40,6 +40,9 @@
<div v-show="scope.row.grade == 5">大学五年级</div> <div v-show="scope.row.grade == 5">大学五年级</div>
</template> </template>
</el-table-column> --> </el-table-column> -->
<el-table-column label="报名年份" align="center">
<template slot-scope="scope">{{ scope.row.yearTime }}</template>
</el-table-column>
<el-table-column label="上课学期" align="center"> <el-table-column label="上课学期" align="center">
<template slot-scope="scope">{{ scope.row.term }}</template> <template slot-scope="scope">{{ scope.row.term }}</template>
</el-table-column> </el-table-column>
......
...@@ -235,6 +235,9 @@ ...@@ -235,6 +235,9 @@
<div v-show="scope.row.grade == 5">大学五年级</div> <div v-show="scope.row.grade == 5">大学五年级</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="报名年份" align="center">
<template slot-scope="scope">{{ scope.row.yearTime }}</template>
</el-table-column>
<el-table-column label="上课学期" align="center"> <el-table-column label="上课学期" align="center">
<template slot-scope="scope">{{ scope.row.term }}</template> <template slot-scope="scope">{{ scope.row.term }}</template>
</el-table-column> </el-table-column>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment