Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
Madara
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
Madara
Commits
ebacf562
Commit
ebacf562
authored
Sep 26, 2019
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复BUG
parent
5de2722d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1562 additions
and
951 deletions
+1562
-951
index.js
src/main/index.js
+936
-894
index.vue
src/renderer/components/index.vue
+2
-0
chatitem.vue
src/renderer/components/msssage/chatitem.vue
+4
-0
index.vue
src/renderer/components/msssage/index.vue
+16
-1
forwardMsg.vue
src/renderer/components/team/forwardMsg.vue
+544
-0
contenteditor.vue
src/renderer/components/tools/contenteditor.vue
+2
-2
index.js
src/renderer/router/index.js
+57
-53
msgs.js
src/store/actions/msgs.js
+1
-1
No files found.
src/main/index.js
View file @
ebacf562
This diff is collapsed.
Click to expand it.
src/renderer/components/index.vue
View file @
ebacf562
...
@@ -164,6 +164,8 @@ export default {
...
@@ -164,6 +164,8 @@ export default {
this
.
MsgBus
.
$emit
(
"delete-members"
,
obj
.
teamMembers
)
this
.
MsgBus
.
$emit
(
"delete-members"
,
obj
.
teamMembers
)
}
else
if
(
obj
.
action
==
'create'
){
}
else
if
(
obj
.
action
==
'create'
){
this
.
MsgBus
.
$emit
(
"create-group"
,
obj
.
teamMembers
)
this
.
MsgBus
.
$emit
(
"create-group"
,
obj
.
teamMembers
)
}
else
if
(
obj
.
action
==
'forward'
){
this
.
MsgBus
.
$emit
(
"goForward"
,
obj
.
sessions
)
}
}
//
//
})
})
...
...
src/renderer/components/msssage/chatitem.vue
View file @
ebacf562
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
v-if=
"msg.type=='image' || msg.type=='video' || msg.type=='audio'"
v-if=
"msg.type=='image' || msg.type=='video' || msg.type=='audio'"
@
click=
"downloadFile(msg,1)"
@
click=
"downloadFile(msg,1)"
>
另存为...
</v-contextmenu-item>
>
另存为...
</v-contextmenu-item>
<v-contextmenu-item
@
click=
"forwardMsg(msg)"
>
转发
</v-contextmenu-item>
<v-contextmenu-item
divider
v-if=
"msg.flow==='out'"
></v-contextmenu-item>
<v-contextmenu-item
divider
v-if=
"msg.flow==='out'"
></v-contextmenu-item>
<v-contextmenu-item
@
click=
"revocateMsg"
v-if=
"msg.flow==='out'"
>
撤回消息
</v-contextmenu-item>
<v-contextmenu-item
@
click=
"revocateMsg"
v-if=
"msg.flow==='out'"
>
撤回消息
</v-contextmenu-item>
</v-contextmenu>
</v-contextmenu>
...
@@ -770,6 +771,9 @@ export default {
...
@@ -770,6 +771,9 @@ export default {
// 在会话聊天页
// 在会话聊天页
this
.
$store
.
dispatch
(
"revocateMsg"
,
this
.
msg
);
this
.
$store
.
dispatch
(
"revocateMsg"
,
this
.
msg
);
},
},
forwardMsg
(
msg
){
this
.
MsgBus
.
$emit
(
"forward"
,
msg
);
},
sendRobotBlockMsg
(
msg
,
originMsg
)
{
sendRobotBlockMsg
(
msg
,
originMsg
)
{
if
(
this
.
isHistory
)
{
if
(
this
.
isHistory
)
{
// 在历史消息中,不进行机器人交互
// 在历史消息中,不进行机器人交互
...
...
src/renderer/components/msssage/index.vue
View file @
ebacf562
...
@@ -225,7 +225,8 @@ export default {
...
@@ -225,7 +225,8 @@ export default {
noticeLastTime
:
0
,
noticeLastTime
:
0
,
isNetError
:
true
,
isNetError
:
true
,
audio_base
:
''
,
audio_base
:
''
,
atIds
:
null
atIds
:
null
,
forwardMsgInfo
:{}
};
};
},
},
updated
()
{
updated
()
{
...
@@ -455,6 +456,20 @@ export default {
...
@@ -455,6 +456,20 @@ export default {
this
.
MsgBus
.
$on
(
"create-group"
,
function
(
members
)
{
this
.
MsgBus
.
$on
(
"create-group"
,
function
(
members
)
{
that
.
createGroup
(
members
);
that
.
createGroup
(
members
);
});
});
this
.
MsgBus
.
$on
(
"forward"
,
function
(
msg
){
that
.
forwardMsgInfo
=
msg
console
.
log
(
that
.
forwardMsgInfo
)
that
.
$electron
.
ipcRenderer
.
send
(
"open-forward-msg"
,
that
.
sessionlist
);
})
this
.
MsgBus
.
$on
(
"goForward"
,
function
(
sessions
){
sessions
.
forEach
(
x
=>
{
that
.
$store
.
dispatch
(
"forwardMsg"
,
{
scene
:
x
.
scene
,
to
:
x
.
to
,
msg
:
that
.
forwardMsgInfo
});
})
})
this
.
MsgBus
.
$on
(
"dispose-session"
,
function
()
{
this
.
MsgBus
.
$on
(
"dispose-session"
,
function
()
{
that
.
$store
.
dispatch
(
"resetCurrSession"
);
that
.
$store
.
dispatch
(
"resetCurrSession"
);
that
.
currentSession
=
{
that
.
currentSession
=
{
...
...
src/renderer/components/team/forwardMsg.vue
0 → 100644
View file @
ebacf562
This diff is collapsed.
Click to expand it.
src/renderer/components/tools/contenteditor.vue
View file @
ebacf562
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
></div>
></div>
<div
class=
"tool-copy"
:style=
"{'top': toolTop+'px','left': toolLeft+'px'}"
v-if=
"toolShow"
>
<div
class=
"tool-copy"
:style=
"{'top': toolTop+'px','left': toolLeft+'px'}"
v-if=
"toolShow"
>
<!-- <li>复制</li> -->
<!-- <li>复制</li> -->
<li
@
click
=
"toolPaste"
>
粘贴
</li>
<li
@
paste
=
"toolPaste"
>
粘贴
</li>
</div>
</div>
</at>
</at>
</template>
</template>
...
@@ -206,7 +206,7 @@ export default {
...
@@ -206,7 +206,7 @@ export default {
methods: {
methods: {
toolPaste: function (e) {
toolPaste: function (e) {
let clipboardData = 1
let clipboardData = 1
console.log(e)
console.log(
'111111111',
e)
},
},
copyBox: function (e) {
copyBox: function (e) {
this.toolTop = e.offsetY
this.toolTop = e.offsetY
...
...
src/renderer/router/index.js
View file @
ebacf562
...
@@ -3,56 +3,60 @@ import Router from 'vue-router'
...
@@ -3,56 +3,60 @@ import Router from 'vue-router'
Vue
.
use
(
Router
)
Vue
.
use
(
Router
)
export
default
new
Router
({
export
default
new
Router
({
routes
:
[
routes
:
[{
{
path
:
'/'
,
path
:
'/'
,
name
:
'landing-page'
,
name
:
'landing-page'
,
component
:
require
(
'@/components/login'
)
component
:
require
(
'@/components/login'
)
},
},
{
{
path
:
'/home'
,
path
:
'/home'
,
name
:
'home'
,
name
:
'home'
,
component
:
require
(
'@/components/index'
)
component
:
require
(
'@/components/index'
)
},
},
{
{
path
:
'/previewfile'
,
path
:
'/previewfile'
,
name
:
'previewfile'
,
name
:
'previewfile'
,
component
:
require
(
'@/components/tools/previewerfile'
)
component
:
require
(
'@/components/tools/previewerfile'
)
},
},
{
{
path
:
'/previewerimg'
,
path
:
'/previewerimg'
,
name
:
'previewerimg'
,
name
:
'previewerimg'
,
component
:
require
(
'@/components/tools/previewerimg'
)
component
:
require
(
'@/components/tools/previewerimg'
)
},
},
{
{
path
:
'/previewervideo'
,
path
:
'/previewervideo'
,
name
:
'previewervideo'
,
name
:
'previewervideo'
,
component
:
require
(
'@/components/tools/previewervideo'
)
component
:
require
(
'@/components/tools/previewervideo'
)
},
},
{
{
path
:
'/newmsg'
,
path
:
'/newmsg'
,
name
:
'newmsg'
,
name
:
'newmsg'
,
component
:
require
(
'@/components/msssage/newMsgPop'
)
component
:
require
(
'@/components/msssage/newMsgPop'
)
},
},
{
{
path
:
'/scrollerhot'
,
path
:
'/scrollerhot'
,
name
:
'scrollerhot'
,
name
:
'scrollerhot'
,
component
:
require
(
'@/components/tools/scrollerhot'
)
component
:
require
(
'@/components/tools/scrollerhot'
)
},
},
{
{
path
:
'/dialog'
,
path
:
'/dialog'
,
name
:
'dialog'
,
name
:
'dialog'
,
component
:
require
(
'@/components/tools/dialog'
)
component
:
require
(
'@/components/tools/dialog'
)
},
},
{
{
path
:
'/addnewuser'
,
path
:
'/addnewuser'
,
name
:
'addnewuser'
,
name
:
'addnewuser'
,
component
:
require
(
'@/components/team/addNewUser'
)
component
:
require
(
'@/components/team/addNewUser'
)
},
},
{
{
path
:
'/notice'
,
path
:
'/notice'
,
name
:
'notice'
,
name
:
'notice'
,
component
:
require
(
'@/components/tools/notice'
)
component
:
require
(
'@/components/tools/notice'
)
},
}
{
]
path
:
'/forwardMsg'
,
})
name
:
'forwardMsg'
,
component
:
require
(
'@/components/team/forwardMsg'
)
}
]
})
\ No newline at end of file
src/store/actions/msgs.js
View file @
ebacf562
...
@@ -92,7 +92,7 @@ export function forwardMsg({ state, commit }, obj) {
...
@@ -92,7 +92,7 @@ export function forwardMsg({ state, commit }, obj) {
nim
.
forwardMsg
({
nim
.
forwardMsg
({
scene
:
obj
.
scene
,
scene
:
obj
.
scene
,
to
:
obj
.
to
,
to
:
obj
.
to
,
msg
:
obj
.
tip
,
msg
:
obj
.
msg
,
done
:
function
(
err
,
msg
)
{
done
:
function
(
err
,
msg
)
{
onMsg
(
msg
)
onMsg
(
msg
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment