Browse Source

1128

master
xuhuajiao 2 weeks ago
parent
commit
27b7bf9650
  1. 2
      .env.production
  2. 2
      public/static/config.js
  3. 10
      src/views/components/category/preUpload4.vue
  4. 34
      src/views/system/groupManage/index.vue

2
.env.production

@ -9,7 +9,7 @@ VUE_APP_PROCESSMODEL_API = 'http://192.168.99.72:11200'
# VUE_APP_BASE_API = 'http://27.19.215.77:11100' # VUE_APP_BASE_API = 'http://27.19.215.77:11100'
# VUE_APP_BASE_API = 'http://27.16.212.58:11100' # VUE_APP_BASE_API = 'http://27.16.212.58:11100'
# VUE_APP_BASE_API = 'http://192.168.99.107:11100' # VUE_APP_BASE_API = 'http://192.168.99.107:11100'
VUE_APP_BASE_API = 'http://192.168.99.107:11200'
VUE_APP_BASE_API = 'http://192.168.99.118:11200'
# 如果接口是 http 形式, wss 需要改为 ws # 如果接口是 http 形式, wss 需要改为 ws
# VUE_APP_WS_API = 'ws://27.16.212.58:11110' # VUE_APP_WS_API = 'ws://27.16.212.58:11110'

2
public/static/config.js

@ -4,7 +4,7 @@ window.g = {
// ApiUrl: 'http://27.16.212.58:11100', // ApiUrl: 'http://27.16.212.58:11100',
// ApiUrl: 'http://192.168.99.71:11110', // ApiUrl: 'http://192.168.99.71:11110',
// ApiUrl: 'http://192.168.99.107:11100', // ApiUrl: 'http://192.168.99.107:11100',
ApiUrl: 'http://192.168.99.107:11200',
ApiUrl: 'http://192.168.99.118:11200',
AIDeepSeekUrl:'http://192.168.99.86:12123', AIDeepSeekUrl:'http://192.168.99.86:12123',
ProcessModelUrl:'http://192.168.99.72:11200', ProcessModelUrl:'http://192.168.99.72:11200',
} }

10
src/views/components/category/preUpload4.vue

@ -382,7 +382,8 @@ export default {
* @returns {Promise<Object>} 分片存在状态 * @returns {Promise<Object>} 分片存在状态
*/ */
async checkChunkExists(fileMd5, chunkIndex) { async checkChunkExists(fileMd5, chunkIndex) {
const response = await axios.get('/api/minioUpload/chunk', {
const linkSrc = process.env.NODE_ENV === 'production' ? window.g.ApiUrl : process.env.VUE_APP_BASE_API
const response = await axios.get(linkSrc + '/api/minioUpload/chunk', {
params: { fileMd5, chunkIndex }, params: { fileMd5, chunkIndex },
headers: { 'Authorization': getToken() } headers: { 'Authorization': getToken() }
}) })
@ -409,8 +410,8 @@ export default {
formData.append('file', chunkBlob, `${fileMd5}_${chunkIndex}`) formData.append('file', chunkBlob, `${fileMd5}_${chunkIndex}`)
formData.append('fileMd5', fileMd5) formData.append('fileMd5', fileMd5)
formData.append('chunkIndex', chunkIndex) formData.append('chunkIndex', chunkIndex)
const response = await axios.post('/api/minioUpload/chunk', formData, {
const linkSrc = process.env.NODE_ENV === 'production' ? window.g.ApiUrl : process.env.VUE_APP_BASE_API
const response = await axios.post(linkSrc + '/api/minioUpload/chunk', formData, {
headers: { headers: {
'Content-Type': 'multipart/form-data', 'Content-Type': 'multipart/form-data',
'Authorization': getToken() 'Authorization': getToken()
@ -523,7 +524,8 @@ export default {
const jsonArray = await Promise.all(processFiles) const jsonArray = await Promise.all(processFiles)
// //
const response = await axios.post('/api/minioUpload/merge', jsonArray, {
const linkSrc = process.env.NODE_ENV === 'production' ? window.g.ApiUrl : process.env.VUE_APP_BASE_API
const response = await axios.post(linkSrc + '/api/minioUpload/merge', jsonArray, {
headers: { headers: {
'Authorization': getToken(), 'Authorization': getToken(),
'Content-Type': 'application/json' 'Content-Type': 'application/json'

34
src/views/system/groupManage/index.vue

@ -209,13 +209,41 @@ export default {
'baseApi' 'baseApi'
]) ])
}, },
created() {
},
mounted() {
activated() {
this.categoryDatas = []
this.categoryIds = []
this.$refs.category && this.$refs.category.setCheckedKeys([])
this.$refs.category && this.$refs.category.clearChecked()
this.$refs.category && this.$refs.category.doLayout()
FetchCategoryMenu().then(res => { FetchCategoryMenu().then(res => {
this.categoryDatas = this.filterData(res) this.categoryDatas = this.filterData(res)
}).catch(err => {
console.error('请求根节点数据失败:', err)
this.categoryDatas = []
}) })
}, },
deactivated() {
this.categoryDatas = []
this.categoryIds = []
this.currentId = 0
this.showButton = false
this.$refs.category && this.$refs.category.setCheckedKeys([])
this.$refs.category && this.$refs.category.clearChecked()
},
beforeDestroy() {
this.categoryDatas = []
this.categoryIds = []
this.$refs.category = null
},
created() {
},
mounted() {
// FetchCategoryMenu().then(res => {
// this.categoryDatas = this.filterData(res)
// })
},
methods: { methods: {
getCategoryDataList(node, resolve) { getCategoryDataList(node, resolve) {
console.log('node', node) console.log('node', node)

Loading…
Cancel
Save