From e17b089c44a23a420ed1502f4a3cadcd2543e36c Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 24 Oct 2022 18:03:11 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=91=E9=BE=99=E6=B1=9F=E6=B0=91=E6=94=BF?= =?UTF-8?q?=E8=80=83=E6=A0=B8=E8=AF=84=E5=88=86=E5=9F=BA=E6=9C=AC=E5=AE=8C?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppAskForm/AppForm.vue | 5 +- src/apps/AppAskForm/components/formDetail.vue | 9 +- src/components/AiGroup.vue | 44 +++++++-- src/components/AiItem.vue | 60 ++++++++---- .../AppAssessmentScoreTask.vue | 91 +++++++++++++++++ .../AppAssessmentScoreTask/astDetail.vue | 97 +++++++++++++++++++ src/styles/common.scss | 9 +- 7 files changed, 278 insertions(+), 37 deletions(-) create mode 100644 src/project/hljmz/AppAssessmentScoreTask/AppAssessmentScoreTask.vue create mode 100644 src/project/hljmz/AppAssessmentScoreTask/astDetail.vue diff --git a/src/apps/AppAskForm/AppForm.vue b/src/apps/AppAskForm/AppForm.vue index 66b80e98..1a096ea0 100644 --- a/src/apps/AppAskForm/AppForm.vue +++ b/src/apps/AppAskForm/AppForm.vue @@ -36,7 +36,8 @@ export default { }, isPreview() { return !!this.$route.query?.preview - } + }, + action: v => v.$route.query.action || "appquestionnairetemplate" }, methods: { ...mapActions(['getCode', 'getToken']), @@ -45,7 +46,7 @@ export default { if (this.isPreview) { this.access = true } else if (!!this.user.token) { - this.$http.post("/app/appquestionnairetemplate/commitCheck", null, { + this.$http.post(`/app/${this.action}/commitCheck`, null, { params: {id} }).then(res => { if (res?.code == 0) { diff --git a/src/apps/AppAskForm/components/formDetail.vue b/src/apps/AppAskForm/components/formDetail.vue index e71915bc..4521206f 100644 --- a/src/apps/AppAskForm/components/formDetail.vue +++ b/src/apps/AppAskForm/components/formDetail.vue @@ -80,7 +80,8 @@ export default { }, isPreview() { return !!this.$route.query?.preview - } + }, + action: v => v.$route.query.action || "appquestionnairetemplate" }, data() { return { @@ -113,7 +114,7 @@ export default { ...mapMutations(['logout']), getForm() { let {id} = this.$route.query - this.$http.post("/app/appquestionnairetemplate/queryDetailById", null, { + this.$http.post(`/app/${this.action}/queryDetailById`, null, { withoutToken: true, params: {id} }).then(res => { @@ -124,7 +125,7 @@ export default { }, getResult() { let {id} = this.$route.query - this.$http.post("/app/appquestionnairetemplate/commitCheck", null, { + this.$http.post(`/app/${this.action}/commitCheck`, null, { params: {id} }).then(res => { if (res?.data) { @@ -144,7 +145,7 @@ export default { if (this.validateForm()) { this.handleScore() let {avatar: avatarUrl, openId, name: nickName, type: userType, unionId, corpName} = this.openUser - this.$http.post("/app/appquestionnairetemplate/commit", { + this.$http.post(`/app/${this.action}/commit`, { fields: this.fields.map(e => ({ ...e, fieldInfo: JSON.stringify(e.fieldInfo), diff --git a/src/components/AiGroup.vue b/src/components/AiGroup.vue index 1f8b4767..7ccd4891 100644 --- a/src/components/AiGroup.vue +++ b/src/components/AiGroup.vue @@ -1,5 +1,6 @@ @@ -7,11 +8,25 @@ @@ -20,10 +35,27 @@ export default { .AiGroup { background: #FFFFFF; box-shadow: inset 0px -1px 0px 0px #DDDDDD; - padding-left: 32px; + + &.noBorder { + box-shadow: none; + } & + .AiGroup { margin-top: 16px; } + + .groupHeader { + font-weight: bold; + font-size: 36px; + padding-left: 20px; + margin-bottom: 16px; + } + + &.description { + .groupHeader { + padding-left: 0; + } + } + } diff --git a/src/components/AiItem.vue b/src/components/AiItem.vue index 4b90531d..5964d00d 100644 --- a/src/components/AiItem.vue +++ b/src/components/AiItem.vue @@ -1,22 +1,28 @@