From 893a75c582bf8ff28417b67e6ff980039b276362 Mon Sep 17 00:00:00 2001 From: aixianling Date: Wed, 20 Apr 2022 14:51:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AD=A6=E4=B9=A0=E5=BC=BA?= =?UTF-8?q?=E5=9B=BD=E7=A7=AF=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/party/AppPartyScore/psDetail.vue | 55 +++++++++++++++++++++-- packages/party/AppPartyScore/psList.vue | 1 + 2 files changed, 53 insertions(+), 3 deletions(-) diff --git a/packages/party/AppPartyScore/psDetail.vue b/packages/party/AppPartyScore/psDetail.vue index d1e2d5bc..7c6085ba 100644 --- a/packages/party/AppPartyScore/psDetail.vue +++ b/packages/party/AppPartyScore/psDetail.vue @@ -10,6 +10,13 @@ + + + + + + + + + + @@ -50,7 +64,15 @@ export default { {label: "变动积分", prop: "integral", align: 'center'}, {label: "剩余积分", prop: "residualIntegral", align: 'center'}, {label: "调整说明", prop: "remark"}, - ] + ], + dialog: false, + form: {}, + rules: { + learningIntegral: [ + {required: true, message: "请输入学习强国积分"}, + {pattern: /^\d+$/g, message: "请输入正整数"} + ] + } } }, methods: { @@ -66,6 +88,23 @@ export default { }, back() { this.$router.push({}) + }, + submit() { + this.$refs.DialogForm.validate(v => { + if (v) { + this.instance.post("/app/appparty/editLearningIntegral", this.form).then(res => { + if (res?.code == 0) { + this.$message.success("提交成功!") + this.dialog = false + this.getDetail() + } + }) + } + }) + }, + handleEditLearningIntergral(partyMemberId) { + this.dialog = true + this.form = {partyMemberId} } }, created() { @@ -86,9 +125,8 @@ export default { color: #26f; } - .staCard { + ::v-deep.staCard { font-size: 14px; - line-height: 28px; b { font-size: 24px; @@ -98,6 +136,17 @@ export default { & + .staCard { margin-left: 16px; } + + .ai-card__body { + position: relative; + + .el-button { + position: absolute; + right: 32px; + top: 6px; + } + } + } } diff --git a/packages/party/AppPartyScore/psList.vue b/packages/party/AppPartyScore/psList.vue index c26dd67b..76f265eb 100644 --- a/packages/party/AppPartyScore/psList.vue +++ b/packages/party/AppPartyScore/psList.vue @@ -39,6 +39,7 @@ export default { {label: "姓名", prop: "name"}, {label: "个人积分", prop: "integral", align: "center"}, {label: "家庭积分", prop: "familySurplusIntegral", align: "center"}, + {label: "学习强国", prop: "learningIntegral", align: "center"}, {slot: "options"} ] },