Browse Source

制造商供应商代码

master_hella_20240701
ljlong_2630 6 months ago
parent
commit
01234763ea
  1. 63
      src/api/eam/equipmentManufacturer/index.ts
  2. 63
      src/api/eam/equipmentSupplier/index.ts
  3. 139
      src/views/eam/equipmentManufacturer/equipmentManufacturer.data.ts
  4. 244
      src/views/eam/equipmentManufacturer/index.vue
  5. 145
      src/views/eam/equipmentSupplier/equipmentSupplier.data.ts
  6. 244
      src/views/eam/equipmentSupplier/index.vue
  7. 7
      src/views/system/messageSet/messageSet.data.ts
  8. 12
      src/views/system/tableActionRel/tableActionRel.data.ts

63
src/api/eam/equipmentManufacturer/index.ts

@ -0,0 +1,63 @@
import request from '@/config/axios'
export interface EquipmentManufacturerVO {
id: number
number: string
name: string
shortName: string
address: string
country: string
city: string
phone: string
fax: string
postId: string
contacts: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询设备制造商列表
export const getEquipmentManufacturerPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/basic/equipment-manufacturer/senior', data })
} else {
return await request.get({ url: `/eam/basic/equipment-manufacturer/page`, params })
}
}
// 查询设备制造商详情
export const getEquipmentManufacturer = async (id: number) => {
return await request.get({ url: `/eam/basic/equipment-manufacturer/get?id=` + id })
}
// 新增设备制造商
export const createEquipmentManufacturer = async (data: EquipmentManufacturerVO) => {
return await request.post({ url: `/eam/basic/equipment-manufacturer/create`, data })
}
// 修改设备制造商
export const updateEquipmentManufacturer = async (data: EquipmentManufacturerVO) => {
return await request.put({ url: `/eam/basic/equipment-manufacturer/update`, data })
}
// 删除设备制造商
export const deleteEquipmentManufacturer = async (id: number) => {
return await request.delete({ url: `/eam/basic/equipment-manufacturer/delete?id=` + id })
}
// 导出设备制造商 Excel
export const exportEquipmentManufacturer = async (params) => {
return await request.download({ url: `/eam/basic/equipment-manufacturer/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/basic/equipment-manufacturer/get-import-template' })
}

63
src/api/eam/equipmentSupplier/index.ts

@ -0,0 +1,63 @@
import request from '@/config/axios'
export interface EquipmentSupplierVO {
id: number
number: string
name: string
shortName: string
address: string
country: string
city: string
phone: string
fax: string
postId: string
contacts: string
departmentCode: string
remark: string
siteId: string
available: string
deletionTime: Date
deleterId: byte[]
concurrencyStamp: number
}
// 查询供应商列表
export const getEquipmentSupplierPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/basic/equipment-supplier/senior', data })
} else {
return await request.get({ url: `/eam/basic/equipment-supplier/page`, params })
}
}
// 查询供应商详情
export const getEquipmentSupplier = async (id: number) => {
return await request.get({ url: `/eam/basic/equipment-supplier/get?id=` + id })
}
// 新增供应商
export const createEquipmentSupplier = async (data: EquipmentSupplierVO) => {
return await request.post({ url: `/eam/basic/equipment-supplier/create`, data })
}
// 修改供应商
export const updateEquipmentSupplier = async (data: EquipmentSupplierVO) => {
return await request.put({ url: `/eam/basic/equipment-supplier/update`, data })
}
// 删除供应商
export const deleteEquipmentSupplier = async (id: number) => {
return await request.delete({ url: `/eam/basic/equipment-supplier/delete?id=` + id })
}
// 导出供应商 Excel
export const exportEquipmentSupplier = async (params) => {
return await request.download({ url: `/eam/basic/equipment-supplier/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/basic/equipment-supplier/get-import-template' })
}

139
src/views/eam/equipmentManufacturer/equipmentManufacturer.data.ts

@ -0,0 +1,139 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
import { handleTreeToComponentOptions } from '@/utils/tree'
import * as DeptApi from '@/api/system/dept'
const deptList = ref<Tree[]>([]) // 树形结构
// 加载部门树(默认格式)
deptList.value = handleTreeToComponentOptions(await DeptApi.getSimpleDeptList())
// 表单校验
export const EquipmentManufacturerRules = reactive({
number: [required],
name: [required],
concurrencyStamp: [required]
})
export const EquipmentManufacturer = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '设备厂商编号',
field: 'number',
sort: 'custom',
isSearch: true,
fixed: 'left',
isForm: false,
},
{
label: '名称',
field: 'name',
sort: 'custom',
isSearch: true
},
{
label: '简称',
field: 'shortName',
sort: 'custom',
isSearch: true
},
{
label: '地址',
field: 'address',
sort: 'custom',
isSearch: true
},
{
label: '国家',
field: 'country',
sort: 'custom',
isSearch: true
},
{
label: '城市',
field: 'city',
sort: 'custom',
isSearch: true
},
{
label: '电话',
field: 'phone',
sort: 'custom',
isSearch: true
},
{
label: '传真',
field: 'fax',
sort: 'custom',
isSearch: true
},
{
label: '邮编',
field: 'postId',
sort: 'custom',
isSearch: true
},
{
label: '联系人',
field: 'contacts',
sort: 'custom',
isSearch: true
},
{
label: '部门',
field: 'departmentCode',
sort: 'custom',
isSearch: true,
form: {
component: 'TreeSelect',
componentProps: { // 假设deptList是部门数据列表
data: deptList,
placeholder: "请选择部门",
filterable: true,
// multiple: true,
}
}
},
{
label: '备注',
field: 'remark',
sort: 'custom',
isSearch: true,
form: {
component: 'Input',
componentProps: {
type: 'textarea'
}
}
},
{
label: '是否可用',
field: 'available',
sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', // 默认都是字符串类型其他暂不考虑
isSearch: true,
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
},
search: {
component: 'Select',
},
table: {
width: 110
}
},
{
label: '操作',
field: 'action',
isForm: false,
table: {
width: 150,
fixed: 'right'
}
}
]))

