fix 78429(国标、海外)
This commit is contained in:
@@ -5,6 +5,7 @@ import { ACCESS_TOKEN } from '@/store/mutation-types'
|
||||
import { getFileInfo } from '@/api/api'
|
||||
import { dealUrl, kkFilePreview } from './kkFilePreview'
|
||||
import { previewPdf } from './previewPdf'
|
||||
import { getStandardInfoByStandardNumber } from '../api/standardRegulationLibraryApi'
|
||||
// import onlineCommons from '@/components/onlineForm/onlineForm'
|
||||
|
||||
//
|
||||
@@ -715,3 +716,24 @@ export function previewFileCurrentWindowByFileId (fileId) {
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过标准编号获取标准信息
|
||||
* @param standardNumber
|
||||
* @returns {Promise<unknown>}
|
||||
*/
|
||||
export function queryStandardInfoByStandardNumber (standardNumber) {
|
||||
return new Promise(resolve => {
|
||||
let result = false
|
||||
getStandardInfoByStandardNumber({ standardNumber }).then(res => {
|
||||
if (res.success && !!res.result) {
|
||||
result = res.result
|
||||
} else {
|
||||
// 提示未找到对应标准
|
||||
Vue.prototype.$message.warning('未找到对应标准信息')
|
||||
}
|
||||
}).finally(() => {
|
||||
resolve(result)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user