Commit 31e7983a by ext.wangyuman1

Merge branch 'vue3-master' of https://e.coding.net/linkwechat/linkwechat-front/l…

…inkwechat into bs-dev-wangyuman
2 parents 33c50ad9 5ed82d9d
......@@ -552,6 +552,10 @@ export default {
if (stylesx[i][q].formCodeId == 0) {
that.readonly = false
}
// 删除提交数据中固定的省市区JSON数据树
else if (stylesx[i][q].formCodeId == 9) {
stylesx[i][q].options = []
}
}
}
......@@ -1099,6 +1103,10 @@ export default {
if (stylesx[i][q].formCodeId == 0) {
that.readonly = false
}
// 删除提交数据中固定的省市区JSON数据树
else if (stylesx[i][q].formCodeId == 9) {
stylesx[i][q].options = []
}
}
}
let t = 0
......
......@@ -469,6 +469,7 @@ export default {
if (cloneCurItem.formCodeId == 9) {
cloneCurItem.defaultValue += ''
cloneCurItem.options = []
} else {
// let str
// for (let p = 0; p < cloneCurItem.options.length; p++) {
......
......@@ -44,11 +44,11 @@
:key="index">
<template #default="{ row }">
<div class="toe">
<span v-if="![8, 9, 10].includes(row.answer[index].formCodeId)">
<span v-if="![8, 9, 10, 6].includes(row.answer[index].formCodeId)">
{{ row.answer[index].defaultValue }}
</span>
<span v-else-if="row.answer[index].formCodeId == 8">
{{ row.answer[index].multiple ? multipleTrans(row.answer[index]) : row.answer[index].defaultValue }}
<span v-else-if="[8, 6].includes(row.answer[index].formCodeId)">
{{ multipleTrans(row.answer[index]) }}
</span>
<span v-else-if="row.answer[index].formCodeId == 9">
{{ row.answer[index].ssq }}
......@@ -285,14 +285,21 @@ export default {
// that.baseList= res.data;
})
},
// transDefaultValueToView(data) {
// debugger
// data = JSON.parse(JSON.stringify(data))
// let option = data.options.filter((e, index) => data.defaultValue.includes(index + ''))
// return option.map((e) => e.value).join(',')
// },
multipleTrans(data) {
data = JSON.parse(JSON.stringify(data))
data.viewValue = []
if (typeof data.defaultValue === 'string') {
data.defaultValue = data.defaultValue.split(',')
data.options = data.options.split(',')
data.viewValue = data.options.filter((e, index) => data.defaultValue.includes(index + ''))
}
data.defaultValue += ''
// if (typeof data.defaultValue === 'string') {
data.defaultValue = data.defaultValue.split(',')
data.options = data.options.split(',')
data.viewValue = data.options.filter((e, index) => data.defaultValue.includes(index + ''))
// }
return data.viewValue.join()
},
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!