244
src/views/eam/equipmentManufacturer/index.vue

@ -0,0 +1,244 @@
<template>
<ContentWrap>
<!-- 搜索工作栏 -->
<Search :schema="EquipmentManufacturer.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" />
</ContentWrap>
<!-- 列表头部 -->
<TableHead
:HeadButttondata="HeadButttondata"
@button-base-click="buttonBaseClick"
:routeName="routeName"
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="EquipmentManufacturer.allSchemas"
/>
<!-- 列表 -->
<ContentWrap>
<Table
:columns="tableColumns"
:data="tableObject.tableList"
:loading="tableObject.loading"
:pagination="{
total: tableObject.total
}"
v-model:pageSize="tableObject.pageSize"
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
<template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<span>{{ row.code }}</span>
</el-button>
</template>
<template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" />
</template>
</Table>
</ContentWrap>
<!-- 表单弹窗添加/修改 -->
<BasicForm
ref="basicFormRef"
@success="formsSuccess"
:rules="EquipmentManufacturerRules"
:formAllSchemas="EquipmentManufacturer.allSchemas"
:apiUpdate="EquipmentManufacturerApi.updateEquipmentManufacturer"
:apiCreate="EquipmentManufacturerApi.createEquipmentManufacturer"
@searchTableSuccess="searchTableSuccess"
:isBusiness="false"
/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="EquipmentManufacturer.allSchemas" />
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/eam/basic/equipment-manufacturer/import" :importTemplateData="importTemplateData" @success="importSuccess" />
</template>
<script setup lang="ts">
import download from '@/utils/download'
import { EquipmentManufacturer,EquipmentManufacturerRules } from './equipmentManufacturer.data'
import * as EquipmentManufacturerApi from '@/api/eam/equipmentManufacturer'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
defineOptions({ name: 'EquipmentManufacturer' })
const message = useMessage() //
const { t } = useI18n() //
const route = useRoute() //
const routeName = ref()
routeName.value = route.name
const tableColumns = ref(EquipmentManufacturer.allSchemas.tableColumns)
//
const searchTableSuccess = (formField, searchField, val, formRef) => {
nextTick(() => {
const setV = {}
setV[formField] = val[0][searchField]
formRef.setValues(setV)
})
}
//
const updataTableColumns = (val) => {
tableColumns.value = val
}
const { tableObject, tableMethods } = useTable({
getListApi: EquipmentManufacturerApi.getEquipmentManufacturerPage //
})
//
const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'eam:equipment-manufacturer:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'eam:equipment-manufacturer:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'eam:equipment-manufacturer:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
// {
// label: '',
// name: 'zdy',
// hide: false,
// type: 'primary',
// icon: 'Select',
// color: ''
// },
]
//
const buttonBaseClick = (val, item) => {
if (val == 'add') { //
openForm('create')
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
}
}
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'eam:equipment-manufacturer:update'}), //
// defaultButtons.mainListDeleteBtn({hasPermi:'eam:equipment-manufacturer:delete'}), //
]
// -
const buttonTableClick = async (val, row) => {
if (val == 'edit') { //
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
}
}
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row)
}
// form
const formsSuccess = async (formType,data) => {
var isHave =EquipmentManufacturer.allSchemas.formSchema.some(function (item) {
return item.field === 'activeTime' || item.field === 'expireTime';
});
if(isHave){
if(data.activeTime && data.expireTime && data.activeTime >=data.expireTime){
message.error('失效时间要大于生效时间')
return;
}
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
if (formType === 'create') {
await EquipmentManufacturerApi.createEquipmentManufacturer(data)
message.success(t('common.createSuccess'))
} else {
await EquipmentManufacturerApi.updateEquipmentManufacturer(data)
message.success(t('common.updateSuccess'))
}
basicFormRef.value.dialogVisible = false
getList()
}
/** 详情操作 */
const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue, 'basicEquipmentManufacturer')
}
/** 删除按钮操作 */
const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
//
await EquipmentManufacturerApi.deleteEquipmentManufacturer(id)
message.success(t('common.delSuccess'))
//
await getList()
} catch {}
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await EquipmentManufacturerApi.exportEquipmentManufacturer(tableObject.params)
download.excel(data, '设备制造商.xlsx')
} catch {
} finally {
exportLoading.value = false
}
}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '设备制造商导入模版.xlsx'
})
//
const importSuccess = () => {
getList()
}
//
const searchFormClick = (searchData) => {
tableObject.params = {
isSearch: true,
filters: searchData.filters
}
getList() //
}
/** 初始化 **/
onMounted(async () => {
getList()
importTemplateData.templateUrl = await EquipmentManufacturerApi.importTemplate()
})
</script>

