Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-activity
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 cba65149
authored
Jun 17, 2022
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
592b795b
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
137 additions
and
34 deletions
src/components/GLFull/index.vue
src/config/index.js
src/setup/qiankun.js
src/views/activity/addActivity.vue
src/views/activity/components/activityModel.vue
src/views/activity/components/marketConfig.vue
src/views/activity/components/messageModel.vue
src/views/activity/components/selectMember.vue
src/views/activity/distribution.vue
src/views/activity/index.vue
src/views/activityConfig/index.vue
src/components/GLFull/index.vue
0 → 100644
View file @
cba6514
<
template
>
<div
class=
"full-container"
>
<el-tooltip
placement=
"top"
v-if=
"hoverStatus"
>
<div
slot=
"content"
>
<template
v-if=
"$slots.default && content"
>
{{
content
}}
</
template
>
<
template
v-else-if=
"$slots.default && !content"
><slot></slot></
template
>
<
template
v-else
>
{{
content
?
content
:
label
}}
</
template
>
</div>
<div
:class=
"[line ? 'full-text-line' : 'full-text']"
:style=
"{ width: labelWidth + 'px', '-webkit-line-clamp': line }"
>
<
template
v-if=
"$slots.default"
><slot></slot></
template
>
<
template
v-else
>
{{
label
}}
</
template
>
</div>
</el-tooltip>
<div
:class=
"[line ? 'full-text-line' : 'full-text', identification]"
v-else
@
mouseenter=
"hoverFun"
:style=
"{ width: labelWidth + 'px', '-webkit-line-clamp': line }"
>
<
template
v-if=
"$slots.default"
><slot></slot></
template
>
<
template
v-else
>
{{
label
}}
</
template
>
</div>
</div>
</template>
<
script
>
export
default
{
name
:
'GLFull'
,
data
()
{
return
{
hoverStatus
:
false
}
},
props
:
{
identification
:
{
type
:
String
,
default
:
''
},
label
:
{
type
:
String
,
default
:
''
},
content
:
{
type
:
String
,
default
:
''
},
labelWidth
:
{
type
:
Number
,
default
:
100
},
line
:
{
type
:
Number
,
default
:
0
}
},
methods
:
{
hoverFun
()
{
console
.
log
(
document
.
querySelector
(
`.full-text`
).
scrollWidth
)
this
.
hoverStatus
=
this
.
identification
?
document
.
querySelector
(
`.
${
this
.
identification
}
`
).
scrollWidth
>
this
.
labelWidth
:
document
.
querySelector
(
`.full-text`
).
scrollWidth
>
this
.
labelWidth
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.full-container
{
display
:
inline-block
;
}
.full-text
{
display
:
inline-block
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
}
.full-text-line
{
display
:
-webkit-box
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
3
;
overflow
:
hidden
;
word-break
:
break-all
;
}
</
style
>
src/config/index.js
View file @
cba6514
...
@@ -17,7 +17,7 @@ export const fetchConfig = function(isEnv = true) {
...
@@ -17,7 +17,7 @@ export const fetchConfig = function(isEnv = true) {
Object
.
assign
(
request
,
{
timeout
})
Object
.
assign
(
request
,
{
timeout
})
return
Promise
.
resolve
(
cfg
)
return
Promise
.
resolve
(
cfg
)
}
}
return
new
Http
({
request
:
{
timeout
:
100000
}
}).
get
(
'https://oss-config.
dev.glsx.com.cn/mock/62947bd8304f1311a3b76a01/activity/confi
g'
)
return
new
Http
({
request
:
{
timeout
:
100000
}
}).
get
(
'https://oss-config.
test.glsx.com.cn/mock/62ab1da70da5034a58680aa9/activity/cofin
g'
)
// 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')
}
}
export
const
config
=
{
export
const
config
=
{
...
...
src/setup/qiankun.js
View file @
cba6514
...
@@ -3,6 +3,7 @@ import Vue from 'vue'
...
@@ -3,6 +3,7 @@ import Vue from 'vue'
import
{
fetchConfig
}
from
'@/config'
import
{
fetchConfig
}
from
'@/config'
import
ElementUI
from
'element-ui'
import
ElementUI
from
'element-ui'
import
{
GLTable
,
GLButton
,
GLFooter
,
GLCombiForm
}
from
'glsx-components'
//权限按钮 (根据权限动态创建)
import
{
GLTable
,
GLButton
,
GLFooter
,
GLCombiForm
}
from
'glsx-components'
//权限按钮 (根据权限动态创建)
import
GLFull
from
'@/components/GLFull'
import
collectButton
from
'@/components/collect-button'
import
collectButton
from
'@/components/collect-button'
import
{
getRoutes
}
from
'@/router'
import
{
getRoutes
}
from
'@/router'
import
render
from
'./render'
import
render
from
'./render'
...
@@ -11,6 +12,7 @@ Vue.use(GLTable)
...
@@ -11,6 +12,7 @@ Vue.use(GLTable)
Vue
.
use
(
GLFooter
)
Vue
.
use
(
GLFooter
)
Vue
.
use
(
GLCombiForm
)
Vue
.
use
(
GLCombiForm
)
Vue
.
component
(
collectButton
.
name
,
collectButton
)
Vue
.
component
(
collectButton
.
name
,
collectButton
)
Vue
.
component
(
'GLFull'
,
GLFull
)
import
'glsx-components/dist/glsx-components.css'
import
'glsx-components/dist/glsx-components.css'
import
'@/assets/css/common.scss'
import
'@/assets/css/common.scss'
let
routes
=
[]
let
routes
=
[]
...
...
src/views/activity/addActivity.vue
View file @
cba6514
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<div
class=
"activity-box-title"
>
{{
activityId
?
'编辑活动'
:
'创建活动'
}}
</div>
<div
class=
"activity-box-title"
>
{{
activityId
?
'编辑活动'
:
'创建活动'
}}
</div>
<div
class=
"activity-box-form"
>
<div
class=
"activity-box-form"
>
<el-form
ref=
"addForm"
:model=
"addForm"
class=
"code-body-form"
label-width=
"120px"
:rules=
"addRules"
>
<el-form
ref=
"addForm"
:model=
"addForm"
class=
"code-body-form"
label-width=
"120px"
:rules=
"addRules"
>
<el-form-item
label=
"活动名称"
prop=
"configName"
size=
"small"
>
<el-form-item
label=
"活动名称"
prop=
"configName"
size=
"small"
class=
"form-w40"
>
<el-input
size=
"small"
v-model
.
trim=
"addForm.configName"
placeholder=
"请输入活动名称"
maxlength=
"20"
></el-input>
<el-input
size=
"small"
v-model
.
trim=
"addForm.configName"
placeholder=
"请输入活动名称"
maxlength=
"20"
></el-input>
<div
class=
"activity-name-tips"
>
例:输入“定保客户”,系统推送任务时将自动追加月份信息“5月招揽-定保客户”
</div>
<div
class=
"activity-name-tips"
>
例:输入“定保客户”,系统推送任务时将自动追加月份信息“5月招揽-定保客户”
</div>
</el-form-item>
</el-form-item>
...
@@ -318,8 +318,11 @@ export default {
...
@@ -318,8 +318,11 @@ export default {
border-bottom
:
1px
solid
#d8d8d8
;
border-bottom
:
1px
solid
#d8d8d8
;
}
}
.activity-box-form
{
.activity-box-form
{
width
:
6
0%
;
width
:
5
0%
;
padding-top
:
30px
;
padding-top
:
30px
;
.form-w40
{
width
:
80%
;
}
.activity-item
{
.activity-item
{
/deep/
{
/deep/
{
.el-radio
{
.el-radio
{
...
@@ -339,6 +342,7 @@ export default {
...
@@ -339,6 +342,7 @@ export default {
color
:
#5850ff
;
color
:
#5850ff
;
cursor
:
pointer
;
cursor
:
pointer
;
margin-left
:
15px
;
margin-left
:
15px
;
line-height
:
32px
;
}
}
}
}
.activity-status
{
.activity-status
{
...
@@ -353,6 +357,7 @@ export default {
...
@@ -353,6 +357,7 @@ export default {
width
:
14px
;
width
:
14px
;
height
:
14px
;
height
:
14px
;
vertical-align
:
middle
;
vertical-align
:
middle
;
margin-top
:
-1px
;
}
}
.activity-name-tips
{
.activity-name-tips
{
font-size
:
14px
;
font-size
:
14px
;
...
...
src/views/activity/components/activityModel.vue
View file @
cba6514
...
@@ -171,6 +171,7 @@ export default {
...
@@ -171,6 +171,7 @@ export default {
}
}
if
(
this
.
activeName
==
2
)
{
if
(
this
.
activeName
==
2
)
{
params
.
discountTypes
=
[
2
,
3
,
4
]
params
.
discountTypes
=
[
2
,
3
,
4
]
params
.
directionalFlag
=
1
// 1所有人可用2定向礼包专用3关联优惠券
params
.
validType
=
'valid'
params
.
validType
=
'valid'
}
}
if
(
this
.
activeName
==
5
)
{
if
(
this
.
activeName
==
5
)
{
...
...
src/views/activity/components/marketConfig.vue
View file @
cba6514
...
@@ -11,10 +11,10 @@
...
@@ -11,10 +11,10 @@
</div>
</div>
</div>
</div>
<div
class=
"drawer-btn"
>
<div
class=
"drawer-btn"
>
<el-button
@
click=
"drawer = false"
>
<el-button
@
click=
"drawer = false"
size=
"small"
>
取消
取消
</el-button>
</el-button>
<el-button
type=
"primary"
@
click=
"handleSaveConfig"
>
提交
</el-button>
<el-button
type=
"primary"
@
click=
"handleSaveConfig"
size=
"small"
>
提交
</el-button>
</div>
</div>
</el-drawer>
</el-drawer>
</div>
</div>
...
@@ -99,7 +99,7 @@ export default {
...
@@ -99,7 +99,7 @@ export default {
z-index
:
3000
!important
;
z-index
:
3000
!important
;
/deep/
.el-drawer__header
{
/deep/
.el-drawer__header
{
border-bottom
:
1px
solid
#e6e6e6
;
border-bottom
:
1px
solid
#e6e6e6
;
padding
:
20px
;
padding
:
18px
20px
;
margin-bottom
:
20px
;
margin-bottom
:
20px
;
}
}
}
}
...
@@ -123,3 +123,8 @@ export default {
...
@@ -123,3 +123,8 @@ export default {
border-top
:
1px
solid
#e6e6e6
;
border-top
:
1px
solid
#e6e6e6
;
}
}
</
style
>
</
style
>
<
style
>
.el-select-dropdown
{
z-index
:
3001
!important
;
}
</
style
>
src/views/activity/components/messageModel.vue
View file @
cba6514
<
template
>
<
template
>
<div
class=
"square-main"
>
<div
class=
"square-main"
>
<el-dialog
title=
"选择模板"
:visible
.
sync=
"dialogVisible"
width=
"1142px"
:before-close=
"handleClose"
:close-on-click-modal=
"false"
>
<el-dialog
title=
"选择模板"
:visible
.
sync=
"dialogVisible"
width=
"1142px"
:before-close=
"handleClose"
:close-on-click-modal=
"false"
>
<div
class=
"model-panel"
>
<div
class=
"model-panel"
v-loading=
"messageLoading"
>
<el-form
:inline=
"true"
class=
"message-form"
:model=
"searchForm"
ref=
"searchForm"
>
<el-form
:inline=
"true"
class=
"message-form"
:model=
"searchForm"
ref=
"searchForm"
>
<el-form-item
label=
"模板标题"
size=
"small"
>
<el-form-item
label=
"模板标题"
size=
"small"
>
<el-input
v-model=
"searchForm.title"
:size=
"size"
placeholder=
"请输入模板名称搜索"
></el-input>
<el-input
v-model=
"searchForm.title"
:size=
"size"
placeholder=
"请输入模板名称搜索"
></el-input>
...
@@ -82,6 +82,7 @@ export default {
...
@@ -82,6 +82,7 @@ export default {
loading
:
false
,
loading
:
false
,
activeName
:
'1'
,
activeName
:
'1'
,
messageRadio
:
{},
messageRadio
:
{},
messageLoading
:
false
,
modelList
:
[
modelList
:
[
// {
// {
// title: '121',
// title: '121',
...
@@ -113,6 +114,7 @@ export default {
...
@@ -113,6 +114,7 @@ export default {
},
},
methods
:
{
methods
:
{
init
()
{
init
()
{
this
.
messageLoading
=
true
this
.
pageNum
=
1
this
.
pageNum
=
1
this
.
messageRadio
=
{}
this
.
messageRadio
=
{}
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
...
@@ -210,6 +212,9 @@ export default {
...
@@ -210,6 +212,9 @@ export default {
getCreatedList
()
{
getCreatedList
()
{
this
.
$apis
.
customerTransform
.
createdNameList
({}).
then
(
res
=>
{
this
.
$apis
.
customerTransform
.
createdNameList
({}).
then
(
res
=>
{
this
.
createdList
=
res
this
.
createdList
=
res
this
.
$nextTick
(()
=>
{
this
.
messageLoading
=
false
})
})
})
},
},
getTemplateDetail
(
id
)
{
getTemplateDetail
(
id
)
{
...
...
src/views/activity/components/selectMember.vue
View file @
cba6514
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<el-radio-group
v-model=
"immExecutionFlag"
>
<el-radio-group
v-model=
"immExecutionFlag"
>
<el-radio
:label=
"true"
>
立即提醒
</el-radio>
<el-radio
:label=
"true"
>
立即提醒
</el-radio>
<el-radio
:label=
"false"
>
指定日期
</el-radio>
<el-radio
:label=
"false"
>
指定日期
</el-radio>
<el-date-picker
v-if=
"!immExecutionFlag"
value-format=
"yyyy-MM-dd"
v-model=
"sendDate"
type=
"date"
placeholder=
"选择日期"
size=
"small"
></el-date-picker>
<el-date-picker
:picker-options=
"pickerOptions"
v-if=
"!immExecutionFlag"
value-format=
"yyyy-MM-dd"
v-model=
"sendDate"
type=
"date"
placeholder=
"选择日期"
size=
"small"
></el-date-picker>
</el-radio-group>
</el-radio-group>
</div>
</div>
<div
class=
"member-item"
>
<div
class=
"member-item"
>
...
@@ -91,6 +91,11 @@ export default {
...
@@ -91,6 +91,11 @@ export default {
children
:
'children'
,
children
:
'children'
,
label
:
'departmentName'
label
:
'departmentName'
},
},
pickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
<
Date
.
now
()
-
8.64e7
// 如果没有后面的-8.64e7就是不可以选择今天的
}
},
popoverVisible
:
false
,
popoverVisible
:
false
,
loading
:
false
,
loading
:
false
,
// 表格参数
// 表格参数
...
...
src/views/activity/distribution.vue
View file @
cba6514
...
@@ -23,24 +23,12 @@
...
@@ -23,24 +23,12 @@
<div
slot=
"followName"
class=
"entmicro"
slot-scope=
"scope"
>
<div
slot=
"followName"
class=
"entmicro"
slot-scope=
"scope"
>
<div
v-if=
"!followList(scope.scope.followName).length"
>
--
</div>
<div
v-if=
"!followList(scope.scope.followName).length"
>
--
</div>
<div
class=
"entmicro-tag"
style=
"padding-right:3px"
v-for=
"(tag, idx) in followList(scope.scope.followName)"
:key=
"idx"
>
<div
class=
"entmicro-tag"
style=
"padding-right:3px"
v-for=
"(tag, idx) in followList(scope.scope.followName)"
:key=
"idx"
>
<
el-tooltip
effect=
"dark"
:content=
"tag"
placement=
"top
"
>
<
GLFull
:labelWidth=
"110"
:content=
"tag"
identification=
"ellipsis-1
"
>
<el-tag
type=
"info"
class=
"ellipsis-1"
v-if=
"idx
< 2
"
:disable-transitions=
"false"
>
<el-tag
type=
"info"
class=
"ellipsis-1"
:disable-transitions=
"false"
>
<i
class=
"el-icon-user-solid"
></i>
<i
class=
"el-icon-user-solid"
></i>
{{
tag
}}
{{
tag
}}
</el-tag>
</el-tag>
</el-tooltip>
</GLFull>
<el-tag
type=
"info"
v-if=
"followList(scope.scope.followName).length > 2 && idx == 2"
>
<el-popover
placement=
"top"
width=
"600"
trigger=
"hover"
>
<div
slot=
"reference"
>
...(
{{
followList
(
scope
.
scope
.
followName
).
length
}}
)
</div>
<div
class=
"entmicro-hover"
>
<el-tag
style=
"margin-left:4px"
type=
"info"
v-for=
"(i, index) in followList(scope.scope.followName)"
:key=
"index"
:disable-transitions=
"false"
>
<i
class=
"el-icon-user-solid"
style=
"color: #75acff"
></i>
{{
i
}}
</el-tag>
</div>
</el-popover>
</el-tag>
</div>
</div>
</div>
</div>
<!-- 企微名称 -->
<!-- 企微名称 -->
...
@@ -70,7 +58,7 @@
...
@@ -70,7 +58,7 @@
</span>
</span>
<div
slot=
"followFlag"
slot-scope=
"scope"
>
<div
slot=
"followFlag"
slot-scope=
"scope"
>
<div
class=
"statusText"
>
<div
class=
"statusText"
>
<span
:class=
"
{ circleStatusGray: scope.scope.followFlag === 0, circleStatusGreen: scope.scope.followFlag == 1 }">
</span>
<span
:class=
"
{ circleStatusGray: scope.scope.followFlag === 0, circleStatusGreen: scope.scope.followFlag == 1
|| scope.scope.followFlag == 2
}">
</span>
<span>
{{
statusText
(
scope
.
scope
.
followFlag
)
}}
</span>
<span>
{{
statusText
(
scope
.
scope
.
followFlag
)
}}
</span>
</div>
</div>
</div>
</div>
...
@@ -142,8 +130,8 @@ export default {
...
@@ -142,8 +130,8 @@ export default {
label
:
'分配日期'
,
label
:
'分配日期'
,
valueFormat
:
'yyyy-MM-dd'
,
valueFormat
:
'yyyy-MM-dd'
,
pickerOptions
:
{
pickerOptions
:
{
disabledDate
(
time
)
{
disabledDate
:
time
=>
{
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
new
Date
(
'2017-12-31'
).
getTime
()
return
time
.
getTime
()
>
Date
.
now
()
}
}
}
}
},
},
...
@@ -279,7 +267,7 @@ export default {
...
@@ -279,7 +267,7 @@ export default {
},
},
//分配任务
//分配任务
handleDistribution
()
{
handleDistribution
()
{
if
(
!
this
.
customerIds
.
length
==
0
)
{
if
(
this
.
customerIds
.
length
==
0
)
{
this
.
$message
({
this
.
$message
({
showClose
:
true
,
showClose
:
true
,
duration
:
3000
,
duration
:
3000
,
...
@@ -296,7 +284,7 @@ export default {
...
@@ -296,7 +284,7 @@ export default {
return
str
.
split
(
','
)
return
str
.
split
(
','
)
},
},
statusText
(
text
)
{
statusText
(
text
)
{
return
text
===
1
?
'已跟进'
:
text
===
0
?
'未跟进'
:
'--'
return
text
===
1
||
text
===
2
?
'已跟进'
:
text
===
0
?
'未跟进'
:
'--'
},
},
setTableHeightEvent
()
{
setTableHeightEvent
()
{
this
.
$refs
.
customForm
.
setTableHeightFun
()
this
.
$refs
.
customForm
.
setTableHeightFun
()
...
@@ -320,10 +308,10 @@ export default {
...
@@ -320,10 +308,10 @@ export default {
}
}
params
.
id
=
this
.
$route
.
query
.
id
params
.
id
=
this
.
$route
.
query
.
id
if
(
params
.
daterange
)
{
if
(
params
.
daterange
)
{
params
.
begin
Time
=
this
.
searchForm
.
daterange
[
0
].
replace
(
/-/g
,
'/'
)
params
.
start
Time
=
this
.
searchForm
.
daterange
[
0
].
replace
(
/-/g
,
'/'
)
params
.
endTime
=
this
.
searchForm
.
daterange
[
1
].
replace
(
/-/g
,
'/'
)
params
.
endTime
=
this
.
searchForm
.
daterange
[
1
].
replace
(
/-/g
,
'/'
)
}
else
{
}
else
{
if
(
params
.
beginTime
)
delete
params
.
begin
Time
&&
delete
params
.
endTime
if
(
params
.
startTime
)
delete
params
.
start
Time
&&
delete
params
.
endTime
}
}
delete
params
.
daterange
delete
params
.
daterange
return
params
return
params
...
@@ -403,6 +391,12 @@ export default {
...
@@ -403,6 +391,12 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.ellipsis-1
{
max-width
:
100%
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
white-space
:
nowrap
;
}
.statusText
{
.statusText
{
>
span
:
first-child
{
>
span
:
first-child
{
width
:
6px
;
width
:
6px
;
...
@@ -517,8 +511,7 @@ export default {
...
@@ -517,8 +511,7 @@ export default {
}
}
.el-tag
{
.el-tag
{
//
margin-right
:
10px
;
max-width
:
110%
;
max-width
:
110px
;
cursor
:
pointer
;
cursor
:
pointer
;
background-color
:
#fff
!important
;
background-color
:
#fff
!important
;
}
}
...
...
src/views/activity/index.vue
View file @
cba6514
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
</div>
</div>
<div
class=
"activity-tabel scrm-box-f"
>
<div
class=
"activity-tabel scrm-box-f"
>
<div
class=
"activity-tabel-form"
>
<div
class=
"activity-tabel-form"
>
<GLCombiForm
ref=
"formSearch"
:formObj=
"tableSearchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLCombiForm
:rowNumber=
"1"
ref=
"formSearch"
:formObj=
"tableSearchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLTable
@
setTableFinishFun=
"setTableFinishFun"
:noDataImg=
"url"
ref=
"taskForm"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
@
setTableFinishFun=
"setTableFinishFun"
:noDataImg=
"url"
ref=
"taskForm"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<div
class=
"table-btns"
slot=
"optionBtns"
slot-scope=
"scope"
>
<div
class=
"table-btns"
slot=
"optionBtns"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"handleDistribution(scope.scope)"
>
任务分配
</el-button>
<el-button
type=
"text"
@
click=
"handleDistribution(scope.scope)"
>
任务分配
</el-button>
...
@@ -134,6 +134,9 @@ export default {
...
@@ -134,6 +134,9 @@ export default {
if
(
this
.
tableSearchForm
.
createTime
)
{
if
(
this
.
tableSearchForm
.
createTime
)
{
this
.
tableSearchForm
.
startTime
=
new
Date
(
this
.
tableSearchForm
.
createTime
[
0
]).
toLocaleDateString
().
replace
(
/-/g
,
'/'
)
this
.
tableSearchForm
.
startTime
=
new
Date
(
this
.
tableSearchForm
.
createTime
[
0
]).
toLocaleDateString
().
replace
(
/-/g
,
'/'
)
this
.
tableSearchForm
.
endTime
=
new
Date
(
this
.
tableSearchForm
.
createTime
[
1
]).
toLocaleDateString
().
replace
(
/-/g
,
'/'
)
this
.
tableSearchForm
.
endTime
=
new
Date
(
this
.
tableSearchForm
.
createTime
[
1
]).
toLocaleDateString
().
replace
(
/-/g
,
'/'
)
}
else
{
delete
this
.
tableSearchForm
.
startTime
delete
this
.
tableSearchForm
.
endTime
}
}
delete
this
.
tableSearchForm
.
createTime
delete
this
.
tableSearchForm
.
createTime
resolve
()
resolve
()
...
...
src/views/activityConfig/index.vue
View file @
cba6514
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
</div>
</div>
<div
class=
"activity-tabel scrm-box-f"
>
<div
class=
"activity-tabel scrm-box-f"
>
<div
class=
"activity-tabel-form"
>
<div
class=
"activity-tabel-form"
>
<GLCombiForm
ref=
"formSearch"
:formObj=
"tableSearchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLCombiForm
:rowNumber=
"1"
ref=
"formSearch"
:formObj=
"tableSearchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLTable
@
setTableFinishFun=
"setTableFinishFun"
ref=
"taskForm"
:noDataImg=
"url"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
@
setTableFinishFun=
"setTableFinishFun"
ref=
"taskForm"
:noDataImg=
"url"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<div
class=
"table-btns"
slot=
"status"
slot-scope=
"scope"
>
<div
class=
"table-btns"
slot=
"status"
slot-scope=
"scope"
>
<el-switch
v-model=
"scope.scope.status"
:active-value=
"0"
:inactive-value=
"-1"
@
change=
"changeSwitch(scope.scope)"
></el-switch>
<el-switch
v-model=
"scope.scope.status"
:active-value=
"0"
:inactive-value=
"-1"
@
change=
"changeSwitch(scope.scope)"
></el-switch>
...
@@ -146,6 +146,9 @@ export default {
...
@@ -146,6 +146,9 @@ export default {
if
(
this
.
tableSearchForm
.
createTime
)
{
if
(
this
.
tableSearchForm
.
createTime
)
{
this
.
tableSearchForm
.
beginTime
=
new
Date
(
this
.
tableSearchForm
.
createTime
[
0
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
this
.
tableSearchForm
.
beginTime
=
new
Date
(
this
.
tableSearchForm
.
createTime
[
0
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
this
.
tableSearchForm
.
endTime
=
new
Date
(
this
.
tableSearchForm
.
createTime
[
1
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
this
.
tableSearchForm
.
endTime
=
new
Date
(
this
.
tableSearchForm
.
createTime
[
1
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
}
else
{
delete
this
.
tableSearchForm
.
beginTime
delete
this
.
tableSearchForm
.
endTime
}
}
delete
this
.
tableSearchForm
.
createTime
delete
this
.
tableSearchForm
.
createTime
resolve
()
resolve
()
...
...
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