Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-outbound
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 5b91a263
authored
Jan 23, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复BUG
1 parent
d7f1a8e3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
64 additions
and
55 deletions
src/views/questionnaire/components/DataTable/index.vue
src/views/solitaire/add.vue
src/views/solitaire/addJS/add.js
src/views/questionnaire/components/DataTable/index.vue
View file @
5b91a26
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
:tableParams=
"tableParams"
:tableParams=
"tableParams"
:tableTotal=
"tableTotal"
:tableTotal=
"tableTotal"
:pageConf=
"pageConf"
:pageConf=
"pageConf"
@
refreshTable=
"refreshTable"
ref=
"listRef"
ref=
"listRef"
>
>
</GLTable>
</GLTable>
...
...
src/views/solitaire/add.vue
View file @
5b91a26
...
@@ -12,6 +12,30 @@
...
@@ -12,6 +12,30 @@
:formData=
"formData"
:formData=
"formData"
:formRules=
"rule"
:formRules=
"rule"
>
>
<template
#
merchantId
>
<el-select
v-model=
"configForm.merchantId"
placeholder=
"请选择"
filterable
remote
:remote-method=
"remoteMethod"
v-reachbottom=
"onReachBottom"
@
focus=
"selectFocus"
:loading=
"loading"
:disabled=
"disabled"
@
change=
"change"
>
<el-option
v-for=
"item in merchantObj.data"
:key=
"item.confId"
:label=
"item.confName"
:value=
"item.confId"
></el-option>
<template
v-if=
"merchantObj.nothing"
>
<div
class=
"select-nothing"
>
到底了!
</div>
</
template
>
</el-select>
</template>
<div
<div
slot=
"cover"
slot=
"cover"
class=
"edit-tips"
class=
"edit-tips"
...
@@ -101,9 +125,10 @@
...
@@ -101,9 +125,10 @@
import
dayjs
from
'dayjs'
import
dayjs
from
'dayjs'
import
{
formData
,
rule
,
afterRangePickerOptions
}
from
'./addJS/add.js'
import
{
formData
,
rule
,
afterRangePickerOptions
}
from
'./addJS/add.js'
import
PrizeBox
from
'./components/PrizeBox.vue'
import
PrizeBox
from
'./components/PrizeBox.vue'
import
{
getMerchantListMixin
}
from
'@/mixins'
export
default
{
export
default
{
components
:
{
PrizeBox
},
components
:
{
PrizeBox
},
mixins
:
[
getMerchantListMixin
],
name
:
''
,
name
:
''
,
data
()
{
data
()
{
return
{
return
{
...
@@ -133,18 +158,24 @@ export default {
...
@@ -133,18 +158,24 @@ export default {
groupLimitList
:
[],
groupLimitList
:
[],
relayLotteryId
:
''
,
relayLotteryId
:
''
,
isEdit
:
false
,
isEdit
:
false
,
disabled
:
false
disabled
:
false
,
merchantObj
:
{
nothing
:
false
,
data
:
[],
currentPage
:
1
,
name
:
''
,
loading
:
false
,
total
:
0
}
}
}
},
},
watch
:
{
watch
:
{
'configForm.merchantId'
(
n
)
{
'configForm.merchantId'
(
n
)
{
const
{
optionList
}
=
this
.
formData
.
find
(
e
=>
e
.
name
==
'merchantId'
),
const
{
disabled
}
=
this
,
{
disabled
}
=
this
{
groupLimitOpen
}
=
this
.
configForm
optionList
.
map
(
e
=>
{
this
.
configForm
.
merchantName
=
this
.
merchantObj
.
data
.
find
(
e
=>
e
.
confId
==
n
).
confName
if
(
e
.
confId
==
n
)
this
.
configForm
.
merchantName
=
e
.
confName
if
(
groupLimitOpen
)
this
.
getMerchantWechatGroupList
([
n
])
})
this
.
getMerchantWechatGroupList
([
n
])
if
(
!
disabled
)
{
if
(
!
disabled
)
{
this
.
$refs
.
prizeRef
.
reset
()
this
.
$refs
.
prizeRef
.
reset
()
this
.
configForm
.
groupLimitList
=
[]
this
.
configForm
.
groupLimitList
=
[]
...
@@ -187,6 +218,9 @@ export default {
...
@@ -187,6 +218,9 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
changt
(
id
)
{
},
showError
(
message
)
{
showError
(
message
)
{
this
.
$message
.
error
(
message
||
'请先选择所属渠道!'
)
this
.
$message
.
error
(
message
||
'请先选择所属渠道!'
)
},
},
...
@@ -198,13 +232,11 @@ export default {
...
@@ -198,13 +232,11 @@ export default {
console
.
log
(
data
)
console
.
log
(
data
)
this
.
formData
.
map
(
e
=>
{
this
.
formData
.
map
(
e
=>
{
e
.
isDisabled
=
disabled
e
.
isDisabled
=
disabled
// if (disabled && e.name == 'description') this.$refs.formRef.forbidEdit(e)
if
(
e
.
name
==
'merchantId'
)
e
.
optionList
=
[{
confId
:
data
.
merchantId
,
confName
:
data
.
merchantName
}]
})
})
this
.
merchantObj
.
data
=
[{
confId
:
data
.
merchantId
,
confName
:
data
.
merchantName
}]
let
description
=
decodeURIComponent
(
data
.
description
),
let
description
=
decodeURIComponent
(
data
.
description
),
endTimeType
=
0
,
endTimeType
=
0
,
numWin
=
data
.
numWin
,
numWin
=
data
.
numWin
,
...
@@ -245,30 +277,6 @@ export default {
...
@@ -245,30 +277,6 @@ export default {
}
}
},
},
async
getMerchantList
(
merchantName
=
''
)
{
if
(
!
merchantName
)
return
this
.
$loading
()
try
{
const
{
list
}
=
await
this
.
$apis
.
redenvelope
.
getRedEnvelopeMerchantList
({
currentPage
:
1
,
merchantName
,
pageSize
:
999
}),
data
=
[]
list
&&
list
.
map
(
e
=>
{
data
.
push
({
confId
:
e
.
merchantNo
,
confName
:
e
.
merchantName
,
})
})
this
.
formData
.
find
(
e
=>
e
.
name
==
'merchantId'
).
optionList
=
data
this
.
$loading
().
close
()
}
catch
(
error
)
{
console
.
log
(
error
)
this
.
$loading
().
close
()
}
},
choose
({
rewardId
,
rewardName
,
rewardType
})
{
choose
({
rewardId
,
rewardName
,
rewardType
})
{
this
.
configForm
.
rewardId
=
rewardId
this
.
configForm
.
rewardId
=
rewardId
this
.
configForm
.
rewardType
=
rewardType
this
.
configForm
.
rewardType
=
rewardType
...
@@ -369,12 +377,12 @@ export default {
...
@@ -369,12 +377,12 @@ export default {
border-color
:
#f56c6c
!important
;
border-color
:
#f56c6c
!important
;
}
}
}
}
/
deep
/
.text-box-disabled
{
/
deep
/
.text-box-disabled
{
.w-e-toolbar,
.w-e-toolbar,
.w-e-text-container{
.w-e-text-container
{
background-color
:
#eee
!important
;
background-color
:
#eee
!important
;
border-color
:
#e4e7ed
!important
;
border-color
:
#e4e7ed
!important
;
&:hover{
&:hover
{
cursor
:
not-allowed
;
cursor
:
not-allowed
;
}
}
}
}
...
...
src/views/solitaire/addJS/add.js
View file @
5b91a26
...
@@ -12,19 +12,19 @@ export const formData = that => {
...
@@ -12,19 +12,19 @@ export const formData = that => {
{
{
label
:
'所属渠道'
,
label
:
'所属渠道'
,
name
:
'merchantId'
,
name
:
'merchantId'
,
type
:
'select'
,
width
:
'432px'
,
width
:
'432px'
,
attrs
:
{
addHtml
:
'merchantId'
'filter-method'
:
(
e
)
=>
{
// attrs: {
that
.
getMerchantList
(
e
)
// 'filter-method': (e) => {
},
// that.getMerchantList(e)
remote
:
true
// },
},
// remote: true
noFilter
:
false
,
// },
optionList
:
[],
// noFilter: false,
optionId
:
'confId'
,
// optionList: [],
optionLabel
:
'confName'
,
// optionId: 'confId',
isDisabled
:
false
// optionLabel: 'confName',
// isDisabled: false
},
},
{
{
label
:
'群接龙种类'
,
label
:
'群接龙种类'
,
...
@@ -173,7 +173,7 @@ export const rule = that => {
...
@@ -173,7 +173,7 @@ export const rule = that => {
endTimeType
:
[{
endTimeType
:
[{
required
,
required
,
validator
:
(
rule
,
value
,
callback
)
=>
{
validator
:
(
rule
,
value
,
callback
)
=>
{
if
(
that
.
disabled
)
callback
()
if
(
that
.
disabled
)
callback
()
try
{
try
{
if
(
value
==
1
)
{
if
(
value
==
1
)
{
if
(
!
that
.
configForm
.
endTime
)
throw
'请选择接龙结束时间'
if
(
!
that
.
configForm
.
endTime
)
throw
'请选择接龙结束时间'
...
@@ -191,7 +191,7 @@ export const rule = that => {
...
@@ -191,7 +191,7 @@ export const rule = that => {
required
,
trigger
,
required
,
trigger
,
validator
:
(
rule
,
value
,
callback
)
=>
{
validator
:
(
rule
,
value
,
callback
)
=>
{
try
{
try
{
if
(
that
.
disabled
)
callback
()
if
(
that
.
disabled
)
callback
()
if
(
!
value
)
throw
'请选择接龙开奖时间'
if
(
!
value
)
throw
'请选择接龙开奖时间'
else
{
else
{
const
valueTimestamp
=
dayjs
(
value
).
valueOf
()
const
valueTimestamp
=
dayjs
(
value
).
valueOf
()
...
...
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