| @@ -60,12 +60,11 @@ | |||||
| <div class="table-container"> | <div class="table-container"> | ||||
| <div> | <div> | ||||
| <el-table border :data="tableData" style="width:100%" v-loading="loading" stripe> | |||||
| <el-table-column prop="ID" :label="$t('user.invitedFriends')" align="left" header-align="center"> | |||||
| <el-table border style="width:100%"> | |||||
| <el-table-column :label="$t('user.invitedFriends')" header-align="center"> | |||||
| <template slot-scope="scope"> | <template slot-scope="scope"> | ||||
| <div style="display:flex;align-items:center;padding-left:20px;"> | <div style="display:flex;align-items:center;padding-left:20px;"> | ||||
| <img :src="scope.row.avatarSrc" alt="" style="height:45px;width:45px;margin-right:10px;" /> | <img :src="scope.row.avatarSrc" alt="" style="height:45px;width:45px;margin-right:10px;" /> | ||||
| <a :href="scope.row.userLink" style="font-weight:500;font-size:15px;">{{ scope.row.userName }}</a> | |||||
| </div> | </div> | ||||
| </template> | </template> | ||||
| </el-table-column> | </el-table-column> | ||||
| @@ -76,11 +75,7 @@ | |||||
| </el-table-column> | </el-table-column> | ||||
| <el-table-column prop="regTime" :label="$t('user.registrationTime')" align="center" header-align="center"> | <el-table-column prop="regTime" :label="$t('user.registrationTime')" align="center" header-align="center"> | ||||
| </el-table-column> | </el-table-column> | ||||
| <template slot="empty"> | |||||
| <span>{{ | |||||
| loading ? $t('loading') : $t('noData') | |||||
| }}</span> | |||||
| </template> | |||||
| </el-table> | </el-table> | ||||
| </div> | </div> | ||||
| @@ -135,6 +130,7 @@ | |||||
| }, | }, | ||||
| cancelUpload(){ | cancelUpload(){ | ||||
| this.ImageUrl = '' | this.ImageUrl = '' | ||||
| this.file='' | |||||
| }, | }, | ||||
| startTranform(){ | startTranform(){ | ||||
| let fd = new FormData(); | let fd = new FormData(); | ||||
| @@ -145,7 +141,7 @@ | |||||
| url: '/extension/tuomin/upload', | url: '/extension/tuomin/upload', | ||||
| headers: {'Accept': 'image/png'}, | headers: {'Accept': 'image/png'}, | ||||
| responseType: 'blob', | responseType: 'blob', | ||||
| params: { model: this.radio }, | |||||
| params: { mode: this.radio }, | |||||
| data:fd | data:fd | ||||
| }).then(res => { | }).then(res => { | ||||
| console.log(res) | console.log(res) | ||||