feat : 调整简答布局

This commit is contained in:
clay
2024-07-12 11:52:20 +08:00
parent 2856fa4785
commit fa05c22efc
9 changed files with 158 additions and 151 deletions

View File

@@ -12,8 +12,13 @@
> >
<template #icon> <template #icon>
<el-icon style="font-size: 20px;" :class="index == localActive ? 'is-active' : 'is-end'" v-if="localStepSuccess.includes(index)"><SuccessFilled /></el-icon> <el-icon style="font-size: 20px;" :class="index == localActive ? 'is-active' : 'is-end'"
<el-icon style="font-size: 20px; color: gray;" v-else><WarningFilled /></el-icon> v-if="localStepSuccess.includes(index)">
<SuccessFilled/>
</el-icon>
<el-icon style="font-size: 20px; color: gray;" v-else>
<WarningFilled/>
</el-icon>
</template> </template>
</el-step> </el-step>
</el-steps> </el-steps>
@@ -96,35 +101,34 @@ const baseForm = ref()
const schema = computed(() => { const schema = computed(() => {
return [ return [
{
label: '征集名称',
prop: 'requirementName',
colProps: {
span: 12
}
},
{ {
label: '项目名称', label: '项目名称',
prop: 'projectName', prop: 'projectName',
colProps: { colProps: {
span: 12 span: 8
}
},
{
label: '征集描述',
prop: 'collectExplain',
colProps: {
span: 12
} }
}, },
{ {
label: '征集公司', label: '征集公司',
prop: 'affiliatedCompany', prop: 'affiliatedCompany',
colProps: { colProps: {
span: 12 span: 8
}
},
{
label: '征集名称',
prop: 'requirementName',
colProps: {
span: 8
}
},
{
label: '征集描述',
prop: 'collectExplain',
colProps: {
span: 24
} }
}, },
] ]
}) })
@@ -280,12 +284,12 @@ const getBaseInfo = async () => {
try { try {
const {code, data} = await getBaseInfoApi(route.query.projectId) const {code, data} = await getBaseInfoApi(route.query.projectId)
// console.log('data.procedure',data.procedure,route.query.step) // console.log('data.procedure',data.procedure,route.query.step)
if(route.query.step==='40'){ if (route.query.step === '40') {
if(data.procedure.indexOf('40')==-1){ if (data.procedure.indexOf('40') == -1) {
data.procedure.push('40') data.procedure.push('40')
} }
}else if(route.query.step==='50'){ } else if (route.query.step === '50') {
if(data.procedure.indexOf('50')==-1){ if (data.procedure.indexOf('50') == -1) {
data.procedure.push('50') data.procedure.push('50')
} }
} }
@@ -322,9 +326,11 @@ watchEffect(() => {
.step-error { .step-error {
cursor: not-allowed; cursor: not-allowed;
} }
.is-active { .is-active {
color: #67c23a; color: #67c23a;
} }
.is-end { .is-end {
color: #BEA266; color: #BEA266;
} }

View File

@@ -26,32 +26,32 @@ const projectId = ref(route.query.id)
const requirementId = ref(route.query.requirementId) const requirementId = ref(route.query.requirementId)
const schema = computed(() => { const schema = computed(() => {
return [ return [
{
label: '征集名称',
prop: 'requirementName',
colProps: {
span: 12
}
},
{ {
label: '项目名称', label: '项目名称',
prop: 'projectName', prop: 'projectName',
colProps: { colProps: {
span: 12 span: 8
}
},
{
label: '征集描述',
prop: 'collectExplain',
colProps: {
span: 12
} }
}, },
{ {
label: '征集公司', label: '征集公司',
prop: 'affiliatedCompany', prop: 'affiliatedCompany',
colProps: { colProps: {
span: 12 span: 8
}
},
{
label: '征集名称',
prop: 'requirementName',
colProps: {
span: 8
}
},
{
label: '征集描述',
prop: 'collectExplain',
colProps: {
span: 24
} }
}, },
] ]

View File

@@ -32,32 +32,32 @@ const formData = ref({
}) })
const schema = computed(() => { const schema = computed(() => {
return [ return [
{
label: '征集名称',
prop: 'requirementName',
colProps: {
span: 12
}
},
{ {
label: '项目名称', label: '项目名称',
prop: 'projectName', prop: 'projectName',
colProps: { colProps: {
span: 12 span: 8
}
},
{
label: '征集描述',
prop: 'collectExplain',
colProps: {
span: 12
} }
}, },
{ {
label: '征集公司', label: '征集公司',
prop: 'affiliatedCompany', prop: 'affiliatedCompany',
colProps: { colProps: {
span: 12 span: 8
}
},
{
label: '征集名称',
prop: 'requirementName',
colProps: {
span: 8
}
},
{
label: '征集描述',
prop: 'collectExplain',
colProps: {
span: 24
} }
}, },
] ]

View File

@@ -33,6 +33,7 @@ import {getTags} from "@/api/project-manage";
import {ElNotification} from "element-plus"; import {ElNotification} from "element-plus";
import {getBaseInfoApi} from "@/components/steps/api"; import {getBaseInfoApi} from "@/components/steps/api";
import {searchImplementationFileList} from "@/api/project-manage/attachment"; import {searchImplementationFileList} from "@/api/project-manage/attachment";
import {computed} from "vue";
const route = useRoute() const route = useRoute()
const router = useRouter() const router = useRouter()
@@ -42,32 +43,32 @@ const attachment = reactive({
}) })
const schema = computed(() => { const schema = computed(() => {
return [ return [
{
label: '征集名称',
prop: 'requirementName',
colProps: {
span: 12
}
},
{ {
label: '项目名称', label: '项目名称',
prop: 'projectName', prop: 'projectName',
colProps: { colProps: {
span: 12 span: 8
}
},
{
label: '征集描述',
prop: 'collectExplain',
colProps: {
span: 12
} }
}, },
{ {
label: '征集公司', label: '征集公司',
prop: 'affiliatedCompany', prop: 'affiliatedCompany',
colProps: { colProps: {
span: 12 span: 8
}
},
{
label: '征集名称',
prop: 'requirementName',
colProps: {
span: 8
}
},
{
label: '征集描述',
prop: 'collectExplain',
colProps: {
span: 24
} }
}, },
] ]

View File

@@ -61,32 +61,32 @@ const userList = ref([])
const processStore = useProcessStore() const processStore = useProcessStore()
const schema = computed(() => { const schema = computed(() => {
return [ return [
{
label: '征集名称',
prop: 'requirementName',
colProps: {
span: 12
}
},
{ {
label: '项目名称', label: '项目名称',
prop: 'projectName', prop: 'projectName',
colProps: { colProps: {
span: 12 span: 8
}
},
{
label: '征集描述',
prop: 'collectExplain',
colProps: {
span: 12
} }
}, },
{ {
label: '征集公司', label: '征集公司',
prop: 'affiliatedCompany', prop: 'affiliatedCompany',
colProps: { colProps: {
span: 12 span: 8
}
},
{
label: '征集名称',
prop: 'requirementName',
colProps: {
span: 8
}
},
{
label: '征集描述',
prop: 'collectExplain',
colProps: {
span: 24
} }
}, },
] ]

View File

@@ -25,32 +25,32 @@ const copyName = ref('')
const fileListShow = ref('READ') const fileListShow = ref('READ')
const schema = computed(() => { const schema = computed(() => {
return [ return [
{
label: '征集名称',
prop: 'requirementName',
colProps: {
span: 12
}
},
{ {
label: '项目名称', label: '项目名称',
prop: 'projectName', prop: 'projectName',
colProps: { colProps: {
span: 12 span: 8
}
},
{
label: '征集描述',
prop: 'collectExplain',
colProps: {
span: 12
} }
}, },
{ {
label: '征集公司', label: '征集公司',
prop: 'affiliatedCompany', prop: 'affiliatedCompany',
colProps: { colProps: {
span: 12 span: 8
}
},
{
label: '征集名称',
prop: 'requirementName',
colProps: {
span: 8
}
},
{
label: '征集描述',
prop: 'collectExplain',
colProps: {
span: 24
} }
}, },
] ]

View File

@@ -16,32 +16,32 @@ import {getBaseInfoApi} from "@/components/steps/api";
const route = useRoute() const route = useRoute()
const schema = computed(() => { const schema = computed(() => {
return [ return [
{
label: '征集名称',
prop: 'requirementName',
colProps: {
span: 12
}
},
{ {
label: '项目名称', label: '项目名称',
prop: 'projectName', prop: 'projectName',
colProps: { colProps: {
span: 12 span: 8
}
},
{
label: '征集描述',
prop: 'collectExplain',
colProps: {
span: 12
} }
}, },
{ {
label: '征集公司', label: '征集公司',
prop: 'affiliatedCompany', prop: 'affiliatedCompany',
colProps: { colProps: {
span: 12 span: 8
}
},
{
label: '征集名称',
prop: 'requirementName',
colProps: {
span: 8
}
},
{
label: '征集描述',
prop: 'collectExplain',
colProps: {
span: 24
} }
}, },
] ]

View File

@@ -47,32 +47,32 @@ const fileList = ref([])
const showInput = ref(false) const showInput = ref(false)
const schema = computed(() => { const schema = computed(() => {
return [ return [
{
label: '征集名称',
prop: 'requirementName',
colProps: {
span: 12
}
},
{ {
label: '项目名称', label: '项目名称',
prop: 'projectName', prop: 'projectName',
colProps: { colProps: {
span: 12 span: 8
}
},
{
label: '征集描述',
prop: 'collectExplain',
colProps: {
span: 12
} }
}, },
{ {
label: '征集公司', label: '征集公司',
prop: 'affiliatedCompany', prop: 'affiliatedCompany',
colProps: { colProps: {
span: 12 span: 8
}
},
{
label: '征集名称',
prop: 'requirementName',
colProps: {
span: 8
}
},
{
label: '征集描述',
prop: 'collectExplain',
colProps: {
span: 24
} }
}, },
] ]

View File

@@ -95,32 +95,32 @@ const form = ref()
const projectName = ref() const projectName = ref()
const schema = computed(() => { const schema = computed(() => {
return [ return [
{
label: '征集名称',
prop: 'requirementName',
colProps: {
span: 12
}
},
{ {
label: '项目名称', label: '项目名称',
prop: 'projectName', prop: 'projectName',
colProps: { colProps: {
span: 12 span: 8
}
},
{
label: '征集描述',
prop: 'collectExplain',
colProps: {
span: 12
} }
}, },
{ {
label: '征集公司', label: '征集公司',
prop: 'affiliatedCompany', prop: 'affiliatedCompany',
colProps: { colProps: {
span: 12 span: 8
}
},
{
label: '征集名称',
prop: 'requirementName',
colProps: {
span: 8
}
},
{
label: '征集描述',
prop: 'collectExplain',
colProps: {
span: 24
} }
}, },
] ]