Commit 7f6eb1c5 by cmosquito

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

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