正元同步配置
This commit is contained in:
1 parent
b2f4549b57
commit
b94dff9cb0
1 file changed
+16
-41
@@ -1,31 +1,6 @@
|
||||
<template>
|
||||
<div class="w100">
|
||||
<div class="layout-padding-auto layout-padding-view">
|
||||
<el-row>
|
||||
<div class="mb8" style="width: 100%">
|
||||
<el-button icon="folder-add" type="primary" class="ml10" @click="formDialogRef.openDialog()" v-auth="'third_thirdZyLog_add'">
|
||||
新 增
|
||||
</el-button>
|
||||
<el-button
|
||||
plain
|
||||
:disabled="multiple"
|
||||
icon="Delete"
|
||||
type="primary"
|
||||
v-auth="'third_thirdZyLog_del'"
|
||||
@click="handleDelete(selectObjs)"
|
||||
>
|
||||
删 除
|
||||
</el-button>
|
||||
<right-toolbar
|
||||
v-model:showSearch="showSearch"
|
||||
:export="'third_thirdZyLog_export'"
|
||||
@exportExcel="exportExcel"
|
||||
class="ml10 mr20"
|
||||
style="float: right"
|
||||
@queryTable="getDataList"
|
||||
></right-toolbar>
|
||||
</div>
|
||||
</el-row>
|
||||
<el-table
|
||||
:data="state.dataList"
|
||||
v-loading="state.loading"
|
||||
@@ -43,9 +18,9 @@
|
||||
<el-button icon="edit-pen" text type="primary" v-auth="'third_thirdZyLog_edit'" @click="formDialogRef.openDialog(scope.row.id)"
|
||||
>编辑</el-button
|
||||
>
|
||||
<el-button icon="delete" text type="primary" v-auth="'third_thirdZyLog_del'" @click="handleDelete([scope.row.id])"
|
||||
<!-- <el-button icon="delete" text type="primary" v-auth="'third_thirdZyLog_del'" @click="handleDelete([scope.row.id])"
|
||||
>删除</el-button
|
||||
>
|
||||
> -->
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -105,19 +80,19 @@ const selectionChangHandle = (objs: { id: string }[]) => {
|
||||
}
|
||||
|
||||
// 删除操作
|
||||
const handleDelete = async (ids: string[]) => {
|
||||
try {
|
||||
await useMessageBox().confirm("此操作将永久删除")
|
||||
} catch {
|
||||
return
|
||||
}
|
||||
// const handleDelete = async (ids: string[]) => {
|
||||
// try {
|
||||
// await useMessageBox().confirm("此操作将永久删除")
|
||||
// } catch {
|
||||
// return
|
||||
// }
|
||||
|
||||
try {
|
||||
await delObjs(ids)
|
||||
getDataList()
|
||||
useMessage().success("删除成功")
|
||||
} catch (err: any) {
|
||||
useMessage().error(err.msg)
|
||||
}
|
||||
}
|
||||
// try {
|
||||
// await delObjs(ids)
|
||||
// getDataList()
|
||||
// useMessage().success("删除成功")
|
||||
// } catch (err: any) {
|
||||
// useMessage().error(err.msg)
|
||||
// }
|
||||
// }
|
||||
</script>
|
||||
Reference in new issue
Block a user