|
@@ -51,7 +51,7 @@
|
|
|
</view>
|
|
|
|
|
|
<view v-else-if="item.type == 'file'" class="value-box" style="justify-content: flex-start;">
|
|
|
- <view v-if="!item.value.length" class="iconfont" >
|
|
|
+ <view v-if="!item.value.length" class="iconfont">
|
|
|
暂未上传附件
|
|
|
</view>
|
|
|
<My_Files v-else :ref="'My_Files' + index" :aDeletion="item.aDeletion"
|
|
@@ -169,7 +169,7 @@ export default {
|
|
|
return v
|
|
|
});
|
|
|
this.filesIndex = this.form.findIndex(v => v.type == 'file');
|
|
|
- if (this.form[this.filesIndex].value.length) setTimeout(() => {
|
|
|
+ if (this.filesIndex != -1 && this.form[this.filesIndex].value.length) setTimeout(() => {
|
|
|
this.$refs['My_Files' + this.filesIndex][0].handleFiles(this.form[this.filesIndex].value, true)
|
|
|
}, 500)
|
|
|
} else {
|
|
@@ -231,7 +231,7 @@ export default {
|
|
|
},
|
|
|
handleFileLink(attachmentids, ownertable = "temporary", ownerid = 1, data) {
|
|
|
return new Promise((resolve, reject) => {
|
|
|
- if (attachmentids.length == 0) return resolve(true);
|
|
|
+ if (!attachmentids || attachmentids.length == 0) return resolve(true);
|
|
|
this.$Http.basic({
|
|
|
"classname": "system.attachment.Attachment",
|
|
|
"method": "createFileLink",
|
|
@@ -305,7 +305,7 @@ export default {
|
|
|
//异步删除文件
|
|
|
handleDeteleFiles(linksids) {
|
|
|
return new Promise((resolve, reject) => {
|
|
|
- if (linksids.length == 0) return resolve(true);
|
|
|
+ if (!linksids || linksids.length == 0) return resolve(true);
|
|
|
this.$Http.basic({
|
|
|
"classname": "system.attachment.Attachment",
|
|
|
"method": "deleteFileLink",
|
|
@@ -427,7 +427,7 @@ export default {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
|
|
|
- .iconfont{
|
|
|
+ .iconfont {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
|