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