更新swag
This commit is contained in:
@@ -51,6 +51,7 @@ import { PaginationDTO, Response, StockLogSourceType } from '../enums';
|
||||
|
||||
/**
|
||||
* @typedef {object} GetCurrentStockListParams
|
||||
* @property {boolean} [has_stock] - 只查询有库存的原料
|
||||
* @property {string} [order_by] - 排序字段, 例如 "stock DESC"
|
||||
* @property {number} [page] - 页码
|
||||
* @property {number} [page_size] - 每页数量
|
||||
|
||||
@@ -28,6 +28,7 @@ import NutrientList from '../views/feed/NutrientList.vue'; // 修正拼写错误
|
||||
import PigAgeStageList from '../views/feed/PigAgeStageList.vue'; // 导入 PigAgeStageList 组件
|
||||
import PigBreedList from '../views/feed/PigBreedList.vue'; // 导入 PigBreedList 组件
|
||||
import RecipeList from '../views/feed/RecipeList.vue';
|
||||
import StockManagement from '../views/inventory/StockManagement.vue';
|
||||
|
||||
|
||||
const routes = [
|
||||
@@ -45,6 +46,7 @@ const routes = [
|
||||
{path: '/feed/pig-age-stages', component: PigAgeStageList, meta: {requiresAuth: true, title: '年龄阶段管理'}}, // 添加年龄阶段管理路由
|
||||
{path: '/feed/pig-breeds', component: PigBreedList, meta: {requiresAuth: true, title: '品种管理'}}, // 添加品种管理路由
|
||||
{path: '/feed/recipes', component: RecipeList, meta: {requiresAuth: true, title: '配方管理'}},
|
||||
{path: '/inventory/stock', component: StockManagement, meta: {requiresAuth: true, title: '库存管理'}},
|
||||
|
||||
{path: '/monitor/device-command-logs', component: DeviceCommandLogView, meta: {requiresAuth: true, title: '设备命令日志'}},
|
||||
{path: '/monitor/medication-logs', component: MedicationLogsView, meta: {requiresAuth: true, title: '用药记录'}},
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
* @returns {string} - 格式化后的字符串,如果输入无效则返回空字符串或提示
|
||||
*/
|
||||
export function formatRFC3339(rfc3339String) {
|
||||
if (!rfc3339String) {
|
||||
return '--'; // 或者返回空字符串 ''
|
||||
if (!rfc3339String || rfc3339String.startsWith('0001-01-01')) {
|
||||
return '--';
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user