Showing
1 changed file
with
9 additions
and
9 deletions
| @@ -21,7 +21,7 @@ | @@ -21,7 +21,7 @@ | ||
| 21 | placeholder="请输入参数" | 21 | placeholder="请输入参数" |
| 22 | /> | 22 | /> |
| 23 | </a-form-item> | 23 | </a-form-item> |
| 24 | - <!-- <a-form-item | 24 | + <a-form-item |
| 25 | label="上报数据类型" | 25 | label="上报数据类型" |
| 26 | name="dataType" | 26 | name="dataType" |
| 27 | :rules="[{ required: true, message: '请选择上报数据类型' }]" | 27 | :rules="[{ required: true, message: '请选择上报数据类型' }]" |
| @@ -29,7 +29,7 @@ | @@ -29,7 +29,7 @@ | ||
| 29 | <a-space direction="vertical"> | 29 | <a-space direction="vertical"> |
| 30 | <a-radio-group v-model:value="scriptForm.dataType" :options="typeOptions" /> | 30 | <a-radio-group v-model:value="scriptForm.dataType" :options="typeOptions" /> |
| 31 | </a-space> | 31 | </a-space> |
| 32 | - </a-form-item> --> | 32 | + </a-form-item> |
| 33 | <a-form-item | 33 | <a-form-item |
| 34 | label="保存原始数据" | 34 | label="保存原始数据" |
| 35 | name="saveOriginalData" | 35 | name="saveOriginalData" |
| @@ -106,7 +106,7 @@ | @@ -106,7 +106,7 @@ | ||
| 106 | saveOriginalData: 'true', | 106 | saveOriginalData: 'true', |
| 107 | }); | 107 | }); |
| 108 | const reportTypeOptions = reactive({ | 108 | const reportTypeOptions = reactive({ |
| 109 | - // typeOptions: [], | 109 | + typeOptions: [], |
| 110 | originalOptions: [], | 110 | originalOptions: [], |
| 111 | }); | 111 | }); |
| 112 | const { originalOptions } = toRefs(reportTypeOptions); | 112 | const { originalOptions } = toRefs(reportTypeOptions); |
| @@ -119,15 +119,15 @@ | @@ -119,15 +119,15 @@ | ||
| 119 | scriptForm.saveOriginalData = p2; | 119 | scriptForm.saveOriginalData = p2; |
| 120 | }; | 120 | }; |
| 121 | onMounted(async () => { | 121 | onMounted(async () => { |
| 122 | - // const res: any = await findDictItemByCode({ | ||
| 123 | - // dictCode: 'report_data_type', | ||
| 124 | - // }); | 122 | + const res: any = await findDictItemByCode({ |
| 123 | + dictCode: 'report_data_type', | ||
| 124 | + }); | ||
| 125 | const resOriginal: any = await findDictItemByCode({ | 125 | const resOriginal: any = await findDictItemByCode({ |
| 126 | dictCode: 'original_data', | 126 | dictCode: 'original_data', |
| 127 | }); | 127 | }); |
| 128 | - // reportTypeOptions.typeOptions = res.map((m) => { | ||
| 129 | - // return { label: m.itemText, value: m.itemValue }; | ||
| 130 | - // }); | 128 | + reportTypeOptions.typeOptions = res.map((m) => { |
| 129 | + return { label: m.itemText, value: m.itemValue }; | ||
| 130 | + }); | ||
| 131 | reportTypeOptions.originalOptions = resOriginal.map((m) => { | 131 | reportTypeOptions.originalOptions = resOriginal.map((m) => { |
| 132 | return { label: m.itemText, value: m.itemValue }; | 132 | return { label: m.itemText, value: m.itemValue }; |
| 133 | }); | 133 | }); |