早上好
我在survey.js上遇到了一个问题,我无法为我的问题设置默认值,我想要这个:
但我得到了这个
用这个代码:
questions: [
{
name: "ph-avant",
type: "html",
html: "<img class='myImg' src='/Images/ParcMachine/Gaz/PartieAvant.jpg' />",
},
{
type: "panel",
title: "CONTROLE VISUEL",
startWithNewLine: scrW,
questions: [
{
name: "Avant",
type: "matrix",
isRequired: true,
isAllRowRequired: true,
defaultValue: "nc",
title: "Partie Avant",
columns: [
{ value: "ok", text: "OK" },
{ value: "ko", text: "NON OK" },
{ value: "nc", text: "NON CONCERNE" }
],
rows: [
{ value: "Fourches", text: "Fourches", defaultValue: "nc" },
{ value: "Phares", text: "Phare avant droit / gauche", defaultValue: "nc" },
{ value: "Autres", text: "Mât / Pare brise / Essuie glace", defaultValue: "nc" },
{ value: "Chaines", text: "Chaînes / Flexibles", defaultValue: "nc" },
]
},
{
name: "obs_avant",
type: "comment",
title: "Observations",
}
]
},
]
我用了一个多小时尝试了很多东西,但即使是用chatGPT我也找不到让它工作的方法
先谢了
1条答案
按热度按时间z0qdvdin1#
尝试使用默认值设置测量数据
有关示例代码的更多信息,请单击此处