This commit is contained in:
shijingjing
2022-07-01 12:34:19 +08:00
parent da929c20a2
commit 59f8671e90

View File

@@ -30,13 +30,6 @@
</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>
@@ -60,7 +53,6 @@ export default {
{label: "剩余积分", prop: "residualIntegral", align: 'center'}, {label: "剩余积分", prop: "residualIntegral", align: 'center'},
{label: "调整说明", prop: "remark"}, {label: "调整说明", prop: "remark"},
], ],
dialog: false,
form: {}, form: {},
rules: { rules: {
learningIntegral: [ learningIntegral: [
@@ -81,7 +73,8 @@ export default {
this.instance.post("/app/apppartyintegralinfo/list", null, { this.instance.post("/app/apppartyintegralinfo/list", null, {
params: { params: {
partyId: id, partyId: id,
...this.page ...this.page,
total: this.total
} }
}).then(res => { }).then(res => {
if (res?.data) { if (res?.data) {
@@ -96,21 +89,6 @@ export default {
back() { back() {
this.$router.push({}) this.$router.push({})
}, },
submit() {
this.$refs.DialogForm.validate(v => {
if (v) {
this.instance.post("/app/appparty/editLearningIntegral", null,{
params:this.form
}).then(res => {
if (res?.code == 0) {
this.$message.success("提交成功!")
this.dialog = false
this.getDetail()
}
})
}
})
},
handleEditLearningIntergral(partyMemberId) { handleEditLearningIntergral(partyMemberId) {
this.dialog = true this.dialog = true
this.form = {partyMemberId} this.form = {partyMemberId}