2024-09-09 修改了大部分下拉组件为模糊筛选,减轻前端渲染压力

This commit is contained in:
2024-09-09 15:26:17 +08:00
parent fe5d3b70df
commit 563132273c
717 changed files with 107188 additions and 138520 deletions

View File

@@ -1,7 +1,33 @@
import axios from 'axios'
import { wsuri_config, name_config, name1_config, name3_config, name4_config, readFile_config, readImg_config, upload_config, upload2_config, upload3_config, uploadInvoiceScan_config, uploadInvoiceScan1_config,
download_config, uploadPerson_config, uploadOP_config, url_config, ExcelDownLoad_config, ServerIP_config, uploadFileMachine_config,
downloadFileMachine_config, MESUploadFile_config, MESDownloadFile_config, request_config } from '../../static/config'
import {
download_config,
downloadFileMachine_config,
ExcelDownLoad_config,
MESDownloadFile_config,
MESUploadFile_config,
MESUploadFileProcess_config,
MESUploadFileProduct_config,
MESUploadFileProject_config,
name1_config,
name3_config,
name4_config,
name_config,
readFile_config,
readImg_config,
request_config,
ServerIP_config,
upload2_config,
upload3_config,
upload_config,
uploadFileMachine_config,
uploadInvoiceScan1_config,
uploadInvoiceScan_config,
uploadOP_config,
uploadPerson_config,
uploadPersonWord_config,
url_config,
wsuri_config
} from '../../static/config'
import Cookies from 'js-cookie'
import store from '@/store'
@@ -20,6 +46,7 @@ export const uploadInvoiceScan = uploadInvoiceScan_config // invoice
export const uploadInvoiceScan1 = uploadInvoiceScan1_config // invoice(workshop)
export const download = download_config // ContractInformationManagement
export const uploadPerson = uploadPerson_config
export const uploadPersonWord = uploadPersonWord_config
export const uploadOP = uploadOP_config
export const url = url_config // 采购件入库、离线件入库
export const ExcelDownLoad = ExcelDownLoad_config // 导出excel
@@ -28,7 +55,10 @@ export const ServerIP = ServerIP_config
export const uploadFileMachine = uploadFileMachine_config // 机床总图 发布时改成0.231
export const downloadFileMachine = downloadFileMachine_config // 机床总图 发布时改成0.231
export const MESUploadFile = MESUploadFile_config
export const MESUploadFileProduct = MESUploadFileProduct_config
export const MESDownloadFile = MESDownloadFile_config
export const MESUploadFileProject = MESUploadFileProject_config
export const MESUploadFileProcess = MESUploadFileProcess_config
const service = axios.create({
baseURL: request_config,
timeout: 1500000 // 请求超时时间
@@ -39,10 +69,8 @@ service.interceptors.request.use(config => {
if (config.data.name !== '菜单系统模块_用户名密码_查询数据_new2' && config.data.name !== '菜单系统模块_获取角色模块_查询数据') {
const id = Cookies.get('id')
if (typeof (id) !== 'undefined') {
console.log(id, 123)
console.log(typeof (id))
} else {
console.log(456)
store.dispatch('FedLogOut').then(() => {
location.reload() // 为了重新实例化vue-router对象 避免bug
alert('此账号登录失效,请重新登录')