| | |
| | | <a-radio :value="item.value" style="margin-right: 10px">{{ |
| | | item.name |
| | | }}</a-radio> |
| | | <!-- <template #content> |
| | | <p style="max-width: 300px">{{ item.parser_config_str }}</p> |
| | | </template> --> |
| | | |
| | | <template #content> |
| | | <p>{{ item.parser_config_str }}</p> |
| | | </template> |
| | |
| | | getParseMethodsListApi, |
| | | getSessionDetailsApi, |
| | | uploadWithoutKb, |
| | | uploadAndParse, |
| | | } from '@/api/session'; |
| | | |
| | | const visible = ref(false); |
| | |
| | | formData.append('parser_id', parser_id.value); |
| | | } |
| | | } |
| | | console.log(formData, 'formData'); |
| | | // uploadAndParse(formData).then((res) => { |
| | | // debugger; |
| | | // onFileSelectedLoading.value = false; |
| | | // if (res.code == 200) { |
| | | // cancel(); |
| | | // // uploaditemList.value = []; |
| | | // emit('selectFileCallback', uploaditemList.value); |
| | | // Message.success('上传成功'); |
| | | // } else { |
| | | // Message.error('上传失败'); |
| | | // } |
| | | // }); |
| | | uploadWithoutKb(formData).then((res) => { |
| | | onFileSelectedLoading.value = false; |
| | | if (res.code == 200) { |
| | |
| | | const getParseMethodsList = async () => { |
| | | let res = await getParseMethodsListApi(); |
| | | parser_ids.value = res.data.map((item) => { |
| | | console.log(item, item.parser_config_str, 78787); |
| | | return { |
| | | name: item.name, |
| | | value: item.id, |
| | | parser_config: '', |
| | | parser_config_str: item.parser_config_str, |
| | | parser_config_str: JSON.stringify(item.formats), |
| | | }; |
| | | }); |
| | | parser_idsArr.value = res.data; |