注册审核修改

This commit is contained in:
aoli.qu 2022-02-25 10:34:45 +08:00
parent 3159f03dfc
commit 2d7bc82ad3
3 changed files with 62 additions and 35 deletions

View File

@ -168,4 +168,7 @@ export default {
.article-title {
text-align: center;
}
.article-body {
margin-top: 15px;
}
</style>

View File

@ -22,7 +22,7 @@
<s-table
ref="table1"
:columns="columns"
:columns="columns1"
:data="loadData"
:rowKey="(record) => record.id"
>
@ -68,7 +68,7 @@
</div>
<s-table
ref="table2"
:columns="columns"
:columns="columns2"
:data="loadData"
:rowKey="(record) => record.id"
>
@ -101,13 +101,13 @@
//
queryParam: { },
//
columns: [
columns1: [
{
title: '公告标题',
dataIndex: 'title'
},
{
title: '发布单位/人',
title: '发布单位',
dataIndex: 'createOrgName'
},
{
@ -118,7 +118,11 @@
scopedSlots: { customRender: 'publishTime' }
},
{
title: '菜单类型',
title: '发布范围',
dataIndex: 'rangeName'
},
{
title: '公告类型',
dataIndex: 'type',
scopedSlots: { customRender: 'type' }
},
@ -128,6 +132,29 @@
scopedSlots: { customRender: 'status' }
}
],
//
columns2: [
{
title: '公告标题',
dataIndex: 'title'
},
{
title: '发布单位',
dataIndex: 'createOrgName'
},
{
title: '发布时间',
width: 200,
dataIndex: 'publishTime',
key: 'publishTime',
scopedSlots: { customRender: 'publishTime' }
},
{
title: '公告类型',
dataIndex: 'type',
scopedSlots: { customRender: 'type' }
}
],
// Promise
loadData: parameter => {
return noticePage(Object.assign(parameter, this.queryParam, { noticeRange: this.noticeRange })).then((res) => {
@ -157,7 +184,7 @@
},
created () {
if (this.hasPerm('notice:edit') || this.hasPerm('notice:del') || this.hasPerm('notice:list')) {
this.columns.push({
this.columns1.push({
title: '操作',
width: 200,
dataIndex: 'action',

View File

@ -289,47 +289,43 @@ export default {
fileList: [],
fileList2: [],
fileList3: [],
isRegister: 0
isRegisterVerify: 0
}
},
mounted () {
this.dictionaryDropDown()
},
created () {
},
methods: {
//
//
registerEdit (record) {
this.modalTitle = '审核人员'
this.confirmLoading = true
this.visible = true
this.isRegister = 1
this.isRegisterVerify = 1
this.registerDisabled = true
setTimeout(() => {
//
this.form.setFieldsValue({
name: record.name,
userName: record.userName,
phone: record.phone,
orgId: record.orgId,
orgName: record.orgName,
id: record.personId, // personId
userId: record.userId
})
}, 100)
this.confirmLoading = false
this.personGet(record.personId)
},
//
edit (record) {
this.modalTitle = '编辑人员'
this.confirmLoading = true
this.visible = true
this.isRegister = 0
this.isRegisterVerify = 0
this.registerDisabled = true
if (this.type == 2) this.registerDisabled = false
this.personGet(record.id)
},
personGet (personId) {
//
personGet({ id: record.id }).then(res => {
personGet({ id: personId }).then(res => {
if (res.code === 200) {
const data = res.data
//
@ -377,8 +373,9 @@ export default {
} else {
this.$message.error('查询失败:' + res.msg)
}
})
this.confirmLoading = false
})
},
/**
* 获取字典数据
@ -418,12 +415,12 @@ export default {
if (this.fileList3.length > 0) values.avatar = this.fileList3[0].url
//
if (_this.isRegister === 1) {
if (_this.isRegisterVerify === 1) {
this.$confirm({
title: '提示',
content: '确认通过审核吗?',
onOk () {
values.isRegister = 1 //
values.isRegisterVerify = 1 //
_this.addOrUpdate(values)
},
onCancel () {}