平昌党建先提交挂起

This commit is contained in:
aixianling
2022-10-24 16:13:01 +08:00
parent 9209ac9fae
commit a9351c58d3
7 changed files with 305 additions and 77 deletions

View File

@@ -1,7 +1,7 @@
<template>
<section class="addChange">
<ai-detail>
<ai-title slot="title" title="新增换届" isShowBottomBorder isShowBack @onBackClick="cancel(false)"/>
<ai-title slot="title" :title="pageTitle" isShowBottomBorder isShowBack @onBackClick="cancel(false)"/>
<template #content>
<ai-card title="基本信息">
<template #content>
@@ -83,10 +83,13 @@ export default {
permissions: Function,
dict: Object,
},
computed: {
isMakeUp: v => v.$route.hash == "#makeup",
pageTitle: v => v.isMakeUp ? "补录换届" : "新增换届"
},
data() {
return {
form: {
addOrMakeup: true,
changeTime: '',
sessionTime: '',
serveList: [], // 任职人员列表
@@ -109,8 +112,8 @@ export default {
// }
// })
// },
cancel() {
this.$router.push({})
cancel(refresh) {
refresh ? this.$router.push({}) : this.$router.back()
},
handleDelete(i, type) {
this.$confirm("确定要删除该数据?").then(() => {
@@ -124,8 +127,9 @@ export default {
confirm() {
this.$refs.form.validate((valid) => {
if (valid) {
const addOrMakeup = !this.isMakeUp
this.instance.post(`/app/apporganizationgeneralelection/add`, {
...this.form
...this.form, addOrMakeup
}).then(res => {
if (res.code == 0) {
this.$message.success('提交成功')