审核党员
This commit is contained in:
@@ -120,7 +120,7 @@
|
||||
<el-button type="text" @click="toDetail(row.id)">详情</el-button>
|
||||
<el-button type="text" @click="toAdd(row.id)">编辑</el-button>
|
||||
<el-button type="text" @click="remove(row.id)">删除</el-button>
|
||||
<el-button type="text" @click="dialogVisible = true">审核</el-button>
|
||||
<el-button type="text" v-show="row.auditStatus == 0" @click="review(row)">审核</el-button>
|
||||
<!-- <el-button type="text" @click="showNeighbourSetting(row.id)"
|
||||
v-if="permissions('app_apppartyfourresident_detail')">四邻设置
|
||||
</el-button> -->
|
||||
@@ -131,21 +131,29 @@
|
||||
<span style="margin-right: 8px;" @click="removeAll">批量删除</span>
|
||||
</div>
|
||||
</ai-table>
|
||||
</template>
|
||||
<el-dialog width="644px" title="选择党组织" :visible.sync="dialogVisible" class="select-party">
|
||||
<el-dialog width="644px" title="党员认证" :visible.sync="dialogVisible" class="select-party" @closed="dialogVisible=false,form={}">
|
||||
<el-form ref="form" :model="form" :rules="formRules" size="small" label-width="150px">
|
||||
<el-form-item label="党组织">
|
||||
<el-input size="small" disabled placeholder="请选择党组织" v-model="form.organizationName">
|
||||
<el-form-item label="审核" prop="pass">
|
||||
<el-radio v-model="form.pass" label="1">通过</el-radio>
|
||||
<el-radio v-model="form.pass" label="0">驳回</el-radio>
|
||||
</el-form-item>
|
||||
<el-form-item label="党组织" v-if="form.pass == 1" :prop="form.pass == 1? 'partyOrgId': ''">
|
||||
<el-input size="small" disabled placeholder="请选择党组织" v-model="form.partyOrgName">
|
||||
<template slot="append">
|
||||
<ai-party :instance="instance" size="small" :value="form.partyOrgId" @origin="handlePartyOrgSelect"/>
|
||||
</template>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="审核意见">
|
||||
<el-form-item label="审核意见" v-if="form.pass === 0" :prop="form.pass == 0? 'opinion': ''">
|
||||
<el-input type="textarea" :rows="5" v-model="form.votingInstructions" placeholder="请输入" show-word-limit maxlength="500"></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" style="text-align: center;">
|
||||
<el-button style="width:92px" size="small" class="delete-btn" @click="dialogVisible=false,form={}">取消</el-button>
|
||||
<el-button style="width:92px" size="small" type="primary" @click="dialogVisible=false,confirmBtn()">确认</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</template>
|
||||
</ai-list>
|
||||
</template>
|
||||
|
||||
@@ -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'},
|
||||
@@ -201,6 +209,13 @@ export default {
|
||||
tableData: [],
|
||||
ids: '',
|
||||
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()
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user