放开海外标准和未符合项

This commit is contained in:
宋伟佳
2021-06-04 15:26:18 +08:00
parent 821dec9f88
commit af2a58433d
5 changed files with 19 additions and 17 deletions
+4 -2
View File
@@ -9,7 +9,9 @@ import store from '@/store'
import {Message} from 'element-ui'
export const CancelToken = axios.CancelToken
// import 'element-ui/lib/theme-chalk/index.css'
const _axios = axios.create()
const _axios = axios.create({
baseURL: '/'
})
/**
* @description: FormData
@@ -63,7 +65,7 @@ _axios.interceptors.response.use(
}
})
function api () {
return store.getters.getTypeFlag === 'CloudRepository' ? '/busApi/' : ''
return store.getters.getTypeFlag === 'CloudRepository' ? '/busApi/' : '/api/'
}
export default {
_axios,
+10 -10
View File
@@ -93,11 +93,11 @@ export default {
path: '/standardForComments',
menuId: ''
},
// {
// title: '海外标准法规',
// path: '/foreignStandardsAndRegulations',
// menuId: '6K8A2RZYRE'
// },
{
title: '海外标准法规',
path: '/foreignStandardsAndRegulations',
menuId: '6K8A2RZYRE'
},
// {
// title: '国内外政策',
// path: '/foreignRegulationsDatabase',
@@ -143,11 +143,11 @@ export default {
path: '/localProductsOrProjectLibrary',
menuId: 'PCZKM8TQJAH5UP5EAXTJ'
},
// {
// title: '未符合项跟踪',
// path: '/nonConfomity',
// menuId: 'HQSK8WWPDJG7R5F53LTK'
// },
{
title: '未符合项跟踪',
path: '/nonConfomity',
menuId: 'HQSK8WWPDJG7R5F53LTK'
},
// {
// title: '标准法规工作组',
// path: '/workGroup',
@@ -2250,7 +2250,7 @@ export default {
type: 'warning',
roundButton: false
}).then(() => {
this.$http.post('lawss/sarStandardsInfo/deleteSarStandards', {ids: itemid}, {
this.$http.post('sarStandardsInfo/sar-standards-info/deleteSarStandards', {ids: itemid}, {
_this: this,
loading: 'delLoading'
}, res => {
@@ -2350,7 +2350,7 @@ export default {
validateStandNumber (standinfo) {
return new Promise((resolve, reject) => {
let obj = JSON.parse(JSON.stringify(standinfo))
this.$http.post('lawss/sarStandardsInfo/validateStandNumber', obj, {
this.$http.post('sarStandardsInfo/sar-standards-info/updateSarStandardsInfo', obj, {
_this: this
}, res => {
if (res.ok) {
@@ -3314,7 +3314,7 @@ export default {
*/
queryDisplayLocation () {
return new Promise((resolve, reject) => {
this.$http.get('lawssBase/utArea/getAreaList', {
this.$http.get('sarStandardsInfo/sar-standards-info/addarStandardsInfo', {
sarType: this.sarType
}, {
_this: this
+1 -1
View File
@@ -42,7 +42,7 @@ const CLOUD_RES_INTERFACE_PORT = process.env.NODE_ENV === 'production' ? DEV_CLO
module.exports = {
serverUrl: 'http://' + serverIP, // 服务器IP地址
interfaceUrl: 'http://' + serverIP + ':' + interfacePORT, // 服务器端接口访问地址,
interfaceUrl: 'http://' + serverIP + ':' + interfacePORT + '/api/', // 服务器端接口访问地址,
cloudResInterFaceUrl: 'http://' + serverIP + ':' + interfacePORT + '/busApi/', // 云端资源库服务器端接口访问地址,
simpleUploadPath: 'api/' + simpleFilePath, // 单文件上传地址
multipleUploadPath: 'api/' + multipleFilePath, // 多文件上传地址
+1 -1
View File
@@ -82,7 +82,7 @@ module.exports = {
target: interfaceUrl,
changeOrigin: true,
pathRewrite: {
'^/api': '/'
'^/api': ''
}
},
'/onlyOffice': {