From 74f7f7a340789e92831584da9d15f49c785b99e9 Mon Sep 17 00:00:00 2001
From: shijingjing <1789544664@qq.com>
Date: Mon, 14 Nov 2022 10:40:35 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E5=85=9A=E5=91=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../apps/AppPartyMember/components/List.vue | 96 +++++++++++++++----
1 file changed, 75 insertions(+), 21 deletions(-)
diff --git a/project/pingchang/apps/AppPartyMember/components/List.vue b/project/pingchang/apps/AppPartyMember/components/List.vue
index 09581733..d22e8742 100644
--- a/project/pingchang/apps/AppPartyMember/components/List.vue
+++ b/project/pingchang/apps/AppPartyMember/components/List.vue
@@ -120,7 +120,7 @@
详情
编辑
删除
- 审核
+ 审核
@@ -131,21 +131,29 @@
批量删除
+
+
+
+ 通过
+ 驳回
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 确认
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -189,10 +197,10 @@ export default {
{prop: 'name', label: '姓名', align: 'center'},
{prop: 'sex', label: '性别', align: 'center', dict: 'sex'},
{prop: 'age', label: '年龄', align: 'center'},
- // {
- // prop: 'auditStatus', label: '审核状态', align: 'center',
- // render: (h, {row}) => h('span', {class: `audit-${row.auditStatus}`}, this.dict.getLabel('auditStatus', row.auditStatus))
- // },
+ {
+ prop: 'auditStatus', label: '审核状态', align: 'center',
+ render: (h, {row}) => h('span', {class: `audit-${row.auditStatus}`}, this.dict.getLabel('auditStatus', row.auditStatus))
+ },
{prop: 'partyStatus', label: '党籍状态', align: 'center', dict: 'partyStatus'},
{prop: 'joinPartyTime', label: '入党日期', align: 'center'},
{prop: 'partyPosition', label: '党内职务', align: 'center', dict: 'partyPosition'},
@@ -200,7 +208,14 @@ export default {
],
tableData: [],
ids: '',
- dialogVisible: false, //弹窗
+ dialogVisible: false, // 弹窗
+ form: {
+ id: '',
+ pass: '',
+ partyOrgId: '',
+ partyOrgName: '',
+ opinion: '',
+ },
}
},
computed: {
@@ -217,6 +232,13 @@ export default {
},
isShowAddBtn() {
return this.selected.isLeaf == 1
+ },
+ formRules() {
+ return {
+ pass: [{required: true, message: "请选择审核状态", trigger: "change"}],
+ partyOrgId: [{required: true, message: "请选择党组织", trigger: "change"}],
+ opinion: [{required: true, message: "请输入审核意见", trigger: "change"}],
+ }
}
},
created() {
@@ -232,6 +254,13 @@ export default {
this.getList(e.id)
},
+ review(row) {
+ this.dialogVisible = true
+ this.form.id = row.id
+ this.form.partyOrgId = row.partyOrgId
+ this.form.partyOrgName = row.partyOrgName
+ },
+
onSearch(v) {
this.orgTree.filter(v)
},
@@ -281,7 +310,32 @@ export default {
},
toAdd(id) {
this.$router.push({query: {id}, hash: "#add"})
- }
+
+ },
+ // 选党组织
+ handlePartyOrgSelect(e) {
+ console.log(e);
+ let {isLeaf, name, id} = e?.[0] || {};
+ if (isLeaf == 1) {
+ this.form.partyOrgName = name;
+ this.form.partyOrgId = id;
+ }
+ },
+ confirmBtn() {
+ this.$refs.form.validate((valid) => {
+ if (valid) {
+ this.instance.post(`/app/appparty/examine`, null, {
+ params: {...this.form}
+ }).then(res => {
+ if(res.code == 0) {
+ this.dialogVisible = false
+ this.$message.success('审核成功')
+ this.getList()
+ }
+ })
+ }
+ })
+ },
}
}