|
|
@@ -401,7 +401,7 @@ onBeforeMount(() => {
|
|
|
if (route.query.isMobile) {
|
|
|
isMobile.value = route.query.isMobile
|
|
|
}
|
|
|
- })
|
|
|
+})
|
|
|
onMounted(async () => {
|
|
|
window.hiwebSocket = {
|
|
|
hasIo: function hasIo(t) {
|
|
|
@@ -1188,6 +1188,11 @@ const checkAndInitData = async () => {
|
|
|
|
|
|
if (singleData[singleKey] == find[singleKey]) {
|
|
|
delete singleData[singleKey];
|
|
|
+ } else {
|
|
|
+ if (singleData[singleKey] == undefined) {
|
|
|
+ //处理人员删不了的问题
|
|
|
+ singleData[singleKey] = null;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
@@ -1214,17 +1219,30 @@ const checkAndInitData = async () => {
|
|
|
if (typeof saveData[key] != 'string') {
|
|
|
saveData[key] = JSON.stringify(saveData[key]);
|
|
|
}
|
|
|
- }
|
|
|
- if (value.type === 'IMAGE') {
|
|
|
+ } else if (value.type === 'IMAGE') {
|
|
|
+ const images = saveData[key];
|
|
|
+ if (images && images.length > 0) {
|
|
|
+ for (let i = 0; i < images.length; i++) {
|
|
|
+ images[i].thumbUrl = images[i]?.response?.data?.fileUrl;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else if (value.type === 'IMAGE') {
|
|
|
const images = saveData[key];
|
|
|
if (images && images.length > 0) {
|
|
|
for (let i = 0; i < images.length; i++) {
|
|
|
images[i].thumbUrl = images[i]?.response?.data?.fileUrl;
|
|
|
}
|
|
|
}
|
|
|
+ } else if (value.type === "SINGLE") {
|
|
|
+
|
|
|
}
|
|
|
if (saveData[key] == formLoadTableData.value[key]) {
|
|
|
delete saveData[key];
|
|
|
+ } else {
|
|
|
+ if (saveData[key] == undefined) {
|
|
|
+ //处理人员删不了的问题
|
|
|
+ saveData[key] = null;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
});
|