fix:bug

This commit is contained in:
王博冉
2024-09-24 21:23:06 +08:00
parent b605bc5c42
commit 14b3d63cbd
2 changed files with 7 additions and 4 deletions

View File

@@ -585,6 +585,7 @@ getOptions()
// 选择品类
function selectHandleOne(item) {
ruleFormSet.surveyBrandId = undefined
twoOption.value = findChildrenById(oneOption.value, item.id)
// console.log('twoOption', twoOption.value);
}
@@ -592,6 +593,8 @@ function selectHandleOne(item) {
// 选择品牌
function selectHandleTwo(item) {
ruleFormSet.surveyBrandStr = item.title
// 自动生成
standardConceptConfigRef.value.onAutoCreate()
}
// 筛选全部树形数据

View File

@@ -357,12 +357,12 @@ export default defineComponent({
// 自动生成
const onAutoCreate = () => {
if(!props?.projectConfig?.surveyBrandId || !props?.projectConfig?.surveyCategoryStr || !props?.projectConfig?.testType) {
if(!props?.projectConfig?.surveyBrandId || !props?.projectConfig?.surveyCategoryStr) {
return message.error('请先填写完全项目信息')
}
const testTypeStr = props?.projectConfig?.testType == 1 ? '标准版' : props?.projectConfig?.testType == 2 ? '快测版' : props?.projectConfig?.testType == 3 ? '配对版' : ''
const newTitle = `${getNowTime()}${props?.projectConfig?.surveyBrandStr}${props?.projectConfig?.surveyCategoryStr}${testTypeStr}`
// const testTypeStr = props?.projectConfig?.testType == 1 ? '标准版' : props?.projectConfig?.testType == 2 ? '快测版' : props?.projectConfig?.testType == 3 ? '配对版' : ''
const newTitle = `${getNowTime()}${props?.projectConfig?.surveyBrandStr}${props?.projectConfig?.surveyCategoryStr}概念测试`
ruleForm.project_name = newTitle
}
@@ -465,7 +465,7 @@ export default defineComponent({
.project-input {
width: 80%;
border-radius: 4px 0 0 4px;
border-right: 0px;
// border-right: 0px;
}
.auto-button {