feat: 🚀 生产环境

This commit is contained in:
2025-10-21 11:48:44 +08:00
parent 0861dae12d
commit 8a958c987e
7 changed files with 33 additions and 22 deletions

View File

@@ -1,10 +1,10 @@
ENV = 'production' ENV = 'production'
VITE_APP_API_VERSION = "" #版本号 VITE_APP_API_VERSION = "" #版本号
VITE_APP_API_BASEURL = https://newwms.api.f2b211.com/ #请求地址 VITE_APP_API_BASEURL = https://newwms.api.f2b211.com/v1/admapi/ #请求地址
VITE_APP_SSO_LOGINURL = https://uc.v3.f2b211.com/uc/login VITE_APP_SSO_LOGINURL = https://uc.v3.f2b211.com/uc/login
VITE_APP_SSO_APPID = 100664627590856707 VITE_APP_SSO_APPID = 100664627590856709
VITE_REDIRECT_URL = https://wms.v2.f2b211.com/login #单点从定向地址 VITE_REDIRECT_URL = https://newwms.f2b211.com/login #单点从定向地址
VITE_SINGLE_URL = https://uc.v3.f2b211.com/ #单点登录通知 VITE_SINGLE_URL = https://uc.v3.f2b211.com/ #单点登录通知
# 线上环境 # 线上环境
VITE_USER_NODE_ENV = production VITE_USER_NODE_ENV = production

View File

@@ -12,5 +12,8 @@ export const getSubscribeResetListApi = (params: any) => {
return http.get<any>(`subscribe/wrr/reload`, params); return http.get<any>(`subscribe/wrr/reload`, params);
}; };
export const getSubscribeResetListExportApi = (params: any) => { export const getSubscribeResetListExportApi = (params: any) => {
if (params?.notif_ret_status === "空") {
params.notif_ret_status = 0;
}
return http.get<any>(`subscribe/wrr/export`, params); return http.get<any>(`subscribe/wrr/export`, params);
}; };

View File

@@ -147,7 +147,7 @@ const newValInitParams = toRef(props, "initParam");
const { selectionChange, selectedList, selectedListIds, isSelected } = useSelection(props.rowKey); const { selectionChange, selectedList, selectedListIds, isSelected } = useSelection(props.rowKey);
// 清空选中数据列表 // 清空选中数据列表
const clearSelection = () => tableRef.value!.clearSelection(); const clearSelection = () => tableRef?.value!.clearSelection();
// 表格操作 Hooks // 表格操作 Hooks
const { tableData, pageable, getTableList, handleSizeChange, handleCurrentChange } = useTable( const { tableData, pageable, getTableList, handleSizeChange, handleCurrentChange } = useTable(
routeName.value, routeName.value,

View File

@@ -65,23 +65,26 @@ export const useAuthStore = defineStore({
// 获取权限菜单列表并处理按钮权限 // 获取权限菜单列表并处理按钮权限
async getAuthMenuList() { async getAuthMenuList() {
const { data } = await getAuthMenuListApi(); const { data } = await getAuthMenuListApi();
let dataClone = data; let dataClone =
Array.isArray(data) && data.length
? data
: [
{
path: "/index",
name: "home",
component: "/home/index",
hidden: true,
children: [],
meta: {
icon: "",
title: "首页",
isKeepAlive: true
}
}
];
// 如果没有路由数据,设置默认首页 // 如果没有路由数据,设置默认首页
this.authMenuList = dataClone || [ this.authMenuList = dataClone;
{
path: "/index",
name: "home",
component: "/home/index",
hidden: true,
children: [],
meta: {
icon: "",
title: "首页",
isKeepAlive: true
}
}
];
// 提取按钮权限 // 提取按钮权限
this.buttonPermissions = extractButtonPermissions(this.authMenuList); this.buttonPermissions = extractButtonPermissions(this.authMenuList);

View File

@@ -6,7 +6,7 @@ export const handleExport = async (params: any) => {
const { initParam } = params; const { initParam } = params;
const result = await getMaterialListExportApi(initParam); const result = await getMaterialListExportApi(initParam);
if (result?.code === 0) { if (result?.code === 0) {
useMsg("success", "导出成功 "); useMsg("success", "导出成功请前往导出列表中进行下载");
} }
}; };
//刷新 //刷新

View File

@@ -81,7 +81,12 @@ export const FORM_DATA: FormItem[] = [
type: "input", type: "input",
label: "子仓库: " label: "子仓库: "
}, },
{
prop: "customer_name",
placeholder: "请输入客户名称",
type: "input",
label: "客户名称: "
},
{ {
prop: "Time", prop: "Time",
type: "daterange", type: "daterange",

View File

@@ -9,7 +9,7 @@ export const handleExport = async (data: any) => {
Array.isArray(params?.org_number) && params?.org_number?.length ? params.org_number.join(",") : params.org_number; Array.isArray(params?.org_number) && params?.org_number?.length ? params.org_number.join(",") : params.org_number;
const result = await getSubscribeResetListExportApi(params); const result = await getSubscribeResetListExportApi(params);
if (result?.code === 0) { if (result?.code === 0) {
useMsg("success", "导出成功 "); useMsg("success", "导出成功请前往导出列表中进行下载 ");
} }
}; };
// proTable: any // proTable: any