diff --git a/src/apps/AppAskForm/AppAskForm.vue b/src/apps/AppAskForm/AppAskForm.vue new file mode 100644 index 00000000..f30b3a92 --- /dev/null +++ b/src/apps/AppAskForm/AppAskForm.vue @@ -0,0 +1,51 @@ + + + + + diff --git a/src/apps/AppAskForm/AppForm.vue b/src/apps/AppAskForm/AppForm.vue new file mode 100644 index 00000000..79a37515 --- /dev/null +++ b/src/apps/AppAskForm/AppForm.vue @@ -0,0 +1,82 @@ + + + + + diff --git a/src/apps/AppAskForm/components/AddForm.vue b/src/apps/AppAskForm/components/AddForm.vue new file mode 100644 index 00000000..546ef94a --- /dev/null +++ b/src/apps/AppAskForm/components/AddForm.vue @@ -0,0 +1,775 @@ + + + + + diff --git a/src/apps/AppAskForm/components/AddList.vue b/src/apps/AppAskForm/components/AddList.vue new file mode 100644 index 00000000..f041f906 --- /dev/null +++ b/src/apps/AppAskForm/components/AddList.vue @@ -0,0 +1,194 @@ + + + + + diff --git a/src/apps/AppAskForm/components/FiledConfig.vue b/src/apps/AppAskForm/components/FiledConfig.vue new file mode 100644 index 00000000..be9dd3a0 --- /dev/null +++ b/src/apps/AppAskForm/components/FiledConfig.vue @@ -0,0 +1,547 @@ + + + + + diff --git a/src/apps/AppAskForm/components/Result.vue b/src/apps/AppAskForm/components/Result.vue new file mode 100644 index 00000000..80a530c0 --- /dev/null +++ b/src/apps/AppAskForm/components/Result.vue @@ -0,0 +1,165 @@ + + + + + diff --git a/src/apps/AppAskForm/components/Tabbar.vue b/src/apps/AppAskForm/components/Tabbar.vue new file mode 100644 index 00000000..34ab7f52 --- /dev/null +++ b/src/apps/AppAskForm/components/Tabbar.vue @@ -0,0 +1,61 @@ + + + + + diff --git a/src/apps/AppAskForm/components/config.js b/src/apps/AppAskForm/components/config.js new file mode 100644 index 00000000..07076f81 --- /dev/null +++ b/src/apps/AppAskForm/components/config.js @@ -0,0 +1,163 @@ +export const components = [ + { + type: 'radio', + label: '单选', + fixedLabel: '单选', + value: '', + points: '', + icon: 'iconradio', + isShowPoints: false, + required: true, + hasAnswer: false, + answer: '', + pointType: '0', + pointDict: [ + { + dictName: '此题有唯一答案和分值', + dictValue: '0' + }, + { + dictName: '每个选项都有对应分值', + dictValue: '1' + } + ], + options: [ + { + label: '选项1', + value: '', + point: '', + img: [] + }, + { + label: '选项2', + value: '', + point: '', + img: [] + } + ], + title: '' + }, + { + type: 'checkbox', + label: '多选', + fixedLabel: '多选', + points: '', + icon: 'iconcheck_box', + isShowPoints: false, + required: true, + hasAnswer: false, + answer: [], + value: [], + pointType: '0', + pointDict: [ + { + dictName: '此题有唯一答案和分值', + dictValue: '0' + }, + { + dictName: '每个选项都有对应分值', + dictValue: '1' + }, + { + dictName: '答对几项得几分,答错不得分', + dictValue: '2' + } + ], + options: [ + { + label: '选项1', + value: '', + point: '', + img: [], + checked: false + }, + { + label: '选项2', + point: '', + value: '', + img: [], + checked: false + } + ], + title: '' + }, + { + type: 'select', + label: '单下拉框', + fixedLabel: '单下拉框', + value: '', + points: '', + icon: 'iconSelect', + isShowPoints: false, + required: true, + hasAnswer: false, + answer: '', + pointType: '0', + placeholder: '请选择', + pointDict: [ + { + dictName: '此题有唯一答案和分值', + dictValue: '0' + }, + { + dictName: '每个选项都有对应分值', + dictValue: '1' + } + ], + options: [ + { + label: '选项1', + value: '', + point: '', + img: [] + }, + { + label: '选项2', + value: '', + point: '', + img: [] + } + ], + title: '' + }, + { + type: 'input', + label: '单行填空', + fixedLabel: '单行填空', + value: '', + pointType: '0', + icon: 'icontext_box', + isShowPoints: false, + points: '', + required: true, + hasAnswer: false, + placeholder: '请输入...', + answer: '' + }, + { + type: 'textarea', + label: '多行填空', + fixedLabel: '多行填空', + pointType: '0', + icon: 'icontext_area', + points: '', + isShowPoints: false, + required: true, + hasAnswer: false, + answer: '', + placeholder: '请输入...', + value: '' + }, + { + type: 'upload', + label: '上传图片', + fixedLabel: '上传图片', + value: '', + icon: 'iconpic', + isShowPoints: false, + points: '', + required: true, + hasAnswer: false, + answer: '' + } +]; diff --git a/src/apps/AppAskForm/components/formDetail.vue b/src/apps/AppAskForm/components/formDetail.vue new file mode 100644 index 00000000..14c3e1e2 --- /dev/null +++ b/src/apps/AppAskForm/components/formDetail.vue @@ -0,0 +1,341 @@ +