|
@@ -19,10 +19,10 @@
|
|
|
<view class="usermain-item item-padding" v-for="item in content">
|
|
<view class="usermain-item item-padding" v-for="item in content">
|
|
|
<view class="usermain-item-title c-flex-center"><image src="../../static/images/pdf.svg" class="header-icon" /></view>
|
|
<view class="usermain-item-title c-flex-center"><image src="../../static/images/pdf.svg" class="header-icon" /></view>
|
|
|
<view @click="seekDoc(item)" class="fileContent c-flex-center">
|
|
<view @click="seekDoc(item)" class="fileContent c-flex-center">
|
|
|
- <view class="fileName">{{item.attachment_name}}</view>
|
|
|
|
|
- <view class="filedesc">{{item.attachment_size}} 更新于{{item.create_time}}</view>
|
|
|
|
|
|
|
+ <view class="fileName">{{item.attachmentName}}</view>
|
|
|
|
|
+ <view class="filedesc">{{item.attachmentSize}}kb 更新于{{item.createTime}}</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view @click.stop="more(item.resumes_attachment_id)" class="c-flex-center">
|
|
|
|
|
|
|
+ <view @click.stop="more(item.resumesAttachmentId)" class="c-flex-center">
|
|
|
<u-icon name="more-dot-fill"></u-icon>
|
|
<u-icon name="more-dot-fill"></u-icon>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -242,9 +242,9 @@
|
|
|
that.$queue.uploadFile(e.path,function(path){
|
|
that.$queue.uploadFile(e.path,function(path){
|
|
|
if(path)
|
|
if(path)
|
|
|
that.$Request.postJson("/app/resumes/saveAttachment", {
|
|
that.$Request.postJson("/app/resumes/saveAttachment", {
|
|
|
- attachment_address:path,
|
|
|
|
|
- attachment_name:e.name,
|
|
|
|
|
- attachment_size
|
|
|
|
|
|
|
+ attachmentAddress:path,
|
|
|
|
|
+ attachmentName:e.name,
|
|
|
|
|
+ attachmentSize:attachment_size
|
|
|
}).then(res => {
|
|
}).then(res => {
|
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
|
that.getUserInfo()
|
|
that.getUserInfo()
|
|
@@ -287,11 +287,11 @@
|
|
|
success(res) {
|
|
success(res) {
|
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
|
that.$Request.postJson("/app/resumes/deleteAttachment", {
|
|
that.$Request.postJson("/app/resumes/deleteAttachment", {
|
|
|
- resumes_attachment_id: id
|
|
|
|
|
|
|
+ resumesAttachmentId: id
|
|
|
}).then(res => {
|
|
}).then(res => {
|
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
|
var info = that.content.filter(function (item) {
|
|
var info = that.content.filter(function (item) {
|
|
|
- return item.resumes_attachment_id != id;
|
|
|
|
|
|
|
+ return item.resumesAttachmentId != id;
|
|
|
});
|
|
});
|
|
|
that.content=info
|
|
that.content=info
|
|
|
} else {
|
|
} else {
|
|
@@ -312,7 +312,7 @@
|
|
|
},
|
|
},
|
|
|
seekDoc(it){
|
|
seekDoc(it){
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
- url: '/pages/index/webView?url=' + it.attachment_address
|
|
|
|
|
|
|
+ url: '/pages/index/webView?url=' + it.attachmentAddress+'&title='+it.attachmentName
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|