增加学习强国积分
This commit is contained in:
@@ -10,6 +10,13 @@
|
|||||||
<b v-text="detail.name"/>
|
<b v-text="detail.name"/>
|
||||||
</template>
|
</template>
|
||||||
</ai-card>
|
</ai-card>
|
||||||
|
<ai-card hideTitle class="staCard fill">
|
||||||
|
<template #content>
|
||||||
|
<div class="color-999" v-text="`学习强国`"/>
|
||||||
|
<el-button type="text" @click="handleEditLearningIntergral(detail.id)">编辑</el-button>
|
||||||
|
<b class="color-26f" v-text="detail.learningIntegral||0"/>
|
||||||
|
</template>
|
||||||
|
</ai-card>
|
||||||
<ai-card hideTitle class="staCard fill">
|
<ai-card hideTitle class="staCard fill">
|
||||||
<template #content>
|
<template #content>
|
||||||
<div class="color-999" v-text="`个人积分`"/>
|
<div class="color-999" v-text="`个人积分`"/>
|
||||||
@@ -31,6 +38,13 @@
|
|||||||
</ai-card>
|
</ai-card>
|
||||||
</template>
|
</template>
|
||||||
</ai-detail>
|
</ai-detail>
|
||||||
|
<ai-dialog :visible.sync="dialog" title="学习强国设置" width="500px" @close="form={}" @onConfirm="submit">
|
||||||
|
<el-form :model="form" size="small" ref="DialogForm" :rules="rules" label-width="110px">
|
||||||
|
<el-form-item label="学习强国积分" prop="learningIntegral">
|
||||||
|
<el-input v-model.number="form.learningIntegral" placeholder="请输入正整数" clearable/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</ai-dialog>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -50,8 +64,16 @@ export default {
|
|||||||
{label: "变动积分", prop: "integral", align: 'center'},
|
{label: "变动积分", prop: "integral", align: 'center'},
|
||||||
{label: "剩余积分", prop: "residualIntegral", align: 'center'},
|
{label: "剩余积分", prop: "residualIntegral", align: 'center'},
|
||||||
{label: "调整说明", prop: "remark"},
|
{label: "调整说明", prop: "remark"},
|
||||||
|
],
|
||||||
|
dialog: false,
|
||||||
|
form: {},
|
||||||
|
rules: {
|
||||||
|
learningIntegral: [
|
||||||
|
{required: true, message: "请输入学习强国积分"},
|
||||||
|
{pattern: /^\d+$/g, message: "请输入正整数"}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getDetail() {
|
getDetail() {
|
||||||
@@ -66,6 +88,23 @@ export default {
|
|||||||
},
|
},
|
||||||
back() {
|
back() {
|
||||||
this.$router.push({})
|
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() {
|
created() {
|
||||||
@@ -86,9 +125,8 @@ export default {
|
|||||||
color: #26f;
|
color: #26f;
|
||||||
}
|
}
|
||||||
|
|
||||||
.staCard {
|
::v-deep.staCard {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 28px;
|
|
||||||
|
|
||||||
b {
|
b {
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
@@ -98,6 +136,17 @@ export default {
|
|||||||
& + .staCard {
|
& + .staCard {
|
||||||
margin-left: 16px;
|
margin-left: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ai-card__body {
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
.el-button {
|
||||||
|
position: absolute;
|
||||||
|
right: 32px;
|
||||||
|
top: 6px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ export default {
|
|||||||
{label: "姓名", prop: "name"},
|
{label: "姓名", prop: "name"},
|
||||||
{label: "个人积分", prop: "integral", align: "center"},
|
{label: "个人积分", prop: "integral", align: "center"},
|
||||||
{label: "家庭积分", prop: "familySurplusIntegral", align: "center"},
|
{label: "家庭积分", prop: "familySurplusIntegral", align: "center"},
|
||||||
|
{label: "学习强国", prop: "learningIntegral", align: "center"},
|
||||||
{slot: "options"}
|
{slot: "options"}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user