145
src/views/eam/equipmentSupplier/equipmentSupplier.data.ts

@ -0,0 +1,145 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
import { validateHanset,validateNumDot, validateEmail } from '@/utils/validator'
import { handleTreeToComponentOptions } from '@/utils/tree'
import * as DeptApi from '@/api/system/dept'
const deptList = ref<Tree[]>([]) // 树形结构
// 加载部门树(默认格式)
deptList.value = handleTreeToComponentOptions(await DeptApi.getSimpleDeptList())
// 表单校验
export const EquipmentSupplierRules = reactive({
number: [required],
name: [required],
concurrencyStamp: [required],
phone: [
{ validator:validateHanset, message: '手机号格式不正确', trigger: 'blur'}
],
postId: [
{validator:validateNumDot, message: '邮编格式不正确', trigger: 'blur'}
]
})
export const EquipmentSupplier = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '供应商编号',
field: 'number',
sort: 'custom',
isSearch: true,
fixed: 'left',
isForm: false,
},
{
label: '名称',
field: 'name',
sort: 'custom',
isSearch: true
},
{
label: '简称',
field: 'shortName',
sort: 'custom',
isSearch: true
},
{
label: '地址',
field: 'address',
sort: 'custom',
isSearch: true
},
{
label: '国家',
field: 'country',
sort: 'custom',
isSearch: true
},
{
label: '城市',
field: 'city',
sort: 'custom',
isSearch: true
},
{
label: '电话',
field: 'phone',
sort: 'custom',
isSearch: true
},
{
label: '传真',
field: 'fax',
sort: 'custom',
isSearch: true
},
{
label: '邮编',
field: 'postId',
sort: 'custom',
isSearch: true
},
{
label: '联系人',
field: 'contacts',
sort: 'custom',
isSearch: true
},
{
label: '部门',
field: 'departmentCode',
sort: 'custom',
isSearch: true,
form: {
component: 'TreeSelect',
componentProps: { // 假设deptList是部门数据列表
data: deptList,
placeholder: "请选择部门",
filterable: true,
// multiple: true,
}
}
},
{
label: '备注',
field: 'remark',
sort: 'custom',
isSearch: true,
form: {
component: 'Input',
componentProps: {
type: 'textarea'
}
}
},
{
label: '是否可用',
field: 'available',
sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', // 默认都是字符串类型其他暂不考虑
isSearch: true,
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
},
search: {
component: 'Select',
},
table: {
width: 110
}
},
{
label: '操作',
field: 'action',
isForm: false,
table: {
width: 150,
fixed: 'right'
}
}
]))

