发展党员
This commit is contained in:
@@ -590,7 +590,9 @@ export default {
|
|||||||
confirm() {
|
confirm() {
|
||||||
this.$refs.form.validate((valid) => {
|
this.$refs.form.validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.form.partyOrgId = this.$route.query.partyOrgId
|
if(!this.isEdit) {
|
||||||
|
this.form.partyOrgId = this.$route.query.partyOrgId
|
||||||
|
}
|
||||||
this.instance.post(`/app/apppartydevelop/addOrUpdate`, {...this.form}).then((res) => {
|
this.instance.post(`/app/apppartydevelop/addOrUpdate`, {...this.form}).then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.$message.success(this.isEdit ? "编辑成功" : "添加成功");
|
this.$message.success(this.isEdit ? "编辑成功" : "添加成功");
|
||||||
@@ -622,12 +624,9 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
remove(index) {
|
remove(index) {
|
||||||
console.log(index)
|
|
||||||
this.$confirm("确定删除该数据?").then(() => {
|
this.$confirm("确定删除该数据?").then(() => {
|
||||||
this.form.introducerList.splice(index, 1)
|
this.form.introducerList.splice(index, 1)
|
||||||
});
|
});
|
||||||
// this.form.introducerList.splice(index, 1)
|
|
||||||
// this.$forceUpdate()
|
|
||||||
},
|
},
|
||||||
checkName(val) {
|
checkName(val) {
|
||||||
for (let i in this.form) {
|
for (let i in this.form) {
|
||||||
|
|||||||
Reference in New Issue
Block a user