|
@@ -153,7 +153,7 @@
|
|
class="btn-primary"
|
|
class="btn-primary"
|
|
type="text"
|
|
type="text"
|
|
:disabled="
|
|
:disabled="
|
|
- !attachment.cardId || attachment.cardType === 'GENERIC'
|
|
|
|
|
|
+ !attachment.cardId || attachment.createMethod === 'UPLOAD'
|
|
"
|
|
"
|
|
@click="toCopyCard(attachment)"
|
|
@click="toCopyCard(attachment)"
|
|
>复制</el-button
|
|
>复制</el-button
|
|
@@ -162,7 +162,7 @@
|
|
class="btn-primary"
|
|
class="btn-primary"
|
|
type="text"
|
|
type="text"
|
|
:disabled="
|
|
:disabled="
|
|
- !attachment.cardId || attachment.cardType === 'GENERIC'
|
|
|
|
|
|
+ !attachment.cardId || attachment.createMethod === 'UPLOAD'
|
|
"
|
|
"
|
|
@click="toEditCard(attachment)"
|
|
@click="toEditCard(attachment)"
|
|
>编辑</el-button
|
|
>编辑</el-button
|
|
@@ -432,6 +432,7 @@ export default {
|
|
this.paperAttachments.forEach(item => {
|
|
this.paperAttachments.forEach(item => {
|
|
item.cardId = "";
|
|
item.cardId = "";
|
|
item.cardType = "";
|
|
item.cardType = "";
|
|
|
|
+ item.createMethod = "";
|
|
item.cardTitle = "";
|
|
item.cardTitle = "";
|
|
});
|
|
});
|
|
this.cards = [];
|
|
this.cards = [];
|
|
@@ -444,6 +445,7 @@ export default {
|
|
this.paperAttachments.forEach(item => {
|
|
this.paperAttachments.forEach(item => {
|
|
item.cardId = "";
|
|
item.cardId = "";
|
|
item.cardType = "";
|
|
item.cardType = "";
|
|
|
|
+ item.createMethod = "";
|
|
item.cardTitle = "";
|
|
item.cardTitle = "";
|
|
});
|
|
});
|
|
this.cards = [];
|
|
this.cards = [];
|
|
@@ -461,6 +463,7 @@ export default {
|
|
this.paperAttachments.forEach(item => {
|
|
this.paperAttachments.forEach(item => {
|
|
item.cardId = "";
|
|
item.cardId = "";
|
|
item.cardType = "";
|
|
item.cardType = "";
|
|
|
|
+ item.createMethod = "";
|
|
item.cardTitle = "";
|
|
item.cardTitle = "";
|
|
});
|
|
});
|
|
this.cards = [];
|
|
this.cards = [];
|
|
@@ -491,6 +494,7 @@ export default {
|
|
const card = this.cards.find(item => item.id === attachment.cardId);
|
|
const card = this.cards.find(item => item.id === attachment.cardId);
|
|
if (card) {
|
|
if (card) {
|
|
attachment.cardType = card.type;
|
|
attachment.cardType = card.type;
|
|
|
|
+ attachment.createMethod = card.createMethod;
|
|
attachment.cardTitle = card.title;
|
|
attachment.cardTitle = card.title;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -552,6 +556,7 @@ export default {
|
|
if (aind !== -1 && card) {
|
|
if (aind !== -1 && card) {
|
|
this.paperAttachments[aind].cardId = card.id;
|
|
this.paperAttachments[aind].cardId = card.id;
|
|
this.paperAttachments[aind].cardType = card.type;
|
|
this.paperAttachments[aind].cardType = card.type;
|
|
|
|
+ this.paperAttachments[aind].createMethod = card.createMethod;
|
|
this.paperAttachments[aind].cardTitle = card.title;
|
|
this.paperAttachments[aind].cardTitle = card.title;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -599,6 +604,7 @@ export default {
|
|
attachmentId: "",
|
|
attachmentId: "",
|
|
cardId: "",
|
|
cardId: "",
|
|
cardType: "",
|
|
cardType: "",
|
|
|
|
+ createMethod: "",
|
|
cardTitle: "",
|
|
cardTitle: "",
|
|
filename: "",
|
|
filename: "",
|
|
pages: 0
|
|
pages: 0
|