注册审核修改

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

@ -2,7 +2,7 @@
<div> <div>
<a-card :bordered="false"> <a-card :bordered="false">
<template slot="extra"> <template slot="extra">
<a-button type="primary" @click="close">返回</a-button> <a-button type="primary" @click="close">返回</a-button>
</template> </template>
<div> <div>
<div> <div>
@ -73,7 +73,7 @@ export default {
queryParam: { noticeId: this.$route.query.id, isRead: 1 }, queryParam: { noticeId: this.$route.query.id, isRead: 1 },
readCount: 0, readCount: 0,
unreadCount: 0, unreadCount: 0,
noticeRange : 1, noticeRange: 1,
// //
columns1: [ columns1: [
{ {
@ -132,7 +132,7 @@ export default {
methods: { methods: {
// //
close () { close () {
this.$router.push({ path: '/notice/list', query: {noticeRange: this.noticeRange} }) this.$router.push({ path: '/notice/list', query: { noticeRange: this.noticeRange } })
}, },
getDetail (id) { getDetail (id) {
noticeGet({ id: id }).then(res => { noticeGet({ id: id }).then(res => {
@ -151,7 +151,7 @@ export default {
} }
if (key === '2') { if (key === '2') {
this.queryParam.isRead = 0 this.queryParam.isRead = 0
this.$nextTick(()=>{ this.$nextTick(() => {
this.$refs.table2.refresh(true) this.$refs.table2.refresh(true)
}) })
} }
@ -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"
> >
@ -97,17 +97,17 @@
}, },
data () { data () {
return { return {
noticeRange : 2, noticeRange: 2,
// //
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,9 +132,32 @@
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) => {
console.log(res) console.log(res)
return res return 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',
@ -176,13 +203,13 @@
tabsCallback (key) { tabsCallback (key) {
if (key === '1') { if (key === '1') {
this.noticeRange = '1' this.noticeRange = '1'
this.$nextTick(()=>{ this.$nextTick(() => {
this.$refs.table1.refresh(true) this.$refs.table1.refresh(true)
}) })
} }
if (key === '2') { if (key === '2') {
this.noticeRange = '2' this.noticeRange = '2'
this.$nextTick(()=>{ this.$nextTick(() => {
this.$refs.table2.refresh(true) this.$refs.table2.refresh(true)
}) })
} }

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 () {}