diff --git a/packages/work/AppAskForm/components/Statistics.vue b/packages/work/AppAskForm/components/Statistics.vue index 2c7264d3..9c729746 100644 --- a/packages/work/AppAskForm/components/Statistics.vue +++ b/packages/work/AppAskForm/components/Statistics.vue @@ -127,11 +127,11 @@ + customFooter + :visible.sync="isShowForm" + @onConfirm="isShowForm = false" + width="800px" + title="表单">
diff --git a/project/hlj/app/AppRatingTask/components/FormDetail.vue b/project/hlj/app/AppRatingTask/components/FormDetail.vue index 938e6ac2..b546a013 100644 --- a/project/hlj/app/AppRatingTask/components/FormDetail.vue +++ b/project/hlj/app/AppRatingTask/components/FormDetail.vue @@ -83,6 +83,13 @@
+ + +
@@ -124,6 +131,76 @@ + +
+
+
+
+ +
+
+

{{ info.title }}

+
+
+

{{ info.tableExplain }}

+
+
+
+
+ * + {{ i + 1 }}. +

{{ item.label }}

+
+
+ + + + + + +
+
+
+
+ +
@@ -144,6 +221,7 @@ total2: 0, name1: '', name2: '', + info: {}, search1: { current: 1, size: 10, @@ -179,7 +257,10 @@ dictName: '已填报', dictValue: '1' } - ] + ], + formInfo: {}, + isShow: false, + targetList: [] } }, @@ -194,6 +275,29 @@ this.instance.post(`/app/appassessmentscortask/taskTemplateDetail?id=${id}`).then(res => { if (res.code === 0) { this.info = res.data + this.instance.post(`/app/appassessmentscoretemplate/queryDetailById?id=${res.data.templateId}`).then(res => { + if (res.code === 0) { + this.targetList = res.data.fields.map(item => { + return JSON.parse(item.fieldInfo) + }) + } + }) + } + }) + }, + + showDetail (id) { + this.instance.post(`/app/appassessmentscortask/queryDataInfoById?taskDetailId=${id}&dataId=${id}`).then(res => { + if (res.code == 0) { + this.formInfo = res.data + + this.targetList.forEach((item, index) => { + if (item.type === 'checkbox' && this.formInfo[`field_${index}`]) { + this.formInfo[`field_${index}`] = this.formInfo[`field_${index}`].split(',') + } + }) + + this.isShow = true } }) }, @@ -288,5 +392,169 @@ } } } + .form { + .left-item__item--banner { + img { + width: 100%; + height: 235px; + } + + .config-item__banner { + display: flex; + align-items: center; + justify-content: center; + flex-direction: column; + width: 100%; + height: 235px; + line-height: 1; + border: 1px dashed #bbb; + + span { + margin-top: 4px; + color: #555555; + font-size: 14px; + } + + i { + font-size: 30px; + color: #8899bb; + } + } + } + + .left-item__item--formname { + margin: 16px 0 32px; + padding: 0 12px; + color: #333333; + font-size: 15px; + font-weight: normal; + text-align: center; + word-break: break-all; + } + + .left-item__item--text { + line-height: 20px; + // margin-bottom: 48px; + padding: 0 12px 20px; + text-align: justify; + color: #666; + font-size: 14px; + word-break: break-all; + } + + .components-item { + position: relative; + padding: 16px 16px; + + .left-item__item--wrapper { + & > img { + max-width: 300px; + } + } + + .left-item__item--upload { + display: flex; + align-items: center; + justify-content: center; + flex-direction: column; + width: 120px; + height: 120px; + border-radius: 6px; + border: 1px dashed #bbb; + + i { + font-size: 24px; + color: #8899bb; + } + + span { + margin-top: 4px; + font-size: 12px; + color: #555; + } + } + + .text-item { + input { + display: block; + width: 100%; + height: 40px; + border: none; + border-bottom: 1px solid #ddd; + + &:focus { + outline: none; + } + + &:disabled { + background: #fff; + } + } + } + + .textarea-item { + textarea { + width: 100%; + height: 120px; + resize: none; + border: 1px solid #ddd; + padding: 10px; + + &:focus { + outline: none; + } + + &:disabled { + background: #fff; + } + } + } + + .radio-item { + display: flex; + margin-bottom: 10px; + + input { + position: relative; + top: 2px; + } + + &:last-child { + margin-bottom: 0; + } + + label { + margin-left: 10px; + } + + img { + width: 60px; + margin-left: 10px; + } + } + } + + .left-item__item--title { + display: flex; + margin-bottom: 10px; + + i { + position: relative; + top: 3px; + margin-right: 5px; + color: #E22120; + } + + span { + position: relative; + top: 3px; + } + + h2 { + color: #333333; + font-size: 15px; + } + } + } }