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

bug修改

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