优化小程序端配置功能

This commit is contained in:
gxwebsoft
2024-05-05 16:29:16 +08:00
parent d764188399
commit bf652139aa
53 changed files with 7186 additions and 73 deletions

View File

@@ -20,6 +20,7 @@
<a-input
allow-clear
placeholder="site_name"
:disabled="isUpdate"
v-model:value="form.name"
/>
</a-form-item>

View File

@@ -32,20 +32,24 @@
<a @click="moveUp(record)">上移<ArrowUpOutlined /></a>
<a-divider type="vertical" />
<a @click="openEdit(record)">编辑</a>
<a-divider type="vertical" />
<a-popconfirm
title="确定要删除此记录吗?"
@confirm="remove(record)"
>
<a class="ele-text-danger">删除</a>
</a-popconfirm>
<a-divider type="vertical" />
<a-popconfirm
title="确定要放回原处吗?"
@confirm="recovery(record)"
>
<a class="ele-text-danger">恢复</a>
</a-popconfirm>
<template v-if="record.deleted == 0">
<a-divider type="vertical" />
<a-popconfirm
title="确定要删除此记录吗?"
@confirm="remove(record)"
>
<a class="ele-text-danger">删除</a>
</a-popconfirm>
</template>
<template v-if="record.deleted == 1">
<a-divider type="vertical" />
<a-popconfirm
title="确定要放回原处吗?"
@confirm="recovery(record)"
>
<a class="ele-text-danger">恢复</a>
</a-popconfirm>
</template>
</template>
</template>
</ele-pro-table>
@@ -97,7 +101,6 @@
// 表格数据源
const datasource: DatasourceFunction = ({ page, limit, where, orders }) => {
// 搜索条件
where.deleted = 1;
return pageWebsiteField({
...where,
...orders,