|
@@ -134,7 +134,7 @@
|
|
|
>
|
|
|
删除
|
|
|
</el-button>
|
|
|
- <!-- <el-button
|
|
|
+ <el-button
|
|
|
v-if="scope.row.status === '1'"
|
|
|
link
|
|
|
type="primary"
|
|
@@ -149,7 +149,7 @@
|
|
|
@click="handleAction(scope.row.id, 'disabled')"
|
|
|
>
|
|
|
禁用
|
|
|
- </el-button> -->
|
|
|
+ </el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -252,6 +252,7 @@ const handleExport = async () => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+// 账户禁用、启用
|
|
|
const handleAction = async (id: number, type: string) => {
|
|
|
try {
|
|
|
await message.confirm(`确认${type === 'disabled' ? '禁用' : '启用'}该账户吗?`)
|