移除代码生成器批量删除剩余部分
This commit is contained in:
parent
cfc3f55b16
commit
259db657e1
|
|
@ -219,14 +219,13 @@ const setFormData = async (data: Record<string, any>) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const getDetail = (row: Record<string, any>) => {
|
const getDetail = async (row: Record<string, any>) => {
|
||||||
const data = await ${moduleName}Detail({
|
const data = await ${moduleName}Detail({
|
||||||
${primaryKey}: row.${primaryKey}
|
${primaryKey}: row.${primaryKey}
|
||||||
})
|
})
|
||||||
setFormData(data)
|
setFormData(data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const handleClose = () => {
|
const handleClose = () => {
|
||||||
emit('close')
|
emit('close')
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -52,17 +52,6 @@
|
||||||
</template>
|
</template>
|
||||||
新增
|
新增
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
|
||||||
v-perms="['${moduleName}:del']"
|
|
||||||
:disabled="!selectData.length"
|
|
||||||
type="danger"
|
|
||||||
@click="handleDelete(selectData)"
|
|
||||||
>
|
|
||||||
<template #icon>
|
|
||||||
<icon name="el-icon-Delete" />
|
|
||||||
</template>
|
|
||||||
删除
|
|
||||||
</el-button>
|
|
||||||
</div>
|
</div>
|
||||||
<el-table
|
<el-table
|
||||||
class="mt-4"
|
class="mt-4"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue