diff --git a/src/api/mail.ts b/src/api/mail.ts index c7d648d..1ada819 100644 --- a/src/api/mail.ts +++ b/src/api/mail.ts @@ -24,6 +24,14 @@ export function addCoHandling(body) { return request.post({ url: '/mail/coHandling/add', body}) } +export function updateMailHandleDetail(body) { + return request.put({ url: '/mail/handleDetail', body}) +} + +export function updateContactInfo(body) { + return request.put({ url: '/mail/contactInfo', body}) +} + export function deleteMail(body) { return request.post({ url: '/mail/delete', body}) } \ No newline at end of file diff --git a/src/components/DeptTreeSelect.vue b/src/components/DeptTreeSelect.vue new file mode 100644 index 0000000..c04b41a --- /dev/null +++ b/src/components/DeptTreeSelect.vue @@ -0,0 +1,28 @@ + + + \ No newline at end of file diff --git a/src/components/FileList.vue b/src/components/FileList.vue index 33160e8..9ff7b8d 100644 --- a/src/components/FileList.vue +++ b/src/components/FileList.vue @@ -276,9 +276,22 @@ function mousemove(event) { if (!moveFlag) { return; } - translateX.value += event.clientX - initialX; - console.log("x", translateX.value); - translateY.value += event.clientY - initialY; + if (rotate.value % 360 === 0) { + translateX.value += event.clientX - initialX; + translateY.value += event.clientY - initialY; + } + if (rotate.value === 90) { + translateY.value -= event.clientX - initialX; + translateX.value += event.clientY - initialY; + } + if (rotate.value === 180) { + translateX.value -= event.clientX - initialX; + translateY.value -= event.clientY - initialY; + } + if (rotate.value === 270) { + translateY.value += event.clientX - initialX; + translateX.value -= event.clientY - initialY; + } initialX = event.clientX; initialY = event.clientY; } @@ -288,12 +301,19 @@ function mouseup(event) { } function rotateLeft() { - rotate.value += 90; - console.log(rotate.value); + if (rotate.value === 360) { + rotate.value = 0; + } else { + rotate.value += 90; + } } function rotateRight() { - rotate.value -= 90; + if (rotate.value === 0) { + rotate.value = 270; + } else { + rotate.value -= 90; + } } function getIconName(filetype) { diff --git a/src/layout/components/Header.vue b/src/layout/components/Header.vue index 04c8690..28db053 100644 --- a/src/layout/components/Header.vue +++ b/src/layout/components/Header.vue @@ -15,7 +15,7 @@