修改字段

This commit is contained in:
yangjun 2024-01-10 14:37:19 +08:00
parent f6a1069aeb
commit 03c046b36b
4 changed files with 17 additions and 12 deletions

View File

@ -78,6 +78,9 @@ const render = {
shape: 'square',
size: 25,
style: { marginRight: '5px' },
previewMask: () => {
return h(Icon, { icon: 'ant-design:eye-outlined', size: 20 });
},
});
})
);

View File

@ -34,11 +34,6 @@ export const columns: BasicColumn[] = [
align:"center",
dataIndex: 'jsrl'
},
{
title: '教室图片',
align:"center",
dataIndex: 'jstp'
},
{
title: '建筑物名称',
align:"center",
@ -59,6 +54,12 @@ export const columns: BasicColumn[] = [
align:"center",
dataIndex: 'mph'
},
// {
// title: '教室图片',
// align:"center",
// dataIndex: 'jstp',
// customRender: render.renderImage,
// },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
@ -95,11 +96,6 @@ export const formSchema: FormSchema[] = [
field: 'jsrl',
component: 'Input',
},
{
label: '教室图片',
field: 'jstp',
component: 'Input',
},
{
label: '建筑物名称',
field: 'jzwmc',
@ -119,6 +115,11 @@ export const formSchema: FormSchema[] = [
label: '门牌号',
field: 'mph',
component: 'Input',
},
{
label: '教室图片',
field: 'jstp',
component: 'JImageUpload',
},
// TODO 主键隐藏字段目前写死为ID
{

View File

@ -52,6 +52,7 @@
import {columns, searchFormSchema} from './KcJiaoshirongliang.data';
import {list, deleteOne, batchDelete, getImportUrl,getExportUrl} from './KcJiaoshirongliang.api';
import { downloadFile } from '/@/utils/common/renderUtils';
import JImageUpload from '/@/components/Form/src/jeecg/components/JImageUpload.vue';
const checkedKeys = ref<Array<string | number>>([]);
//model
const [registerModal, {openModal}] = useModal();

View File

@ -159,7 +159,7 @@
</a-form>
</div>
<!--引用表格-->
<BasicTable @register="registerTable" :rowSelection="rowSelection">
<BasicTable @register="registerTable">
<!--插槽:table标题-->
<template #tableTitle>
<!-- <a-button type="primary" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增</a-button>
@ -168,7 +168,7 @@
<a-dropdown v-if="selectedRowKeys.length > 0">
<template #overlay>
<a-menu>
<a-menu-item key="1" @click="batchHandleDelete">
<a-menu-item key="1" @click="batchHandleDelete">
<Icon icon="ant-design:delete-outlined"></Icon>
删除
</a-menu-item>