feat:
This commit is contained in:
parent
50bd21c720
commit
7ff5df4758
@ -90,7 +90,7 @@ const postWebDateset: (data: any, loading?: Ref<boolean>) => Promise<Result<any>
|
|||||||
data,
|
data,
|
||||||
loading
|
loading
|
||||||
) => {
|
) => {
|
||||||
return post(`${prefix}`, data, undefined, loading)
|
return post(`${prefix}/web`, data, undefined, loading)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -22,9 +22,6 @@
|
|||||||
</template> -->
|
</template> -->
|
||||||
<div class="create-dataset__main flex" v-loading="loading">
|
<div class="create-dataset__main flex" v-loading="loading">
|
||||||
<div class="create-dataset__component main-calc-height">
|
<div class="create-dataset__component main-calc-height">
|
||||||
<!-- <template v-if="steps[active]?.component">
|
|
||||||
<component :is="steps[active].component" :ref="steps[active]?.ref" />
|
|
||||||
</template> -->
|
|
||||||
<template v-if="active === 0">
|
<template v-if="active === 0">
|
||||||
<StepFirst ref="StepFirstRef" />
|
<StepFirst ref="StepFirstRef" />
|
||||||
</template>
|
</template>
|
||||||
@ -39,9 +36,9 @@
|
|||||||
<div class="create-dataset__footer text-right border-t" v-if="active !== 2">
|
<div class="create-dataset__footer text-right border-t" v-if="active !== 2">
|
||||||
<el-button @click="router.go(-1)" :disabled="loading">取 消</el-button>
|
<el-button @click="router.go(-1)" :disabled="loading">取 消</el-button>
|
||||||
<el-button @click="prev" v-if="active === 1" :disabled="loading">上一步</el-button>
|
<el-button @click="prev" v-if="active === 1" :disabled="loading">上一步</el-button>
|
||||||
<el-button @click="next" type="primary" v-if="active === 0" :disabled="loading"
|
<el-button @click="next" type="primary" v-if="active === 0" :disabled="loading">
|
||||||
>创建并导入</el-button
|
创建并导入
|
||||||
>
|
</el-button>
|
||||||
<el-button @click="submit" type="primary" v-if="active === 1" :disabled="loading">
|
<el-button @click="submit" type="primary" v-if="active === 1" :disabled="loading">
|
||||||
开始导入
|
开始导入
|
||||||
</el-button>
|
</el-button>
|
||||||
@ -70,18 +67,18 @@ const {
|
|||||||
params: { id, type }
|
params: { id, type }
|
||||||
} = route
|
} = route
|
||||||
const isCreate = type === 'create'
|
const isCreate = type === 'create'
|
||||||
const steps = [
|
// const steps = [
|
||||||
{
|
// {
|
||||||
ref: 'StepFirstRef',
|
// ref: 'StepFirstRef',
|
||||||
name: '上传文档',
|
// name: '上传文档',
|
||||||
component: StepFirst
|
// component: StepFirst
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
ref: 'StepSecondRef',
|
// ref: 'StepSecondRef',
|
||||||
name: '设置分段规则',
|
// name: '设置分段规则',
|
||||||
component: StepSecond
|
// component: StepSecond
|
||||||
}
|
// }
|
||||||
]
|
// ]
|
||||||
|
|
||||||
const StepFirstRef = ref()
|
const StepFirstRef = ref()
|
||||||
const StepSecondRef = ref()
|
const StepSecondRef = ref()
|
||||||
|
|||||||
@ -46,14 +46,14 @@
|
|||||||
<el-input
|
<el-input
|
||||||
v-model="form.url"
|
v-model="form.url"
|
||||||
placeholder="请输入 Web 根地址"
|
placeholder="请输入 Web 根地址"
|
||||||
@blur="form.name = form.url.trim()"
|
@blur="form.url = form.url.trim()"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="选择器" v-if="form.type === '1'">
|
<el-form-item label="选择器" v-if="form.type === '1'">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.selector"
|
v-model="form.selector"
|
||||||
placeholder="请输入选择器"
|
placeholder="请输入选择器"
|
||||||
@blur="form.name = form.selector.trim()"
|
@blur="form.selector = form.selector.trim()"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user