|
|
|
@ -64,11 +64,11 @@ const tableColumns = reactive<TableColumn[]>([
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'createTime',
|
|
|
|
|
label: '机构'
|
|
|
|
|
label: '机构名称'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'tName',
|
|
|
|
|
label: '日期'
|
|
|
|
|
label: '数据日期'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'tCategory',
|
|
|
|
@ -84,16 +84,17 @@ const searchSchema = reactive<FormSchema[]>([
|
|
|
|
|
{
|
|
|
|
|
field: 'orgCode',
|
|
|
|
|
label: '机构',
|
|
|
|
|
colProps: { span: 100 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
checkStrictly: true,
|
|
|
|
|
nodeKey: 'id',
|
|
|
|
|
props: { children: 'childs', label: 'nodeName' },
|
|
|
|
|
nodeKey: 'key',
|
|
|
|
|
props: { children: 'childrens', label: 'value' },
|
|
|
|
|
filterable: true,
|
|
|
|
|
multiple: true,
|
|
|
|
|
collapseTags: true,
|
|
|
|
|
showCheckbox: true,
|
|
|
|
|
// style: { minWidth: '300px' },
|
|
|
|
|
style: 'width: 100%',
|
|
|
|
|
style: { minWidth: '200px' },
|
|
|
|
|
//style: 'width: 100%',
|
|
|
|
|
checkOnClickNode: true,
|
|
|
|
|
},
|
|
|
|
|
component: 'TreeSelect',
|
|
|
|
@ -111,10 +112,13 @@ const searchSchema = reactive<FormSchema[]>([
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'tName',
|
|
|
|
|
field: 'Datadate',
|
|
|
|
|
label: '日期',
|
|
|
|
|
componentProps: {},
|
|
|
|
|
component: 'Input',
|
|
|
|
|
componentProps: {
|
|
|
|
|
type: 'date',
|
|
|
|
|
valueFormat: 'YYYYMMDD',
|
|
|
|
|
},
|
|
|
|
|
component: 'DatePicker',
|
|
|
|
|
formItemProps: {
|
|
|
|
|
rules: [required()],
|
|
|
|
|
},
|
|
|
|
@ -223,7 +227,7 @@ const onSelectionChange = (selection: TableData[]) => {
|
|
|
|
|
disabled.value = selection.length === 0
|
|
|
|
|
}
|
|
|
|
|
const onContextMenu = (row: any, column: any, cell: HTMLTableCellElement, event: Event) => {
|
|
|
|
|
console.log(row,column,cell,event);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -248,14 +252,7 @@ const onContextMenu = (row: any, column: any, cell: HTMLTableCellElement, event:
|
|
|
|
|
@register="tableRegister"
|
|
|
|
|
@refresh="refresh"
|
|
|
|
|
@cell-contextmenu="onContextMenu"
|
|
|
|
|
>
|
|
|
|
|
<template #buttons>
|
|
|
|
|
<ElButton type="primary" @click="AddAction">{{ t('tableDemo.add') }}</ElButton>
|
|
|
|
|
<ElButton :loading="delLoading" type="primary" :disabled="disabled" @click="delDataBatch()">
|
|
|
|
|
{{ t('tableDemo.del') }}
|
|
|
|
|
</ElButton>
|
|
|
|
|
</template>
|
|
|
|
|
</Table>
|
|
|
|
|
/>
|
|
|
|
|
</ContentWrap>
|
|
|
|
|
|
|
|
|
|
<Dialog v-model="dialogVisible" :title="dialogTitle">
|
|
|
|
|