|
@@ -237,7 +237,8 @@ import {
|
|
deletePatternById,
|
|
deletePatternById,
|
|
getPatternInfo,
|
|
getPatternInfo,
|
|
getPatternList,
|
|
getPatternList,
|
|
- getTemplateTree
|
|
|
|
|
|
+ getTemplateTree,
|
|
|
|
+ sharePattern
|
|
} from '@/api/globalMap/onlinePlotting';
|
|
} from '@/api/globalMap/onlinePlotting';
|
|
import { Search } from '@element-plus/icons-vue';
|
|
import { Search } from '@element-plus/icons-vue';
|
|
import html2canvas from 'html2canvas';
|
|
import html2canvas from 'html2canvas';
|
|
@@ -966,6 +967,16 @@ const handleShareConfirm = (data) => {
|
|
showForm.value = true;
|
|
showForm.value = true;
|
|
} else {
|
|
} else {
|
|
// 分享
|
|
// 分享
|
|
|
|
+ const userIdList = [];
|
|
|
|
+ data.forEach((item) => {
|
|
|
|
+ userIdList.push(item.userId);
|
|
|
|
+ });
|
|
|
|
+ console.log('分享', userIdList);
|
|
|
|
+ sharePattern({
|
|
|
|
+ "userIdList": userIdList
|
|
|
|
+ }).then((res)=>{
|
|
|
|
+ showSuccessMsg(res.msg);
|
|
|
|
+ });
|
|
}
|
|
}
|
|
shareState.type = '';
|
|
shareState.type = '';
|
|
shareState.id = '';
|
|
shareState.id = '';
|