Commit 12a692aa authored by 黄奎's avatar 黄奎

页面修改

parent 28bb2e39
......@@ -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.TaskImageList" :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.TaskKudoImgList" :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: [], //奖品图片
TaskImageList: [], //任务图片
TaskKudoImgList: [], //奖品图片
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.TaskImageList = [];
this.objOption.TaskKudoImgList = [];
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.TaskImageList.splice(index, 1);
},
//删除奖品图片
deleKudo(index) {
this.objOption.TaskKudoImg.splice(index, 1);
this.objOption.TaskKudoImgList.splice(index, 1);
},
//上传任务图片
uploadFileTask(files) {
UploadSelfFile('Icon', files, res => {
if (res.Code == 1) {
this.objOption.TaskImage.push(res.FileUrl);
this.objOption.TaskImageList.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.TaskKudoImgList.push(res.FileUrl);
}
})
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment