修改字段

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

View File

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

View File

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