|
@@ -275,8 +275,6 @@ const fileNameList3 = ref([]);
|
|
|
|
|
|
const cancelClick = () => {
|
|
|
drawerVisible.value = false;
|
|
|
- remarkRef.value.resetFields();
|
|
|
- feedBackEmit("finish");
|
|
|
};
|
|
|
|
|
|
const feedBackEmit = defineEmits(["finish"]);
|
|
@@ -365,6 +363,11 @@ const confirmClick = () => {
|
|
|
});
|
|
|
};
|
|
|
const handClose = () => {
|
|
|
+ load.value?.setFileList([])
|
|
|
+ load1.value?.setFileList([])
|
|
|
+ load2.value?.setFileList([])
|
|
|
+ load3.value?.setFileList([])
|
|
|
+ remarkRef.value.resetFields();
|
|
|
feedBackEmit("finish");
|
|
|
}
|
|
|
const saveClick = () => {
|
|
@@ -377,7 +380,7 @@ const saveClick = () => {
|
|
|
: "";
|
|
|
// if (valid) {
|
|
|
let remark2Copy = ""
|
|
|
- if (remark.content2 || remark.user1 || remark.user2 || remark.phone) {
|
|
|
+ if (remark.content2 || remark.user1 || remark.user2 || remark.phone || remark.fileUrl || fileNameList.value?.length > 0) {
|
|
|
remark2Copy = {
|
|
|
content: remark.content2,
|
|
|
user: remark.user,
|
|
@@ -392,7 +395,7 @@ const saveClick = () => {
|
|
|
};
|
|
|
}
|
|
|
let remark3 = ""
|
|
|
- if (remark.content3 || remark.company) {
|
|
|
+ if (remark.content3 || remark.company || remark.fileUrl1 || fileNameList1.value?.length > 0) {
|
|
|
remark3 = {
|
|
|
content: remark.content3,
|
|
|
company: remark.company,
|
|
@@ -402,7 +405,7 @@ const saveClick = () => {
|
|
|
};
|
|
|
}
|
|
|
let remark4 = ""
|
|
|
- if (remark.content4 || remark.users) {
|
|
|
+ if (remark.content4 || remark.users || remark.fileUrl2 || fileNameList2.value?.length > 0) {
|
|
|
remark4 = {
|
|
|
content: remark.content4,
|
|
|
users: Array.isArray(remark.users)
|
|
@@ -414,7 +417,7 @@ const saveClick = () => {
|
|
|
};
|
|
|
}
|
|
|
let remark5 = ""
|
|
|
- if (remark.content5 || remark.user5) {
|
|
|
+ if (remark.content5 || remark.user5 || remark.fileUrl3 || fileNameList3.value?.length > 0) {
|
|
|
remark5 = {
|
|
|
content: remark.content5,
|
|
|
user: remark.user5,
|