fix: 修复数据集管理编辑分组节点名称,树节点没有更新的异常的情况

main
wu.jian2 2 years ago
parent 5e9d69edd6
commit 2141399735

@ -50,8 +50,7 @@
</template> </template>
<script> <script>
import { categoryAdd, categoryUpdate } from 'data-room-ui/js/utils/datasetConfigService' import { categoryAdd, categoryUpdate, categoryNameRepeat } from 'data-room-ui/js/utils/datasetConfigService'
import { categoryNameRepeat } from "../../js/utils/datasetConfigService";
export default { export default {
name: 'CategroyEditForm', name: 'CategroyEditForm',
props: { props: {
@ -154,9 +153,8 @@ export default {
id = this.dataForm.id id = this.dataForm.id
parentId = this.nodeData.parentId parentId = this.nodeData.parentId
} }
const params = { const params = {
id: id, id: this.dataForm.id,
name: this.dataForm.name, name: this.dataForm.name,
parentId: parentId, parentId: parentId,
type: this.type, type: this.type,
@ -164,7 +162,7 @@ export default {
} }
if (id) { if (id) {
categoryUpdate(params).then((r) => { categoryUpdate(params).then((r) => {
params.id = r // params.id = r
this.$message.success('保存成功') this.$message.success('保存成功')
this.cancel() this.cancel()
try { try {

Loading…
Cancel
Save