تغییرات
This commit is contained in:
parent
a52cf49dc0
commit
be90244a87
|
@ -21,21 +21,21 @@ export default {
|
||||||
// "app-version-code": import.meta.env.VITE_APP_VERSION,
|
// "app-version-code": import.meta.env.VITE_APP_VERSION,
|
||||||
// };
|
// };
|
||||||
|
|
||||||
this.fileUploadHttpService = new HttpService(
|
// this.fileUploadHttpService = new HttpService(
|
||||||
import.meta.env.VITE_MESSAGE_BASE_URL,
|
// import.meta.env.VITE_MESSAGE_BASE_URL,
|
||||||
{
|
// {
|
||||||
"Content-Type": "multipart/form-data",
|
// "Content-Type": "multipart/form-data",
|
||||||
}
|
// }
|
||||||
);
|
// );
|
||||||
|
|
||||||
// this.issueHttpService = new HttpService(
|
// this.issueHttpService = new HttpService(
|
||||||
// import.meta.env.VITE_REPO_BASE_URL + "jahat/"
|
// import.meta.env.VITE_REPO_BASE_URL + "jahat/"
|
||||||
// );
|
// );
|
||||||
|
|
||||||
this.httpService = new HttpService(
|
// this.httpService = new HttpService(
|
||||||
import.meta.env.VITE_BASE_URL
|
// import.meta.env.VITE_BASE_URL
|
||||||
// headers
|
// // headers
|
||||||
);
|
// );
|
||||||
|
|
||||||
// this.keyValueHttpService = new HttpService(
|
// this.keyValueHttpService = new HttpService(
|
||||||
// import.meta.env.VITE_KEY_VALUE_BASE_URL
|
// import.meta.env.VITE_KEY_VALUE_BASE_URL
|
||||||
|
|
|
@ -41,9 +41,8 @@ export default {
|
||||||
replyto: this.replayTo.id,
|
replyto: this.replayTo.id,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (this.listGetter && this.listGetter?.is_group == 0) {
|
||||||
if (this.listGetter && this.listGetter?.is_group == 0){
|
payload.group_id = undefined;
|
||||||
payload.group_id = undefined
|
|
||||||
payload.contact_id = this.listGetter?.user;
|
payload.contact_id = this.listGetter?.user;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -189,8 +188,8 @@ export default {
|
||||||
payload.file = fileItem;
|
payload.file = fileItem;
|
||||||
payload.length = fileItem.size;
|
payload.length = fileItem.size;
|
||||||
|
|
||||||
this.fileUploadHttpService
|
this.httpService
|
||||||
.formDataRequest(url, payload)
|
.formDataRequest(messageUrl() + url, payload)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.replayText = null;
|
this.replayText = null;
|
||||||
this.uploadDescription = null;
|
this.uploadDescription = null;
|
||||||
|
@ -209,8 +208,8 @@ export default {
|
||||||
payload.file = this.files[0];
|
payload.file = this.files[0];
|
||||||
payload.length = this.files[0].size;
|
payload.length = this.files[0].size;
|
||||||
|
|
||||||
return await this.fileUploadHttpService
|
return await this.httpService
|
||||||
.formDataRequest(url, payload)
|
.formDataRequest(messageUrl() + url, payload)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.closeDroppedList();
|
this.closeDroppedList();
|
||||||
this.replayText = null;
|
this.replayText = null;
|
||||||
|
@ -280,83 +279,83 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
toReplayFirstItem() {
|
toReplayFirstItem() {
|
||||||
this.replayPagination.pageBottom = 1;
|
this.replayPagination.pageBottom = 1;
|
||||||
this.replayPagination.pageTop = 0;
|
this.replayPagination.pageTop = 0;
|
||||||
this.replayPagination.page = 1;
|
this.replayPagination.page = 1;
|
||||||
this.replayPagination.seen_date = 0;
|
this.replayPagination.seen_date = 0;
|
||||||
this.getReplays().then((response) => {
|
this.getReplays().then((response) => {
|
||||||
if (!response.data.length) {
|
if (!response.data.length) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.replays = response.data;
|
this.replays = response.data;
|
||||||
|
|
||||||
// const mids = this.getMids(response.data)
|
// const mids = this.getMids(response.data)
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.replayOffset = 0;
|
this.replayOffset = 0;
|
||||||
this.replaySetVirtualListToOffset(this.replayOffset);
|
this.replaySetVirtualListToOffset(this.replayOffset);
|
||||||
this.fetchingData = false;
|
this.fetchingData = false;
|
||||||
});
|
|
||||||
});
|
});
|
||||||
},
|
});
|
||||||
toReplayLastItem() {
|
},
|
||||||
this.replayPagination.pageBottom = 0;
|
toReplayLastItem() {
|
||||||
this.replayPagination.pageTop = -1;
|
this.replayPagination.pageBottom = 0;
|
||||||
this.replayPagination.page = -1;
|
this.replayPagination.pageTop = -1;
|
||||||
this.replayPagination.seen_date = -1;
|
this.replayPagination.page = -1;
|
||||||
|
this.replayPagination.seen_date = -1;
|
||||||
this.getReplays().then((response) => {
|
|
||||||
if (!response.data.length) {
|
this.getReplays().then((response) => {
|
||||||
return;
|
if (!response.data.length) {
|
||||||
}
|
return;
|
||||||
|
}
|
||||||
this.replays = response.data;
|
|
||||||
|
this.replays = response.data;
|
||||||
// const mids = this.getMids(response.data)
|
|
||||||
this.$nextTick(() => {
|
// const mids = this.getMids(response.data)
|
||||||
const vsl = this.$refs.replayVsl;
|
this.$nextTick(() => {
|
||||||
this.offset = vsl.getScrollSize();
|
const vsl = this.$refs.replayVsl;
|
||||||
this.replaySetVirtualListToOffset(this.replayOffset);
|
this.offset = vsl.getScrollSize();
|
||||||
this.fetchingData = false;
|
this.replaySetVirtualListToOffset(this.replayOffset);
|
||||||
});
|
this.fetchingData = false;
|
||||||
});
|
});
|
||||||
},
|
});
|
||||||
async replayOnResult(data) {
|
},
|
||||||
this.files = [];
|
async replayOnResult(data) {
|
||||||
this.files.push(new File([data], "mp3"));
|
this.files = [];
|
||||||
|
this.files.push(new File([data], "mp3"));
|
||||||
// if (this.replayAbortRecord) return;
|
|
||||||
// this.replayAbortRecord = true;
|
// if (this.replayAbortRecord) return;
|
||||||
|
// this.replayAbortRecord = true;
|
||||||
this.replaySaveFiles().then(() => {
|
|
||||||
// this.replayRecording = false;
|
this.replaySaveFiles().then(() => {
|
||||||
// this.replayAbortRecord = false;
|
// this.replayRecording = false;
|
||||||
});
|
// this.replayAbortRecord = false;
|
||||||
},
|
});
|
||||||
showReplyComment() {
|
},
|
||||||
const myReply = document.getElementById("show_reply");
|
showReplyComment() {
|
||||||
myReply.style.display = "none";
|
const myReply = document.getElementById("show_reply");
|
||||||
},
|
myReply.style.display = "none";
|
||||||
closeReplyComment(isEditModeName) {
|
},
|
||||||
this.replyComment = false;
|
closeReplyComment(isEditModeName) {
|
||||||
this[isEditModeName] = false;
|
this.replyComment = false;
|
||||||
this.replayText = null;
|
this[isEditModeName] = false;
|
||||||
// try {
|
this.replayText = null;
|
||||||
// this.$refs.replays.style.removeProperty("height");
|
// try {
|
||||||
// this.$refs.replayTextRef.style.removeProperty("height");
|
// this.$refs.replays.style.removeProperty("height");
|
||||||
// } catch (err) {
|
// this.$refs.replayTextRef.style.removeProperty("height");
|
||||||
// this.$refs.replays.style.height = null;
|
// } catch (err) {
|
||||||
// this.$refs.replayTextRef.style.height = null;
|
// this.$refs.replays.style.height = null;
|
||||||
// }
|
// this.$refs.replayTextRef.style.height = null;
|
||||||
},
|
// }
|
||||||
resetReplayPagination() {
|
},
|
||||||
this.replayPagination = {
|
resetReplayPagination() {
|
||||||
page: 0,
|
this.replayPagination = {
|
||||||
total: 0,
|
page: 0,
|
||||||
pageTop: 0,
|
total: 0,
|
||||||
pageBottom: 1,
|
pageTop: 0,
|
||||||
seenDate: null,
|
pageBottom: 1,
|
||||||
};
|
seenDate: null,
|
||||||
},
|
};
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user