|
|
|
@ -58,7 +58,7 @@
@@ -58,7 +58,7 @@
|
|
|
|
|
</BasicModal> |
|
|
|
|
</template> |
|
|
|
|
<script lang="ts" setup> |
|
|
|
|
import { reactive, toRaw, unref } from 'vue'; |
|
|
|
|
import { reactive, toRaw } from 'vue'; |
|
|
|
|
import {BasicModal, ModalProps, useModal, useModalInner} from '/@/components/Modal'; |
|
|
|
|
import { BasicTable, useTable, EditRecordRow, BasicColumn, ActionItem, TableAction } from '/@/components/Table'; |
|
|
|
|
import { MapPointType, taskOrdinaryColumns, taskPresetColumns } from '../amap.data'; |
|
|
|
@ -102,6 +102,15 @@
@@ -102,6 +102,15 @@
|
|
|
|
|
const props: Partial<ModalProps> = { confirmLoading: false }; |
|
|
|
|
props.title = '任务配置'; |
|
|
|
|
const taskOrdinaryUpdateColumns: BasicColumn[] = [ |
|
|
|
|
{ |
|
|
|
|
title: '任务名称', |
|
|
|
|
dataIndex: 'name', |
|
|
|
|
editRow: true, |
|
|
|
|
editRule: true, |
|
|
|
|
editComponentProps: ({ text, record, column, index }) => ({ |
|
|
|
|
disabled: !~~state.mapData.sendOrderTaskType && record.sort == 1 |
|
|
|
|
}), |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '医院', |
|
|
|
|
dataIndex: 'hospitalId', |
|
|
|
@ -120,14 +129,23 @@
@@ -120,14 +129,23 @@
|
|
|
|
|
dataIndex: 'orgId', |
|
|
|
|
editRow: true, |
|
|
|
|
editComponent: 'Select', |
|
|
|
|
editComponentProps: ({ text, record, column, index }) => ({ |
|
|
|
|
editComponentProps: { |
|
|
|
|
style: { width:'100%' }, |
|
|
|
|
options: state.options.orgList |
|
|
|
|
}), |
|
|
|
|
}, |
|
|
|
|
editValueMap: value => state.options.orgList?.find(item => item.value == value)?.label || value |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
taskPresetUpdateColumns: BasicColumn[] = [ |
|
|
|
|
{ |
|
|
|
|
title: '任务名称', |
|
|
|
|
dataIndex: 'name', |
|
|
|
|
editRow: true, |
|
|
|
|
editRule: true, |
|
|
|
|
editComponentProps: ({ text, record, column, index }) => ({ |
|
|
|
|
disabled: ~~state.mapData.sendOrderTaskType && record.sort == 1 |
|
|
|
|
}), |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '医院', |
|
|
|
|
dataIndex: 'hospitalId', |
|
|
|
|