|
@@ -2,30 +2,32 @@
|
|
|
<div class="app-list-content">
|
|
<div class="app-list-content">
|
|
|
<cl-crud class="liu-crud-wrap" @load="onLoad">
|
|
<cl-crud class="liu-crud-wrap" @load="onLoad">
|
|
|
<template #table-column-userId="{scope}">
|
|
<template #table-column-userId="{scope}">
|
|
|
-
|
|
|
|
|
- <i
|
|
|
|
|
- class="el-icon-success"
|
|
|
|
|
- v-if="scope.row.userId != 0"
|
|
|
|
|
- style="color:#67C23A;font-size:19px;"
|
|
|
|
|
- ></i>
|
|
|
|
|
- <i class="el-icon-success" v-else style="color:#C0C4CC;font-size:19px;"></i>
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <i
|
|
|
|
|
+ class="el-icon-success"
|
|
|
|
|
+ v-if="scope.row.userId != 0"
|
|
|
|
|
+ style="color:#67C23A;font-size:19px;"
|
|
|
|
|
+ ></i>
|
|
|
|
|
+ <i class="el-icon-success" v-else style="color:#C0C4CC;font-size:19px;"></i>
|
|
|
</template>
|
|
</template>
|
|
|
<template #table-column-avatar="{scope}">
|
|
<template #table-column-avatar="{scope}">
|
|
|
- <cl-avatar
|
|
|
|
|
- shape="circle"
|
|
|
|
|
- :size="24"
|
|
|
|
|
- :src="scope.row.avatarUrl"
|
|
|
|
|
- :style="{ margin: 'auto' }"
|
|
|
|
|
- ></cl-avatar>
|
|
|
|
|
- </template>
|
|
|
|
|
|
|
+ <cl-avatar
|
|
|
|
|
+ shape="circle"
|
|
|
|
|
+ :size="24"
|
|
|
|
|
+ :src="scope.row.avatarUrl"
|
|
|
|
|
+ :style="{ margin: 'auto' }"
|
|
|
|
|
+ ></cl-avatar>
|
|
|
|
|
+ </template>
|
|
|
|
|
|
|
|
<template #table-column-incomeNotice="{scope}">
|
|
<template #table-column-incomeNotice="{scope}">
|
|
|
<el-switch
|
|
<el-switch
|
|
|
- v-model="scope.row.incomeNotice"
|
|
|
|
|
|
|
+ v-model="scope.row.remind"
|
|
|
active-value="1"
|
|
active-value="1"
|
|
|
inactive-value="0"
|
|
inactive-value="0"
|
|
|
- @change="changeNotice(scope.row)"
|
|
|
|
|
|
|
+ @change="
|
|
|
|
|
+ v => {
|
|
|
|
|
+ changeNotice(scope.row.id, v);
|
|
|
|
|
+ }
|
|
|
|
|
+ "
|
|
|
></el-switch>
|
|
></el-switch>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -34,7 +36,11 @@
|
|
|
v-model="scope.row.status"
|
|
v-model="scope.row.status"
|
|
|
active-value="1"
|
|
active-value="1"
|
|
|
inactive-value="0"
|
|
inactive-value="0"
|
|
|
- @change="changeStatus(scope.row)"
|
|
|
|
|
|
|
+ @change="
|
|
|
|
|
+ v => {
|
|
|
|
|
+ changeStatus(scope.row.id, v);
|
|
|
|
|
+ }
|
|
|
|
|
+ "
|
|
|
></el-switch>
|
|
></el-switch>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -302,10 +308,17 @@ export default {
|
|
|
this.ruleForm.password.required = true;
|
|
this.ruleForm.password.required = true;
|
|
|
},
|
|
},
|
|
|
// 切换收款通知
|
|
// 切换收款通知
|
|
|
- changeNotice(item) {},
|
|
|
|
|
- changeStatus(item) {
|
|
|
|
|
- this.$service.staff.updateStatus({ id: item.id, status: item.status }).then(res => {
|
|
|
|
|
|
|
+ changeNotice(id, val) {
|
|
|
|
|
+ this.$service.common.updateRemind({ id, remind: val }).then(res => {
|
|
|
|
|
+ this.$message.success('操作成功!');
|
|
|
|
|
+ this.app.refresh();
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ // 启用状态
|
|
|
|
|
+ changeStatus(id, val) {
|
|
|
|
|
+ this.$service.common.updateStatus({ id, status: val }).then(res => {
|
|
|
this.$message.success('操作成功!');
|
|
this.$message.success('操作成功!');
|
|
|
|
|
+ this.app.refresh();
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
// dialog
|
|
// dialog
|