Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-activity-center
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 4fe7b7cb
authored
Jun 19, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
7f7092d1
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
103 additions
and
164 deletions
src/components/verbal/WTextarea.vue
src/components/verbal/index.vue
src/views/bulletin/addConfig.vue
src/views/bulletin/components/dialogs/bulletinDialog.vue
src/views/bulletin/components/dialogs/charactersDialog.vue
src/views/bulletin/components/dialogs/dailyDialog.vue
src/views/bulletin/components/dialogs/dialog.js
src/views/bulletin/components/dialogs/personalDialog.vue
src/views/bulletin/components/dialogs/progressDialog.vue
src/views/bulletin/components/dialogs/replenishmentDialog.vue
src/views/bulletin/components/dialogs/xibaoDialog.vue
src/components/verbal/WTextarea.vue
View file @
4fe7b7c
...
@@ -188,20 +188,7 @@ export default {
...
@@ -188,20 +188,7 @@ export default {
}
}
},
},
subText
(
htm
)
{
subText
(
htm
)
{
const
list
=
emoji
.
flat
(
Infinity
)
this
.
$emit
(
'updateText'
,
htm
)
const
cutImg
=
htm
.
replace
(
/<span>
([\s\S]
*
?)
<
\/
span>/g
,
'$1'
)
.
replace
(
/<img src="https:
\/\/
img01.glsx.com.cn
\/
weapp
\/
resource
\/
saas
\/
scrm
\/
emoji
\/
/g
,
''
)
.
replace
(
/<wise.+
?
>
(
.+
?)(?:
<
\/
wise>
)
/g
,
'$1'
)
.
replace
(
/<br>/g
,
'\n'
)
const
replaceImg
=
cutImg
.
replace
(
/
(\d){3}
.png">/g
,
function
(
str
)
{
let
s
=
list
[
parseInt
(
str
.
split
(
'.'
)[
0
])
-
1
]
return
`[
${
s
}
]`
})
let
Textnode
=
document
.
createElement
(
'div'
)
Textnode
.
innerHTML
=
replaceImg
this
.
currentText
=
replaceImg
this
.
$emit
(
'updateText'
,
this
.
currentText
)
},
},
insertNodeFirst
(
node
)
{
insertNodeFirst
(
node
)
{
this
.
savedRange
.
deleteContents
()
this
.
savedRange
.
deleteContents
()
...
...
src/components/verbal/index.vue
View file @
4fe7b7c
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-04-20 15:15:08
* @Date: 2023-04-20 15:15:08
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-06-1
3 12:43:40
* @LastEditTime: 2023-06-1
9 14:37:26
* @FilePath: \scrm-micro-battles\src\views\battle\index.vue
* @FilePath: \scrm-micro-battles\src\views\battle\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%
im
im
...
@@ -44,36 +44,7 @@ import EmotionWords from './EmotionWords'
...
@@ -44,36 +44,7 @@ import EmotionWords from './EmotionWords'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
// btnList: [
maxNum
:
200
,
// {
// type: 1,
// name: '表情'
// },
// {
// type: 2,
// name: '销售顾问'
// },
// {
// type: 2,
// name: '客户姓名'
// },
// {
// type: 2,
// name: '车型'
// },
// {
// type: 2,
// name: '订单总金额'
// },
// {
// type: 2,
// name: '阳光激励费'
// },
// {
// type: 2,
// name: '商品名称'
// }
// ],
emotionStatus
:
false
emotionStatus
:
false
}
}
},
},
...
@@ -103,6 +74,14 @@ export default {
...
@@ -103,6 +74,14 @@ export default {
selectTag
(
name
)
{
selectTag
(
name
)
{
this
.
$refs
.
textContent
.
addTag
(
name
)
this
.
$refs
.
textContent
.
addTag
(
name
)
},
},
updateText
(
val
)
{
const
html
=
this
.
getTextValue
(
val
),
text
=
html
.
replace
(
/
\[
.+
?\]
/g
,
''
).
replace
(
/
\$
{.+
?
}/g
,
''
),
textNum
=
text
.
length
if
(
textNum
>
this
.
maxNum
)
{
this
.
update
(
val
.
substring
(
html
,
this
.
maxNum
))
}
},
//展开表情
//展开表情
selectEmotion
()
{
selectEmotion
()
{
this
.
emotionStatus
=
!
this
.
emotionStatus
this
.
emotionStatus
=
!
this
.
emotionStatus
...
@@ -119,8 +98,8 @@ export default {
...
@@ -119,8 +98,8 @@ export default {
}
}
this
.
$refs
.
textContent
.
addImg
(
`https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/
${
index
}
.png`
)
this
.
$refs
.
textContent
.
addImg
(
`https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/
${
index
}
.png`
)
},
},
getTextValue
()
{
getTextValue
(
val
)
{
const
html
=
this
.
$refs
.
textContent
.
$refs
.
wTextareaContent
.
innerHTML
const
html
=
val
?
val
:
this
.
$refs
.
textContent
.
$refs
.
wTextareaContent
.
innerHTML
const
_this
=
this
const
_this
=
this
const
list
=
emoji
.
flat
(
Infinity
)
const
list
=
emoji
.
flat
(
Infinity
)
let
htm
=
let
htm
=
...
...
src/views/bulletin/addConfig.vue
View file @
4fe7b7c
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
<el-button
@
click=
"handlebattleClose"
size=
"medium"
>
取消
</el-button>
<el-button
@
click=
"handlebattleClose"
size=
"medium"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"handlebattleConfirm"
size=
"medium"
:loading=
"loading"
>
保存
</el-button>
<el-button
type=
"primary"
@
click=
"handlebattleConfirm"
size=
"medium"
:loading=
"loading"
>
保存
</el-button>
</GLFooter>
</GLFooter>
<component
:is=
"dialogComponent"
ref=
"componentRef"
:switchList=
"switchList"
@
handlePreview=
"handlePreview
"
></component>
<component
:is=
"dialogComponent"
ref=
"componentRef"
v-if=
"isDialogVisible"
:isDialogVisible=
"isDialogVisible"
:switchList=
"switchList"
@
handlePreview=
"handlePreview"
@
handleClose=
"handleClose
"
></component>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
...
@@ -84,6 +84,7 @@ export default {
...
@@ -84,6 +84,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
isDialogVisible
:
false
,
merchantName
:
''
,
merchantName
:
''
,
paramsData
:
this
.
$route
.
query
,
paramsData
:
this
.
$route
.
query
,
dialogComponent
:
''
,
dialogComponent
:
''
,
...
@@ -169,32 +170,32 @@ export default {
...
@@ -169,32 +170,32 @@ export default {
],
],
buttetinList
:
[
buttetinList
:
[
{
{
label
:
'SA个人喜报'
,
label
:
'
.
SA个人喜报'
,
storageList
:
'saPerReportValue'
,
storageList
:
'saPerReportValue'
,
componentName
:
'personalDialog'
componentName
:
'personalDialog'
},
},
{
{
label
:
'SA喜报'
,
label
:
'
.
SA喜报'
,
storageList
:
'saReportValue'
,
storageList
:
'saReportValue'
,
componentName
:
'bulletinDialog'
componentName
:
'bulletinDialog'
},
},
{
{
label
:
'文字喜报'
,
label
:
'
.
文字喜报'
,
storageList
:
'wordReportValue'
,
storageList
:
'wordReportValue'
,
componentName
:
'charactersDialog'
componentName
:
'charactersDialog'
},
},
{
{
label
:
'早报'
,
label
:
'
.
早报'
,
storageList
:
'zhanReportValue'
,
storageList
:
'zhanReportValue'
,
componentName
:
'dailyDialog'
componentName
:
'dailyDialog'
},
},
{
{
label
:
'客户进度消息'
,
label
:
'
.
客户进度消息'
,
storageList
:
'scheduleReportValue'
,
storageList
:
'scheduleReportValue'
,
componentName
:
'progressDialog'
componentName
:
'progressDialog'
},
},
{
{
label
:
'补单通知'
,
label
:
'
.
补单通知'
,
storageList
:
'orderReportValue'
,
storageList
:
'orderReportValue'
,
componentName
:
'replenishmentDialog'
componentName
:
'replenishmentDialog'
}
}
...
@@ -222,15 +223,18 @@ export default {
...
@@ -222,15 +223,18 @@ export default {
},
},
methods
:
{
methods
:
{
handlePreview
(
params
)
{
handlePreview
(
params
)
{
console
.
log
(
params
)
let
{
key
,
data
}
=
params
let
{
key
,
data
}
=
params
this
.
switchList
[
key
]
=
data
this
.
switchList
[
key
]
=
data
console
.
log
(
this
.
switchList
[
key
])
this
.
isDialogVisible
=
false
},
},
handleClose
()
{
this
.
isDialogVisible
=
false
},
openConfigDialog
(
componentName
)
{
openConfigDialog
(
componentName
)
{
this
.
dialogComponent
=
componentName
this
.
dialogComponent
=
componentName
this
.
$nextTick
(()
=>
{
this
.
isDialogVisible
=
true
this
.
$refs
.
componentRef
.
isDialogVisible
=
true
})
},
},
addGroup
(
group
)
{
addGroup
(
group
)
{
group
.
push
({
name
:
''
})
group
.
push
({
name
:
''
})
...
@@ -304,10 +308,11 @@ export default {
...
@@ -304,10 +308,11 @@ export default {
let
groupHideAttr
=
this
.
groupToType
.
find
(
k
=>
k
.
type
==
item
.
actionReportType
)?.
attr
let
groupHideAttr
=
this
.
groupToType
.
find
(
k
=>
k
.
type
==
item
.
actionReportType
)?.
attr
if
(
item
.
groupId
)
{
if
(
item
.
groupId
)
{
if
(
item
.
groupId
.
split
(
'_R:'
)[
1
]
&&
item
.
groupId
.
split
(
'_R:'
)[
1
]
==
item
.
groupName
)
{
if
(
item
.
groupId
.
split
(
'_R:'
)[
1
]
&&
item
.
groupId
.
split
(
'_R:'
)[
1
]
==
item
.
groupName
)
{
groupHideAttr
&&
this
.
groupCofListInput
[
groupHideAttr
+
'Value'
].
push
({
name
:
item
.
groupName
})
groupHideAttr
&&
this
.
groupCofListInput
[
groupHideAttr
+
'Value'
].
push
({
name
:
item
.
groupName
})
this
.
idBefEncryption
=
item
.
groupId
.
split
(
'_R:'
)[
0
]
this
.
idBefEncryption
=
item
.
groupId
.
split
(
'_R:'
)[
0
]
}
else
if
(
item
.
groupName
)
{
}
else
if
(
item
.
groupName
)
{
groupHideAttr
&&
this
.
groupCofList
[
groupHideAttr
].
push
({
groupHideAttr
&&
this
.
groupCofList
[
groupHideAttr
].
push
({
groupId
:
item
.
groupId
,
groupId
:
item
.
groupId
,
roomName
:
item
.
groupName
roomName
:
item
.
groupName
})
})
...
...
src/views/bulletin/components/dialogs/bulletinDialog.vue
View file @
4fe7b7c
<
template
>
<
template
>
<GLDialog
:mode=
"mode"
title=
"#2.SA喜报 预览配置显示字段"
:
visible
.
sync=
"isDialogVisible"
@
onOk=
"handlebattleConfirm"
@
onCancel=
"isDialogVisible = fal
se"
>
<GLDialog
:mode=
"mode"
title=
"#2.SA喜报 预览配置显示字段"
:
before-close=
"handlebattleClose"
:visible
.
sync=
"isDialogVisible"
@
onOk=
"handlebattleConfirm"
@
onCancel=
"handlebattleClo
se"
>
<div
class=
"popup-wrap"
>
<div
class=
"popup-wrap"
>
<div
class=
"left-wrap"
>
<div
class=
"left-wrap"
>
<div
class=
"img-wrap"
>
<div
class=
"img-wrap"
>
...
@@ -35,10 +35,11 @@
...
@@ -35,10 +35,11 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
dialog
from
'./dialog'
export
default
{
export
default
{
mixins
:
[
dialog
],
data
()
{
data
()
{
return
{
return
{
isDialogVisible
:
false
,
mode
:
'big'
,
mode
:
'big'
,
goodsType
:
{
goodsType
:
{
switchType
:
401
switchType
:
401
...
@@ -49,29 +50,18 @@ export default {
...
@@ -49,29 +50,18 @@ export default {
params
:
[
'goodsType'
,
'outputType'
]
params
:
[
'goodsType'
,
'outputType'
]
}
}
},
},
props
:
{
switchList
:
{
type
:
Array
,
default
:
()
=>
[]
}
},
created
()
{
this
.
initData
()
},
methods
:
{
methods
:
{
initData
()
{
initData
()
{
this
.
switchList
.
saReport
.
forEach
(
i
=>
{
this
.
switchList
.
saReport
.
forEach
(
i
=>
{
this
.
params
.
find
(
data
=>
{
this
.
params
.
find
(
data
=>
{
if
(
this
[
data
].
switchType
==
i
.
switchType
)
{
if
(
this
[
data
].
switchType
==
i
.
switchType
)
{
this
[
data
]
=
i
this
[
data
]
=
this
.
$common
.
utils
.
deepClone
(
i
)
this
[
data
].
switchStatus
=
this
[
data
].
switchStatus
==
'Y'
?
true
:
false
this
.
$set
(
this
[
data
],
'switchStatus'
,
i
.
switchStatus
==
'Y'
||
i
.
switchStatus
===
true
?
true
:
false
)
}
}
})
})
})
})
},
},
handlebattleConfirm
()
{
handlebattleConfirm
()
{
this
.
isDialogVisible
=
false
let
switchList
=
[]
let
switchList
=
[]
this
.
params
.
forEach
(
data
=>
{
this
.
params
.
forEach
(
data
=>
{
switchList
.
push
(
this
[
data
])
switchList
.
push
(
this
[
data
])
...
...
src/views/bulletin/components/dialogs/charactersDialog.vue
View file @
4fe7b7c
<
template
>
<
template
>
<GLDialog
:mode=
"mode"
title=
"#3.文字喜报 预览配置显示字段"
:
visible
.
sync=
"isDialogVisible"
@
onOk=
"handlebattleConfirm"
@
onCancel=
"isDialogVisible = fal
se"
>
<GLDialog
:mode=
"mode"
title=
"#3.文字喜报 预览配置显示字段"
:
before-close=
"handlebattleClose"
:visible
.
sync=
"isDialogVisible"
@
onOk=
"handlebattleConfirm"
@
onCancel=
"handlebattleClo
se"
>
<div
class=
"popup-wrap"
>
<div
class=
"popup-wrap"
>
<div
class=
"left-wrap"
>
<div
class=
"left-wrap"
>
<div
class=
"img-wrap"
>
<div
class=
"img-wrap"
>
...
@@ -28,13 +28,13 @@
...
@@ -28,13 +28,13 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
dialog
from
'./dialog'
export
default
{
export
default
{
mixins
:
[
dialog
],
data
()
{
data
()
{
return
{
return
{
isDialogVisible
:
false
,
mode
:
'big'
,
mode
:
'big'
,
wordType
:
{
wordType
:
{
switchType
:
701
,
switchType
:
701
,
switchText
:
''
switchText
:
''
},
},
...
@@ -79,35 +79,19 @@ export default {
...
@@ -79,35 +79,19 @@ export default {
}
}
}
}
},
},
props
:
{
switchList
:
{
type
:
Array
,
default
:
()
=>
[]
}
},
created
()
{
this
.
initData
()
},
watch
:
{
isDialogVisible
(
val
)
{
console
.
log
(
val
)
if
(
val
)
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
verbalRef
&&
this
.
$refs
.
verbalRef
.
update
(
this
.
wordType
.
switchText
)
})
}
}
},
methods
:
{
methods
:
{
initData
()
{
initData
()
{
this
.
switchList
.
wordReport
.
forEach
(
i
=>
{
this
.
switchList
.
wordReport
.
forEach
(
i
=>
{
this
.
params
.
find
(
data
=>
{
this
.
params
.
find
(
data
=>
{
if
(
this
[
data
].
switchType
==
i
.
switchType
)
{
if
(
this
[
data
].
switchType
==
i
.
switchType
)
{
this
[
data
]
=
i
this
[
data
]
=
this
.
$common
.
utils
.
deepClone
(
i
)
}
}
})
})
})
})
this
.
$nextTick
(()
=>
{
this
.
$refs
.
verbalRef
&&
this
.
$refs
.
verbalRef
.
update
(
this
.
verbalType
.
switchText
)
})
},
},
handlebattleConfirm
()
{
handlebattleConfirm
()
{
this
.
isDialogVisible
=
false
this
.
isDialogVisible
=
false
...
...
src/views/bulletin/components/dialogs/dailyDialog.vue
View file @
4fe7b7c
<
template
>
<
template
>
<GLDialog
:mode=
"mode"
title=
"#4.早报 预览配置显示字段"
:
visible
.
sync=
"isDialogVisible"
@
onOk=
"handlebattleConfirm"
@
onCancel=
"isDialogVisible = fal
se"
>
<GLDialog
:mode=
"mode"
title=
"#4.早报 预览配置显示字段"
:
before-close=
"handlebattleClose"
:visible
.
sync=
"isDialogVisible"
@
onOk=
"handlebattleConfirm"
@
onCancel=
"handlebattleClo
se"
>
<div
class=
"popup-wrap"
>
<div
class=
"popup-wrap"
>
<div
class=
"left-wrap"
>
<div
class=
"left-wrap"
>
<div
class=
"img-wrap"
>
<div
class=
"img-wrap"
>
...
@@ -29,39 +29,30 @@
...
@@ -29,39 +29,30 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
dialog
from
'./dialog'
export
default
{
export
default
{
mixins
:
[
dialog
],
data
()
{
data
()
{
return
{
return
{
isDialogVisible
:
false
,
mode
:
'big'
,
mode
:
'big'
,
clientType
:
{
clientType
:
{
switchType
:
201
,
switchType
:
201
},
},
params
:
[
'clientType'
]
params
:
[
'clientType'
]
}
}
},
},
props
:
{
switchList
:
{
type
:
Array
,
default
:
()
=>
[]
}
},
created
()
{
this
.
initData
()
},
methods
:
{
methods
:
{
initData
()
{
initData
()
{
this
.
switchList
.
zhanReport
.
forEach
(
i
=>
{
this
.
switchList
.
zhanReport
.
forEach
(
i
=>
{
this
.
params
.
find
(
data
=>
{
this
.
params
.
find
(
data
=>
{
if
(
this
[
data
].
switchType
==
i
.
switchType
)
{
if
(
this
[
data
].
switchType
==
i
.
switchType
)
{
this
[
data
]
=
i
this
[
data
]
=
this
.
$common
.
utils
.
deepClone
(
i
)
this
[
data
].
switchStatus
=
this
[
data
].
switchStatus
==
'Y'
?
true
:
false
this
.
$set
(
this
[
data
],
'switchStatus'
,
i
.
switchStatus
==
'Y'
||
i
.
switchStatus
===
true
?
true
:
false
)
}
}
})
})
})
})
},
},
handlebattleConfirm
()
{
handlebattleConfirm
()
{
this
.
isDialogVisible
=
false
let
switchList
=
[]
let
switchList
=
[]
this
.
params
.
forEach
(
data
=>
{
this
.
params
.
forEach
(
data
=>
{
switchList
.
push
(
this
[
data
])
switchList
.
push
(
this
[
data
])
...
...
src/views/bulletin/components/dialogs/dialog.js
0 → 100644
View file @
4fe7b7c
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-19 10:49:23
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-06-19 11:05:16
* @FilePath: \scrm-micro-battles\src\views\bulletin\components\dialogs\dialog.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
export
default
{
props
:
{
switchList
:
{
type
:
Array
,
default
:
()
=>
[]
},
isDialogVisible
:
Boolean
},
created
()
{
console
.
log
(
this
.
switchList
,
9999999
)
this
.
initData
()
},
methods
:
{
handlebattleClose
()
{
this
.
$emit
(
'handleClose'
)
}
}
}
src/views/bulletin/components/dialogs/personalDialog.vue
View file @
4fe7b7c
<
template
>
<
template
>
<GLDialog
:mode=
"mode"
title=
"#1.SA个人喜报 预览配置显示字段"
:
visible
.
sync=
"isDialogVisible"
@
onOk=
"handlebattleConfirm"
@
onCancel=
"isDialogVisible = fal
se"
>
<GLDialog
:mode=
"mode"
title=
"#1.SA个人喜报 预览配置显示字段"
:
before-close=
"handlebattleClose"
:visible
.
sync=
"isDialogVisible"
@
onOk=
"handlebattleConfirm"
@
onCancel=
"handlebattleClo
se"
>
<div
class=
"popup-wrap"
>
<div
class=
"popup-wrap"
>
<div
class=
"left-wrap"
>
<div
class=
"left-wrap"
>
<div
class=
"img-wrap"
>
<div
class=
"img-wrap"
>
...
@@ -44,10 +44,11 @@
...
@@ -44,10 +44,11 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
dialog
from
'./dialog'
export
default
{
export
default
{
mixins
:
[
dialog
],
data
()
{
data
()
{
return
{
return
{
isDialogVisible
:
false
,
mode
:
'big'
,
mode
:
'big'
,
vehicleType
:
{
vehicleType
:
{
switchType
:
501
switchType
:
501
...
@@ -69,40 +70,25 @@ export default {
...
@@ -69,40 +70,25 @@ export default {
params
:
[
'vehicleType'
,
'goodsType'
,
'proceedsType'
,
'verbalType'
]
params
:
[
'vehicleType'
,
'goodsType'
,
'proceedsType'
,
'verbalType'
]
}
}
},
},
props
:
{
switchList
:
{
type
:
Array
,
default
:
()
=>
[]
}
},
watch
:
{
isDialogVisible
(
val
)
{
if
(
val
)
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
verbalRef
&&
this
.
$refs
.
verbalRef
.
update
(
this
.
verbalType
.
switchText
)
})
}
}
},
created
()
{
this
.
initData
()
},
methods
:
{
methods
:
{
initData
()
{
initData
()
{
this
.
switchList
.
saPerReport
.
forEach
(
i
=>
{
this
.
switchList
.
saPerReport
.
forEach
(
i
=>
{
this
.
params
.
find
(
data
=>
{
this
.
params
.
find
(
data
=>
{
if
(
this
[
data
].
switchType
==
i
.
switchType
)
{
if
(
this
[
data
].
switchType
==
i
.
switchType
)
{
this
[
data
]
=
i
this
[
data
]
=
this
.
$common
.
utils
.
deepClone
(
i
)
this
[
data
].
switchStatus
=
this
[
data
].
switchStatus
==
'Y'
?
true
:
false
this
.
$set
(
this
[
data
],
'switchStatus'
,
i
.
switchStatus
==
'Y'
||
i
.
switchStatus
===
true
?
true
:
false
)
}
}
})
})
})
})
this
.
$nextTick
(()
=>
{
this
.
$refs
.
verbalRef
&&
this
.
$refs
.
verbalRef
.
update
(
this
.
verbalType
.
switchText
)
})
},
},
handlebattleConfirm
()
{
handlebattleConfirm
()
{
this
.
isDialogVisible
=
false
this
.
isDialogVisible
=
false
let
switchList
=
[]
let
switchList
=
[]
this
.
params
.
forEach
(
data
=>
{
this
.
params
.
forEach
(
data
=>
{
if
(
data
==
'verbalType'
)
this
[
data
].
switchText
=
this
.
$refs
.
verbalRef
.
getTextValue
()
if
(
data
==
'verbalType'
)
this
[
data
].
switchText
=
this
.
$refs
.
verbalRef
.
getTextValue
()
switchList
.
push
(
this
[
data
])
switchList
.
push
(
this
[
data
])
})
})
console
.
log
(
switchList
)
console
.
log
(
switchList
)
...
@@ -190,7 +176,6 @@ export default {
...
@@ -190,7 +176,6 @@ export default {
/deep/
.el-form-item__content
{
/deep/
.el-form-item__content
{
width
:
448px
;
width
:
448px
;
}
}
}
}
}
}
</
style
>
</
style
>
src/views/bulletin/components/dialogs/progressDialog.vue
View file @
4fe7b7c
<
template
>
<
template
>
<GLDialog
:mode=
"mode"
title=
"#5.客户进度消息 预览配置显示字段"
:
visible
.
sync=
"isDialogVisible"
@
onOk=
"handlebattleConfirm"
@
onCancel=
"isDialogVisible = fal
se"
>
<GLDialog
:mode=
"mode"
title=
"#5.客户进度消息 预览配置显示字段"
:
before-close=
"handlebattleClose"
:visible
.
sync=
"isDialogVisible"
@
onOk=
"handlebattleConfirm"
@
onCancel=
"handlebattleClo
se"
>
<div
class=
"popup-wrap"
>
<div
class=
"popup-wrap"
>
<div
class=
"left-wrap"
>
<div
class=
"left-wrap"
>
<div
class=
"img-wrap"
>
<div
class=
"img-wrap"
>
...
@@ -29,39 +29,30 @@
...
@@ -29,39 +29,30 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
dialog
from
'./dialog'
export
default
{
export
default
{
mixins
:
[
dialog
],
data
()
{
data
()
{
return
{
return
{
isDialogVisible
:
false
,
mode
:
'big'
,
mode
:
'big'
,
businessType
:
{
businessType
:
{
switchType
:
601
,
switchType
:
601
},
},
params
:
[
'businessType'
]
params
:
[
'businessType'
]
}
}
},
},
props
:
{
switchList
:
{
type
:
Array
,
default
:
()
=>
[]
}
},
created
()
{
this
.
initData
()
},
methods
:
{
methods
:
{
initData
()
{
initData
()
{
this
.
switchList
.
scheduleReport
.
forEach
(
i
=>
{
this
.
switchList
.
scheduleReport
.
forEach
(
i
=>
{
this
.
params
.
find
(
data
=>
{
this
.
params
.
find
(
data
=>
{
if
(
this
[
data
].
switchType
==
i
.
switchType
)
{
if
(
this
[
data
].
switchType
==
i
.
switchType
)
{
this
[
data
]
=
i
this
[
data
]
=
this
.
$common
.
utils
.
deepClone
(
i
)
this
[
data
].
switchStatus
=
this
[
data
].
switchStatus
==
'Y'
?
true
:
false
this
.
$set
(
this
[
data
],
'switchStatus'
,
i
.
switchStatus
==
'Y'
||
i
.
switchStatus
===
true
?
true
:
false
)
}
}
})
})
})
})
},
},
handlebattleConfirm
()
{
handlebattleConfirm
()
{
this
.
isDialogVisible
=
false
let
switchList
=
[]
let
switchList
=
[]
this
.
params
.
forEach
(
data
=>
{
this
.
params
.
forEach
(
data
=>
{
switchList
.
push
(
this
[
data
])
switchList
.
push
(
this
[
data
])
...
...
src/views/bulletin/components/dialogs/replenishmentDialog.vue
View file @
4fe7b7c
<
template
>
<
template
>
<GLDialog
:mode=
"mode"
title=
"#6.补单通知 预览配置显示字段"
:
visible
.
sync=
"isDialogVisible"
@
onOk=
"handlebattleConfirm"
@
onCancel=
"isDialogVisible = fal
se"
>
<GLDialog
:mode=
"mode"
title=
"#6.补单通知 预览配置显示字段"
:
before-close=
"handlebattleClose"
:visible
.
sync=
"isDialogVisible"
@
onOk=
"handlebattleClose"
@
onCancel=
"handlebattleClo
se"
>
<div
class=
"popup-wrap"
>
<div
class=
"popup-wrap"
>
<div
class=
"left-wrap"
>
<div
class=
"left-wrap"
>
<div
class=
"img-wrap"
>
<div
class=
"img-wrap"
>
...
@@ -25,10 +25,11 @@
...
@@ -25,10 +25,11 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
dialog
from
'./dialog'
export
default
{
export
default
{
mixins
:
[
dialog
],
data
()
{
data
()
{
return
{
return
{
isDialogVisible
:
false
,
mode
:
'big'
mode
:
'big'
}
}
},
},
...
@@ -63,7 +64,7 @@ export default {
...
@@ -63,7 +64,7 @@ export default {
.right-wrap
{
.right-wrap
{
display
:
1
;
display
:
1
;
position
:
relative
;
position
:
relative
;
width
:
100%
;
width
:
100%
;
margin-top
:
12px
;
margin-top
:
12px
;
/deep/.el-form-item
{
/deep/.el-form-item
{
margin-bottom
:
0px
;
margin-bottom
:
0px
;
...
@@ -75,12 +76,12 @@ export default {
...
@@ -75,12 +76,12 @@ export default {
width
:
420px
;
width
:
420px
;
height
:
260px
;
height
:
260px
;
position
:
absolute
;
position
:
absolute
;
top
:
35%
;
top
:
35%
;
left
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
transform
:
translate
(
-50%
,
-50%
);
img{
img
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
}
}
}
}
.explain
{
.explain
{
...
...
src/views/bulletin/components/dialogs/xibaoDialog.vue
View file @
4fe7b7c
<
template
>
<
template
>
<GLDialog
:mode=
"mode"
title=
"#4.收款喜报 预览配置显示字段"
:
visible
.
sync=
"isDialogVisible"
@
onOk=
"handlebattleConfirm"
@
onCancel=
"isDialogVisible = fal
se"
>
<GLDialog
:mode=
"mode"
title=
"#4.收款喜报 预览配置显示字段"
:
before-close=
"handlebattleClose"
:visible
.
sync=
"isDialogVisible"
@
onOk=
"handlebattleConfirm"
@
onCancel=
"handlebattleClo
se"
>
<div
class=
"popup-wrap"
>
<div
class=
"popup-wrap"
>
<div
class=
"left-wrap"
>
<div
class=
"left-wrap"
>
<div
class=
"img-wrap"
>
<div
class=
"img-wrap"
>
...
@@ -35,10 +35,11 @@
...
@@ -35,10 +35,11 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
dialog
from
'./dialog'
export
default
{
export
default
{
mixins
:
[
dialog
],
data
()
{
data
()
{
return
{
return
{
isDialogVisible
:
true
,
mode
:
'big'
,
mode
:
'big'
,
addType
:
{
addType
:
{
switchType
:
502
,
switchType
:
502
,
...
@@ -60,7 +61,6 @@ export default {
...
@@ -60,7 +61,6 @@ export default {
},
},
methods
:
{
methods
:
{
handlebattleConfirm
()
{
handlebattleConfirm
()
{
this
.
isDialogVisible
=
false
let
switchList
=
[]
let
switchList
=
[]
const
params
=
[
'addType'
,
'payeeType'
]
const
params
=
[
'addType'
,
'payeeType'
]
params
.
forEach
(
data
=>
{
params
.
forEach
(
data
=>
{
...
...
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