|
|
@@ -21,7 +21,7 @@
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
<tr v-for="item in member.content">
|
|
|
- <td >管理员</td>
|
|
|
+ <td v-text="item.userUU === user.user.userUU ? '管理员' : '成员'"></td>
|
|
|
<td v-text="item.vipName ? item.vipName : ''">李事业</td>
|
|
|
<td v-text="item.userUU ? item.userUU : ''">U456</td>
|
|
|
<td v-text="item.mobile ? item.mobile : ''">123456799+66</td>
|
|
|
@@ -31,7 +31,7 @@
|
|
|
</table>
|
|
|
<div style="text-align: center;color:#333;height:100px;line-height: 100px;" v-if="member.content.length === 0">现在没有可以申请的列表哦!</div>
|
|
|
<page :total="member.totalElements" :page-size="count"
|
|
|
- :current="page" @childEvent="handleApplyChange">
|
|
|
+ :current="page" @childEvent="handleMemberChange">
|
|
|
</page>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -57,14 +57,16 @@
|
|
|
<tbody>
|
|
|
<tr v-for="item in apple.content">
|
|
|
<td v-if="item.status === 311">
|
|
|
- <button class="btn btn-apply" @click="handleClick(true, item)">同意</button>
|
|
|
- <button class="btn btn-apply" @click="handleClick(false, item)">拒绝</button>
|
|
|
- </td>
|
|
|
- <td v-if="item.status === 316">
|
|
|
- 已同意
|
|
|
- </td>
|
|
|
- <td v-if="item.status === 317">
|
|
|
- 已拒绝
|
|
|
+ <template v-if="item.status === 311">
|
|
|
+ <button class="btn btn-apply" @click="handleClick(true, item)">同意</button>
|
|
|
+ <button class="btn btn-apply" @click="handleClick(false, item)">拒绝</button>
|
|
|
+ </template>
|
|
|
+ <template v-if="item.status === 316">
|
|
|
+ 已同意
|
|
|
+ </template>
|
|
|
+ <template v-if="item.status === 317">
|
|
|
+ 已拒绝
|
|
|
+ </template>
|
|
|
</td>
|
|
|
<td v-text="item.user.vipName ? item.user.vipName : ''">李事业</td>
|
|
|
<td v-text="item.user.userUU ? item.user.userUU : ''">U456</td>
|
|
|
@@ -75,7 +77,7 @@
|
|
|
</table>
|
|
|
<div style="text-align: center; color:#333;height:100px;line-height: 100px;" v-if="apple.content.length === 0">现在没有可以申请的列表哦!</div>
|
|
|
<page :total="apple.totalElements" :page-size="count"
|
|
|
- :current="page" @childEvent="handleMemberChange">
|
|
|
+ :current="page" @childEvent="handleApplyChange">
|
|
|
</page>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -105,8 +107,8 @@
|
|
|
middleware: 'authenticated',
|
|
|
fetch ({store}) {
|
|
|
return Promise.all([
|
|
|
- store.dispatch('loadApplyList', {page: 0, size: 20}),
|
|
|
- store.dispatch('loadMemberList', {page: 0, size: 20})
|
|
|
+ store.dispatch('loadApplyList', {page: 1, size: 20}),
|
|
|
+ store.dispatch('loadMemberList', {page: 1, size: 20})
|
|
|
])
|
|
|
},
|
|
|
components: {
|
|
|
@@ -116,7 +118,7 @@
|
|
|
return {
|
|
|
centerDialogVisible: true,
|
|
|
toggle: true,
|
|
|
- page: 0,
|
|
|
+ page: 1,
|
|
|
count: 20
|
|
|
}
|
|
|
},
|
|
|
@@ -128,7 +130,6 @@
|
|
|
return this.$store.state.option.userInfo.data.content
|
|
|
},
|
|
|
apple () {
|
|
|
- console.log(this.$store.state.cloudCenter.apple.data.content)
|
|
|
return this.$store.state.cloudCenter.apple.data.content
|
|
|
},
|
|
|
member () {
|
|
|
@@ -145,10 +146,10 @@
|
|
|
this.centerDialogVisible = false
|
|
|
},
|
|
|
handleApplyChange: function (page) {
|
|
|
- this.$store.dispatch('loadApplyList', {page: page - 1, size: this.count})
|
|
|
+ this.$store.dispatch('loadApplyList', {page: page, size: this.count})
|
|
|
},
|
|
|
handleMemberChange: function (page) {
|
|
|
- this.$store.dispatch('loadMemberList', {page: page - 1, size: this.count})
|
|
|
+ this.$store.dispatch('loadMemberList', {page: page, size: this.count})
|
|
|
},
|
|
|
handleClick: function (type, item) {
|
|
|
let param = new FormData()
|