Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
李勇
/
McuClient
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
李勇
9 years ago
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
939cf4b7f154025f7fb516cedaebb54fbef65e3c
939cf4b7
1 parent
f26ebb58
1.白板模块增加删除当前页所有标注和撤销上一步操作的两个接口
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
48 行增加
和
12 行删除
dist/McuClient.js
src/EngineEntrance.js
src/apes/WhiteBoardApe.js
dist/McuClient.js
查看文件 @
939cf4b
...
...
@@ -73,7 +73,7 @@ return /******/ (function(modules) { // webpackBootstrap
/******/
}
/******/
var
hotApplyOnUpdate
=
true
;
/******/
var
hotCurrentHash
=
"
a8ff19203f3da9a01be5
"
;
// eslint-disable-line no-unused-vars
/******/
var
hotCurrentHash
=
"
105140c15a6ca24bd951
"
;
// eslint-disable-line no-unused-vars
/******/
var
hotCurrentModuleData
=
{};
/******/
var
hotCurrentParents
=
[];
// eslint-disable-line no-unused-vars
...
...
@@ -829,6 +829,7 @@ return /******/ (function(modules) { // webpackBootstrap
_this
.
sendInsertAnnotaion
=
_this
.
_sendInsertAnnotaion
;
//this.sendDeleteAnnotaion=this._sendDeleteAnnotaion;
_this
.
sendDeleteAllAnnotation
=
_this
.
_sendDeleteAllAnnotation
;
_this
.
sendDeleteCurPageAnnotation
=
_this
.
_sendDeleteCurPageAnnotation
;
_this
.
sendGotoPrev
=
_this
.
_sendGotoPrev
;
//DocApe
...
...
@@ -1272,6 +1273,15 @@ return /******/ (function(modules) { // webpackBootstrap
_whiteboard_ape
.
sendDeleteAnnotaion
(
_param
);
}
}
//删除当前页面上的所有标注
},
{
key
:
'_sendDeleteCurPageAnnotation'
,
value
:
function
_sendDeleteCurPageAnnotation
(
_param
)
{
if
(
_whiteboard_ape
)
{
_whiteboard_ape
.
sendDeleteCurPageAnnotation
(
_param
);
}
}
//删除所有标注
},
{
...
...
@@ -1287,7 +1297,7 @@ return /******/ (function(modules) { // webpackBootstrap
key
:
'_sendGotoPrev'
,
value
:
function
_sendGotoPrev
(
_param
)
{
if
(
_whiteboard_ape
)
{
_whiteboard_ape
.
g
otoPrev
(
_param
);
_whiteboard_ape
.
sendG
otoPrev
(
_param
);
}
}
...
...
@@ -17300,8 +17310,8 @@ return /******/ (function(modules) { // webpackBootstrap
//撤销上一步
},
{
key
:
'gotoPrev'
,
value
:
function
gotoPrev
()
{
key
:
'sendGotoPrev'
,
value
:
function
sendGotoPrev
()
{
loger
.
log
(
"白板返回上一步"
);
if
(
this
.
insertHistory
==
null
||
this
.
insertHistory
.
length
<
1
)
{
loger
.
warn
(
"无法继续上一步操作,已经没有可以撤销的数据"
);
...
...
@@ -17310,14 +17320,25 @@ return /******/ (function(modules) { // webpackBootstrap
console
.
log
(
this
.
insertHistory
);
this
.
sendDeleteAnnotaion
(
this
.
insertHistory
.
pop
());
}
//删除当前页码的所有标注
},
{
key
:
'sendDeleteCurPageAnnotation'
,
value
:
function
sendDeleteCurPageAnnotation
(
_param
)
{
for
(
var
key
in
this
.
annoInfos
)
{
var
item
=
this
.
annoInfos
[
key
];
if
(
item
&&
item
.
parentId
==
_GlobalConfig2
.
default
.
activeDocId
&&
item
.
curPageNo
==
_GlobalConfig2
.
default
.
activeDocCurPage
)
{
loger
.
log
(
"sendDeleteCurPageAnnotation 删除当前页面上的标注"
,
key
);
this
.
sendDeleteAnnotaion
({
"itemIdx"
:
key
});
}
}
}
//删除所有标注
},
{
key
:
'sendDeleteAllAnnotation'
,
value
:
function
sendDeleteAllAnnotation
(
_param
)
{
for
(
var
key
in
this
.
annoInfos
)
{
//console.log("key:"+key);
console
.
log
(
"删除白板数据,itemIdx:"
+
key
);
this
.
sendDeleteAnnotaion
({
"itemIdx"
:
key
});
}
}
...
...
@@ -17571,7 +17592,7 @@ return /******/ (function(modules) { // webpackBootstrap
/* whiteBoardModelPdu.parentId=_param.parentId||0;
whiteBoardModelPdu.curPage=_param.curPage||1;*/
whiteBoardModelPdu
.
parentId
=
_GlobalConfig2
.
default
.
activeDocId
;
//当前激活的文档id
whiteBoardModelPdu
.
parentId
=
GlobalCoig
.
activeDocId
;
//当前激活的文档id
whiteBoardModelPdu
.
curPageNo
=
_GlobalConfig2
.
default
.
activeDocCurPage
;
//当前激活的文档页码
whiteBoardModelPdu
.
pointGroup
=
_EngineUtils2
.
default
.
arrayToJsonString
(
_param
.
pointGroup
);
...
...
src/EngineEntrance.js
查看文件 @
939cf4b
...
...
@@ -116,6 +116,7 @@ export default class MessageEntrance extends Emiter {
this
.
sendInsertAnnotaion
=
this
.
_sendInsertAnnotaion
;
//this.sendDeleteAnnotaion=this._sendDeleteAnnotaion;
this
.
sendDeleteAllAnnotation
=
this
.
_sendDeleteAllAnnotation
;
this
.
sendDeleteCurPageAnnotation
=
this
.
_sendDeleteCurPageAnnotation
;
this
.
sendGotoPrev
=
this
.
_sendGotoPrev
;
//DocApe
...
...
@@ -498,6 +499,12 @@ export default class MessageEntrance extends Emiter {
_whiteboard_ape
.
sendDeleteAnnotaion
(
_param
);
}
}
//删除当前页面上的所有标注
_sendDeleteCurPageAnnotation
(
_param
){
if
(
_whiteboard_ape
){
_whiteboard_ape
.
sendDeleteCurPageAnnotation
(
_param
);
}
}
//删除所有标注
_sendDeleteAllAnnotation
(
_param
){
if
(
_whiteboard_ape
){
...
...
@@ -507,7 +514,7 @@ export default class MessageEntrance extends Emiter {
//返回上一步标注
_sendGotoPrev
(
_param
){
if
(
_whiteboard_ape
){
_whiteboard_ape
.
g
otoPrev
(
_param
);
_whiteboard_ape
.
sendG
otoPrev
(
_param
);
}
}
...
...
src/apes/WhiteBoardApe.js
查看文件 @
939cf4b
...
...
@@ -112,7 +112,7 @@ class WhiteBoardApe extends Ape {
this
.
sendUniform
(
adapterPdu
,
true
);
}
//撤销上一步
g
otoPrev
(){
sendG
otoPrev
(){
loger
.
log
(
"白板返回上一步"
);
if
(
this
.
insertHistory
==
null
||
this
.
insertHistory
.
length
<
1
){
loger
.
warn
(
"无法继续上一步操作,已经没有可以撤销的数据"
);
...
...
@@ -121,11 +121,19 @@ class WhiteBoardApe extends Ape {
console
.
log
(
this
.
insertHistory
);
this
.
sendDeleteAnnotaion
(
this
.
insertHistory
.
pop
());
}
//删除当前页码的所有标注
sendDeleteCurPageAnnotation
(
_param
){
for
(
let
key
in
this
.
annoInfos
){
let
item
=
this
.
annoInfos
[
key
];
if
(
item
&&
item
.
parentId
==
GlobalConfig
.
activeDocId
&&
item
.
curPageNo
==
GlobalConfig
.
activeDocCurPage
){
loger
.
log
(
"sendDeleteCurPageAnnotation 删除当前页面上的标注"
,
key
);
this
.
sendDeleteAnnotaion
({
"itemIdx"
:
key
});
}
}
}
//删除所有标注
sendDeleteAllAnnotation
(
_param
){
for
(
let
key
in
this
.
annoInfos
){
//console.log("key:"+key);
console
.
log
(
"删除白板数据,itemIdx:"
+
key
);
this
.
sendDeleteAnnotaion
({
"itemIdx"
:
key
});
}
}
...
...
@@ -356,7 +364,7 @@ class WhiteBoardApe extends Ape {
/* whiteBoardModelPdu.parentId=_param.parentId||0;
whiteBoardModelPdu.curPage=_param.curPage||1;*/
whiteBoardModelPdu
.
parentId
=
GlobalCo
nf
ig
.
activeDocId
;
//当前激活的文档id
whiteBoardModelPdu
.
parentId
=
GlobalCoig
.
activeDocId
;
//当前激活的文档id
whiteBoardModelPdu
.
curPageNo
=
GlobalConfig
.
activeDocCurPage
;
//当前激活的文档页码
whiteBoardModelPdu
.
pointGroup
=
EngineUtils
.
arrayToJsonString
(
_param
.
pointGroup
);
...
...
请
注册
或
登录
后发表评论