From 0695e0725b9066a6468a7f66b7ece6a23739e4f7 Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 26 Nov 2021 17:33:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=BE=AE=E4=BF=A1=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E6=B5=81=E7=A8=8B(=E9=9C=80=E8=B0=83=E6=95=B4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppAskForm/formDetail.vue | 10 +- src/pages/askForm/addForm.vue | 700 ----------------------- src/pages/askForm/askForm.vue | 52 -- src/pages/askForm/components/addList.vue | 182 ------ src/pages/askForm/components/list.vue | 497 ---------------- src/pages/askForm/config.js | 163 ------ src/pages/askForm/filedConfig.vue | 535 ----------------- src/pages/askForm/formDetail.vue | 405 ------------- src/pages/askForm/formList.vue | 164 ------ src/pages/askForm/formSetting.vue | 314 ---------- src/pages/askForm/index.vue | 69 --- src/pages/askForm/previewForm.vue | 457 --------------- 12 files changed, 6 insertions(+), 3542 deletions(-) delete mode 100644 src/pages/askForm/addForm.vue delete mode 100644 src/pages/askForm/askForm.vue delete mode 100644 src/pages/askForm/components/addList.vue delete mode 100644 src/pages/askForm/components/list.vue delete mode 100644 src/pages/askForm/config.js delete mode 100644 src/pages/askForm/filedConfig.vue delete mode 100644 src/pages/askForm/formDetail.vue delete mode 100644 src/pages/askForm/formList.vue delete mode 100644 src/pages/askForm/formSetting.vue delete mode 100644 src/pages/askForm/index.vue delete mode 100644 src/pages/askForm/previewForm.vue diff --git a/src/apps/AppAskForm/formDetail.vue b/src/apps/AppAskForm/formDetail.vue index d95fe105..5ed8d4bb 100644 --- a/src/apps/AppAskForm/formDetail.vue +++ b/src/apps/AppAskForm/formDetail.vue @@ -125,7 +125,7 @@ export default { } }, methods: { - ...mapActions(['getUserInfo']), + ...mapActions(['getUserInfo', "getCode"]), getForm() { let {id} = this.$route.query this.$http.post("/app/appquestionnairetemplate/queryDetailById", null, { @@ -239,8 +239,10 @@ export default { }) }) } else { - this.getUserInfo().then(() => { - if (!!this.openUser?.openId) { + this.getUserInfo().then(res => { + if (res == "getCode") { + this.getCode({url: location.href}) + } else if (!!this.openUser?.openId) { this.checkForm()?.then(() => this.checkUser && this.getForm()) } else { this.result = { @@ -252,7 +254,7 @@ export default { } } } - }) + }).catch() } }, }, diff --git a/src/pages/askForm/addForm.vue b/src/pages/askForm/addForm.vue deleted file mode 100644 index d0172ec2..00000000 --- a/src/pages/askForm/addForm.vue +++ /dev/null @@ -1,700 +0,0 @@ - - - - - diff --git a/src/pages/askForm/askForm.vue b/src/pages/askForm/askForm.vue deleted file mode 100644 index 304ca182..00000000 --- a/src/pages/askForm/askForm.vue +++ /dev/null @@ -1,52 +0,0 @@ - - - - - diff --git a/src/pages/askForm/components/addList.vue b/src/pages/askForm/components/addList.vue deleted file mode 100644 index a2826ce5..00000000 --- a/src/pages/askForm/components/addList.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - - - diff --git a/src/pages/askForm/components/list.vue b/src/pages/askForm/components/list.vue deleted file mode 100644 index 07950dc6..00000000 --- a/src/pages/askForm/components/list.vue +++ /dev/null @@ -1,497 +0,0 @@ - - - - - diff --git a/src/pages/askForm/config.js b/src/pages/askForm/config.js deleted file mode 100644 index affd9efb..00000000 --- a/src/pages/askForm/config.js +++ /dev/null @@ -1,163 +0,0 @@ -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/pages/askForm/filedConfig.vue b/src/pages/askForm/filedConfig.vue deleted file mode 100644 index fe59b245..00000000 --- a/src/pages/askForm/filedConfig.vue +++ /dev/null @@ -1,535 +0,0 @@ - - - - -