放开海外标准和未符合项

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