diff --git a/healthlink-his-ui/src/api/datacollection/index.d.ts b/healthlink-his-ui/src/api/datacollection/index.d.ts new file mode 100644 index 000000000..ab4582b43 --- /dev/null +++ b/healthlink-his-ui/src/api/datacollection/index.d.ts @@ -0,0 +1,4 @@ +export function collectClinicalData(data: any): Promise; +export function collectOperationalData(data: any): Promise; +export function getRealtimeData(): Promise; +export function getHistoricalData(params?: any): Promise; diff --git a/healthlink-his-ui/src/components/TableLayout/EditableTable.vue b/healthlink-his-ui/src/components/TableLayout/EditableTable.vue index 6dfa4bd75..7e2129fbf 100755 --- a/healthlink-his-ui/src/components/TableLayout/EditableTable.vue +++ b/healthlink-his-ui/src/components/TableLayout/EditableTable.vue @@ -183,7 +183,7 @@ style="width: 100%" :class="row.error ? 'error-border' : ''" @change=" - async (value) => { + async (value: any) => { const checkBeforeChange = col.extraprops?.checkBeforeChange; if (checkBeforeChange && typeof checkBeforeChange === 'function') { const result = await checkBeforeChange(row, rowIndex, value); @@ -399,7 +399,7 @@ watch( { deep: true } ); -const handleAdd = (index) => { +const handleAdd = (index: number) => { const newRow = { ...props.defaultRow }; tableData.value.splice(index + 1, 0, newRow); nextTick(() => { @@ -407,7 +407,7 @@ const handleAdd = (index) => { }); }; -const handleDelete = (index) => { +const handleDelete = (index: number) => { if (tableData.value.length === 1) { Object.keys(tableData.value[0]).forEach((key) => { tableData.value[0][key] = ''; @@ -484,13 +484,13 @@ const handleSearch = () => { // 搜索逻辑已在 computed 中处理 }; -const validate = (callback) => { +const validate = (callback: any) => { if (formRef.value) { return formRef.value.validate(callback); } }; -const validateField = (props, callback) => { +const validateField = (props: any, callback: any) => { if (formRef.value) { return formRef.value.validateField(props, callback); } @@ -502,7 +502,7 @@ const resetFields = () => { } }; -const clearValidate = (props) => { +const clearValidate = (props: any) => { if (formRef.value) { formRef.value.clearValidate(props); } diff --git a/healthlink-his-ui/src/components/TableLayout/Form.vue b/healthlink-his-ui/src/components/TableLayout/Form.vue index 5259f6aec..3a65f1014 100755 --- a/healthlink-his-ui/src/components/TableLayout/Form.vue +++ b/healthlink-his-ui/src/components/TableLayout/Form.vue @@ -15,8 +15,8 @@