webPageParsing.vue 972 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <ContentWrap>
  3. <el-form
  4. class="-mb-15px"
  5. :model="queryParams"
  6. ref="queryFormRef"
  7. :inline="true"
  8. label-width="90px"
  9. >
  10. <el-form-item label="url抓取数据" prop="urls">
  11. <el-input
  12. v-model="queryParams.urls"
  13. class="!w-60vw"
  14. type="textarea"
  15. :rows="1"
  16. placeholder="请输入需要爬取的页面,多个页面请用','隔开"
  17. />
  18. </el-form-item>
  19. <el-form-item>
  20. <el-button type="primary" plain :loading="loading" @click="handleExecute">执行</el-button>
  21. </el-form-item>
  22. </el-form>
  23. </ContentWrap>
  24. </template>
  25. <script setup>
  26. defineOptions({ name: 'WebPageParsing' })
  27. const message = useMessage() // 消息弹窗
  28. const { t } = useI18n() // 国际化
  29. const loading = ref(false)
  30. const queryParams = reactive({
  31. urls: 'https://mp.weixin.qq.com/s/gtCcUeXZUXkQi5CR25vjew'
  32. })
  33. const queryFormRef = ref()
  34. // 执行
  35. const handleExecute = async () => {
  36. console.log(queryParams.urls, 'urls')
  37. }
  38. </script>