|
|
@@ -697,6 +697,7 @@ export default {
|
|
|
}
|
|
|
// 文件名表格每一行点击事件
|
|
|
function handleRowClick(row) {
|
|
|
+ console.log(row, '888');
|
|
|
clickRowId.value = row.docId
|
|
|
copyDirId.value = row.dirId
|
|
|
copySpaceId.value = row.spaceId
|
|
|
@@ -709,6 +710,11 @@ export default {
|
|
|
} else {
|
|
|
cliCC.value = true
|
|
|
}
|
|
|
+ fileShare.getSharePeople(row.docId).then(res => {
|
|
|
+ console.log(res, 'res');
|
|
|
+ }).catch(err => {
|
|
|
+ console.log(err, 'err');
|
|
|
+ })
|
|
|
}
|
|
|
// 申请扩容
|
|
|
function askApply() {
|
|
|
@@ -1022,16 +1028,21 @@ export default {
|
|
|
console.log(`数据已存在: ${existingData.userName}`);
|
|
|
} else {
|
|
|
// 选择操作,将数据添加到 needTagData 中
|
|
|
- needTagData.value.push({ userId: id, userName: label, docId: copyDocId.value });
|
|
|
+ needTagData.value.push({ userId: id, userName: label });
|
|
|
}
|
|
|
chooseTagData.value = needTagData.value
|
|
|
}
|
|
|
|
|
|
// 确认分享
|
|
|
function sureShare() {
|
|
|
-
|
|
|
- fileShare.addSharePeople({ docId: needTagData.value }).then(res => {
|
|
|
- console.log(res, 'sss');
|
|
|
+ fileShare.addSharePeople(clickRowId.value, needTagData.value).then(res => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ ElMessage({
|
|
|
+ message:"分享成功",
|
|
|
+ type:"success"
|
|
|
+ })
|
|
|
+ transferModal.value = false
|
|
|
+ }
|
|
|
})
|
|
|
|
|
|
}
|
|
|
@@ -1056,7 +1067,6 @@ export default {
|
|
|
fileCollect.value = false
|
|
|
}
|
|
|
function collectChange(e) {
|
|
|
- console.log(e, 'eee');
|
|
|
collectForm.value.folders = e
|
|
|
}
|
|
|
// 新建收藏标签
|