244
src/views/eam/equipmentSupplier/index.vue

@ -0,0 +1,244 @@
<template>
<ContentWrap>
<!-- 搜索工作栏 -->
<Search :schema="EquipmentSupplier.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" />
</ContentWrap>
<!-- 列表头部 -->
<TableHead
:HeadButttondata="HeadButttondata"
@button-base-click="buttonBaseClick"
:routeName="routeName"
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="EquipmentSupplier.allSchemas"
/>
<!-- 列表 -->
<ContentWrap>
<Table
:columns="tableColumns"
:data="tableObject.tableList"
:loading="tableObject.loading"
:pagination="{
total: tableObject.total
}"
v-model:pageSize="tableObject.pageSize"
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
<template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<span>{{ row.code }}</span>
</el-button>
</template>
<template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" />
</template>
</Table>
</ContentWrap>
<!-- 表单弹窗添加/修改 -->
<BasicForm
ref="basicFormRef"
@success="formsSuccess"
:rules="EquipmentSupplierRules"
:formAllSchemas="EquipmentSupplier.allSchemas"
:apiUpdate="EquipmentSupplierApi.updateEquipmentSupplier"
:apiCreate="EquipmentSupplierApi.createEquipmentSupplier"
@searchTableSuccess="searchTableSuccess"
:isBusiness="false"
/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="EquipmentSupplier.allSchemas" />
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/eam/basic/equipment-supplier/import" :importTemplateData="importTemplateData" @success="importSuccess" />
</template>
<script setup lang="ts">
import download from '@/utils/download'
import { EquipmentSupplier,EquipmentSupplierRules } from './equipmentSupplier.data'
import * as EquipmentSupplierApi from '@/api/eam/equipmentSupplier'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
defineOptions({ name: 'EquipmentSupplier' })
const message = useMessage() //
const { t } = useI18n() //
const route = useRoute() //
const routeName = ref()
routeName.value = route.name
const tableColumns = ref(EquipmentSupplier.allSchemas.tableColumns)
//
const searchTableSuccess = (formField, searchField, val, formRef) => {
nextTick(() => {
const setV = {}
setV[formField] = val[0][searchField]
formRef.setValues(setV)
})
}
//
const updataTableColumns = (val) => {
tableColumns.value = val
}
const { tableObject, tableMethods } = useTable({
getListApi: EquipmentSupplierApi.getEquipmentSupplierPage //
})
//
const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'eam:equipment-supplier:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'eam:equipment-supplier:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'eam:equipment-supplier:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
// {
// label: '',
// name: 'zdy',
// hide: false,
// type: 'primary',
// icon: 'Select',
// color: ''
// },
]
//
const buttonBaseClick = (val, item) => {
if (val == 'add') { //
openForm('create')
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
}
}
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'eam:equipment-supplier:update'}), //
// defaultButtons.mainListDeleteBtn({hasPermi:'eam:equipment-supplier:delete'}), //
]
// -
const buttonTableClick = async (val, row) => {
if (val == 'edit') { //
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
}
}
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row)
}
// form
const formsSuccess = async (formType,data) => {
var isHave =EquipmentSupplier.allSchemas.formSchema.some(function (item) {
return item.field === 'activeTime' || item.field === 'expireTime';
});
if(isHave){
if(data.activeTime && data.expireTime && data.activeTime >=data.expireTime){
message.error('失效时间要大于生效时间')
return;
}
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
if (formType === 'create') {
await EquipmentSupplierApi.createEquipmentSupplier(data)
message.success(t('common.createSuccess'))
} else {
await EquipmentSupplierApi.updateEquipmentSupplier(data)
message.success(t('common.updateSuccess'))
}
basicFormRef.value.dialogVisible = false
getList()
}
/** 详情操作 */
const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue, 'basicEquipmentSupplier')
}
/** 删除按钮操作 */
const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
//
await EquipmentSupplierApi.deleteEquipmentSupplier(id)
message.success(t('common.delSuccess'))
//
await getList()
} catch {}
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await EquipmentSupplierApi.exportEquipmentSupplier(tableObject.params)
download.excel(data, '供应商.xlsx')
} catch {
} finally {
exportLoading.value = false
}
}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '供应商导入模版.xlsx'
})
//
const importSuccess = () => {
getList()
}
//
const searchFormClick = (searchData) => {
tableObject.params = {
isSearch: true,
filters: searchData.filters
}
getList() //
}
/** 初始化 **/
onMounted(async () => {
getList()
importTemplateData.templateUrl = await EquipmentSupplierApi.importTemplate()
})
</script>

