Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
12a692aa
Commit
12a692aa
authored
Nov 24, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
28bb2e39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
14 deletions
+13
-14
sale-form.vue
src/components/sale/sale-form.vue
+13
-14
No files found.
src/components/sale/sale-form.vue
View file @
12a692aa
...
...
@@ -102,7 +102,7 @@
</div>
<div
class=
"row wrap"
style=
"margin-top:20px;"
>
<div
class=
"row col-12"
>
<div
class=
"sale_ImgDiv"
v-for=
"(sItem,sIndex) in objOption.TaskImage"
:key=
"sIndex"
>
<div
class=
"sale_ImgDiv"
v-for=
"(sItem,sIndex) in objOption.TaskImage
List
"
:key=
"sIndex"
>
<img
:src=
"sItem"
/>
<q-btn
size=
"6px"
style=
"position:absolute;right:-8px;top:-5px;"
@
click=
"deleTask(sIndex)"
round
color=
"red"
icon=
"iconfont icon-guanbi1"
/>
...
...
@@ -118,7 +118,7 @@
</div>
<div
class=
"row wrap"
style=
"margin-top:20px;"
>
<div
class=
"row col-12"
>
<div
class=
"sale_ImgDiv"
v-for=
"(sItem,sIndex) in objOption.TaskKudoImg"
:key=
"sIndex"
>
<div
class=
"sale_ImgDiv"
v-for=
"(sItem,sIndex) in objOption.TaskKudoImg
List
"
:key=
"sIndex"
>
<img
:src=
"sItem"
/>
<q-btn
size=
"6px"
style=
"position:absolute;right:-8px;top:-5px;"
@
click=
"deleKudo(sIndex)"
round
color=
"red"
icon=
"iconfont icon-guanbi1"
/>
...
...
@@ -238,8 +238,8 @@
Id
:
0
,
TaskName
:
''
,
//任务名称
TaskSubTitle
:
''
,
//任务子标题
TaskImage
:
[],
//任务图片
TaskKudoImg
:
[],
//奖品图片
TaskImage
List
:
[],
//任务图片
TaskKudoImg
List
:
[],
//奖品图片
TaskKudo
:
''
,
//奖品名称
TaskDesc
:
''
,
//任务描述
TaskStartTime
:
""
,
//任务开始时间
...
...
@@ -286,10 +286,9 @@
this
.
objOption
.
TaskEndTime
=
tempData
.
TaskEndTimeStr
;
this
.
objOption
.
DetailsList
=
tempData
.
DetailsList
;
this
.
objOption
.
TaskSubTitle
=
tempData
.
TaskSubTitle
;
// this.objOption.TaskImage = tempData.TaskImage
;
// this.objOption.TaskKudoImg = tempData.TaskKudoImg
;
this
.
objOption
.
TaskImageList
=
tempData
.
TaskImageList
;
this
.
objOption
.
TaskKudoImgList
=
tempData
.
TaskKudoImgList
;
this
.
objOption
.
TaskDesc
=
tempData
.
TaskDesc
;
}
})
this
.
optionTitle
=
"修改客户任务"
...
...
@@ -297,8 +296,8 @@
this
.
objOption
.
Id
=
0
;
this
.
objOption
.
TaskName
=
''
;
this
.
objOption
.
TaskSubTitle
=
''
;
this
.
objOption
.
TaskImage
=
[];
this
.
objOption
.
TaskKudoImg
=
[];
this
.
objOption
.
TaskImage
List
=
[];
this
.
objOption
.
TaskKudoImg
List
=
[];
this
.
objOption
.
TaskDesc
=
''
;
this
.
objOption
.
TaskKudo
=
''
;
this
.
objOption
.
TaskStartTime
=
''
;
...
...
@@ -325,7 +324,7 @@
}
this
.
saveCustomLoading
=
true
;
console
.
log
(
this
.
objOption
,
'数据'
);
return
;
SetCustomerTask
(
this
.
objOption
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
saveCustomLoading
=
false
;
...
...
@@ -376,17 +375,17 @@
},
//删除任务图片
deleTask
(
index
)
{
this
.
objOption
.
TaskImage
.
splice
(
index
,
1
);
this
.
objOption
.
TaskImage
List
.
splice
(
index
,
1
);
},
//删除奖品图片
deleKudo
(
index
)
{
this
.
objOption
.
TaskKudoImg
.
splice
(
index
,
1
);
this
.
objOption
.
TaskKudoImg
List
.
splice
(
index
,
1
);
},
//上传任务图片
uploadFileTask
(
files
)
{
UploadSelfFile
(
'Icon'
,
files
,
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
objOption
.
TaskImage
.
push
(
res
.
FileUrl
);
this
.
objOption
.
TaskImage
List
.
push
(
res
.
FileUrl
);
}
})
},
...
...
@@ -394,7 +393,7 @@
uploadFileKudo
(
files
)
{
UploadSelfFile
(
'Icon'
,
files
,
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
objOption
.
TaskKudoImg
.
push
(
res
.
FileUrl
);
this
.
objOption
.
TaskKudoImg
List
.
push
(
res
.
FileUrl
);
}
})
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment