diff --git a/src/components/ChildStepListView.vue b/src/components/ChildStepListView.vue new file mode 100644 index 00000000..ea5cbe2e --- /dev/null +++ b/src/components/ChildStepListView.vue @@ -0,0 +1,59 @@ + + + diff --git a/src/components/StepShow.vue b/src/components/StepShow.vue index 09fce6d2..48c1be42 100644 --- a/src/components/StepShow.vue +++ b/src/components/StepShow.vue @@ -20,14 +20,20 @@ import { ElMessage } from 'element-plus'; import { useRoute } from 'vue-router'; import { Edit } from '@element-plus/icons'; +import { useI18n } from 'vue-i18n'; +import { ref } from 'vue'; import CodeEditor from './CodeEditor.vue'; import axios from '../http/axios'; +import ChildStepListView from './ChildStepListView.vue'; +const { t: $t } = useI18n(); const route = useRoute(); const props = defineProps({ step: Object, }); +const childStep = ref([]); + const summitStep = () => { axios.put('/controller/steps', props.step).then((resp) => { if (resp.code === 2000) { @@ -37,6 +43,16 @@ const summitStep = () => { } }); }; + +const getPublicStepInfo = (id) => { + axios.get('/controller/publicSteps', { params: { id } }).then((resp) => { + if (resp.code === 2000) { + if (resp.data.steps) { + childStep.value = resp.data.steps; + } + } + }); +};