|
|
@@ -25,7 +25,7 @@
|
|
|
</p>
|
|
|
</template>
|
|
|
</div>
|
|
|
- <div class="setCli1" v-if="anyP" :style="{ left: xz + 155 + 'px', top: yz-50 + 'px' }">
|
|
|
+ <div class="setCli1" v-if="anyP" :style="{ left: xz + 155 + 'px', top: yz - 50 + 'px' }">
|
|
|
<p @click="chooseSet1(0)" class="chooseSet">
|
|
|
<img src="../../../assets/images/user.png" alt="">
|
|
|
选择人员
|
|
|
@@ -57,7 +57,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { ref, onMounted } from "vue"
|
|
|
+import { ref, onMounted, watch } from "vue"
|
|
|
import { ElMessage } from "element-plus";
|
|
|
import myfile from "../../../api/myfile/myfile";
|
|
|
import documents from "../../../api/document/document";
|
|
|
@@ -72,11 +72,11 @@ import { canPreviewFile } from "@/utils/index.js"
|
|
|
import { preview } from "@/api/common/common.js";
|
|
|
import { listVersion } from "@/api/biz/version";
|
|
|
export default {
|
|
|
- props:{
|
|
|
- getAllTop:{
|
|
|
- type:Function,
|
|
|
- required:true
|
|
|
- }
|
|
|
+ props: {
|
|
|
+ getAllTop: {
|
|
|
+ type: Function,
|
|
|
+ required: true
|
|
|
+ },
|
|
|
},
|
|
|
setup(props, { emit }) {
|
|
|
let impDirId = ref(0)
|
|
|
@@ -282,6 +282,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
async function chooseSet(row, index, num) {
|
|
|
+
|
|
|
if (row.name == '协作') {
|
|
|
cliCC.value = true
|
|
|
} else {
|
|
|
@@ -290,7 +291,7 @@ export default {
|
|
|
if (row.name == '分享') {
|
|
|
workOrEdit.value = num
|
|
|
thanks.value = true
|
|
|
- emit("shareBack",thanks.value,workOrEdit.value)
|
|
|
+ emit("shareBack", thanks.value, workOrEdit.value)
|
|
|
} else {
|
|
|
thanks.value = false
|
|
|
}
|
|
|
@@ -303,7 +304,7 @@ export default {
|
|
|
} else {
|
|
|
anyP.value = false
|
|
|
}
|
|
|
- console.log(anyP.value,'anyp');
|
|
|
+ console.log(anyP.value, 'anyp');
|
|
|
if (row.name == '删除') {
|
|
|
myfile.delMenu(clickRowId.value).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
@@ -325,7 +326,7 @@ export default {
|
|
|
}
|
|
|
if (row.name === '重命名') {
|
|
|
fileNameChange.value = true
|
|
|
- emit("navBack", fileNameChange.value,nameForm.value.name)
|
|
|
+ emit("navBack", fileNameChange.value, nameForm.value.name)
|
|
|
}
|
|
|
if (row.name === "下载") {
|
|
|
location.href = `${import.meta.env.VITE_APP_BASE_API}/api/download/${copyFileId.value}`;
|
|
|
@@ -335,7 +336,7 @@ export default {
|
|
|
}
|
|
|
if (row.name === '在线编辑') {
|
|
|
editOnline.value = false
|
|
|
- emit("onlineCase",editOnline.value,clickRowId.value, copyRow.value)
|
|
|
+ emit("onlineCase", editOnline.value, clickRowId.value, copyRow.value)
|
|
|
}
|
|
|
if (row.name === '文字识别') {
|
|
|
router.push({
|
|
|
@@ -367,7 +368,7 @@ export default {
|
|
|
historyTotal.value = resHistory.total
|
|
|
fileUserTreeData.data = resHistory.rows;
|
|
|
openForwardFile.value = true
|
|
|
- emit("lastBB",openForwardFile.value,historyTotal.value,fileUserTreeData.data)
|
|
|
+ emit("lastBB", openForwardFile.value, historyTotal.value, fileUserTreeData.data)
|
|
|
}
|
|
|
}
|
|
|
function changeMsgClose(val, item) {
|
|
|
@@ -384,7 +385,7 @@ export default {
|
|
|
workOrEdit.value = num
|
|
|
thanks.value = true
|
|
|
anyP.value = false
|
|
|
- emit("shareBack",thanks.value,workOrEdit.value)
|
|
|
+ emit("shareBack", thanks.value, workOrEdit.value)
|
|
|
}
|
|
|
function getChildren(data) {
|
|
|
fileTrees.value = data
|
|
|
@@ -401,8 +402,8 @@ export default {
|
|
|
function getCollects(data) {
|
|
|
collects.value = false
|
|
|
}
|
|
|
- // 归档
|
|
|
- function goLock() {
|
|
|
+ // 归档
|
|
|
+ function goLock() {
|
|
|
fileCount.lockActor(clickRowId.value).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
ElMessage({
|
|
|
@@ -416,7 +417,7 @@ export default {
|
|
|
}
|
|
|
onMounted(() => {
|
|
|
getAllTop()
|
|
|
- window.addEventListener("click", mouseClick,true);
|
|
|
+ window.addEventListener("click", mouseClick, true);
|
|
|
})
|
|
|
return {
|
|
|
getAllTop,
|
|
|
@@ -469,7 +470,7 @@ export default {
|
|
|
collects,
|
|
|
fileNameChange,
|
|
|
editOnline,
|
|
|
- goLock
|
|
|
+ goLock,
|
|
|
}
|
|
|
},
|
|
|
components: {
|