层级管理修改

This commit is contained in:
cwchen 2026-01-28 13:30:24 +08:00
parent 2e5f9029e7
commit 82edb3cc43
2 changed files with 20 additions and 2 deletions

View File

@ -152,7 +152,25 @@ export default {
})
},
resetForm() {
this.$refs.addOrEditFormRef.resetFields()
//
this.addOrEditForm = {
levelSettingName: '',
configId: undefined,
levelList: [
{
level: 1,
levelName: '一级节点',
},
{
level: 2,
levelName: '二级节点',
},
],
}
// DOM resetFields
this.$nextTick(() => {
this.$refs.addOrEditFormRef && this.$refs.addOrEditFormRef.resetFields()
})
},
addNextLevel(index) {

View File

@ -184,7 +184,7 @@ export default {
//
handleDelete(row) {
this.$modal.confirm('是否确认删除层级编号为"' + row.configId + '"的数据项?').then(async () => {
this.$modal.confirm('是否确认删除层级名称为"' + row.configName + '"的数据项?').then(async () => {
const res = await delLevelApi([row.configId])
if (res.code === 200) {
this.$modal.msgSuccess('删除成功')