Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-task
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 5720d9e5
authored
Dec 06, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
解决页面风格切换为软文,未显示软文问题
1 parent
62147750
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
src/views/task/addTask/index.vue
src/views/task/addTask/index.vue
View file @
5720d9e
...
@@ -198,7 +198,10 @@
...
@@ -198,7 +198,10 @@
:rules=
"taskFormRules.textType"
:rules=
"taskFormRules.textType"
v-show=
"itm.showArticle"
v-show=
"itm.showArticle"
>
>
<el-radio-group
v-model=
"itm.textType"
>
<el-radio-group
v-model=
"itm.textType"
@
change=
"textTypeChange(item, index, itm, index1)"
>
<el-radio
:label=
"1"
>
软文模式
</el-radio>
<el-radio
:label=
"1"
>
软文模式
</el-radio>
<el-radio
:label=
"2"
>
营销模式
</el-radio>
<el-radio
:label=
"2"
>
营销模式
</el-radio>
</el-radio-group>
</el-radio-group>
...
@@ -1087,6 +1090,15 @@ export default {
...
@@ -1087,6 +1090,15 @@ export default {
})
})
}
}
},
},
// 页面风格切换
textTypeChange
(
item
,
index
,
itm
,
index1
)
{
console
.
log
(
itm
)
console
.
log
(
this
.
textIds
)
if
(
itm
.
textType
==
1
)
{
let
textId
=
itm
.
taskid
||
itm
.
id
this
.
getTextBox
(
textId
,
index
,
index1
)
}
},
// 获取任务信息详情
// 获取任务信息详情
findMissionDeail
(
taskId
)
{
findMissionDeail
(
taskId
)
{
var
params
=
{
id
:
taskId
}
var
params
=
{
id
:
taskId
}
...
@@ -1157,6 +1169,10 @@ export default {
...
@@ -1157,6 +1169,10 @@ export default {
itm
.
showArticle
=
false
itm
.
showArticle
=
false
}
}
}
}
// 处理奖励字段
if
(
itm
.
missonType
==
1
&&
!
itm
.
rewardType
)
{
itm
.
rewardType
=
4
}
})
})
})
})
console
.
log
(
this
.
taskEditList
.
missionDateList
)
console
.
log
(
this
.
taskEditList
.
missionDateList
)
...
@@ -1262,8 +1278,7 @@ export default {
...
@@ -1262,8 +1278,7 @@ export default {
itm
.
minTriggerValue
=
1
itm
.
minTriggerValue
=
1
}
}
// 页面风格处理
// 页面风格处理
if
(
!
itm
.
showArticle
)
{
if
(
itm
.
textType
==
2
)
{
itm
.
textType
=
2
itm
.
textContent
=
''
itm
.
textContent
=
''
}
}
// 自定义uuid删除
// 自定义uuid删除
...
@@ -1297,6 +1312,7 @@ export default {
...
@@ -1297,6 +1312,7 @@ export default {
if
(
itm
.
sharingMethod
)
{
if
(
itm
.
sharingMethod
)
{
itm
.
sharingMethod
=
itm
.
sharingMethod
.
toString
()
itm
.
sharingMethod
=
itm
.
sharingMethod
.
toString
()
}
}
// 注册任务无奖励时处理
if
(
itm
.
missonType
==
1
&&
itm
.
rewardType
==
4
)
{
if
(
itm
.
missonType
==
1
&&
itm
.
rewardType
==
4
)
{
itm
.
rewardType
=
''
itm
.
rewardType
=
''
}
}
...
...
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