This commit is contained in:
wangdan-fit2cloud 2023-12-12 16:15:37 +08:00
parent e9abfd6f45
commit d7f7f599e8
2 changed files with 4 additions and 3 deletions

View File

@ -5,7 +5,7 @@
<el-progress v-bind="$attrs" :percentage="row[value_field]"></el-progress <el-progress v-bind="$attrs" :percentage="row[value_field]"></el-progress
></template> ></template>
<div> <div>
<el-row v-for="item in view_card" <el-row v-for="(item, index) in view_card" :key="index"
><el-col :span="6">{{ item.title }}</el-col ><el-col :span="6">{{ item.title }}</el-col
><el-col :span="18"> <span class="value" :innerHTML="value_html(item)"> </span></el-col ><el-col :span="18"> <span class="value" :innerHTML="value_html(item)"> </span></el-col
></el-row> ></el-row>

View File

@ -89,7 +89,8 @@ const active = ref(0)
const successInfo = ref<any>(null) const successInfo = ref<any>(null)
async function next() { async function next() {
if (await StepFirstRef.value.onSubmit()) { console.log(StepFirstRef.value)
if (await StepFirstRef.value?.onSubmit()) {
if (active.value++ > 2) active.value = 0 if (active.value++ > 2) active.value = 0
} }
} }
@ -104,7 +105,7 @@ function clearStore() {
function submit() { function submit() {
loading.value = true loading.value = true
const documents = [] as any[] const documents = [] as any[]
StepSecondRef.value.paragraphList.map((item: any) => { StepSecondRef.value?.paragraphList.map((item: any) => {
documents.push({ documents.push({
name: item.name, name: item.name,
paragraphs: item.content paragraphs: item.content