Browse Source

BUG修改

master
yejiaxing 10 months ago
parent
commit
053670c0b0
  1. 2
      .env.development
  2. 2
      src/utils/dict.ts
  3. 23
      src/views/eam/item/itemApplyMain/itemApplyMain.data.ts

2
.env.development

@ -5,7 +5,7 @@ VITE_DEV=false
# 请求路径
# VITE_BASE_URL='http://localhost:12080'
VITE_BASE_URL='http://192.168.0.165:12080'
VITE_BASE_URL='http://localhost:12080'
# 上传路径
VITE_UPLOAD_URL='http://localhost:12080/admin-api/infra/file/upload'

2
src/utils/dict.ts

@ -289,6 +289,8 @@ export enum DICT_TYPE {
MOLD_EXECUTION_CYCLE = 'mold_execution_cycle', //模具保养周期
GET_ORDER_STATUS = 'get_order_status', //模具保养周期
IS_OPEN = 'is_open', //是否打开
ITEM_APPLY_STATUS = 'item_apply_status',//备件申领状态
}

23
src/views/eam/item/itemApplyMain/itemApplyMain.data.ts

@ -6,7 +6,7 @@ import { validateHanset, validateEmail } from '@/utils/validator'
const { t } = useI18n() // 国际化
/**
* @returns {Array}
* @returns {Array}
*/
export const ItemApplyMain = useCrudSchemas(reactive<CrudSchema[]>([
{
@ -47,31 +47,22 @@ export const ItemApplyMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
},
{
label: '是否可用',
field: 'available',
dictType: DICT_TYPE.TRUE_FALSE,
label: '状态',
field: 'status',
sort: 'custom',
dictType: DICT_TYPE.ITEM_APPLY_STATUS,
dictClass: 'string',
isSearch: false,
isSearch: true,
isTable: true,
sort: 'custom',
table: {
width: 150
},
tableForm: {
type: 'Select',
inactiveValue: 'FALSE',
disabled: true
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
},
{
{
label: '操作',
field: 'action',
isDetail: false,

Loading…
Cancel
Save