1. 业务开发
[!tip]
调查问卷插件带有专属标签供用户在模板中快速使用
1.1. 使用问卷
VUE3使用代码片段
...省略本文档必须引入资源文件...
{@ms:qa "问卷调查" /}
<script>
ms.base = "{ms:global.contextpath/}";
ms.manager = "{ms:global.contextpath/}";
/**
* 封装vue创建过程,方便初始化组件
* @param obj
* @returns vue实例
* @private
*/
function _Vue(obj) {
var app = Vue.createApp(obj);
app.config.globalProperties.ms = ms;
app.use(ElementPlus,{
locale: ElementPlusLocaleZhCn
});
app.use(MsElForm);
app.component('ms-qa', MsQa);
return app.mount(obj.el);
}
</script>
...
<div id="app" v-cloak >
...
<ms-qa></ms-qa>
...
</div>
<script>
// vue实例的名称必须是form
var form = new _Vue({
el: '#app',
})
</script>
...
[!tip]
其中问卷调查为问卷的名称
1.2. 导入问卷
[!tip]
自定义模型JSON通过平台的代码生成器获取



