|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<el-dialog title="重命名" :visible.sync="dialogVisible" width="480px" :close-on-click-modal="false" custom-class="renameDialog">
|
|
|
<div>
|
|
|
- <el-input v-model="input" placeholder="请输入名称" size="small"></el-input>
|
|
|
+ <el-input v-model="input" placeholder="请输入名称" size="small" :maxlength="20"></el-input>
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="dialogVisible = false">取 消</el-button>
|
|
@@ -47,7 +47,8 @@ export default {
|
|
|
content: [{
|
|
|
id: this.data.id,
|
|
|
graphId: this.data.graphId,
|
|
|
- name: newName
|
|
|
+ name: newName,
|
|
|
+ categoryId: this.data.categoryId
|
|
|
}],
|
|
|
projection: ['name']
|
|
|
}
|