editWebsite.vue 990 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template>
  2. <div class="edit-website border-box">
  3. <div class="no-empty" v-if="!aiData.id">
  4. <el-empty description="暂无该网站"></el-empty>
  5. </div>
  6. <ai-flow-page :nowData="aiData" v-else></ai-flow-page>
  7. </div>
  8. </template>
  9. <script>
  10. import {
  11. getAIFlowDataStatus
  12. } from '@/api/ai'
  13. import aiFlowPage from '@/components/work/common/aiFlowPage'
  14. export default {
  15. components: {
  16. aiFlowPage
  17. },
  18. data() {
  19. return {
  20. aiData: {},
  21. simpleUUID: ''
  22. }
  23. },
  24. mounted() {
  25. this.simpleUUID = this.$route.query.simpleUUID
  26. if (this.simpleUUID) this.init();
  27. },
  28. methods: {
  29. init() {
  30. getAIFlowDataStatus(this.simpleUUID).then(res => {
  31. if (res.state) this.aiData = res.data;
  32. })
  33. }
  34. }
  35. }
  36. </script>
  37. <style lang="scss">
  38. .edit-website {
  39. width: 100%;
  40. height: 100%;
  41. .no-empty {
  42. width: 100%;
  43. height: 100%;
  44. display: flex;
  45. align-items: center;
  46. justify-content: center;
  47. }
  48. }
  49. </style>