|
@@ -68,8 +68,8 @@ export default {
|
|
let show = ref(true);
|
|
let show = ref(true);
|
|
let newObj = ref({});
|
|
let newObj = ref({});
|
|
function oo(docId, isEdit,isCopy,history,fileId) {
|
|
function oo(docId, isEdit,isCopy,history,fileId) {
|
|
- console.log('uid',uid);
|
|
|
|
- if (docId && !history) {
|
|
|
|
|
|
+ // console.log('isEdit',isEdit);
|
|
|
|
+ if (docId && history == '0') {
|
|
getInfo(docId).then((response) => {
|
|
getInfo(docId).then((response) => {
|
|
const obj = response.data;
|
|
const obj = response.data;
|
|
obj.isEdit = isEdit == 1?true:false;
|
|
obj.isEdit = isEdit == 1?true:false;
|
|
@@ -94,7 +94,8 @@ export default {
|
|
name: useUserStore().uname, //用户姓名
|
|
name: useUserStore().uname, //用户姓名
|
|
};
|
|
};
|
|
});
|
|
});
|
|
- } else if (fileId && history) {
|
|
|
|
|
|
+ } else if (fileId && history == '1') {
|
|
|
|
+ // console.log('history',history);
|
|
getInfo(docId).then((response) => {
|
|
getInfo(docId).then((response) => {
|
|
const obj = response.data;
|
|
const obj = response.data;
|
|
obj.isEdit = false;
|
|
obj.isEdit = false;
|