附件数量为0时不打开预览弹框
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2025-04-15 17:39:54 +08:00
parent 1e5bd46a40
commit faaaf8f28f
5 changed files with 5 additions and 1 deletions

View File

@ -141,7 +141,7 @@ export default {
this.loading = false this.loading = false
if (res.IsSuccess) { if (res.IsSuccess) {
this.list = res.Result.CurrentPageData this.list = res.Result.CurrentPageData
this.rowData = this.list[0] this.rowData = this.list[0] || {}
} }
} catch (err) { } catch (err) {
this.loading = false this.loading = false

View File

@ -300,6 +300,7 @@ export default {
}, },
methods: { methods: {
openAttachment(row) { openAttachment(row) {
if (!row.AttachmentCount) return false
this.SystemDocumentId = row.Id this.SystemDocumentId = row.Id
this.perview_visible = true this.perview_visible = true
}, },

View File

@ -194,6 +194,7 @@ export default {
}, },
methods: { methods: {
openAttachment(row) { openAttachment(row) {
if (!row.AttachmentCount) return false
this.SystemDocumentId = row.Id this.SystemDocumentId = row.Id
this.perview_visible = true this.perview_visible = true
}, },

View File

@ -159,6 +159,7 @@ export default {
}, },
methods: { methods: {
openAttachment(row) { openAttachment(row) {
if (!row.AttachmentCount) return false
this.SystemDocumentId = row.Id this.SystemDocumentId = row.Id
this.perview_visible = true this.perview_visible = true
}, },

View File

@ -139,6 +139,7 @@ export default {
}, },
methods: { methods: {
openAttachment(row) { openAttachment(row) {
if (!row.AttachmentCount) return false
this.SystemDocumentId = row.Id this.SystemDocumentId = row.Id
this.perview_visible = true this.perview_visible = true
}, },