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 @@