Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-drainage
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 32c9596d
authored
Nov 02, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.0.0' into 'master'
fixed See merge request
!39
2 parents
01cee348
4a3f312e
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
187 additions
and
693 deletions
src/api/modules/channel.js
src/assets/css/common.scss
src/assets/img/channel/count1.png
src/assets/img/channel/count2.png
src/components/basic-title/index.vue
src/components/draggable/vue-draggable-resizable.vue
src/components/screenTag/index.vue
src/components/selectCrowd/index.vue
src/components/selectEmp/index.vue
src/components/selectTag/index.vue
src/components/vue-draggable-resizable.vue
src/components/welcome/tag-textarea.vue
src/components/welcome/welcomeWords.vue
src/config/index.js
src/router/routes.js
src/setup/qiankun.js
src/setup/render.js
src/utils/util.js
src/api/modules/channel.js
View file @
32c9596
...
...
@@ -31,11 +31,7 @@ const getFollower = params => {
const
querylabeltree
=
params
=>
{
params
.
method
=
'scrm.api.datahub.labelgroup.queryLabelTree'
params
.
sessionId
=
session
<<<<<<<
HEAD
return
http
({
=======
return
http_tag
({
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
...
...
@@ -44,11 +40,7 @@ const querylabeltree = params => {
}
const
queryCrowdtree
=
params
=>
{
params
.
method
=
'scrm.api.datahub.user.queryCrowdTree'
<<<<<<<
HEAD
return
http
({
=======
return
http_tag
({
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
...
...
src/assets/css/common.scss
View file @
32c9596
img
{
width
:
100%
;
height
:
100%
;
vertical-align
:
top
;
width
:
100%
;
height
:
100%
;
vertical-align
:
top
;
}
.text-hide
{
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
.text-hide-2
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
display
:
-
webkit-box
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
2
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
display
:
-
webkit-box
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
2
;
}
.scrm-textRight
{
position
:
relative
;
text-align
:
right
;
position
:
relative
;
text-align
:
right
;
}
.scrm-textCenter
{
text-align
:
center
;
text-align
:
center
;
}
.scrm-c3
{
color
:
#333333
;
color
:
#333333
;
}
.scrm-f12
{
font-size
:
12px
;
font-size
:
12px
;
}
.scrm-f13
{
font-size
:
13px
;
font-size
:
13px
;
}
.scrm-f14
{
font-size
:
14px
;
font-size
:
14px
;
}
.scrm-f15
{
font-size
:
15px
;
font-size
:
15px
;
}
.scrm-f16
{
font-size
:
16px
;
font-size
:
16px
;
}
.scrm-f18
{
font-size
:
18px
;
font-size
:
18px
;
}
.scrm-f20
{
font-size
:
20px
;
font-size
:
20px
;
}
.scrm-f22
{
font-size
:
22px
;
font-size
:
22px
;
}
.scrm-f24
{
font-size
:
24px
;
font-size
:
24px
;
}
.scrm-m10
{
margin
:
10px
;
margin
:
10px
;
}
.scrm-m20
{
margin
:
20px
;
margin
:
20px
;
}
.scrm-ml10
{
margin-left
:
10px
;
margin-left
:
10px
;
}
.scrm-ml20
{
margin-left
:
20px
;
margin-left
:
20px
;
}
.scrm-mr10
{
margin-right
:
10px
;
margin-right
:
10px
;
}
.scrm-mr20
{
margin-right
:
20px
;
margin-right
:
20px
;
}
.scrm-p10
{
padding
:
10px
;
padding
:
10px
;
}
.scrm-p20
{
padding
:
20px
;
padding
:
20px
;
}
.scrm-box-f
{
background
:
#ffffff
;
//
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
background
:
#ffffff
;
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0
.1
);
}
.scrm-flex
{
display
:
flex
;
}
.task_icon
{
position
:
relative
;
&
:
:
after
{
content
:
''
;
position
:
absolute
;
top
:
8px
;
left
:
-10px
;
width
:
6px
;
height
:
6px
;
border-radius
:
4px
;
}
}
.green-icon
{
&
:
:
after
{
background
:
#2cca74
;
}
}
.yellow-icon
{
&
:
:
after
{
background
:
#fdb757
;
}
display
:
flex
;
}
::-webkit-scrollbar
{
/*滚动条整体样式*/
width
:
6px
;
height
:
4px
;
/*滚动条整体样式*/
width
:
6px
;
height
:
4px
;
}
::-webkit-scrollbar-thumb
{
/*滚动条里面小方块*/
border-radius
:
4px
;
background-color
:
rgba
(
144
,
147
,
153
,
0
.3
);
/*滚动条里面小方块*/
border-radius
:
4px
;
background-color
:
rgba
(
144
,
147
,
153
,
0
.3
);
}
.glsx-table
.line-ellipsis
{
display
:
inline
;
display
:
inline
;
}
.el-form--inline
.el-form-item
{
margin-right
:
0px
;
margin-right
:
0px
;
}
.el-tag
{
color
:
#666
!
important
;
font-size
:
14px
!
important
;
color
:
#666
!
important
;
font-size
:
14px
!
important
;
}
.el-tag.el-tag--info
{
background
:
#fafbfe
!
important
;
border
:
1px
solid
#e8e8ea
!
important
;
border-radius
:
4px
;
background
:
#fafbfe
!
important
;
border
:
1px
solid
#e8e8ea
!
important
;
border-radius
:
4px
;
}
.el-tag.el-tag--info.el-tag--plain
{
background
:
transparent
!
important
;
background
:
transparent
!
important
;
}
.el-dialog__title
{
height
:
30px
;
display
:
block
;
height
:
30px
;
display
:
block
;
}
.el-table--enable-row-hover
.el-table__body
tr
:hover
{
background
:
#f4f3ff
!
important
;
background
:
#f4f3ff
!
important
;
}
.el-table
tbody
tr
:hover
>
td
{
background
:
#f4f3ff
!
important
;
}
.el-message-box
.el-message-box__title
,
.el-message-box
.el-message-box__headerbtn
{
// display: none;
}
.el-message-box__content
{
text-align
:
center
;
padding
:
50px
0px
50px
;
}
.el-message-box__status.el-icon-warning
{
// display: none;
}
.el-message-box__btns
{
text-align
:
center
;
padding
:
20px
0px
10px
;
border-top
:
1px
solid
#e6e6e6
;
}
.el-message-box__btns
button
:nth-child
(
2
)
{
margin-left
:
40px
;
}
.el-message-box__status
+
.el-message-box__message
{
padding
:
0px
10px
;
}
.el-message-box--center
{
padding
:
0px
;
}
.el-message--info
{
height
:
40px
;
background
:
#e6e9ff
;
border
:
1px
solid
#5850ff
;
border-radius
:
4px
;
font-size
:
14px
;
color
:
rgba
(
0
,
0
,
0
,
0
.65
);
}
.el-message
.el-icon-info
{
color
:
#5850ff
;
font-size
:
16px
;
}
.el-radio
:focus:not
(
.is-focus
)
:not
(
:active
)
:not
(
.is-disabled
)
.el-radio__inner
{
box-shadow
:
none
!
important
;
background
:
#f4f3ff
!
important
;
}
.el-message-box
.el-message-box__title
,
.el-message-box
.el-message-box__headerbtn
{
display
:
none
;
...
...
src/assets/img/channel/count1.png
View file @
32c9596
2.93 KB
|
W:
|
H:
1.84 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/img/channel/count2.png
View file @
32c9596
2.91 KB
|
W:
|
H:
1.95 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/components/basic-title/index.vue
View file @
32c9596
...
...
@@ -26,10 +26,7 @@ export default {
},
filters
:
{
ellipsis
(
value
,
that
)
{
<<<<<<<
HEAD
=======
console
.
log
(
value
,
that
)
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
if
(
value
.
length
>
that
.
textLength
)
{
that
.
tooltipStatus
=
true
return
value
.
slice
(
0
,
that
.
textLength
)
+
'...'
...
...
src/components/draggable/vue-draggable-resizable.vue
View file @
32c9596
<
template
>
<div
:style=
"style"
<<<<<<
< HEAD
:class=
"[
{
[classNameActive]: enabled,
[classNameDragging]: dragging,
[classNameResizing]: resizing,
[classNameDraggable]: draggable,
[classNameResizable]: resizable
},
className
]"
@mousedown="elementMouseDown"
@touchstart="elementTouchDown"
>
<div
v-for=
"handle in actualHandles"
:key=
"handle"
:class=
"[classNameHandle, classNameHandle + '-' + handle]"
:style=
"
{ display: enabled ? 'block' : 'none' }" @mousedown.stop.prevent="handleDown(handle, $event)" @touchstart.stop.prevent="handleTouchDown(handle, $event)">
=======
:class=
"[
{
[classNameActive]: enabled,
[classNameDragging]: dragging,
...
...
@@ -35,7 +19,6 @@
@mousedown.stop.prevent="handleDown(handle, $event)"
@touchstart.stop.prevent="handleTouchDown(handle, $event)"
>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<slot
:name=
"handle"
></slot>
</div>
<slot></slot>
...
...
@@ -138,11 +121,7 @@ export default {
w
:
{
type
:
[
Number
,
String
],
default
:
200
,
<<<<<<<
HEAD
validator
:
val
=>
{
=======
validator
:
(
val
)
=>
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
if
(
typeof
val
===
'number'
)
{
return
val
>
0
}
...
...
@@ -153,11 +132,7 @@ export default {
h
:
{
type
:
[
Number
,
String
],
default
:
200
,
<<<<<<<
HEAD
validator
:
val
=>
{
=======
validator
:
(
val
)
=>
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
if
(
typeof
val
===
'number'
)
{
return
val
>
0
}
...
...
@@ -168,38 +143,22 @@ export default {
minWidth
:
{
type
:
Number
,
default
:
0
,
<<<<<<<
HEAD
validator
:
val
=>
val
>=
0
=======
validator
:
(
val
)
=>
val
>=
0
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
},
minHeight
:
{
type
:
Number
,
default
:
0
,
<<<<<<<
HEAD
validator
:
val
=>
val
>=
0
=======
validator
:
(
val
)
=>
val
>=
0
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
},
maxWidth
:
{
type
:
Number
,
default
:
null
,
<<<<<<<
HEAD
validator
:
val
=>
val
>=
0
=======
validator
:
(
val
)
=>
val
>=
0
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
},
maxHeight
:
{
type
:
Number
,
default
:
null
,
<<<<<<<
HEAD
validator
:
val
=>
val
>=
0
=======
validator
:
(
val
)
=>
val
>=
0
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
},
x
:
{
type
:
Number
,
...
...
@@ -212,20 +171,12 @@ export default {
z
:
{
type
:
[
String
,
Number
],
default
:
'auto'
,
<<<<<<<
HEAD
validator
:
val
=>
(
typeof
val
===
'string'
?
val
===
'auto'
:
val
>=
0
)
=======
validator
:
(
val
)
=>
(
typeof
val
===
'string'
?
val
===
'auto'
:
val
>=
0
)
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
},
handles
:
{
type
:
Array
,
default
:
()
=>
[
'tl'
,
'tm'
,
'tr'
,
'mr'
,
'br'
,
'bm'
,
'bl'
,
'ml'
],
<<<<<<<
HEAD
validator
:
val
=>
{
=======
validator
:
(
val
)
=>
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
const
s
=
new
Set
([
'tl'
,
'tm'
,
'tr'
,
'mr'
,
'br'
,
'bm'
,
'bl'
,
'ml'
])
return
new
Set
(
val
.
filter
(
h
=>
s
.
has
(
h
))).
size
===
val
.
length
...
...
@@ -242,22 +193,14 @@ export default {
axis
:
{
type
:
String
,
default
:
'both'
,
<<<<<<<
HEAD
validator
:
val
=>
[
'x'
,
'y'
,
'both'
].
includes
(
val
)
=======
validator
:
(
val
)
=>
[
'x'
,
'y'
,
'both'
].
includes
(
val
)
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
},
grid
:
{
type
:
Array
,
default
:
()
=>
[
1
,
1
]
},
customId
:
{
<<<<<<<
HEAD
type
:
[
String
,
Number
],
=======
type
:
[
String
,
Number
],
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
default
:
''
},
parent
:
{
...
...
@@ -267,11 +210,7 @@ export default {
scale
:
{
type
:
[
Number
,
Array
],
default
:
1
,
<<<<<<<
HEAD
validator
:
val
=>
{
=======
validator
:
(
val
)
=>
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
if
(
typeof
val
===
'number'
)
{
return
val
>
0
}
...
...
@@ -297,11 +236,7 @@ export default {
}
},
<<<<<<<
HEAD
data
:
function
()
{
=======
data
:
function
()
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
return
{
left
:
this
.
x
,
top
:
this
.
y
,
...
...
@@ -335,11 +270,7 @@ export default {
}
},
<<<<<<<
HEAD
created
:
function
()
{
=======
created
:
function
()
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
// eslint-disable-next-line
if
(
this
.
maxWidth
&&
this
.
minWidth
>
this
.
maxWidth
)
console
.
warn
(
'[Vdr warn]: Invalid prop: minWidth cannot be greater than maxWidth'
)
// eslint-disable-next-line
...
...
@@ -347,11 +278,7 @@ export default {
this
.
resetBoundsAndMouseState
()
},
<<<<<<<
HEAD
mounted
:
function
()
{
=======
mounted
:
function
()
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
if
(
!
this
.
enableNativeDrag
)
{
this
.
$el
.
ondragstart
=
()
=>
false
}
...
...
@@ -380,11 +307,7 @@ export default {
addEvent
(
window
,
'resize'
,
this
.
checkParentSize
)
},
<<<<<<<
HEAD
beforeDestroy
:
function
()
{
=======
beforeDestroy
:
function
()
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
removeEvent
(
document
.
documentElement
,
'mousedown'
,
this
.
deselect
)
removeEvent
(
document
.
documentElement
,
'touchstart'
,
this
.
handleUp
)
removeEvent
(
document
.
documentElement
,
'mousemove'
,
this
.
move
)
...
...
@@ -396,11 +319,7 @@ export default {
},
methods
:
{
<<<<<<<
HEAD
resetBoundsAndMouseState
()
{
=======
resetBoundsAndMouseState
()
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
this
.
mouseClickPosition
=
{
mouseX
:
0
,
mouseY
:
0
,
x
:
0
,
y
:
0
,
w
:
0
,
h
:
0
}
this
.
bounds
=
{
...
...
@@ -414,11 +333,7 @@ export default {
maxBottom
:
null
}
},
<<<<<<<
HEAD
checkParentSize
()
{
=======
checkParentSize
()
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
if
(
this
.
parent
)
{
const
[
newParentWidth
,
newParentHeight
]
=
this
.
getParentSize
()
...
...
@@ -428,13 +343,6 @@ export default {
this
.
bottom
=
this
.
parentHeight
-
this
.
height
-
this
.
top
}
},
<<<<<<<
HEAD
getParentSize
()
{
if
(
this
.
parent
)
{
const
style
=
window
.
getComputedStyle
(
this
.
$el
.
parentNode
,
null
)
return
[
parseInt
(
style
.
getPropertyValue
(
'width'
),
10
),
parseInt
(
style
.
getPropertyValue
(
'height'
),
10
)]
=======
getParentSize
()
{
if
(
this
.
parent
)
{
const
style
=
window
.
getComputedStyle
(
this
.
$el
.
parentNode
,
null
)
...
...
@@ -443,34 +351,21 @@ export default {
parseInt
(
style
.
getPropertyValue
(
'width'
),
10
),
parseInt
(
style
.
getPropertyValue
(
'height'
),
10
)
]
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
}
return
[
null
,
null
]
},
<<<<<<<
HEAD
elementTouchDown
(
e
)
{
=======
elementTouchDown
(
e
)
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
eventsFor
=
events
.
touch
this
.
elementDown
(
e
)
},
<<<<<<<
HEAD
elementMouseDown
(
e
)
{
=======
elementMouseDown
(
e
)
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
eventsFor
=
events
.
mouse
this
.
elementDown
(
e
)
},
<<<<<<<
HEAD
elementDown
(
e
)
{
=======
elementDown
(
e
)
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
if
(
e
instanceof
MouseEvent
&&
e
.
which
!==
1
)
{
return
}
...
...
@@ -482,14 +377,10 @@ export default {
return
}
<<<<<<<
HEAD
if
((
this
.
dragHandle
&&
!
matchesSelectorToParentElements
(
target
,
this
.
dragHandle
,
this
.
$el
))
||
(
this
.
dragCancel
&&
matchesSelectorToParentElements
(
target
,
this
.
dragCancel
,
this
.
$el
)))
{
=======
if
(
(
this
.
dragHandle
&&
!
matchesSelectorToParentElements
(
target
,
this
.
dragHandle
,
this
.
$el
))
||
(
this
.
dragCancel
&&
matchesSelectorToParentElements
(
target
,
this
.
dragCancel
,
this
.
$el
))
)
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
this
.
dragging
=
false
return
...
...
@@ -498,11 +389,7 @@ export default {
if
(
!
this
.
enabled
)
{
this
.
enabled
=
true
<<<<<<<
HEAD
this
.
$emit
(
'activated'
,
this
.
customId
)
=======
this
.
$emit
(
'activated'
,
this
.
customId
)
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
this
.
$emit
(
'update:active'
,
true
)
}
...
...
@@ -526,11 +413,7 @@ export default {
addEvent
(
document
.
documentElement
,
eventsFor
.
stop
,
this
.
handleUp
)
}
},
<<<<<<<
HEAD
calcDragLimits
()
{
=======
calcDragLimits
()
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
return
{
minLeft
:
this
.
left
%
this
.
grid
[
0
],
maxLeft
:
Math
.
floor
((
this
.
parentWidth
-
this
.
width
-
this
.
left
)
/
this
.
grid
[
0
])
*
this
.
grid
[
0
]
+
this
.
left
,
...
...
@@ -542,11 +425,7 @@ export default {
maxBottom
:
Math
.
floor
((
this
.
parentHeight
-
this
.
height
-
this
.
bottom
)
/
this
.
grid
[
1
])
*
this
.
grid
[
1
]
+
this
.
bottom
}
},
<<<<<<<
HEAD
deselect
(
e
)
{
=======
deselect
(
e
)
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
const
target
=
e
.
target
||
e
.
srcElement
const
regex
=
new
RegExp
(
this
.
className
+
'-([trmbl]{2})'
,
''
)
...
...
@@ -563,20 +442,12 @@ export default {
this
.
resetBoundsAndMouseState
()
},
<<<<<<<
HEAD
handleTouchDown
(
handle
,
e
)
{
=======
handleTouchDown
(
handle
,
e
)
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
eventsFor
=
events
.
touch
this
.
handleDown
(
handle
,
e
)
},
<<<<<<<
HEAD
handleDown
(
handle
,
e
)
{
=======
handleDown
(
handle
,
e
)
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
if
(
e
instanceof
MouseEvent
&&
e
.
which
!==
1
)
{
return
}
...
...
@@ -609,11 +480,7 @@ export default {
addEvent
(
document
.
documentElement
,
eventsFor
.
move
,
this
.
handleResize
)
addEvent
(
document
.
documentElement
,
eventsFor
.
stop
,
this
.
handleUp
)
},
<<<<<<<
HEAD
calcResizeLimits
()
{
=======
calcResizeLimits
()
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
let
minW
=
this
.
minW
let
minH
=
this
.
minH
let
maxW
=
this
.
maxW
...
...
@@ -705,11 +572,7 @@ export default {
limits
.
minBottom
=
-
(
top
+
maxH
)
}
<<<<<<<
HEAD
if
(
this
.
lockAspectRatio
&&
maxW
&&
maxH
)
{
=======
if
(
this
.
lockAspectRatio
&&
(
maxW
&&
maxH
))
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
limits
.
minLeft
=
Math
.
min
(
limits
.
minLeft
,
-
(
right
+
maxW
))
limits
.
minTop
=
Math
.
min
(
limits
.
minTop
,
-
(
maxH
+
bottom
))
limits
.
minRight
=
Math
.
min
(
limits
.
minRight
,
-
left
-
maxW
)
...
...
@@ -719,22 +582,14 @@ export default {
return
limits
},
<<<<<<<
HEAD
move
(
e
)
{
=======
move
(
e
)
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
if
(
this
.
resizing
)
{
this
.
handleResize
(
e
)
}
else
if
(
this
.
dragEnable
)
{
this
.
handleDrag
(
e
)
}
},
<<<<<<<
HEAD
handleDrag
(
e
)
{
=======
handleDrag
(
e
)
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
const
axis
=
this
.
axis
const
grid
=
this
.
grid
const
bounds
=
this
.
bounds
...
...
@@ -763,11 +618,7 @@ export default {
this
.
$emit
(
'dragging'
,
this
.
left
,
this
.
top
)
this
.
dragging
=
true
},
<<<<<<<
HEAD
moveHorizontally
(
val
)
{
=======
moveHorizontally
(
val
)
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
// should calculate with scale 1.
const
[
deltaX
,
_
]
=
snapToGrid
(
this
.
grid
,
val
,
this
.
top
,
1
)
...
...
@@ -776,11 +627,7 @@ export default {
this
.
left
=
left
this
.
right
=
this
.
parentWidth
-
this
.
width
-
left
},
<<<<<<<
HEAD
moveVertically
(
val
)
{
=======
moveVertically
(
val
)
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
// should calculate with scale 1.
const
[
_
,
deltaY
]
=
snapToGrid
(
this
.
grid
,
this
.
left
,
val
,
1
)
...
...
@@ -789,11 +636,7 @@ export default {
this
.
top
=
top
this
.
bottom
=
this
.
parentHeight
-
this
.
height
-
top
},
<<<<<<<
HEAD
handleResize
(
e
)
{
=======
handleResize
(
e
)
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
let
left
=
this
.
left
let
top
=
this
.
top
let
right
=
this
.
right
...
...
@@ -817,29 +660,21 @@ export default {
const
[
deltaX
,
deltaY
]
=
snapToGrid
(
this
.
grid
,
tmpDeltaX
,
tmpDeltaY
,
this
.
scale
)
if
(
this
.
handle
.
includes
(
'b'
))
{
<<<<<<<
HEAD
bottom
=
restrictToBounds
(
mouseClickPosition
.
bottom
+
deltaY
,
this
.
bounds
.
minBottom
,
this
.
bounds
.
maxBottom
)
=======
bottom
=
restrictToBounds
(
mouseClickPosition
.
bottom
+
deltaY
,
this
.
bounds
.
minBottom
,
this
.
bounds
.
maxBottom
)
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
if
(
this
.
lockAspectRatio
&&
this
.
resizingOnY
)
{
right
=
this
.
right
-
(
this
.
bottom
-
bottom
)
*
aspectFactor
}
}
else
if
(
this
.
handle
.
includes
(
't'
))
{
<<<<<<<
HEAD
top
=
restrictToBounds
(
mouseClickPosition
.
top
-
deltaY
,
this
.
bounds
.
minTop
,
this
.
bounds
.
maxTop
)
=======
top
=
restrictToBounds
(
mouseClickPosition
.
top
-
deltaY
,
this
.
bounds
.
minTop
,
this
.
bounds
.
maxTop
)
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
if
(
this
.
lockAspectRatio
&&
this
.
resizingOnY
)
{
left
=
this
.
left
-
(
this
.
top
-
top
)
*
aspectFactor
...
...
@@ -847,29 +682,21 @@ export default {
}
if
(
this
.
handle
.
includes
(
'r'
))
{
<<<<<<<
HEAD
right
=
restrictToBounds
(
mouseClickPosition
.
right
+
deltaX
,
this
.
bounds
.
minRight
,
this
.
bounds
.
maxRight
)
=======
right
=
restrictToBounds
(
mouseClickPosition
.
right
+
deltaX
,
this
.
bounds
.
minRight
,
this
.
bounds
.
maxRight
)
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
if
(
this
.
lockAspectRatio
&&
this
.
resizingOnX
)
{
bottom
=
this
.
bottom
-
(
this
.
right
-
right
)
/
aspectFactor
}
}
else
if
(
this
.
handle
.
includes
(
'l'
))
{
<<<<<<<
HEAD
left
=
restrictToBounds
(
mouseClickPosition
.
left
-
deltaX
,
this
.
bounds
.
minLeft
,
this
.
bounds
.
maxLeft
)
=======
left
=
restrictToBounds
(
mouseClickPosition
.
left
-
deltaX
,
this
.
bounds
.
minLeft
,
this
.
bounds
.
maxLeft
)
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
if
(
this
.
lockAspectRatio
&&
this
.
resizingOnX
)
{
top
=
this
.
top
-
(
this
.
left
-
left
)
/
aspectFactor
...
...
@@ -893,13 +720,6 @@ export default {
this
.
$emit
(
'resizing'
,
this
.
left
,
this
.
top
,
this
.
width
,
this
.
height
)
this
.
resizing
=
true
},
<<<<<<<
HEAD
changeWidth
(
val
)
{
// should calculate with scale 1.
const
[
newWidth
,
_
]
=
snapToGrid
(
this
.
grid
,
val
,
0
,
1
)
let
right
=
restrictToBounds
(
this
.
parentWidth
-
newWidth
-
this
.
left
,
this
.
bounds
.
minRight
,
this
.
bounds
.
maxRight
)
=======
changeWidth
(
val
)
{
// should calculate with scale 1.
const
[
newWidth
,
_
]
=
snapToGrid
(
this
.
grid
,
val
,
0
,
1
)
...
...
@@ -909,7 +729,6 @@ export default {
this
.
bounds
.
minRight
,
this
.
bounds
.
maxRight
)
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
let
bottom
=
this
.
bottom
if
(
this
.
lockAspectRatio
)
{
...
...
@@ -924,13 +743,6 @@ export default {
this
.
width
=
width
this
.
height
=
height
},
<<<<<<<
HEAD
changeHeight
(
val
)
{
// should calculate with scale 1.
const
[
_
,
newHeight
]
=
snapToGrid
(
this
.
grid
,
0
,
val
,
1
)
let
bottom
=
restrictToBounds
(
this
.
parentHeight
-
newHeight
-
this
.
top
,
this
.
bounds
.
minBottom
,
this
.
bounds
.
maxBottom
)
=======
changeHeight
(
val
)
{
// should calculate with scale 1.
const
[
_
,
newHeight
]
=
snapToGrid
(
this
.
grid
,
0
,
val
,
1
)
...
...
@@ -940,7 +752,6 @@ export default {
this
.
bounds
.
minBottom
,
this
.
bounds
.
maxBottom
)
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
let
right
=
this
.
right
if
(
this
.
lockAspectRatio
)
{
...
...
@@ -955,11 +766,7 @@ export default {
this
.
width
=
width
this
.
height
=
height
},
<<<<<<<
HEAD
handleUp
(
e
)
{
=======
handleUp
(
e
)
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
this
.
handle
=
null
this
.
resetBoundsAndMouseState
()
...
...
@@ -981,11 +788,7 @@ export default {
}
},
computed
:
{
<<<<<<<
HEAD
style
()
{
=======
style
()
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
return
{
transform
:
`translate(
${
this
.
left
}
px,
${
this
.
top
}
px)`
,
width
:
this
.
computedWidth
,
...
...
@@ -994,20 +797,12 @@ export default {
...(
this
.
dragging
&&
this
.
disableUserSelect
?
userSelectNone
:
userSelectAuto
)
}
},
<<<<<<<
HEAD
actualHandles
()
{
=======
actualHandles
()
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
if
(
!
this
.
resizable
)
return
[]
return
this
.
handles
},
<<<<<<<
HEAD
computedWidth
()
{
=======
computedWidth
()
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
if
(
this
.
w
===
'auto'
)
{
if
(
!
this
.
widthTouched
)
{
return
'auto'
...
...
@@ -1016,11 +811,7 @@ export default {
return
this
.
width
+
'px'
},
<<<<<<<
HEAD
computedHeight
()
{
=======
computedHeight
()
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
if
(
this
.
h
===
'auto'
)
{
if
(
!
this
.
heightTouched
)
{
return
'auto'
...
...
@@ -1029,16 +820,6 @@ export default {
return
this
.
height
+
'px'
},
<<<<<<<
HEAD
resizingOnX
()
{
return
Boolean
(
this
.
handle
)
&&
(
this
.
handle
.
includes
(
'l'
)
||
this
.
handle
.
includes
(
'r'
))
},
resizingOnY
()
{
return
Boolean
(
this
.
handle
)
&&
(
this
.
handle
.
includes
(
't'
)
||
this
.
handle
.
includes
(
'b'
))
},
isCornerHandle
()
{
return
Boolean
(
this
.
handle
)
&&
[
'tl'
,
'tr'
,
'br'
,
'bl'
].
includes
(
this
.
handle
)
=======
resizingOnX
()
{
return
(
Boolean
(
this
.
handle
)
&&
(
this
.
handle
.
includes
(
'l'
)
||
this
.
handle
.
includes
(
'r'
)))
},
...
...
@@ -1047,16 +828,11 @@ export default {
},
isCornerHandle
()
{
return
(
Boolean
(
this
.
handle
)
&&
[
'tl'
,
'tr'
,
'br'
,
'bl'
].
includes
(
this
.
handle
))
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
}
},
watch
:
{
<<<<<<<
HEAD
active
(
val
)
{
=======
active
(
val
)
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
this
.
enabled
=
val
if
(
val
)
{
...
...
@@ -1065,20 +841,12 @@ export default {
this
.
$emit
(
'deactivated'
)
}
},
<<<<<<<
HEAD
z
(
val
)
{
=======
z
(
val
)
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
if
(
val
>=
0
||
val
===
'auto'
)
{
this
.
zIndex
=
val
}
},
<<<<<<<
HEAD
x
(
val
)
{
=======
x
(
val
)
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
if
(
this
.
resizing
||
this
.
dragging
)
{
return
}
...
...
@@ -1089,11 +857,7 @@ export default {
this
.
moveHorizontally
(
val
)
},
<<<<<<<
HEAD
y
(
val
)
{
=======
y
(
val
)
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
if
(
this
.
resizing
||
this
.
dragging
)
{
return
}
...
...
@@ -1104,44 +868,23 @@ export default {
this
.
moveVertically
(
val
)
},
<<<<<<<
HEAD
lockAspectRatio
(
val
)
{
=======
lockAspectRatio
(
val
)
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
if
(
val
)
{
this
.
aspectFactor
=
this
.
width
/
this
.
height
}
else
{
this
.
aspectFactor
=
undefined
}
},
<<<<<<<
HEAD
minWidth
(
val
)
{
=======
minWidth
(
val
)
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
if
(
val
>
0
&&
val
<=
this
.
width
)
{
this
.
minW
=
val
}
},
<<<<<<<
HEAD
minHeight
(
val
)
{
=======
minHeight
(
val
)
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
if
(
val
>
0
&&
val
<=
this
.
height
)
{
this
.
minH
=
val
}
},
<<<<<<<
HEAD
maxWidth
(
val
)
{
this
.
maxW
=
val
},
maxHeight
(
val
)
{
this
.
maxH
=
val
},
w
(
val
)
{
=======
maxWidth
(
val
)
{
this
.
maxW
=
val
},
...
...
@@ -1149,7 +892,6 @@ export default {
this
.
maxH
=
val
},
w
(
val
)
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
if
(
this
.
resizing
||
this
.
dragging
)
{
return
}
...
...
@@ -1160,11 +902,7 @@ export default {
this
.
changeWidth
(
val
)
},
<<<<<<<
HEAD
h
(
val
)
{
=======
h
(
val
)
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
if
(
this
.
resizing
||
this
.
dragging
)
{
return
}
...
...
src/components/screenTag/index.vue
View file @
32c9596
<
template
>
<div
class=
"tag-main"
>
<<<<<<
< HEAD
<el-dialog
bigTitle=
"选择标签"
:visible
.
sync=
"dialogVisible"
width=
"50%"
:before-close=
"handleClose"
>
=======
<el-dialog
title=
"选择标签"
:visible
.
sync=
"dialogVisible"
width=
"50%"
:before-close=
"handleClose"
>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<div
class=
"tag-panel"
>
<div
class=
"tag-panel-select"
>
<div
class=
"tag-title"
>
预选标签
</div>
...
...
src/components/selectCrowd/index.vue
View file @
32c9596
...
...
@@ -7,11 +7,7 @@
-->
<
template
>
<div>
<<<<<<
< HEAD
<GLDialog
title=
"人群筛选"
:hasFooter=
"true"
:visible
.
sync=
"crowdVisible"
mode=
"big"
>
=======
<el-dialog
:title=
"'人群筛选'"
:width=
"'1080px'"
:visible
.
sync=
"crowdVisible"
v-if=
"crowdVisible"
>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<div
class=
"member-wrapper"
>
<div
class=
"member-left"
>
<div
class=
"member-title"
>
...
...
@@ -47,11 +43,7 @@
<el-button
style=
"width: 68px;"
size=
"small"
@
click=
"crowdVisible = false"
>
取 消
</el-button>
<el-button
style=
"width: 68px;"
size=
"small"
type=
"primary"
@
click
.
native=
"handleConfirm"
>
确 定
</el-button>
</span>
<<<<<<
< HEAD
</GLDialog>
=======
</el-dialog>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
</div>
</
template
>
...
...
@@ -105,10 +97,7 @@ export default {
},
methods
:
{
init
(
val
)
{
<<<<<<<
HEAD
=======
// console.log(val)
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
this
.
inner
=
this
.
$common
.
utils
.
deepClone
(
val
)
this
.
innerTags
=
this
.
$common
.
utils
.
deepClone
(
val
)
this
.
crowdVisible
=
true
...
...
src/components/selectEmp/index.vue
View file @
32c9596
<
template
>
<div
class=
"square-main"
v-loading=
"loading"
>
<
GLDialog
title=
"选择跟进专员"
:hasFooter=
"true"
:visible
.
sync=
"dialogVisibl
e"
>
<
el-dialog
title=
"选择跟进专员"
:visible
.
sync=
"dialogVisible"
width=
"50%"
:before-close=
"handleClos
e"
>
<el-form
:inline=
"true"
:model=
"tableSearchForm"
>
<el-form-item
size=
"small"
label=
"员工"
>
<el-input
v-model=
"tableSearchForm.staffName"
placeholder=
"请输入员工姓名"
></el-input>
...
...
@@ -15,7 +15,7 @@
<el-button
size=
"small"
@
click=
"handleCancel"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click
.
native=
"handleSelect"
>
确 定
</el-button>
</span>
</
GLD
ialog>
</
el-d
ialog>
</div>
</
template
>
...
...
src/components/selectTag/index.vue
View file @
32c9596
<
template
>
<div
class=
"tag-main"
>
<
GLDialog
bigTitle=
"选择标签"
:hasFooter=
"true"
:visible
.
sync=
"dialogVisible"
mode=
"big
"
>
<
el-dialog
title=
"选择标签"
:visible
.
sync=
"dialogVisible"
width=
"70%"
:before-close=
"handleClose
"
>
<div
class=
"tag-panel"
>
<div
class=
"tag-panel-select"
>
<div
class=
"tag-title"
>
预选标签
</div>
...
...
@@ -44,7 +44,7 @@
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSelect"
>
确 定
</el-button>
</span>
</
GLD
ialog>
</
el-d
ialog>
</div>
</template>
...
...
@@ -216,6 +216,7 @@ export default {
}
})
.
filter
(
item
=>
item
)
console
.
log
(
labelTreeRets
)
this
.
$emit
(
'tagSelected'
,
labelTreeRets
)
},
//全选
...
...
@@ -354,6 +355,5 @@ export default {
}
.tag-selected-box
{
min-height
:
200px
;
overflow
:
auto
;
}
</
style
>
src/components/vue-draggable-resizable.vue
View file @
32c9596
<
template
>
<div
:style=
"style"
:class=
"[
{
[classNameActive]: enabled,
[classNameDragging]: dragging,
[classNameResizing]: resizing,
[classNameDraggable]: draggable,
[classNameResizable]: resizable
},
className
]"
:class=
"[
{
[classNameActive]: enabled,
[classNameDragging]: dragging,
[classNameResizing]: resizing,
[classNameDraggable]: draggable,
[classNameResizable]: resizable
}, className]"
@mousedown="elementMouseDown"
@touchstart="elementTouchDown"
>
<div
v-for=
"handle in actualHandles"
:key=
"handle"
:class=
"[classNameHandle, classNameHandle + '-' + handle]"
:style=
"
{ display: enabled ? 'block' : 'none' }" @mousedown.stop.prevent="handleDown(handle, $event)" @touchstart.stop.prevent="handleTouchDown(handle, $event)">
<div
v-for=
"handle in actualHandles"
:key=
"handle"
:class=
"[classNameHandle, classNameHandle + '-' + handle]"
:style=
"
{display: enabled ? 'block' : 'none'}"
@mousedown.stop.prevent="handleDown(handle, $event)"
@touchstart.stop.prevent="handleTouchDown(handle, $event)"
>
<slot
:name=
"handle"
></slot>
</div>
<slot></slot>
...
...
@@ -117,7 +121,7 @@ export default {
w
:
{
type
:
[
Number
,
String
],
default
:
200
,
validator
:
val
=>
{
validator
:
(
val
)
=>
{
if
(
typeof
val
===
'number'
)
{
return
val
>
0
}
...
...
@@ -128,7 +132,7 @@ export default {
h
:
{
type
:
[
Number
,
String
],
default
:
200
,
validator
:
val
=>
{
validator
:
(
val
)
=>
{
if
(
typeof
val
===
'number'
)
{
return
val
>
0
}
...
...
@@ -139,22 +143,22 @@ export default {
minWidth
:
{
type
:
Number
,
default
:
0
,
validator
:
val
=>
val
>=
0
validator
:
(
val
)
=>
val
>=
0
},
minHeight
:
{
type
:
Number
,
default
:
0
,
validator
:
val
=>
val
>=
0
validator
:
(
val
)
=>
val
>=
0
},
maxWidth
:
{
type
:
Number
,
default
:
null
,
validator
:
val
=>
val
>=
0
validator
:
(
val
)
=>
val
>=
0
},
maxHeight
:
{
type
:
Number
,
default
:
null
,
validator
:
val
=>
val
>=
0
validator
:
(
val
)
=>
val
>=
0
},
x
:
{
type
:
Number
,
...
...
@@ -167,12 +171,12 @@ export default {
z
:
{
type
:
[
String
,
Number
],
default
:
'auto'
,
validator
:
val
=>
(
typeof
val
===
'string'
?
val
===
'auto'
:
val
>=
0
)
validator
:
(
val
)
=>
(
typeof
val
===
'string'
?
val
===
'auto'
:
val
>=
0
)
},
handles
:
{
type
:
Array
,
default
:
()
=>
[
'tl'
,
'tm'
,
'tr'
,
'mr'
,
'br'
,
'bm'
,
'bl'
,
'ml'
],
validator
:
val
=>
{
validator
:
(
val
)
=>
{
const
s
=
new
Set
([
'tl'
,
'tm'
,
'tr'
,
'mr'
,
'br'
,
'bm'
,
'bl'
,
'ml'
])
return
new
Set
(
val
.
filter
(
h
=>
s
.
has
(
h
))).
size
===
val
.
length
...
...
@@ -189,14 +193,14 @@ export default {
axis
:
{
type
:
String
,
default
:
'both'
,
validator
:
val
=>
[
'x'
,
'y'
,
'both'
].
includes
(
val
)
validator
:
(
val
)
=>
[
'x'
,
'y'
,
'both'
].
includes
(
val
)
},
grid
:
{
type
:
Array
,
default
:
()
=>
[
1
,
1
]
},
customId
:
{
type
:
[
String
,
Number
],
type
:
[
String
,
Number
],
default
:
''
},
parent
:
{
...
...
@@ -206,7 +210,7 @@ export default {
scale
:
{
type
:
[
Number
,
Array
],
default
:
1
,
validator
:
val
=>
{
validator
:
(
val
)
=>
{
if
(
typeof
val
===
'number'
)
{
return
val
>
0
}
...
...
@@ -232,7 +236,7 @@ export default {
}
},
data
:
function
()
{
data
:
function
()
{
return
{
left
:
this
.
x
,
top
:
this
.
y
,
...
...
@@ -266,7 +270,7 @@ export default {
}
},
created
:
function
()
{
created
:
function
()
{
// eslint-disable-next-line
if
(
this
.
maxWidth
&&
this
.
minWidth
>
this
.
maxWidth
)
console
.
warn
(
'[Vdr warn]: Invalid prop: minWidth cannot be greater than maxWidth'
)
// eslint-disable-next-line
...
...
@@ -274,7 +278,7 @@ export default {
this
.
resetBoundsAndMouseState
()
},
mounted
:
function
()
{
mounted
:
function
()
{
if
(
!
this
.
enableNativeDrag
)
{
this
.
$el
.
ondragstart
=
()
=>
false
}
...
...
@@ -303,7 +307,7 @@ export default {
addEvent
(
window
,
'resize'
,
this
.
checkParentSize
)
},
beforeDestroy
:
function
()
{
beforeDestroy
:
function
()
{
removeEvent
(
document
.
documentElement
,
'mousedown'
,
this
.
deselect
)
removeEvent
(
document
.
documentElement
,
'touchstart'
,
this
.
handleUp
)
removeEvent
(
document
.
documentElement
,
'mousemove'
,
this
.
move
)
...
...
@@ -315,7 +319,7 @@ export default {
},
methods
:
{
resetBoundsAndMouseState
()
{
resetBoundsAndMouseState
()
{
this
.
mouseClickPosition
=
{
mouseX
:
0
,
mouseY
:
0
,
x
:
0
,
y
:
0
,
w
:
0
,
h
:
0
}
this
.
bounds
=
{
...
...
@@ -329,7 +333,7 @@ export default {
maxBottom
:
null
}
},
checkParentSize
()
{
checkParentSize
()
{
if
(
this
.
parent
)
{
const
[
newParentWidth
,
newParentHeight
]
=
this
.
getParentSize
()
...
...
@@ -339,26 +343,29 @@ export default {
this
.
bottom
=
this
.
parentHeight
-
this
.
height
-
this
.
top
}
},
getParentSize
()
{
getParentSize
()
{
if
(
this
.
parent
)
{
const
style
=
window
.
getComputedStyle
(
this
.
$el
.
parentNode
,
null
)
return
[
parseInt
(
style
.
getPropertyValue
(
'width'
),
10
),
parseInt
(
style
.
getPropertyValue
(
'height'
),
10
)]
return
[
parseInt
(
style
.
getPropertyValue
(
'width'
),
10
),
parseInt
(
style
.
getPropertyValue
(
'height'
),
10
)
]
}
return
[
null
,
null
]
},
elementTouchDown
(
e
)
{
elementTouchDown
(
e
)
{
eventsFor
=
events
.
touch
this
.
elementDown
(
e
)
},
elementMouseDown
(
e
)
{
elementMouseDown
(
e
)
{
eventsFor
=
events
.
mouse
this
.
elementDown
(
e
)
},
elementDown
(
e
)
{
elementDown
(
e
)
{
if
(
e
instanceof
MouseEvent
&&
e
.
which
!==
1
)
{
return
}
...
...
@@ -370,7 +377,10 @@ export default {
return
}
if
((
this
.
dragHandle
&&
!
matchesSelectorToParentElements
(
target
,
this
.
dragHandle
,
this
.
$el
))
||
(
this
.
dragCancel
&&
matchesSelectorToParentElements
(
target
,
this
.
dragCancel
,
this
.
$el
)))
{
if
(
(
this
.
dragHandle
&&
!
matchesSelectorToParentElements
(
target
,
this
.
dragHandle
,
this
.
$el
))
||
(
this
.
dragCancel
&&
matchesSelectorToParentElements
(
target
,
this
.
dragCancel
,
this
.
$el
))
)
{
this
.
dragging
=
false
return
...
...
@@ -379,7 +389,7 @@ export default {
if
(
!
this
.
enabled
)
{
this
.
enabled
=
true
this
.
$emit
(
'activated'
,
this
.
customId
)
this
.
$emit
(
'activated'
,
this
.
customId
)
this
.
$emit
(
'update:active'
,
true
)
}
...
...
@@ -403,7 +413,7 @@ export default {
addEvent
(
document
.
documentElement
,
eventsFor
.
stop
,
this
.
handleUp
)
}
},
calcDragLimits
()
{
calcDragLimits
()
{
return
{
minLeft
:
this
.
left
%
this
.
grid
[
0
],
maxLeft
:
Math
.
floor
((
this
.
parentWidth
-
this
.
width
-
this
.
left
)
/
this
.
grid
[
0
])
*
this
.
grid
[
0
]
+
this
.
left
,
...
...
@@ -415,7 +425,7 @@ export default {
maxBottom
:
Math
.
floor
((
this
.
parentHeight
-
this
.
height
-
this
.
bottom
)
/
this
.
grid
[
1
])
*
this
.
grid
[
1
]
+
this
.
bottom
}
},
deselect
(
e
)
{
deselect
(
e
)
{
const
target
=
e
.
target
||
e
.
srcElement
const
regex
=
new
RegExp
(
this
.
className
+
'-([trmbl]{2})'
,
''
)
...
...
@@ -432,12 +442,12 @@ export default {
this
.
resetBoundsAndMouseState
()
},
handleTouchDown
(
handle
,
e
)
{
handleTouchDown
(
handle
,
e
)
{
eventsFor
=
events
.
touch
this
.
handleDown
(
handle
,
e
)
},
handleDown
(
handle
,
e
)
{
handleDown
(
handle
,
e
)
{
if
(
e
instanceof
MouseEvent
&&
e
.
which
!==
1
)
{
return
}
...
...
@@ -470,7 +480,7 @@ export default {
addEvent
(
document
.
documentElement
,
eventsFor
.
move
,
this
.
handleResize
)
addEvent
(
document
.
documentElement
,
eventsFor
.
stop
,
this
.
handleUp
)
},
calcResizeLimits
()
{
calcResizeLimits
()
{
let
minW
=
this
.
minW
let
minH
=
this
.
minH
let
maxW
=
this
.
maxW
...
...
@@ -562,7 +572,7 @@ export default {
limits
.
minBottom
=
-
(
top
+
maxH
)
}
if
(
this
.
lockAspectRatio
&&
maxW
&&
maxH
)
{
if
(
this
.
lockAspectRatio
&&
(
maxW
&&
maxH
)
)
{
limits
.
minLeft
=
Math
.
min
(
limits
.
minLeft
,
-
(
right
+
maxW
))
limits
.
minTop
=
Math
.
min
(
limits
.
minTop
,
-
(
maxH
+
bottom
))
limits
.
minRight
=
Math
.
min
(
limits
.
minRight
,
-
left
-
maxW
)
...
...
@@ -572,14 +582,14 @@ export default {
return
limits
},
move
(
e
)
{
move
(
e
)
{
if
(
this
.
resizing
)
{
this
.
handleResize
(
e
)
}
else
if
(
this
.
dragEnable
)
{
this
.
handleDrag
(
e
)
}
},
handleDrag
(
e
)
{
handleDrag
(
e
)
{
const
axis
=
this
.
axis
const
grid
=
this
.
grid
const
bounds
=
this
.
bounds
...
...
@@ -608,7 +618,7 @@ export default {
this
.
$emit
(
'dragging'
,
this
.
left
,
this
.
top
)
this
.
dragging
=
true
},
moveHorizontally
(
val
)
{
moveHorizontally
(
val
)
{
// should calculate with scale 1.
const
[
deltaX
,
_
]
=
snapToGrid
(
this
.
grid
,
val
,
this
.
top
,
1
)
...
...
@@ -617,7 +627,7 @@ export default {
this
.
left
=
left
this
.
right
=
this
.
parentWidth
-
this
.
width
-
left
},
moveVertically
(
val
)
{
moveVertically
(
val
)
{
// should calculate with scale 1.
const
[
_
,
deltaY
]
=
snapToGrid
(
this
.
grid
,
this
.
left
,
val
,
1
)
...
...
@@ -626,7 +636,7 @@ export default {
this
.
top
=
top
this
.
bottom
=
this
.
parentHeight
-
this
.
height
-
top
},
handleResize
(
e
)
{
handleResize
(
e
)
{
let
left
=
this
.
left
let
top
=
this
.
top
let
right
=
this
.
right
...
...
@@ -650,13 +660,21 @@ export default {
const
[
deltaX
,
deltaY
]
=
snapToGrid
(
this
.
grid
,
tmpDeltaX
,
tmpDeltaY
,
this
.
scale
)
if
(
this
.
handle
.
includes
(
'b'
))
{
bottom
=
restrictToBounds
(
mouseClickPosition
.
bottom
+
deltaY
,
this
.
bounds
.
minBottom
,
this
.
bounds
.
maxBottom
)
bottom
=
restrictToBounds
(
mouseClickPosition
.
bottom
+
deltaY
,
this
.
bounds
.
minBottom
,
this
.
bounds
.
maxBottom
)
if
(
this
.
lockAspectRatio
&&
this
.
resizingOnY
)
{
right
=
this
.
right
-
(
this
.
bottom
-
bottom
)
*
aspectFactor
}
}
else
if
(
this
.
handle
.
includes
(
't'
))
{
top
=
restrictToBounds
(
mouseClickPosition
.
top
-
deltaY
,
this
.
bounds
.
minTop
,
this
.
bounds
.
maxTop
)
top
=
restrictToBounds
(
mouseClickPosition
.
top
-
deltaY
,
this
.
bounds
.
minTop
,
this
.
bounds
.
maxTop
)
if
(
this
.
lockAspectRatio
&&
this
.
resizingOnY
)
{
left
=
this
.
left
-
(
this
.
top
-
top
)
*
aspectFactor
...
...
@@ -664,13 +682,21 @@ export default {
}
if
(
this
.
handle
.
includes
(
'r'
))
{
right
=
restrictToBounds
(
mouseClickPosition
.
right
+
deltaX
,
this
.
bounds
.
minRight
,
this
.
bounds
.
maxRight
)
right
=
restrictToBounds
(
mouseClickPosition
.
right
+
deltaX
,
this
.
bounds
.
minRight
,
this
.
bounds
.
maxRight
)
if
(
this
.
lockAspectRatio
&&
this
.
resizingOnX
)
{
bottom
=
this
.
bottom
-
(
this
.
right
-
right
)
/
aspectFactor
}
}
else
if
(
this
.
handle
.
includes
(
'l'
))
{
left
=
restrictToBounds
(
mouseClickPosition
.
left
-
deltaX
,
this
.
bounds
.
minLeft
,
this
.
bounds
.
maxLeft
)
left
=
restrictToBounds
(
mouseClickPosition
.
left
-
deltaX
,
this
.
bounds
.
minLeft
,
this
.
bounds
.
maxLeft
)
if
(
this
.
lockAspectRatio
&&
this
.
resizingOnX
)
{
top
=
this
.
top
-
(
this
.
left
-
left
)
/
aspectFactor
...
...
@@ -691,14 +717,18 @@ export default {
this
.
width
=
width
this
.
height
=
height
this
.
$emit
(
'resizing'
,
e
,
this
.
left
,
this
.
top
,
this
.
width
,
this
.
height
)
this
.
$emit
(
'resizing'
,
this
.
left
,
this
.
top
,
this
.
width
,
this
.
height
)
this
.
resizing
=
true
},
changeWidth
(
val
)
{
changeWidth
(
val
)
{
// should calculate with scale 1.
const
[
newWidth
,
_
]
=
snapToGrid
(
this
.
grid
,
val
,
0
,
1
)
let
right
=
restrictToBounds
(
this
.
parentWidth
-
newWidth
-
this
.
left
,
this
.
bounds
.
minRight
,
this
.
bounds
.
maxRight
)
let
right
=
restrictToBounds
(
(
this
.
parentWidth
-
newWidth
-
this
.
left
),
this
.
bounds
.
minRight
,
this
.
bounds
.
maxRight
)
let
bottom
=
this
.
bottom
if
(
this
.
lockAspectRatio
)
{
...
...
@@ -713,11 +743,15 @@ export default {
this
.
width
=
width
this
.
height
=
height
},
changeHeight
(
val
)
{
changeHeight
(
val
)
{
// should calculate with scale 1.
const
[
_
,
newHeight
]
=
snapToGrid
(
this
.
grid
,
0
,
val
,
1
)
let
bottom
=
restrictToBounds
(
this
.
parentHeight
-
newHeight
-
this
.
top
,
this
.
bounds
.
minBottom
,
this
.
bounds
.
maxBottom
)
let
bottom
=
restrictToBounds
(
(
this
.
parentHeight
-
newHeight
-
this
.
top
),
this
.
bounds
.
minBottom
,
this
.
bounds
.
maxBottom
)
let
right
=
this
.
right
if
(
this
.
lockAspectRatio
)
{
...
...
@@ -732,7 +766,7 @@ export default {
this
.
width
=
width
this
.
height
=
height
},
handleUp
(
e
)
{
handleUp
(
e
)
{
this
.
handle
=
null
this
.
resetBoundsAndMouseState
()
...
...
@@ -754,7 +788,7 @@ export default {
}
},
computed
:
{
style
()
{
style
()
{
return
{
transform
:
`translate(
${
this
.
left
}
px,
${
this
.
top
}
px)`
,
width
:
this
.
computedWidth
,
...
...
@@ -763,12 +797,12 @@ export default {
...(
this
.
dragging
&&
this
.
disableUserSelect
?
userSelectNone
:
userSelectAuto
)
}
},
actualHandles
()
{
actualHandles
()
{
if
(
!
this
.
resizable
)
return
[]
return
this
.
handles
},
computedWidth
()
{
computedWidth
()
{
if
(
this
.
w
===
'auto'
)
{
if
(
!
this
.
widthTouched
)
{
return
'auto'
...
...
@@ -777,7 +811,7 @@ export default {
return
this
.
width
+
'px'
},
computedHeight
()
{
computedHeight
()
{
if
(
this
.
h
===
'auto'
)
{
if
(
!
this
.
heightTouched
)
{
return
'auto'
...
...
@@ -786,19 +820,19 @@ export default {
return
this
.
height
+
'px'
},
resizingOnX
()
{
return
Boolean
(
this
.
handle
)
&&
(
this
.
handle
.
includes
(
'l'
)
||
this
.
handle
.
includes
(
'r'
))
resizingOnX
()
{
return
(
Boolean
(
this
.
handle
)
&&
(
this
.
handle
.
includes
(
'l'
)
||
this
.
handle
.
includes
(
'r'
)
))
},
resizingOnY
()
{
return
Boolean
(
this
.
handle
)
&&
(
this
.
handle
.
includes
(
't'
)
||
this
.
handle
.
includes
(
'b'
))
resizingOnY
()
{
return
(
Boolean
(
this
.
handle
)
&&
(
this
.
handle
.
includes
(
't'
)
||
this
.
handle
.
includes
(
'b'
)
))
},
isCornerHandle
()
{
return
Boolean
(
this
.
handle
)
&&
[
'tl'
,
'tr'
,
'br'
,
'bl'
].
includes
(
this
.
handle
)
isCornerHandle
()
{
return
(
Boolean
(
this
.
handle
)
&&
[
'tl'
,
'tr'
,
'br'
,
'bl'
].
includes
(
this
.
handle
)
)
}
},
watch
:
{
active
(
val
)
{
active
(
val
)
{
this
.
enabled
=
val
if
(
val
)
{
...
...
@@ -807,12 +841,12 @@ export default {
this
.
$emit
(
'deactivated'
)
}
},
z
(
val
)
{
z
(
val
)
{
if
(
val
>=
0
||
val
===
'auto'
)
{
this
.
zIndex
=
val
}
},
x
(
val
)
{
x
(
val
)
{
if
(
this
.
resizing
||
this
.
dragging
)
{
return
}
...
...
@@ -823,7 +857,7 @@ export default {
this
.
moveHorizontally
(
val
)
},
y
(
val
)
{
y
(
val
)
{
if
(
this
.
resizing
||
this
.
dragging
)
{
return
}
...
...
@@ -834,30 +868,30 @@ export default {
this
.
moveVertically
(
val
)
},
lockAspectRatio
(
val
)
{
lockAspectRatio
(
val
)
{
if
(
val
)
{
this
.
aspectFactor
=
this
.
width
/
this
.
height
}
else
{
this
.
aspectFactor
=
undefined
}
},
minWidth
(
val
)
{
minWidth
(
val
)
{
if
(
val
>
0
&&
val
<=
this
.
width
)
{
this
.
minW
=
val
}
},
minHeight
(
val
)
{
minHeight
(
val
)
{
if
(
val
>
0
&&
val
<=
this
.
height
)
{
this
.
minH
=
val
}
},
maxWidth
(
val
)
{
maxWidth
(
val
)
{
this
.
maxW
=
val
},
maxHeight
(
val
)
{
maxHeight
(
val
)
{
this
.
maxH
=
val
},
w
(
val
)
{
w
(
val
)
{
if
(
this
.
resizing
||
this
.
dragging
)
{
return
}
...
...
@@ -868,7 +902,7 @@ export default {
this
.
changeWidth
(
val
)
},
h
(
val
)
{
h
(
val
)
{
if
(
this
.
resizing
||
this
.
dragging
)
{
return
}
...
...
src/components/welcome/tag-textarea.vue
View file @
32c9596
...
...
@@ -264,21 +264,8 @@ export default {
}
let
htm
=
target
.
innerHTML
const
list
=
emoji
.
flat
(
Infinity
)
<<<<<<<
HEAD
<<<<<<<
HEAD
const
cutImg
=
htm
.
replace
(
/<img src="https:
\/\/
img01.glsx.com.cn
\/
weapp
\/
resource
\/
saas
\/
scrm
\/
emoji
\/
/g
,
''
)
.
replace
(
/<wise.+
?(?:
<
\/
wise>
)
/g
,
'@昵称'
)
.
replace
(
/<br>/g
,
'\n'
)
const
replaceImg
=
cutImg
.
replace
(
/
(\d){3}
.png">/g
,
function
(
str
)
{
=======
const
cutImg
=
htm
.
replaceAll
(
'<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/'
,
''
).
replaceAll
(
'<wise id="1">@昵称</wise>'
,
'@昵称'
).
replaceAll
(
'<br>'
,
'\n'
)
const
replaceImg
=
cutImg
.
replace
(
/
(\d){3}
.png">/g
,
function
(
str
)
{
>>>>>>>
fbad4209013d5b97224e1e78016ca7165eb5df09
=======
const
cutImg
=
htm
.
replaceAll
(
'<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/'
,
''
).
replaceAll
(
'<wise id="1">@昵称</wise>'
,
'@昵称'
).
replaceAll
(
'<br>'
,
'\n'
)
const
replaceImg
=
cutImg
.
replace
(
/
(\d){3}
.png">/g
,
function
(
str
)
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
let
s
=
list
[
parseInt
(
str
.
split
(
'.'
)[
0
])
-
1
]
return
`[
${
s
}
]`
})
...
...
@@ -311,21 +298,8 @@ export default {
let
htm
=
target
.
innerHTML
console
.
log
(
htm
)
const
list
=
emoji
.
flat
(
Infinity
)
<<<<<<<
HEAD
<<<<<<<
HEAD
const
cutImg
=
htm
.
replace
(
/<img src="https:
\/\/
img01.glsx.com.cn
\/
weapp
\/
resource
\/
saas
\/
scrm
\/
emoji
\/
/g
,
''
)
.
replace
(
/<wise.+
?(?:
<
\/
wise>
)
/g
,
'@昵称'
)
.
replace
(
/<br>/g
,
'\n'
)
const
replaceImg
=
cutImg
.
replace
(
/
(\d){3}
.png">/g
,
function
(
str
)
{
=======
const
cutImg
=
htm
.
replaceAll
(
'<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/'
,
''
).
replaceAll
(
'<wise id="1">@昵称</wise>'
,
'@昵称'
).
replaceAll
(
'<br>'
,
'\n'
)
const
replaceImg
=
cutImg
.
replace
(
/
(\d){3}
.png">/g
,
function
(
str
)
{
>>>>>>>
fbad4209013d5b97224e1e78016ca7165eb5df09
=======
const
cutImg
=
htm
.
replaceAll
(
'<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/'
,
''
).
replaceAll
(
'<wise id="1">@昵称</wise>'
,
'@昵称'
).
replaceAll
(
'<br>'
,
'\n'
)
const
replaceImg
=
cutImg
.
replace
(
/
(\d){3}
.png">/g
,
function
(
str
)
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
let
s
=
list
[
parseInt
(
str
.
split
(
'.'
)[
0
])
-
1
]
return
`[
${
s
}
]`
})
...
...
@@ -491,4 +465,4 @@ $textColor: #666;
}
}
}
</
style
>
</
style
>
\ No newline at end of file
src/components/welcome/welcomeWords.vue
View file @
32c9596
...
...
@@ -51,15 +51,7 @@
<span
v-else
>
{{ item.name }}
</span>
<input
v-if=
"item.type == 'img'"
type=
"file"
style=
"opacity: 0"
:id=
"item.name + 'file'"
ref=
"file"
class=
"welcome-input upload-img"
:accept=
"item.accept || 'image/png, image/jpeg, image/jpg'"
@
change=
"e => handleImgChange(e, item)"
/>
<input
v-else-if=
"item.type == 'video'"
type=
"file"
style=
"opacity: 0"
:id=
"item.name + 'file'"
ref=
"file"
class=
"welcome-input"
:accept=
"item.accept || 'video/*'"
@
change=
"e => handleVideoChange(e, item)"
/>
<<<<<<
< HEAD
<<<<<<<
HEAD
<
el-link
v-else-if=
"item.type == 'nickname' || item.type == 'acivity' || item.type == 'material'"
style=
"opacity: 0"
@
click=
"handleFun(item.funName)"
>
{{ item.name }}
</el-link>
=======
<el-link
v-else-if=
"item.type == 'nickname' || item.type == 'acivity'"
style=
"opacity: 0"
@
click=
"handleFun(item.funName)"
>
{{ item.name }}
</el-link>
>>>>>>> fbad4209013d5b97224e1e78016ca7165eb5df09
=======
<el-link
v-else-if=
"item.type == 'nickname' || item.type == 'acivity' || item.type == 'material'"
style=
"opacity: 0"
@
click=
"handleFun(item.funName)"
>
{{ item.name }}
</el-link>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
</div>
</div>
</div>
...
...
@@ -71,7 +63,6 @@
</div>
</div>
<ActivityModel
ref=
"activity"
@
selectActivity=
"selectActivity"
></ActivityModel>
<!-- <material-model v-if="isMaterialVisible" :isMaterialVisible.sync="isMaterialVisible" @handleMaterialConfirm="handleMaterialConfirm" @handleMaterialClose="handleMaterialClose"></material-model> -->
</div>
</template>
<
script
>
...
...
@@ -86,14 +77,6 @@ const ATT_TYPE = {
}
import
emoji
from
'@/utils/emo'
import
ActivityModel
from
'./activityModel'
<<<<<<<
HEAD
<<<<<<<
HEAD
// import materialModel from './materialModel'
=======
>>>>>>>
fbad4209013d5b97224e1e78016ca7165eb5df09
=======
// import materialModel from './materialModel'
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
import
Emotion
from
'./emotionWords'
import
wTextarea
from
'./tag-textarea'
import
{
utils
}
from
'glsx-common'
...
...
@@ -101,14 +84,6 @@ export default {
name
:
'WelcomeWords'
,
components
:
{
ActivityModel
,
<<<<<<<
HEAD
<<<<<<<
HEAD
// materialModel,
=======
>>>>>>>
fbad4209013d5b97224e1e78016ca7165eb5df09
=======
// materialModel,
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
Emotion
,
wTextarea
},
...
...
@@ -117,14 +92,6 @@ export default {
return
{
loading
:
false
,
emotionStatus
:
false
,
<<<<<<<
HEAD
<<<<<<<
HEAD
isMaterialVisible
:
false
,
=======
>>>>>>>
fbad4209013d5b97224e1e78016ca7165eb5df09
=======
isMaterialVisible
:
false
,
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
btnList
:
[
{
id
:
1
,
...
...
@@ -146,12 +113,6 @@ export default {
type
:
'nickname'
,
funName
:
'nickname'
},
// {
// id: 5,
// name: '素材',
// type: 'material',
// funName: 'material'
// },
{
id
:
4
,
name
:
'活动'
,
...
...
@@ -268,33 +229,11 @@ export default {
})
}
},
// 素材
handleMaterialConfirm
(
val
)
{
console
.
log
(
val
)
// additionalType 附加对象类型(1素材,2活动,3优惠券,4朋友券模板)
// objectType 对象类型(1朋友圈模板-单图文,2朋友圈模板-多图文,3朋友圈模板-文字+视频,4朋友圈模板-文字,5优惠券-商城券,6活动-权益卡使用,7活动-权益套餐,8活动-秒杀活动,10-素材)
this
.
editForm
.
object
=
JSON
.
parse
(
JSON
.
stringify
(
val
))
this
.
editRule
.
eventContent
[
0
].
required
=
true
this
.
editForm
.
pushChannelType
=
''
this
.
previewList
=
[
{
attContent
:
val
,
additionalType
:
val
.
additionalType
}
]
this
.
handleMaterialClose
()
},
handleMaterialClose
()
{
this
.
isMaterialVisible
=
!
this
.
isMaterialVisible
},
handleFun
(
name
)
{
if
(
name
==
'nickname'
)
{
this
.
$refs
.
textContent
.
addTag
(
'@昵称'
)
}
else
if
(
name
==
'activity'
)
{
this
.
$refs
.
activity
.
init
()
}
else
if
(
name
==
'material'
)
{
this
.
handleMaterialClose
()
}
},
close
(
index
)
{
...
...
@@ -302,7 +241,6 @@ export default {
this
.
eventBus
.
$emit
(
'update'
,
this
.
previewList
)
},
textInput
(
val
)
{
val
=
val
.
replace
(
/ /g
,
''
)
const
hasText
=
this
.
previewList
.
some
(
item
=>
item
.
attType
==
1
)
if
(
hasText
)
{
this
.
$set
(
this
.
previewList
,
0
,
{
...
...
@@ -338,8 +276,6 @@ export default {
}
}
},
<<<<<<<
HEAD
=======
insertHtmlAtCaret
(
html
)
{
var
sel
,
range
,
frag
if
(
window
.
getSelection
)
{
...
...
@@ -368,8 +304,7 @@ export default {
}
}
},
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
changeInput
:
utils
.
debounce
(
function
()
{
changeInput
:
utils
.
debounce
(
function
()
{
console
.
log
(
document
.
getElementById
(
'editor'
).
childNodes
)
var
allNodes
=
document
.
getElementById
(
'editor'
).
childNodes
var
str
=
''
...
...
@@ -388,17 +323,8 @@ export default {
this
.
previewList
=
val
this
.
eventBus
.
$emit
(
'update'
,
this
.
previewList
)
const
obj
=
val
.
find
(
item
=>
item
.
attType
==
1
)
<<<<<<<
HEAD
let
attContent
=
obj
.
attContent
.
replace
(
/
\[
@昵称
\]
/g
,
'<wise id="1" contenteditable="false">@昵称</wise>'
)
const
htm
=
attContent
.
replace
(
/
\[[\u
4E00-
\u
9FA56
]{1,4}
]/gi
,
function
(
res
)
{
=======
let
attContent
=
obj
.
attContent
.
replaceAll
(
'[@昵称]'
,
'<wise id="1">@昵称</wise>'
)
<<<<<<<
HEAD
const
htm
=
attContent
.
replace
(
/
\[[\u
4E00-
\u
9FA56
]{1,4}
]/gi
,
function
(
res
)
{
>>>>>>>
fbad4209013d5b97224e1e78016ca7165eb5df09
=======
const
htm
=
attContent
.
replace
(
/
\[[\u
4E00-
\u
9FA56
]{1,4}
]/gi
,
function
(
res
)
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
let
word
=
res
.
replace
(
/
\[
|
\]
/gi
,
''
)
const
list
=
emoji
.
flat
(
Infinity
)
let
index
=
parseInt
(
list
.
indexOf
(
word
))
+
1
...
...
src/config/index.js
View file @
32c9596
...
...
@@ -3,8 +3,8 @@
* @version:
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors:
前端 qianduan01@didihu.com.c
n
* @LastEditTime: 202
2-10-26 15:54:49
* @LastEditors:
limi
n
* @LastEditTime: 202
1-09-07 14:38:52
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js')
...
...
@@ -17,13 +17,8 @@ export const fetchConfig = function(isEnv = true) {
Object
.
assign
(
request
,
{
timeout
})
return
Promise
.
resolve
(
cfg
)
}
<<<<<<<
HEAD
// return new Http({ request: { timeout: 100000 } }).get('https://oss-config.test.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config')
return
new
Http
({
request
:
{
timeout
:
100000
}
}).
get
(
'https://oss-config.dev.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config'
)
=======
return
new
Http
({
request
:
{
timeout
:
100000
}
}).
get
(
'https://oss-config.dev.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config'
)
return
new
Http
({
request
:
{
timeout
:
100000
}
}).
get
(
'https://oss-config.test.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config'
)
// return new Http({ request: { timeout: 100000 } }).get('https://oss-config.dev.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config')
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
}
export
const
config
=
{
install
(
vue
,
cfg
)
{
...
...
src/router/routes.js
View file @
32c9596
const
staticRoutes
=
Object
.
freeze
([
{
const
staticRoutes
=
Object
.
freeze
([{
name
:
'channel'
,
path
:
'/channel/index'
,
component
:
resolve
=>
require
([
`@/views/channel/index.vue`
],
resolve
),
meta
:
{}
},
{
meta
:
{},
},
{
name
:
'channel'
,
path
:
'/channel/store/:id/:codeUuid/:codeState'
,
component
:
resolve
=>
require
([
`@/views/channel/store.vue`
],
resolve
),
meta
:
{}
},
{
},
{
name
:
'addCode'
,
path
:
'/channel/addCode/:id/:codeUuid'
,
component
:
resolve
=>
require
([
`@/views/channel/addCode.vue`
],
resolve
),
meta
:
{}
},
{
},
{
name
:
'poster'
,
path
:
'/channel/poster/:id'
,
component
:
resolve
=>
require
([
`@/views/channel/poster.vue`
],
resolve
),
meta
:
{}
},
{
},
{
name
:
'square'
,
path
:
'/square/index'
,
component
:
resolve
=>
require
([
`@/views/square/index.vue`
],
resolve
),
meta
:
{}
},
{
},
{
name
:
'import'
,
path
:
'/square/import'
,
component
:
resolve
=>
require
([
`@/views/square/import.vue`
],
resolve
),
meta
:
{}
<<<<<<<
HEAD
},
{
=======
},
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
name
:
'customDetail'
,
path
:
'/square/customDetail'
,
component
:
resolve
=>
require
([
`@/views/square/customDetail.vue`
],
resolve
),
meta
:
{}
<<<<<<<
HEAD
},
{
=======
},
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
name
:
'importResult'
,
path
:
'/square/importResult/:id'
,
component
:
resolve
=>
require
([
`@/views/square/importResult.vue`
],
resolve
),
meta
:
{}
},
{
},
{
name
:
'drainage'
,
path
:
'/square/drainage'
,
component
:
resolve
=>
require
([
`@/views/square/drainage.vue`
],
resolve
),
meta
:
{}
},
{
},
{
name
:
'market'
,
path
:
'/market/index'
,
component
:
resolve
=>
require
([
`@/views/market/index.vue`
],
resolve
),
meta
:
{}
},
{
},
{
name
:
'config'
,
path
:
'/market/config'
,
component
:
resolve
=>
require
([
`@/views/market/config.vue`
],
resolve
),
meta
:
{}
<<<<<<<
HEAD
},
{
=======
},
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
name
:
'configDetail'
,
path
:
'/market/configDetail/:id?'
,
component
:
resolve
=>
require
([
`@/views/market/configDetail.vue`
],
resolve
),
meta
:
{}
<<<<<<<
HEAD
},
{
=======
},
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
name
:
'effect'
,
path
:
'/market/effect/:id?'
,
component
:
resolve
=>
require
([
`@/views/market/effect.vue`
],
resolve
),
meta
:
{}
<<<<<<<
HEAD
},
{
=======
},
{
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
name
:
'overview'
,
path
:
'/overview/index'
,
component
:
resolve
=>
require
([
`@/views/overview/index.vue`
],
resolve
),
meta
:
{}
},
{
},
{
name
:
'friends'
,
path
:
'/friends/index/:id'
,
component
:
resolve
=>
require
([
`@/views/friends/index.vue`
],
resolve
),
meta
:
{
permissions
:
[
'新增'
]
}
}
])
export
default
staticRoutes
}])
export
default
staticRoutes
\ No newline at end of file
src/setup/qiankun.js
View file @
32c9596
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-08-30 10:21:19
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2022-10-28 15:21:03
* @FilePath: \scrm-micro-drainage\src\setup\qiankun.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import
Vue
from
'vue'
// import { message } from '@/plugins/element.js'
import
{
fetchConfig
}
from
'@/config'
import
ElementUI
from
'element-ui'
<<<<<<<
HEAD
import
{
GLTable
,
GLButton
,
GLFooter
,
GLCombiForm
,
GLDialog
,
GLTableButton
,
GLTabs
}
from
'glsx-components'
//权限按钮 (根据权限动态创建)
import
GLEditor
from
'glsx-components/src/packages/Editor'
//权限按钮 (根据权限动态创建)
=======
import
{
GLTable
,
GLButton
,
GLFooter
,
GLCombiForm
}
from
'glsx-components'
//权限按钮 (根据权限动态创建)
import
collectForm
from
'@/components/collectForm'
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
import
GLFull
from
'@/components/GLFull'
import
{
getRoutes
}
from
'@/router'
import
render
from
'./render'
Vue
.
use
(
ElementUI
)
Vue
.
use
(
GLTable
)
Vue
.
use
(
GLFooter
)
Vue
.
use
(
GLCombiForm
)
<<<<<<<
HEAD
Vue
.
use
(
GLDialog
)
Vue
.
use
(
GLTableButton
)
// Vue.use(GLFull)
// import GLTable from '@/components/glsx-table/index'
Vue
.
component
(
'GLEditor'
,
GLEditor
)
Vue
.
component
(
'GLFull'
,
GLFull
)
Vue
.
component
(
'GLTabs'
,
GLTabs
)
=======
Vue
.
component
(
'GLFull'
,
GLFull
)
Vue
.
component
(
collectForm
.
name
,
collectForm
)
// import GLTable from '@/components/glsx-table/index'
// Vue.component('GLTable', GLTable)
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
// import 'glsx-components/src/theme/theme.scss'
import
'glsx-components/dist/glsx-components.css'
import
'@/assets/css/common.scss'
...
...
@@ -51,10 +23,6 @@ export async function bootstrap({ name, id, history, common, messenger, globalSt
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$globalState
=
globalState
Vue
.
prototype
.
$common
=
common
<<<<<<<
HEAD
=======
Vue
.
prototype
.
$tracker
=
common
.
tracker
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_tag
=
new
common
.
Http
({
response
,
request
:
request_tag
,
sign
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_common
=
new
common
.
Http
({
response
,
signWay
:
'md5'
,
request
:
request_common
,
sign
:
sign_common
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
globalState
.
session
.
token
}
})
...
...
src/setup/render.js
View file @
32c9596
...
...
@@ -17,19 +17,6 @@ const render = (base, routes) => {
routes
,
mode
:
'history'
})
<<<<<<<
HEAD
=======
// router.beforeEach((to, from, next) => {
// const pageName = to.meta.title
// Vue.prototype.$tracker.track(
// {
// pageName
// },
// 'pv'
// )
// next()
// })
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
router
.
afterEach
(()
=>
{
document
.
querySelector
(
'#app'
).
scrollTop
=
0
})
...
...
src/utils/util.js
View file @
32c9596
...
...
@@ -110,10 +110,6 @@ util.downloadIamge = function(imgsrc, name = new Date().getTime()) {
a
.
href
=
url
// 将生成的URL设置为a.href属性
a
.
dispatchEvent
(
event
)
// 触发a的单击事件
}
<<<<<<<
HEAD
image
.
src
=
imgsrc
.
replace
(
/https
?
:/
,
''
)
=======
image
.
src
=
imgsrc
>>>>>>>
396
e1482ded1b79e8dc9f700b1a584ff319bc981
}
export
default
util
Write
Preview
Markdown
is supported
Attach a file
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 post a comment