diff --git a/project/hlj/app/AppFormTemplate/AppFormTemplate.vue b/project/hlj/app/AppFormTemplate/AppFormTemplate.vue new file mode 100644 index 00000000..eb8aa223 --- /dev/null +++ b/project/hlj/app/AppFormTemplate/AppFormTemplate.vue @@ -0,0 +1,69 @@ + + + + + diff --git a/project/hlj/app/AppFormTemplate/components/Add.vue b/project/hlj/app/AppFormTemplate/components/Add.vue new file mode 100644 index 00000000..3eb7f1f6 --- /dev/null +++ b/project/hlj/app/AppFormTemplate/components/Add.vue @@ -0,0 +1,1371 @@ + + + + + diff --git a/project/hlj/app/AppFormTemplate/components/List.vue b/project/hlj/app/AppFormTemplate/components/List.vue new file mode 100644 index 00000000..e788f37d --- /dev/null +++ b/project/hlj/app/AppFormTemplate/components/List.vue @@ -0,0 +1,158 @@ + + + + + diff --git a/project/hlj/app/AppFormTemplate/components/config.js b/project/hlj/app/AppFormTemplate/components/config.js new file mode 100644 index 00000000..ca7ca496 --- /dev/null +++ b/project/hlj/app/AppFormTemplate/components/config.js @@ -0,0 +1,202 @@ +export const components = [ + { + type: 'options', + tips: '(可重复添加)', + label: '选项', + children: [ + { + type: 'radio', + label: '单选', + fixedLabel: '单选', + value: '', + points: '', + describe: '', + 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: '多选', + describe: '', + 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: [] + }, + { + label: '选项2', + point: '', + value: '', + img: [] + } + ], + title: '' + }, + { + type: 'select', + label: '单下拉框', + fixedLabel: '单下拉框', + value: '', + points: '', + describe: '', + icon: 'iconSelect', + 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: 'input', + tips: '(可重复添加)', + label: '填空', + children: [ + { + type: 'input', + label: '单行填空', + describe: '', + fixedLabel: '单行填空', + value: '', + pointType: '0', + icon: 'icontext_box', + isShowPoints: false, + points: '', + required: true, + hasAnswer: false, + placeholder: '请输入...', + answer: '' + }, + { + type: 'textarea', + label: '多行填空', + describe: '', + fixedLabel: '多行填空', + pointType: '0', + icon: 'icontext_area', + points: '', + isShowPoints: false, + required: true, + hasAnswer: false, + answer: '', + placeholder: '请输入...', + value: '' + } + ] + }, + { + type: 'annex', + tips: '(可重复添加)', + label: '附件', + children: [ + { + type: 'upload', + label: '上传图片', + fixedLabel: '上传图片', + describe: '', + value: '', + icon: 'iconpic', + isShowPoints: false, + points: '', + required: true, + hasAnswer: false, + answer: '' + } + ] + }, + { + type: 'layout', + tips: '(可重复添加)', + label: '分组', + children: [ + { + type: 'group', + label: '卡片', + fixedLabel: '卡片', + icon: 'iconpic', + groupName: '分组标题', + column: [] + } + ] + } +] diff --git a/vue.config.js b/vue.config.js index 565fcd69..159e475a 100644 --- a/vue.config.js +++ b/vue.config.js @@ -57,7 +57,7 @@ module.exports = { proxy: { //设置代理,可解决跨5 '/lan': { - target: 'http://192.168.1.87:9000', + target: 'http://192.168.1.105:19000', changeOrigin: true, pathRewrite: { //地址重写