提交 e2b341f4 authored 作者: matian's avatar matian

bug修改

上级 e6dce672
......@@ -63,8 +63,8 @@ const handleEdit = (row: any) => {
</template>
<template #table-operate="{ row }">
<el-space>
<el-button type="primary" plain @click="handleEdit(row)">编辑</el-button>
<el-button type="primary" plain @click="handleDelete(row)">删除</el-button>
<el-link type="primary" plain @click="handleEdit(row)">编辑</el-link>
<el-link type="primary" plain @click="handleDelete(row)">删除</el-link>
</el-space>
</template>
<template v-if="isShowDialog === true">
......
......@@ -69,7 +69,6 @@ const handleConfirm = async (formEl: FormInstance | undefined) => {
await formEl.validate(valid => {
if (valid) {
if (props.isEdit === true) {
// emit('confirm', { form, isUpdate: 1, id: props.editData.id })
// 更新字典的值
const params = Object.assign({ id: props.editData.id, data_dictionary_id: props.dictionaryId }, form)
updateDictionaryItem(params).then(() => {
......@@ -78,7 +77,6 @@ const handleConfirm = async (formEl: FormInstance | undefined) => {
emit('updatePage')
})
} else {
// emit('confirm', { form, isUpdate: 0 })
// 新增字典的值
const params = Object.assign({ data_dictionary_id: props.dictionaryId }, form)
createDictionaryItem(params).then(() => {
......@@ -99,6 +97,7 @@ onMounted(() => {
form.remark = props.editData.remark
form.status = props.editData.status
form.sort = props.editData.sort
form.can_edit = props.editData.can_edit
}
})
</script>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论