[update 一般检索-查看文本] 查看企标文件去掉权限校验
This commit is contained in:
@@ -154,8 +154,7 @@ import {
|
|||||||
} from '../../../api/standardRegulationLibraryApi'
|
} from '../../../api/standardRegulationLibraryApi'
|
||||||
import {
|
import {
|
||||||
getEnterpriseStandardAddForm,
|
getEnterpriseStandardAddForm,
|
||||||
getEnterpriseStandardInfoById,
|
getEnterpriseStandardInfoById
|
||||||
isCanLookDetail
|
|
||||||
} from '../../../api/enterpriseStandardLibraryApi'
|
} from '../../../api/enterpriseStandardLibraryApi'
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import { previewPdf } from '../../../utils/previewPdf'
|
import { previewPdf } from '../../../utils/previewPdf'
|
||||||
@@ -588,23 +587,7 @@ export default {
|
|||||||
this.goDetail(record)
|
this.goDetail(record)
|
||||||
} else {
|
} else {
|
||||||
this.adjustFunc(record.resourceType)
|
this.adjustFunc(record.resourceType)
|
||||||
if (record.resourceType === '3') { // 企标打开需要权限验证
|
this.filePreview13(record)
|
||||||
console.log('record', record)
|
|
||||||
isCanLookDetail(record).then(res => {
|
|
||||||
console.log('res', res)
|
|
||||||
if (res.success) {
|
|
||||||
if (res.result) {
|
|
||||||
this.filePreview13(record)
|
|
||||||
} else {
|
|
||||||
this.$message.warn('您没有查看该文件的权限')
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this.$message.warn(res.message)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
this.filePreview13(record)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user