|
@@ -463,6 +463,12 @@ const toggleTextMode = () => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const openAttachmentSelector = (attach: any) => {
|
|
const openAttachmentSelector = (attach: any) => {
|
|
|
|
|
+ if (attach.no == 3) {
|
|
|
|
|
+ const key = `attach_${attach.no}`
|
|
|
|
|
+ attachments[key] = { title: attach.title }
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
selectorVisible.value = {
|
|
selectorVisible.value = {
|
|
|
show: true,
|
|
show: true,
|
|
|
current: `attach_${attach.no}`,
|
|
current: `attach_${attach.no}`,
|
|
@@ -474,17 +480,17 @@ const openAttachmentSelector = (attach: any) => {
|
|
|
const handleAttachmentDelete = (attach: any) => {
|
|
const handleAttachmentDelete = (attach: any) => {
|
|
|
const key = `attach_${attach.no}`
|
|
const key = `attach_${attach.no}`
|
|
|
// 固定内容附件(3=入住须知)删除后恢复默认展示
|
|
// 固定内容附件(3=入住须知)删除后恢复默认展示
|
|
|
- if (attach.no === 3) {
|
|
|
|
|
- attachments[key] = { title: attach.title }
|
|
|
|
|
- } else {
|
|
|
|
|
- attachments[key] = null
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if (attach.no === 3) {
|
|
|
|
|
+ // attachments[key] = { title: attach.title }
|
|
|
|
|
+ // } else {
|
|
|
|
|
+ attachments[key] = null
|
|
|
|
|
+ // }
|
|
|
message.success(`已删除:${attach.title}`)
|
|
message.success(`已删除:${attach.title}`)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const handleAttachmentSelect = async (row: any) => {
|
|
const handleAttachmentSelect = async (row: any) => {
|
|
|
const key = selectorVisible.value.current
|
|
const key = selectorVisible.value.current
|
|
|
- console.log('KEY值:', key, row, attachments)
|
|
|
|
|
|
|
+ //console.log('KEY值:', key, row, attachments)
|
|
|
if (key) {
|
|
if (key) {
|
|
|
const getDetail = attachmentDetailMap[key]
|
|
const getDetail = attachmentDetailMap[key]
|
|
|
let fullData = row
|
|
let fullData = row
|