删除多余字符串

This commit is contained in:
kkaiyun
2023-05-10 20:09:36 +08:00
parent 361b1fd60f
commit 05e91f7786

View File

@@ -64,7 +64,7 @@
<a-row class="smart-table-btn-block"> <a-row class="smart-table-btn-block">
<div class="smart-table-operate-block"> <div class="smart-table-operate-block">
#if($insertAndUpdate.isSupportInsertAndUpdate) #if($insertAndUpdate.isSupportInsertAndUpdate)
<a-button @click="showForm" type="primary" size="small"> <a-button @click="showForm()" type="primary" size="small">
<template #icon> <template #icon>
<PlusOutlined /> <PlusOutlined />
</template> </template>
@@ -245,7 +245,7 @@
function onDelete(data){ function onDelete(data){
Modal.confirm({ Modal.confirm({
title: '提示', title: '提示',
content: '确定要删除吗?', content: '确定要删除吗?',
okText: '删除', okText: '删除',
okType: 'danger', okType: 'danger',
onOk() { onOk() {
@@ -260,9 +260,6 @@
async function requestDelete(data){ async function requestDelete(data){
SmartLoading.show(); SmartLoading.show();
try { try {
let deleteForm = {
goodsIdList: selectedRowKeyList.value,
};
await $!{name.lowerCamel}Api.delete(data.$!{primaryKeyFieldName}); await $!{name.lowerCamel}Api.delete(data.$!{primaryKeyFieldName});
message.success('删除成功'); message.success('删除成功');
queryData(); queryData();