mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-16 22:36:43 +08:00
提交
This commit is contained in:
@@ -138,10 +138,10 @@
|
||||
<div class="Exportbox">
|
||||
<div class="export-dialog-top">
|
||||
<div class="export-dialog-left">
|
||||
<author-img :avatar="userInfo.avatar" :aid="userInfo.aid" :sex="userInfo.sex"></author-img>
|
||||
<author-img :avatar="userData.avatar" :aid="userData.aid" :sex="userData.sex"></author-img>
|
||||
<div class="userInfo-info">
|
||||
<p><span style="font-weight: 500;font-size: 22px;">{{userInfo.name}}</span><span style="font-size: 12px;margin-left:10px">{{userInfo.departFullName}}</span></p>
|
||||
<p>{{userInfo.sign}}</p>
|
||||
<p><span style="font-weight: 500;font-size: 22px;">{{userData.name}}</span><span style="font-size: 12px;margin-left:10px">{{userInfo.departFullName}}</span></p>
|
||||
<p>{{userData.sign}}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="export-dialog-right">
|
||||
@@ -184,7 +184,8 @@ import interactBar from '@/components/Portal/interactBar.vue';
|
||||
import FileUpload from '@/components/NoteUpload/index.vue';
|
||||
import AuthorImg from '@/components/Portal/authorImg.vue';
|
||||
import { mapGetters } from 'vuex';
|
||||
import {formatDate} from '@/utils/tools.js'
|
||||
import {formatDate} from '@/utils/tools.js';
|
||||
import apiUser from "@/api/system/user.js";
|
||||
export default {
|
||||
components:{interactBar,FileUpload,AuthorImg},
|
||||
computed: {
|
||||
@@ -192,6 +193,7 @@ export default {
|
||||
},
|
||||
data(){
|
||||
return{
|
||||
userData:{},
|
||||
formatDate,
|
||||
noteFile:{
|
||||
contentType:null,
|
||||
@@ -245,6 +247,13 @@ export default {
|
||||
mounted(){
|
||||
this.noteData(null);
|
||||
this.allcoures();
|
||||
apiUser.getByIds([this.userInfo.aid]).then(res => {
|
||||
if (res.status == 200) {
|
||||
this.userData = res.result[0];
|
||||
} else {
|
||||
this.$message.error(res.message);
|
||||
}
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
exportCommand(e) {
|
||||
@@ -258,10 +267,10 @@ export default {
|
||||
}
|
||||
})
|
||||
let data = {
|
||||
name:this.userInfo.name,
|
||||
sign:'abcd',
|
||||
name:this.userData.name,
|
||||
sign:this.userData.sign,
|
||||
ids:ids,
|
||||
author:this.userInfo.avatar,//this.userInfo.avatar,
|
||||
author:this.userData.avatar,//this.userInfo.avatar,
|
||||
}
|
||||
if(this.exportType == '1') {
|
||||
apiNote.exportPdf(data).then(res=>{
|
||||
|
||||
Reference in New Issue
Block a user