【逻辑&富文本图片】编辑逻辑后富文本图片失效
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
@change="selectHandleOpt"
|
||||
>
|
||||
<a-select-option v-for="opt in copyQuesInfo.optionsList" :key="opt.id" :value="opt.id">
|
||||
<div class="logical-option" v-html="opt.option"></div>
|
||||
<div class="logical-option" v-html="opt.optionStr"></div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<div
|
||||
@@ -62,7 +62,7 @@
|
||||
@change="selectHandleOpt"
|
||||
>
|
||||
<a-select-option v-for="opt in copyQuesInfo.optionsList" :key="opt.id" :value="opt.id">
|
||||
<div class="logical-option" v-html="opt.option"></div>
|
||||
<div class="logical-option" v-html="opt.optionStr"></div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<div
|
||||
@@ -89,7 +89,7 @@
|
||||
@change="selectHandleOpt"
|
||||
>
|
||||
<a-select-option v-for="opt in copyQuesInfo.optionsList" :key="opt.id" :value="opt.id">
|
||||
<div class="logical-option" v-html="opt.option"></div>
|
||||
<div class="logical-option" v-html="opt.optionStr"></div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<div
|
||||
@@ -150,7 +150,7 @@
|
||||
@change="selectHandleOpt"
|
||||
>
|
||||
<a-select-option v-for="opt in copyQuesInfo.optionsList" :key="opt.id" :value="opt.id">
|
||||
<div class="logical-option" v-html="opt.option"></div>
|
||||
<div class="logical-option" v-html="opt.optionStr"></div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<div
|
||||
@@ -187,7 +187,7 @@
|
||||
@change="selectHandleOpt"
|
||||
>
|
||||
<a-select-option v-for="opt in copyQuesInfo.optionsList" :key="opt.id" :value="opt.id">
|
||||
<div class="logical-option" v-html="opt.option"></div>
|
||||
<div class="logical-option" v-html="opt.optionStr"></div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<div
|
||||
@@ -224,7 +224,7 @@
|
||||
@change="selectHandleRow"
|
||||
>
|
||||
<a-select-option v-for="opt in copyQuesInfo.rowOptionsList" :key="opt.id" :value="opt.id">
|
||||
<div class="logical-option" v-html="opt.option"></div>
|
||||
<div class="logical-option" v-html="opt.optionStr"></div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<div
|
||||
@@ -247,7 +247,7 @@
|
||||
@change="selectHandleCol"
|
||||
>
|
||||
<a-select-option v-for="opt in copyQuesInfo.colOptionsList" :key="opt.id" :value="opt.id">
|
||||
<div class="logical-option" v-html="opt.option"></div>
|
||||
<div class="logical-option" v-html="opt.optionStr"></div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<div
|
||||
@@ -274,7 +274,7 @@
|
||||
@change="selectHandleRow"
|
||||
>
|
||||
<a-select-option v-for="opt in copyQuesInfo.rowOptionsList" :key="opt.id" :value="opt.id">
|
||||
<div class="logical-option" v-html="opt.option"></div>
|
||||
<div class="logical-option" v-html="opt.optionStr"></div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<div
|
||||
@@ -299,7 +299,7 @@
|
||||
@change="selectHandleCol"
|
||||
>
|
||||
<a-select-option v-for="opt in copyQuesInfo.colOptionsList" :key="opt.id" :value="opt.id">
|
||||
<div class="logical-option" v-html="opt.option"></div>
|
||||
<div class="logical-option" v-html="opt.optionStr"></div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<div
|
||||
@@ -326,7 +326,7 @@
|
||||
@change="selectHandleClassifyRow"
|
||||
>
|
||||
<a-select-option v-for="opt in copyQuesInfo.optionsList" :key="opt.id" :value="opt.id">
|
||||
<div class="logical-option" v-html="opt.option"></div>
|
||||
<div class="logical-option" v-html="opt.optionStr"></div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<div
|
||||
@@ -353,7 +353,7 @@
|
||||
:key="opt.id"
|
||||
:value="opt.id"
|
||||
>
|
||||
<div class="logical-option" v-html="opt.option"></div>
|
||||
<div class="logical-option" v-html="opt.optionStr"></div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<div
|
||||
@@ -380,7 +380,7 @@
|
||||
@change="selectHandleRow"
|
||||
>
|
||||
<a-select-option v-for="opt in copyQuesInfo.rowOptionsList" :key="opt.id" :value="opt.id">
|
||||
<div class="logical-option" v-html="opt.option"></div>
|
||||
<div class="logical-option" v-html="opt.optionStr"></div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<div
|
||||
@@ -404,7 +404,7 @@
|
||||
@change="selectHandleCol"
|
||||
>
|
||||
<a-select-option v-for="opt in copyQuesInfo.colOptionsList" :key="opt.id" :value="opt.id">
|
||||
<div class="logical-option" v-html="opt.option"></div>
|
||||
<div class="logical-option" v-html="opt.optionStr"></div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<div
|
||||
@@ -553,7 +553,7 @@
|
||||
)
|
||||
"
|
||||
>
|
||||
<div class="logical-option" v-html="opt.option"></div>
|
||||
<div class="logical-option" v-html="opt.optionStr"></div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<div
|
||||
@@ -930,7 +930,7 @@ function util(store, copyQuesInfo) {
|
||||
func(newQues, temp, ass);
|
||||
temp.relatedList = JSON.parse(JSON.stringify(temp.relatedList)).map((tempOpt) => {
|
||||
tempOpt.id = uuidv4();
|
||||
tempOpt.option = `${tempOpt.option}[关联自${temp.title}]`;
|
||||
tempOpt.optionStr = `${tempOpt.option}[关联自${temp.title}]`;
|
||||
return tempOpt;
|
||||
});
|
||||
if (temp.type === 0) {
|
||||
@@ -952,7 +952,7 @@ function util(store, copyQuesInfo) {
|
||||
return ids
|
||||
? options
|
||||
?.filter((opt) => ids.includes(opt.id))
|
||||
.map((opt) => opt.option)
|
||||
.map((opt) => opt.optionStr)
|
||||
.join(",")
|
||||
: "";
|
||||
};
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
:key="opt.id"
|
||||
:value="opt.id"
|
||||
>
|
||||
<div class="logical-option" v-html="opt.option"></div>
|
||||
<div class="logical-option" v-html="opt.optionStr"></div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<a-select
|
||||
@@ -82,7 +82,7 @@
|
||||
</template>
|
||||
<template v-else>
|
||||
<div class="logical-select" style="max-width: 100px;">选项</div>
|
||||
<div class="logical-select" v-html="optionInfo?.option || ''"></div>
|
||||
<div class="logical-select" v-html="optionInfo?.optionStr || ''"></div>
|
||||
<div class="logical-select">
|
||||
<div>{{ copyChild.is_select ? "被选中" : "未被选中" }}</div>
|
||||
</div>
|
||||
@@ -136,7 +136,7 @@ export default {
|
||||
context.emit("update:child", copyChild.value);
|
||||
context.emit("changes");
|
||||
};
|
||||
|
||||
|
||||
const changeHandleGroup = () => {
|
||||
copyChild.value.option_index = copyChild.value.group_index;
|
||||
context.emit("update:child", copyChild.value);
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
:key="opt.id"
|
||||
:value="opt.id"
|
||||
>
|
||||
<div class="logical-option" v-html="opt.option"></div>
|
||||
<div class="logical-option" v-html="opt.optionStr"></div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<a-select
|
||||
@@ -55,16 +55,16 @@
|
||||
:key="opt.id"
|
||||
:value="opt.id"
|
||||
>
|
||||
<div class="logical-option" v-html="opt.option"></div>
|
||||
<div class="logical-option" v-html="opt.optionStr"></div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
</template>
|
||||
<template v-else>
|
||||
<div class="logical-select" v-html="optionInfo?.option || ''"></div>
|
||||
<div class="logical-select" v-html="optionInfo?.optionStr || ''"></div>
|
||||
<div class="logical-usually">
|
||||
{{ copyChild.operator }}
|
||||
</div>
|
||||
<div class="logical-select" v-html="colOptionInfo?.option || ''"></div>
|
||||
<div class="logical-select" v-html="colOptionInfo?.optionStr || ''"></div>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<template v-else>
|
||||
<div class="logical-select" v-html="optionInfo?.option || ''"></div>
|
||||
<div class="logical-select" v-html="optionInfo?.optionStr || ''"></div>
|
||||
<div class="logical-select">
|
||||
<div>{{ copyChild.is_select ? "被选中" : "未被选中" }}</div>
|
||||
</div>
|
||||
@@ -77,7 +77,7 @@ export default {
|
||||
var getCascaderOptions = (cascade) => {
|
||||
return cascade.map(o => {
|
||||
var res = {
|
||||
label: o.option,
|
||||
label: o.optionStr,
|
||||
value: o.option_index,
|
||||
};
|
||||
var children = o.cascade && getCascaderOptions(o.cascade);
|
||||
|
||||
@@ -25,13 +25,13 @@
|
||||
:key="opt.id"
|
||||
:value="opt.id"
|
||||
>
|
||||
<div class="logical-option" v-html="opt.option"></div>
|
||||
<div class="logical-option" v-html="opt.optionStr"></div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
</template>
|
||||
<template v-else>
|
||||
<div class="logical-usually">{{ copyChild.operator }}</div>
|
||||
<div class="logical-select" v-html="optionInfo?.option || ''"></div>
|
||||
<div class="logical-select" v-html="optionInfo?.optionStr || ''"></div>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
@@ -71,7 +71,7 @@ export default {
|
||||
const filterOptionHandle = (value, option, optionList) => {
|
||||
let result = false;
|
||||
const curOpt = optionList.find((opt) => opt.id === option.key);
|
||||
if (curOpt.option.includes(value)) {
|
||||
if (curOpt.optionStr.includes(value)) {
|
||||
result = true;
|
||||
}
|
||||
return result;
|
||||
|
||||
@@ -117,14 +117,14 @@
|
||||
:value="ques.question_index"
|
||||
><div
|
||||
class="logical-option"
|
||||
v-html="`${ques.title}${ques.stem}`"
|
||||
v-html="`${ques.title}${ques.stemStr}`"
|
||||
></div
|
||||
></a-select-option>
|
||||
</a-select>
|
||||
<div v-else class="logical-select">
|
||||
<div
|
||||
class="logical-option"
|
||||
v-html="`${data.ques.title}${data.ques.stem}`"
|
||||
v-html="`${data.ques.title}${data.ques.stemStr}`"
|
||||
></div>
|
||||
</div>
|
||||
<div class="logical-usually">跳到</div>
|
||||
@@ -145,7 +145,7 @@
|
||||
v-for="ques in data.afterQuesList"
|
||||
:key="ques.id"
|
||||
:value="ques.question_index"
|
||||
>{{ ques.title }}{{ ques.stem }}</a-select-option
|
||||
>{{ ques.title }}{{ ques.stemStr }}</a-select-option
|
||||
>
|
||||
</a-select>
|
||||
<div v-else class="logical-select">
|
||||
@@ -160,7 +160,7 @@
|
||||
data.afterQuesList.find(
|
||||
(val) =>
|
||||
val.question_index === item.skip_question_index
|
||||
)?.stem
|
||||
)?.stemStr
|
||||
}}</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -183,14 +183,14 @@
|
||||
:value="ques.question_index"
|
||||
><div
|
||||
class="logical-option"
|
||||
v-html="`${ques.title}${ques.stem}`"
|
||||
v-html="`${ques.title}${ques.stemStr}`"
|
||||
></div
|
||||
></a-select-option>
|
||||
</a-select>
|
||||
<div v-else class="logical-select">
|
||||
<div
|
||||
class="logical-option"
|
||||
v-html="`${data.ques.title}${data.ques.stem}`"
|
||||
v-html="`${data.ques.title}${data.ques.stemStr}`"
|
||||
></div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -223,7 +223,7 @@
|
||||
>
|
||||
<div
|
||||
class="logical-option"
|
||||
v-html="`${ques.title}${ques.stem}`"
|
||||
v-html="`${ques.title}${ques.stemStr}`"
|
||||
></div
|
||||
></a-select-option>
|
||||
</a-select>
|
||||
@@ -238,7 +238,7 @@
|
||||
}${
|
||||
hasLogicQuesList.find(
|
||||
(val) => val.question_index === child.question_index
|
||||
)?.stem || ''
|
||||
)?.stemStr || ''
|
||||
}`
|
||||
"
|
||||
></div>
|
||||
@@ -416,14 +416,14 @@
|
||||
:value="ques.question_index"
|
||||
><div
|
||||
class="logical-option"
|
||||
v-html="`${ques.title}${ques.stem}`"
|
||||
v-html="`${ques.title}${ques.stemStr}`"
|
||||
></div
|
||||
></a-select-option>
|
||||
</a-select>
|
||||
<div v-else class="logical-select">
|
||||
<div
|
||||
class="logical-option"
|
||||
v-html="`${data.ques.title}${data.ques.stem}`"
|
||||
v-html="`${data.ques.title}${data.ques.stemStr}`"
|
||||
></div>
|
||||
</div>
|
||||
<div class="logical-usually">跳到</div>
|
||||
@@ -446,7 +446,7 @@
|
||||
:value="ques.question_index"
|
||||
><div
|
||||
class="logical-option"
|
||||
v-html="`${ques.title}${ques.stem}`"
|
||||
v-html="`${ques.title}${ques.stemStr}`"
|
||||
></div
|
||||
></a-select-option>
|
||||
</a-select>
|
||||
@@ -463,7 +463,7 @@
|
||||
data.afterQuesList.find(
|
||||
(val) =>
|
||||
val.question_index === item.skip_question_index
|
||||
)?.stem || ''
|
||||
)?.stemStr || ''
|
||||
}`
|
||||
"
|
||||
></div>
|
||||
@@ -490,14 +490,14 @@
|
||||
:value="ques.question_index"
|
||||
><div
|
||||
class="logical-option"
|
||||
v-html="`${ques.title}${ques.stem}`"
|
||||
v-html="`${ques.title}${ques.stemStr}`"
|
||||
></div
|
||||
></a-select-option>
|
||||
</a-select>
|
||||
<div v-else class="logical-select">
|
||||
<div
|
||||
class="logical-option"
|
||||
v-html="`${data.ques.title}${data.ques.stem}`"
|
||||
v-html="`${data.ques.title}${data.ques.stemStr}`"
|
||||
></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -613,14 +613,14 @@
|
||||
:value="ques.question_index"
|
||||
><div
|
||||
class="logical-option"
|
||||
v-html="`${ques.title}${ques.stem}`"
|
||||
v-html="`${ques.title}${ques.stemStr}`"
|
||||
></div
|
||||
></a-select-option>
|
||||
</a-select>
|
||||
<div v-else class="logical-select">
|
||||
<div
|
||||
class="logical-option"
|
||||
v-html="`${data.ques.title}${data.ques.stem}`"
|
||||
v-html="`${data.ques.title}${data.ques.stemStr}`"
|
||||
></div>
|
||||
</div>
|
||||
<div class="logical-usually">跳到</div>
|
||||
@@ -643,7 +643,7 @@
|
||||
:value="ques.question_index"
|
||||
><div
|
||||
class="logical-option"
|
||||
v-html="`${ques.title}${ques.stem}`"
|
||||
v-html="`${ques.title}${ques.stemStr}`"
|
||||
></div
|
||||
></a-select-option>
|
||||
</a-select>
|
||||
@@ -660,7 +660,7 @@
|
||||
data.afterQuesList.find(
|
||||
(val) =>
|
||||
val.question_index === item.skip_question_index
|
||||
)?.stem || ''
|
||||
)?.stemStr || ''
|
||||
}`
|
||||
"
|
||||
></div>
|
||||
@@ -682,14 +682,14 @@
|
||||
:value="ques.question_index"
|
||||
><div
|
||||
class="logical-option"
|
||||
v-html="`${ques.title}${ques.stem}`"
|
||||
v-html="`${ques.title}${ques.stemStr}`"
|
||||
></div
|
||||
></a-select-option>
|
||||
</a-select>
|
||||
<div v-else class="logical-select">
|
||||
<div
|
||||
class="logical-option"
|
||||
v-html="`${data.ques.title}${data.ques.stem}`"
|
||||
v-html="`${data.ques.title}${data.ques.stemStr}`"
|
||||
></div>
|
||||
</div>
|
||||
<AutoFill
|
||||
@@ -1500,6 +1500,7 @@ function domEventHandle(dataList, allQuesList, questionInfo, saveLogical) {
|
||||
question_index: undefined,
|
||||
title: "",
|
||||
stem: "",
|
||||
stemStr: "",
|
||||
logic_config: {},
|
||||
},
|
||||
skipQuesList: getSkipQuesList(questionInfo.value, "", flag === "auto"),
|
||||
@@ -1680,6 +1681,7 @@ function domEventHandle(dataList, allQuesList, questionInfo, saveLogical) {
|
||||
question_index: undefined,
|
||||
title: "",
|
||||
stem: "",
|
||||
stemStr: "",
|
||||
logic_config: {},
|
||||
};
|
||||
newCopyListObj.id = uuidv4();
|
||||
@@ -1737,28 +1739,28 @@ function getOptionListAndConfig(questionIndex, questionList, allQuesList) {
|
||||
curQues?.options.filter((opt) => opt.find((x) => x.type === 0))[0] || []
|
||||
).map((opt) => {
|
||||
opt.parent_question_index = 0;
|
||||
opt.option = nodeHandle(opt.option);
|
||||
opt.optionStr = nodeHandle(opt.option);
|
||||
return opt;
|
||||
});
|
||||
const rowOptionsList = (
|
||||
curQues?.options.filter((opt) => opt.find((x) => x.type === 1))[0] || []
|
||||
).map((opt) => {
|
||||
opt.parent_question_index = 0;
|
||||
opt.option = nodeHandle(opt.option);
|
||||
opt.optionStr = nodeHandle(opt.option);
|
||||
return opt;
|
||||
});
|
||||
const colOptionsList = (
|
||||
curQues?.options.filter((opt) => opt.find((x) => x.type === 2))[0] || []
|
||||
).map((opt) => {
|
||||
opt.parent_question_index = 0;
|
||||
opt.option = nodeHandle(opt.option);
|
||||
opt.optionStr = nodeHandle(opt.option);
|
||||
return opt;
|
||||
});
|
||||
const classifyOptionsList = (
|
||||
curQues?.options.filter((opt) => opt.find((x) => x.type === 3))[0] || []
|
||||
).map((opt) => {
|
||||
opt.parent_question_index = 0;
|
||||
opt.option = nodeHandle(opt.option);
|
||||
opt.optionStr = nodeHandle(opt.option);
|
||||
return opt;
|
||||
});
|
||||
const getRelationOption = (info) => {
|
||||
@@ -1773,7 +1775,7 @@ function getOptionListAndConfig(questionIndex, questionList, allQuesList) {
|
||||
const newOpt = newQues.options
|
||||
.filter((opt) => opt.find((x) => x.type === ass.cite_type))?.[0]?.map((opt) => {
|
||||
opt.parent_question_index = newQues.question_index;
|
||||
opt.option = nodeHandle(opt.option);
|
||||
opt.optionStr = nodeHandle(opt.option);
|
||||
return opt;
|
||||
}) || [];
|
||||
tempObj.relatedList.push(...newOpt);
|
||||
@@ -1794,7 +1796,7 @@ function getOptionListAndConfig(questionIndex, questionList, allQuesList) {
|
||||
const newOpt = newQues.options
|
||||
.filter((opt) => opt.find((x) => x.type === ass.cite_type))?.[0]?.map((opt) => {
|
||||
opt.parent_question_index = newQues.question_index;
|
||||
opt.option = nodeHandle(opt.option);
|
||||
opt.optionStr = nodeHandle(opt.option);
|
||||
return opt;
|
||||
}) || [];
|
||||
temp.relatedList.push(...newOpt);
|
||||
@@ -1802,7 +1804,7 @@ function getOptionListAndConfig(questionIndex, questionList, allQuesList) {
|
||||
temp.relatedList = JSON.parse(JSON.stringify(temp.relatedList)).map(
|
||||
(tempOpt) => {
|
||||
tempOpt.id = uuidv4();
|
||||
tempOpt.option = `${tempOpt.option}[关联自${temp.title}]`;
|
||||
tempOpt.optionStr = `${tempOpt.option}[关联自${temp.title}]`;
|
||||
return tempOpt;
|
||||
}
|
||||
);
|
||||
@@ -1838,7 +1840,7 @@ function getSkipQuesList(questionInfo, info, filterQues) {
|
||||
quesList = questionInfo.questions
|
||||
.filter((x) => x.id && ![6, 18].includes(x.question_type))
|
||||
.map((ques) => {
|
||||
ques.stem = nodeHandle(ques.stem);
|
||||
ques.stemStr = nodeHandle(ques.stem);
|
||||
return ques;
|
||||
});
|
||||
// 如果是自动填写逻辑需要过滤掉指定题型
|
||||
@@ -1874,7 +1876,7 @@ function getShowQuesList(questionInfo, info, filterQues) {
|
||||
quesList = questionInfo.questions
|
||||
.filter((x) => x.id && ![6, 18].includes(x.question_type))
|
||||
.map((ques) => {
|
||||
ques.stem = nodeHandle(ques.stem);
|
||||
ques.stemStr = nodeHandle(ques.stem);
|
||||
return ques;
|
||||
});
|
||||
// 如果是自动填写逻辑需要过滤掉指定题型
|
||||
@@ -1911,25 +1913,28 @@ function getQuesOptionListAfter(questionInfo, info) {
|
||||
question_index: -1,
|
||||
title: "正常完成",
|
||||
stem: "",
|
||||
stemStr: "",
|
||||
});
|
||||
afterSkipLogicQuesList.push({
|
||||
id: -2,
|
||||
question_index: -2,
|
||||
title: "提前终止",
|
||||
stem: "",
|
||||
stemStr: "",
|
||||
});
|
||||
afterSkipLogicQuesList.push({
|
||||
id: -3,
|
||||
question_index: -3,
|
||||
title: "配额超限",
|
||||
stem: "",
|
||||
stemStr: "",
|
||||
});
|
||||
const quesList = questionInfo.questions.filter((x) => x.id);
|
||||
afterSkipLogicQuesList.push(
|
||||
...quesList
|
||||
.filter((ques) => ques.id !== info.id)
|
||||
.map((ques) => {
|
||||
ques.stem = nodeHandle(ques.stem);
|
||||
ques.stemStr = nodeHandle(ques.stem);
|
||||
return ques;
|
||||
})
|
||||
);
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
:key="opt.id"
|
||||
:value="opt.id"
|
||||
>
|
||||
<div class="logical-option" v-html="opt.option"></div>
|
||||
<div class="logical-option" v-html="opt.optionStr"></div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<a-select
|
||||
@@ -51,7 +51,7 @@
|
||||
:key="opt.id"
|
||||
:value="opt.id"
|
||||
>
|
||||
<div class="logical-option" v-html="opt.option"></div>
|
||||
<div class="logical-option" v-html="opt.optionStr"></div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<a-select
|
||||
@@ -91,7 +91,7 @@
|
||||
</template>
|
||||
<template v-else>
|
||||
<template v-if="copyChild.is_option_group">
|
||||
<div class="logical-select" v-html="optionInfo?.option || ''"></div>
|
||||
<div class="logical-select" v-html="optionInfo?.optionStr || ''"></div>
|
||||
<div class="logical-select" style="max-width: 100px;">分组</div>
|
||||
<div class="logical-select" v-html="getGroupName(copyChild.group_index)"></div>
|
||||
<div class="logical-select">
|
||||
@@ -99,9 +99,9 @@
|
||||
</div>
|
||||
</template>
|
||||
<template v-else>
|
||||
<div class="logical-select" v-html="optionInfo?.option || ''"></div>
|
||||
<div class="logical-select" v-html="optionInfo?.optionStr || ''"></div>
|
||||
<div class="logical-select" style="max-width: 100px;">选项</div>
|
||||
<div class="logical-select" v-html="colOptionInfo?.option || ''"></div>
|
||||
<div class="logical-select" v-html="colOptionInfo?.optionStr || ''"></div>
|
||||
<div class="logical-select logical-select-none">
|
||||
<div>{{ copyChild.is_select ? "被选中" : "未被选中" }}</div>
|
||||
</div>
|
||||
@@ -166,7 +166,7 @@ export default {
|
||||
context.emit("update:child", copyChild.value);
|
||||
context.emit("changes");
|
||||
};
|
||||
|
||||
|
||||
const changeHandleGroup = () => {
|
||||
copyChild.value.cell_index = copyChild.value.group_index;
|
||||
context.emit("update:child", copyChild.value);
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
:key="opt.id"
|
||||
:value="opt.id"
|
||||
>
|
||||
<div class="logical-option" v-html="opt.option"></div>
|
||||
<div class="logical-option" v-html="opt.optionStr"></div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<a-select
|
||||
@@ -37,7 +37,7 @@
|
||||
:key="opt.id"
|
||||
:value="opt.id"
|
||||
>
|
||||
<div class="logical-option" v-html="opt.option"></div>
|
||||
<div class="logical-option" v-html="opt.optionStr"></div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<!-- 整数,小数 -->
|
||||
@@ -84,8 +84,8 @@
|
||||
/>
|
||||
</template>
|
||||
<template v-else>
|
||||
<div class="logical-select" v-html="optionInfo?.option || ''"></div>
|
||||
<div class="logical-select" v-html="colOptionInfo?.option || ''"></div>
|
||||
<div class="logical-select" v-html="optionInfo?.optionStr || ''"></div>
|
||||
<div class="logical-select" v-html="colOptionInfo?.optionStr || ''"></div>
|
||||
<div class="logical-usually">
|
||||
{{ copyChild.operator }}
|
||||
</div>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
:key="opt.id"
|
||||
:value="opt.id"
|
||||
>
|
||||
<div class="logical-option" v-html="opt.option"></div>
|
||||
<div class="logical-option" v-html="opt.optionStr"></div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<a-select
|
||||
@@ -68,7 +68,7 @@
|
||||
:key="opt.id"
|
||||
:value="opt.id"
|
||||
>
|
||||
<div class="logical-option" v-html="opt.option"></div>
|
||||
<div class="logical-option" v-html="opt.optionStr"></div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<a-select
|
||||
@@ -95,16 +95,16 @@
|
||||
</template>
|
||||
<template v-else>
|
||||
<template v-if="copyChild.is_option_group">
|
||||
<div class="logical-select" v-html="optionInfo?.option || ''"></div>
|
||||
<div class="logical-select" v-html="optionInfo?.optionStr || ''"></div>
|
||||
<div class="logical-select" style="max-width: 100px;">分组</div>
|
||||
<div class="logical-usually">{{ copyChild.operator }}</div>
|
||||
<div class="logical-select" v-html="getGroupName(copyChild.group_index)"></div>
|
||||
</template>
|
||||
<template v-else>
|
||||
<div class="logical-select" v-html="optionInfo?.option || ''"></div>
|
||||
<div class="logical-select" v-html="optionInfo?.optionStr || ''"></div>
|
||||
<div class="logical-select" style="max-width: 100px;">选项</div>
|
||||
<div class="logical-usually">{{ copyChild.operator }}</div>
|
||||
<div class="logical-select" v-html="colOptionInfo?.option || ''"></div>
|
||||
<div class="logical-select" v-html="colOptionInfo?.optionStr || ''"></div>
|
||||
</template>
|
||||
</template>
|
||||
</template>
|
||||
@@ -174,13 +174,13 @@ export default {
|
||||
context.emit("update:child", copyChild.value);
|
||||
context.emit("changes");
|
||||
}
|
||||
|
||||
|
||||
const changeHandleGroup = () => {
|
||||
copyChild.value.cell_index = copyChild.value.group_index;
|
||||
context.emit("update:child", copyChild.value);
|
||||
context.emit("changes");
|
||||
};
|
||||
|
||||
|
||||
const getGroupName = (group_index) => {
|
||||
return copyChild.value.config?.cell_option_groups?.option_group.find(x => x.group_index == group_index)?.title
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
:key="opt.id"
|
||||
:value="opt.id"
|
||||
>
|
||||
<div class="logical-option" v-html="opt.option"></div>
|
||||
<div class="logical-option" v-html="opt.optionStr"></div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<a-select
|
||||
@@ -37,7 +37,7 @@
|
||||
:key="opt.id"
|
||||
:value="opt.id"
|
||||
>
|
||||
<div class="logical-option" v-html="opt.option"></div>
|
||||
<div class="logical-option" v-html="opt.optionStr"></div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<a-select
|
||||
@@ -65,8 +65,8 @@
|
||||
/>
|
||||
</template>
|
||||
<template v-else>
|
||||
<div class="logical-select" v-html="optionInfo?.option || ''"></div>
|
||||
<div class="logical-select" v-html="colOptionInfo?.option || ''"></div>
|
||||
<div class="logical-select" v-html="optionInfo?.optionStr || ''"></div>
|
||||
<div class="logical-select" v-html="colOptionInfo?.optionStr || ''"></div>
|
||||
<div class="logical-usually">
|
||||
{{ copyChild.operator }}
|
||||
</div>
|
||||
|
||||
@@ -72,7 +72,7 @@ export default {
|
||||
const filterOptionHandle = (value, option, optionList) => {
|
||||
let result = false;
|
||||
const curOpt = optionList.find((opt) => opt.id === option.key);
|
||||
if (curOpt.option.includes(value)) {
|
||||
if (curOpt.optionStr.includes(value)) {
|
||||
result = true;
|
||||
}
|
||||
return result;
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
:key="opt.id"
|
||||
:value="opt.id"
|
||||
>
|
||||
<div class="logical-option" v-html="opt.option"></div>
|
||||
<div class="logical-option" v-html="opt.optionStr"></div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<a-select
|
||||
@@ -84,7 +84,7 @@
|
||||
<template v-else>
|
||||
<div class="logical-select" style="max-width: 100px;">选项</div>
|
||||
<div class="logical-usually">{{ copyChild.operator }}</div>
|
||||
<div class="logical-select" v-html="optionInfo?.option || ''"></div>
|
||||
<div class="logical-select" v-html="optionInfo?.optionStr || ''"></div>
|
||||
</template>
|
||||
</template>
|
||||
</template>
|
||||
@@ -131,7 +131,7 @@ export default {
|
||||
context.emit("update:child", copyChild.value);
|
||||
context.emit("changes");
|
||||
};
|
||||
|
||||
|
||||
const changeHandleGroup = () => {
|
||||
copyChild.value.option_index = copyChild.value.group_index;
|
||||
context.emit("update:child", copyChild.value);
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
:key="opt.id"
|
||||
:value="opt.id"
|
||||
>
|
||||
<div class="logical-option" v-html="opt.option"></div>
|
||||
<div class="logical-option" v-html="opt.optionStr"></div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<a-select
|
||||
@@ -45,7 +45,7 @@
|
||||
/>
|
||||
</template>
|
||||
<template v-else>
|
||||
<div class="logical-select" v-html="optionInfo?.option || ''"></div>
|
||||
<div class="logical-select" v-html="optionInfo?.optionStr || ''"></div>
|
||||
<div class="logical-usually">
|
||||
{{ copyChild.operator }}
|
||||
</div>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
:key="opt.id"
|
||||
:value="opt.id"
|
||||
>
|
||||
<div class="logical-option" v-html="opt.option"></div>
|
||||
<div class="logical-option" v-html="opt.optionStr"></div>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<a-select
|
||||
@@ -59,7 +59,7 @@
|
||||
</a-select>
|
||||
</template>
|
||||
<template v-else>
|
||||
<div class="logical-select" v-html="optionInfo?.option || ''"></div>
|
||||
<div class="logical-select" v-html="optionInfo?.optionStr || ''"></div>
|
||||
<div class="logical-usually">
|
||||
{{ copyChild.operator }}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user