<template>
|
<app-table-list
|
v-bind="tableListProps"
|
/>
|
</template>
|
|
<script setup>
|
import {useEntityStore, useAppStore} from '@/store/modules';
|
|
import {modal} from '@/plugins';
|
import {meta} from '@/hooks';
|
|
const {useMetaData} = meta;
|
|
const tableSearchRef = ref();
|
const tableProRef = ref();
|
const entityStore = useEntityStore();
|
const appStore = useAppStore();
|
|
const props = defineProps({
|
subSubmit: {
|
type: Function,
|
default: () => {
|
}
|
},
|
});
|
|
const tableListProRef = ref();
|
|
const tableListProps = {
|
ref: tableListProRef,
|
title: '流程字段',
|
complementHeight: -1,
|
columns: [
|
{
|
prop: 'value',
|
label: "字段名",
|
}
|
]
|
}
|
|
onMounted(async () => {
|
const {data} = await entityStore.getOldEntitySet({
|
dataName: 'dictitem',
|
filter: " parent_id = 'notice_param_flow'"
|
});
|
tableListProRef.value.setTableData(data.entityset);
|
});
|
|
const getTableCurrent = () => {
|
const current = tableListProRef.value.getTableCurrent();
|
if (Object.keys(current).length === 0) {
|
modal.msgError('请选择参数!');
|
throw '';
|
}
|
return current;
|
}
|
|
defineExpose({
|
getTableCurrent
|
});
|
|
</script>
|