注册审核修改

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 { .article-title {
text-align: center; text-align: center;
} }
.article-body {
margin-top: 15px;
}
</style> </style>

View File

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

View File

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