From 106c4943d888be3a6ebad2a9d3ae88425acdb1e4 Mon Sep 17 00:00:00 2001
From: wangxiang <1827945911@qq.com>
Date: Tue, 30 Aug 2022 05:42:11 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=9C=B0=E5=9B=BE=E8=AE=BE?=
=?UTF-8?q?=E8=AE=A1=E5=99=A8=E6=95=B0=E6=8D=AE=E7=BB=93=E6=9E=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../AMap/src/AMapDesigner/index.vue | 4 +-
src/components/AMap/src/amap.data.ts | 71 +++----
.../AMap/src/components/MapTaskModal.vue | 44 +++--
.../src/components/MapTaskPresetModal.vue | 179 +++++++++++++-----
4 files changed, 189 insertions(+), 109 deletions(-)
diff --git a/src/components/AMap/src/AMapDesigner/index.vue b/src/components/AMap/src/AMapDesigner/index.vue
index 6082d18..c1fc482 100644
--- a/src/components/AMap/src/AMapDesigner/index.vue
+++ b/src/components/AMap/src/AMapDesigner/index.vue
@@ -564,12 +564,12 @@
/** 处理打开任务配置 */
function handleOpenTask() {
- openModal(true, { driving, formData: mapState.mapData });
+ openModal(true, { mapData: mapState.mapData });
}
/** 处理打开地图标记点配置 */
function handleOpenMapPoint() {
- mapPointOpenModal(true, { driving });
+ mapPointOpenModal(true, { });
}
/** 处理地图放大 */
diff --git a/src/components/AMap/src/amap.data.ts b/src/components/AMap/src/amap.data.ts
index dae95e5..d8beb24 100644
--- a/src/components/AMap/src/amap.data.ts
+++ b/src/components/AMap/src/amap.data.ts
@@ -1,6 +1,5 @@
import { BasicColumn } from '/@/components/Table';
import { listHospital } from '/@/api/platform/common/controller/hospital';
-import { listUser } from '/@/api/platform/system/controller/user';
import { listOrg } from '/@/api/platform/common/controller/org';
import { commonUpload } from '/@/api/platform/core/controller/upload';
import { h } from 'vue';
@@ -84,6 +83,7 @@ export const taskColumns: BasicColumn[] = [
editRule: true,
editComponent: 'ApiSelect',
editComponentProps: {
+ style: { width:'100%' },
api: listHospital,
params: { size: 40 },
labelField: 'name',
@@ -97,6 +97,7 @@ export const taskColumns: BasicColumn[] = [
editRow: true,
editComponent: 'ApiSelect',
editComponentProps: {
+ style: { width:'100%' },
api: listOrg,
params: { size: 40 },
labelField: 'name',
@@ -148,6 +149,7 @@ export const taskPresetColumns: BasicColumn[] = [
editRule: true,
editComponent: 'ApiSelect',
editComponentProps: {
+ style: { width:'100%' },
api: listHospital,
params: { size: 40 },
labelField: 'name',
@@ -157,7 +159,7 @@ export const taskPresetColumns: BasicColumn[] = [
},
{
title: '目的地预设点',
- dataIndex: 'orgId',
+ dataIndex: 'orgName',
},
{
title: '上传文件',
@@ -190,57 +192,46 @@ export const taskPresetColumns: BasicColumn[] = [
-
-
-export const formMutualTaskSettingColumns: BasicColumn[] = [
+export const taskPresetChildColumns: BasicColumn[] = [
{
- title: '收样员',
- dataIndex: 'userId'
+ title: '任务名称',
+ dataIndex: 'name',
+ editRow: true,
+ editRule: true
},
{
- title: '起始预设点',
- dataIndex: 'smallHospitalId',
+ title: '收样员',
+ dataIndex: 'courierUserId',
editRow: true,
editRule: true,
editComponent: 'Select',
editComponentProps: {
- options: [
- {
- label: 'Option1',
- value: '1'
- },
- {
- label: 'Option2',
- value: '2'
- },
- {
- label: 'Option3',
- value: '3'
- }
- ]
+ style: { width:'100%' },
+ options: [],
}
},
+ {
+ title: '起始预设点',
+ dataIndex: 'orginPresetName'
+ },
{
title: '目的地预设点',
- dataIndex: 'largeHospitalId',
+ dataIndex: 'destinationPresetName'
+ },
+ {
+ title: '上传文件',
+ dataIndex: 'fileId',
editRow: true,
- editRule: true,
- editComponent: 'Select',
+ editComponent: 'Upload',
editComponentProps: {
- 'options': [
- {
- 'label': 'Option1',
- 'value': '1'
- },
- {
- 'label': 'Option2',
- 'value': '2'
- },
- {
- 'label': 'Option3',
- 'value': '3'
- }
- ]
+ multiple: true,
+ maxSize: 20,
+ maxNumber: 10,
+ showUploadSaveBtn: true,
+ showPreviewNumber: false,
+ emptyHidePreview: true,
+ api: commonUpload,
+ accept: ['image/*']
}
},
// todo: 第二版功能
diff --git a/src/components/AMap/src/components/MapTaskModal.vue b/src/components/AMap/src/components/MapTaskModal.vue
index 0d0369d..c7088ac 100644
--- a/src/components/AMap/src/components/MapTaskModal.vue
+++ b/src/components/AMap/src/components/MapTaskModal.vue
@@ -1,6 +1,7 @@
@@ -47,23 +48,24 @@
/>
-
+