This commit is contained in:
dute7liang
2024-01-04 22:48:29 +08:00
parent 6e54bdbb00
commit 652100912f
5 changed files with 77 additions and 372 deletions

View File

@@ -94,13 +94,6 @@
@click="handleEnableRate(scope.row,false)"
v-hasPermi="['cai:userInvite:edit']"
>关闭</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['cai:userInvite:edit']"
>修改</el-button>
</template>
</el-table-column>
</el-table>
@@ -112,24 +105,20 @@
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<update-invite-dialog v-if="updateInviteDialogVisible" ref="updateInviteDialog" @refreshDataList="getList" />
</div>
</template>
<script>
import {listUserInvite, updateUserInvite} from "@/api/cai/userInvite";
import {booleanList, isAnchorList} from "@/constant/statusMap";
import UpdateInviteDialog from "@/views/cai/userInvite/update-invite-dialog";
export default {
name: "UserInvite",
components: {
UpdateInviteDialog
},
data() {
return {
isAnchorList,booleanList,
updateInviteDialogVisible: false,
// 遮罩层
loading: true,
// 选中数组
@@ -185,12 +174,6 @@ export default {
this.single = selection.length!==1
this.multiple = !selection.length
},
handleUpdate(row){
this.updateInviteDialogVisible = true
this.$nextTick(() => {
this.$refs.updateInviteDialog.init(row)
})
},
handleEnableRate(row,enableRate) {
let message = enableRate ? '开启' : '关闭';
this.$modal.confirm('是否确认'+message+'用户"' + row.usercode + '"的好友邀请奖励?').then(() => {