|
@@ -37,7 +37,7 @@
|
|
|
v-hasPermi="['knowledge:entity:edit']"
|
|
|
>修改</el-button>
|
|
|
</el-col>
|
|
|
- <el-col :span="1.5">
|
|
|
+ <!-- <el-col :span="1.5">
|
|
|
<el-button
|
|
|
type="danger"
|
|
|
plain
|
|
@@ -47,7 +47,7 @@
|
|
|
@click="handleDelete"
|
|
|
v-hasPermi="['knowledge:entity:remove']"
|
|
|
>删除</el-button>
|
|
|
- </el-col>
|
|
|
+ </el-col> -->
|
|
|
<!-- <el-col :span="1.5">
|
|
|
<el-button
|
|
|
type="warning"
|
|
@@ -190,7 +190,8 @@ export default {
|
|
|
},
|
|
|
// 多选框选中数据
|
|
|
handleSelectionChange(selection) {
|
|
|
- this.ids = selection.map(item => item.entId)
|
|
|
+ console.info(selection)
|
|
|
+ this.ids = selection.map(item => item.id)
|
|
|
this.single = selection.length!==1
|
|
|
this.multiple = !selection.length
|
|
|
},
|
|
@@ -214,7 +215,7 @@ export default {
|
|
|
submitForm() {
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
if (valid) {
|
|
|
- if (this.form.entId != null) {
|
|
|
+ if (this.form.id != null) {
|
|
|
updateEntity(this.form).then(response => {
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
this.open = false;
|