|
|
@ -40,8 +40,12 @@ |
|
|
|
:formatter="formatValue"></el-table-column> |
|
|
|
<el-table-column prop="owners" label="是否愿意加入业务委员会" header-align="center" align="center" |
|
|
|
:formatter="formatValue"></el-table-column> |
|
|
|
<el-table-column prop="status" lable="审核状态" header-align="center" align="center" width="80" |
|
|
|
:formatter="formatStatus"></el-table-column> |
|
|
|
<el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="150"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<!-- <el-button type="text" size="small" @click="examine(scope.row)">{{$t(scope.row.status===0)? '审核' : '驳回' }}</el-button> --> |
|
|
|
<el-button type="text" size="mini" @click="detail(scope.row.id)" class="custom-table-button-default">查看</el-button> |
|
|
|
<el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">{{ $t('update') }}</el-button> |
|
|
|
<el-button type="text" size="small" @click="deleteHandle(scope.row.id)">{{ $t('delete') }}</el-button> |
|
|
|
</template> |
|
|
@ -51,8 +55,10 @@ |
|
|
|
layout="total, sizes, prev, pager, next, jumper" @size-change="pageSizeChangeHandle" |
|
|
|
@current-change="pageCurrentChangeHandle"> |
|
|
|
</el-pagination> |
|
|
|
<!-- 弹窗, 新增 / 修改 --> |
|
|
|
<!-- 弹窗, 新增 / 修改 审核--> |
|
|
|
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> |
|
|
|
<reportParty-detail v-if="detailVisible" ref="reportPartyDetail" @refreshDataList="getDataList"></reportParty-detail> |
|
|
|
<!-- <reportparty-examine ref="reportPartyExamine" @refreshDataList="getDataList"></reportparty-examine> --> |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
</template> |
|
|
@ -60,6 +66,9 @@ |
|
|
|
<script> |
|
|
|
import mixinViewModule from '@/mixins/view-module' |
|
|
|
import AddOrUpdate from './reportparty-add-or-update' |
|
|
|
import Flowparty from './flowparty' |
|
|
|
import ReportPartyDetail from './reportparty-detail' |
|
|
|
// import ReportPartyExamine from './reportparty-examine' |
|
|
|
export default { |
|
|
|
mixins: [mixinViewModule], |
|
|
|
data () { |
|
|
@ -71,8 +80,19 @@ export default { |
|
|
|
deleteIsBatch: true |
|
|
|
}, |
|
|
|
dataForm: { |
|
|
|
id: '' |
|
|
|
id: '', |
|
|
|
name: '', |
|
|
|
idCard: '', |
|
|
|
mobile: '', |
|
|
|
freelance: '', |
|
|
|
workUnit: '', |
|
|
|
partyName: '', |
|
|
|
workAddr: '', |
|
|
|
status: '', |
|
|
|
deptId: '', |
|
|
|
allDeptIds: [] |
|
|
|
}, |
|
|
|
detailVisible: false, |
|
|
|
regOptions: [{ |
|
|
|
value: 0, |
|
|
|
label: '否' |
|
|
@ -84,7 +104,9 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
components: { |
|
|
|
AddOrUpdate |
|
|
|
AddOrUpdate, |
|
|
|
Flowparty, |
|
|
|
ReportPartyDetail |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
formatValue (value) { |
|
|
@ -93,6 +115,44 @@ export default { |
|
|
|
} else { |
|
|
|
return '是' |
|
|
|
} |
|
|
|
}, |
|
|
|
// 审核驳回 |
|
|
|
examine (row) { |
|
|
|
console.log(row); |
|
|
|
row.status = row.status === 0 ? 1 : 0 |
|
|
|
const data = { |
|
|
|
id: row.id, |
|
|
|
status: row.status, |
|
|
|
allDeptIds: row.allDeptIds |
|
|
|
} |
|
|
|
this.$http['put']('/app-user/reportparty/', data).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.$message({ |
|
|
|
message: this.$t('prompt.success'), |
|
|
|
type: 'success', |
|
|
|
duration: 500, |
|
|
|
onClose: () => { |
|
|
|
this.visible = false |
|
|
|
this.getDataList() |
|
|
|
} |
|
|
|
}) |
|
|
|
}).catch(() => { }) |
|
|
|
}, |
|
|
|
detail (userId) { |
|
|
|
this.detailVisible = true |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs.reportPartyDetail.dataForm.id = userId |
|
|
|
this.$refs.reportPartyDetail.init() |
|
|
|
}) |
|
|
|
}, |
|
|
|
formatStatus (row) { |
|
|
|
if(row.status == 0 ){ |
|
|
|
return '未审核' |
|
|
|
}else{ |
|
|
|
return '已审核' |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|