7
src/views/system/messageSet/messageSet.data.ts

@ -146,7 +146,7 @@ export const MessageSet = useCrudSchemas(reactive<CrudSchema[]>([
}
},
{
label: '短信模板是否启用',
label: '短信模板启用',
field: 'smsTemplateEnabled',
sort: 'custom',
isSearch: true,
@ -207,7 +207,7 @@ export const MessageSet = useCrudSchemas(reactive<CrudSchema[]>([
},
},
{
label: '邮件模板是否启用',
label: '邮件模板启用',
field: 'emailTemplateEnabled',
sort: 'custom',
isSearch: true,
@ -269,10 +269,11 @@ export const MessageSet = useCrudSchemas(reactive<CrudSchema[]>([
},
},
{
label: '内部消息模板是否启用',
label: '内部消息模板启用',
field: 'internalMessageTemplateEnabled',
sort: 'custom',
isSearch: true,
width: 200,
formatter: (_: Recordable, __: TableColumn, cellValue: boolean) => {
return trueFalse.find(item=>cellValue==item.value).label
},

12
src/views/system/tableActionRel/tableActionRel.data.ts

@ -28,13 +28,13 @@ export const TableActionRel = useCrudSchemas(reactive<CrudSchema[]>([
dictClass: 'string', // 默认都是字符串类型其他暂不考虑
isSearch: true,
form: {
component: 'SelectV2',
component: 'Select',
componentProps: {
filterable: true,
}
},
search: {
component: 'SelectV2',
component: 'Select',
componentProps: {
filterable: true,
}
@ -47,15 +47,15 @@ export const TableActionRel = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true,
isDetail: false,
dictType: DICT_TYPE.NOTICE_ACTION_TYPE,
dictClass: 'string', // 默认都是字符串类型其他暂不考虑
dictClass: 'number', // 默认都是字符串类型其他暂不考虑
form: {
component: 'SelectV2',
component: 'Select',
componentProps: {
filterable: true,
}
},
search: {
component: 'SelectV2',
component: 'Select',
componentProps: {
filterable: true,
}
@ -79,7 +79,7 @@ export const TableActionRel = useCrudSchemas(reactive<CrudSchema[]>([
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', // 默认都是字符串类型其他暂不考虑
form: {
component: 'SelectV2',
component: 'Select',
}
},
{

Loading…
Cancel
Save