<template>
	<div class="edit-website border-box">
		<div class="no-empty" v-if="!aiData.id">
			<el-empty description="暂无该网站"></el-empty>
		</div>
		<ai-flow-page :nowData="aiData" v-else></ai-flow-page>
	</div>
</template>

<script>
	import {
		getAIFlowDataStatus
	} from '@/api/ai'
	import aiFlowPage from '@/components/work/common/aiFlowPage'
	export default {
		components: {
			aiFlowPage
		},
		data() {
			return {
				aiData: {},
				simpleUUID: ''
			}
		},
		mounted() {
			this.simpleUUID = this.$route.query.simpleUUID
			if (this.simpleUUID) this.init();
		},
		methods: {
			init() {
				getAIFlowDataStatus(this.simpleUUID).then(res => {
					if (res.state) this.aiData = res.data;
				})
			}
		}
	}
</script>

<style lang="scss">
	.edit-website {
		width: 100%;
		height: 100%;

		.no-empty {
			width: 100%;
			height: 100%;
			display: flex;
			align-items: center;
			justify-content: center;
		}
	}
</style>