style 多余字段去除

This commit is contained in:
bootx
2025-08-26 17:18:19 +08:00
parent 842e25d438
commit 42d07f4925
2 changed files with 0 additions and 39 deletions

View File

@@ -24,30 +24,6 @@
<a-form-item label="配置名称" name="name">
<a-input v-model:value="form.name" :disabled="showable" placeholder="请输入配置名称" />
</a-form-item>
<!-- <a-form-item label="是否启用" name="enable">-->
<!-- <a-switch-->
<!-- :disabled="showable"-->
<!-- v-model:checked="form.enable"-->
<!-- checked-children="是"-->
<!-- un-checked-children="否"-->
<!-- />-->
<!-- </a-form-item>-->
<a-form-item label="开启分账" name="allocation">
<a-switch
:disabled="showable"
v-model:checked="form.allocation"
checked-children=""
un-checked-children=""
/>
</a-form-item>
<a-form-item label="自动分账" name="autoAllocation">
<a-switch
:disabled="showable"
v-model:checked="form.autoAllocation"
checked-children=""
un-checked-children=""
/>
</a-form-item>
<a-form-item label="限制用户支付类型" name="limitPay">
<a-select
allow-clear
@@ -114,7 +90,6 @@
code: [{ required: true, message: '' }],
name: [{ required: true, message: '请输入配置名称' }],
enable: [{ required: true, message: '请选择码牌是否启用' }],
allocation: [{ required: true, message: '请选择是否开启分账' }],
autoAllocation: [{ required: true, message: '请选择是否自动分账' }],
} as Record<string, Rule[]>

View File

@@ -32,20 +32,6 @@
<a href="javascript:" @click="show(row)">{{ row.name }}</a>
</template>
</vxe-column>
<vxe-column field="allocation" title="分账" align="center" :min-width="100">
<template #default="{ row }">
<a-tag :color="row.allocation ? 'green' : 'red'">
{{ row.allocation ? '开启' : '关闭' }}
</a-tag>
</template>
</vxe-column>
<vxe-column field="autoAllocation" title="自动分账" align="center" :min-width="100">
<template #default="{ row }">
<a-tag :color="row.autoAllocation ? 'green' : 'red'">
{{ row.autoAllocation ? '开启' : '关闭' }}
</a-tag>
</template>
</vxe-column>
<vxe-column field="remark" title="备注" :min-width="150" />
<vxe-column field="createTime" title="创建时间" :min-width="140" />
<vxe-column fixed="right" :width="200" :showOverflow="false" title="操作">