|
@@ -500,7 +500,8 @@
|
|
|
@setShareImg="setShareImg"
|
|
@setShareImg="setShareImg"
|
|
|
@setDailyDetailsBox="setDailyDetailsBox"
|
|
@setDailyDetailsBox="setDailyDetailsBox"
|
|
|
:urlList="urlList"
|
|
:urlList="urlList"
|
|
|
- :reportRemarksIndex="reportRemarksIndex"></share>
|
|
|
|
|
|
|
+ :reportRemarksIndex="reportRemarksIndex"
|
|
|
|
|
+ :checkedPlan="checkedPlan"></share>
|
|
|
<!--分享图片列表 -->
|
|
<!--分享图片列表 -->
|
|
|
<el-dialog
|
|
<el-dialog
|
|
|
title="选择分享的图片"
|
|
title="选择分享的图片"
|
|
@@ -514,7 +515,7 @@
|
|
|
<div v-for="(item, index) in reportTarget.photos" :key="index">
|
|
<div v-for="(item, index) in reportTarget.photos" :key="index">
|
|
|
<p style="margin-bottom: 10px; margin-top: 0; display: flex">
|
|
<p style="margin-bottom: 10px; margin-top: 0; display: flex">
|
|
|
今日总结&明日规划<van-checkbox
|
|
今日总结&明日规划<van-checkbox
|
|
|
- v-model="checked"
|
|
|
|
|
|
|
+ v-model="checkedPlan"
|
|
|
style="margin-left: 10px"></van-checkbox>
|
|
style="margin-left: 10px"></van-checkbox>
|
|
|
</p>
|
|
</p>
|
|
|
<p style="margin-bottom: 10px; margin-top: 0">{{ item.taskName }}</p>
|
|
<p style="margin-bottom: 10px; margin-top: 0">{{ item.taskName }}</p>
|
|
@@ -633,7 +634,7 @@ export default {
|
|
|
urlList: [],
|
|
urlList: [],
|
|
|
setDailyDetailsBoxFlag: true,
|
|
setDailyDetailsBoxFlag: true,
|
|
|
source: '',
|
|
source: '',
|
|
|
- checked: true, //今日总结&明日规划
|
|
|
|
|
|
|
+ checkedPlan: true, //今日总结&明日规划
|
|
|
//
|
|
//
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
@@ -685,12 +686,16 @@ export default {
|
|
|
},
|
|
},
|
|
|
// 确认分享
|
|
// 确认分享
|
|
|
confirmShare() {
|
|
confirmShare() {
|
|
|
- this.shareImgFlag = false;
|
|
|
|
|
this.reportTarget.photos.forEach((item) => {
|
|
this.reportTarget.photos.forEach((item) => {
|
|
|
item.photos.forEach((val) => {
|
|
item.photos.forEach((val) => {
|
|
|
if (val.checked) this.urlList.push(val.fileUrl);
|
|
if (val.checked) this.urlList.push(val.fileUrl);
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
|
|
+ if (this.urlList.length == 0 && !this.checkedPlan) {
|
|
|
|
|
+ this.$notify({ type: 'warning', message: '请选择分享内容!', className: 'notifyIndex' });
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ this.shareImgFlag = false;
|
|
|
this.setShareFlag = true;
|
|
this.setShareFlag = true;
|
|
|
},
|
|
},
|
|
|
pviewFn(val, imgVal) {
|
|
pviewFn(val, imgVal) {
|
|
@@ -759,7 +764,9 @@ export default {
|
|
|
}
|
|
}
|
|
|
this.imgList = imgList;
|
|
this.imgList = imgList;
|
|
|
if (this.source == 'daily') {
|
|
if (this.source == 'daily') {
|
|
|
- this.clickShareFlag(-1);
|
|
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
|
+ this.clickShareFlag(-1);
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
@@ -978,4 +985,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+.notifyIndex {
|
|
|
|
|
+ z-index: 999999 !important;
|
|
|
|
|
+}
|
|
|
</style>
|
|
</style>
|