注册审核修改

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

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

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